@bbelderbos you're giving a really bad example. Something that is expected to have some real time side effects like an accurate execution delay should always produce said side effect. Such shortcuts could have life threatening consequences if used in the proper bad way (as it will inevitably be)
If I want to transcribe every new audio file that appears in a folder on my Mac using (Mac)Whisper and then run the transcription through a LLM using Ollama to clean it up, what are my best options? Do I have to write some Python code myself or is the readymade tools for this?
@anders I am a Python fanatic of many years but I'm not sure Python is the tool I'd reach for here. But I'm also a Mac newb so this is going to be very unhelpful. On Linux I'd do something like this, and I imagine there must be Mac equivalents:
In shell (I use bash, but I understand Mac defaults to zsh)
Use a loop like this to watch for changes in a folder:
inotifywait --quiet --monitor "$folder" | while read changed
do
echo "$changed"
done
@anders inotify watches for filesystem events without polling all the existing files. I'm fairly sure it doesn't exist on Mac, but there simply must be some equivalent.
Then, replace the 'echo' with the command needed to do the conversion on file "$changed". (Maybe this step is "then just draw the rest of the owl"? Sorry!)
I'm slowly making my way through a 8 thousand line python addition to #inkscape's #python library for parsing text and font elements in #svg properly. It's important and useful, but it's also a lot.
I'm not sure how to say "please run pylint over your code because my eyes hurt trying to read this". without sounding like an ungrateful jerk. 😅
La PyConFR, la convention #python francophone, c’est pour bientôt ! Si vous souhaitez proposer une conférence, un atelier, ou un sprint de #programmation c’est le moment
Hi folks! Former chair of @ThePSF Conduct Working Group with a message that might be timely!
If you see a member of the #python community behaving against the spirit or the letter of the CoC, especially if the comments are in public about an official #PSF event, especially if using a hashtag, please report to conduct-wg@python.org as you are comfortable.
The WG might not be able to take action due to the CoC’s scope, but its useful background for the inevitable next incident.
Welp, @andreasjung blocked me for asking him to not use his platform to spread COVID denialism. That's his right to do so, of course, but it really makes me sad that someone in the #Python community would do this.
To everyone who supported and went along with the mask policies at PyCon this year, thank you so much.
@iqbalabd@hugovk@Thepsf the board makes the decisions for both of them. Sometimes a CSA nomination leads to a DSA being awarded. It doesn't hurt to suggest a DSA though :)
College Precalculus – Full Course with Python Code by Ed Pratowski and freeCodeCamp focus on the foundation of calculus with Python implementation. This 12 hours course covers the following topics:
✅ Core trigonometry
✅ Matrix operation
✅ Working with complex numbers
✅ Probability
Are there any videos for #PyConUS? I saw a bunch of comments about the keynote and other talks about they seemed really interesting, but I can't find anything after the fact.
@doctormo if you're registered you can watch it in the online platform. (In person registration gets access to the online platform too).
Otherwise videos are usually uploaded to YouTube a little later. (Last year it took 2 months after the conference)
@treyhunner Claiming that the second value is the “stop index” is not helpful to people learning Python for the first time. I like to say that the first value refers to the first position that you “want”. The second value refers to the first position that you “don’t want”.
@_KevinTrainor I agree with the sentiment, but I do think calling these by their names is helpful.
Python uses the terms start, stop, and step for slices & ranges
Names are handy for remembering, even when the names may feel a bit off. The alliteration helps a bit in this case too.
Calling out the exclusivity is definitely necessary though and calling it "weird" might me helpful too! I certainly critique some of Python's decisions ("I wish they were called generator comprehensions").
Now that #PyConUS is over, why not attend and support a regional #Python conference?
PyCon US sold out this year, and it will probably continue to do so. Smaller, regional events are going to be a more important part of how we support the growth of our community, but we need your support -- attendance and sponsorship -- to fulfil that role.