[issue33578] cjkcodecs missing getstate and setstate implementations

2018-06-05 Thread INADA Naoki
INADA Naoki added the comment: > `MultibyteCodec_State` can occupy 8 bytes, and `pending` can occupy 2 bytes > (MAXENCPENDING), we get a total of 10 bytes which I think exceeds what a > PyLong can represent. PyLong is "long integer", aka "big integer", not C's long type. https://docs.python.

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2018-06-05 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2018-06-05 Thread INADA Naoki
INADA Naoki added the comment: New changeset d59f97c8325ba509c9b08d488091f45ca642f0b6 by INADA Naoki in branch '3.6': bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395) https://github.com/python/cpython/commit/d59f97c8325ba509c9b08d488091f45ca642f0b6 -- _

[issue16865] ctypes arrays >=2GB in length causes exception

2018-06-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7068 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33778] update Unicode database to 11.0

2018-06-05 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +7067 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue33778] update Unicode database to 11.0

2018-06-05 Thread Benjamin Peterson
New submission from Benjamin Peterson : http://blog.unicode.org/2018/06/announcing-unicode-standard-version-110.html -- assignee: benjamin.peterson components: Unicode messages: 318799 nosy: benjamin.peterson, ezio.melotti, vstinner priority: normal severity: normal status: open title:

[issue33776] Segfault when passing invalid argument to asyncio.ensure_future

2018-06-05 Thread Yury Selivanov
Yury Selivanov added the comment: Thanks for reporting it. Looks like this has been fixed in 3.6 (not yet released) and 3.7.0b5 in issue 33584. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue33625] Release GIL for grp.getgr{nam, gid} and pwd.getpw{nam, uid}

2018-06-05 Thread Ned Deily
Ned Deily added the comment: With the updated PR that uses reentrant system functions if available, this now seems like a pretty big change to be adding to older maintenance releases, especially since it seems like it would be primarily a performance enhancement and not fixing a "repeatable"

[issue33777] dummy_threading: .is_alive method returns True after execution has completed

2018-06-05 Thread Nate Atkinson
Nate Atkinson added the comment: I notice that I maybe have inadvertently assigned this to the wrong group. I suspect that this should apply to the "Library" rather than "Core". Sorry! -- ___ Python tracker ___

[issue33777] dummy_threading: .is_alive method returns True after execution has completed

2018-06-05 Thread Nate Atkinson
New submission from Nate Atkinson : Here's what I expect to happen (Python2 behavior): Python 2.7.14+ (default, Dec 5 2017, 15:17:02) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from dummy_threading import Thread >>> def f(): print 'foo' ..

[issue33776] Segfault when passing invalid argument to asyncio.ensure_future

2018-06-05 Thread Jason McKellar
New submission from Jason McKellar : If time.monotonic() is yielded from a generator that is passed to asyncio.ensure_future a segfault occurs when it's scheduled. The example below shows time.monotonic called in the generator, however the segfault will also occur if a function is called (no

[issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified

2018-06-05 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sure, I can add a line mentioning that distinct argument patterns may be considered as distinct cache entries even though they otherwise seem to be equivalent calls. That will just be a general statement though. The specific details are implementation de

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2018-06-05 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +7065 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2018-06-05 Thread miss-islington
miss-islington added the comment: New changeset d6e789c402330905b1bd9103538d1027fcfb08a4 by Miss Islington (bot) in branch '3.7': bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395) https://github.com/python/cpython/commit/d6e789c402330905b1bd9103538d1027fcfb08a4 -- nosy:

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-06-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: Menu location: If Code Context is moved under Windows, maybe Configure IDLE should be moved as well? - VS Code has Preferences under the File menu. - Spyder has a menu option called Tools which contains Preferences, Update PYTHONPATH manager, and Reset Sp

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-06-05 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-06-05 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3a5b0d8988491d9408b22bceea6fd70b91345724 by Łukasz Langa (John Reese) in branch 'master': bpo-33504: Migrate configparser from OrderedDict to dict. (#6819) https://github.com/python/cpython/commit/3a5b0d8988491d9408b22bceea6fd70b91345724

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-05 Thread Dmitry
Dmitry added the comment: @taleinat - yes, that does look much better! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: > buildbot@stormageddon ~/python27 $ ./python -m test -v -m 'test_interrupted*' > -F test_io I'm unable to reproduce this issue on my Fedora 28 laptop (Linux kernel 4.16.11-300.fc28.x86_64). In the previous message, I reproduced the issue directly on Zach's

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2018-06-05 Thread woutgg
woutgg added the comment: Note: the line number in the link is not correct anymore, I'm not sure how to link to a specific commit so here is the source line: `help += ' (default: %(default)s)'`. -- ___ Python tracker

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: Sadly, issues with test_io.test_interrupted*() are old. See for example the bpo-23680. Two years ago, Martin Panter saw test_io.test_interrupted_write_text() hangs on Python 3.6 and on AMD64 FreeBSD 9.x 3.5: https://bugs.python.org/issue22331#msg266688 http

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: Hum, I succeeded to reproduce a hang in test_io using the command: *** buildbot@stormageddon ~/python27 $ ./python -m test -v -m 'test_interrupted*' -F test_io (...) 0:04:38 load avg: 3.36 [ 44] test_io test_interrupted_write_buffered (test.test_io.CSignalsTe

[issue33775] argparse: the word 'default' (in help) is not marked as translatable

2018-06-05 Thread woutgg
New submission from woutgg : The word 'default', used to indicate default arguments in the help text (found here: Lib/argparse.py:681) is missing the gettext wrapper, causing it to be untranslatable. -- messages: 318784 nosy: woutgg priority: normal severity: normal status: open title

[issue33600] [EASY DOC] Python 2: document that platform.linux_distribution() has been removed

2018-06-05 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue31731] [2.7] test_io hangs on x86 Gentoo Refleaks 2.7

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: I succeeded to attach gdb to a regrtest slave process stuck in test_io... but somehow attaching the process into gdb unblocked the process... and the test completed. Sadly, the first time that I attached the process, I forgot to allow a directory to load p

[issue33600] [EASY DOC] Python 2: document that platform.linux_distribution() has been removed

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7b9b87e76c44660de8a973c0e0a118f539532496 by Victor Stinner (Timo Furrer) in branch '2.7': bpo-33600: document that platform.linux_distribution() has been removed (GH-7281) https://github.com/python/cpython/commit/7b9b87e76c44660de8a973c0e0a118f

[issue33755] Failed separate tests in test_importlib

2018-06-05 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue33755] Failed separate tests in test_importlib

2018-06-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset e135032ffa08ad66caea8205488e037da85d2bf8 by Barry Warsaw (Miss Islington (bot)) in branch '3.7': bpo-33755: Fix importlib.resources isolation tests (GH-7412) (#7434) https://github.com/python/cpython/commit/e135032ffa08ad66caea8205488e037da85d2

[issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation

2018-06-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Paul, In your opening post to this issue you suggested to change one line [1] in Lib/datetime.py from dtdst = dt.dst() to dtdst = dt.replace(fold=1).dst() This looks like a rather innocuous change, but it does not by itself make fromutc() return pr

[issue33477] Document that compile(code, 'exec') has different behavior in 3.7+

2018-06-05 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: Closing as the ast changes have been reverted. -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue12486] tokenize module should have a unicode API

2018-06-05 Thread Thomas Kluyver
Thomas Kluyver added the comment: Thanks Carol :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue33751] Failed separate testTruncateOnWindows in test_file

2018-06-05 Thread miss-islington
miss-islington added the comment: New changeset f74a1244eba88b562add5193242ac55115aaf25c by Miss Islington (bot) in branch '3.6': bpo-33751: Fix test_file. (GH-7378) https://github.com/python/cpython/commit/f74a1244eba88b562add5193242ac55115aaf25c -- ___

[issue33751] Failed separate testTruncateOnWindows in test_file

2018-06-05 Thread miss-islington
miss-islington added the comment: New changeset 1d419faccdaae27d968cef1e1ece6b9374694573 by Miss Islington (bot) in branch '3.7': bpo-33751: Fix test_file. (GH-7378) https://github.com/python/cpython/commit/1d419faccdaae27d968cef1e1ece6b9374694573 -- nosy: +miss-islington _

[issue12486] tokenize module should have a unicode API

2018-06-05 Thread Carol Willing
Change by Carol Willing : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue12486] tokenize module should have a unicode API

2018-06-05 Thread Carol Willing
Carol Willing added the comment: New changeset c56b17bd8c7a3fd03859822246633d2c9586f8bd by Carol Willing (Thomas Kluyver) in branch 'master': bpo-12486: Document tokenize.generate_tokens() as public API (#6957) https://github.com/python/cpython/commit/c56b17bd8c7a3fd03859822246633d2c9586f8bd

[issue33774] Document that @lru_cache caches based on exactly how the function arguments are specified

2018-06-05 Thread R. David Murray
R. David Murray added the comment: Agreed that this should be documented. -- nosy: +r.david.murray, rhettinger stage: -> needs patch title: Improve doc of @lru_cache to avoid misuse and confusion -> Document that @lru_cache caches based on exactly how the function arguments are speci

[issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation

2018-06-05 Thread Paul Ganssle
Paul Ganssle added the comment: > I am aware of that. In fact, some of the draft versions of PEP 495 > implementation did contain such code. The problem is that any such > tz.fromutc() implementation would necessarily change the behavior of the old > programs. This I'm not sure about - th

[issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation

2018-06-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > it's actually possible to implement full `fold` support in a generic way I am aware of that. In fact, some of the draft versions of PEP 495 implementation did contain such code. The problem is that any such tz.fromutc() implementation would necess

[issue33774] Improve doc of @lru_cache to avoid misuse and confusion

2018-06-05 Thread Al-Scandar Solstag
New submission from Al-Scandar Solstag : Ni! It is not clear at all in the documentation of @lru_cache that the cache takes into account the exact way the function was called, not the values passed to its arguments, as one could/would expect. I mean that for function(a, b, c=3) the three cal

[issue33751] Failed separate testTruncateOnWindows in test_file

2018-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c2745d2d05546d76f655ab450eb23d1af39e0b1c by Serhiy Storchaka in branch 'master': bpo-33751: Fix test_file. (GH-7378) https://github.com/python/cpython/commit/c2745d2d05546d76f655ab450eb23d1af39e0b1c -- __

[issue33720] test_marshal: crash in Python 3.7b5 on Windows 10

2018-06-05 Thread Steve Dower
Steve Dower added the comment: Thanks. Agreed this should stay open, but it is blocked on a compiler fix. -- ___ Python tracker ___ ___

[issue33751] Failed separate testTruncateOnWindows in test_file

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7061 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33761] Leaked file in test_iterparse in test_xml_etree

2018-06-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33751] Failed separate testTruncateOnWindows in test_file

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7062 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput

2018-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b8baa33d931de557d2915c604df85ab168da0904 by Serhiy Storchaka in branch '3.6': [3.6] bpo-33753: Refactor creating temporary files in test_fileinput. (GH-7377). (GH-7431) https://github.com/python/cpython/commit/b8baa33d931de557d2915c604df85ab1

[issue33767] Improper use of SystemError in the mmap module

2018-06-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33759] Failed separate ServerProxyTestCase tests in test_xmlrpc

2018-06-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33767] Improper use of SystemError in the mmap module

2018-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 3014d6eb7f6ed8cc61b9b26fe1c4454760dc8621 by Serhiy Storchaka in branch '2.7': [2.7] bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) (GH-7432) https://github.com/python/cpython/commit/3014d6eb7f6ed8cc61b9b26fe1c445476

[issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput

2018-06-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm

2018-06-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue33755] Failed separate tests in test_importlib

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7060 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33755] Failed separate tests in test_importlib

2018-06-05 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset ac1ee1badade69d5cd6d8b9112281f121183e7c0 by Barry Warsaw in branch 'master': bpo-33755: Fix importlib.resources isolation tests (#7412) https://github.com/python/cpython/commit/ac1ee1badade69d5cd6d8b9112281f121183e7c0 --

[issue33057] logging.Manager.logRecordFactory is never used

2018-06-05 Thread Vinay Sajip
Vinay Sajip added the comment: I'm closing this, please reopen if you have more information which might change my view. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue33165] Add stacklevel parameter to logging APIs

2018-06-05 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33165] Add stacklevel parameter to logging APIs

2018-06-05 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset dde9fdbe453925279ac3d2a6a72102f6f9ef247c by Vinay Sajip in branch 'master': bpo-33165: Added stacklevel parameter to logging APIs. (GH-7424) https://github.com/python/cpython/commit/dde9fdbe453925279ac3d2a6a72102f6f9ef247c -- ___

[issue27397] email.message.Message.get_payload(decode=True) raises AssertionError that "should never happen"

2018-06-05 Thread Tal Einat
Tal Einat added the comment: See #33770, which will make recognizing and handling this case straightforward. -- nosy: +taleinat ___ Python tracker ___

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-05 Thread Tal Einat
Change by Tal Einat : -- keywords: +patch pull_requests: +7059 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list m

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-05 Thread Tal Einat
Tal Einat added the comment: Would an exception message as following be acceptable? "Invalid base64-encoded string: length cannot be 1 more than a multiple of 4" -- ___ Python tracker __

[issue33745] 3.7.0b5 changes the line number of empty functions with docstrings

2018-06-05 Thread Nick Coghlan
Nick Coghlan added the comment: While I wouldn't describe this as completely intentional (as it's an artifact of the change-and-revert dance with 3.7 previously removing docstring nodes from the AST entirely), I also wouldn't want to change it again at this late stage of the release process.

[issue33769] Cleanup start_tls() implementation

2018-06-05 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue33769] Cleanup start_tls() implementation

2018-06-05 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 79c7e57c46a9e5ae2b99a821e152f334b775df2d by Yury Selivanov (Miss Islington (bot)) in branch '3.7': bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) (GH-7428) https://github.com/python/cpython/commit/79c7e57c46a9e5ae2

[issue31215] Add version changed notes for OpenSSL 1.1.0 compatibility

2018-06-05 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 9ef1b0690b90c526798b6b3125b0fa7ae98319a2 by Nick Coghlan (Mayank Singhal) in branch 'master': bpo-31215: Add version changed notes for OpenSSL 1.1.0 compatibility (GH-7346) https://github.com/python/cpython/commit/9ef1b0690b90c526798b6b3125b0fa7ae

[issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5.

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: > Thanks, Victor. Sorry about the noise. No worry, it's my fault: I forgot to mention bpo-33771 in my PR. -- ___ Python tracker ___ ___

[issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm

2018-06-05 Thread miss-islington
miss-islington added the comment: New changeset ffd72acc508bbc994812cefbfb9532d3be2ab737 by Miss Islington (bot) in branch '3.7': bpo-33752: Fix a file leak in test_dbm. (GH-7376) https://github.com/python/cpython/commit/ffd72acc508bbc994812cefbfb9532d3be2ab737 -- _

[issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm

2018-06-05 Thread miss-islington
miss-islington added the comment: New changeset 194a5c07228342106c98dcf85c8a5f4cd2c8b04e by Miss Islington (bot) in branch '3.6': bpo-33752: Fix a file leak in test_dbm. (GH-7376) https://github.com/python/cpython/commit/194a5c07228342106c98dcf85c8a5f4cd2c8b04e -- nosy: +miss-isling

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-05 Thread R. David Murray
R. David Murray added the comment: I agree, but that would be a separate enhancement PR. The email library would use that capability if it existed...currently it adds padding in a loop trying to do the decode if it gets the invalid padding message. Which of course is going to fail for this

[issue33767] Improper use of SystemError in the mmap module

2018-06-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7058 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33767] Improper use of SystemError in the mmap module

2018-06-05 Thread miss-islington
miss-islington added the comment: New changeset 631fe1fa423c42197d533103dcf349ca19baed0c by Miss Islington (bot) in branch '3.7': bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) https://github.com/python/cpython/commit/631fe1fa423c42197d533103dcf349ca19baed0c -

[issue33767] Improper use of SystemError in the mmap module

2018-06-05 Thread miss-islington
miss-islington added the comment: New changeset ae55d29fe04ee1aeb1bcb2e9b84e5bc9d4ecb070 by Miss Islington (bot) in branch '3.6': bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) https://github.com/python/cpython/commit/ae55d29fe04ee1aeb1bcb2e9b84e5bc9d4ecb070 -

[issue33753] Leaked file in test_nextfile_oserror_deleting_backup in test_fileinput

2018-06-05 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +7057 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue29298] argparse fails with required subparsers, un-named dest, and empty argv

2018-06-05 Thread Miro Hrončok
Change by Miro Hrončok : -- nosy: +hroncok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue33769] Cleanup start_tls() implementation

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7054 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm

2018-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6592d7fe11477f8f974d2d4a85c3382a1ad05217 by Serhiy Storchaka in branch 'master': bpo-33752: Fix a file leak in test_dbm. (GH-7376) https://github.com/python/cpython/commit/6592d7fe11477f8f974d2d4a85c3382a1ad05217 --

[issue33770] base64 throws 'incorrect padding' exception when the issue is NOT with the padding

2018-06-05 Thread Dmitry
Dmitry added the comment: I think something like “invalid length” message does make more sense in this case than the misleading “incorrect padding”. It would also be great if there was a way to force it to try its best at decoding the string. :) -- __

[issue33767] Improper use of SystemError in the mmap module

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7053 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7056 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33767] Improper use of SystemError in the mmap module

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7052 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33752] Leaked file in test_anydbm_creation_n_file_exists_with_invalid_contents in test_dbm

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7055 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33767] Improper use of SystemError in the mmap module

2018-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset e9e397605789b2a67b67558fbbe756b7b88934f5 by Serhiy Storchaka (Zackery Spytz) in branch 'master': bpo-33767: Fix improper use of SystemError by mmap.mmap objects (GH-7381) https://github.com/python/cpython/commit/e9e397605789b2a67b67558fbbe756b

[issue33769] Cleanup start_tls() implementation

2018-06-05 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 415bc46a78e785f357c8960ae70f18a6b6cccbb6 by Yury Selivanov in branch 'master': bpo-33769: start_tls: Fix error message; cancel callbacks on error (GH-7403) https://github.com/python/cpython/commit/415bc46a78e785f357c8960ae70f18a6b6cccbb6 -

[issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5.

2018-06-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks, Victor. Sorry about the noise. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, and there are helpers in test.support and test.test_importlib.util. -- ___ Python tracker ___

[issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5.

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: I created https://github.com/python/cpython/pull/7419 to update the documentation. -- ___ Python tracker ___ ___

[issue33771] Module: timeit. According to documentation default_repeat should have the value 3. Has 5.

2018-06-05 Thread Cheryl Sabella
New submission from Cheryl Sabella : Looks like this was changed in #28240. @svyatoslav, would you like to make a github pull request for the change? -- keywords: +easy nosy: +cheryl.sabella stage: -> needs patch ___ Python tracker

[issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation

2018-06-05 Thread Paul Ganssle
Paul Ganssle added the comment: So I created a little patch for this, and when I was working on it I realized that it's actually possible to implement full `fold` support in a generic way in `fromutc` under the assumption that `utcoffset - dst` holds at all points (which is the fundamental a

[issue33578] cjkcodecs missing getstate and setstate implementations

2018-06-05 Thread Christopher Thorne
Christopher Thorne added the comment: Ah, good find. I suppose that means `MultibyteCodec_State` and `pending` are both needed to fully capture state, as is done in `decoder.getstate`/`setstate` by returning a tuple of both. Unfortunately `encoder.getstate` is defined to return an integer, a

[issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation

2018-06-05 Thread Paul Ganssle
Change by Paul Ganssle : -- keywords: +patch pull_requests: +7050 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyth

[issue17045] Improve C-API doc for PyTypeObject

2018-06-05 Thread Cheryl Sabella
Cheryl Sabella added the comment: This isn't directly related to this change, but I wanted to point out #23869 since you seem to understand the topic enough to respond to that ticket. Thanks! -- nosy: +cheryl.sabella ___ Python tracker

[issue32392] subprocess.run documentation does not have **kwargs

2018-06-05 Thread miss-islington
miss-islington added the comment: New changeset 23b7ee205270320f836e93e411b28ac995cbabf1 by Miss Islington (bot) in branch '3.7': bpo-32392: Document env keyword argument of subprocess.run() (GH-7289) https://github.com/python/cpython/commit/23b7ee205270320f836e93e411b28ac995cbabf1

[issue33748] test_discovery_failed_discovery in test_unittest modifies sys.path

2018-06-05 Thread Tal Einat
Tal Einat added the comment: It seems that adding a directory to sys.path is the intended behavior of `loader.discover()`. Should the test be restoring sys.path back to it original value when it's done? Also, shouldn't this test (and some others) be restoring sys.modules when they're done?

[issue33165] Add stacklevel parameter to logging APIs

2018-06-05 Thread Vinay Sajip
Change by Vinay Sajip : -- keywords: +patch pull_requests: +7049 stage: needs patch -> patch review ___ Python tracker ___ ___ Pytho

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7047 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32392] subprocess.run documentation does not have **kwargs

2018-06-05 Thread miss-islington
Change by miss-islington : -- pull_requests: +7048 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32392] subprocess.run documentation does not have **kwargs

2018-06-05 Thread Berker Peksag
Berker Peksag added the comment: New changeset af1ec97a6d1dde68b2dc0ee9b78965eb219061a8 by Berker Peksag (Tobias Kunze) in branch 'master': bpo-32392: Document env keyword argument of subprocess.run() (GH-7289) https://github.com/python/cpython/commit/af1ec97a6d1dde68b2dc0ee9b78965eb219061a8

[issue5755] "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++"

2018-06-05 Thread INADA Naoki
INADA Naoki added the comment: New changeset e33648484775fa533fc8f1e5cc45f60061d29d54 by INADA Naoki in branch 'master': bpo-5755: Move -Wstrict-prototypes to CFLAGS_NODIST (GH-7395) https://github.com/python/cpython/commit/e33648484775fa533fc8f1e5cc45f60061d29d54 -- __

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: fd_count() has been added by bpo-18174. I just backported it to Python 2.7 to check for leak of file descriptors in tests. I found the bug when I fixed a bug on Python 2.7 on FreeBSD. -- ___ Python tracker

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-05 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +7046 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue18174] Make regrtest with --huntrleaks check for fd leaks

2018-06-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset bc3df70b266304f78ebe5eabead71cabd4738d12 by Victor Stinner in branch '2.7': bpo-18174: Fix fd_count() on FreeBSD (GH-7420) https://github.com/python/cpython/commit/bc3df70b266304f78ebe5eabead71cabd4738d12 -- __

[issue33773] test.support.fd_count(): off-by-one error when listing /proc/self/fd/

2018-06-05 Thread STINNER Victor
New submission from STINNER Victor : test.support.fd_count() has two implementation: list /proc/self/fd/ on Linux and FreeBSD, or check all file descriptors from 0 and MAXFD. The problem is that the two implementation don't give the same result... List /proc/self/fd/ (used by default on Linux

[issue18174] Make regrtest with --huntrleaks check for fd leaks

2018-06-05 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +7045 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

  1   2   >