-
Notifications
You must be signed in to change notification settings - Fork 304
WhatsNew–Python3.5
Lamparter edited this page Nov 18, 2024
·
1 revision
Important
This file is used by maintainers to track implementation of core functionality from Python 3 into IronPython.
https://docs.python.org/3/whatsnew/3.5.html
- PEP 492: Coroutines with async and await syntax
- PEP 465: A dedicated infix operator for matrix multiplication
- PEP 448: Additional Unpacking Generalizations
- PEP 461: percent formatting support for bytes and bytearray
- PEP 484: Type Hints
- PEP 471: os.scandir() function – a better and faster directory iterator
- PEP 475: Retry system calls failing with EINTR
- PEP 479: Change StopIteration handling inside generators
- PEP 485: A function for testing approximate equality
- PEP 486: Make the Python Launcher aware of virtual environments
- PEP 488: Elimination of PYO files
- PEP 489: Multi-phase extension module initialization
- Added the
"namereplace"error handlers. The"backslashreplace"error handlers now work with decoding and translating. - The
-boption now affects comparisons ofbyteswithint. - New Kazakh
kz1048and Tajikkoi8_tcodecs. - Property docstrings are now writable. This is especially useful for
collections.namedtuple()docstrings. - Circular imports involving relative imports are now supported.
-
typing -
zipapp
-
argparse -
asyncio -
bz2 -
cgi -
cmath -
code -
collections -
collections.abc -
compileall -
concurrent.futures -
configparser -
contextlib -
csv -
curses -
dbm -
difflib -
distutils -
doctest -
email -
enum -
faulthandler -
functools -
glob -
gzip -
heapq -
http -
http.client -
idlelib and IDLE -
imaplib -
imghdr -
importlib -
inspect -
io -
ipaddress -
json -
linecache -
locale -
logging -
lzma -
math -
multiprocessing -
operator -
os -
pathlib -
pickle -
poplib -
re -
readline -
selectors -
shutil -
signal -
smtpd -
smtplib -
sndhdr -
socket -
ssl -
sqlite3 -
subprocess -
sys -
sysconfig -
tarfile -
threading -
time -
timeit -
tkinter -
traceback -
types -
unicodedata -
unittest -
unittest.mock -
urllib -
wsgiref -
xmlrpc -
xml.sax -
zipfile
- Many functions in the
mmap,ossaudiodev,socket,ssl, andcodecsmodules now accept writable bytes-like objects.
- New Keywords:
asyncandawaitare not recommended to be used as variable, class, function or module names. Introduced by PEP 492 in Python 3.5, they will become proper keywords in Python 3.7. - Deprecated Python Behavior: Raising the
StopIterationexception inside a generator will now generate a silentPendingDeprecationWarning, which will become a non-silent deprecation warning in Python 3.6 and will trigger aRuntimeErrorin Python 3.7. See PEP 479: Change StopIteration handling inside generators for details.
- The
formattermodule has now graduated to full deprecation and is still slated for removal in Python 3.6. - The
asyncio.async()function is deprecated in favor ofensure_future(). - The
smtpdmodule has in the past always decoded the DATA portion of email messages using theutf-8codec. This can now be controlled by the new decode__data keyword toSMTPServer. The default value isTrue, but this default is deprecated. Specify the decode__data keyword with an appropriate value to avoid the deprecation warning. - Directly assigning values to the
key,valueandcoded_valueofhttp.cookies.Morselobjects is deprecated. Use theset()method instead. In addition, the undocumented LegalChars parameter ofset()is deprecated, and is now ignored. - Passing a format string as keyword argument format__string to the
format()method of thestring.Formatterclass has been deprecated. - The
platform.dist()andplatform.linux_distribution()functions are now deprecated. Linux distributions use too many different ways of describing themselves, so the functionality is left to a package. - The previously undocumented
from_functionandfrom_builtin methodsof inspect.Signature are deprecated. Use the newSignature.from_callable()method instead. - The
inspect.getargspec()function is deprecated and scheduled to be removed in Python 3.6. - The inspect
getfullargspec(),getcallargs(), andformatargspec()functions are deprecated in favor of theinspect.signature()API. -
getargvalues()andformatargvalues()functions were inadvertently marked as deprecated with the release of Python 3.5.0. - Use of
re.LOCALEflag with str patterns orre.ASCIIis now deprecated. - Use of unrecognized special sequences consisting of
'\'and an ASCII letter in regular expression patterns and replacement patterns now raises a deprecation warning and will be forbidden in Python 3.6. - The undocumented and unofficial use__load__tests default argument of the
unittest.TestLoader.loadTestsFromModule()method now is deprecated and ignored.
- The
__version__attribute has been dropped from the email package. The email code hasn’t been shipped separately from the stdlib for a long time, and the__version__string was not updated in the last few releases. - The internal
Netrcclass in the ftplib module was deprecated in 3.4, and has now been removed. - The concept of .pyo files has been removed.
- The
JoinableQueueclass in the provisionalasynciomodule was deprecated in 3.4.4 and is now removed.
Still looking for more? Browse the Discussions tab, where you can ask questions to the IronPython community.
🐍 IronPython