[issue16328] win_add2path.py sets wrong user path

2015-03-23 Thread Paul Moore
Paul Moore added the comment: There's actually a bug in the pre-3.5 script beyond the "does the directory exist" check. The code is if hasattr(site, "USER_SITE"): userpath = site.USER_SITE.replace(appdata, "%APPDATA%") userscripts = os.path.join(userpath, "Scripts") which s

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

2015-03-23 Thread Charles-François Natali
Charles-François Natali added the comment: +1 from me, fstat() has always been par of POSIX. It's really likely Python won't build anyway on such systems. -- ___ Python tracker _

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

2015-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue12082. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23648] PEP 475 meta issue

2015-03-23 Thread STINNER Victor
STINNER Victor 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. By the way, it looks like the itimer is interrupted during fstat! Extr

[issue23731] Implement PEP 488

2015-03-23 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23058] argparse silently ignores arguments

2015-03-23 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2015-03-23 Thread Charles-François Natali
Charles-François Natali added the comment: > Serhiy Storchaka added the comment: > > See also issue12082. Yes, but I don't think we want to clutter the code to support exotic niche platforms. -- ___ Python tracker

[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why do you want to optimize the pure Python FileIO? -- nosy: +pitrou ___ Python tracker ___ ___ Pyth

[issue23754] Add a new os.read_into() function to avoid memory copies

2015-03-23 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue23752] Cleanup io.FileIO

2015-03-23 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue23058] argparse silently ignores arguments

2015-03-23 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +nailor, r.david.murray versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bug

[issue23754] Add a new os.read_into() function to avoid memory copies

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

[issue22942] Language Reference - optional comma

2015-03-23 Thread Martin Panter
Martin Panter added the comment: See also Issue 9232, about adding support for trailing commas in all cases of function calls and definitions. -- nosy: +vadmium ___ Python tracker _

[issue9232] Allow trailing comma in any function argument list.

2015-03-23 Thread Martin Panter
Martin Panter added the comment: See also Issue 22942 about existing problems with the language documentation. I would like to see trailing commas supported consistently, especially in function calls. (I think the patch here only does function definitions?) I like to use them when writing argu

[issue23755] tempfile.NamedTemporaryFile should be able to toggle "delete"

2015-03-23 Thread Stephen Gallagher
New submission from Stephen Gallagher: Currently, NamedTemporaryFile takes an attribute at initialization that allows it to remove the temporary file on going out of scope or else leave it around. However, it's not possible to change this after the fact. It would be a much more sensible patter

[issue23755] tempfile.NamedTemporaryFile should be able to toggle "delete"

2015-03-23 Thread Stephen Gallagher
Stephen Gallagher added the comment: Oops, the temporary code I sent indicated that I was overriding the unlink() function (which I also tried, just in case __del__ was somehow protected). Neither monkeypatching unlink nor __del__ actually worked. -- __

[issue9232] Allow trailing comma in any function argument list.

2015-03-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like if it was not for Raymond's mild dissent, [1], we would have a consensus last time this was raised on python-dev, [2-7]. [1] -? Raymond Hettinger https://mail.python.org/pipermail/python-dev/2010-December/106782.html [2] +0 Guido van Rossum

[issue9232] Allow trailing comma in any function argument list.

2015-03-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: .. and a couple more -1's on the tracker: msg123851 - Martin v. Löwis msg123848 - Brett Cannon It looks like a round on python-ideas is needed before this can move forward. -- ___ Python tracker

[issue23744] Speed-up deque.__bool__

2015-03-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: Is it worth the definition of tp_as_number and maintaining another method for a micro-optimization? Presumably every collection in Python would benefit slightly from this (say, defaultdict in the same file, list, tuple, etc.), but none of them bother. Why woul

[issue23750] Clarify difference between os.system/subprocess.call in section "Replacing os.system()"

2015-03-23 Thread Martin Panter
Martin Panter added the comment: Another difference is that (at least POSIX) system() blocks SIGINT and SIGQUIT while the child is running. Compare: $ python3 -c 'print("Waiting"); import os; print("Returned", os.system("sleep 3 && exit 3"))' Sleeping Returned 768 $ python3 -c 'print("Sleeping

[issue23744] Speed-up deque.__bool__

2015-03-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: On further checking, this probably gives slightly greater benefit to deque than it would for list, tuple, dict, etc., only because PyObject_IsTrue checks for mapping before sequence; deque is a pure sequence, no mapping, so it has to fail an extra test before

[issue15945] memoryview + bytes fails

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

[issue21342] multiprocessing RLock and Lock raise incorrect exceptions when releasing an unlocked lock.

2015-03-23 Thread Davin Potts
Davin Potts added the comment: Since the time of its introduction in 2.6, a call to multiprocessing.Lock.release on an already unlocked lock resulted in behavior that did not match that of threading.Lock.release (which raised a thread.error as far back as 2.4 and probably longer than that hist

[issue21342] multiprocessing RLock and Lock raise incorrect exceptions when releasing an unlocked lock.

2015-03-23 Thread Davin Potts
Changes by Davin Potts : -- versions: +Python 2.7, Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue22208] tarfile can't add in memory files (reopened)

2015-03-23 Thread Martin Panter
Martin Panter added the comment: If you read the documentation it is clear that gettarfile() requires an OS file, so won’t work with an internal Python-only file object. Maybe the documentation could be tweaked, but I don’t think the gettarfile() implementation should be changed. To me the who

[issue23744] Speed-up deque.__bool__

2015-03-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for taking a look. IMO, the cost of this one is near zero and there is a modest benefit. It is simple enough that I don't feel any angst about applying it. I'm doing several little touch-ups to the module, individually nothing, but collectively m

[issue23744] Speed-up deque.__bool__

2015-03-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb27dff7f83f by Raymond Hettinger in branch 'default': Issue 23744: Minor speed-up for deque.__bool__(). https://hg.python.org/cpython/rev/bb27dff7f83f -- nosy: +python-dev ___ Python tracker

[issue23744] Speed-up deque.__bool__

2015-03-23 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue21861] io class name are hardcoded in reprs

2015-03-23 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

<    1   2