Everything aside, I enjoyed the "And now for something completely different" part.
I don't think political advocacy belongs in an announcement of a Python version.
Python 3.12
21–30 of 344 posts
Re: Python 3.12
#22Everything aside, I enjoyed the "And now for something completely different" part.
Re: Python 3.12
#23As now f-strings can contain any valid Python expression inside expression components, it is now possible to nest f-strings arbitrarily: >>> f"{f"{f"{f"{f"{f"{1+1}"}"}"}"}"}" '2' Is anyone aware of the change to the interpreter that allows for this?
s = `something ${cond ? `(${v})` : ''} something`Re: Python 3.12
#24PEP 632: Remove the distutils package. See the migration guide for advice replacing the APIs it provided. The third-party Setuptools package continues to provide distutils, if you still require it in Python 3.12 and beyond.
gh-95299: Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment.
The asynchat, asyncore, and imp modules have been removed, along with several unittest.TestCase method aliases.
Re: Python 3.12
#25As now f-strings can contain any valid Python expression inside expression components, it is now possible to nest f-strings arbitrarily: >>> f"{f"{f"{f"{f"{f"{1+1}"}"}"}"}"}" '2' Is anyone aware of the change to the interpreter that allows for this?
$ node
> `${`${`${1+1}`}`}`
'2'Re: Python 3.12
#26Wait, what happened to Python 3.11 for Workgroups? Something's not right here.
Re: Python 3.12
#27As now f-strings can contain any valid Python expression inside expression components, it is now possible to nest f-strings arbitrarily: >>> f"{f"{f"{f"{f"{f"{1+1}"}"}"}"}"}" '2' Is anyone aware of the change to the interpreter that allows for this?
Re: Python 3.12
#28As now f-strings can contain any valid Python expression inside expression components, it is now possible to nest f-strings arbitrarily: >>> f"{f"{f"{f"{f"{f"{1+1}"}"}"}"}"}" '2' Is anyone aware of the change to the interpreter that allows for this?
> `${`${`${`${`${1 + 1}`}`}`}`}`
'2'
It was simply a limitation with the Python parser.Heck, it even works in Vimscript
:echo $'{$'{$'{1 + 1}'}'}'
2Re: Python 3.12
#29Re: Python 3.12
#30As now f-strings can contain any valid Python expression inside expression components, it is now possible to nest f-strings arbitrarily: >>> f"{f"{f"{f"{f"{f"{1+1}"}"}"}"}"}" '2' Is anyone aware of the change to the interpreter that allows for this?
"Hello, it's #{"#{Time.now}"}"
=> "Hello, it's 2023-10-02 09:41:40 -0400"