[issue30242] resolve undefined behaviour in struct

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant changing the type of the first argument of np_ubyte() etc. np_ubyte(unsigned char *p, PyObject *v, const formatdef *f) -- ___ Python tracker

[issue30242] resolve undefined behaviour in struct

2017-05-03 Thread Xiang Zhang
Xiang Zhang added the comment: Hmm, do we need to? Currently all pack routines accept a char *p. Converting it to unsigned char * inside could also solve the problem. -- ___ Python tracker

[issue30243] Core dump when use uninitialized _json objects

2017-05-03 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: It is possible to get a core dump by using uninitialized _json objects. $ ./python -c "import _json; _json.make_scanner.__new__(_json.make_scanner)('', 0)" Segmentation fault (core dumped) $ ./python -c "import _json;

[issue30242] resolve undefined behaviour in struct

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Your patch LGTM as a minimal patch for backporting to maintained releases (maybe Mark have other comments). But I think it would be better to make all pointers to raw memory of type unsigned char*. Not just packing, but unpacking too. Using even memcpy

[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 ___ ___

[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 ___ ___

[issue30257] _bsddb: else misleadingly indented

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

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-03 Thread Thomas Wouters
Thomas Wouters added the comment: ... and yes, the changes to issue 26293 should be reverted; the changes attached to this issue merely revert part of issue 26293's changes. -- ___ 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

[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

[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 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 --

[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 --

[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

[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

[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 ___

[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

[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 --

[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

[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 ___

[issue26293] Embedded zipfile fields dependent on absolute position

2017-05-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: -1050 ___ 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

[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

[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

[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 =

[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

[issue30257] _bsddb: else misleadingly indented

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

[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 ___

[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: Attached PR fixes test_xml_etree. -- nosy: +xiang.zhang ___ Python tracker ___

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

2017-05-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Victor for noticing and fixing this crash! -- ___ Python tracker ___

[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

[issue30257] _bsddb: else misleadingly indented

2017-05-03 Thread STINNER Victor
New submission from STINNER Victor: building '_bsddb' extension gcc -pthread -fPIC -fno-strict-aliasing -O0 -g -O0 -Wall -Wstrict-prototypes -I/usr/include -I. -IInclude -I./Include -I/usr/local/include -I/home/haypo/prog/python/2.7/Include -I/home/haypo/prog/python/2.7 -c

[issue30257] _bsddb: else misleadingly indented

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue24725] test_socket testFDPassEmpty fails on OS X 10.11+ with "Cannot allocate memory"

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5e9c1101924bacf3ead03124b5c1e48551638360 by Victor Stinner in branch '3.5': bpo-24725: Skip the test_socket.testFDPassEmpty on OS X (#1427) https://github.com/python/cpython/commit/5e9c1101924bacf3ead03124b5c1e48551638360 -- nosy:

[issue29094] Regression in zipfile writing in 2.7.13

2017-05-03 Thread Thomas Wouters
Thomas Wouters added the comment: The spec isn't very explicit about it, yes, but it does say this: 4.4.16 relative offset of local header: (4 bytes) This is the offset from the start of the first disk on which this file appears, to where the local header should be found.

[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

[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 ___

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

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- Removed message: http://bugs.python.org/msg292891 ___ 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: Maybe be related to issue #30255 (test_xml_etree crash related to slices). -- ___ Python tracker ___

[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

[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

[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

[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

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

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

[issue28149] Incorrect indentation under “else” in _bsddb.c

2017-05-03 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> _bsddb: else misleadingly indented ___ Python tracker

[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 --

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

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

[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: The second line in the else block was added... 14 years ago (!) by this commit: commit 455d46f0d921337405ebd3a098c210f3614ae77c Author: Gregory P. Smith Date: Wed Jul 9 04:45:59 2003 + bsddb 4.1.6: * Extended DB &

[issue30257] _bsddb: else misleadingly indented

2017-05-03 Thread STINNER Victor
STINNER Victor added the comment: The second line in the else block was added... 14 years ago (!) by this commit: commit 455d46f0d921337405ebd3a098c210f3614ae77c Author: Gregory P. Smith Date: Wed Jul 9 04:45:59 2003 + bsddb 4.1.6: * Extended DB &

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

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ 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

[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

[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] Spam

2017-05-03 Thread Zachary Ware
Changes by Zachary Ware : -- Removed message: http://bugs.python.org/msg292931 ___ 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 --

[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

[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 ___

[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

[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 ___

[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

[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

[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

[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 STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ 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

[issue30262] Don't expose sqlite3 Cache and Statement

2017-05-03 Thread Aviv Palivoda
Changes by Aviv Palivoda : -- pull_requests: +1538 ___ 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 ___

[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 ___

[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

[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

[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

[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

[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
Changes by Serhiy Storchaka : -- pull_requests: +1540 ___ 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

[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,

[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

[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 --

[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 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

[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 ___

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

2017-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +1541 ___ 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

[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

[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

[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 ___ ___

[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 --

[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

[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 ___ ___

[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

[issue30266] AbstractContextManager should support __method__ = None

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

[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)

[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)

[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

[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

  1   2   >