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

2015-03-19 Thread Martin Panter
New submission from Martin Panter: This is a regression caused by revision 901e4e52b20a. Before (e.g. Python 3.4): >>> urljoin('a', 'b') 'b' After: >>> urljoin('a', 'b') 'b/b' This was identified in but is actually caused by the revision committ

[issue23704] Make deques a full MutableSequence by adding index(), insert(), and copy()

2015-03-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- components: Library (Lib) files: deque_insert_index_copy3.diff keywords: patch nosy: rhettinger priority: normal severity: normal stage: patch review status: open title: Make deques a full MutableSequence by adding index(), insert(), and copy() type: en

[issue22278] urljoin duplicate slashes

2015-03-19 Thread Martin Panter
Martin Panter added the comment: I opened Issue 23703 for a regression caused by this commit. -- nosy: +vadmium ___ Python tracker ___ ___

[issue23325] Turn SIG_DFL and SIG_IGN into functions

2015-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Currently the action parameter of signal.signal() can be SIG_DFL, SIG_IGN, or a callable Python object. Would be just a callable Python object. This is simpler. The main benefit is that they will be better look in pydoc output. -- __

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-19 Thread Martin Panter
Martin Panter added the comment: I opened Issue 23703 about the funny doubled bar.com result. After backing out revision 901e4e52b20a, but with my patch here applied: >>> urljoin('mailto:foo@', 'bar.com') 'mailto:bar.com' which seems fairly sensible to me. A more awkward question is if this be

[issue23705] Speed-up deque.__contains__

2015-03-19 Thread Raymond Hettinger
New submission from Raymond Hettinger: Help deques match the performance of lists for a __contains__ check. Comparative timings are attached. -- assignee: rhettinger components: Library (Lib) files: deque_contains0.diff keywords: patch messages: 238496 nosy: rhettinger priority: normal

[issue23705] Speed-up deque.__contains__

2015-03-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file38554/deque_contains_timings.txt ___ Python tracker ___ ___ Python-bugs-

[issue20204] pydocs fails for some C implemented classes

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

[issue23704] Make deques a full MutableSequence by adding index(), insert(), and copy()

2015-03-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

2015-03-19 Thread Wolfgang Maier
Changes by Wolfgang Maier : -- nosy: +wolma ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

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

2015-03-19 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue23706] pathlib.Path.write_text should include a newline argument

2015-03-19 Thread Ugra Dániel
New submission from Ugra Dániel: The new pathlib.Path [read|write]_[binary|text] methods will be very useful, one thing I miss badly is the newline argument for write_text. In some cases text files need a specific line ending (independent from the platform the code is being executed on.) In my

[issue23419] Faster default __reduce__ for classes without __init__

2015-03-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: But isn't the result different? NEWOBJ calls cls.__new__() and __init__ is skipped. REDUCE calls cls(): both __new__ and __init__ are used. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue23419] Faster default __reduce__ for classes without __init__

2015-03-19 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Sorry, I missed the important point: "for classes without __init__" -- ___ Python tracker ___

[issue23681] Have -b warn when directly comparing ints and bytes

2015-03-19 Thread Paul Moore
Paul Moore added the comment: LGTM, just one minor comment in review. -- nosy: +paul.moore ___ Python tracker ___ ___ Python-bugs-list

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- stage: needs patch -> resolved ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23001] Accept mutable bytes-like objects

2015-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added versionchanged directives and fixed other documentation. -- Added file: http://bugs.python.org/file38555/accept_mutable_buffers_2.patch ___ Python tracker _

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-03-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23707] PEP 475: os.urandom() doesn't handle EINTR correctly

2015-03-19 Thread STINNER Victor
New submission from STINNER Victor: dev_urandom_python() retries read() if it fails with EINTR, but Python signal handlers are not called: PyErr_CheckSignals() is not called. It's important be able to interrupt a function by a signal, especially if it's blocking. We need maybe a new _Py_read()

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: Oh, test_os now fails on Linux because os.urandom() doesn't use a file descriptor anymore. The test should be skipped when getrandom() is used. The test is already skipped when getentropy() is used. -- resolution: fixed -> status: closed -> open

[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

2015-03-19 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: I'm attaching second version of the patch. It now contains link to this bug and a more real test case according to suggestion from the review. One of the reviews of first patch version mentioned that there should be a better explanation of how this i

[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

2015-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- assignee: -> serhiy.storchaka stage: patch review -> commit review ___ Python tracker ___ __

[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-19 Thread Davin Potts
Davin Potts added the comment: Reading issue22634 suggests that perhaps this issue is not limited to FreeBSD -- issue22634 appears to suffer the same behavior on RHEL 6.4 and 5.5 when compiling to 32-bit (the -m32 compiler flag is being used there). --

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2015-03-19 Thread Davin Potts
Davin Potts added the comment: Comparing this to issue23042, this same behavior appears on i386 releases of FreeBSD 8.3 and 10.1 (the i386-RELEASE means it's 32-bit as opposed to 64-bit build). Given that this issue is being triggered here with -m32 (triggers building of 32-bit binaries) and

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2015-03-19 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: This is likely also related to issue23042. The precompiler #ifdefs were mixed up, causing Win32 code to be compiled in on other platforms as well. -- nosy: +lemburg ___ Python tracker

[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

2015-03-19 Thread Paul Moore
Paul Moore added the comment: Agreed, the test is sufficient documentation. However, I can't make the test fail here (Windows 7, Python 3.4.3): >py ti.py b'spam\n' b'spam\n' b'eggs\n' b'eggs\n' b'beans\n' b'beans\n' >cat ti.py import tempfile def test_iter(): # getting iterator from a temp

[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7fa741fe9425 by Serhiy Storchaka in branch '3.4': Issue #23700: Iterator of NamedTemporaryFile now keeps a reference to https://hg.python.org/cpython/rev/7fa741fe9425 New changeset c84a0b35999a by Serhiy Storchaka in branch 'default': Issue #23700:

[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

2015-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Bohuslav. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

2015-03-19 Thread Bohuslav "Slavek" Kabrda
Bohuslav "Slavek" Kabrda added the comment: Thank you! To answer Paul's question: I honestly have no idea why this can't be reproduced on Windows. I managed to reproduce this in 100 % cases on various RPM-flavour Linux distros (Fedora, CentOS, RHEL) as well as on Debian and Ubuntu. --

[issue23708] PEP 475: Add _Py_read() and _Py_write() functions

2015-03-19 Thread STINNER Victor
New submission from STINNER Victor: To factorize code handling EINTR, I propose add 2 new functions to fileutils.h: _Py_read() and _Py_write(). Attached patch adds these functions and use them in the os and _io modules. The code of the functions is based on the code from the os and _io modules

[issue23708] PEP 475: Add _Py_read() and _Py_write() functions

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: select_write.patch: use _Py_write() in the select module. -- Added file: http://bugs.python.org/file38558/select_write.patch ___ Python tracker

[issue23709] Refactor ossaudiodev: use _Py_read and _Py_write with the Py_buffer

2015-03-19 Thread STINNER Victor
New submission from STINNER Victor: Attached patch enhances ossaudiodev to support buffer larger than 2 GB (replace the C int type with C Py_ssize_t). It uses the new _Py_read() and _Py_write() functions added in the issue #23708 with the Py_buffer API. By the way, I don't understand the purpo

[issue23709] Refactor ossaudiodev: use _Py_read and _Py_write with the Py_buffer

2015-03-19 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +PEP 475: Add _Py_read() and _Py_write() functions ___ Python tracker ___ ___ Python-bugs

[issue23708] PEP 475: Add _Py_read() and _Py_write() functions

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #23709 for the ossaudiodev module: "Refactor ossaudiodev: use _Py_read and _Py_write with the Py_buffer". -- ___ Python tracker ___

[issue23700] tempfile.NamedTemporaryFile can close too early if used as iterator

2015-03-19 Thread Paul Moore
Paul Moore added the comment: Cool, no problem. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue23707] PEP 475: os.urandom() doesn't handle EINTR correctly

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: random.patch: fix the issue with the new _Py_read() function added by the issue #23708. -- dependencies: +PEP 475: Add _Py_read() and _Py_write() functions keywords: +patch Added file: http://bugs.python.org/file38560/random.patch _

[issue23709] Refactor ossaudiodev: use _Py_read and _Py_write with the Py_buffer

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot to mention the advantage of using _Py_read() and _Py_write(): they retry read/write when interrupted by a signal, to support the PEP 475. -- ___ Python tracker __

[issue23648] PEP 475 meta issue

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: More issues: - Issue #23707: os.urandom() doesn't handle EINTR correctly - Issue #23708: Add _Py_read() and _Py_write() functions - Issue #23709: Refactor ossaudiodev: use _Py_read and _Py_write with the Py_buffer -- dependencies: +PEP 475: Add _Py_rea

[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-19 Thread Davin Potts
Davin Potts added the comment: Attaching a patch which enabled successful compilation of ctypes on FreeBSD 10.1 i386-RELEASE in each of default/3.5, 3.4, and 2.7 branches. This patch attempts to fix the incomplete logic regarding Windows target platforms in the ifdef's inside Modules/_ctypes/l

[issue23042] ctypes module doesn't build on FreeBSD x86

2015-03-19 Thread Davin Potts
Changes by Davin Potts : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2015-03-19 Thread Davin Potts
Davin Potts added the comment: There is now a proposed patch on issue23042 which, having gone through those changes, may well address this issue too. Testing that patch on multiple platforms (including the RHEL variants relevant here) would be much appreciated. Thanks goes to @lemburg for doi

[issue23698] Fix documentation for multiprocessing.Manager

2015-03-19 Thread Anand B Pillai
Anand B Pillai added the comment: Is your patch uploaded anywhere ? Anyway, before thinking whether this should be a patch or doc fix, one needs multiprocessing module author to possibly comment on the right behaviour expected here. -- ___ Python t

[issue23698] Fix inconsistencies in behaviour and document it correctly for multiprocessing.Manager facade

2015-03-19 Thread Anand B Pillai
Changes by Anand B Pillai : -- title: Fix documentation for multiprocessing.Manager -> Fix inconsistencies in behaviour and document it correctly for multiprocessing.Manager facade ___ Python tracker _

[issue23698] Fix inconsistencies in behaviour and document it correctly for multiprocessing.Manager facade

2015-03-19 Thread Davin Potts
Davin Potts added the comment: No, it's premature to share the start of my patch. Very much agreed on getting that input/insight -- sbt (multiprocessing module maintainer and original author) was added to the nosy list yesterday too. -- ___ Python t

[issue23708] PEP 475: Add _Py_read() and _Py_write() functions

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: With py_read_write.patch in debug mode, test_threading crash with an assertion error because of the issue #15751. Currently, it's not possible to call assert(PyGILState_Check()); inside Py_NewInterpreter(), while creating a subinterpreter (ex: _testcapi.run_in

[issue16314] Support xz compression in distutils

2015-03-19 Thread Éric Araujo
Éric Araujo added the comment: Code and doc changes look good. Will you add tests? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2015-03-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: -haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23708] PEP 475: Add _Py_read() and _Py_write() functions

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: Oops, there was a bug in FileIO.readall(), fixed in the new patch py_read_write-2.patch. I also commented assert(PyGILState_Check()); to workaround the issue #15751. -- Added file: http://bugs.python.org/file38562/py_read_write-2.patch ___

[issue23648] PEP 475 meta issue

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: signal.sigwaitinfo() raises InterruptedError if the wait was interrupted by a signal handler (this handler was for a signal other than one of those in set). IMO we should also retry sigwaitinfo() if it fails with EINTR. -- ___

[issue23710] C API doc for PyObject_HEAD is outdated

2015-03-19 Thread Tomi Pieviläinen
New submission from Tomi Pieviläinen: https://docs.python.org/3/c-api/structures.html#c.PyObject_HEAD says that the macro should be used for creating new types and that it has ob_type. Unfortunately at some point (@61466 perhaps) that definition in object.h was changed. This affects other page

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

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: Nice work tracking down the commit, thanks for that. I've attached a fix. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file38563/issue23703.patch ___ Python tracker

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2015-03-19 Thread Siming Yuan
Siming Yuan added the comment: @davin @lemburg just tested with the provided patch in http://bugs.python.org/issue23042, the partch works. dupe the bug? -- ___ Python tracker _

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2015-03-19 Thread Davin Potts
Davin Potts added the comment: @siyuan: Duping it -- thanks for trying that patch out so quickly! -- superseder: -> ctypes module doesn't build on FreeBSD x86 ___ Python tracker __

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: urljoin('mailto:foo@', 'bar.com') > 'mailto:bar.com' > > which seems fairly sensible to me. This is where joining arbitrary protocols gets tricky. Does it make sense to merge non-hierarchical protocols such as mailto? My initial reaction is "no" and what

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2015-03-19 Thread Joshua J Cogliati
Joshua J Cogliati added the comment: Looking at the patch (3078fdb7cf3d for Issue1488098) it has: if target_lang == "c++" and self.compiler_cxx: -linker[0] = self.compiler_cxx[0] One possibility is that that the problem was: linker[0] = self.compiler_cxx[0]

[issue23711] ConfigParser module blames on section less ini file

2015-03-19 Thread Maxim Kot
New submission from Maxim Kot: Wikipedia (http://en.wikipedia.org/wiki/INI_file#Sections) says: >Keys may (but need not) be grouped into arbitrarily named sections But when it's trying to parse file without section header - "MissingSectionHeaderError: File contains no section headers" raised.

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-19 Thread Demian Brecht
Demian Brecht added the comment: Also, I would suggest still including the doc changes proposed by Madison in all versions prior to 3.5. -- ___ Python tracker ___ __

[issue23325] Turn SIG_DFL and SIG_IGN into functions

2015-03-19 Thread Ethan Furman
Ethan Furman added the comment: Thanks for the explanation, point taken. However, it seems to me that changing the type of the constants from 'int' to 'function' is backwards incompatible, will break code, and is probably not worth it (and would require a deprecation period if it was worth it)

[issue16314] Support xz compression in distutils

2015-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added tests for gztar, bztar and xztar. Added more asserts in other tests. -- Added file: http://bugs.python.org/file38564/distutils-lzma_2.patch ___ Python tracker _

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Serhiy, Your latest patch LGTM. -- stage: patch review -> commit review type: -> behavior ___ Python tracker ___ ___

[issue23648] PEP 475 meta issue

2015-03-19 Thread STINNER Victor
STINNER Victor added the comment: I searched for "EINTR" in all manual pages of my Fedora 21. I found a long list of functions (filename of manual pages). But I didn't check each manual page. There are false positive. For example, "stat" is listed, but in fact EINTR is only mentionned in comme

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 350ea309953e by Serhiy Storchaka in branch '2.7': Issue #23136: _strptime now uniformly handles all days in week 0, including https://hg.python.org/cpython/rev/350ea309953e New changeset 93e1da502338 by Serhiy Storchaka in branch '3.4': Issue #23136

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for the review Alexander. Thank you for your contribution Jim. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker _

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: "including Jan 30" - did you mean Dec 31? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I meant Dec 30. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I don't think it is worth the effort to try to fix the commit message, but it would be nice to have the NEWS text corrected. -- ___ Python tracker __

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9f3dd1d6b48 by Serhiy Storchaka in branch '2.7': Fixed Misc/NEWS entry for issue #23136. https://hg.python.org/cpython/rev/d9f3dd1d6b48 New changeset afca9867e1bb by Serhiy Storchaka in branch '3.4': Fixed Misc/NEWS entry for issue #23136. https://

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it possible to fix the commit message without breaking any of cloned repositories that already have pulled it? -- ___ Python tracker ___ _

[issue12006] strptime should implement %G, %V and %u directives

2015-03-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It would be nice to get this in for 3.5. Does anyone have time/interest to address the last two comments? -- nosy: +serhiy.storchaka ___ Python tracker

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Probably not. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23136] BUG in how _strptime() handles week 0

2015-03-19 Thread Jim Carroll
Jim Carroll added the comment: Thanks for all your work ! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2015-03-19 Thread Raymond Hettinger
New submission from Raymond Hettinger: This tracker item is for a thought experiment I'm running where I can collect the thoughts and discussions in one place. It is not an active proposal for inclusion in Python. The idea is to greatly speed-up the language for set/dict lookups of unicode v

[issue23713] intermittent failure of multiprocessing unit test test_imap_unordered_handle_iterable_exception

2015-03-19 Thread Davin Potts
New submission from Davin Potts: test_imap_unordered_handle_iterable_exception fails intermittently on some platforms due to the test being too rigid (fragile) about the order of the items being iterated over which, as the name would imply, is not guaranteed. Of the multiprocessing module's te

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

2015-03-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file38566/assume_perf_uni_hash1.diff ___ Python tracker ___ ___ Python-bugs-

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

2015-03-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file38565/assume_perf_uni_hash.diff ___ Python tracker ___ ___ Python-bugs

[issue23713] intermittent failure of multiprocessing unit test test_imap_unordered_handle_iterable_exception

2015-03-19 Thread Davin Potts
Davin Potts added the comment: Attaching patch for this fragile test for default/3.5 and 3.4 branches. Blame for implementing the fragile test falls to @davin. In my own defense, @davin also discovered it in testing on FreeBSD 10.1 i386-RELEASE. -- keywords: +patch Added file: http:/

[issue23706] pathlib.Path.write_text should include a newline argument

2015-03-19 Thread Ned Deily
Changes by Ned Deily : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue23707] PEP 475: os.urandom() doesn't handle EINTR correctly

2015-03-19 Thread Ned Deily
Changes by Ned Deily : -- nosy: +neologix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue23713] intermittent failure of multiprocessing unit test test_imap_unordered_handle_iterable_exception

2015-03-19 Thread Davin Potts
Davin Potts added the comment: Attaching patch for this fragile test for 2.7 branch. Patches have been put through test.regrtest on OS X 10.10 (64-bit), FreeBSD 10.1 i386 (32-bit), and Raspbian Debian (ARMv6) thus far. -- stage: -> patch review Added file: http://bugs.python.org/file

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

2015-03-19 Thread Hammerite
Hammerite added the comment: Berker, I had not seen your or Ezio's review comments. The user interface here is new to me and I did not know to seek them out separately from the issue page. Thank you for pointing them out to me. I shall go through and look at the suggestions that were made. --

[issue23646] PEP 475: handle EINTR in the time module, retry sleep()

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset b1abd06465fc by Victor Stinner in branch 'default': Issue #23646: If time.sleep() is interrupted by a signal, the sleep is now https://hg.python.org/cpython/rev/b1abd06465fc -- ___ Python tracker

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-19 Thread Mark Mikofski
Mark Mikofski added the comment: I know this issue is closed, but as there is no voting or plus 1, I'll add my support for allowing local installation of not just Python-3, but also Python-2.7. I'm not sure what is gained by adding this restriction, or how difficult it would be to allow users

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4491bdb6527b by Victor Stinner in branch 'default': Issue #22181: The availability of the getrandom() is now checked in configure, https://hg.python.org/cpython/rev/4491bdb6527b -- ___ Python tracker

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-19 Thread Mark Mikofski
Mark Mikofski added the comment: one more note, NaCl (J. Morton), you can install from the msi to any directory you want by using the following from a command line opened to the folder where you have the installer: C:\path\to\msi\download> msiexec /a python-2.7.9.amd64.msi TARGETDIR=C:\Python2

[issue23714] Comprehension + eval doesn't work inside function definition

2015-03-19 Thread Ariel Bruner
New submission from Ariel Bruner: The following code gives a NameError: >>> def foo(bar): print {eval(x) for x in ['bar']} >>> foo(2) Traceback (most recent call last): File "", line 1, in foo(2) File "", line 2, in foo print {eval(x) for x in ['bar']} File "", line 2,

[issue23714] Set comprehension + eval doesn't work inside function definition

2015-03-19 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Your example is of a set comprehension. Set and dictionary comprehensions were Python 3.2 features backported to Python 2.7 for compatibility and thus had no existing Python 2 compatibility concerns. If you try a similar example using list

[issue23714] Set comprehension + eval doesn't work inside function definition

2015-03-19 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg238562 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23714] Set comprehension + eval doesn't work inside function definition

2015-03-19 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. Your example is of a set comprehension. Set and dictionary comprehensions were Python 3.1 features backported to Python 2.7 for compatibility and thus had no existing Python 2 compatibility concerns. If you try a similar example using list

[issue11344] Add os.path.splitpath(path) function

2015-03-19 Thread Éric Araujo
Éric Araujo added the comment: pathlib is in the stdlib now (see previous comments), maybe this should be closed as obsolete. -- ___ Python tracker ___ _

[issue2211] Cookie.Morsel interface needs update

2015-03-19 Thread R. David Murray
R. David Murray added the comment: The change to the signature of set is backward incompatible and should have a deprecation warning instead (yes, I know it isn't documented). I'd even be OK with the value being ignored, but the signature shouldn't change. There are a number of API/behavior c

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

2015-03-19 Thread Martin Panter
Martin Panter added the comment: Patch looks good enough. BTW I was thinking of something like this, which is a bit simpler, but I never tested it: segments[1:-1] = filter(None, segments[1:-1]) -- ___ Python tracker

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

2015-03-19 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue22516] Windows Installer won't - even when using "just for me"option

2015-03-19 Thread Steve Dower
Steve Dower added the comment: Supporting proper per-user installs of Python 2.7 or 3.4 would require a second MSI that is configured to not ask for administrative privileges. The code is in Tools/msi/msi.py if you want to look at it (it's not my code and I have no intention of touching it), b

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2015-03-19 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue23708] PEP 475: Add _Py_read() and _Py_write() functions

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset c3c47ea32f72 by Victor Stinner in branch 'default': Issue #23708: Add _Py_read() and _Py_write() functions to factorize code handle https://hg.python.org/cpython/rev/c3c47ea32f72 -- nosy: +python-dev ___

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8c73af0b3cd9 by Victor Stinner in branch 'default': Issue #22181: Fix dev_urandom_noraise(), try calling py_getrandom() before https://hg.python.org/cpython/rev/8c73af0b3cd9 -- ___ Python tracker

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-19 Thread James Rutherford
James Rutherford added the comment: Python 3 patch attached. The documentation has changed structure a little so I've adapted (simplified) this from the original. Otherwise, it's pretty much the same, except with python3 fixes, and incorporated feedback. I'll upload an updated 2.7 patch as wel

[issue12006] strptime should implement %G, %V and %u directives

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

[issue23708] PEP 475: Add _Py_read() and _Py_write() functions

2015-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset e232b57ee784 by Victor Stinner in branch 'default': Issue #23708: select.devpoll now retries its internal write() when interrupted https://hg.python.org/cpython/rev/e232b57ee784 -- ___ Python tracker

  1   2   >