[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2015-03-24 Thread py.user
py.user added the comment: @Serhiy Storchaka > What approach looks better, a copy or a read-only proxy? ISTM, your proxy patch is better, because it expects an exception rather than silence. -- ___ Python tracker

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

2015-03-24 Thread Martin Panter
Martin Panter added the comment: The implementation has been fixed for Issue 23681 to slice instead of index, and now compares byte strings: >>> import quopri >>> quopri.decodestring(b"123==four") b'123=four' >>> quopri.a2b_qp = None >>> quopri.decodestring(b"123==four") b'123=four' However, I

[issue22623] Missing guards for some POSIX functions

2015-03-24 Thread Link Mauve
Link Mauve added the comment: On Mon, Mar 23, 2015 at 09:05:20PM +, STINNER Victor wrote: > > STINNER Victor added the comment: > > > Many POSIX functions aren’t available on every system, especially embedded > > ones. > > What do you call "embedded systems"? I worked on set top boxes (th

[issue23756] Tighten definition of bytes-like objects

2015-03-24 Thread Martin Panter
New submission from Martin Panter: There are moves at documenting and implementing support for “bytes-like” objects in more APIs, such as the “io” module (Issue 20699), http.client (Issue 23740). The glossary definition is currently “An object that supports the Buffer Protocol, like bytes, byt

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-03-24 Thread David MacIver
New submission from David MacIver: Converting a list to a tuple appears to have an optimisation that is wrong in the presence of subclassing to override __iter__. It ignores the user defined iter and uses the normal list one. I've attached a file with a test case to demonstrate this. I've ver

[issue14562] urllib2 maybe blocks too long with small chunks

2015-03-24 Thread Martin Panter
Martin Panter added the comment: I can reproduce this with Python 2, but not with current Python 3, nor with v3.3.3. Probably doesn’t affect 3.2 either, but I haven’t tried. -- nosy: +vadmium versions: -Python 3.3 ___ Python tracker

[issue23756] Tighten definition of bytes-like objects

2015-03-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-l

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

2015-03-24 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19023] ctypes docs: Unimplemented and undocumented features

2015-03-24 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[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 : -- title: Missing guards for some POSIX functions -> Port Python to 3DS: micro kernel, homebrew, newlib (Missing guards for some POSIX functions) ___ Python tracker

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

[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 : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

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

[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

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

[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

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

[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() r.c

[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 : -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

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

[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

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

[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

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

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

[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 ___ ___ Python-bugs-list mailing

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

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

2015-03-24 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

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

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

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

[issue15945] memoryview + bytes fails

2015-03-24 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: -exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

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

[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 : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

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

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

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

2015-03-24 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[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

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

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-24 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg239124 ___ Python tracker ___ ___ Python-bugs-list mailing

[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

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

[issue23738] Clarify documentation of positional-only default values

2015-03-24 Thread R. David Murray
R. David Murray added the comment: That's a good point. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

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

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: pyerr_assert.patch: modify PyErr_SetObject() and PyErr_Format() to fail with an assertion error if these functions are called with an exception set. This patch detects where an exception is raised while another exception was already raised (like "try: ... exce

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

[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: -PyErr_Format(PyExc_TypeError,

[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

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

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

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

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-03-24 Thread R. David Murray
R. David Murray added the comment: This is a specific instance of the general problem covered by issue 10977. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Concrete object C API considered harmful to subclasses of builtin t

[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

[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

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

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

[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

[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 ___ ___ Python-bugs-list ma

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

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

2015-03-24 Thread Steve Dower
Steve Dower added the comment: It could be, though I admit I don't know ctypes or libffi that well. Should be easy enough to set up a repro for this (we'll add a function to _ctypes_test eventually that calls back and passes a struct) - I'll get to it sooner or later, but if someone else gets

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

2015-03-24 Thread Dan O'Reilly
Changes by Dan O'Reilly : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

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

2015-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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

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

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

[issue21717] Exclusive mode for ZipFile and TarFile

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you look on zipfile patch Berker? It is simpler than tarfile patch. -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___

[issue20924] openssl init 100% CPU utilization on Windows

2015-03-24 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still considered valid considering from https://www.python.org/downloads/release/python-279/ "The entirety of Python 3.4's ssl module has been backported for Python 2.7.9. See PEP 466 for justification." ? -- nosy: +BreamoreBoy ___

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

2015-03-24 Thread Demian Brecht
Changes by Demian Brecht : Added file: http://bugs.python.org/file38670/issue12319_3.patch ___ Python tracker ___ ___ Python-bugs-list mailing

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

2015-03-24 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the review Martin. > 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 should be practical with the existing > HTTPCon

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-03-24 Thread David MacIver
David MacIver added the comment: Ah, I hadn't seen that. Thanks for the link. But... is it really? They have basically the same root cause, but the general problem seems to be hard to fix, while the specific problem here seems to be basically "don't use the concrete API here because it breaks

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

2015-03-24 Thread Steve Dower
Steve Dower added the comment: If Martin wants to fix this for 3.4 he's welcome to, but otherwise this issue is out of date for 3.5. -- versions: -Python 3.5 ___ Python tracker ___

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-03-24 Thread R. David Murray
R. David Murray added the comment: Right, but unless I miss my guess (I haven't looked at the code) it isn't that the concrete api is being used by the constructor, it's that the concrete API is being used by the iterator protocol called by the constructor. If I'm wrong it would be sensible t

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

2015-03-24 Thread Demian Brecht
Demian Brecht added the comment: I'm also +1 to handling this generically and agree that a well thought out and researched proposal would be required. I did mention in #18228 (http://bugs.python.org/issue18828#msg238363) that I think that a short term solution to this problem could be to simpl

[issue22687] horrible performance of textwrap.wrap() with a long word

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7bd87a219813 by Serhiy Storchaka in branch 'default': Issue #22687: Fixed some corner cases in breaking words in tetxtwrap. https://hg.python.org/cpython/rev/7bd87a219813 -- nosy: +python-dev ___ Python t

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

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ethan? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue23741] Small pprint refactoring

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 522f6aa1f391 by Serhiy Storchaka in branch 'default': Issue #23741: Slightly refactor the pprint module to make it a little more https://hg.python.org/cpython/rev/522f6aa1f391 -- nosy: +python-dev ___ Pyt

[issue23741] Small pprint refactoring

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

[issue17530] pprint could use line continuation for long bytes literals

2015-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17530] pprint could use line continuation for long bytes literals

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 976de10bf731 by Serhiy Storchaka in branch 'default': Issue #17530: pprint now wraps long bytes objects and bytearrays. https://hg.python.org/cpython/rev/976de10bf731 -- nosy: +python-dev ___ Python track

[issue17530] pprint could use line continuation for long bytes literals

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

[issue23502] pprint: added support for mapping proxy

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 646a7e1da7f0 by Serhiy Storchaka in branch 'default': Issue #23502: The pprint module now supports mapping proxies. https://hg.python.org/cpython/rev/646a7e1da7f0 -- nosy: +python-dev ___ Python tracker

[issue23502] pprint: added support for mapping proxy

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

[issue23757] tuple function gives wrong answer when called on list subclass with custom __iter__

2015-03-24 Thread David MacIver
David MacIver added the comment: So as a data point, this problem seems to be unique to tuple. set(x), list(x), tuple(iter(x)) all seem to work as expected and respect the overridden __iter__ (set and list were both included in the test case I attached to demonstrated this, iter I just checked

[issue23583] IDLE: printing unicode subclasses broken (again)

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd9e4f73b5ce by Serhiy Storchaka in branch '2.7': Issue #23583: Fixed writing unicode to standard output stream in IDLE. https://hg.python.org/cpython/rev/cd9e4f73b5ce New changeset 0c72cdf3ff22 by Serhiy Storchaka in branch '2.7': Issue #23583: Fix

[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2015-03-24 Thread eryksun
eryksun added the comment: > you can't mix CRT methods with OS methods because the CRT does its > own buffering Python 3's io uses the CRT's low I/O (ioinfo struct) in binary mode. It appears that the buffers pipech, pipech2, and dbcsbuffer are only used in text mode. So it should be generall

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

2015-03-24 Thread mattip
mattip added the comment: "Bob" is relating to a dead issue, the email was from 2012 and this issue was fixed in Nov 2014. His fix is wrong and unnecessary, which he would have discovered had he run the tests that were added with that patch. This issue was only left open in order to allow some

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

2015-03-24 Thread productivememberofsociety666
New submission from productivememberofsociety666: functools.wraps currently only changes the wrapped function's "superficial" attributes such as docstring or annotations. But it would be useful to be able to change the function's actual argspec as well so it matches up with the changed annotat

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

2015-03-24 Thread SilentGhost
Changes by SilentGhost : -- nosy: +ncoghlan, rhettinger versions: -Python 3.2, Python 3.3, Python 3.4, Python 3.6 ___ Python tracker ___

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

2015-03-24 Thread Mark Dickinson
Mark Dickinson added the comment: > I'm also not sure how useful it would be for ProcessPoolExecutor to receive > an instance of itself. Agreed that this doesn't make much sense; I hadn't really thought about the ProcessPoolExecutor case. I withdraw my comments! -- _

[issue23765] Remove IsBadStringPtr calls in ctypes

2015-03-24 Thread Steve Dower
New submission from Steve Dower: Modules/_ctypes/cfield.c has this horror in it (twice): /* XXX What about invalid pointers ??? */ if (*(void **)ptr) { #if defined(MS_WIN32) && !defined(_WIN32_WCE) if (IsBadStringPtrA(*(char **)ptr, -1)) { PyErr_Format(PyExc_ValueErro

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

2015-03-24 Thread R. David Murray
R. David Murray added the comment: See also issue 15731 (this might be effectively a duplicate of that one, I'm not sure). I believe the idea of incorporating decorator into the stdlib has been brought up in the past. -- nosy: +r.david.murray ___ P

[issue23648] PEP 475 meta issue

2015-03-24 Thread Charles-François Natali
Charles-François Natali added the comment: > fstat_not_eintr.py: run this script from a NFS share and unplug the network > cable, wait, replug. Spoiler: fstat() hangs until the network is back, CTRL+c > or setitimer() don't interrupt it. You have to mount the share with the eintr option. Gett

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

2015-03-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

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

2015-03-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2015-03-24 Thread Pavel Strashkin
New submission from Pavel Strashkin: According to http://www.json.org/ and https://tools.ietf.org/html/rfc7159#section-7, the solidus ("/") should be escaped ("\/") and currently it's not. -- messages: 239170 nosy: xaka priority: normal severity: normal status: open title: json.dumps:

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

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6db9d7c1be29 by Serhiy Storchaka in branch 'default': Issue #23573: Increased performance of string search operations (str.find, https://hg.python.org/cpython/rev/6db9d7c1be29 -- nosy: +python-dev ___ Pyt

  1   2   >