[issue23756] Tighten definition of bytes-like objects

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Totally agree. Current definition is too wide. Actually in different places the term bytes-like object can imply different requirements. * Supports buffer protocol. list isn't. * Contiguous. memoryview()[::2] isn't. * len() returns bytes size. array('I')

[issue22623] Port Python to 3DS: micro kernel, homebrew, newlib (Missing guards for some POSIX functions)

2015-03-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22623 ___ ___

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread chrysn
New submission from chrysn: The CoAP protocol (RFC 7252) registers the new URI schemes coap and coaps. They adhere to the generic RFC3986 rules, and use netloc and relative URIs. Therefore, please add the 'coap' and 'coaps' schemes to the uses_relative and uses_netloc lists in urllib.parse.

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset efb2c9ac2f88 by Victor Stinner in branch '3.4': Issue #23571: Enhance Py_FatalError() https://hg.python.org/cpython/rev/efb2c9ac2f88 New changeset 6303795f035a by Victor Stinner in branch 'default': (Merge 3.4) Issue #23571: Enhance Py_FatalError()

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad5521dd7b80 by Victor Stinner in branch 'default': Issue #23753: Move _Py_wstat() from Python/fileutils.c to Modules/getpath.c https://hg.python.org/cpython/rev/ad5521dd7b80 -- ___ Python tracker

[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-24 Thread R. David Murray
R. David Murray added the comment: Yes, I agree that that is a concern. What should probably happen is that the maximum line length be a settable parameter with a reasonable default. It is too bad that (unlike say the SMTP protocol) the imap protocol does not address this directly.

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 850b9dcd0534 by Victor Stinner in branch 'default': Issue #23571: In debug mode, _Py_CheckFunctionResult() now calls https://hg.python.org/cpython/rev/850b9dcd0534 New changeset da252f12352a by Victor Stinner in branch '3.4': Issue #23571:

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-03-24 Thread Martin Panter
Martin Panter added the comment: I left a few comments on Reitveld, mainly about the documentation and API design. However I understand Rolf specifically wanted chunked encoding to work with the existing urlopen() framework, at least after constructing a separate opener object. I think that

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23760 ___ ___ Python-bugs-list

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-24 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23703 ___ ___

[issue23743] Python crashes upon exit if importing g++ compiled mod after importing gcc compiled mod

2015-03-24 Thread R. David Murray
R. David Murray added the comment: Oh, I'm afraid it can still be ignored :). What filing it here means is that it won't be *forgotten*, and hopefully there will eventually be someone with the time and interest to address it. -- nosy: +r.david.murray

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-24 Thread R. David Murray
R. David Murray added the comment: It is a deliberate choice because the functions accept default values to be returned if the actual values cannot be determined, and because it is easier therefore to write cross-platform scripts if the functions do *not* raise an error when called on the

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-24 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg239124 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23747 ___

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-24 Thread R. David Murray
R. David Murray added the comment: It is a deliberate choice because (I'm guessing) the designer thought it would make it easier to write cross platform scripts. In any case, as Haypo said, it is what it is (and it *is* consistent with itself). -- nosy: +r.david.murray

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-24 Thread Berker Peksag
Berker Peksag added the comment: Yet another option, similar to my “any_scheme=True” flag, might be to change from the “uses_relative” white-list to a “not_relative” black-list of URL schemes, [...] I think this looks like a good solution. -- versions: -Python 3.3

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread Carol Willing
New submission from Carol Willing: On Mac OSX 10.9.5, test_socket fails when regression tests are run. Specifically, the following fails: FAIL: test_host_resolution (test.test_socket.GeneralModuleTests) -- Traceback (most

[issue15945] memoryview + bytes fails

2015-03-24 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15945 ___ ___

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread Martin Panter
Martin Panter added the comment: I would like to see these hard-coded white lists of URL schemes eliminated as much as possible. Here’s some related issues: * Issue 16134: rtmp, rtmpe, rtmps, rtmpt * Issue 18828: redis, also proposing to urljoin() arbitrary schemes * Issue 15009: yelp * Issue

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Tim Graham
Tim Graham added the comment: That last commit fixed compatibility with Django. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23571 ___ ___

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-03-24 Thread Bob
Bob added the comment: I was looking into http://lists.cs.uiuc.edu/pipermail/llvmbugs/2012-September/025152.html 'Use of libclang python bindings on Windows 7 64 bit fails with memory access violation' It appears to be 90% fixed with this patch, but I believe there is still a problem when

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-24 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23512

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: -#if defined(HAVE_STAT) !defined(MS_WINDOWS) This doesn't look correct. An equivalent replacement is -#if defined(HAVE_STAT) !defined(MS_WINDOWS) +#if !defined(MS_WINDOWS) -- ___ Python tracker

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a84eae63b4cd by Victor Stinner in branch 'default': Issue #23753: Python doesn't support anymore platforms without stat() or https://hg.python.org/cpython/rev/a84eae63b4cd -- nosy: +python-dev ___ Python

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: Antoine and Charles-François are in favor of removing these #ifdef. Serhiy wrote: See issue22623 for moving in opposite direction. Not exactly, Link Mauve wrote On those two platforms, fstat() is correctly defined and works fine, so it shouldn’t be a problem

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Victor Korolkevich
New submission from Victor Korolkevich: From http://stackoverflow.com/questions/26321333/tkinter-in-python-3-4-on-windows-dont-post-internal-clipboard-data-to-the-windo I use the following code to place result in clipboard. from tkinter import Tk r = Tk() r.withdraw() r.clipboard_clear()

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e14ca478a57 by Victor Stinner in branch 'default': Issue #23571: PyErr_FormatV() and PyErr_SetObject() now always clear the https://hg.python.org/cpython/rev/2e14ca478a57 -- ___ Python tracker

[issue23758] Improve documenation about num_params in sqlite3 create_function and create_aggregate

2015-03-24 Thread Cédric Krier
New submission from Cédric Krier: num_params must have the value -1 for any number of arguments see https://www.sqlite.org/c3ref/create_function.html -- assignee: docs@python components: Documentation files: sqlite3_doc.patch keywords: patch messages: 239104 nosy: ced, docs@python

[issue11468] Improve unittest basic example in the doc

2015-03-24 Thread Ezio Melotti
Ezio Melotti added the comment: I tweaked the wording a bit, added a link to the section about setUp/tearDown, and applied it on all the 3 branches. Thanks for the patch Florian! -- resolution: - fixed stage: patch review - resolved status: open - closed

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: -#if defined(HAVE_STAT) !defined(MS_WINDOWS) This doesn't look correct. An equivalent replacement is Oh, I missed the !. Only _Py_wstat() uses this test. Windows has _wstat(), so _Py_wstat() could use it. I added deliberately !defined(MS_WINDOWS) because

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 971d299d2cf3 by Ezio Melotti in branch '2.7': #23512: list non-essential built-in functions after the table. Patch by Carlo Beccarini. https://hg.python.org/cpython/rev/971d299d2cf3 -- nosy: +python-dev

[issue21511] Thinko in Lib/quopri.py, decoding b== to b=

2015-03-24 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21511 ___ ___ Python-bugs-list

[issue11468] Improve unittest basic example in the doc

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a2a5fddbab3 by Ezio Melotti in branch '2.7': #11468: improve unittest basic example. Initial patch by Florian Preinstorfer. https://hg.python.org/cpython/rev/4a2a5fddbab3 New changeset 010e33b37feb by Ezio Melotti in branch '3.4': #11468: improve

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Victor Korolkevich
Changes by Victor Korolkevich victor.korolkev...@gmail.com: -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23760 ___ ___

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread Carol Willing
Carol Willing added the comment: Thanks Ned and R. David. A few questions... 1. I've rerun the tests using: One failure: 70 tests OK. 1 test failed: test_socket 1 test altered the execution environment: test_warnings 21 tests skipped: test_curses test_dbm_gnu test_devpoll

[issue23712] Experiment: Assume that exact unicode hashes are perfect discriminators

2015-03-24 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23712 ___

[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-03-24 Thread Nikolaus Rath
Nikolaus Rath added the comment: As discussed in Rietveld, here's an attempt to reuse more DecompressReader for GzipFile. There is still an unexplained test failure (test_read_truncated). -- Added file: http://bugs.python.org/file38674/LZMAFile-etc.v7.patch

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-03-24 Thread Mark Lawrence
Mark Lawrence added the comment: This https://mail.python.org/pipermail/python-dev/2014-December/137631.html seems relevant. Follow up here https://mail.python.org/pipermail/python-dev/2015-March/138731.html -- nosy: +BreamoreBoy ___ Python

[issue23573] Avoid redundant allocations in str.find and like

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as this patch makes buildbots crash. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23573 ___

[issue23769] valgrind reports leaks for test_zipimport

2015-03-24 Thread Robert Kuska
Changes by Robert Kuska rku...@gmail.com: Added file: http://bugs.python.org/file38673/report ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23769 ___ ___

[issue23769] valgrind reports leaks for test_zipimport

2015-03-24 Thread Robert Kuska
New submission from Robert Kuska: Leaks happen only when both testDoctestFile and testDoctestSuite are run. Run with Python 3.4.2 and 3.4.1 with same result. I have extracted those two tests into `leak.py` (attached). $ valgrind --suppressions=/../cpython/Misc/valgrind-python.supp python3

[issue23766] json.dumps: solidus (/) should be escaped

2015-03-24 Thread Martin Panter
Martin Panter added the comment: According to that RFC section, the forward solidus is allowed to be in an escape sequence, but it is also allowed unescaped: “All Unicode characters may be placed within the quotation marks, except for the characters that must be escaped: quotation mark,

[issue23766] json.dumps: solidus (/) should be escaped

2015-03-24 Thread R. David Murray
R. David Murray added the comment: It sounds like that makes this not-a-bug? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23766 ___

[issue23171] csv.writer.writerow() does not accept generator (must be coerced to list)

2015-03-24 Thread Martin Panter
Martin Panter added the comment: Left a question about handling of the unquoted empty field exception on Rietveld. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23171 ___

[issue23550] Add to unicodedata a function to query the Quick_Check property for a character

2015-03-24 Thread Hammerite
Hammerite added the comment: I tried to add these responses within the code review section of the site, but I am unable to do so; when I click Send Message, I am taken to a page that consists of the text 500 Server Error and no other content. Therefore I am responding to the code review

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: The patch looks good to me, except of a question added on the review. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23466 ___

[issue23648] PEP 475 meta issue

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: Charles-François Natali added the comment: You have to mount the share with the eintr option. Oh, I didn't know this option. Unlikely, it looks like the option was deprecated something like 7 years ago, in Linux kernel 2.6.25. Related commits:

[issue23769] valgrind reports leaks for test_zipimport

2015-03-24 Thread Robert Kuska
Robert Kuska added the comment: Summary for valgrind python3 test_zipimport.py ==18608== ==18608== HEAP SUMMARY: ==18608== in use at exit: 1,596,390 bytes in 11,536 blocks ==18608== total heap usage: 343,849 allocs, 332,313 frees, 59,355,776 bytes allocated ==18608== ==18608== LEAK

[issue23769] valgrind reports leaks for test_zipimport

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: When calling gc.collect() after each test, I don't see any leak anymore. doTest() has a small leak: it prepends a path to sys.path, but it never removes it. Try attached leak2.py: it displays something like +254 kB. Uncomment the two following lines and the

[issue23671] string.Template doesn't work with the self keyword argument

2015-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a nice catch of a subtle bug and a nice fix. I verified that replacing 'self' with '*args' does not simply shift the problem from 'self' to 'args'. class C: def test(*args, **kwargs): print(args, kwargs ) c = C()

[issue23622] Deprecate unrecognized backslash+letter escapes in re

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7384db2fce8a by Serhiy Storchaka in branch 'default': Fixed using deprecated escaping in regular expression in _strptime.py (issue23622). https://hg.python.org/cpython/rev/7384db2fce8a -- ___ Python

[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-24 Thread Arnt Gulbrandsen
Arnt Gulbrandsen added the comment: Length limits has actually been discussed and rejected; noone had a proposal that solved more problems than it introduced. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23647

[issue23762] python.org page on new-style classes should be updated

2015-03-24 Thread Joël Schaerer
New submission from Joël Schaerer: This page (found it via a search engine): https://www.python.org/doc/newstyle/ is supposed to give the status of New-style classes. However this information is no longer relevant for Python 3, and my needlessly scare newcomers. I believe it should be either

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
New submission from STINNER Victor: In Python 3, it becomes possible to chain two exceptions. It's one of the killer feature of Python 3, it helps debugging. In Python, exceptions are chained by default. Example: try: raise TypeError(old message) except TypeError:

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: For the next step, I propose to explicitly clear the current exception before raising a new exception. Attached pyerr_match_clear.patch implements this. It's only a work-in-progress. I prefer to get feedback on the patch before finishing it. The patch

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: While working on the PEP 475, I modified _Py_fopen_obj() to raise the OSError (instead of raising the exception from the call site). The zipimport uses _Py_fopen_obj() but it didn't raise OSError, only ZipImportError. I modified the zipimport module to raise

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread Ned Deily
Ned Deily added the comment: I don't recall ever seeing that failure on OS X systems. Can you patch the test to find out which address lookup is not failing as expected and then check your host configuration? -- ___ Python tracker

[issue4727] copyreg doesn't support keyword only arguments in __new__

2015-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4727 ___ ___

[issue4727] copyreg doesn't support keyword only arguments in __new__

2015-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4727 ___

[issue20289] Make cgi.FieldStorage a context manager

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34930a6faf0d by Serhiy Storchaka in branch 'default': Issue #20289: The copy module now uses pickle protocol 4 (PEP 3154) and https://hg.python.org/cpython/rev/34930a6faf0d -- ___ Python tracker

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: See also issue #21715: Chaining exceptions at C level. The changeset 9af21752ea2a added the new _PyErr_ChainExceptions() function. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread chrysn
chrysn added the comment: i wholeheartedly agree that a generic solution would be preferable, but as you pointed out, that needs to be well-researched. until there is a concrete plan for that, please don't let the ideal solution get in the way of a practical update of the uri scheme list.

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: pyerr_match_assertion.patch: Modify PyErr_ExceptionMatches() to raise an exception if it is called with no exception set. This patch can be used to ensure that pyerr_match_clear.patch doesn't introduce regression. Example: -

[issue22904] make profile-opt includes -fprofile* flags in _sysconfigdata CFLAGS

2015-03-24 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: I'm also hitting an issue with test_sysconfig_module, but for a different reason: While building Python, I used make EXTRA_CFLAGS='some flags' and this makes test_sysconfig_module fail when I run make test or python -m test.regrtest. The problem is

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread R. David Murray
R. David Murray added the comment: I too would like to see this issue dealt with generically. I believe the last time we discussed it the barrier was backward compatibility and which RFCs we actually support :(. Fixing it generically will require a well thought out and well researched

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread R. David Murray
R. David Murray added the comment: This is almost certain to be an OSX bug. Do you want to investigate? -- components: +Macintosh -Tests nosy: +ned.deily, r.david.murray, ronaldoussoren ___ Python tracker rep...@bugs.python.org

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a18b958f1e1 by Victor Stinner in branch 'default': Issue #23571: Enhance _Py_CheckFunctionResult() https://hg.python.org/cpython/rev/2a18b958f1e1 -- ___ Python tracker rep...@bugs.python.org

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread R. David Murray
R. David Murray added the comment: We could/should change that test to use subtests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23761 ___

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2015-03-24 Thread Dan O'Reilly
Changes by Dan O'Reilly oreil...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21423 ___ ___ Python-bugs-list

[issue23756] Tighten definition of bytes-like objects

2015-03-24 Thread R. David Murray
R. David Murray added the comment: This not dissimilar to the problem we have with file like object or file object. The requirements on them are not consistent. I'm not sure what the solution is in either case, but for file like objects we have decided to ignore the issue, I think. (ie:

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch fixes more bugs. Added support of unicode, izip_longest, abstract collections, ChainMap, multiprocessing exceptions, some socket and multiprocessing functions and types, xml.etree.ElementTree (C implementation). Added support of urllib and

[issue23770] Rework of exceptions are handled in the parser module (in validate_repeating_list())

2015-03-24 Thread STINNER Victor
New submission from STINNER Victor: Attached patch avoids calling validate_numnodes() with an exception set in the parser module. I found this issue while working on the issue #23763 Chain exceptions in C. -- files: validate_repeating_list.patch keywords: patch messages: 239199 nosy:

[issue23764] functools.wraps should be able to change function argspec as well

2015-03-24 Thread productivememberofsociety666
productivememberofsociety666 added the comment: I'm not sure if I understand issue 15731 correctly, but isn't that one just about docstrings and signatures? These are both purely cosmetic and don't have an effect on calling behaviour, do they? This issue wouldn't be a duplicate then.

[issue23573] Avoid redundant allocations in str.find and like

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: Looks as this patch makes buildbots crash. Yep. It took me some minutes to find that the crash was caused by this issue :-p http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/5930/steps/test/logs/stdio ... [117/393/1] test_bigmem

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 004e3870d9e6 by Victor Stinner in branch '3.4': Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(), https://hg.python.org/cpython/rev/004e3870d9e6 -- ___ Python tracker

[issue23771] Timeouts on x86 Ubuntu Shared 3.x buildbot

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: test_multiprocessing_spawn.test_notify_all() also hangs on AMD64 Debian root 3.x buildbot: http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/1959/steps/test/logs/stdio --- [330/393] test_multiprocessing_spawn Timeout (1:00:00)! Thread

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: pyerr_match_clear-2.patch: Updated patch, more complete (I also removed the assertions, I only added to debug). Since my patch makes assumption on which exception is expected, it can change the behaviour of functions if I forgot a different exception which

[issue23772] pymonotonic() gone backward on AMD64 Debian root 3.x buildbot

2015-03-24 Thread STINNER Victor
New submission from STINNER Victor: I would be interested to know the Linux version of this buildbot slave. Maybe the slave is running in a VM and it's a virtualization issue? If it's the case, should Python fix the bug? Or should we just remove the assertion?

[issue23773] importlib does not properly remove frames when invoking external import hooks

2015-03-24 Thread Shiz
New submission from Shiz: When adding a custom module loader to sys.meta_path, importlib does not properly remove its frames before invoking it. This results in a weird traceback with importlib._bootstrap frames in if an error occurs during load_module(), like such: Traceback (most recent

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: New issue #23770: Rework of exceptions are handled in the parser module (in validate_repeating_list()) to fix error handling in the parser module. -- ___ Python tracker rep...@bugs.python.org

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I had issues with my local repository. Third try to upload pyerr_match_clear-2.patch for Rietveld. -- Added file: http://bugs.python.org/file38680/pyerr_match_clear-2.patch ___ Python tracker

[issue23573] Avoid redundant allocations in str.find and like

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3ac58de829ef by Victor Stinner in branch 'default': Issue #23573: Fix bytes.rfind() and bytearray.rfind() on Windows https://hg.python.org/cpython/rev/3ac58de829ef -- ___ Python tracker

[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-03-24 Thread Martin Panter
Martin Panter added the comment: Wolfgang: If the patch here is too massive, perhaps you might like to review my patch at Issue 23528 first. :) It only fixes the “gzip” module, but is definitely simpler, so might have more chance of making it into 3.4 or 3.5 on time. === Changes introduced

[issue23766] json.dumps: solidus (/) should be escaped

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue18290. Not only solidus is incompatible with JavaScript, and it id easy to escape problem characters after passing through JSON encoder using str.replace(). -- nosy: +serhiy.storchaka ___ Python tracker

[issue23771] Timeouts on x86 Ubuntu Shared 3.x buildbot

2015-03-24 Thread STINNER Victor
New submission from STINNER Victor: First timeout: http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/11358 This build was only triggered by one changeset 0b99d7043a99: Issue #23694: Enhance _Py_open(), it now raises exceptions. * _Py_open() now raises exceptions on

[issue23772] pymonotonic() gone backward on AMD64 Debian root 3.x buildbot

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: == Linux-3.2.0-4-amd64-x86_64-with-debian-7.7 little-endian Kernel: Linux-3.2.0-4 CPU: amd64-x86_64 (little-endian) OS: debian-7.7 Linux had a bug in version 2.6.33 (also fixed in 2.6.32.19): [PATCH] Fix clock_gettime vsyscall time warp

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file38677/pyerr_match_clear-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23763 ___

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: Oh, I had a private local commit when I generated pyerr_match_clear-2.patch and so Rietveld failed to find the branch. I regenerated the patch. -- Added file: http://bugs.python.org/file38678/pyerr_match_clear-2.patch

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: pyerr_chain.patch: The real patch to chain automatically exceptions when using PyErr_*() functions. pyerr_match_clear-2.patch hides the original exception when it is useless, too low level like OverflowError when casting to C types, etc. Examples without

[issue23573] Avoid redundant allocations in str.find and like

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: The problem is that Windows has no memrchr() function, and so fastsearch_memchr_1char() only supports FAST_SEARCH on Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23573

[issue23573] Avoid redundant allocations in str.find and like

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: It looks like fastsearch_memchr_1char() manipulate pointers for memory alignment. It's not necessary when looking for ASCII or Latin1 characters or for bytes. I propose to add a new fastsearch_memchr_1byte() function which would be used by bytes and

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread R. David Murray
R. David Murray added the comment: There are always going to be tests that are skipped (ones that don't run on your platform). Most of test_socket should run even if all you have is localhost networking. The 'network' resource is designed to control access to *external* networking resources,

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1c2376825dd2 by Victor Stinner in branch '3.4': Issue #23571: Fix reentrant call to Py_FatalError() https://hg.python.org/cpython/rev/1c2376825dd2 New changeset e9ba95418af8 by Victor Stinner in branch 'default': (Merge 3.4) Issue #23571: Fix

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file38678/pyerr_match_clear-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23763 ___

[issue23743] Python crashes upon exit if importing g++ compiled mod after importing gcc compiled mod

2015-03-24 Thread matham
matham added the comment: Well, we won't have to wait until interested solves it. After hours of debugging including compiling Python with VS2013 and looking at windows dump files, it seems that hard work pays off - sorry, I mean asking someone who knows the answer pays off :P. I asked on

[issue17301] An in-place version of many bytearray methods is needed

2015-03-24 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17301 ___ ___ Python-bugs-list

[issue19023] ctypes docs: Unimplemented and undocumented features

2015-03-24 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19023 ___ ___

[issue22623] Port Python to 3DS: micro kernel, homebrew, newlib (Missing guards for some POSIX functions)

2015-03-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Missing guards for some POSIX functions - Port Python to 3DS: micro kernel, homebrew, newlib (Missing guards for some POSIX functions) ___ Python tracker rep...@bugs.python.org

[issue22623] Port Python to 3DS: micro kernel, homebrew, newlib (Missing guards for some POSIX functions)

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: My target platforms have been the Newlib-based Wii and 3DS homebrew toolchains, which emulate a POSIX system on top of the raw hardware (or in the case of the 3DS, a proprietary micro-kernel. What do you think of my idea of maintaining a fork of the Python

[issue20984] 'Add/Remove Programs' dialog missing entries for 32-bit CPython 'current user only' installations on 64-bit Windows

2015-03-24 Thread Mark Lawrence
Mark Lawrence added the comment: Presumably this can be incorporated into the ongoing work on the Windows installer. -- nosy: +BreamoreBoy, paul.moore, steve.dower, tim.golden ___ Python tracker rep...@bugs.python.org

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-03-24 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: Added file: http://bugs.python.org/file38670/issue12319_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12319 ___

  1   2   >