nedbat, to python
@nedbat@hachyderm.io avatar

Are you sure you know how decorators work? This should be no problem! 😈 🤯 🤓

villares, to python Portuguese
@villares@pynews.com.br avatar
hugovk, to python
@hugovk@mastodon.social avatar

📣🐍📚 Calling all Python library maintainers!

Python 3.13 is now in beta, with the second of four beta releases out later today!

It's now time to start testing your libraries with 3.13 and report any problems back to CPython so they can be fixed before the big October release. And make any updates you need to upgrade your library; keep an eye out for removals and deprecations.

Here's how to test 3.13 on GitHub Actions:

https://dev.to/hugovk/help-test-python-313-14j1

Posit, to python
@Posit@fosstodon.org avatar

posit::conf(2024) virtual tickets are now available!
Join us on August 12-14—from all over the world—to live stream the incredible talks and keynotes that will be taking place in Seattle.

We understand that not everyone will be able to make the trip to Seattle this year, so we’re excited to offer a fully virtual offering for everyone as an alternate option.
REGISTER: https://posit.co/conference/

#posit #rstats #python #pydata #DataScience

pytexas, to python
@pytexas@fosstodon.org avatar

Reminder that the PyTexas Meetup is tonight! Come by and chat, hangout, and hear about a journey building an AI app. We'll get started chatting around 7:30pm CST and move on to the main presentation at 8:00pm.

See y'all there!

https://pytexas.org/meetup/join




desertplains, to python
@desertplains@mastodon.social avatar

I wonder if there's a more efficient way of implementing decimal to conversion in

Without recursion, it's ok, but there will be variable assignments operations, which seems to me as something not so efficient, comparing with recursion...

image/png

villares, to python Portuguese
@villares@pynews.com.br avatar
cheukting_ho, to python
@cheukting_ho@fosstodon.org avatar

Hey, do you want to vote in the upcoming @ThePSF elections? Don't forget to affirm your intention to vote (please check your email, including spam). Deadline: June 25th 2024. Not a member yet? Check how you can become a voting member here: https://buff.ly/3X2cLhL

leahawasser, to python
@leahawasser@fosstodon.org avatar

I wrote an overview of @pyOpenSci s second (and my second) experience at https://www.pyopensci.org/blog/recap-pyos-pyconus-2024.html

we had a great time with a record amount of sprinters, open space attendees AND i gave my first talk! I can't wait for next year!

Jigsaw_You, to python
@Jigsaw_You@mastodon.nl avatar

NumPy 2.0 is planned to be released on June 16, 2024. 👍

https://numpy.org/devdocs/release/2.0.0-notes.html

flypig, to python
@flypig@mastodon.social avatar

The and teams from wrote up about our experiences at ... we talk about , , and . Happy memories!

https://medium.com/

pyconau, to python
@pyconau@mastodon.pycon.org.au avatar

🎤 Ready to take your public speaking skills to the next level? PyCon AU has your back!

Whether you're a Student, Educator, Graduate, or Professional, we want YOU! We're seeking talks from first-time or seasoned speakers, and we have a fantastic mentoring program to help your proposal shine.

Read more about it here: pycon.org.au/program/-and-feedback

webknjaz, to python
@webknjaz@mastodon.social avatar

One friend of mine wrote a blog post on his @homeassistant setup:

"Home Assistant helps me survive during missile and drone attacks. Here is how." https://denysdovhan.com/home-assistant-config/config/war/

saving lives IRL y'all!

jscholes, to python
@jscholes@dragonscave.space avatar

Needed to rename a test fixture in a file, and find/replace wasn't up for the job. So I decided to give a go:

I started by pressing Ctrl+F2, for "Change All Occurrences". I think that is basically find/replace, and hence didn't do what I wanted.

Instead, I installed the recommended Python extension, and pressed F2 for "Rename Symbol". That claims to have only made one change, and the references to the function are still using the old name.

So, consider me confused. I'm using , whereby the test fixtures are referenced as function arguments rather than being called directly. Maybe that's what VS Code is struggling with? Either way, I've now spent more time on this than just manually editing the text.

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

Ever wondered how to debug a hanging test in ?

pip install pytest-timeout
pytest --timeout=N_SECONDS

To dump the whole stack trace you can add --timeout_method=thread as well.

Here is an example:

ThomasAlbin, to space
@ThomasAlbin@astrodon.social avatar

Help. How do I apply a Kernel Density Estimator using the Haversine metric for the entire sky map :(

with

levlaz, to python
@levlaz@hachyderm.io avatar

spent an hour debugging jinja template before realizing I was passing in the list variable but not by name. :facepalm: #python #programming

SenseException, to python German
@SenseException@phpc.social avatar

I knew that my time would come when I had to work with and the first thing to know about it is, that Pdb is a friend.

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

I was in the debugger the other day and I was wondering how to write a sorted dictionary to a file while there. 💪

And then I learned that pprint's PrettyPrinter can stream to a file, nice! 😎

Here is how:

geonews, to python
@geonews@mastodon.social avatar
leanpub, to gpt
@leanpub@mastodon.social avatar

The Generative AI Mastery Bundle https://leanpub.com/b/the-generative-ai-mastery-bundle by Aymen El Amri is the featured bundle on the Leanpub homepage! https://leanpub.com

treyhunner, to python
@treyhunner@mastodon.social avatar

If you find the "next" function confusing, you can always use a for loop and a break statement instead

Read more 👉 https://trey.io/UFI8MG

treyhunner, to python
@treyhunner@mastodon.social avatar

If you're trying to write documentation, you probably want a docstring instead of a comment.

Read more 👉 https://trey.io/a5O8qe

#Python

kellogh, to python
@kellogh@hachyderm.io avatar

goodness! no GIL, incremental garbage collection, and a JIT? all in one release? 3.13 is starting to feel like a real language! https://docs.python.org/3.13/whatsnew/3.13.html

hugovk, to python
@hugovk@mastodon.social avatar

🇮🇹 "Benvenuti! Questa è la documentazione di Python 3.12.3."

https://docs.python.org/it/3/

The Python docs are now officially available in Italian! 🚀

If you want to help out with a translation, see https://devguide.python.org/documentation/translating/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines