[issue22261] Document how to use Concurrent Build when using MsBuild

2014-08-29 Thread Zachary Ware
Zachary Ware added the comment: I finally managed to get a review posted on Rietveld, which should have sent you an email (sorry for the delay!). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22261

[issue21720] TypeError: Item in ``from list'' not a string message

2014-08-29 Thread David Szotten
David Szotten added the comment: not sure i follow. we need a different message if e.g. an integer is passed in updated the patch to only run the unicode check for non-strings or do you have a suggestion for an error message that works nicely in both cases? -- Added file:

[issue22296] cookielib uses time.time(), making incorrect checks of expiration times in cookies

2014-08-29 Thread Rebecka
New submission from Rebecka: The cookielib module uses time.time(), which produces a timestamp in the local timezone (as read from the system time?), as the timestamp against which expiration dates in cookies are compared. However, typical usage of HTTP cookies would be specifying the

[issue22297] json encoding broken for

2014-08-29 Thread Edward O
New submission from Edward O: _make_iterencode in python2.7/json/encoder.py encodes custom enum types incorrectly (the label will be printed without '') because of these lines (line 320 in 2.7.6): elif isinstance(value, (int, long)): yield buf + str(value) in constract,

[issue22297] 2.7 json encoding broken for enums

2014-08-29 Thread Edward O
Changes by Edward O edoubray...@gmail.com: -- title: json encoding broken for - 2.7 json encoding broken for enums ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22297 ___

[issue22298] Lib/warnings.py _show_warning does not protect against being called with a file like object which is closed

2014-08-29 Thread Julius Lehmann-Richter
New submission from Julius Lehmann-Richter: In Lib/warnings.py the _show_warning function catches IOError with the commented intention to ward against an invalid file: def _show_warning(message, category, filename, lineno, file=None, line=None): Hook to write a warning to a file; replace

[issue22293] unittest.mock: use slots in MagicMock to reduce memory footprint

2014-08-29 Thread Michael Foord
Michael Foord added the comment: Switching to Mock instead of MagicMock may help, as that doesn't have the magic proxies at all. (patch has an argument to specify which class of Mock should be used to create the mock object, MagicMock is just the default.) Other wise using __slots__ would be

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread Kevin Norris
New submission from Kevin Norris: Run Python as an administrator: import pathlib pth = pathlib.Path('//?/C:/foo.') pth.mkdir() pth.resolve().rmdir() Traceback (most recent call last): File stdin, line 1, in module File C:\Python34\lib\pathlib.py, line 1141,

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread Kevin Norris
Kevin Norris added the comment: When the directory name is '...', the error is different: pth = pathlib.Path('//?/C:/...') pth.mkdir() pth.resolve().rmdir() Traceback (most recent call last): File stdin, line 1, in module File C:\Python34\lib\pathlib.py, line

[issue22287] Use clock_gettime() in pytime.c

2014-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e13ad4e5ae6 by Victor Stinner in branch 'default': Issue #22287: On UNIX, _PyTime_gettimeofday() now uses http://hg.python.org/cpython/rev/8e13ad4e5ae6 -- nosy: +python-dev ___ Python tracker

[issue22287] Use clock_gettime() in pytime.c

2014-08-29 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22287 ___

[issue22300] PEP 446 What's New Updates for 2.7.9

2014-08-29 Thread Nick Coghlan
New submission from Nick Coghlan: The Python 2.7 What's New now has a section recording the feature updates in maintenance releases. Because of the live docs updates, these need to be added on the day of the release, rather than being able to be done in advance. -- assignee:

[issue22043] Use a monotonic clock to compute timeouts

2014-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 668e0bf30042 by Victor Stinner in branch 'default': Issue #22043: _PyTime_Init() now checks if the system clock works. http://hg.python.org/cpython/rev/668e0bf30042 -- nosy: +python-dev ___ Python

[issue22043] Use a monotonic clock to compute timeouts

2014-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76bc15c918b1 by Victor Stinner in branch 'default': Issue #22043: Simplify time.perf_counter() on Windows http://hg.python.org/cpython/rev/76bc15c918b1 -- ___ Python tracker rep...@bugs.python.org

[issue22043] Use a monotonic clock to compute timeouts

2014-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab81b4cdc33c by Victor Stinner in branch 'default': Issue #22043: Oops, fix perf_counter() on UNIX if no monotonic clock is http://hg.python.org/cpython/rev/ab81b4cdc33c -- ___ Python tracker

[issue22043] Use a monotonic clock to compute timeouts

2014-08-29 Thread STINNER Victor
STINNER Victor added the comment: Ok, I prepared Python for monotonic clock, I attached an updated patch. It is now much simpler. pymonotonic-3.patch: * time.monotonic() is now always available * _PyTime_Init() ensures that the operating system provides a monotonic clock and that the clock

[issue22185] Occasional RuntimeError from Condition.notify

2014-08-29 Thread Doug Zongker
Doug Zongker added the comment: So, what happens now? What do I need to do to make progress on this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22185 ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Are you planning to un-defer the PEP, and remove the Deferral section? The PEP proposes 5 'phases'. How does that mesh with 2 'steps'? Gregory's message is helpful to me. The Idle startup needs to be documented (AFAIK only code now ) and modified. Internal

[issue22270] cache version selection for documentation

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that this is a bad idea. 1. Cookies are generally a nuisance. I like the fact that docs.python.org is (apparently) cookie free and that python sites only use a few short-lived cookies. The complications you propose would be a nuisance to create and

[issue6588] insert cookies into cookie jar - cookielib.py

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 does not get enhancements and Lu's comment suggests that the enhancement is already in 3.x. -- nosy: +terry.reedy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22297] 2.7 json encoding broken for enums

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ezio.melotti, pitrou, rhettinger stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22297 ___

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +pitrou stage: - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22299 ___ ___

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why is it a pathological path? Can you explain? -- nosy: +steve.dower, tim.golden, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22299 ___

[issue22298] Lib/warnings.py _show_warning does not protect against being called with a file like object which is closed

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.1-3.3 only get security fixes. 3.4 outputs write to closed file, so it appears to have the same issue. The proposed change seems reasonable to me, as a bugfix. -- nosy: +terry.reedy stage: - test needed versions: +Python 3.4, Python 3.5 -Python 3.2

[issue22301] smtplib.SMTP.starttls' documentation is just confusing

2014-08-29 Thread Michele Orrù
New submission from Michele Orrù: maker hello! In https://docs.python.org/2/library/smtplib.html#smtplib.SMTP.starttls I read:: maker If keyfile and certfile are provided, these are passed to the socket module’s ssl() function. maker socket.ssl() exists, though it is not documented (not even

[issue22301] smtplib.SMTP.starttls' documentation is just confusing

2014-08-29 Thread Alex Gaynor
Alex Gaynor added the comment: Attached patch fixes this up. -- keywords: +needs review, patch nosy: +alex Added file: http://bugs.python.org/file36505/t22301.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22301

[issue22301] smtplib.SMTP.starttls' documentation is just confusing

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22301 ___

[issue22294] 2to3 consuming_calls: len, min, max, zip, map, reduce, filter, dict, xrange

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22294 ___

[issue22269] Resolve distutils option conflicts with priorities

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22269 ___

[issue4277] asynchat's handle_error inconsistency

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4277 ___

[issue22163] max_wbits set incorrectly to -zlib.MAX_WBITS in tarfile, shouldn't be negative

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +lars.gustaebel stage: - patch review versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22163

[issue22141] rlcompleter.Completer matches too much

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22141 ___

[issue16037] httplib: header parsing is unlimited

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - patch review versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread Steve Dower
Steve Dower added the comment: Is resolve() using an *A() API rather than *W()? The \\?\ prefix does not work with *A() APIs. Also, names that are all dots are not supported by Windows at all. I'd expect mkdir() to fail on that, but the \\?\ prefix disables some validation, so it's possible

[issue16037] httplib: header parsing is unlimited

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking further, already fixed in 3.x -- nosy: +terry.reedy resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: resolve() should use the *W APIs since it is using only functions from the os module with str objects. Perhaps you want to double-check that, since I don't have a Windows VM anymore. -- ___ Python tracker

[issue16037] httplib: header parsing is unlimited

2014-08-29 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Python 3.2 still receives security fixes. -- resolution: fixed - status: closed - open versions: +Python 3.2 -Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue22301] smtplib.SMTP.starttls' documentation is just confusing

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Or perhaps we should remove the function to wrap_socket(), which is just an implementation detail? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22301

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread eryksun
eryksun added the comment: The \\?\ extended-path prefix bypasses normal path processing. The path is passed directly to the filesystem driver. For example, to accommodate the POSIX namespace, NTFS allows any character except NUL and slash, so it happily creates a directory named foo.. This

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread Steve Dower
Steve Dower added the comment: Removing the _ext_to_normal() call in resolve() looks like the right fix to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22299 ___

[issue22301] smtplib.SMTP.starttls' documentation is just confusing

2014-08-29 Thread R. David Murray
R. David Murray added the comment: Remove the reference, you mean? As in just delete the confusing line? Since we want to encourage people to use the context, that sounds reasonable for 3.x at least. -- ___ Python tracker rep...@bugs.python.org

[issue22299] resolve() on Windows makes some pathological paths unusable

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Does one of you want to provide a patch? (with tests) -- stage: test needed - needs patch versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22299

[issue19062] Idle: problem confighandler getting userdir

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: (When responding via email, please delete the quoted test (except possibly for a line or two) as it constitutes noise when viewing the web page.) On my updated win7, I get with 3.4.1 import os.path userDir = os.path.expanduser('~') userDir

[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +serhiy.storchaka versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6639 ___

[issue5833] readline update

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Bug was fixed. Enhancements are out of date for 2.x and OP will not pursue for 3.x, and should be a separate issue anyway. -- nosy: +terry.reedy resolution: - fixed stage: - resolved status: open - closed ___

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: David, do you agree with either of the proposed changes? -- nosy: +terry.reedy versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue1598] unexpected response in imaplib

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - wont fix stage: test needed - resolved status: open - closed versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue20468] resource module documentation is incorrect

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20468 ___

[issue17286] Make subprocess handling text output with universal_newlines more obious

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - needs patch versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17286

[issue22185] Occasional RuntimeError from Condition.notify

2014-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4cce39cfe46c by Antoine Pitrou in branch '3.4': Issue #22185: Fix an occasional RuntimeError in threading.Condition.wait() caused by mutation of the waiters queue without holding the lock. http://hg.python.org/cpython/rev/4cce39cfe46c New

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - out of date stage: - resolved status: open - closed versions: -Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6895

[issue22185] Occasional RuntimeError from Condition.notify

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: It only needed someone to push your patch, which I just did. Thank you very much Doug, your contribution is appreciated! -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker

[issue4277] asynchat's handle_error inconsistency

2014-08-29 Thread Mark Lawrence
Mark Lawrence added the comment: #6550 and #11267 have been closed as out of date as asynchat and asyncore are effectively deprecated in favour of asyncio so can't this go the same way? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue22302] Windows os.path.isabs UNC path bug

2014-08-29 Thread Akima
New submission from Akima: A UNC path pointing to the root of a share is not being recognised as an absolute path when it should be. See this interpreter session. PythonWin 3.3.5 (v3.3.5:62cf4e77f785, Mar 9 2014, 10:35:05) [MSC v.1600 64 bit (AMD64)] on win32. Portions Copyright 1994-2008

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

2014-08-29 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12319 ___ ___ Python-bugs-list

[issue22303] Write better test for SSLContext.load_verify_locations

2014-08-29 Thread Antoine Pitrou
New submission from Antoine Pitrou: SSLContext.load_verify_locations() probably takes into account the SSL_CERT_FILE and SSL_CERT_DIR environment variables, when set. This should allow us to write a better test than the existing, minimal one. -- components: Tests messages: 226092

[issue18983] Specify time unit for timeit CLI

2014-08-29 Thread Julian Gindi
Julian Gindi added the comment: Anything else need to be done on this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18983 ___ ___

[issue22302] Windows os.path.isabs UNC path bug

2014-08-29 Thread eryksun
eryksun added the comment: It's a relative path if the share name lacks a trailing slash. Consider the hidden share //server/C$ for the C: drive. C: is a relative path, while C:/ is an absolute path. Similarly //server/C$ is relative, while //server/C$/ is absolute. -- nosy: +eryksun

[issue22163] max_wbits set incorrectly to -zlib.MAX_WBITS in tarfile, shouldn't be negative

2014-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22163 ___ ___ Python-bugs-list

[issue22276] pathlib glob issues

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, it would be logical if pathlib gave special meaning to trailing slashes, which it (still) doesn't :-) I'm still not fond of encoding path characteristics in the path string itself. (and what about symlinks? etc.) --

[issue22276] pathlib glob ignores trailing slash in pattern

2014-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: pathlib glob issues - pathlib glob ignores trailing slash in pattern ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22276 ___

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-08-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset c499cc2c4a06 by Antoine Pitrou in branch 'default': Issue #22098: ctypes' BigEndianStructure and LittleEndianStructure now define an empty __slots__ so that subclasses don't always get an instance dict. http://hg.python.org/cpython/rev/c499cc2c4a06

[issue22098] Behavior of Structure inconsistent with BigEndianStructure when using __slots__

2014-08-29 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22098 ___

[issue22296] cookielib uses time.time(), making incorrect checks of expiration times in cookies

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you have not, please check if this issue applies to 3.4, and post a 3.4 version of the test file. In the absence of a standard, I am not sure if this is a bug, and even if we call it such, whether 2.7 should be changed. -- nosy: +terry.reedy

[issue17620] Python interactive console doesn't use sys.stdin for input

2014-08-29 Thread Drekin
Drekin added the comment: I realized that the behavior I want can be achieved by setting PyOS_ReadlineFunctionPointer to a function calling sys.stdin.readline(). However I found another problem: Python REPL just doesn't work, when sys.stdin.encoding is UTF-16-LE. The tokenizer

[issue17620] Python interactive console doesn't use sys.stdin for input

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: without breaking obvious applications without breaking *existing* applications ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17620 ___

[issue17620] Python interactive console doesn't use sys.stdin for input

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why does PyOS_Readline return *char, rather than Python string object? For historical reasons and now for compatibility: we can't change the hook's signature without breaking obvious applications, obviously. If necessary, we could add a new hook that would

[issue1481032] patch smtplib:when SMTPDataError, rset crashes with sslerror

2014-08-29 Thread R. David Murray
R. David Murray added the comment: Milan's patch should be correct. It would be nice to have a reproducer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1481032 ___

[issue22276] pathlib glob ignores trailing slash in pattern

2014-08-29 Thread R. David Murray
R. David Murray added the comment: I'm not sure that a trailing '/' is a path characteristic in the same sense that a symlink is. Whether the path has a trailing slash or not has meaning both to the user and to the OS. pathlib isn't just modeling actual path objects on the file system, but

[issue22304] Update multiprocessing examples to Py3 and test

2014-08-29 Thread Terry J. Reedy
New submission from Terry J. Reedy: https://docs.python.org/2/library/multiprocessing.html#examples contains several examples in Python2 code that need to be updated for Python 3. Richard, if you have them in .py files, perhaps you could run them through 2to3 and then test. # Example where a

[issue22261] Document how to use Concurrent Build when using MsBuild

2014-08-29 Thread sbspider
sbspider added the comment: How do you want me to about fixing the issues you suggested - another patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22261 ___

[issue22304] Update multiprocessing examples to Py3 and test

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, copied and pasted from the wrong place. Forget this. -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22304

[issue21204] multiprocessing example does not work on Windows

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: The same example failing is the subject of #5879. -- resolution: - duplicate status: open - closed superseder: - multiprocessing - example pool of http servers fails on windows socket has no attribute fromfd ___

[issue22261] Document how to use Concurrent Build when using MsBuild

2014-08-29 Thread Zachary Ware
Zachary Ware added the comment: Another patch would be perfect :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22261 ___ ___ Python-bugs-list

[issue22302] Windows os.path.isabs UNC path bug

2014-08-29 Thread eryksun
eryksun added the comment: On second thought, while the parallels between drives and shares are nice, beyond that this makes no sense to me. http://hg.python.org/cpython/file/c0e311e010fc/Lib/ntpath.py#l91 Windows uses hidden environment variables (e.g. =C:) for the working directory on each

[issue5879] multiprocessing example pool of http servers fails on windows

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: r50094 was for 2.7 (see msg216242, part of #21204 that is a partly a duplicate of this). Running in 2.7.8, the message has changed to PicklingError: Can't pickle type 'thread.lock': it's not found as thread.lock The example has been removed in 3.x. I think

[issue16037] httplib: header parsing is unlimited

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: This was never discussed as a security issue. Why do you think it is? Users wasting their *own* time is different for wasting the time of a remote server in a DoS attack. -- ___ Python tracker

[issue22298] Lib/warnings.py _show_warning does not protect against being called with a file like object which is closed

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I frankly don't think silencing more exceptions is a good idea. If someone decided to close sys.stderr without setting sys.stderr to None I'd say it's a programming error and deserves to be notified... -- nosy: +brett.cannon, pitrou

[issue16037] httplib: header parsing is unlimited

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: A server can include a HTTP client. It's actually quite common these days, given the number of services which are exposed as REST APIs. Now, unless Georg plans to do a new 3.2 release some day, it's not very useful to discuss the inclusion of the fix in 3.2.

[issue22298] Lib/warnings.py _show_warning does not protect against being called with a file like object which is closed

2014-08-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, sorry for the bogus un-nosying. -- nosy: +Julius.Lehmann-Richter, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22298 ___

[issue15418] 2to3 docs should mention setup.py fixes required to install compatible packages in Python 3

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - wont fix stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15418 ___

[issue8304] strftime and Unicode characters

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified Marks 3.4.1 result with Idle. It strikes me as a bug that a function that maps a unicode format string to a unicode string with interpolations added should ever encode the format to bytes, lets alone using using an encoding that fails or loses

[issue3332] DocTest and dict sort.

2014-08-29 Thread endolith
endolith added the comment: The fundamental purpose of doctest is to test that examples in documentation work correctly: To check that a module’s docstrings are up-to-date by verifying that all interactive examples still work as documented. To perform regression testing by verifying

[issue22298] Lib/warnings.py _show_warning does not protect against being called with a file like object which is closed

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: If sys.stderr is set to None, then if file is None: file = sys.stderr will have no effect and 'file.write' raises AttributeError: 'NoneType' object has no attribute 'write' (actual quote). Do you propose to catch that? If not, it is not much of an

[issue2445] Use The CygwinCCompiler Under Cygwin

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - patch review versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2445 ___

[issue3332] DocTest and dict sort.

2014-08-29 Thread Tim Peters
Tim Peters added the comment: This should remain closed. It's a feature that doctest demands exact textual equality, and that the only way to override this is with one of the `#doctest:` flags. What you see is what you get - exactly is one of doctest's fundamental design goals. If you

[issue16040] nntplib: unlimited readline() from connection

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.1 is finished and Georg decided to skip 3.2. -- nosy: +terry.reedy resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1660009] continuing problem with httplib multiple set-cookie headers

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - out of date stage: test needed - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1660009 ___

[issue1425127] os.remove OSError: [Errno 13] Permission denied

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unless someone claims and can show that there is a bug in current cpython on current Windows (not xp), I think this should be closed. Josh, I interpret your post(s) as suggesting that there is not, or am I over-interpreting. -- nosy: +terry.reedy

[issue21910] File protocol should document if writelines must handle generators sensibly

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Security fix only versions do not get doc fixes. -- versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21910 ___

[issue14566] run_cgi reverts to using unnormalized path

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14566 ___ ___

[issue10536] Enhancements to gettext docs

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10536 ___

[issue2943] Distutils should generate a better error message when the SDK is not installed

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2943 ___

[issue18454] distutils crashes when uploading to PyPI having only the username (no pw) defined

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18454 ___

[issue10225] Fix doctest runable examples in python manual

2014-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: For whatever difference it makes, the 3.x docs now *are* being built with 3.x. -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2014-08-29 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1812 ___