[issue30565] PEP 538: silence locale coercion and compatibility warnings by default?

2017-06-17 Thread INADA Naoki
INADA Naoki added the comment: If this warnings are disabled by default, who enable it? How about just remove them? I'm OK to remove them all. Since it's not ideal, nothing go worse than Python 3.6. Additionally, if PEP 540 is accepted, we can use UTF-8 for stdio and filesystem encoding even

[issue13617] Reject embedded null characters in wchar* strings

2017-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you update your patch Victor? -- ___ Python tracker ___ ___

[issue30690] ChainMap doesn't preserve the order of ordered mappings

2017-06-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Iterating ChainMap emits keys in mixed order even if all underlying mappings are ordered dicts (OrderedDict). Would be nice to keep the order more predictable. This would solve issue30664. See also issue30689. -- components: Library (Lib)

[issue30263] regrtest: log the system load?

2017-06-17 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___

[issue13617] Reject embedded null characters in wchar* strings

2017-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: -> behavior versions: +Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker ___

[issue30689] len() and iter() of ChainMap don't work with unhashable keys

2017-06-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: As documented ChainMap supports not just dicts, but mappings. A mapping can be implemented not only as a hash table, and mapping keys can be not hashable. But ChainMap.__len__ and ChainMap.__iter__ work only with hashable keys. This may be considered just

[issue30687] build.bat should locate msbuild.exe rather than vcvarsall.bat

2017-06-17 Thread Jeremy Kloth
Changes by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___

[issue30672] PEP 538: Unexpected locale behaviour on Mac OS X

2017-06-17 Thread Nick Coghlan
Nick Coghlan added the comment: For the case where POSIX is a distinct locale from the default C locale (rather than a simple alias), I'm leaning towards taking PEP 538 literally, and adjusting the affected test cases to assume that locale coercion *won't* happen for that case on Mac OS X. I

[issue30565] PEP 538: silence locale coercion and compatibility warnings by default?

2017-06-17 Thread Nick Coghlan
Nick Coghlan added the comment: By having the warnings always compiled in, but off by default, "PYTHONCOERCECLOCALE=warn" becomes a debugging tool for integration failures that we (or end users) suspect might be due to the locale coercion behaviour. It's essentially an even more esoteric

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2017-06-17 Thread Tim Bell
Tim Bell added the comment: I've updated the pull request to incorporate Barry's suggestion of a new defect for this situation, InvalidDateDefect. -- ___ Python tracker

[issue30565] PEP 538: silence locale coercion and compatibility warnings by default?

2017-06-17 Thread Nick Coghlan
Changes by Nick Coghlan : -- pull_requests: +2310 ___ Python tracker ___ ___

[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-17 Thread Ned Deily
Ned Deily added the comment: New changeset 0a794a3256b24ccf57b18ec9964f2367ac1f3d30 by Ned Deily in branch '3.6': bpo-30038: add Misc/NEWS entry. https://github.com/python/cpython/commit/0a794a3256b24ccf57b18ec9964f2367ac1f3d30 -- ___ Python

[issue30688] support named Unicode escapes (\N{name}) in re

2017-06-17 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2311 ___ Python tracker ___ ___

[issue30038] Race condition in how trip_signal writes to wakeup fd

2017-06-17 Thread Ned Deily
Changes by Ned Deily : -- pull_requests: +2309 ___ Python tracker ___ ___ Python-bugs-list

[issue30688] support named Unicode escapes (\N{name}) in re

2017-06-17 Thread Jonathan Eunice
New submission from Jonathan Eunice: The re module specially handles Unicode escapes (\u and \U) so that even raw strings (r'...') have symbolic Unicode characters. But it has not supported named Unicode escapes such as r'\N{EM DASH}', making the escapes for string literals and

[issue30688] support named Unicode escapes (\N{name}) in re

2017-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Regular Expressions nosy: +ezio.melotti ___ Python tracker ___

[issue30688] support named Unicode escapes (\N{name}) in re

2017-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +mrabarnett, serhiy.storchaka stage: -> patch review ___ Python tracker

[issue30565] PEP 538: silence locale coercion and compatibility warnings by default?

2017-06-17 Thread STINNER Victor
STINNER Victor added the comment: As I wrote on python-dev, I would prefer no warning and no option to enable warnings. But it's not my PEP, I would prefer that Nick makes a choice here. Right now, my main worry is that my little (freebsd) buildbots are still sick --

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-17 Thread Chris Fiege
Changes by Chris Fiege : -- nosy: +cfi ___ Python tracker ___ ___ Python-bugs-list

[issue30665] pass big values for arg to fcntl.ioctl

2017-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The FreeBSD [1], OpenBSD [2], and Solaris 10 [3] documentations specify the third argument of ioctl() as either an int or a pointer. Passing a 64-bit long instead of a 32-bit int on big-endian platform can cause incorrect interpretation of an argument. [1]

[issue30692] Automatic upcast does not occur for custom classes

2017-06-17 Thread Ned Deily
Changes by Ned Deily : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___

[issue30691] WeakSet is not pickleable

2017-06-17 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: WeakSet contains the __reduce__ method, but it isn't pickleable (and never was), because the pickle state contains the value of the __dict__ dict attribute which contains a reference to unpickleable local function _remove(). >>>

[issue29755] python3 gettext.lgettext sometimes returns bytes, not string

2017-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue13617] Reject embedded null characters in wchar* strings

2017-06-17 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue29517] "Can't pickle local object" when uses functools.partial with method and args...

2017-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since WeakSet never was pickleable, the difference perhaps in the use of WeakSet in asyncio. BaseEventLoop contains a WeakSet attribute since 3.6, this makes it non-pickleable. I'm not sure this is a cause of the failure. -- components: +Library

[issue30692] Automatic upcast does not occur for custom classes

2017-06-17 Thread Ranger Harke
New submission from Ranger Harke: I have noticed that the automatic upcast mechanism which works for standard ctypes types does not appear to work for custom types with _as_parameter_ defined. Consider the following example (written for Mac OS X but just change the LoadLibrary call to test on a

[issue29591] Various security vulnerabilities in bundled expat (CVE-2016-0718 and CVE-2016-4472)

2017-06-17 Thread Ned Deily
Ned Deily added the comment: FYI, expat 2.2.1 has now been released. See Issue30694 for details. -- ___ Python tracker ___

[issue30686] make `make install` faster

2017-06-17 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2315 ___ Python tracker ___ ___

[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-06-17 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___

[issue30691] WeakSet is not pickleable

2017-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I wondering whether WeakSet should be made pickleable or > the __reduce__ method should be removed. When considering whether to remove a method from long published code, if the method isn't broken, our guidance should come from whether user's have

[issue30672] PEP 538: Unexpected locale behaviour on *BSD (including Mac OS X)

2017-06-17 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___

[issue30647] CODESET error on AMD64 FreeBSD 10.x Shared 3.x caused by the PEP 538

2017-06-17 Thread Nick Coghlan
Changes by Nick Coghlan : -- assignee: -> ncoghlan ___ Python tracker ___ ___

[issue30689] len() and iter() of ChainMap don't work with unhashable keys

2017-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: No thank you. It is perfectly reasonable to use set operations to make the implementation simple, fast, reliable, and suitable for most use cases. Marking this as a rejected feature request. As for documentation, I don't see any need to accommodate a

[issue30690] ChainMap doesn't preserve the order of ordered mappings

2017-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Until regular dicts guarantee order, I don't want to go down this path for ChainMap which currently makes no guarantees about preserving and passing through properties of the underlying mappings. The current implementation is short, fast, and reliable.

[issue30671] dict: improve lookup function

2017-06-17 Thread Tim Peters
Tim Peters added the comment: The attached hashsim.py pretty much convinces me there's nothing left to be gained here. It shows that the current scheme essentially achieves the performance of theoretical "uniform hashing" for string keys, for both successful and unsuccessful searches, as

[issue29702] Error 0x80070003: Failed to launch elevated child process

2017-06-17 Thread Armen Levonian
Armen Levonian added the comment: OK, so this bug tuned out to be related to the Windows 10 version I had prior to the just now updated 1703. I discovered one other Visual Studio installation that was failing. However, after the update to the latest Windows 1703, the installation issues are

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 2265 implements a private subclass of ChainMap that preserves ordering. -- nosy: +serhiy.storchaka ___ Python tracker

[issue30664] Change unittest's _SubTest to not sort its params when printing test failures

2017-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2316 ___ Python tracker ___ ___

[issue30691] WeakSet is not pickleable

2017-06-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The method is broken (and always was). Pickling doesn't work because the state contains unpickleable object. Copying works incorrectly, since the pickle state contains references to the original WeakSet and it overrides the __dict__ of the copy, making its

[issue30672] PEP 538: Unexpected locale behaviour on *BSD (including Mac OS X)

2017-06-17 Thread Nick Coghlan
Nick Coghlan added the comment: It seems the "POSIX is not just an alias for the C locale" behaviour is inherited from *BSD, rather than being specific to Mac OS X: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%20custom/builds/12/steps/test/logs/stdio --

[issue30672] PEP 538: Unexpected locale behaviour on *BSD (including Mac OS X)

2017-06-17 Thread Nick Coghlan
Nick Coghlan added the comment: Flagging issue 30647 as a dependency, since the problem with breaking nl_langinfo will need to be fixed before these tests can be re-enabled. -- dependencies: +CODESET error on AMD64 FreeBSD 10.x Shared 3.x caused by the PEP 538

[issue30565] PEP 538: silence locale coercion and compatibility warnings by default?

2017-06-17 Thread Nick Coghlan
Nick Coghlan added the comment: OK, based on the latest round of custom buildbot results (e.g. http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%20custom/builds/12/steps/test/logs/stdio ), it looks like the main remaining problems are those covered by issue 30672,

[issue30693] tarfile add uses random order

2017-06-17 Thread Bernhard M. Wiedemann
New submission from Bernhard M. Wiedemann: Filesystems do not give any guarantees about ordering of files returned in directory listings, thus tarfile.add adds files in random order, when using os.listdir in recursion. See also https://reproducible-builds.org/docs/stable-inputs/ on that

[issue29933] asyncio: set_write_buffer_limits() doc doesn't specify unit of the parameters

2017-06-17 Thread Kojo Idrissa
Changes by Kojo Idrissa : -- pull_requests: +2312 ___ Python tracker ___ ___

[issue30565] PEP 538: silence locale coercion and compatibility warnings by default?

2017-06-17 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset eb81795d7d3a8c898fa89a376d63fc3bbfb9a081 by Nick Coghlan in branch 'master': bpo-30565: Add PYTHONCOERCECLOCALE=warn runtime flag (GH-2260) https://github.com/python/cpython/commit/eb81795d7d3a8c898fa89a376d63fc3bbfb9a081 --

[issue30565] PEP 538: silence locale coercion and compatibility warnings by default?

2017-06-17 Thread Nick Coghlan
Nick Coghlan added the comment: OK, PEP 538 is effectively disabled on FreeBSD and Mac OS X now, and the locale coercion and compatibility warnings are off by default everywhere. PYTHONCOERCECLOCALE=warn is explicitly documented as a debugging tool for use when folks already suspect that

[issue30429] bdb and pdb: Add watchpoint function

2017-06-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list

[issue30576] http.server should support HTTP compression (gzip)

2017-06-17 Thread Martin Panter
Martin Panter added the comment: I think neither Pierre’s nor Glenn’s implementations should be added to SimpleHTTPRequestHandler. In fact I think most forms of content negotiation are only appropriate for a higher-level server. It seems too far removed from the intention of the class,

[issue30693] tarfile add uses random order

2017-06-17 Thread Bernhard M. Wiedemann
Changes by Bernhard M. Wiedemann : -- pull_requests: +2313 ___ Python tracker ___ ___

[issue30694] Update embedded copy of expat to 2.2.1

2017-06-17 Thread Ned Deily
New submission from Ned Deily: >From the announcement: Expat 2.2.1 has been released. The change log has more details [2] than this mail, including commit SHA1s. For a quick overview of the security fixes and CVEs, we have: CVE-2017-9233 External entity infinite loop DoS [1]