hugovk, to python
@hugovk@mastodon.social avatar

Python 3.11.9 is out!

This is the last bugfix release, from now on it will only receive security fixes.

More info and find out what a "kugelblitz" is: https://discuss.python.org/t/python-3-11-9-is-available/50502

hugovk,
@hugovk@mastodon.social avatar
foxmask, to linux French
@foxmask@framapiaf.org avatar

Any alternative running on ?
As supervisor is tied to python36 ...

cpontvieux,
@cpontvieux@piaille.fr avatar

@foxmask works just fine with . What made you think it's only for python 3.6?

paulox, to django
@paulox@fosstodon.org avatar

We just released version 2.5.1 of django-configurations with Python 3.12 compatibility 🎉

https://pypi.org/project/django-configurations/2.5.1/

driscollis, to python
@driscollis@mastodon.social avatar

Do you ever need to create a unique user ID? comes with a handy uuid module that you can use for that.

You only need two lines to create a UUID: 🐍🚀

hugovk,
@hugovk@mastodon.social avatar

@driscollis And you can use the CLI with Python 3.12 to quickly generate a UUID!

❯ python -m uuid
e80934a1-9e1e-459d-af4c-56873cee3470

https://docs.python.org/3/library/uuid.html#command-line-usage

paulox, (edited ) to django
@paulox@fosstodon.org avatar

Django 5.0 has been released 🎉

After months of work, everyone can use this great new version 🙌

My favorite features are:
• 🤖 generated fields
• ✅ database default values
• 🔑 prefetch related for generic foreign keys

Which are your favorite features?
https://www.djangoproject.com/weblog/2023/dec/04/django-50-released/

sergi, to python
@sergi@floss.social avatar

Uh, I'm quite disappointed about this future deprecation: https://blog.miguelgrinberg.com/post/it-s-time-for-a-change-datetime-utcnow-is-now-deprecated

It will break some stuff in a few years when it becomes effective.

buck, to python

I found some interesting trends today while working with the simplify function from as part of an experimental project for @formak. A large portion of the time is spent in list comprehensions and calling simplify recursively, which seems to “confuse” the flame graph representation.

Also, I think flame graphs are pretty to look at

hugovk,
@hugovk@mastodon.social avatar

@buck @formak If you're not already, you could compare Python 3.12:

"Dictionary, list, and set comprehensions are now inlined, rather than creating a new single-use function object for each execution of the comprehension. This speeds up execution of a comprehension by up to two times."

https://docs.python.org/3/whatsnew/3.12.html#whatsnew312-pep709

buck,

@hugovk I ran the same script on 3.10, 3.11 and 3.12, all on Sympy 1.12 . 3 samples of the cumulative time for each (in seconds):
3.10: [50.9, 50.7, 49.2]
3.11: [51.6, 53.9, 51.8]
3.12: [58.9, 59.4, 60.3]

Even based on this not very precise profiling with a small sample size, it seems like there's a material slow down from 3.10 -> 3.12 and a possible slowdown for 3.10 -> 3.11 (but the distributions are closer).

Code versions used for testing: https://github.com/buckbaskin/formak/pull/20

hugovk, to python
@hugovk@mastodon.social avatar

In 2019-2021, here's how long it took CI services to support the newest Python release:

2019: Python 3.8

🥇 21 hours: Travis CI
🥈 20 days: @github Actions
🥉 24 days: Azure Pipelines
4️⃣ 25 days: AppVeyor

2020: Python 3.9

🥇 17 hours: @github Actions ⬆️
🥈 20 days: Travis CI ⬇️
🥉 21 days: AppVeyor ⬆️
4️⃣ 22 days: Azure Pipelines ⬇️

2021: Python 3.10

🥇 12 hours: @github Actions ↔️
🥈 17 days: Azure Pipelines ⬆️
🥉 28 days: AppVeyor ↔️
4️⃣ 106 days: Travis CI ⬇️

hugovk,
@hugovk@mastodon.social avatar

And the last two releases saw GHA/AP improve their lead:

2022: Python 3.11

🥇 a day: @github Actions ↔️
🥈 2 days: Azure Pipelines ↔️
🥉 14 days: AppVeyor ↔️
4️⃣ 28 days: Travis CI ↔️

2023: Python 3.12

🥇 13 hours: @github Actions ↔️
🥇 13 hours: Azure Pipelines ↔️
🥉 20 days: Travis CI ⬆️
4️⃣ 28 days: AppVeyor ⬇️

And GitHub Actions already has 3.13 alpha available!

foxmask, to python French
@foxmask@framapiaf.org avatar
pillow, to python
@pillow@fosstodon.org avatar

Pillow 10.1.0 is out!

Python 3.12 is officially supported.

A new ImageOps.cover method has been added, that a resized version of the image, so that the requested size is covered, while maintaining the original aspect ratio.

Pillow had a “better than nothing” default font. Now, if FreeType is available, a version of Aileron Regular is loaded, which can be drawn at chosen font sizes.

Release notes:

https://pillow.readthedocs.io/en/latest/releasenotes/10.1.0.html

Enjoy!

API Additions EpsImagePlugin.gs_binary EpsImagePlugin.gs_windows_binary stores the name of the Ghostscript executable on Windows. EpsImagePlugin.gs_binary has now been added for all platforms, and can be used to customise the name of the executable, or disable use entirely through EpsImagePlugin.gs_binary = False. has_transparency_data Images now have has_transparency_data to indicate whether the image has transparency data, whether in the form of an alpha channel, a palette with an alpha channel, or a “transparency” key in the info dictionary. Even if this attribute is true, the image might still appear solid, if all of the values shown within are opaque. ImageOps.cover Returns a resized version of the image, so that the requested size is covered, while maintaining the original aspect ratio. See Resize relative to a given size for a comparison between this and similar ImageOps methods. size and font_size arguments when using default font Pillow has had a “better than nothing” default font, which can only be drawn at one font size. Now, if FreeType support is available, a version of Aileron Regular is loaded, which can be drawn at chosen font sizes. The following size and font_size arguments can now be used to specify a font size for this new builtin font: ImageFont.load_default(size=24) draw.text((0, 0), "test", font_size=24) draw.textlength((0, 0), "test", font_size=24) draw.textbbox((0, 0), "test", font_size=24) draw.multiline_text((0, 0), "test", font_size=24)
Other Changes Python 3.12 Pillow 10.0.0 had wheels built against Python 3.12 beta, available as a preview to help others prepare for 3.12, and ensure Pillow can be used immediately on release day of 3.12.0 final (2023-10-02, PEP 693). Pillow 10.1.0 now officially supports Python 3.12. Added support for DDS BC5U and 8-bit color indexed images Support has been added to read BC5U DDS files as RGB images, and PALETTEINDEXED8 DDS files as P mode images. Support reading signed 8-bit YCbCr TIFF images TIFF images with unsigned integer data, 8 bits per sample and a photometric interpretation of YCbCr can now be read.
Resize relative to a given size from PIL import Image, ImageOps size = (100, 150) with Image.open("Tests/images/hopper.png") as im: ImageOps.contain(im, size).save("imageops_contain.png") ImageOps.cover(im, size).save("imageops_cover.png") ImageOps.fit(im, size).save("imageops_fit.png") ImageOps.pad(im, size, color="").save("imageops_pad.png") # thumbnail() can also be used, # but will modify the image object in place im.thumbnail(size) im.save("imageops_thumbnail.png")

paulox, to python
@paulox@fosstodon.org avatar

Python 3.12.0 has been released last week 🐍

Ubuntu 23.10 "Mantic Minotaur" has been released today ♉

The best way to use Python 3.12 in Ubuntu is to simply update it to 23.10 🚀

jbzfn, to python
@jbzfn@mastodon.social avatar

🐍 Python 3.12: what didn't make the headlines
➥ Bitecode.dev
https://www.bitecode.dev/p/python-312-what-didnt-make-the-headlines

jugmac00, to python
@jugmac00@fosstodon.org avatar

I just released Flask-Reuploaded 1.4.0 with support for

Are there any users of it among my followers?

iamkale, to python

TIL Python 3.12 introduces a new command line interface for simple querying of SQLite databases 🎉 🐍

python -m sqlite3 [-h] [-v] [filename] [sql]<br></br>

https://docs.python.org/3.12/library/sqlite3.html#sqlite3-cli

hugovk, (edited )
@hugovk@mastodon.social avatar

@iamkale This came up today, my colleague needed a one-off UUID and asked about the import, but I ran the python -m uuid CLI instead! 👍

hugovk, to python
@hugovk@mastodon.social avatar

Python 3.12 is out! 🚀

Find out more and get it here:

https://discuss.python.org/t/python-3-12-0-final-is-here/35186?u=hugovk

And according to https://pyreadiness.org/3.12/ nearly twice as many of the top 360 packages are ready for 3.12 than were on release day for 3.11 or 3.10.

It's likely most will work for 3.12, thanks to everyone who tested early.

2023-10-02:
68 packages (18.9%) support Python 3.12

2022-10-24:
39 packages (10.8%) support Python 3.11

2021-10-04:
38 packages (10.6%) support Python 3.10

hugovk, to python
@hugovk@mastodon.social avatar

My article on how to test the Python 3.12 release candidate was on @pythonbytes!

https://www.youtube.com/live/1zf29sQVGow?t=444

"You basically have a couple of days to make sure that your library will have no hiccups when Python 3.12 ships in a week. You want to make sure that your stuff just works, so here's your chance and a few steps on how to do that."

https://dev.to/hugovk/help-test-python-312-beta-1508/

hugovk, to python
@hugovk@mastodon.social avatar

Hello again library maintainers! 🐍

Because everyone was so good at finding bugs last time (thank you!), we're getting a bonus release candidate! 🎉

🚨🚨 The third and final Python 3.12 RC is out now! Please give it a spin, it's the last chance to find critical problems.

How to test:

https://dev.to/hugovk/help-test-python-312-beta-1508

More info:

https://discuss.python.org/t/python-3-12-0rc3-released-honestly-the-final-release-candidate-i-swear/34093?u=hugovk

hugovk, to python
@hugovk@mastodon.social avatar

Hello library maintainers! 🐍

The second and final Python 3.12 release candidate is out! 🎉

🚨 This means we have under a month before the big release on 2023-10-02 to test our packages and get them ready. And we might help iron out last-minute bugs in Python itself!

I've updated my how-to-test guide:

https://dev.to/hugovk/help-test-python-312-beta-1508

More info:

https://discuss.python.org/t/python-3-12-0rc2-final-release-candidate-released/33105?u=hugovk

hugovk, to programming
@hugovk@mastodon.social avatar

Calling all library maintainers! 🐍

Python 3.12 is in beta! 🎉

This means no new features are allowed in and it's now time to start testing your code. You might find things in your code to fix, or even better, you might find things to fix in Python itself!

Here's how to do it:

https://dev.to/hugovk/help-test-python-312-beta-1508

hugovk, to programming
@hugovk@mastodon.social avatar

For the next @pillow release, we're only planning on releasing 64-bit wheels for Python 3.12, and are considering dropping 32-bit wheels for some older versions too
https://github.com/python-pillow/Pillow/issues/6941

hugovk, to programming
@hugovk@mastodon.social avatar

The second 3.12 beta is being delayed by a week.

From release manager @Yhg1s:

"Because there are a number of important bugs being worked on that impede the testing of 3.12, it would be a shame to delay all that by a month, and it’s only been a week since beta 1, I’m delaying beta 2 until next week."

See https://discuss.python.org/t/delaying-3-12-beta-2-by-a-week/27232 for some of the bugs.

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