[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file36501/fromlist2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21720
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 expiration date 
in UTC. This assumption seems to be supported for example by the inclusion of 
cookielib.http2time, which (only) supports UTC timestamps.

This behaviour is also included in e.g. MozillaCookieJar, which (erroneously) 
excludes cookies from being saved/loaded based on the local timestamp from 
time.time().

See the attached file for a small example where the check if a cookie is 
expired against a UTC time is correct but the check against local time fails 
(simulating the behaviour of the cookielib module).

--
components: Library (Lib)
files: cookie_timestamp_test.py
messages: 226056
nosy: regu0004
priority: normal
severity: normal
status: open
title: cookielib uses time.time(), making incorrect checks of expiration times 
in cookies
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file36502/cookie_timestamp_test.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22296
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, _make_iterencode in python 3 explicitly supports the enum types:

elif isinstance(value, int):
# Subclasses of int/float may override __str__, but we still
# want to encode them as integers/floats in JSON. One example
# within the standard library is IntEnum.
yield buf + str(int(value))

--
components: Library (Lib)
messages: 226057
nosy: eddygeek
priority: normal
severity: normal
status: open
title: json encoding broken for
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22297
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 if you like.
if file is None:
file = sys.stderr
try:
file.write(formatwarning(message, category, filename, lineno, line))
except IOError:
pass # the file (probably stderr) is invalid - this warning gets lost.

If for some reason the file like object, and in the default case stderr, is 
closed, a calling program is faced with a ValueError, which is not being caught.

It seems to me, and correct me if I am wrong, that a file object which has been 
closed is a case of an invalid file and that the warning subsystem should in 
that case behave in the same manner as in the case of the IOError.

This behavior is the same for python 3.2 with the function renamed to 
showwarning and can be reproduced with for example

from sys import stderr  
from warnings import warn
 
stderr.close()
try:
warn(foo)
except ValueError as e:
print(e)

--
components: Library (Lib)
messages: 226058
nosy: Julius.Lehmann-Richter
priority: normal
severity: normal
status: open
title: Lib/warnings.py _show_warning does not protect against being called with 
a file like object which is closed
type: behavior
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22298
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 fine. An alternative approach would be for 
MagicMock to use __getattribute__ instead of the magic proxies.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22293
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, in rmdir
self._accessor.rmdir(self)
  File C:\Python34\lib\pathlib.py, line 323, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 
'C:\\foo.'
 pth.rmdir()

You do not need to be an administrator so long as you can create a directory in 
the requested location, but the \\?\ prefix only works with absolute paths so 
it's easier to demonstrate in the root of the drive.

--
components: Library (Lib), Windows
messages: 226060
nosy: Kevin.Norris
priority: normal
severity: normal
status: open
title: resolve() on Windows makes some pathological paths unusable
type: behavior
versions: Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 1141, in rmdir
self._accessor.rmdir(self)
  File C:\Python34\lib\pathlib.py, line 323, in wrapped
return strfunc(str(pathobj), *args)
PermissionError: [WinError 5] Access is denied: 'C:\\...'
 pth.rmdir()


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22287
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: benjamin.peterson
files: pep466_whats_new_py279.diff
keywords: patch
messages: 226063
nosy: benjamin.peterson, ncoghlan
priority: release blocker
severity: normal
stage: commit review
status: open
title: PEP 446 What's New Updates for 2.7.9
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file36503/pep466_whats_new_py279.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22300
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue22043
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue22043
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22043
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

* Python 3.5 now requires a monotonic clock. All operating systems supported by 
Python 3.5 provides a monotonic clock. GNU Hurd doesn't, but it is not 
supported.

* drop try/except ImportError around from time import monotonic

* use a monotonic clock in _thread, gc and socket modules to compute elapsed 
time and timeouts

--
Added file: http://bugs.python.org/file36504/pymonotonic-3.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22043
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 error messages are 'print'ed to a 
text console that is normally not present on Windows (resulting in an exception 
message that cannot be displayed!).  I want to add a new startup 'service', as 
early as possible, to direct error messages to a gui message box or window. 
This means getting a tkinter event loop running as soon as possible so 
everything after can depend on that.  Perhaps it already is, perhaps not.

--
nosy: +terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22257
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2. Not too long ago, we created docs.python.org/2/ and /3/ so people can use 
generic links to the latest docs for the latest released version of either 
Python 2 or 3. The aim was to reduce the problem of links to stale docs. Both 
sets of docs have version added notes for changes within a series. Those two 
docs are not interchangeable and should not be automatically switched.

If someone links now to a fixed version of the docs, they are either ignorant 
of the new system *or* they have a purpose that should not be over-riden.

If someone quotes or paraphrases a portion of a page (which is a claim about 
what the page says) or otherwise makes a claim about Python, and posts a link 
as evidence of the claim, clicking the link should take one to the 'evidence', 
not one's preferred version.

--
nosy: +terry.reedy
resolution:  - rejected
stage:  - needs patch
status: open - closed
versions:  -Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22270
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue6588
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22298
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 in 
/dev/library/socket)
maker and furthermore, the link on ssl() points to the ssl module, which is 
just confusing.
bitdancer maker: open an issue.

(I'm noising ap and chris because afaik they were working on the latest ssl 
security stuff)

--
assignee: docs@python
components: Documentation, Library (Lib), email
messages: 226074
nosy: barry, christian.heimes, docs@python, maker, pitrou, r.david.murray
priority: normal
severity: normal
status: open
title: smtplib.SMTP.starttls' documentation is just confusing
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22301
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that it is getting through that way.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22299
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue16037
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 name is invalid in the Win32 namespace. 

resolve() should skip calling _ext_to_normal on the result of _getfinalpathname 
if the input path is extended.

http://hg.python.org/cpython/file/c0e311e010fc/Lib/pathlib.py#l178

--
nosy: +eryksun

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22299
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue22301
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
'C:\\Users\\Terry'

Contrary to the doc, I do not have HOME, but do have HOMEDRIVE and HOMEPATH, so 
expanduser must be using those.

configHander now uses os.getcwd() as a backup, but a comment wonders if this is 
adequate. (On windows not at present, as cwd is the specific version Python 
directory.)

I do not understand your comment about %userprofile% or 
  userDir = os.path.expandvars(os.path.expanduser('~'))
If expanduser('~') returns '~', expandvars('~') does too.

Please explain with quoted code and the result of running it.

--
nosy: +terry.reedy
title: problems with pyshell to get userdir - Idle: problem confighandler 
getting userdir
versions:  -Python 3.1, Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19062
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5833
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue1481032
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue1598
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 changeset 78a38f8bd5d9 by Antoine Pitrou in branch 'default':
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/78a38f8bd5d9

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22185
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue22185
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue4277
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Mark Hammond - see 'Help/About PythonWin' for 
further copyright information.
 import os.path
 os.path.isabs(r\\server)
True
 os.path.isabs(r\\server\share)
False
 os.path.isabs(r\\server\share\folder)
True
 os.path.isabs(r\\server\share\folder\folder)
True


--
components: Library (Lib), Windows
messages: 226091
nosy: akima
priority: normal
severity: normal
status: open
title: Windows os.path.isabs UNC path bug
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22302
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou
priority: normal
severity: normal
status: open
title: Write better test for SSLContext.load_verify_locations
type: enhancement
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22303
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22302
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22276
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22098
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
stage:  - needs patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22296
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (Parser/tokenizer.c:tok_nextc) 
reads a line using PyOS_Readline and then tries to recode it to UTF-8. The 
problem is that PyOS_Readline returns just plain *char and strlen() is used to 
determine its length when decoding, which makes no sense on UTF-16-LE encoded 
line, since it's full of nullbytes.

Why does PyOS_Readline return *char, rather than Python string object? In the 
situation when PyOS_ReadlineFunctionPointer points to something producing 
Unicode string (e.g. my new approach to solve #1602 or pyreadline package), it 
must be encoded and cast to *char to return from PyOS_Readline, then it is 
decoded by the tokenizer and again encoded to UTF-8.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17620
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 take precedence over the old 
one if defined. Feel free to post a patch for that.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17620
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the abstract concept of a path, and in the 
abstract context the presence or absence of a trailing '/' as meaning.

But that's a wider discussion than this issue :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22276
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 pool of http servers share a single listening socket
from BaseHTTPServer import HTTPServer
from SimpleHTTPServer import SimpleHTTPRequestHandler
...
print 'Serving at http://%s:%d using %d worker processes' % \
  (ADDRESS[0], ADDRESS[1], NUMBER_OF_PROCESSES)
print 'To exit press Ctrl-' + ['C', 'Break'][sys.platform=='win32']

#update
from http.server import HTTPServer, SimpleHTTPRequestHandler
...
print('Serving at http://%s:%d using %d worker processes' % \
  (ADDRESS[0], ADDRESS[1], NUMBER_OF_PROCESSES))
print('To exit press Ctrl-' + ['C', 'Break'][sys.platform=='win32'])


This still does not run on Windows 
_pickle.PicklingError: Can't pickle class '_thread.lock': attribute lookup 
lock on _thread failed
but that was true in 2.7 also (#21204).

--
assignee: docs@python
components: Documentation
messages: 226103
nosy: docs@python, sbt, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Update multiprocessing examples to Py3 and test
type: behavior
versions: Python 3.4, Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22304
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21204
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 drive, but not for network shares.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22302
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the right 'fix' for 2.7 is to 
remove the reference to Windows in both comment and code and instead say 'Does 
not run on Windows'.

--
assignee: jnoller - 
components: +Documentation -Library (Lib), Windows
keywords: +easy
nosy: +terry.reedy
title: multiprocessing - example pool of http servers  fails on windows 
socket has no attribute fromfd - multiprocessing example pool of http 
servers  fails on windows
versions:  -Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5879
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue16037
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 -Julius.Lehmann-Richter, terry.reedy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22298
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16037
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 information.  It 
is especially weird given that % formatting does not even work (at present) for 
bytes.

It seems to me that strftime should never encode the non-special parts of the 
format text.  Instead, it could split the format (re.split) into a list of 
alternatine '%x' pairs and running text segments, replace the '%x' entries with 
the proper entries, and return the list joined back into a string. Some 
replacements would be locale dependent, other not.

(Just wondering, are the locate names of days and months bytes restricted to 
ascii or unrestricted unicode using native characters?)

--
nosy: +terry.reedy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8304
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 that interactive examples from 
 a test file or a test object work as expected.
To write tutorial documentation for a package, liberally illustrated with 
 input-output examples. Depending on whether the examples or the expository 
 text are emphasized, this has the flavor of “literate testing” or “executable 
 documentation”.

https://docs.python.org/2/library/doctest.html

(and this is not at all the purpose of the unittest module)

If a function returns a set, and the normal way to use it is to call the 
function and get a set, then the example should be to call the function and get 
a set:

 function()
set([1, 2, 3])

Doctest should therefore be able to test that the example actually works and 
returns the correct set, regardless of how the set elements are displayed.  It 
should not be required to add unusual extra code to format the output 
specifically so that doctest can understand it:

 function() == set([1, 2, 3])
True

(This is not a realistic example, because the user wouldn't know what the 
output is until they call the function.)

 sorted(function())
[1, 2, 3]

(This is not how the method is actually used in reality.  It returns a set for 
a reason, not a list.)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3332
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 improvement. Multiple people have reported on python-list 
that they are mystified by messages like this when they never used a None 
object as an argument.

I am sympathetic to not overlooking bugs.  However, a traceback is normally 
lost in this situation anyway.  If sys.stderr is closed, trying to write a 
ValueError traceback (or any other traceback) to stderr generates another 
ValueError.  Python apparently tries to write a double traceback to 
sys.__stderr__ as a backup (see below).  If that is also unusable (perhaps 
because it *is* sys.stderr), then the traceback disappears anyway.  This is 
what happens (on Windows, at least) with python started from either an icon or 
in Command Prompt.

 import sys; sys.stderr.close()
 from warnings import warn; warn('foo')
 sys.stderr is sys.__stderr__
True

When Idle starts an icon, the result is the same except that the user process 
is restarted.  Also, two streams are not the same; sys.__stderr__ is None.

If Idle is run with python from a console, there is still no message in the 
Idle shell but since sys.__stderr__ points back to the console, the double 
traceback appears there: first the warn ValueError, then 'while 
proccessing...', the traceback ValueError.  Idle replaces showwarning.  I 
believe it now only changes the formatting, but I could have it use 
sys.__stderr__ when not None to print the warning instead of or in addition to 
the tracebacks.

If the code above is placed in a file and run in batch mode, python quits with 
no output.

C:\Programs\Python34python temop.py

C:\Programs\Python34

When run from the idle editor running under pythonw, the user process does the 
same (exit without output).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22298
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 would like to open a different report, suggesting (e.g.) a new 
#doctest: object_equality flag, go ahead.  But I don't expect that would get 
a warm reception:  there are many ways to write doctests with sets and dicts 
that already work fine.  That you may have to add additional functions to make 
them pass in all cases isn't a bug:  it's being explicit about that the raw 
unprocessed output is _not_ reliable.

If you don't want that level of pickiness, fine, use something else :-)

--
nosy: +tim.peters

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3332
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue16040
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1425127
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
http://bugs.python.org/issue10225
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com