[issue21691] set() returns random output with Python 3.4.1, in non-interactive mode

2014-06-07 Thread Ned Deily

Ned Deily added the comment:

To expand a bit, this is by design, a consequence of the hash randomization 
feature; see

https://docs.python.org/3/using/cmdline.html#envvar-PYTHONHASHSEED

As noted there, if necessary, it is possible to disable hash randomization.  
But tests with set values or dict keys should not depend on a particular order 
as even disabling hash randomization would not guarantee the same results on 
different platforms or builds of Pythons.

$ python3.4 -c "print(set(['A', 'B']))"
{'B', 'A'}
$ python3.4 -c "print(set(['A', 'B']))"
{'A', 'B'}
$ python3.4 -c "print(set(['A', 'B']))"
{'B', 'A'}
$ PYTHONHASHSEED=0 python3.4 -c "print(set(['A', 'B']))"
{'B', 'A'}
$ PYTHONHASHSEED=0 python3.4 -c "print(set(['A', 'B']))"
{'B', 'A'}
$ PYTHONHASHSEED=0 python3.4 -c "print(set(['A', 'B']))"
{'B', 'A'}

--
nosy: +ned.deily
stage:  -> resolved

___
Python tracker 

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



[issue21691] set() returns random output with Python 3.4.1, in non-interactive mode

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Yep, set order like dictionary order is arbitrary.

--
nosy: +benjamin.peterson
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue21691] set() returns random output with Python 3.4.1, in non-interactive mode

2014-06-07 Thread Jackson Cooper

New submission from Jackson Cooper:

The set() built-in returns random output, only when Python 3 is being used, and 
in non-interactive mode (executing a file).

Steps to reproduce:

1. Create file with only print(set(['A', 'B'])) inside it.

2. Execute file with Python 3.4.1 numerous times (10+) over 10+ seconds. The 
output will vary (randomly?) between {'B', 'A'} and {'A', 'B'}.


I can only reproduce this with Python 3.4.1 (have not tried 3.5). It cannot be 
reproduced in Python 2 (2.7.6) interactive or non-interactive mode, or Python 
3.4.1 in interactive mode. Only in Python 3 when executing a file.


Tested on OS X 10.9.3, Python installed via Homebrew.

--
components: Interpreter Core
messages: 220021
nosy: Jackson.Cooper
priority: normal
severity: normal
status: open
title: set() returns random output with Python 3.4.1, in non-interactive mode
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue1559298] test_popen fails on Windows if installed to "Program Files"

2014-06-07 Thread eryksun

eryksun added the comment:

This is fixed for subprocess.Popen in 2.7, 3.1, and 3.2; see issue 2304. In 
2.7, nt.popen still has this problem. As mentioned above, it can be worked 
around by using subprocess.Popen as described here:

https://docs.python.org/2/library/subprocess.html#replacing-os-popen-os-popen2-os-popen3

--
nosy: +eryksun

___
Python tracker 

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



[issue20578] BufferedIOBase.readinto1 is missing

2014-06-07 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution: fixed -> 
status: closed -> open

___
Python tracker 

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



[issue20699] Behavior of ZipFile with file-like object and BufferedWriter.

2014-06-07 Thread Martin Panter

Martin Panter added the comment:

I have a related issue in Python 3.4. I suspect it is the same underlying 
problem as Henning’s. BufferedWriter is trying to write memoryview() objects, 
but the documentation for RawIOBase.write() implies it only has to accept 
bytes() and bytearray() objects.

>>> from io import BufferedWriter, RawIOBase
>>> class Raw(RawIOBase):
... def writable(self): return True
... def write(self, b): print(b.startswith(b"\n"))
... 
>>> b = BufferedWriter(Raw())
>>> b.write(b"abc")
3
>>> b.close()
Traceback (most recent call last):
  File "", line 1, in 
  File "", line 3, in write
AttributeError: 'memoryview' object has no attribute 'startswith'

--
nosy: +vadmium
versions: +Python 3.4

___
Python tracker 

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



[issue20578] BufferedIOBase.readinto1 is missing

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b1e99b4ec374 by Benjamin Peterson in branch 'default':
backout 0fb7789b5eeb for test breakage (#20578)
http://hg.python.org/cpython/rev/b1e99b4ec374

--

___
Python tracker 

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



[issue9849] Argparse needs better error handling for nargs

2014-06-07 Thread paul j3

paul j3 added the comment:

http://bugs.python.org/issue21666
raises the possibility of testing the 'help' parameter in the same way.  By 
adding (to _check_argument):

# check the 'help' string
try:
self._get_formatter()._expand_help(action)
except (ValueError, TypeError, KeyError) as e:
raise ArgumentError(action, 'badly formed help string')

--

___
Python tracker 

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



[issue21666] Argparse exceptions should include which argument has a problem

2014-06-07 Thread paul j3

paul j3 added the comment:

In http://bugs.python.org/file30010/nargswarn.patch adding the 
'_expand_help(action)' line should test the help string (during add_argument).

def _check_argument(self, action):
# check action arguments
# focus on the arguments that the parent container does not know about
# check nargs and metavar tuple
try:
self._get_formatter()._format_args(action, None)
except ValueError as e:
raise ArgumentError(action, str(e))
except TypeError:
#raise ValueError("length of metavar tuple does not match nargs")
raise ArgumentError(action, "length of metavar tuple does not match 
nargs")
# check the 'help' string
try:
self._get_formatter()._expand_help(action)
except (ValueError, TypeError, KeyError) as e:
raise ArgumentError(action, 'badly formed help string')

The 'except' clause may need to be changed to capture all (or just most?) of 
the possible errors in the format string.  Besides your error I can imagine 
'%(error)s` (a KeyError).  We also need to pay attention to the differences 
between Py2 and Py3 errors.

--

___
Python tracker 

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



[issue20578] BufferedIOBase.readinto1 is missing

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Looks like test_file is unhappy: 
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/1758/steps/test/logs/stdio

--

___
Python tracker 

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset baca52bb5c74 by Benjamin Peterson in branch '3.4':
make sure the builtin help function doesn't fail when sys.stdin is not a valid 
file (closes #11709)
http://hg.python.org/cpython/rev/baca52bb5c74

New changeset 1a9c07880a15 by Benjamin Peterson in branch '2.7':
make sure the builtin help function doesn't fail when sys.stdin is not a valid 
file (closes #11709)
http://hg.python.org/cpython/rev/1a9c07880a15

New changeset 3bbb8cb45f58 by Benjamin Peterson in branch 'default':
merge 3.4 (#11709)
http://hg.python.org/cpython/rev/3bbb8cb45f58

--
nosy: +python-dev
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread B D

B D added the comment:

I've updated the unit test and have verified that it does fail when the 
original patch is not included. I also ran make patchcheck again and re-ran all 
of the tests. This should be good to go. Thanks for your insights, Benjamin.

--
Added file: http://bugs.python.org/file35535/issue11709.patch

___
Python tracker 

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



[issue20578] BufferedIOBase.readinto1 is missing

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0fb7789b5eeb by Benjamin Peterson in branch 'default':
add BufferedIOBase.readinto1 (closes #20578)
http://hg.python.org/cpython/rev/0fb7789b5eeb

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue21666] Argparse exceptions should include which argument has a problem

2014-06-07 Thread paul j3

paul j3 added the comment:

The ''_expand_help' method formats one action (argument) at a time, so it could 
issue an error message that includes that action's name.

The disconnect that you noticed arises because your bad 'help' parameter wasn't 
tested until is was used in a 'print_help'.

http://bugs.python.org/issue9849 asks for better testing of `nargs` (and 
`metavar`) values.  In the proposed patch, 'add_argument' creates a temporary 
HelpFormatter and tries to format a relevant portion of the help.  I suppose 
that test could be extended to test the 'help' parameter as well.

--

___
Python tracker 

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



[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Thank you for the investigation. Unless there is a problem in 2.7, which you 
have not mentioned, this should be closed as out-of-date, or maybe fixed.

--

___
Python tracker 

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



[issue18910] IDle: test textView.py

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a0be81607a50 by Benjamin Peterson in branch '2.7':
backed out 86ba41b7bb46 (#18910) for test breakage
http://hg.python.org/cpython/rev/a0be81607a50

--

___
Python tracker 

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



[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 188e5f42d4aa by Benjamin Peterson in branch '2.7':
document TokenError and unclosed expression behavior (closes #12063)
http://hg.python.org/cpython/rev/188e5f42d4aa

New changeset ddc174c4c7e5 by Benjamin Peterson in branch '3.4':
document TokenError and unclosed expression behavior (closes #12063)
http://hg.python.org/cpython/rev/ddc174c4c7e5

New changeset 3f2f1ffc3ce2 by Benjamin Peterson in branch 'default':
merge 3.4 (#12063)
http://hg.python.org/cpython/rev/3f2f1ffc3ce2

--
nosy: +python-dev
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue4071] ntpath.abspath fails for long str paths

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

I don't see that any further work can be done here owing to limitations of the 
Windows str API.  Note that the same argument can be applied to issue1776160.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue13247] under Windows, os.path.abspath returns non-ASCII bytes paths as question marks

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

I've read this entire issue and can't see that much can be done, so suggest it 
is closed as "won't fix" as has already happened for #16656, which was 
suggested is a duplicate of this in msg177609.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue10765] Build regression from automation changes on windows

2014-06-07 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue1559298] test_popen fails on Windows if installed to "Program Files"

2014-06-07 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue16667] timezone docs need "versionadded: 3.2"

2014-06-07 Thread Berker Peksag

Berker Peksag added the comment:

The attached patch combines my changes with Andrew's patch.

--
versions: +Python 3.5 -Python 3.2, Python 3.3
Added file: http://bugs.python.org/file35534/issue16667_v3.diff

___
Python tracker 

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



[issue21685] zipfile module doesn't properly compress odt documents

2014-06-07 Thread Raimondo Giammanco

Raimondo Giammanco added the comment:

SilentGhost, thank you for your reply but I am probably missing something with 
it. Maybe there is some misunderstanding because of my unclear report. Please 
let me sum up my point and excuse some repetitiveness

>From the documentation of .writestr:
``If given, compress_type overrides the value given for the compression 
parameter to the constructor for the new entry``
I believed to understand that .writestr would have used the same 
compression_type passed creating the `z' instance. So, having already passed 
ZIP_DEFLATED to the constructor, in my opinion, passing it again would have 
been an useless repetition.

However, as per your suggestion,I tried to explicitly pass ZIP_DEFLATED to 
.writestr too:

from zipfile import ZipFile, ZIP_DEFLATED
document = '/tmp/example.odt'
S2b, R2b = 'SUBST'.encode(), 'REPLACEMENT'.encode()
with ZipFile(document,'a', ZIP_DEFLATED) as z:
xmlString = z.read('content.xml')
xmlString = xmlString.replace(S2b, R2b)
z.writestr('content.xml', xmlString, ZIP_DEFLATED)

but to no avail: with and without passing ZIP_DEFLATED to .writestr the odt 
documents lose the feature explained in my first post

AFAICT, the only way to keep a fully functional odt document is not to compress 
it (no ZIP_DEFLATED at all), as cited in my previous post 

with ZipFile(document,'a') as z:
xmlString = z.read('content.xml')
xmlString = xmlString.replace(S2b, R2b)
z.writestr('content.xml', xmlString)

--

___
Python tracker 

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



[issue13924] Mercurial robots.txt should let robots crawl landing pages.

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Unfortunately, I don't think it will be that easy because I don't think 
robots.txt supports wildcard paths like that. Possibly, we should just 
whitelist a few important repositories.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7aa72075d440 by Benjamin Peterson in branch '3.4':
don't remove self from example code in the HTML output (closes #13223)
http://hg.python.org/cpython/rev/7aa72075d440

New changeset e89c39125892 by Benjamin Peterson in branch '2.7':
don't remove self from example code in the HTML output (closes #13223)
http://hg.python.org/cpython/rev/e89c39125892

New changeset cddb17c4975e by Benjamin Peterson in branch 'default':
merge 3.4 (#13223)
http://hg.python.org/cpython/rev/cddb17c4975e

--
nosy: +python-dev
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue10765] Build regression from automation changes on windows

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

I agree with the sentiment expressed in msg160237.  Having said that I believe 
that a lot of work has been put into the build system recently that might have 
covered this.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue11681] -b option undocumented

2014-06-07 Thread Martin Panter

Martin Panter added the comment:

Trouble is, in Python 2 bytes() and str() are the same thing, and most of those 
conditions don’t apply. Maybe something like this is more correct:

-b : issue warnings about comparing bytearray with unicode.
 (-bb: issue errors)

--

___
Python tracker 

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



[issue1559298] test_popen fails on Windows if installed to "Program Files"

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

Is this worth pursuing given the wording here 
https://docs.python.org/3/library/subprocess.html#replacing-os-popen-os-popen2-os-popen3
 ?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue12594] Docs for "Using Python on a Macintosh" needs to be updated

2014-06-07 Thread Yuly Tenorio

Yuly Tenorio added the comment:

Ok, I will definitely use that checker next time :) thanks!
Thanks Ned!

--

___
Python tracker 

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



[issue21690] re documentation: re.compile links to re.search / re.match instead of regex.search / regex.match

2014-06-07 Thread Julian Gilbey

New submission from Julian Gilbey:

In re.rst, the re.compile documentation says:

   Compile a regular expression pattern into a regular expression object, which
   can be used for matching using its :func:`match` and :func:`search` methods,
   described below.

This results in linking to the re.match and re.search module functions instead 
of the regex.match and regex.search object methods.  I'm not sure what the 
correct replacement syntax is, presumably something like :meth:`~regex.match` 
and :meth:`~regex.search`.

--
assignee: docs@python
components: Documentation
messages: 219997
nosy: docs@python, jdg
priority: normal
severity: normal
status: open
title: re documentation: re.compile links to re.search / re.match instead of 
regex.search / regex.match
versions: Python 3.4

___
Python tracker 

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Unfortunately, the test doesn't fail without the fix in, probably because the 
pager() function replaces itself in the module and thus can only be called 
once. It might make more sense to just directly test the getpager function with 
sys.stdin = None.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue14203] bytearray_getbuffer: unnecessary code

2014-06-07 Thread Kelley Nielsen

Kelley Nielsen added the comment:

I have verified that this feature is unused in the source tree; in fact, there 
are no internal calls to bytearray_getbuffer() at all. The only thing 
bytearray_getbuffer() does with its second arg is pass it to 
PyBuffer_FillInfo(), which immediately checks it and passes 0 up the call stack 
if it is NULL. (A comment in PyBuffer_FillInfo() asks why -1 is not passed up 
instead; it's probably to distinguish this feature from the error condition 
handled in the immediately following conditional block.)

There are potentially other issues stemming from this legacy feature in 
bytearray_getbuffer(), PyBuffer_FillInfo(), and elsewhere. The maintainers may 
see fit to open tickets on these issues as well.

There's more relevant commentary on the feature here: 
http://comments.gmane.org/gmane.comp.python.devel/130521

--
nosy: +kelleynnn
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue16667] timezone docs need "versionadded: 3.2"

2014-06-07 Thread Yayoi Ukai

Yayoi Ukai added the comment:

I did make patchcheck and make html and checked all versions HTML documents and 
looks great. Good job!

--
nosy: +terab

___
Python tracker 

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



[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis

Jan Kanis added the comment:

The 3.3 branch is not affected as the f0833e6ff2d2 changeset was never merged 
into that branch.

In the default branch the exception stops appearing after commit 79e2f5bbc30c: 
"Issue #18214: Improve finalization of Python modules to avoid setting their 
globals to None, in most cases." This changeset is also part of the current 3.4 
tip (19172062e5c0), so 3.4 tip does not display the buggy behaviour. Judging by 
the commit message, that commit also supersedes the attached patch as it at 
least prevents the visible symptoms. I am not sure if there still might be a 
deeper issue that is hidden by the changeset as Terry suggested.

--

___
Python tracker 

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



[issue11974] Class definition gotcha.. should this be documented somewhere?

2014-06-07 Thread Renee Chu

Renee Chu added the comment:

Submitting a patch for documentation.

--
hgrepos: +255
keywords: +patch
nosy: +reneighbor
Added file: http://bugs.python.org/file35533/issue11974.patch

___
Python tracker 

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



[issue12063] tokenize module appears to treat unterminated single and double-quoted strings inconsistently

2014-06-07 Thread Amandine Lee

Amandine Lee added the comment:

I confirmed that the behavior acts as described. I added a patch documenting 
the behavior, built the docs with the patch, and visually confirmed that the 
docs looks appropriate. 

Ready for review!

--
keywords: +patch
nosy: +amandine
Added file: http://bugs.python.org/file35532/issue12063.patch

___
Python tracker 

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread B D

B D added the comment:

removed comments.

--
Added file: http://bugs.python.org/file35531/issue11709.patch

___
Python tracker 

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Vinay Sajip

Changes by Vinay Sajip :


--
nosy:  -vinay.sajip

___
Python tracker 

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



[issue21688] Improved error msg for make.bat htmlhelp

2014-06-07 Thread Olive Kilburn

Changes by Olive Kilburn :


Removed file: http://bugs.python.org/file35518/mywork.patch

___
Python tracker 

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



[issue21688] Improved error msg for make.bat htmlhelp

2014-06-07 Thread Olive Kilburn

Changes by Olive Kilburn :


Added file: http://bugs.python.org/file35530/mywork.patch

___
Python tracker 

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



[issue12594] Docs for "Using Python on a Macintosh" needs to be updated

2014-06-07 Thread Ned Deily

Ned Deily added the comment:

Thank you for the patch, Yuly!  You've made some good improvements to the 
current page.  Because the current section is so old and out-of-sync with 
current practices (as you've noted in your changes) and with the nuances of 
Python on OS X, a more comprehensive restructuring is needed.  I don't think 
that trying to refine the section interactively is going to be an efficient 
process but I will definitely use your suggested changes as a basis.  I assume 
you have signed (or will be signing) the PSF contributor agreement.  Thanks 
again!  P.S. When submitting patches, don't forget to run patchcheck first 
(https://docs.python.org/devguide/patch.html#generation).  It will detect and 
fix trailing whitespace in lines that would otherwise prevent a patch from 
being committed in the main cpython hg repo.

--

___
Python tracker 

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



[issue21314] Document '/' in signatures

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

where's the best place for that documentation to live?

--

___
Python tracker 

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b8f9ae84d211 by Benjamin Peterson in branch '3.4':
in ftp cache pruning, avoid changing the size of a dict while iterating over it 
(closes #21463)
http://hg.python.org/cpython/rev/b8f9ae84d211

New changeset 6f70a18313e5 by Benjamin Peterson in branch 'default':
merge 3.4 (#21463)
http://hg.python.org/cpython/rev/6f70a18313e5

--
nosy: +python-dev
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-06-07 Thread Skyler Leigh Amador

Skyler Leigh Amador added the comment:

Addressed review comments

--
Added file: http://bugs.python.org/file35529/urllib-request-ftpcache-test.patch

___
Python tracker 

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



[issue11681] -b option undocumented

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

Here's an attempt (based on 3's main.c 
http://hg.python.org/cpython/file/8866ac6f2269/Modules/main.c)

--
keywords: +patch
Added file: http://bugs.python.org/file35528/issue11681.patch

___
Python tracker 

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread B D

B D added the comment:

added try finally as suggested by berkerpeksag. make patchcheck still works and 
all test cases still pass. did not use the test.support.swap_attr context 
manager because it may inhibit readability for those that are not familiar with 
it.

--
Added file: http://bugs.python.org/file35527/issue11709.patch

___
Python tracker 

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



[issue21314] Document '/' in signatures

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

The original bug (junk in various doc strings) has been fixed, but I think the 
positional argument "/" syntax still needs docs. It's a little tricky because 
"/" is not actually valid syntax; it's just for documentation signatures.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue11681] -b option undocumented

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

Might be worth making this addition from 3 (I'm not sure how to add this to 2)
-b : issue warnings about str(bytes_instance), str(bytearray_instance)
 and comparing bytes/bytearray with str. (-bb: issue errors)


Building on Martin's example:

On all of these, python2 is
Python 2.7.6 (default, Apr  6 2014, 23:14:26)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.


emily-mba:cpython emily$ python2
>>> bytearray("3") == u"3"
False

emily-mba:cpython emily$ python2 -b
>>> bytearray("3") == u"3"
__main__:1: BytesWarning: Comparison between bytearray and string
False

emily-mba:cpython emily$ python2 -bb
>>> bytearray("3") == u"3"
Traceback (most recent call last):
  File "", line 1, in 
BytesWarning: Comparison between bytearray and string

--
nosy: +emily.zhao

___
Python tracker 

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



[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

Has maintenance of asyncore effectively ceased owing to tulip/asyncio or are 
outstanding problems here, if any, still considered valid?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue12594] Docs for "Using Python on a Macintosh" needs to be updated

2014-06-07 Thread Yuly Tenorio

Yuly Tenorio added the comment:

Built with sphinx. No RST errors.

--
keywords: +patch
nosy: +yuly
Added file: http://bugs.python.org/file35526/pythonusage_mac.patch

___
Python tracker 

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



[issue21314] Document '/' in signatures

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

Can someone close this? I think it's fixed.

--
nosy: +emily.zhao

___
Python tracker 

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



[issue13223] pydoc removes 'self' in HTML for method docstrings with example code

2014-06-07 Thread Skyler Leigh Amador

Skyler Leigh Amador added the comment:

The patch still applies cleanly, so I've just updated the comment. test passes, 
make patchcheck passes.

--
nosy: +shiinee
Added file: http://bugs.python.org/file35525/pydoc-self.patch

___
Python tracker 

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



[issue6701] Make custom xmlrpc extension easier

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

Is there any value in the proof of concept patches attached here?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue13924] Mercurial robots.txt should let robots crawl landing pages.

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

I don't know too much about robots.txt but how about

Disallow: */rev/*
Disallow: */shortlog/*
Allow:

Are there any other directories we'd like to exclude?

--
nosy: +emily.zhao

___
Python tracker 

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



[issue12706] timeout sentinel in ftplib and poplib documentation

2014-06-07 Thread Greg

Greg added the comment:

In the definition of FTP.connect(), I've changed the code to actually use None 
as a lack-of-explicit-timeout sentinel instead of -999. For FTP and FTP_TLS, 
I've changed the documentation to reflect what the code is doing.

--
keywords: +patch
nosy: +εσχατοκυριος
Added file: http://bugs.python.org/file35524/patch.patch

___
Python tracker 

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



[issue11709] help-method crashes if sys.stdin is None

2014-06-07 Thread B D

B D added the comment:

added unit test for this behavior with roxane. verified that the updated patch 
applies cleanly, passes make patch check, and unit tests all pass.

--
nosy: +bdettmer, roxane
Added file: http://bugs.python.org/file35523/issue11709.patch

___
Python tracker 

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



[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 19172062e5c0 by Benjamin Peterson in branch '3.4':
specify that getuid() returns the real uid (closes #10503)
http://hg.python.org/cpython/rev/19172062e5c0

New changeset 6dfbe504f659 by Benjamin Peterson in branch '2.7':
specify that getuid() returns the real uid (closes #10503)
http://hg.python.org/cpython/rev/6dfbe504f659

New changeset 8866ac6f2269 by Benjamin Peterson in branch 'default':
merge 3.4 (#10503)
http://hg.python.org/cpython/rev/8866ac6f2269

--
nosy: +python-dev
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

(I left some comments on Rietveld.)

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue21548] pydoc -k IndexError on empty docstring

2014-06-07 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Thanks for the patch! It looks like the "synopsis" function also has this bug. 
Could you fix that, too?

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue21689] Docs for "Using Python on a Macintosh" needs to be updated.

2014-06-07 Thread Ned Deily

Ned Deily added the comment:

Yes but I don't think we need to have two issues open.  Let's make any comments 
in the already open issue.

--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Docs for "Using Python on a Macintosh" needs to be updated

___
Python tracker 

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



[issue12594] Docs for "Using Python on a Macintosh" needs to be updated

2014-06-07 Thread Ned Deily

Changes by Ned Deily :


--
title: Docs for py3k still refer to "MacPython 2.5 folder" -> Docs for "Using 
Python on a Macintosh" needs to be updated
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue21666] Argparse exceptions should include which argument has a problem

2014-06-07 Thread Glenn Linderman

Glenn Linderman added the comment:

Yes, I hope someday the parse_intermixed_args patch can be released... but I 
know it is not relevant to this issue.

I was aware of the %(substitution_variables) in the default help formatter, but 
I (1) goofed and entered % without escaping it (2) was surprised at how 
unhelpful the Traceback was at isolating the problem.

Happily, my code had only a few instances of %) so I was able to isolate it 
fairly quickly, but the error report certainly shows up at quite a distance 
(execution-wise) from the location of the source bug.

I haven't looked at the source for the HelpFormatter code: if it concatenates 
all the help text and then does substitutions en masse, then it would be 
difficult to isolate the error to a particular argument. If, on the other hand, 
it loops through the help text for each argument, doing the substitutions, and 
later formatting and concatenating, then surrounding the substitution attempt 
with a try: block so that the name of the argument with the faulty help text 
could be reported, that would be a big help to this situation, at little cost.

--

___
Python tracker 

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



[issue21689] Docs for "Using Python on a Macintosh" needs to be updated.

2014-06-07 Thread Yuly Tenorio

New submission from Yuly Tenorio:

"Using Python on a Mac" needs updating since it is pointing to old tools and 
documentation.

This is related to http://bugs.python.org/issue12594

--
assignee: docs@python
components: Documentation
messages: 219968
nosy: docs@python, ned.deily, yuly
priority: normal
severity: normal
status: open
title: Docs for "Using Python on a Macintosh" needs to be updated.
versions: Python 3.5

___
Python tracker 

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



[issue21404] Document options used to control compression level in tarfile

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 390b7fd617a9 by Benjamin Peterson in branch '2.7':
document the compress_level argument to tarfile.open (closes #21404)
http://hg.python.org/cpython/rev/390b7fd617a9

New changeset 0c712828fb6e by Benjamin Peterson in branch '3.4':
document the compress_level argument to tarfile.open (closes #21404)
http://hg.python.org/cpython/rev/0c712828fb6e

New changeset 171e8f6c814c by Benjamin Peterson in branch 'default':
merge 3.4 (#21404)
http://hg.python.org/cpython/rev/171e8f6c814c

--
nosy: +python-dev
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue21463] RuntimeError when URLopener.ftpcache is full

2014-06-07 Thread Skyler Leigh Amador

Skyler Leigh Amador added the comment:

I've made a test for this patch with a very minimal mock ftpwrapper. We can see 
it fails on dictionary size change without Erik's fix:

==
ERROR: test_ftp_cache_pruning (test.test_urllib.urlopen_HttpTests)
--
Traceback (most recent call last):
  File "/home/skyler/cpython/Lib/test/test_urllib.py", line 336, in 
test_ftp_cache_pruning
urlopen('ftp://localhost')
  File "/home/skyler/cpython/Lib/test/test_urllib.py", line 45, in urlopen
return opener.open(url)
  File "/home/skyler/cpython/Lib/urllib/request.py", line 1631, in open
return getattr(self, name)(url)
  File "/home/skyler/cpython/Lib/urllib/request.py", line 1914, in open_ftp
for k in self.ftpcache.keys():
RuntimeError: dictionary changed size during iteration

--
nosy: +shiinee
Added file: http://bugs.python.org/file35522/urllib-request-ftpcache-test.patch

___
Python tracker 

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



[issue21642] "_ if 1else _" does not compile

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4ad33d82193d by Benjamin Peterson in branch '3.4':
allow the keyword else immediately after (no space) an integer (closes #21642)
http://hg.python.org/cpython/rev/4ad33d82193d

New changeset 29d34f4f8900 by Benjamin Peterson in branch '2.7':
allow the keyword else immediately after (no space) an integer (closes #21642)
http://hg.python.org/cpython/rev/29d34f4f8900

New changeset d5998cca01a8 by Benjamin Peterson in branch 'default':
merge 3.4 (#21642)
http://hg.python.org/cpython/rev/d5998cca01a8

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue17449] dev guide appears not to cover the benchmarking suite

2014-06-07 Thread Kavya Joshi

Kavya Joshi added the comment:

I added a `Benchmarking` section in the dev guide with the relevant links and 
the intended use (testing rather than optimizing).
I also added an entry for the section in the Index.

Testing/verification:
I built the docs and visually inspected them.

--
keywords: +patch
nosy: +kavya
Added file: http://bugs.python.org/file35521/issue17449.patch

___
Python tracker 

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



[issue21404] Document options used to control compression level in tarfile

2014-06-07 Thread Jessica McKellar

Changes by Jessica McKellar :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue21404] Document options used to control compression level in tarfile

2014-06-07 Thread Katherine Busch

Katherine Busch added the comment:

Here's a patch. The docs built and I inspected the output. Everything looks 
correct.

--
keywords: +patch
nosy: +Katherine.Busch
Added file: http://bugs.python.org/file35520/tardocs.patch

___
Python tracker 

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



[issue12833] raw_input misbehaves when readline is imported

2014-06-07 Thread Dhanam Prakash

Dhanam Prakash added the comment:

Hi,
submitting a patch for the documentation.
Thanks

--
hgrepos: +254
keywords: +patch
nosy: +dhanamp
Added file: http://bugs.python.org/file35519/issue12833.patch

___
Python tracker 

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



[issue21688] Improved error msg for make.bat htmlhelp

2014-06-07 Thread Olive Kilburn

New submission from Olive Kilburn:

Currently if someone runs make.bat htmlhelp without first installing Htmlhelp 
Workshop, it outputs: 
c:\program not a valid . . . .

This isn't very informative if you don't know you need Htmlhelp Workshop. The 
included patch has make.bat give a more helpful message. If this isn't a good 
fix(?), I could try clarifying the readme instead.

--
components: Windows
files: mywork.patch
keywords: patch
messages: 219961
nosy: Olive.Kilburn
priority: normal
severity: normal
status: open
title: Improved error msg for make.bat htmlhelp
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35518/mywork.patch

___
Python tracker 

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



[issue21671] CVE-2014-0224: OpenSSL upgrade to 1.0.1h on Windows required

2014-06-07 Thread Georg Brandl

Georg Brandl added the comment:

Well, it's entirely logical to follow our own policies :)

--

___
Python tracker 

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



[issue15569] Doc doc: incorrect description of some roles as format-only

2014-06-07 Thread Emily Zhao

Emily Zhao added the comment:

I moved the 3 misplaced roles (envvar, keyword, and option) and changed the 
description for the new section per Terry's suggestions. Patch is attached and 
needs to go in the devguide repo.

https://docs.python.org/devguide/docquality.html#helping-with-the-developers-guide

--
keywords: +patch
nosy: +emily.zhao
Added file: http://bugs.python.org/file35517/issue15569.patch

___
Python tracker 

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



[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis

Jan Kanis added the comment:

I have verified that DemoWindow._destroy(self) indeed gets called before the 
exception is raised. 

I did a bisect, on the default branch the bug was introduced by commit 
f0833e6ff2d2: "Issue #1545463: Global variables caught in reference cycles are 
now garbage-collected at shutdown."

I will try bisecting the 3.3 branch to se where the bug stops appearing.

--

___
Python tracker 

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



[issue7424] NetBSD: segmentation fault in listextend during install

2014-06-07 Thread Ned Deily

Ned Deily added the comment:

See issue12673 msg219946.  Apparently this was caused by a long-standing BSD 
sparc bug.

--
nosy: +ned.deily
resolution:  -> third party
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

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



[issue21548] pydoc -k IndexError on empty docstring

2014-06-07 Thread Yuyang Guo

Yuyang Guo added the comment:

Made change based on Terry J. Reedy's suggestion

--
keywords: +patch
nosy: +Yuyang.Guo
Added file: http://bugs.python.org/file35516/issue21548.patch

___
Python tracker 

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



[issue13143] os.path.islink documentation is ambiguous

2014-06-07 Thread Yayoi Ukai

Yayoi Ukai added the comment:

Documentation is updated to be more clear

--
keywords: +patch
nosy: +terab
Added file: http://bugs.python.org/file35515/mywork.patch

___
Python tracker 

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



[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2014-06-07 Thread Greg

Greg added the comment:

Here's a wording change in the documentation to clarify this.

--
keywords: +patch
nosy: +εσχατοκυριος
Added file: http://bugs.python.org/file35514/mywork.patch

___
Python tracker 

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



[issue21687] Py_SetPath: Path components separated by colons

2014-06-07 Thread eryksun

eryksun added the comment:

A Windows path uses ":" after the drive letter, e.g. "C:\\Windows", so the 
delimiter is a semicolon on Windows. Other platforms use a colon.

CPython uses DELIM, which is defined in osdefs.h. This header isn't included by 
Python.h.

http://hg.python.org/cpython/file/c0e311e010fc/Include/osdefs.h

--
nosy: +eryksun

___
Python tracker 

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



[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

msg121605 says the OP isn't seeing issues with this so I'd guess this can be 
closed?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21600] mock.patch.stopall doesn't work with patch.dict to sys.modules

2014-06-07 Thread fumihiko kakuma

fumihiko kakuma added the comment:

Hi michael,
Certainly, thank you for your many advices. I attached the new patch file.

--
Added file: http://bugs.python.org/file35513/support_patch_dict_by_stopall.diff

___
Python tracker 

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Paul Moore

Changes by Paul Moore :


--
nosy:  -pmoore

___
Python tracker 

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Paul Moore

Paul Moore added the comment:

TBH, I don't think I ever took this any further. As noted, the earlier patches 
fixed the failures I was hitting.

It looks like Python 3.4 now has *two* definitions of find_unused_port, in 
test.test_support and in test.support. And test_asyncio and test_ftplib also 
use the function now.

--

___
Python tracker 

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Brian Curtin

Changes by Brian Curtin :


--
nosy:  -brian.curtin

___
Python tracker 

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



[issue21666] Argparse exceptions should include which argument has a problem

2014-06-07 Thread paul j3

paul j3 added the comment:

First, 'parse_intermixed_args' on stack is not relevant.  It's from an 
unreleased patch that we worked on.

What matters is the 'print_help', invoked probably with a '-h'.

The error message that normally specifies the problem argument is produced by 
ArgumentError.  The HelpFormatter does not raise such an error.  ArgumentError 
is usually used for parsing errors; this is a formatting one.  It's not 
produced by faulty commandline values.

If you must put strings like '%)` in the help line, use RawTextHelpFormatter.  
Otherwise HelpFormatter assumes the help line has valid format expressions like 
'%(default)s'.

Or you could write your own HelpFormatter subclass with a modified 
'_expand_help' method, one which wraps the 'self._get_help_string(action) % 
params' in a 'try' block.  Probably too draconian a measure for a rare problem. 
:)  

It's an interesting problem, but I don't think it warrants any code changes.

--
nosy: +paul.j3

___
Python tracker 

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



[issue9012] Separate compilation of time and datetime modules

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

msg111078 refers to r82035 for Visual Studio 2005 (VC8) builds.  Given that 
http://code.activestate.com/lists/python-dev/131023/ refers to VC14 for 3.5 can 
we close this as out of date?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue8576] test_support.find_unused_port can cause socket conflicts on Windows

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

msg104677, msg104822 and msg104845 refer to various commits but msg104955 
suggests that a follow up is needed so where do we stand with this issue?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue12673] SEGFAULT error on OpenBSD (sparc)

2014-06-07 Thread Remi Pointel

Remi Pointel added the comment:

For your information, this bug has been fixed in OpenBSD and the developper has 
contacted the NetBSD developper:
http://marc.info/?l=openbsd-tech&m=140209064821540&w=2

So I think we could close this issue because it's a system issue, not Python.

--

___
Python tracker 

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



[issue15707] PEP 3121, 384 Refactoring applied to signal module

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

PEP 384 is listed as finished while 3121 is accepted so what if anything needs 
to be done here?  I've checked https://docs.python.org/devguide/experts.html 
and nobody is listed against the signal module.  The patch is C code which I 
don't have the knowledge to comment on, sorry about that.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21687] Py_SetPath: Path components separated by colons

2014-06-07 Thread Florian Walch

New submission from Florian Walch:

The documentation for Py_SetPath [1] states:

> The path components should be separated by semicolons.

I believe this should not say "semicolons", but "colons"; the default path as 
output by Py_GetPath is separated by colons.

[1] https://docs.python.org/3/c-api/init.html#c.Py_SetPath

--
assignee: docs@python
components: Documentation
messages: 219944
nosy: docs@python, fwalch
priority: normal
severity: normal
status: open
title: Py_SetPath: Path components separated by colons
type: behavior
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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



[issue8840] truncate() semantics changed in 3.1.2

2014-06-07 Thread Mark Lawrence

Mark Lawrence added the comment:

Is any more work needed here as msg106725 asks about updating doc strings?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21686] IDLE - Test hyperparser

2014-06-07 Thread Saimadhav Heblikar

New submission from Saimadhav Heblikar:

Test for idlelib.HyperParser
5 lines not tested. Any suggestion on how to hit those lines welcome.
Will submit backport 2.7 once the patch for 3.4 is OK.

--
components: IDLE
files: test-hyperparser.diff
keywords: patch
messages: 219942
nosy: jesstess, sahutd, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE - Test hyperparser
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35512/test-hyperparser.diff

___
Python tracker 

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



[issue18141] tkinter.Image.__del__ can throw an exception if module globals are destroyed in the wrong order

2014-06-07 Thread Jan Kanis

Jan Kanis added the comment:

I tried changing the last block in turtulemodule/__init__.py to

if __name__ == '__main__':
demo = DemoWindow()
print("ENTERING mainloop")
demo.root.mainloop()
print("Bye")

but that does not solve the problem:

> python3 -m turtledemo
ENTERING mainloop
Exception ignored in: >
Traceback (most recent call last):
  File "/home/jan/test/lib/python3.4/tkinter/__init__.py", line 3330, in __del__
TypeError: catching classes that do not inherit from BaseException is not 
allowed

so still the same error. (Although it is probably still good to make that 
change.)

Tested on cpython revision dfcb64f51f7b, so the same as I originally made the 
bugreport from.

--

___
Python tracker 

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



[issue21592] Make statistics.median run in linear time

2014-06-07 Thread Steven D'Aprano

Steven D'Aprano added the comment:

On Sat, Jun 07, 2014 at 01:02:52PM +, Julian Taylor wrote:
> but a selection algorithm is useful on its own for all of python and 
> then a multiselect should be considered.

I like the idea of a select and/or multiselect for 3.5. As a 
new feature, it cannot go into 3.4.

--

___
Python tracker 

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



[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-07 Thread Nick Coghlan

Changes by Nick Coghlan :


--
resolution:  -> fixed
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d23cea976f46 by Nick Coghlan in branch '3.4':
Issue #21569: sync Python 2.7 What's New with 2.7 version
http://hg.python.org/cpython/rev/d23cea976f46

New changeset b167df2912d6 by Nick Coghlan in branch 'default':
Merge issue #21569 from 3.4
http://hg.python.org/cpython/rev/b167df2912d6

--

___
Python tracker 

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



[issue21569] PEP 466: Python 2.7 What's New preamble changes

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7c28b3a92f40 by Nick Coghlan in branch '2.7':
Updates to Python 2.7 What's New preamble
http://hg.python.org/cpython/rev/7c28b3a92f40

--
nosy: +python-dev

___
Python tracker 

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



[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-07 Thread Nick Coghlan

Nick Coghlan added the comment:

I've merged the character->code point clarifications, without the 
implementation detail section.

For the time being, that leaves "doesn't provide O(1) indexing of strings" as 
the kind of discrepancy that often makes an appearance in "differences from the 
CPython reference implementation" section that many alternative implementations 
include.

--
resolution:  -> later
stage:  -> resolved
status: open -> closed
type:  -> enhancement

___
Python tracker 

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



[issue21667] Clarify status of O(1) indexing semantics of str objects

2014-06-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6ffb6909c439 by Nick Coghlan in branch '3.4':
Issue #21667: Clarify string data model description
http://hg.python.org/cpython/rev/6ffb6909c439

New changeset 7c120e77d6f7 by Nick Coghlan in branch 'default':
Merge issue #21667 from 3.4
http://hg.python.org/cpython/rev/7c120e77d6f7

--
nosy: +python-dev

___
Python tracker 

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



[issue21685] zipfile module doesn't properly compress odt documents

2014-06-07 Thread SilentGhost

SilentGhost added the comment:

Raimondo, the documentation clearly states that the compression method is 
either inherited from ZipInfo instance (when that one is passed) or set to 
ZIP_STORED otherwise. Since you're not passing ZipInfo instance, but the string 
(as the first argument to .writestr), therefore the compression method is set 
to ZIP_STORED. If you're not set it to ZIP_DEFLATED explicitly, it would work 
as you expect it. In either case, this behaviour is in accordance with the 
documentation.

--
nosy: +SilentGhost

___
Python tracker 

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



  1   2   >