[issue30166] Import command-line parsing modules only when needed

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30215] Make re.compile() locale agnostic

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

[issue30080] Add the --duplicate option for timeit

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

[issue30024] Treat `import a.b.c as m` as `m = sys.modules['a.b.c']`

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

[issue29956] math.exp documentation is misleading

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anybody please make a review of PR 1073? -- ___ Python tracker ___

[issue30152] Reduce the number of imports for argparse

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Implemented Wolfgang Maier's idea. The copy module is now imported in argparse only when the default value for 'append' or 'append_const' is not a list (uncommon case). -- ___ Python tracker

[issue30166] Import command-line parsing modules only when needed

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7e4db2f253c68d56177c2fd083bcf8f88d34 by Serhiy Storchaka in branch 'master': bpo-30166: Import command-line parsing modules only when needed. (#1293) https://github.com/python/cpython/commit/7e4db2f253c68d56177c2fd083bcf8f88d34

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: My previous two messages are not clear enough so I delete them. Sorry for the noise. :-( When unpacking a pascal string, you cannot simply specify a p format character otherwise struct calculate a wrong size of the format. That's why unpack fails. When count

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- Removed message: http://bugs.python.org/msg292959 ___ Python tracker ___

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Changes by Xiang Zhang : -- Removed message: http://bugs.python.org/msg292958 ___ Python tracker ___

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7 ___ Python tracker

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: Note in the doc: Note that for unpack(), the 'p' format character consumes count bytes I think this means you still need to specify the repeat count for unpacking 'p'. -- ___ Python tracker

[issue23816] struct.unpack returns null pascal strings - [first] bug report

2017-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: Hmm, code->size is determined by repeat count at initilization stage so I don't understand why it should be updated in s_unpack_internal to 255. And the repro script works well for me. -- nosy: +xiang.zhang resolution: -> not a bug stage: -> resolved

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 1bebd8a21948652a5f941c550dec06ea84d1d979 by Serhiy Storchaka in branch '3.6': [3.6] bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (GH-1316). (#1441)

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 943861f09ab6bffcd1d97efcd0dd6c87c7f26800 by Serhiy Storchaka in branch '3.5': [3.5] bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (GH-1316). (#1442)

[issue30266] AbstractContextManager should support __method__ = None

2017-05-03 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- pull_requests: +1546 ___ Python tracker ___ ___

[issue30266] AbstractContextManager should support __method__ = None

2017-05-03 Thread Jelle Zijlstra
New submission from Jelle Zijlstra: Like other ABCs, contextlib.AbstractContextManager should support the pattern where setting a method to None disables structural subtyping, which was introduced across the standard library in issue 25958. Ivan Levkivskyi suggested making

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: We can finally close this. Thanks everyone :) -- stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset e1b02ff58883c68d3a5e549aa33c6dd94f915bd6 by Mariatta in branch '2.7': [2.7] bpo-28315: Improve code examples in docs (GH-1372) (#1447) https://github.com/python/cpython/commit/e1b02ff58883c68d3a5e549aa33c6dd94f915bd6 --

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1545 ___ Python tracker ___ ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset af71364c3f0e9cd6cb9d83194315af0ee3c783d2 by Mariatta in branch '3.6': [3.6] bpo-28315: Improve code examples in docs (GH-1372) (#1445) https://github.com/python/cpython/commit/af71364c3f0e9cd6cb9d83194315af0ee3c783d2 --

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 5274faf5e360f74690ffb735e919cdba5fdbdf1c by Mariatta in branch '3.5': [3.5] bpo-28315: Improve code examples in docs (GH-1372) (#1446) https://github.com/python/cpython/commit/5274faf5e360f74690ffb735e919cdba5fdbdf1c --

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1544 ___ Python tracker ___ ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +1543 ___ Python tracker ___ ___

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: > The problem is that os.unlink(TESTFN) ignores all OSError: os.unlink(TESTFN) > fails because there is still an open file object somewhere. I created the issue #30265: test.support.unlink() should fail or emit a warning on WindowsError: [Error 32] The

[issue30265] test.support.unlink() should fail or emit a warning on WindowsError: [Error 32] The process cannot access the file ...

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: While working on issue #30264, I noticed that test.support.unlink() ignores *all* OSError exceptions. I suggest to add handle WindowsError: [Error 32] differently. Example of such error, issue #15388: WindowsError: [Error 32] The process cannot access the

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: > The question is if all parser provide a close() method? It seems like xml.sax supports pluggable parsers, at least using the PY_SAX_PARSER environment variable. So it would be safer to add a cheap "if hasattr(parser, 'close'):" test; --

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/1444 is written for the master branch. IMHO the bug must be fixed in all supported branches. The question is if all parser provide a close() method? -- versions: +Python 3.5, Python 3.6, Python 3.7

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1542 ___ Python tracker ___ ___

[issue30264] [Windows] test_sax: Warning -- files was modified by test_sax

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: Running test_sax of Python 2.7 on Windows emits the following warning: Warning -- files was modified by test_sax The problem is that os.unlink(TESTFN) ignores all OSError: os.unlink(TESTFN) fails because there is still an open file object somewhere. The

[issue30263] regrtest: log the system load?

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: Example of test only failing on one specific buildbot: issue #30225. test_http_body_pipe() of test_urllib2 only fails on macOS Tiger under high system load. -- ___ Python tracker

[issue30263] regrtest: log the system load?

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: It's more and more common to get test failures only on a small group of buildbots, or even a single buildbot. In many cases, it's a race condition which depends on the system load. The system load depends on how many tests are running in parallel, if the

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1c4670ea0cc3d208121af11b9b973e6bb268e570 by Victor Stinner in branch 'master': bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443) https://github.com/python/cpython/commit/1c4670ea0cc3d208121af11b9b973e6bb268e570 --

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1541 ___ Python tracker ___ ___

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: initstdio() is supposed to handle EBADF: see issue #24891. -- ___ Python tracker ___

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1540 ___ Python tracker ___ ___

[issue30236] Add options --match and --failfast for test.regrtest in 2.7

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30236] Add options --match and --failfast for test.regrtest in 2.7

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 74f0db885fa84e3a1c73b3ae1edc723d48f7bad2 by Serhiy Storchaka in branch '2.7': [2.7] bpo-30236: Backported regrtest options -m and -G. (#1394) https://github.com/python/cpython/commit/74f0db885fa84e3a1c73b3ae1edc723d48f7bad2 --

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +1539 ___ Python tracker ___ ___

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread David Bolen
David Bolen added the comment: In running the test under a local build, the issue is very repeatable, but I believe it's actually due to slow process startup rather than a quick exit. That is, adding a brief sleep after process creation and just before the Request() call seems to fix the

[issue30184] Add tests for invalid use of PyArg_ParseTupleAndKeywords

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 5f161fd86dd5bb936a1a2a13391b13b7e59ec201 by Serhiy Storchaka in branch 'master': bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316) https://github.com/python/cpython/commit/5f161fd86dd5bb936a1a2a13391b13b7e59ec201

[issue30095] HTMLCalendar allow custom classes

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: -> patch review versions: +Python 3.7 -Python 3.6 ___ Python tracker ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: For sure :) Thanks Terry. -- assignee: -> Mariatta ___ Python tracker ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mariatta, please continue with this and assign to yourself. I now have IDLE PRs to review and apply. -- assignee: terry.reedy -> ___ Python tracker

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-03 Thread Aviv Palivoda
Changes by Aviv Palivoda : -- pull_requests: +1538 ___ Python tracker ___ ___

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-03 Thread Aviv Palivoda
New submission from Aviv Palivoda: Both the Cache and Statement objects are internally used and should not be exposed to the user from the sqlite3 module. They are not mentioned in the documentation as well. -- components: Extension Modules messages: 292936 nosy: berker.peksag,

[issue30225] EBADF error on x86 Tiger 3.x buildbot

2017-05-03 Thread David Bolen
David Bolen added the comment: Hmm, I wonder if this is another race condition similar to issue 8458? I think that was thought to be related to the subprocess exiting quickly, in which case the question might be why that might happen more so than the actual descriptor error. BTW, Victor, in

[issue30095] HTMLCalendar allow custom classes

2017-05-03 Thread Oz Tiram
Oz Tiram added the comment: @Walter, I implemented your suggestions plus the obvious tasks of adding tests and documentation. Would be happy to hear your feedback. -- ___ Python tracker

[issue30095] HTMLCalendar allow custom classes

2017-05-03 Thread Oz Tiram
Changes by Oz Tiram : -- pull_requests: +1537 ___ Python tracker ___ ___ Python-bugs-list

[issue30250] StreamIO truncate behavior of current position

2017-05-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: For the record, the StringIO module is Python 2 only (replaced by io.StringIO and io.BytesIO for Py3, which are also available on 2.6 and higher if you need consistency), and only documents truncate by reference to the generic docs for the built-in file

[issue30261] Spam

2017-05-03 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: -saumitra1978 resolution: -> not a bug stage: -> resolved status: open -> closed title: saumitra paul choudhury has shared a document on Google Docs with you -> Spam ___ Python tracker

[issue30261] Spam

2017-05-03 Thread Zachary Ware
Changes by Zachary Ware : -- Removed message: http://bugs.python.org/msg292931 ___ Python tracker ___

[issue30248] Using boolean arguments in the _json module

2017-05-03 Thread Josh Rosenberg
Josh Rosenberg added the comment: So, incredibly minor note: This will prevent a ridiculous use case of passing in a mutable object as the argument (say, a list), and mutating it between truthy and falsy values (appending or clearing) to toggle behaviors in an existing Encoder. Note: As

[issue30261] saumitra paul choudhury has shared a document on Google Docs with you

2017-05-03 Thread saumitra paul
New submission from saumitra paul: saumitra paul choudhury has invited you to view the following document: Open in Docs

[issue30229] Closing a BufferedRandom calls lseek() mutliple times

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: READAHEAD uses read_end, RAW_OFFSET uses raw_pos. Are you sure that if READAHEAD(self) is zero RAW_OFFSET(self) is zero too? -- ___ Python tracker

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

2017-05-03 Thread Kostis Anagnostopoulos
Kostis Anagnostopoulos added the comment: Just to remind that as it stands now(b39d4b1c6) it contains no API changes at all, so it should be considered for merge into 3.6.x line. -- ___ Python tracker

[issue29448] Implement os.Pathlike for importlib.machinery

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
asterite added the comment: I made up a small program to reproduce an issue, it consists of two files, test.py and test2.py, the second one is imported as a module by the first one, so they should be but in the same dir. # ls test.py test2.py # python3.5 test.py test Segmentation fault The

[issue29712] --enable-optimizations does not work with --enable-shared

2017-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, --enable-shared generally produces slower builds than by default. The slowdown depends on the platform, but it's noticeable on x86-64 and much more on ARM. -- nosy: +pitrou ___ Python tracker

[issue30247] Make importlib.machinery class handle os.PathLike path

2017-05-03 Thread Brett Cannon
Brett Cannon added the comment: The classes mentioned actually require that the path exist on the file system so there's no extra restrictions. As for cost, it's pretty cheap as a call to _os.fspath() is written in C and does an immediate type-check for str or bytes for the common-case

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- stage: resolved -> backport needed ___ Python tracker ___

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
Changes by asterite : Added file: http://bugs.python.org/file46848/test2.py ___ Python tracker ___

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue28315] incorrect "in ?" output in 'divide' example at "Defining Clean-up Actions" in tutorial

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 8856940cf2e82cb17db2b684cd5732fe658605ca by Mariatta (UltimateCoder) in branch 'master': bpo-28315: Improve code examples in docs (GH-1372) https://github.com/python/cpython/commit/8856940cf2e82cb17db2b684cd5732fe658605ca --

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
Changes by asterite : Added file: http://bugs.python.org/file46847/test.py ___ Python tracker ___

[issue29448] Implement os.Pathlike for importlib.machinery

2017-05-03 Thread Brett Cannon
Brett Cannon added the comment: Since the objects I thought of for this aren't purely representing paths I'm going to close this to keep os.PathLike for things that are specifically representing paths. -- resolution: -> rejected ___ Python tracker

[issue30260] sock_dealloc() may call __repr__ when socket class is already collected by GC

2017-05-03 Thread asterite
New submission from asterite: I faced a crash during iterpreter shutdown (Py_Finalize), in final garbage collection phase. The reason, as far as I could understand, was the following: In Python 3, when an unclosed socket is destroyed, it issues a ResourceWarning, which contains a string

[issue29311] Argument Clinic: convert dict methods

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: > IMO, you've made the docstrings for pure Python versions of > collections.OrderedDict worse. The previous docstrings were clearer. Can you please elaborate? Please reopen the issue or open a new one if you consider that it's worth it (this issue is

[issue28556] typing.py upgrades

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset e612c28513b406779d187e5f816445c7d40d292b by Mariatta in branch '3.6': [3.6] bpo-28556: Routine updates to typing (GH-1366) (#1416) https://github.com/python/cpython/commit/e612c28513b406779d187e5f816445c7d40d292b --

[issue28556] typing.py upgrades

2017-05-03 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset 4b15e45895ca56ac5f7837cacb8cd3ccc26d1f66 by Mariatta in branch '3.5': [3.5] bpo-28556: Routine updates to typing (GH-1366) (#1417) https://github.com/python/cpython/commit/4b15e45895ca56ac5f7837cacb8cd3ccc26d1f66 --

[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2017-05-03 Thread Brett Cannon
Changes by Brett Cannon : -- title: Add os.PathLike support to the tempfile module's 'dir' arguments -> Add/check os.PathLike support for the tempfile module's 'dir' arguments ___ Python tracker

[issue29447] Add os.PathLike support to the tempfile module's 'dir' arguments

2017-05-03 Thread Brett Cannon
Brett Cannon added the comment: Without looking at the PR there are two ways to interpret my unfortunately vague comment. One is to say that the objects returned by tempfile code should support os.PathLike; that's what Serhiy is objecting to as those are objects representing concrete things

[issue30257] _bsddb: else misleadingly indented

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: I don't understand well the consequence of the change, so I didn't document it in Misc/NEWS :-) -- ___ Python tracker

[issue30259] Test somehow that generated files are up to date: run make regen-all

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: I also asked if something similar should be done for autoconf? http://bugs.python.org/issue23404#msg292829 -- ___ Python tracker

[issue23404] 'make touch' does not work with git clones of the source repository

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: I just created the issue #30259: Test somehow that generated files are up to date: run make regen-all. -- ___ Python tracker

[issue30259] Test somehow that generated files are up to date: run make regen-all

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: bpo-23404 replaced "make touch" with "make regen-all". Generated files are no more regenerated based on file modification time anymore, the action is now explicit. Zachary Ware proposed to add a buildbot to check that generated files are up to date: run

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for raising this again and for your research Thomas. I now see that my understanding of the specification was wrong. I'll revert changes to zipfile. There is one question. If the zip file was concatenated to other file (and looks incorrect from

[issue23404] 'make touch' does not work with git clones of the source repository

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset a5c62a8e9f0de6c4133825a5710984a3cd5e102b by Victor Stinner in branch 'master': bpo-23404: make touch becomes make regen-all (#1405) https://github.com/python/cpython/commit/a5c62a8e9f0de6c4133825a5710984a3cd5e102b --

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Unfortunately we should revert this change. It breaks other cases. See issue29094. -- ___ Python tracker ___

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: -1050 ___ Python tracker ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: Ooops, there is a bug in my pushed changed, spotted by Serhiy: > # Strip last refcount output line if it exists, since it # comes from the shutdown of the interpreter in the subcommand. stderr =

[issue29311] Argument Clinic: convert dict methods

2017-05-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: IMO, you've made the docstrings for pure Python versions of collections.OrderedDict worse. The previous docstrings were clearer. Please note, there is a high bar for altering docstrings that have worked well (been deployed with success) for over 15 years

[issue30257] _bsddb: else misleadingly indented

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2c27731901003cbcc64056fe9db725abe8484616 by Victor Stinner in branch '2.7': bpo-30257: _bsddb: Fix newDBObject() (#1428) https://github.com/python/cpython/commit/2c27731901003cbcc64056fe9db725abe8484616 --

[issue30257] _bsddb: else misleadingly indented

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that the valid combinations of getReturnsNone and cursorSetReturnsNone flags are 00, 10 and 11. But this suspicious code allows to get 01. It looks as a bug to me. -- nosy: +serhiy.storchaka ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset c991eb280e60ed25c68a5332bd8633959e9f7113 by Victor Stinner in branch '2.7': bpo-30258: regrtest handles child process crash (#1431) https://github.com/python/cpython/commit/c991eb280e60ed25c68a5332bd8633959e9f7113 --

[issue30257] _bsddb: else misleadingly indented

2017-05-03 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +jcea -gregory.p.smith ___ Python tracker ___ ___

[issue29243] --enable-optimizations makes common build commands always need to compile from scratch

2017-05-03 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___

[issue29712] --enable-optimizations does not work with --enable-shared

2017-05-03 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, you are just incredible! -- ___ Python tracker ___ ___

[issue22385] Define a binary output formatting mini-language for *.hex()

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___

[issue30254] [2.7] regrtest announces 401 tests, but there are 304 tests?

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30254] [2.7] regrtest announces 401 tests, but there are 304 tests?

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: It has been long time since I didn't work on Python 2.7, so I forgot that regrtest of Python 2.7 lacks *many* features of Python master. I created the issue #30258 to add code to handle crash of a test child process. > Maybe be related to issue #30255

[issue30258] [2.7] regrtest: handle child process crash

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1536 ___ Python tracker ___ ___

[issue30258] [2.7] regrtest: handle child process crash

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: In the master branch, regrtest in multiprocess mode handles well crash of child processes. In 2.7, regrtest handles them badly: see issue #30254. Attached PR backports the CHILD_ERROR status from regrtest master and adds code to handle crash (or any

[issue30255] test_xml_etree: python: Objects/sliceobject.c:176: _PySlice_AdjustIndices: Assertion `step >= -PY_SSIZE_T_MAX' failed.

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: > Thank you Victor for noticing and fixing this crash! Something is *very* strange: we have +20 buildbots, but I didn't see this assertion failure on any buildbot. Instead, I noticed that regrtest runs less tests than announced: see issue #30254. It's very

[issue30255] test_xml_etree: python: Objects/sliceobject.c:176: _PySlice_AdjustIndices: Assertion `step >= -PY_SSIZE_T_MAX' failed.

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: I pushed the change to try to fix buildbots, but I'm not sure that it's complete. The change announces "... clip the step to [-PY_SSIZE_T_MAX, PY_SSIZE_T_MAX] ...", but there is no explicit to clip the maximum to PY_SSIZE_T_MAX. Maybe there is a bug on this

[issue30255] test_xml_etree: python: Objects/sliceobject.c:176: _PySlice_AdjustIndices: Assertion `step >= -PY_SSIZE_T_MAX' failed.

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset f6a3133972378205baaa6a854d46170d04a2db67 by Victor Stinner in branch '2.7': bpo-30255: Clip step in _PySlice_Unpack() (#1429) https://github.com/python/cpython/commit/f6a3133972378205baaa6a854d46170d04a2db67 --

[issue18699] What is Future.running() for in PEP 3148 / concurrent.futures.Future?

2017-05-03 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1535 ___ Python tracker ___

[issue22385] Define a binary output formatting mini-language for *.hex()

2017-05-03 Thread Nick Coghlan
Nick Coghlan added the comment: Re-using an existing minilanguage to mean something completely different wouldn't be a good idea. Whether or not we should add any bytes specific features for this at all is also still an open question, as one of the points raised in the latest python-ideas

[issue30247] Make importlib.machinery class handle os.PathLike path

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure it's a good idea. FileLoader, FileFinder, and other classes usually are a part of import machinery, they can have other restrictions on path type than general filesystem related functions. This change has a non-zero cost, it complicates the

  1   2   >