Ivan Levkivskyi | 27 May 20:58 2016
Picon

Adding NewType() to PEP 484

Hi,

It has been proposed to enhance the typing module with a NewType function
that allows to define simple unique types with almost zero runtime overhead.

The PR containing actual implementation and PEP 484 update is here:
https://github.com/python/typing/pull/226

Review comments are very welcome.

Best regards,
Ivan
<div><div dir="ltr">
<div>
<div>
<div>
<div>
<div>Hi,<br><br>
</div>It has been proposed to enhance the typing module with a NewType function <br>that allows to define simple unique types with almost zero runtime overhead.<br><br>
</div>The PR containing actual implementation and PEP 484 update is here:<br><a href="https://github.com/python/typing/pull/226">https://github.com/python/typing/pull/226</a><br><br>
</div>Review comments are very welcome.<br><br>
</div>Best regards,<br>
</div>Ivan<br>
</div></div>
Python tracker | 27 May 18:08 2016

Summary of Python tracker Issues


ACTIVITY SUMMARY (2016-05-20 - 2016-05-27)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open    5529 (+25)
  closed 33364 (+42)
  total  38893 (+67)

Open issues with patches: 2400 

Issues opened (46)
==================

#16858: tarfile silently hides errors
http://bugs.python.org/issue16858  reopened by mmarkk

#26915: Test identity first in membership operation of ItemsView, Valu
http://bugs.python.org/issue26915  reopened by xiang.zhang

#27067: Improve curses tests
http://bugs.python.org/issue27067  reopened by martin.panter

#27072: random.getrandbits is limited to 2**31-1 bits on 64-bit Window
http://bugs.python.org/issue27072  opened by Steven.Barker

#27073: redundant checks in long_add and long_sub
http://bugs.python.org/issue27073  opened by Oren Milman

#27074: Confusing text about __all__ in __init__.py in tutorial
http://bugs.python.org/issue27074  opened by ztane

#27078: Make f'' strings faster than .format: BUILD_STRING opcode?
http://bugs.python.org/issue27078  opened by ztane

#27079: Bugs in curses.ascii predicates
http://bugs.python.org/issue27079  opened by serhiy.storchaka

#27080: Implement the formatting part of PEP 515, '_' in numeric liter
http://bugs.python.org/issue27080  opened by eric.smith

#27081: Multiprocessing is not robust against sys.stderr changes invol
http://bugs.python.org/issue27081  opened by ppperry

#27083: PYTHONCASEOK is ignored on Windows
http://bugs.python.org/issue27083  opened by eryksun

#27084: Add dir_fd and follow_symlinks kwargs to os.listdir and os.sca
http://bugs.python.org/issue27084  opened by abacabadabacaba

#27085: Make it possible to select return type for os.listdir
http://bugs.python.org/issue27085  opened by abacabadabacaba

#27086: Add closefd argument to os.listdir
http://bugs.python.org/issue27086  opened by abacabadabacaba

#27088: doc: select: epoll.poll: incorrect timeout units, missing maxe
http://bugs.python.org/issue27088  opened by fordsfords

#27095: Simplify MAKE_FUNCTION
http://bugs.python.org/issue27095  opened by Demur Rumed

#27099: IDLE: turn builting extensions into regular modules
http://bugs.python.org/issue27099  opened by terry.reedy

#27100: Attempting to use class with both __enter__ & __exit__ undefin
http://bugs.python.org/issue27100  opened by ellingtonjp

#27101: Compilation of python (modules) for foreign target platform pr
http://bugs.python.org/issue27101  opened by complement

#27103: regrtest: capture stdout (-W) option is incompatible with refl
http://bugs.python.org/issue27103  opened by haypo

#27105: cgi.__all__ is incomplete
http://bugs.python.org/issue27105  opened by Unit03

#27106: configparser.__all__ is incomplete
http://bugs.python.org/issue27106  opened by Unit03

#27107: mailbox.__all__ list is incomplete
http://bugs.python.org/issue27107  opened by Unit03

#27108: mimetypes.__all__ list is incomplete
http://bugs.python.org/issue27108  opened by Unit03

#27109: plistlib.__all__ list is incomplete
http://bugs.python.org/issue27109  opened by Unit03

#27110: smtpd.__all__ list is incomplete
http://bugs.python.org/issue27110  opened by Unit03

#27111: redundant variables in long_add and long_sub
http://bugs.python.org/issue27111  opened by Oren Milman

#27112: tokenize.__all__ list is incomplete
http://bugs.python.org/issue27112  opened by Unit03

#27113: sqlite3 connect parameter "check_same_thread" not documented
http://bugs.python.org/issue27113  opened by Dave Sawyer

#27115: IDLE/tkinter: in simpledialog, <Return> != [OK] click
http://bugs.python.org/issue27115  opened by terry.reedy

#27117: turtledemo does not work with IDLE's new dark theme.
http://bugs.python.org/issue27117  opened by terry.reedy

#27119: `compile` doesn't compile into an AST object as specified
http://bugs.python.org/issue27119  opened by leewz

#27121: imghdr does not support jpg files with Lavc bytes
http://bugs.python.org/issue27121  opened by René Løwe Jacobsen

#27122: Hang with contextlib.ExitStack and subprocess.Popen (regressio
http://bugs.python.org/issue27122  opened by Valentin David

#27123: Allow `install_headers` command to follow specific directory s
http://bugs.python.org/issue27123  opened by sylvain.corlay

#27124: binascii.a2b_hex raises binascii.Error and ValueError, not Typ
http://bugs.python.org/issue27124  opened by Lennart Grahl

#27125: Typo in Python 2 multiprocessing documentation
http://bugs.python.org/issue27125  opened by phx

#27126: Apple-supplied libsqlite3 on OS X is not fork safe;  can cause
http://bugs.python.org/issue27126  opened by evan.jones <at> bluecore.com

#27127: Never have GET_ITER not followed by FOR_ITER
http://bugs.python.org/issue27127  opened by Demur Rumed

#27128: Add _PyObject_FastCall()
http://bugs.python.org/issue27128  opened by haypo

#27129: Wordcode, part 2
http://bugs.python.org/issue27129  opened by serhiy.storchaka

#27130: zlib: OverflowError while trying to compress 2^32 bytes or mor
http://bugs.python.org/issue27130  opened by Klamann

#27131: Unit test random shuffle
http://bugs.python.org/issue27131  opened by jonathan.kross

#27132: New assert method that checks an error message for a list of s
http://bugs.python.org/issue27132  opened by maciej.szulik

#27133: python 3.5.1 will not compile because libffi module uses wrong
http://bugs.python.org/issue27133  opened by blastwave

#27136: sock_connect fails for bluetooth (and probably others)
http://bugs.python.org/issue27136  opened by pyptr2

Most recent 15 issues with no replies (15)
==========================================

#27123: Allow `install_headers` command to follow specific directory s
http://bugs.python.org/issue27123

#27121: imghdr does not support jpg files with Lavc bytes
http://bugs.python.org/issue27121

#27117: turtledemo does not work with IDLE's new dark theme.
http://bugs.python.org/issue27117

#27115: IDLE/tkinter: in simpledialog, <Return> != [OK] click
http://bugs.python.org/issue27115

#27111: redundant variables in long_add and long_sub
http://bugs.python.org/issue27111

#27109: plistlib.__all__ list is incomplete
http://bugs.python.org/issue27109

#27103: regrtest: capture stdout (-W) option is incompatible with refl
http://bugs.python.org/issue27103

#27088: doc: select: epoll.poll: incorrect timeout units, missing maxe
http://bugs.python.org/issue27088

#27080: Implement the formatting part of PEP 515, '_' in numeric liter
http://bugs.python.org/issue27080

#27079: Bugs in curses.ascii predicates
http://bugs.python.org/issue27079

#27074: Confusing text about __all__ in __init__.py in tutorial
http://bugs.python.org/issue27074

#27038: Make os.DirEntry exist
http://bugs.python.org/issue27038

#27030: Remove deprecated re features
http://bugs.python.org/issue27030

#27021: It is not documented that os.writev() suffer from SC_IOV_MAX
http://bugs.python.org/issue27021

#27019: Reduce marshal stack depth for 2.7 on Windows debug build
http://bugs.python.org/issue27019

Most recent 15 issues waiting for review (15)
=============================================

#27136: sock_connect fails for bluetooth (and probably others)
http://bugs.python.org/issue27136

#27131: Unit test random shuffle
http://bugs.python.org/issue27131

#27129: Wordcode, part 2
http://bugs.python.org/issue27129

#27128: Add _PyObject_FastCall()
http://bugs.python.org/issue27128

#27127: Never have GET_ITER not followed by FOR_ITER
http://bugs.python.org/issue27127

#27125: Typo in Python 2 multiprocessing documentation
http://bugs.python.org/issue27125

#27124: binascii.a2b_hex raises binascii.Error and ValueError, not Typ
http://bugs.python.org/issue27124

#27113: sqlite3 connect parameter "check_same_thread" not documented
http://bugs.python.org/issue27113

#27112: tokenize.__all__ list is incomplete
http://bugs.python.org/issue27112

#27111: redundant variables in long_add and long_sub
http://bugs.python.org/issue27111

#27110: smtpd.__all__ list is incomplete
http://bugs.python.org/issue27110

#27109: plistlib.__all__ list is incomplete
http://bugs.python.org/issue27109

#27108: mimetypes.__all__ list is incomplete
http://bugs.python.org/issue27108

#27107: mailbox.__all__ list is incomplete
http://bugs.python.org/issue27107

#27106: configparser.__all__ is incomplete
http://bugs.python.org/issue27106

Top 10 most discussed issues (10)
=================================

#26647: ceval: use Wordcode, 16-bit bytecode
http://bugs.python.org/issue26647  23 msgs

#27067: Improve curses tests
http://bugs.python.org/issue27067  13 msgs

#26632: __all__ decorator
http://bugs.python.org/issue26632   9 msgs

#27051: Create PIP gui
http://bugs.python.org/issue27051   9 msgs

#24225: Idlelib: changing file names
http://bugs.python.org/issue24225   8 msgs

#27122: Hang with contextlib.ExitStack and subprocess.Popen (regressio
http://bugs.python.org/issue27122   8 msgs

#27085: Make it possible to select return type for os.listdir
http://bugs.python.org/issue27085   6 msgs

#18373: let code force str(bytes) to raise an exception
http://bugs.python.org/issue18373   5 msgs

#27032: Remove deprecated html.parser.HTMLParser.unescape()
http://bugs.python.org/issue27032   5 msgs

#27072: random.getrandbits is limited to 2**31-1 bits on 64-bit Window
http://bugs.python.org/issue27072   5 msgs

Issues closed (41)
==================

#5187: distutils upload should prompt for the user/password too
http://bugs.python.org/issue5187  closed by berker.peksag

#5784: raw deflate format and zlib module
http://bugs.python.org/issue5784  closed by martin.panter

#7159: Urllib2 authentication memory.
http://bugs.python.org/issue7159  closed by terry.reedy

#13615: setup.py register fails with -r argument
http://bugs.python.org/issue13615  closed by berker.peksag

#16509: sqlite3 docs do not explain check_same_thread
http://bugs.python.org/issue16509  closed by berker.peksag

#18383: test_warnings modifies warnings.filters when running with "-W 
http://bugs.python.org/issue18383  closed by martin.panter

#23026: Winreg module doesn't support REG_QWORD, small DWORD doc updat
http://bugs.python.org/issue23026  closed by python-dev

#25823: Speed-up oparg decoding on little-endian machines
http://bugs.python.org/issue25823  closed by serhiy.storchaka

#26168: Py_BuildValue may leak 'N' arguments on PyTuple_New failure
http://bugs.python.org/issue26168  closed by serhiy.storchaka

#26306: Can't create abstract tuple
http://bugs.python.org/issue26306  closed by r.david.murray

#26742: imports in test_warnings changes warnings.filters
http://bugs.python.org/issue26742  closed by martin.panter

#26816: Make concurrent.futures.Executor an abc
http://bugs.python.org/issue26816  closed by xiang.zhang

#26877: tarfile use wrong code when read from fileobj
http://bugs.python.org/issue26877  closed by mmarkk

#27054: Python installation problem: No module named 'encodings'
http://bugs.python.org/issue27054  closed by steve.dower

#27060: Documentation of assertItemsEqual in unittest is VERY misleadi
http://bugs.python.org/issue27060  closed by terry.reedy

#27063: Some unittest loader tests are silently skipped by mistake
http://bugs.python.org/issue27063  closed by serhiy.storchaka

#27064: Make py.exe default to Python 3 when used interactively
http://bugs.python.org/issue27064  closed by paul.moore

#27070: Add ability to freeze (seal) mutable objects
http://bugs.python.org/issue27070  closed by eric.smith

#27071: unittest.TestCase.assertCountEqual is a very misleading name
http://bugs.python.org/issue27071  closed by r.david.murray

#27075: Link to StreamReader/Writer from codecs.getreader/writer
http://bugs.python.org/issue27075  closed by berker.peksag

#27076: Doc and comment spelling fixes
http://bugs.python.org/issue27076  closed by martin.panter

#27077: test_port_parameter_types fails with BytesWarning
http://bugs.python.org/issue27077  closed by berker.peksag

#27082: IDLE seriously degrades during and after printing large single
http://bugs.python.org/issue27082  closed by terry.reedy

#27087: unable to use socket send and sendall   due to type error
http://bugs.python.org/issue27087  closed by eric.smith

#27089: I think this is a small bug in urlparse.py
http://bugs.python.org/issue27089  closed by berker.peksag

#27090: Python 3 import error after installation
http://bugs.python.org/issue27090  closed by zach.ware

#27091: Python IDLE doesn't like 💙
http://bugs.python.org/issue27091  closed by eryksun

#27092: ord() raises TypeError on string/bytes input
http://bugs.python.org/issue27092  closed by cwr

#27093: Silence warning in cjkcodecs.h
http://bugs.python.org/issue27093  closed by python-dev

#27094: Floating Point Printing Error with 2+.8553 or 3+.8553
http://bugs.python.org/issue27094  closed by r.david.murray

#27096: Ability to get random bytes from random.Random (as with os.ura
http://bugs.python.org/issue27096  closed by rhettinger

#27097: ceval: Wordcode follow up, explicit unsigned short read
http://bugs.python.org/issue27097  closed by serhiy.storchaka

#27098: Pickle of memoryview not raising error
http://bugs.python.org/issue27098  closed by serhiy.storchaka

#27102: Spam
http://bugs.python.org/issue27102  closed by zach.ware

#27104: enable-framework
http://bugs.python.org/issue27104  closed by alexandra.beebe <at> gmail.com

#27114: SSLContext._load_windows_store_certs fails with PermissionErro
http://bugs.python.org/issue27114  closed by steve.dower

#27116: Documentation for regular expression alphanumeric matching are
http://bugs.python.org/issue27116  closed by zach.ware

#27118: Several Py_XDE/INCREFs in typeobject.c are not necessary
http://bugs.python.org/issue27118  closed by serhiy.storchaka

#27120: xmllib unable to parse in UTF8 format
http://bugs.python.org/issue27120  closed by serhiy.storchaka

#27134: allow str(bytes) raises an exception to be controlled programm
http://bugs.python.org/issue27134  closed by dholth

#27135: nested list produced with multiplication is linked to the same
http://bugs.python.org/issue27135  closed by benjamin.peterson

ACTIVITY SUMMARY (2016-05-20 - 2016-05-27)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open    5529 (+25)
  closed 33364 (+42)
  total  38893 (+67)

Open issues with patches: 2400 

Issues opened (46)
==================

#16858: tarfile silently hides errors
http://bugs.python.org/issue16858  reopened by mmarkk

#26915: Test identity first in membership operation of ItemsView, Valu
http://bugs.python.org/issue26915  reopened by xiang.zhang

#27067: Improve curses tests
http://bugs.python.org/issue27067  reopened by martin.panter

#27072: random.getrandbits is limited to 2**31-1 bits on 64-bit Window
http://bugs.python.org/issue27072  opened by Steven.Barker

#27073: redundant checks in long_add and long_sub
http://bugs.python.org/issue27073  opened by Oren Milman

#27074: Confusing text about __all__ in __init__.py in tutorial
http://bugs.python.org/issue27074  opened by ztane

#27078: Make f'' strings faster than .format: BUILD_STRING opcode?
http://bugs.python.org/issue27078  opened by ztane

#27079: Bugs in curses.ascii predicates
http://bugs.python.org/issue27079  opened by serhiy.storchaka

#27080: Implement the formatting part of PEP 515, '_' in numeric liter
http://bugs.python.org/issue27080  opened by eric.smith

#27081: Multiprocessing is not robust against sys.stderr changes invol
http://bugs.python.org/issue27081  opened by ppperry

#27083: PYTHONCASEOK is ignored on Windows
http://bugs.python.org/issue27083  opened by eryksun

#27084: Add dir_fd and follow_symlinks kwargs to os.listdir and os.sca
http://bugs.python.org/issue27084  opened by abacabadabacaba

#27085: Make it possible to select return type for os.listdir
http://bugs.python.org/issue27085  opened by abacabadabacaba

#27086: Add closefd argument to os.listdir
http://bugs.python.org/issue27086  opened by abacabadabacaba

#27088: doc: select: epoll.poll: incorrect timeout units, missing maxe
http://bugs.python.org/issue27088  opened by fordsfords

#27095: Simplify MAKE_FUNCTION
http://bugs.python.org/issue27095  opened by Demur Rumed

#27099: IDLE: turn builting extensions into regular modules
http://bugs.python.org/issue27099  opened by terry.reedy

#27100: Attempting to use class with both __enter__ & __exit__ undefin
http://bugs.python.org/issue27100  opened by ellingtonjp

#27101: Compilation of python (modules) for foreign target platform pr
http://bugs.python.org/issue27101  opened by complement

#27103: regrtest: capture stdout (-W) option is incompatible with refl
http://bugs.python.org/issue27103  opened by haypo

#27105: cgi.__all__ is incomplete
http://bugs.python.org/issue27105  opened by Unit03

#27106: configparser.__all__ is incomplete
http://bugs.python.org/issue27106  opened by Unit03

#27107: mailbox.__all__ list is incomplete
http://bugs.python.org/issue27107  opened by Unit03

#27108: mimetypes.__all__ list is incomplete
http://bugs.python.org/issue27108  opened by Unit03

#27109: plistlib.__all__ list is incomplete
http://bugs.python.org/issue27109  opened by Unit03

#27110: smtpd.__all__ list is incomplete
http://bugs.python.org/issue27110  opened by Unit03

#27111: redundant variables in long_add and long_sub
http://bugs.python.org/issue27111  opened by Oren Milman

#27112: tokenize.__all__ list is incomplete
http://bugs.python.org/issue27112  opened by Unit03

#27113: sqlite3 connect parameter "check_same_thread" not documented
http://bugs.python.org/issue27113  opened by Dave Sawyer

#27115: IDLE/tkinter: in simpledialog, <Return> != [OK] click
http://bugs.python.org/issue27115  opened by terry.reedy

#27117: turtledemo does not work with IDLE's new dark theme.
http://bugs.python.org/issue27117  opened by terry.reedy

#27119: `compile` doesn't compile into an AST object as specified
http://bugs.python.org/issue27119  opened by leewz

#27121: imghdr does not support jpg files with Lavc bytes
http://bugs.python.org/issue27121  opened by René Løwe Jacobsen

#27122: Hang with contextlib.ExitStack and subprocess.Popen (regressio
http://bugs.python.org/issue27122  opened by Valentin David

#27123: Allow `install_headers` command to follow specific directory s
http://bugs.python.org/issue27123  opened by sylvain.corlay

#27124: binascii.a2b_hex raises binascii.Error and ValueError, not Typ
http://bugs.python.org/issue27124  opened by Lennart Grahl

#27125: Typo in Python 2 multiprocessing documentation
http://bugs.python.org/issue27125  opened by phx

#27126: Apple-supplied libsqlite3 on OS X is not fork safe;  can cause
http://bugs.python.org/issue27126  opened by evan.jones <at> bluecore.com

#27127: Never have GET_ITER not followed by FOR_ITER
http://bugs.python.org/issue27127  opened by Demur Rumed

#27128: Add _PyObject_FastCall()
http://bugs.python.org/issue27128  opened by haypo

#27129: Wordcode, part 2
http://bugs.python.org/issue27129  opened by serhiy.storchaka

#27130: zlib: OverflowError while trying to compress 2^32 bytes or mor
http://bugs.python.org/issue27130  opened by Klamann

#27131: Unit test random shuffle
http://bugs.python.org/issue27131  opened by jonathan.kross

#27132: New assert method that checks an error message for a list of s
http://bugs.python.org/issue27132  opened by maciej.szulik

#27133: python 3.5.1 will not compile because libffi module uses wrong
http://bugs.python.org/issue27133  opened by blastwave

#27136: sock_connect fails for bluetooth (and probably others)
http://bugs.python.org/issue27136  opened by pyptr2

Most recent 15 issues with no replies (15)
==========================================

#27123: Allow `install_headers` command to follow specific directory s
http://bugs.python.org/issue27123

#27121: imghdr does not support jpg files with Lavc bytes
http://bugs.python.org/issue27121

#27117: turtledemo does not work with IDLE's new dark theme.
http://bugs.python.org/issue27117

#27115: IDLE/tkinter: in simpledialog, <Return> != [OK] click
http://bugs.python.org/issue27115

#27111: redundant variables in long_add and long_sub
http://bugs.python.org/issue27111

#27109: plistlib.__all__ list is incomplete
http://bugs.python.org/issue27109

#27103: regrtest: capture stdout (-W) option is incompatible with refl
http://bugs.python.org/issue27103

#27088: doc: select: epoll.poll: incorrect timeout units, missing maxe
http://bugs.python.org/issue27088

#27080: Implement the formatting part of PEP 515, '_' in numeric liter
http://bugs.python.org/issue27080

#27079: Bugs in curses.ascii predicates
http://bugs.python.org/issue27079

#27074: Confusing text about __all__ in __init__.py in tutorial
http://bugs.python.org/issue27074

#27038: Make os.DirEntry exist
http://bugs.python.org/issue27038

#27030: Remove deprecated re features
http://bugs.python.org/issue27030

#27021: It is not documented that os.writev() suffer from SC_IOV_MAX
http://bugs.python.org/issue27021

#27019: Reduce marshal stack depth for 2.7 on Windows debug build
http://bugs.python.org/issue27019

Most recent 15 issues waiting for review (15)
=============================================

#27136: sock_connect fails for bluetooth (and probably others)
http://bugs.python.org/issue27136

#27131: Unit test random shuffle
http://bugs.python.org/issue27131

#27129: Wordcode, part 2
http://bugs.python.org/issue27129

#27128: Add _PyObject_FastCall()
http://bugs.python.org/issue27128

#27127: Never have GET_ITER not followed by FOR_ITER
http://bugs.python.org/issue27127

#27125: Typo in Python 2 multiprocessing documentation
http://bugs.python.org/issue27125

#27124: binascii.a2b_hex raises binascii.Error and ValueError, not Typ
http://bugs.python.org/issue27124

#27113: sqlite3 connect parameter "check_same_thread" not documented
http://bugs.python.org/issue27113

#27112: tokenize.__all__ list is incomplete
http://bugs.python.org/issue27112

#27111: redundant variables in long_add and long_sub
http://bugs.python.org/issue27111

#27110: smtpd.__all__ list is incomplete
http://bugs.python.org/issue27110

#27109: plistlib.__all__ list is incomplete
http://bugs.python.org/issue27109

#27108: mimetypes.__all__ list is incomplete
http://bugs.python.org/issue27108

#27107: mailbox.__all__ list is incomplete
http://bugs.python.org/issue27107

#27106: configparser.__all__ is incomplete
http://bugs.python.org/issue27106

Top 10 most discussed issues (10)
=================================

#26647: ceval: use Wordcode, 16-bit bytecode
http://bugs.python.org/issue26647  23 msgs

#27067: Improve curses tests
http://bugs.python.org/issue27067  13 msgs

#26632: __all__ decorator
http://bugs.python.org/issue26632   9 msgs

#27051: Create PIP gui
http://bugs.python.org/issue27051   9 msgs

#24225: Idlelib: changing file names
http://bugs.python.org/issue24225   8 msgs

#27122: Hang with contextlib.ExitStack and subprocess.Popen (regressio
http://bugs.python.org/issue27122   8 msgs

#27085: Make it possible to select return type for os.listdir
http://bugs.python.org/issue27085   6 msgs

#18373: let code force str(bytes) to raise an exception
http://bugs.python.org/issue18373   5 msgs

#27032: Remove deprecated html.parser.HTMLParser.unescape()
http://bugs.python.org/issue27032   5 msgs

#27072: random.getrandbits is limited to 2**31-1 bits on 64-bit Window
http://bugs.python.org/issue27072   5 msgs

Issues closed (41)
==================

#5187: distutils upload should prompt for the user/password too
http://bugs.python.org/issue5187  closed by berker.peksag

#5784: raw deflate format and zlib module
http://bugs.python.org/issue5784  closed by martin.panter

#7159: Urllib2 authentication memory.
http://bugs.python.org/issue7159  closed by terry.reedy

#13615: setup.py register fails with -r argument
http://bugs.python.org/issue13615  closed by berker.peksag

#16509: sqlite3 docs do not explain check_same_thread
http://bugs.python.org/issue16509  closed by berker.peksag

#18383: test_warnings modifies warnings.filters when running with "-W 
http://bugs.python.org/issue18383  closed by martin.panter

#23026: Winreg module doesn't support REG_QWORD, small DWORD doc updat
http://bugs.python.org/issue23026  closed by python-dev

#25823: Speed-up oparg decoding on little-endian machines
http://bugs.python.org/issue25823  closed by serhiy.storchaka

#26168: Py_BuildValue may leak 'N' arguments on PyTuple_New failure
http://bugs.python.org/issue26168  closed by serhiy.storchaka

#26306: Can't create abstract tuple
http://bugs.python.org/issue26306  closed by r.david.murray

#26742: imports in test_warnings changes warnings.filters
http://bugs.python.org/issue26742  closed by martin.panter

#26816: Make concurrent.futures.Executor an abc
http://bugs.python.org/issue26816  closed by xiang.zhang

#26877: tarfile use wrong code when read from fileobj
http://bugs.python.org/issue26877  closed by mmarkk

#27054: Python installation problem: No module named 'encodings'
http://bugs.python.org/issue27054  closed by steve.dower

#27060: Documentation of assertItemsEqual in unittest is VERY misleadi
http://bugs.python.org/issue27060  closed by terry.reedy

#27063: Some unittest loader tests are silently skipped by mistake
http://bugs.python.org/issue27063  closed by serhiy.storchaka

#27064: Make py.exe default to Python 3 when used interactively
http://bugs.python.org/issue27064  closed by paul.moore

#27070: Add ability to freeze (seal) mutable objects
http://bugs.python.org/issue27070  closed by eric.smith

#27071: unittest.TestCase.assertCountEqual is a very misleading name
http://bugs.python.org/issue27071  closed by r.david.murray

#27075: Link to StreamReader/Writer from codecs.getreader/writer
http://bugs.python.org/issue27075  closed by berker.peksag

#27076: Doc and comment spelling fixes
http://bugs.python.org/issue27076  closed by martin.panter

#27077: test_port_parameter_types fails with BytesWarning
http://bugs.python.org/issue27077  closed by berker.peksag

#27082: IDLE seriously degrades during and after printing large single
http://bugs.python.org/issue27082  closed by terry.reedy

#27087: unable to use socket send and sendall   due to type error
http://bugs.python.org/issue27087  closed by eric.smith

#27089: I think this is a small bug in urlparse.py
http://bugs.python.org/issue27089  closed by berker.peksag

#27090: Python 3 import error after installation
http://bugs.python.org/issue27090  closed by zach.ware

#27091: Python IDLE doesn't like 💙
http://bugs.python.org/issue27091  closed by eryksun

#27092: ord() raises TypeError on string/bytes input
http://bugs.python.org/issue27092  closed by cwr

#27093: Silence warning in cjkcodecs.h
http://bugs.python.org/issue27093  closed by python-dev

#27094: Floating Point Printing Error with 2+.8553 or 3+.8553
http://bugs.python.org/issue27094  closed by r.david.murray

#27096: Ability to get random bytes from random.Random (as with os.ura
http://bugs.python.org/issue27096  closed by rhettinger

#27097: ceval: Wordcode follow up, explicit unsigned short read
http://bugs.python.org/issue27097  closed by serhiy.storchaka

#27098: Pickle of memoryview not raising error
http://bugs.python.org/issue27098  closed by serhiy.storchaka

#27102: Spam
http://bugs.python.org/issue27102  closed by zach.ware

#27104: enable-framework
http://bugs.python.org/issue27104  closed by alexandra.beebe <at> gmail.com

#27114: SSLContext._load_windows_store_certs fails with PermissionErro
http://bugs.python.org/issue27114  closed by steve.dower

#27116: Documentation for regular expression alphanumeric matching are
http://bugs.python.org/issue27116  closed by zach.ware

#27118: Several Py_XDE/INCREFs in typeobject.c are not necessary
http://bugs.python.org/issue27118  closed by serhiy.storchaka

#27120: xmllib unable to parse in UTF8 format
http://bugs.python.org/issue27120  closed by serhiy.storchaka

#27134: allow str(bytes) raises an exception to be controlled programm
http://bugs.python.org/issue27134  closed by dholth

#27135: nested list produced with multiplication is linked to the same
http://bugs.python.org/issue27135  closed by benjamin.peterson
Vitaly Murashev | 27 May 11:49 2016
Picon

embedding - PyImport_AppendInittab() after Py_Initialize()

Could anyone please clarify whether it is correct in python3.5 to call PyImport_AppendInittab() after Py_Initialize()

I found this case among the tests for boost.python
https://github.com/boostorg/python/blob/develop/test/exec.cpp

And this test doesn't work for me with python3.5.An error looks like:

exec.cpp(137): Python Error detected in function 'void __cdecl check_pyerr(bool)'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: 'embedded_hello' is not a built-in module
1 error detected.

After debugging I found out that root cause is in
importlib/_bootstrap.py which do the following:

        if fullname not in sys.builtin_module_names:
            raise ImportError('{!r} is not a built-in module'.format(fullname), name=fullname)

but sys.builtin_module_names is the constant which initialized once in Py_Initialize()

---
To summarize:
Is it a bug in python3.5 or original test inside boost.python should be fixed ?

<div><div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Could anyone please clarify whether it is correct in python3.5 to call PyImport_AppendInittab() after Py_Initialize() <br>
</div>
<br>
</div>I found this case among the tests for boost.python<br><a href="https://github.com/boostorg/python/blob/develop/test/exec.cpp">https://github.com/boostorg/python/blob/develop/test/exec.cpp</a><br><br>
</div>And this test doesn't work for me with <a href="http://python3.5.An">python3.5.An</a> error looks like:<br><br>
</div>exec.cpp(137): Python Error detected in function 'void __cdecl check_pyerr(bool)'<br>Traceback (most recent call last):<br>&nbsp; File "&lt;string&gt;", line 1, in &lt;module&gt;<br>ImportError: 'embedded_hello' is not a built-in module<br>1 error detected.<br><br>
</div>After debugging I found out that root cause is in <br>importlib/_bootstrap.py which do the following:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if fullname not in sys.builtin_module_names:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; raise ImportError('{!r} is not a built-in module'.format(fullname), name=fullname)<br><br>but sys.builtin_module_names is the constant which initialized once in Py_Initialize()<br><br>
</div>---<br>
</div>To summarize:<br>
</div>Is it a bug in python3.5 or original test inside boost.python should be fixed ?<br><br>
</div></div>
Artyom Skrobov | 26 May 12:19 2016

Python parser performance optimizations

Hello,

 

Back in March, I’ve posted a patch at http://bugs.python.org/issue26526 -- “In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA”.

 

The motivation for this patch was to enable a memory footprint optimization, discussed at http://bugs.python.org/issue26415

My proposed optimization reduces the memory footprint by up to 30% on the standard benchmarks, and by 200% on a degenerate case which sparked the discussion.

The run time stays unaffected by this optimization.

 

Python Developer’s Guide says: “If you don’t get a response within a few days after pinging the issue, then you can try emailing python-dev <at> python.org asking for someone to review your patch.”

 

So, here I am.

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.
<div>
<div class="WordSection1">
<p class="MsoNormal">Hello,<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Back in March, I&rsquo;ve posted a patch at <a href="http://bugs.python.org/issue26526">
http://bugs.python.org/issue26526</a> -- &ldquo;In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA&rdquo;.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">The motivation for this patch was to enable a memory footprint optimization, discussed at
<a href="http://bugs.python.org/issue26415">http://bugs.python.org/issue26415</a><p></p></p>
<p class="MsoNormal">My proposed optimization reduces the memory footprint by up to 30% on the standard benchmarks, and by 200% on a degenerate case which sparked the discussion.<p></p></p>
<p class="MsoNormal">The run time stays unaffected by this optimization.<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Python Developer&rsquo;s Guide says: &ldquo;If you don&rsquo;t get a response within a few days after pinging the issue, then you can try emailing
<a href="mailto:python-dev <at> python.org">python-dev <at> python.org</a> asking for someone to review your patch.&rdquo;<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">So, here I am.<p></p></p>
</div>
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose,
 or store or copy the information in any medium. Thank you.
</div>
Chris Barker | 25 May 21:29 2016
Picon

runtime dlls on Windows

Hi folks,

The standard build of Py3.5 for Windows is built with VS2015 (correct??) And it includes the runtime dlls it needs.

However, we've found that wxPython wheels for win32 (not sure about win64) also need:

MSVCP140.DLL

So: wxPython could include that of course, But it looks like it's getting included with the Matplotlib wheels already (so folks with Matplotlib can run wx....). I'm just guessing, but this looks like the standard run time for C++ with that compiler. 

Python itself doesn't use C++, of course, but maybe we should include that dll with Python anyway -- that way folks can build wheels of packages with C++ extensions  in the normal way, and those wheels will "just work", and we don't have to have every individual package ship the same dll.

-CHB


--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker <at> noaa.gov
<div><div dir="ltr">Hi folks,<div><br></div>
<div>The standard build of Py3.5 for Windows is built with VS2015 (correct??) And it includes the runtime dlls it needs.</div>
<div><br></div>
<div>However, we've found that wxPython wheels for win32 (not sure about win64) also need:</div>
<div><br></div>
<div>
<span>MSVCP140.DLL</span><br>
</div>
<div><span><br></span></div>
<div><span>So: wxPython could include that of course, But it looks like it's getting included with the Matplotlib wheels already (so folks with Matplotlib can run wx....). I'm just guessing, but this looks like the standard run time for C++ with that compiler.&nbsp;</span></div>
<div><span><br></span></div>
<div><span>Python itself doesn't use C++, of course, but maybe we should include that dll with Python anyway -- that way folks can build wheels of packages with C++ extensions &nbsp;in the normal way, and those wheels will "just work", and we don't have to have every individual package ship the same dll.</span></div>
<div><span><br></span></div>
<div><span>-CHB</span></div>
<div><br></div>
<div>
<div><br></div>-- <br><div class="gmail_signature">
<br>Christopher Barker, Ph.D.<br>Oceanographer<br><br>Emergency Response Division<br>NOAA/NOS/OR&amp;R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(206) 526-6959&nbsp;&nbsp; voice<br>7600 Sand Point Way NE &nbsp;&nbsp;(206) 526-6329&nbsp;&nbsp; fax<br>Seattle, WA &nbsp;98115 &nbsp; &nbsp; &nbsp;&nbsp;(206) 526-6317&nbsp;&nbsp; main reception<br><br><a href="mailto:Chris.Barker <at> noaa.gov" target="_blank">Chris.Barker <at> noaa.gov</a>
</div>
</div>
</div></div>
Christian Heimes | 25 May 12:29 2016
Gravatar

New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512

Hi everybody,

I have three hashing-related patches for Python 3.6 that are waiting for
review. Altogether the three patches add ten new hash algorithms to the
hashlib module: SHA3 (224, 256, 384, 512), SHAKE (SHA3 XOF 128, 256),
BLAKE2 (blake2b, blake2s) and truncated SHA512 (224, 256).

SHA-3 / SHAKE: https://bugs.python.org/issue16113
BLAKE2: https://bugs.python.org/issue26798
SHA512/224 / SHA512/256: https://bugs.python.org/issue26834

I like to push the patches during the sprints at PyCon. Please assist
with reviews.

Regards,
Christian
Brett Cannon | 20 May 18:43 2016
Gravatar

Removing the provisional label from pathlib

Three questions:
  1. Should pathlib gain __fspath__() all the way back to 3.4?
  2. Should pathlib's constructor support __fspath__() all the way back to 3.4? (separate question as os.fspath() will only be in 3.6; and if we backport I'm not looking forward to making Typeshed happy w/o os.PathLike being available only in 3.6 :/)
  3. Should the docs from 3.4 and forward reflect the removal of the provisional status? (I assume yes, but wanted to double-check)
And a quick thanks to Guido for removing `path` from pathlib for me already. :)
<div><div dir="ltr">Three questions:<div>
<ol>
<li>Should pathlib gain __fspath__() all the way back to 3.4?</li>
<li>Should pathlib's constructor support __fspath__() all the way back to 3.4? (separate question as os.fspath() will only be in 3.6; and if we backport I'm not looking forward to making Typeshed happy w/o os.PathLike being available only in 3.6 :/)</li>
<li>Should the docs from 3.4 and forward reflect the removal of the provisional status? (I assume yes, but wanted to double-check)</li>
</ol>
<div>And a quick thanks to Guido for removing `path` from pathlib for me already. :)</div>
</div>
</div></div>
Brett Cannon | 20 May 18:27 2016
Gravatar

Why does PEP 7/8 explicitly suggest 2 spaces after a period?

Is there a specific reason for calling out two spaces in comments after a period(I realize it's probably for consistency, but I sure don't ever think about this when I write comment)? Otherwise who actually still writes using two spaces after punctuation? :)
<div><div dir="ltr">Is there a specific reason for calling out two spaces in comments after a period(I realize it's probably for consistency, but I sure don't ever think about this when I write comment)? Otherwise who actually still writes using two spaces after punctuation? :)</div></div>
Python tracker | 20 May 18:08 2016

Summary of Python tracker Issues


ACTIVITY SUMMARY (2016-05-13 - 2016-05-20)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open    5504 ( +3)
  closed 33322 (+52)
  total  38826 (+55)

Open issues with patches: 2381 

Issues opened (33)
==================

#26741: subprocess.Popen should emit a ResourceWarning in destructor i
http://bugs.python.org/issue26741  reopened by haypo

#27015: subprocess.CalledProcessError's repr changes based on kwargs, 
http://bugs.python.org/issue27015  opened by Taywee

#27016: BlockingIOError not raised inside function.
http://bugs.python.org/issue27016  opened by pcunningham80 <at> gmail.com

#27019: Reduce marshal stack depth for 2.7 on Windows debug build
http://bugs.python.org/issue27019  opened by db3l

#27020: os.writev() does not accept generators (as buffers argument)
http://bugs.python.org/issue27020  opened by mmarkk

#27021: It is not documented that os.writev() suffer from SC_IOV_MAX
http://bugs.python.org/issue27021  opened by mmarkk

#27022: expose sendmmsg() syscall  in sockets API
http://bugs.python.org/issue27022  opened by mmarkk

#27024: IDLE shutdown glitch when started by import
http://bugs.python.org/issue27024  opened by terry.reedy

#27025: More human readable generated widget names
http://bugs.python.org/issue27025  opened by serhiy.storchaka

#27026: async/await keywords are missing from reference docs
http://bugs.python.org/issue27026  opened by hongminhee

#27027: add is_android in test.support to detect Android platform
http://bugs.python.org/issue27027  opened by xdegaye

#27029: Remove support of deprecated mode 'U' in zipfile
http://bugs.python.org/issue27029  opened by serhiy.storchaka

#27030: Remove deprecated re features
http://bugs.python.org/issue27030  opened by serhiy.storchaka

#27032: Remove deprecated html.parser.HTMLParser.unescape()
http://bugs.python.org/issue27032  opened by serhiy.storchaka

#27033: Change the decode_data default in smtpd to False
http://bugs.python.org/issue27033  opened by serhiy.storchaka

#27035: Cannot set exit code in atexit callback
http://bugs.python.org/issue27035  opened by Melebius

#27036: Mark up of references in different form
http://bugs.python.org/issue27036  opened by serhiy.storchaka

#27037: Universal newline support for zipFile.ZipExtFile.read() is not
http://bugs.python.org/issue27037  opened by David Pitchford

#27038: Make os.DirEntry exist
http://bugs.python.org/issue27038  opened by brett.cannon

#27043: Describe what ‘inspect.cleandoc’ does to synopsis line.
http://bugs.python.org/issue27043  opened by bignose

#27048: distutils._msvccompiler._get_vc_env() fails with UnicodeDecode
http://bugs.python.org/issue27048  opened by ebarry

#27050: Demote run() below the high level APIs in subprocess docs
http://bugs.python.org/issue27050  opened by ncoghlan

#27051: Create PIP gui
http://bugs.python.org/issue27051  opened by upendra-k14

#27052: Python2.7.11+ as in Debian testing and Ubuntu 16.04 LTS crashe
http://bugs.python.org/issue27052  opened by Ján Jockusch

#27054: Python installation problem: No module named 'encodings'
http://bugs.python.org/issue27054  opened by lauer <at> wpi.edu

#27060: Documentation of assertItemsEqual in unittest is VERY misleadi
http://bugs.python.org/issue27060  opened by vitaly

#27062: `inspect` doesn't have `__all__`
http://bugs.python.org/issue27062  opened by leewz

#27063: Some unittest loader tests are silently skipped by mistake
http://bugs.python.org/issue27063  opened by serhiy.storchaka

#27064: Make py.exe default to Python 3 when used interactively
http://bugs.python.org/issue27064  opened by paul.moore

#27066: SystemError if custom opener returns -1
http://bugs.python.org/issue27066  opened by barry

#27067: Improve curses tests
http://bugs.python.org/issue27067  opened by serhiy.storchaka

#27068: Add a detach() method to subprocess.Popen
http://bugs.python.org/issue27068  opened by haypo

#27069: webbrowser creates zombi processes in the background mode
http://bugs.python.org/issue27069  opened by haypo

Most recent 15 issues with no replies (15)
==========================================

#27067: Improve curses tests
http://bugs.python.org/issue27067

#27063: Some unittest loader tests are silently skipped by mistake
http://bugs.python.org/issue27063

#27060: Documentation of assertItemsEqual in unittest is VERY misleadi
http://bugs.python.org/issue27060

#27051: Create PIP gui
http://bugs.python.org/issue27051

#27043: Describe what ‘inspect.cleandoc’ does to synopsis line.
http://bugs.python.org/issue27043

#27038: Make os.DirEntry exist
http://bugs.python.org/issue27038

#27032: Remove deprecated html.parser.HTMLParser.unescape()
http://bugs.python.org/issue27032

#27030: Remove deprecated re features
http://bugs.python.org/issue27030

#27029: Remove support of deprecated mode 'U' in zipfile
http://bugs.python.org/issue27029

#27021: It is not documented that os.writev() suffer from SC_IOV_MAX
http://bugs.python.org/issue27021

#27019: Reduce marshal stack depth for 2.7 on Windows debug build
http://bugs.python.org/issue27019

#27006: C implementation of Decimal.from_float() bypasses __new__ and 
http://bugs.python.org/issue27006

#27002: Support different modes in posixpath.realpath()
http://bugs.python.org/issue27002

#26997: Docs for pdb should note that __future__ magic doesn't work
http://bugs.python.org/issue26997

#26990: file.tell affect decoding
http://bugs.python.org/issue26990

Most recent 15 issues waiting for review (15)
=============================================

#27067: Improve curses tests
http://bugs.python.org/issue27067

#27066: SystemError if custom opener returns -1
http://bugs.python.org/issue27066

#27064: Make py.exe default to Python 3 when used interactively
http://bugs.python.org/issue27064

#27063: Some unittest loader tests are silently skipped by mistake
http://bugs.python.org/issue27063

#27048: distutils._msvccompiler._get_vc_env() fails with UnicodeDecode
http://bugs.python.org/issue27048

#27036: Mark up of references in different form
http://bugs.python.org/issue27036

#27033: Change the decode_data default in smtpd to False
http://bugs.python.org/issue27033

#27032: Remove deprecated html.parser.HTMLParser.unescape()
http://bugs.python.org/issue27032

#27030: Remove deprecated re features
http://bugs.python.org/issue27030

#27029: Remove support of deprecated mode 'U' in zipfile
http://bugs.python.org/issue27029

#27027: add is_android in test.support to detect Android platform
http://bugs.python.org/issue27027

#27026: async/await keywords are missing from reference docs
http://bugs.python.org/issue27026

#27025: More human readable generated widget names
http://bugs.python.org/issue27025

#27024: IDLE shutdown glitch when started by import
http://bugs.python.org/issue27024

#27019: Reduce marshal stack depth for 2.7 on Windows debug build
http://bugs.python.org/issue27019

Top 10 most discussed issues (10)
=================================

#26870: Unexpected call to readline's add_history in call_readline
http://bugs.python.org/issue26870  11 msgs

#27048: distutils._msvccompiler._get_vc_env() fails with UnicodeDecode
http://bugs.python.org/issue27048  11 msgs

#20371: datetime.datetime.replace bypasses a subclass's __new__
http://bugs.python.org/issue20371   9 msgs

#27036: Mark up of references in different form
http://bugs.python.org/issue27036   8 msgs

#27054: Python installation problem: No module named 'encodings'
http://bugs.python.org/issue27054   8 msgs

#26168: Py_BuildValue may leak 'N' arguments on PyTuple_New failure
http://bugs.python.org/issue26168   6 msgs

#26331: Tokenizer: allow underscores for grouping in numeric literals
http://bugs.python.org/issue26331   6 msgs

#26369: unicode.decode and str.encode are unnecessarily confusing for 
http://bugs.python.org/issue26369   6 msgs

#26814: [WIP] Add a new _PyObject_FastCall() function which avoids the
http://bugs.python.org/issue26814   6 msgs

#26839: Python 3.5 running on Linux kernel 3.17+ can block at startup 
http://bugs.python.org/issue26839   6 msgs

Issues closed (48)
==================

#3213: "pydoc -p" should listen to [::] if IPv6 is supported
http://bugs.python.org/issue3213  closed by martin.panter

#3948: readline steals sigwinch
http://bugs.python.org/issue3948  closed by martin.panter

#11980: zipfile.ZipFile.write should accept fp as argument
http://bugs.python.org/issue11980  closed by serhiy.storchaka

#14132: Redirect is not working correctly in urllib2
http://bugs.python.org/issue14132  closed by martin.panter

#18410: Idle: test SearchDialog.py
http://bugs.python.org/issue18410  closed by terry.reedy

#20640: Idle: test configHelpSourceEdit
http://bugs.python.org/issue20640  closed by terry.reedy

#20792: Idle: test PathBrowser more
http://bugs.python.org/issue20792  closed by terry.reedy

#21676: IDLE - Test Replace Dialog
http://bugs.python.org/issue21676  closed by terry.reedy

#21703: IDLE: Test UndoDelegator
http://bugs.python.org/issue21703  closed by terry.reedy

#21939: IDLE - Test Percolator
http://bugs.python.org/issue21939  closed by terry.reedy

#23275: Can assign [] = (), but not () = []
http://bugs.python.org/issue23275  closed by berker.peksag

#23958: compile warnings in libffi
http://bugs.python.org/issue23958  closed by berker.peksag

#23977: Enhancing IDLE's test_delegator.py unit test
http://bugs.python.org/issue23977  closed by terry.reedy

#25285: regrtest: run tests in subprocesses with -j1 on buildbots
http://bugs.python.org/issue25285  closed by haypo

#25650: Mismatching documentation <=> behaviour for typing.Any
http://bugs.python.org/issue25650  closed by berker.peksag

#25747: test_idle failure in leaks searching mode
http://bugs.python.org/issue25747  closed by terry.reedy

#26039: More flexibility in zipfile write interface
http://bugs.python.org/issue26039  closed by takluyver

#26807: mock_open()().readline() fails at EOF
http://bugs.python.org/issue26807  closed by rbcollins

#26848: asyncio.subprocess's communicate() method mishandles empty inp
http://bugs.python.org/issue26848  closed by berker.peksag

#26850: PyMem_RawMalloc(): update also sys.getallocatedblocks() in deb
http://bugs.python.org/issue26850  closed by haypo

#26938: android: test_concurrent_futures hangs on armv7
http://bugs.python.org/issue26938  closed by xdegaye

#26948: Simplify PyImport_ImportModuleLevelObject: avoid temporary tup
http://bugs.python.org/issue26948  closed by haypo

#26991: Possible reference leak in MAKE_FUNCTION
http://bugs.python.org/issue26991  closed by python-dev

#26995: Add tests for parsing float and object arguments
http://bugs.python.org/issue26995  closed by serhiy.storchaka

#27014: maximum recursion depth when using typing options
http://bugs.python.org/issue27014  closed by gvanrossum

#27017: Python3.5.1: type().startswith()
http://bugs.python.org/issue27017  closed by SilentGhost

#27018: Incorrect documentation of select module
http://bugs.python.org/issue27018  closed by orsenthil

#27023: Documentation of tempfile.gettempdir() does not mention it onl
http://bugs.python.org/issue27023  closed by r.david.murray

#27028: configparser BasicInterpolation issue with %()
http://bugs.python.org/issue27028  closed by r.david.murray

#27031: Remove interface to obsolete Tk commands
http://bugs.python.org/issue27031  closed by serhiy.storchaka

#27034: Remove deprecated asynchat.fifo
http://bugs.python.org/issue27034  closed by serhiy.storchaka

#27039: bytearray.remove cannot remove bytes with value greater than 1
http://bugs.python.org/issue27039  closed by serhiy.storchaka

#27040: asyncio: Add loop.get_exception_handler method
http://bugs.python.org/issue27040  closed by yselivanov

#27041: asyncio: Add loop.create_future method
http://bugs.python.org/issue27041  closed by yselivanov

#27042: Incorrect grammar for function definitions
http://bugs.python.org/issue27042  closed by python-dev

#27044: Stop test_idle memory leaks
http://bugs.python.org/issue27044  closed by terry.reedy

#27045: Forward slashes in Windows paths
http://bugs.python.org/issue27045  closed by ebarry

#27046: Emoji support in Pie Chart legend with matplotlib
http://bugs.python.org/issue27046  closed by berker.peksag

#27047: O(1) deque indexing
http://bugs.python.org/issue27047  closed by rhettinger

#27049: Typo in "The Python Language Reference" 7.11 -- "individiual"
http://bugs.python.org/issue27049  closed by ned.deily

#27053: Python Windows x86-64 embeddable zip file missing module encod
http://bugs.python.org/issue27053  closed by steve.dower

#27055: python fails to run zipapp when zip contains comments
http://bugs.python.org/issue27055  closed by serhiy.storchaka

#27056: pickle: constant propagation in _Unpickler_Read()
http://bugs.python.org/issue27056  closed by haypo

#27057: os.set_inheritable(): fall back to fcntl() if ioctl() fails wi
http://bugs.python.org/issue27057  closed by haypo

#27058: Tkinter's canvas' dashed lines have incorrect segment lengths
http://bugs.python.org/issue27058  closed by kms70847

#27059: find_spec and find_loader ignore package/path argument
http://bugs.python.org/issue27059  closed by brett.cannon

#27061: 2.7.11 OS X pkg doesn't put proper version in the receipts
http://bugs.python.org/issue27061  closed by ned.deily

#27065: robotparser user agent considered hostile by mod_security rule
http://bugs.python.org/issue27065  closed by berker.peksag

ACTIVITY SUMMARY (2016-05-13 - 2016-05-20)
Python tracker at http://bugs.python.org/

To view or respond to any of the issues listed below, click on the issue.
Do NOT respond to this message.

Issues counts and deltas:
  open    5504 ( +3)
  closed 33322 (+52)
  total  38826 (+55)

Open issues with patches: 2381 

Issues opened (33)
==================

#26741: subprocess.Popen should emit a ResourceWarning in destructor i
http://bugs.python.org/issue26741  reopened by haypo

#27015: subprocess.CalledProcessError's repr changes based on kwargs, 
http://bugs.python.org/issue27015  opened by Taywee

#27016: BlockingIOError not raised inside function.
http://bugs.python.org/issue27016  opened by pcunningham80 <at> gmail.com

#27019: Reduce marshal stack depth for 2.7 on Windows debug build
http://bugs.python.org/issue27019  opened by db3l

#27020: os.writev() does not accept generators (as buffers argument)
http://bugs.python.org/issue27020  opened by mmarkk

#27021: It is not documented that os.writev() suffer from SC_IOV_MAX
http://bugs.python.org/issue27021  opened by mmarkk

#27022: expose sendmmsg() syscall  in sockets API
http://bugs.python.org/issue27022  opened by mmarkk

#27024: IDLE shutdown glitch when started by import
http://bugs.python.org/issue27024  opened by terry.reedy

#27025: More human readable generated widget names
http://bugs.python.org/issue27025  opened by serhiy.storchaka

#27026: async/await keywords are missing from reference docs
http://bugs.python.org/issue27026  opened by hongminhee

#27027: add is_android in test.support to detect Android platform
http://bugs.python.org/issue27027  opened by xdegaye

#27029: Remove support of deprecated mode 'U' in zipfile
http://bugs.python.org/issue27029  opened by serhiy.storchaka

#27030: Remove deprecated re features
http://bugs.python.org/issue27030  opened by serhiy.storchaka

#27032: Remove deprecated html.parser.HTMLParser.unescape()
http://bugs.python.org/issue27032  opened by serhiy.storchaka

#27033: Change the decode_data default in smtpd to False
http://bugs.python.org/issue27033  opened by serhiy.storchaka

#27035: Cannot set exit code in atexit callback
http://bugs.python.org/issue27035  opened by Melebius

#27036: Mark up of references in different form
http://bugs.python.org/issue27036  opened by serhiy.storchaka

#27037: Universal newline support for zipFile.ZipExtFile.read() is not
http://bugs.python.org/issue27037  opened by David Pitchford

#27038: Make os.DirEntry exist
http://bugs.python.org/issue27038  opened by brett.cannon

#27043: Describe what ‘inspect.cleandoc’ does to synopsis line.
http://bugs.python.org/issue27043  opened by bignose

#27048: distutils._msvccompiler._get_vc_env() fails with UnicodeDecode
http://bugs.python.org/issue27048  opened by ebarry

#27050: Demote run() below the high level APIs in subprocess docs
http://bugs.python.org/issue27050  opened by ncoghlan

#27051: Create PIP gui
http://bugs.python.org/issue27051  opened by upendra-k14

#27052: Python2.7.11+ as in Debian testing and Ubuntu 16.04 LTS crashe
http://bugs.python.org/issue27052  opened by Ján Jockusch

#27054: Python installation problem: No module named 'encodings'
http://bugs.python.org/issue27054  opened by lauer <at> wpi.edu

#27060: Documentation of assertItemsEqual in unittest is VERY misleadi
http://bugs.python.org/issue27060  opened by vitaly

#27062: `inspect` doesn't have `__all__`
http://bugs.python.org/issue27062  opened by leewz

#27063: Some unittest loader tests are silently skipped by mistake
http://bugs.python.org/issue27063  opened by serhiy.storchaka

#27064: Make py.exe default to Python 3 when used interactively
http://bugs.python.org/issue27064  opened by paul.moore

#27066: SystemError if custom opener returns -1
http://bugs.python.org/issue27066  opened by barry

#27067: Improve curses tests
http://bugs.python.org/issue27067  opened by serhiy.storchaka

#27068: Add a detach() method to subprocess.Popen
http://bugs.python.org/issue27068  opened by haypo

#27069: webbrowser creates zombi processes in the background mode
http://bugs.python.org/issue27069  opened by haypo

Most recent 15 issues with no replies (15)
==========================================

#27067: Improve curses tests
http://bugs.python.org/issue27067

#27063: Some unittest loader tests are silently skipped by mistake
http://bugs.python.org/issue27063

#27060: Documentation of assertItemsEqual in unittest is VERY misleadi
http://bugs.python.org/issue27060

#27051: Create PIP gui
http://bugs.python.org/issue27051

#27043: Describe what ‘inspect.cleandoc’ does to synopsis line.
http://bugs.python.org/issue27043

#27038: Make os.DirEntry exist
http://bugs.python.org/issue27038

#27032: Remove deprecated html.parser.HTMLParser.unescape()
http://bugs.python.org/issue27032

#27030: Remove deprecated re features
http://bugs.python.org/issue27030

#27029: Remove support of deprecated mode 'U' in zipfile
http://bugs.python.org/issue27029

#27021: It is not documented that os.writev() suffer from SC_IOV_MAX
http://bugs.python.org/issue27021

#27019: Reduce marshal stack depth for 2.7 on Windows debug build
http://bugs.python.org/issue27019

#27006: C implementation of Decimal.from_float() bypasses __new__ and 
http://bugs.python.org/issue27006

#27002: Support different modes in posixpath.realpath()
http://bugs.python.org/issue27002

#26997: Docs for pdb should note that __future__ magic doesn't work
http://bugs.python.org/issue26997

#26990: file.tell affect decoding
http://bugs.python.org/issue26990

Most recent 15 issues waiting for review (15)
=============================================

#27067: Improve curses tests
http://bugs.python.org/issue27067

#27066: SystemError if custom opener returns -1
http://bugs.python.org/issue27066

#27064: Make py.exe default to Python 3 when used interactively
http://bugs.python.org/issue27064

#27063: Some unittest loader tests are silently skipped by mistake
http://bugs.python.org/issue27063

#27048: distutils._msvccompiler._get_vc_env() fails with UnicodeDecode
http://bugs.python.org/issue27048

#27036: Mark up of references in different form
http://bugs.python.org/issue27036

#27033: Change the decode_data default in smtpd to False
http://bugs.python.org/issue27033

#27032: Remove deprecated html.parser.HTMLParser.unescape()
http://bugs.python.org/issue27032

#27030: Remove deprecated re features
http://bugs.python.org/issue27030

#27029: Remove support of deprecated mode 'U' in zipfile
http://bugs.python.org/issue27029

#27027: add is_android in test.support to detect Android platform
http://bugs.python.org/issue27027

#27026: async/await keywords are missing from reference docs
http://bugs.python.org/issue27026

#27025: More human readable generated widget names
http://bugs.python.org/issue27025

#27024: IDLE shutdown glitch when started by import
http://bugs.python.org/issue27024

#27019: Reduce marshal stack depth for 2.7 on Windows debug build
http://bugs.python.org/issue27019

Top 10 most discussed issues (10)
=================================

#26870: Unexpected call to readline's add_history in call_readline
http://bugs.python.org/issue26870  11 msgs

#27048: distutils._msvccompiler._get_vc_env() fails with UnicodeDecode
http://bugs.python.org/issue27048  11 msgs

#20371: datetime.datetime.replace bypasses a subclass's __new__
http://bugs.python.org/issue20371   9 msgs

#27036: Mark up of references in different form
http://bugs.python.org/issue27036   8 msgs

#27054: Python installation problem: No module named 'encodings'
http://bugs.python.org/issue27054   8 msgs

#26168: Py_BuildValue may leak 'N' arguments on PyTuple_New failure
http://bugs.python.org/issue26168   6 msgs

#26331: Tokenizer: allow underscores for grouping in numeric literals
http://bugs.python.org/issue26331   6 msgs

#26369: unicode.decode and str.encode are unnecessarily confusing for 
http://bugs.python.org/issue26369   6 msgs

#26814: [WIP] Add a new _PyObject_FastCall() function which avoids the
http://bugs.python.org/issue26814   6 msgs

#26839: Python 3.5 running on Linux kernel 3.17+ can block at startup 
http://bugs.python.org/issue26839   6 msgs

Issues closed (48)
==================

#3213: "pydoc -p" should listen to [::] if IPv6 is supported
http://bugs.python.org/issue3213  closed by martin.panter

#3948: readline steals sigwinch
http://bugs.python.org/issue3948  closed by martin.panter

#11980: zipfile.ZipFile.write should accept fp as argument
http://bugs.python.org/issue11980  closed by serhiy.storchaka

#14132: Redirect is not working correctly in urllib2
http://bugs.python.org/issue14132  closed by martin.panter

#18410: Idle: test SearchDialog.py
http://bugs.python.org/issue18410  closed by terry.reedy

#20640: Idle: test configHelpSourceEdit
http://bugs.python.org/issue20640  closed by terry.reedy

#20792: Idle: test PathBrowser more
http://bugs.python.org/issue20792  closed by terry.reedy

#21676: IDLE - Test Replace Dialog
http://bugs.python.org/issue21676  closed by terry.reedy

#21703: IDLE: Test UndoDelegator
http://bugs.python.org/issue21703  closed by terry.reedy

#21939: IDLE - Test Percolator
http://bugs.python.org/issue21939  closed by terry.reedy

#23275: Can assign [] = (), but not () = []
http://bugs.python.org/issue23275  closed by berker.peksag

#23958: compile warnings in libffi
http://bugs.python.org/issue23958  closed by berker.peksag

#23977: Enhancing IDLE's test_delegator.py unit test
http://bugs.python.org/issue23977  closed by terry.reedy

#25285: regrtest: run tests in subprocesses with -j1 on buildbots
http://bugs.python.org/issue25285  closed by haypo

#25650: Mismatching documentation <=> behaviour for typing.Any
http://bugs.python.org/issue25650  closed by berker.peksag

#25747: test_idle failure in leaks searching mode
http://bugs.python.org/issue25747  closed by terry.reedy

#26039: More flexibility in zipfile write interface
http://bugs.python.org/issue26039  closed by takluyver

#26807: mock_open()().readline() fails at EOF
http://bugs.python.org/issue26807  closed by rbcollins

#26848: asyncio.subprocess's communicate() method mishandles empty inp
http://bugs.python.org/issue26848  closed by berker.peksag

#26850: PyMem_RawMalloc(): update also sys.getallocatedblocks() in deb
http://bugs.python.org/issue26850  closed by haypo

#26938: android: test_concurrent_futures hangs on armv7
http://bugs.python.org/issue26938  closed by xdegaye

#26948: Simplify PyImport_ImportModuleLevelObject: avoid temporary tup
http://bugs.python.org/issue26948  closed by haypo

#26991: Possible reference leak in MAKE_FUNCTION
http://bugs.python.org/issue26991  closed by python-dev

#26995: Add tests for parsing float and object arguments
http://bugs.python.org/issue26995  closed by serhiy.storchaka

#27014: maximum recursion depth when using typing options
http://bugs.python.org/issue27014  closed by gvanrossum

#27017: Python3.5.1: type().startswith()
http://bugs.python.org/issue27017  closed by SilentGhost

#27018: Incorrect documentation of select module
http://bugs.python.org/issue27018  closed by orsenthil

#27023: Documentation of tempfile.gettempdir() does not mention it onl
http://bugs.python.org/issue27023  closed by r.david.murray

#27028: configparser BasicInterpolation issue with %()
http://bugs.python.org/issue27028  closed by r.david.murray

#27031: Remove interface to obsolete Tk commands
http://bugs.python.org/issue27031  closed by serhiy.storchaka

#27034: Remove deprecated asynchat.fifo
http://bugs.python.org/issue27034  closed by serhiy.storchaka

#27039: bytearray.remove cannot remove bytes with value greater than 1
http://bugs.python.org/issue27039  closed by serhiy.storchaka

#27040: asyncio: Add loop.get_exception_handler method
http://bugs.python.org/issue27040  closed by yselivanov

#27041: asyncio: Add loop.create_future method
http://bugs.python.org/issue27041  closed by yselivanov

#27042: Incorrect grammar for function definitions
http://bugs.python.org/issue27042  closed by python-dev

#27044: Stop test_idle memory leaks
http://bugs.python.org/issue27044  closed by terry.reedy

#27045: Forward slashes in Windows paths
http://bugs.python.org/issue27045  closed by ebarry

#27046: Emoji support in Pie Chart legend with matplotlib
http://bugs.python.org/issue27046  closed by berker.peksag

#27047: O(1) deque indexing
http://bugs.python.org/issue27047  closed by rhettinger

#27049: Typo in "The Python Language Reference" 7.11 -- "individiual"
http://bugs.python.org/issue27049  closed by ned.deily

#27053: Python Windows x86-64 embeddable zip file missing module encod
http://bugs.python.org/issue27053  closed by steve.dower

#27055: python fails to run zipapp when zip contains comments
http://bugs.python.org/issue27055  closed by serhiy.storchaka

#27056: pickle: constant propagation in _Unpickler_Read()
http://bugs.python.org/issue27056  closed by haypo

#27057: os.set_inheritable(): fall back to fcntl() if ioctl() fails wi
http://bugs.python.org/issue27057  closed by haypo

#27058: Tkinter's canvas' dashed lines have incorrect segment lengths
http://bugs.python.org/issue27058  closed by kms70847

#27059: find_spec and find_loader ignore package/path argument
http://bugs.python.org/issue27059  closed by brett.cannon

#27061: 2.7.11 OS X pkg doesn't put proper version in the receipts
http://bugs.python.org/issue27061  closed by ned.deily

#27065: robotparser user agent considered hostile by mod_security rule
http://bugs.python.org/issue27065  closed by berker.peksag
Victor Stinner | 20 May 13:53 2016
Picon
Gravatar

Buildbots now always run tests in subprocesses

Hi,

I modified regrtest to not ignore -j1 anymore (issue #25285). I also
modified Tools/buildbot/test.bat to add the -j1 option (-j1 was
already used on UNIX on "make buildbottest").

All buildbots will now run each test file in a fresh subprocess. It
helps to restrict all kinds of side effects of unit tests to a single
file. The drawback is that buildbots will be less efficient to detect
side effects of unit tests.

By the way, I also changed regrtest output in "multiprocess mode"
(when -jN is used) to add "passed" to test names:
---
$ ./python -m test -j1
...
Run tests in parallel using 1 child processes
0:00:00 [  1/401] test_grammar passed
0:00:00 [  2/401] test_opcodes passed
0:00:01 [  3/401] test_dict passed
---

When tests are run sequentially, the output is different:
---
$ ./python -u -m test
...
Run tests sequentially
0:00:00 [  1/401] test_grammar
0:00:00 [  2/401] test_opcodes
0:00:00 [  3/401] test_dict
...
---

In multiprocess mode, regrtest displays the name of the test which
just completed. In sequential mode, it displays the name of the test
which is currently running.

Maybe the output of sequential mode can also be enhanced, but I made
the minimum change to avoid breaking regrtest. Some parts of the code
rely on the regrtest output format. I added many unit tests to
test_regrtest, but not everything is tested yet.

Victor
Daniel Holth | 18 May 15:20 2016
Picon

Adding a threadlocal to the Python interpreter

I would like to take another stab at adding a threadlocal "str(bytes) raises an exception" to the Python interpreter, but I had a very hard time understanding both how to add a threadlocal value to either the interpreter state or the threadlocal dict that is part of that state, and then how to access the same value from both Python and CPython code. The structs were there but it was just hard to understand. Can someone explain it to me?

Thanks,

Daniel Holth
<div><div dir="ltr">I would like to take another stab at adding a threadlocal "str(bytes) raises an exception" to the Python interpreter, but I had a very hard time understanding both how to add a threadlocal value to either the interpreter state or the threadlocal dict that is part of that state, and then how to access the same value from both Python and CPython code. The structs were there but it was just hard to understand. Can someone explain it to me?<div><br></div>
<div>Thanks,</div>
<div><br></div>
<div>Daniel Holth</div>
</div></div>

Gmane