[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2015-04-14 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
nosy: +rhettinger

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



[issue21148] avoid memset in small tuple creation

2015-04-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I think this looks promising.

Don't worry too much about the modest timing improvement.  For the most part, 
we should almost always take steps to eliminate work that is known to be 
unnecessary.  The timings serve as a guide but it would be easy for us to get 
trapped in local minimums on a particular machine or compiler.

--
nosy: +rhettinger

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



[issue23937] IDLE start maximized

2015-04-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I also teach students and prefer the current behavior.   It is egregious for 
apps to assume that they are the only thing running and to hide everything else 
(i.e. docs viewed through a browser).  This isn't the norm for most apps I work 
with either.

Though I'm -1 on this, I would support adding IDLE configuration option so that 
the user can specify that they want maximization.

--
nosy: +rhettinger

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



[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

How long time the test run (if there is enough memory)? May be we should 
decrease memory requirements by using shared values?

--
nosy: +serhiy.storchaka

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



[issue23310] MagicMock initializer fails for magic methods

2015-04-14 Thread Łukasz Langa

Łukasz Langa added the comment:

Awesome! Thank you for your patch, Kasia. For the record, I left the non-magic 
Mock behavior untouched since Kasia rightfully points out that in this case 
m.configure_mock() also does not work.

--
keywords:  -needs review
resolution:  - fixed
status: open - closed
title: Mock constructor configuration fails for magic methods - MagicMock 
initializer fails for magic methods

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



[issue20309] Not all method descriptors are callable

2015-04-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I don't agree that this is a bug that should be fixed.  It adds code that will 
likely never get called or needed (i.e. there has never been a request for this 
in the decade long history of desciptors and it seems like a made up 
requirement to me.  

I concur with Amrin's comment that this is good enough and Nick's comment 
that it's just a matter of pattern of use'.  I recommend that this be closed 
as not-a-bug and that we avoid gratuitous API expansion for what Larry states 
is likely foolish consistency.  

If someone object to recommendation to close and really wants to push for this, 
I recommend making a business case for acceptance and then assigning this issue 
to Guido for a decision.  This is his code and AFAICT he intentionally didn't 
go down a number of possible paths for descriptors simply because there weren't 
motivating use cases.  To the extent that __call__ was omitted on some 
descriptors, I don't think it was an accident (most of this code was developed 
as the same time by the same person with deliberate differences between each of 
them).   His write-ups for descriptors when they were introduced make no 
mention of an implied requirement for callability.


FWIW, issue 19072 isn't really related to this one.  That issue is a feature 
request to support descriptor chainging and it isn't clear whether that should 
be supported or left as-in.

--

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



[issue18383] test_warnings modifies warnings.filters when running with -W default

2015-04-14 Thread Alex Shkop

Alex Shkop added the comment:

Removed unnecessary assertWarns() contexts and fixed spelling errors.

--
Added file: 
http://bugs.python.org/file38982/issue18383_assert_warns_and_dups_v2.patch

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



[issue23943] Misspellings in a few files

2015-04-14 Thread Berker Peksag

Berker Peksag added the comment:

Thanks Piotr.

--
nosy: +berker.peksag
resolution:  - fixed
stage:  - resolved
status: open - closed
versions: +Python 3.4

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



[issue23310] Mock constructor configuration fails for magic methods

2015-04-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8e5592a43d65 by Łukasz Langa in branch '3.4':
Issue #23310: Fix MagicMock's initializer to work with __methods__.
https://hg.python.org/cpython/rev/8e5592a43d65

New changeset dd8f48ff9480 by Łukasz Langa in branch 'default':
Merge 3.4 (#23310)
https://hg.python.org/cpython/rev/dd8f48ff9480

--

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



[issue23908] Check path arguments of os functions for null character

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I can't test the patch on UNIX, this branch of the code is executed only on 
Windows.

--

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



[issue23943] Misspellings in a few files

2015-04-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 9f2bd9939d4b by Berker Peksag in branch '3.4':
Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
https://hg.python.org/cpython/rev/9f2bd9939d4b

New changeset 4fb2075952a4 by Berker Peksag in branch 'default':
Issue #23943: Fix typos. Patch by Piotr Kasprzyk.
https://hg.python.org/cpython/rev/4fb2075952a4

--
nosy: +python-dev

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



[issue23310] Mock constructor configuration fails for magic methods

2015-04-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4d1236b180be by Łukasz Langa in branch 'default':
Issue #23310: Fix MagicMock's initializer to work with __methods__.
https://hg.python.org/cpython/rev/4d1236b180be

--
nosy: +python-dev

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



[issue23507] Tuple creation is too slow

2015-04-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Unassigning because I don't have an interest in going further down this path.  
I used this technique with zip() because tuple reuse nicely benefited the 
common case of for a,b,c in zip(alist, blist, clist):   

On another thread, I did see mention of removing the memset() from tuple 
creation and that seems like a promising direction.

--
assignee: rhettinger - 

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



[issue23008] pydoc enum.{,Int}Enum fails

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think we can ignore this flaw. 'pydoc None' works, and any solution for None 
aliases could break existing code that use private pydoc functions.

Here is a patch with a test.

--
stage: test needed - patch review
Added file: http://bugs.python.org/file38983/pydoc_resolve_false_2.patch

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



[issue23193] Please support numeric_owner in tarfile

2015-04-14 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy:  -haypo

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



[issue19050] [Python 2, Windows] fflush called on pointer to potentially closed file

2015-04-14 Thread STINNER Victor

STINNER Victor added the comment:

 The default (and standards-violating) behavior of the Windows CRT is to kill 
 the process for a bad file descriptor, instead of just setting errno to EBADF.

Ah, if the issue is the behaviour of the MSVCRT on EBADF, Steve Dower can help 
you. He wrote the _Py_BEGIN_SUPPRESS_IPH/_Py_END_SUPPRESS_IPH thing for Python 
3.5 and Visual Studio 2015 (Issue #23668).

--

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



[issue23908] Check path arguments of os functions for null character

2015-04-14 Thread STINNER Victor

STINNER Victor added the comment:

 I can't test the patch on UNIX, this branch of the code is executed only on 
 Windows.

If you write a test which ensures that a path with a null character raises a 
TypeError, it should pass on UNIX on your PC. Then builbots will ensure that it 
also pass on Windows, no?

--

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



[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-14 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy:  -haypo

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



[issue22980] C extension naming doesn't take bitness into account

2015-04-14 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
nosy:  -haypo

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



[issue23863] Fix EINTR Socket Module issues in 2.7

2015-04-14 Thread STINNER Victor

STINNER Victor added the comment:

@Benjamin: since you are the maintainer of Python 2.7, I would like your 
opinion on this issue.

Python older than 3.5 does not handle EINTR for you: if you register a signal 
handler for a signal, the signal handler does not raise an exception, and a 
syscall is interrupted by a signal: Python raises an exception with the EINTR 
error code (it may be an OSError, IOError, socket.error, etc.). Well, the 
longer rationale is in the PEP 475.

Basically, Jeff McNeil wants to implement the PEP 475 in Python 2.7. I'm 
opposed to that because I contributed to the implementation in Python 3.5 and 
it changed a *lot* of code, the implementation was only made possible with 
previous changes done in Python 3.3 and 3.4 like the introduction of 
time.monotonic() in Python, a monotonic clock in C (the new _PyTime_t API and 
the _PyTime_GetMonotonicClock()) and refactoring of code.

Retrying socket methods doesn't simply mean writing a loop: you must respect 
the timeout, which is more complex. Socket methods in Python are implemented 
internally with select(). select() can fail with EINTR, as socket functions.

Jeff wrote a function to retry on EINTR which recomputes the timeout: 
socket_eintr.5.patch. Problem: his patch calls socket.settimeout() which is not 
thread safe. IMO the correct fix is to implement the PEP 475 in socketmodule.c 
directly, because it makes possible to use a variable for the timeout (no need 
to call settimeout()). (Reimplementing select() in socket.py to wait until the 
socket becomes readable/writable doesn't sound right to me; and it would add a 
new dependency from the socket module to the select module.)

Modifying the C code is more complex: see for example my patch 
connect_eintr-py27.patch to handle EINTR in socket.connect() and recompute the 
timeout. IMO socket.connect() requires the most complex code to handle EINTR 
and recompute the timeout, you have to combine connect(), select() and 
getsockopt(). (So it's maybe not the best example.) In Python 3.5, it took me 
~10 commits to refactor socketmodule.c to be able to add a new sock_call() 
function (and a few more commits to fix bugs :-))

Since Python didn't handle EINTR before Python 3.5 and only a very few people 
complained, I don't think that it's worth to take the risk on introduction 
regressions. Anyway, Python 2 is dead, Python 3 is the place where large 
bugfixes are implemented (and where new features are implemented).

The PEP 475 is much larger than the socket module. In Python 2.7, io, os, 
select, socket and time are also impacted for example.

I suggest to close this issue as WONTFIX.

I'm not sure that only fixing socket.connect() is useful. (Apply 
connect_eintr-py27.patch which is based on my fix for Python 3.5.)

--
nosy: +benjamin.peterson

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



[issue23935] Clean up Clinic's type expressions of buffers

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Added few comments on Rietveld.

--

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



[issue23507] Tuple creation is too slow

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

map doesn't use PyObject_CallFunctionObjArgs(). If compare results for map with 
results for filter and list.sort, seems that PyTuple_New() is responsible for 
24% and PyObject_CallFunctionObjArgs() adds other 14%.

--
priority: normal - low

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



[issue23900] Add a default docstring to Enum subclasses

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

May be don't add __doc__ if sys.flags.optimize = 2?

--

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



[issue23310] MagicMock initializer fails for magic methods

2015-04-14 Thread Łukasz Langa

Changes by Łukasz Langa luk...@langa.pl:


--
stage: needs patch - resolved

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



[issue21148] avoid memset in small tuple creation

2015-04-14 Thread STINNER Victor

STINNER Victor added the comment:

 avoid memset in small tuple creation

I don't understand this title because there is no call to memset() in the patch.

Can you try to modify PyTuple_New() to use memset() instead of a dummy loop?

Adding a _PyTuple_New() which doesn't initialize the memory doesn't seem safe 
to me.

You may try to allocate the tuple with PyObject_Calloc(), but when I tried on 
other types, it was slower than PyObject_Malloc() for sizes smaller than 1 MB.

--
nosy: +haypo

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



[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2

New submission from andig2:

Setup: IE default browser, FF37 preferred browser and configured in BROWSER env 
variable

Test:

import webbrowser
url = http://localhost;
webbrowser.open(url + '?XDEBUG_SESSION_START=sublime.xdebug')

Behaviour:

1st run: FF opens - ok
2nd run: FF opens new tab - ok, in addition, IE opens - WRONG

--
components: Library (Lib)
messages: 240863
nosy: andig2
priority: normal
severity: normal
status: open
title: webbrowser.open opens twice on Windows if BROWSER is set
type: behavior
versions: Python 3.4

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



[issue23908] Check path arguments of os functions for null character

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I afraid not that builbots will fail, but that that test could pass without the 
fix. Tests should be tested without applying the fix. Writing right tests can 
require several iterations with running tests on patched and unpatched the os 
module.

Here is a patch with tests.

--
Added file: http://bugs.python.org/file38984/path_converter_null_char_2.patch

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



[issue21116] Failure to create multiprocessing shared arrays larger than 50% of memory size under linux

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Instead of the loop you can use writelines():

f.writelines([b'\0' * bs] * (size // bs))

It would be nice to add a comment that estimate why os.ftruncate() or 
seek+write can't be used here. At least a link to this issue with short 
estimation.

--
nosy: +serhiy.storchaka

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



[issue14117] Turtledemo: exception and minor glitches.

2015-04-14 Thread Chris Abiad

Chris Abiad added the comment:

Running through each of the demos, it seems as though only 'penrose' and 'tree' 
have console/shell output.

'penrose' output is a list of information about the current rendering and has a 
format like:
Calculation:0.0009 s
Drawing:   0.0074 s
Together:  0.0083 s
5 kites and 0 darts = 5 pieces.
(... This repeats with updated information for each rendering ...)

I believe that there's too much output right now to include this in the demo 
window's message button area. It might be interesting to show most or all of 
this information with a turtle.write() in the graphical area, but I think that 
the better option is just to remove (or at least comment out) the timing 
information entirely and show only the '5 kites and 0 darts = 5 pieces' portion 
in the message button area.

I could submit a patch for either 'penrose' option if there's interest.

The 'tree' prints a count of the number of turtles created at the end of the 
run. Console output looks like:
1024

I think this is not very useful, except perhaps when debugging the demo. I've 
attached a patch which removes this output.

--
keywords: +patch
nosy: +cabiad
Added file: http://bugs.python.org/file38986/14117_tree_output.patch

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



[issue21400] Code coverage documentation is out-of-date.

2015-04-14 Thread Heather McCartney

Heather McCartney added the comment:

You're welcome! Thanks for the feedback, I've signed the PSF Contributor Form.

--

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



[issue12652] Keep test.support docs out of the global docs index

2015-04-14 Thread Carol Willing

Carol Willing added the comment:

Reviewed the issue history during the PyCon sprints. Thanks to all for the 
thoughts on this issue. I am closing this issue since any additional actions on 
this subject would be best filed as a new issue.

--
nosy: +willingc
resolution:  - out of date
status: open - closed

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



[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Joe Jevnik

Joe Jevnik added the comment:

I am not sure yet; I don't have access to a machine that can run the test.

--

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



[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2

andig2 added the comment:

And finally: FF returns exit code 1 when its started and already running. That 
situation is not handled by the GenericBrowser Popen logic.

--

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



[issue23946] Invalid timestamps reported by os.stat() when Windows FILETIME structures are mistakenly reset.

2015-04-14 Thread Cristi Fati

New submission from Cristi Fati:

In WinPE environment (at least this is where I found it, but there might be 
cases where this issue could be spotted in normal Windows), some folders might 
have some of the FILETIME structures reset (because of RAMDrive?). When the 
conversion between WIN style (100 * nsecs from  1601/01/01) to UX style (secs 
from 1970/01/01) is taking place (epoch is being substracted), it could yield 
invalid filetime values (that will be reported by os.stat).

The attached patch simply goes around this initializing the UX timestamps to 0.

It was found in Python-2.7.3, the patch is for 2.7.8, but I think it can be 
reproduced with all the newer versions.

--
components: Interpreter Core, Windows
files: Python-2.7.8-invalid_filetimes.patch
keywords: patch
messages: 240875
nosy: CristiFati, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Invalid timestamps reported by os.stat() when Windows FILETIME 
structures are mistakenly reset.
type: behavior
versions: Python 2.7
Added file: 
http://bugs.python.org/file38985/Python-2.7.8-invalid_filetimes.patch

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



[issue21400] Code coverage documentation is out-of-date.

2015-04-14 Thread Carol Willing

Carol Willing added the comment:

Thanks Heather for filing the PSF contribution form as well as the patch. I 
hope you will continue improving Python's documentation in the future :)

--

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



[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2

andig2 added the comment:

Here is a matrix of the test results depending on which browser is open upon 
starting the test script:

No browser open: FF opens tab (ok)
IE open: new tab in FF (ok), nothing in IE (ok)
FF open: new tab in FF (ok), new tab in in IE (NOT ok)
Both open: new tab in FF (ok), new tab in in IE (NOT ok)

--

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



[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2

andig2 added the comment:

Looking further in webbrowser.py, FF uses GenericBrowser:

class GenericBrowser(BaseBrowser):
Class for all browsers started with a command
   and without remote functionality.

   ...

def open(self, url, new=0, autoraise=True):
cmdline = [self.name] + [arg.replace(%s, url)
 for arg in self.args]
try:
if sys.platform[:3] == 'win':
p = subprocess.Popen(cmdline)
else:
p = subprocess.Popen(cmdline, close_fds=True)
return not p.wait()

If FF is already open, Popen.wait() returns TRUE for FF but FALSE for IE. This 
leads to fallthrough for FF and then calling open for IE.

--

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



[issue16222] some terms not found by devguide's search box

2015-04-14 Thread Carol Willing

Carol Willing added the comment:

Reviewed this issue's history at PyCon sprint. The devguide now provides 
results if searched for 'server side' or 'clone'. This issue is resolved.

If additional search terms are required in the index, it is recommended that a 
new issue with specific terms be filed against the devguide. Thanks.

--
nosy: +willingc
resolution:  - fixed
status: open - closed

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



[issue23945] webbrowser.open opens twice on Windows if BROWSER is set

2015-04-14 Thread andig2

andig2 added the comment:

It boils down to Popen.wait() returning 1 if FF is already open resulting in 
GenericBrowser.open() returning False.

That part was last touched here 
https://github.com/python/cpython/commit/a456db5e058f955f235fe7a51e8c111d0a8ecf4e

--

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



[issue23917] please fall back to sequential compilation when concurrent doesn't exist

2015-04-14 Thread Claudiu Popa

Claudiu Popa added the comment:

Will do, thanks.

--
assignee:  - Claudiu.Popa
stage:  - needs patch
type:  - behavior

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



[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Steve Dower

Steve Dower added the comment:

I'll soon have Windows and Ubuntu machines with 448GB RAM each - anything 
special I should test here?

--

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



[issue23921] Standardize documentation whitespace, formatting

2015-04-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The patch mostly LGTM. Most changes are trivial, but the patch also fixes few 
bugs. It is nice that the patch adds empty lines after blocks, this makes 
copying the code to interactive interpreter easier. I left comments on Rietveld.

The most questionable changes are adding spaces before comments. But these 
changes are simple and can slightly increase readability.

--

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



[issue22848] Subparser help does not respect SUPPRESS argument

2015-04-14 Thread R. David Murray

R. David Murray added the comment:

I believe BJ is saying the same thing that Paul is, that SUPPRESS could omit 
the subparser from the list of subparsers.  I haven't checked, but I believe 
this means that the proposed patch doesn't do anything other than what omitting 
the help would do, so a different patch is required to remove the subparser 
from the list of subparsers in the help.

--
nosy: +r.david.murray

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



[issue3353] make built-in tokenizer available via Python C API

2015-04-14 Thread Dustin J. Mitchell

Dustin J. Mitchell added the comment:

From my read of this bug, there are two distinct tasks mentioned:

 1. make PyTokenizer_* part of the Python-level API
 2. re-implement 'tokenize' in terms of that Python-level API

#1 is largely complete in Andrew's latest patch, but that will likely need:
 * rebasing
 * hiding struct fields
 * documentation

#2 is, I think, a separate project.  There may be good reasons *not* to do this 
which I'm not aware of, and barring such reasons the rewrite will be difficult 
and could potentially change behavior like issue2180.  So I would suggest 
filing a new issue for #2 when #1 is complete.  And I'll work on #1.

--
nosy: +djmitche

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



[issue12652] Keep test.support docs out of the global docs index

2015-04-14 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: patch review - resolved

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



[issue19121] Documentation guidelines enhancements

2015-04-14 Thread Carol Willing

Carol Willing added the comment:

Thanks to all for the feedback. Since this issue covers a sufficiently broad 
set of thoughts, it would be better suited for a PEP. Closing this issue with 
the recommendation to submit a PEP if interested.

--
nosy: +willingc
resolution:  - not a bug
status: open - closed

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



[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Joe Jevnik

Joe Jevnik added the comment:

The tests need to be run with higher memory caps, this can be set with the -M 
flag, like python -m test -M 64G test_bigmem. I am under the impression that 
these tests don't get run all the time so we might want to run that suite.

--

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



[issue21327] socket.type value changes after using settimeout()

2015-04-14 Thread Raúl Cumplido

Raúl Cumplido added the comment:

Forget my previous comment. Done with Linux and had the initial behavior again:
 s = socket.socket()
 s.type
SocketType.SOCK_STREAM: 1
 s.settimeout(2)
 s.type
2049

--

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



[issue14374] Compiling Python 2.7.2 on HP11i PA-RISC ends with segmentation fault in Python executable

2015-04-14 Thread A.M. Kuchling

A.M. Kuchling added the comment:

No further information from poster; please comment if you still wish to pursue 
this.  Closing this issue as obsolete.

If I'm interpreting the uname -a output correctly, this is HP-UX 11.11, 
released in 2000 according to 
http://en.wikipedia.org/wiki/HP-UX#Release_history.

--
nosy: +akuchling
resolution:  - out of date
stage:  - resolved
status: open - closed

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



[issue23950] Odd behavior with file and filename attributes in cgi.FieldStorage

2015-04-14 Thread Rob King

New submission from Rob King:

Hello, everyone.

I've noticed an issue that could be just a documentation inaccuracy or a 
genuine, minor bug in cgi.FieldStorage.

The documentation for the module states:

You can test for an uploaded file by testing either the filename attribute or 
the file attribute.

However, I've noticed that on a form submission that includes both a file field 
and a normal form field, *all* of the members of the form have a non-None 
file attribute, while only the actual uploaded file has a non-None filename 
attribute.

This would appear to be caused by the cgi module's use of MiniFieldStorage for 
in some situations, and FieldStorage in others. The FieldStorage class (if I'm 
reading the code correctly) would appear to always have a non-None file 
attribute but may have a None filename attribute.

This makes the documentation for the module unclear, as testing for a non-None 
file attribute will always return True in cases of FieldStorage, even if the 
particular field is not actually a file.

I would suggest modifying the documentation to say something like:

You can test for an uploaded file by testing the filename attribute.

Please let me know if I'm missing something, that's always also a possibility. 
:)

--
messages: 240942
nosy: deadpixi
priority: normal
severity: normal
status: open
title: Odd behavior with file and filename attributes in cgi.FieldStorage
versions: Python 3.4

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



[issue23951] Update devguide style to use a similar theme as Docs

2015-04-14 Thread Carol Willing

New submission from Carol Willing:

It would be helpful to update the conf.py file and dependencies to use a 
modified 'pydoctheme' for the devguide style. The benefits would be improved 
readability, a consistent look with the stdlib docs, and collapsible sidebars.

Attached is a screenshot of a quick hack of the conf.py file and the rendered 
devguide index.

--
components: Devguide
files: Screen Shot 2015-04-14 at 12.42.48 PM.png
messages: 240943
nosy: ezio.melotti, willingc
priority: normal
severity: normal
status: open
title: Update devguide style to use a similar theme as Docs
type: enhancement
Added file: http://bugs.python.org/file38995/Screen Shot 2015-04-14 at 12.42.48 
PM.png

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



[issue17751] ctypes/test/test_macholib.py fails when run from the installed location

2015-04-14 Thread Zachary Ware

Zachary Ware added the comment:

My bad, you're right.  Thanks!

--
resolution:  - out of date
stage: needs patch - resolved
status: open - closed

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



[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Steve Dower

Steve Dower added the comment:

Just for fun, I attached the memory usage graph from the Windows run. You can 
see the long pauses in the middle for the two changed tests, and the graph only 
goes up to 57GB despite the limit being set at 440GB.

--
Added file: http://bugs.python.org/file38996/bigmem_usage_440G.png

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



[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-14 Thread Ulaga Nathan Mahadevan

Ulaga Nathan Mahadevan added the comment:

I agree. I posted it as an enhancement request. Steven explained the
expected message clearly. Thanks.

On Tue, Apr 14, 2015 at 12:58 PM, Steven D'Aprano rep...@bugs.python.org
wrote:


 Steven D'Aprano added the comment:

 The error message isn't wrong, just hard to understand. In your example,
 when it says need more than 4 values to unpack it means that it got four
 values on the right hand side, and needs five (which is more than four) to
 match what is on the left.

 When the error is the other way around, with too few targets on the left,
 the error message is more understandable:

 a, b = (1, 2, 3)

 gives

 ValueError: too many values to unpack (expected 2).

 Your example should be fixed to something similar. I think it would be
 useful for both cases to report expected %d, got %d rather than just one
 or the other.


 By the way, I don't think that changes to error messages will be
 back-ported to old versions like 3.2, but only added to the latest version.

 --
 keywords: +easy
 nosy: +steven.daprano

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23949
 ___


--

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



[issue23078] unittest.mock patch autospec doesn't work on staticmethods

2015-04-14 Thread Kasia Jachim

Changes by Kasia Jachim katarzyna.jac...@gmail.com:


--
nosy: +lukasz.langa

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



[issue23888] Fixing fractional expiry time bug in cookiejar

2015-04-14 Thread Demian Brecht

Demian Brecht added the comment:

Although it's likely not going to be a high frequency issue (but would be 
painful to track down when it does become an issue), by doing an 
int(float(expires)), you're losing the sub-second portion of the expiry. Why 
not something like this:

try:
expires = int(expires)
except ValueError:
expires = int(float(expires) * 1e6)

Looking at the values in the Chrome sqlite3 database, it seems like the above 
is what they're storing (INTEGER datatype).

How are wget and curl treating the fractional part? I'd be really surprised if 
they were ignoring it as in the proposed patch.

--

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



[issue23888] Fixing fractional expiry time bug in cookiejar

2015-04-14 Thread Demian Brecht

Demian Brecht added the comment:

Changing to behavior type as crash is generally used to indicate an 
interpreter issue.

--
nosy: +orsenthil
stage:  - patch review
type: crash - behavior

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



[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2015-04-14 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Closing as obsolete.

--
nosy: +akuchling
resolution:  - wont fix
stage: patch review - resolved
status: open - closed

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



[issue23811] Python py_compile error message inconsistent and missing newline

2015-04-14 Thread Berker Peksag

Berker Peksag added the comment:

Thank you Alex.

--
nosy: +berker.peksag
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue6983] Add specific get_platform() for freebsd

2015-04-14 Thread A.M. Kuchling

A.M. Kuchling added the comment:

Closing this issue; judging by the comments, the fix should be pushed off to 
setuptools/distribute/whatever.

--
nosy: +akuchling
resolution:  - wont fix
stage:  - resolved
status: open - closed

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



[issue23951] Update devguide style to use a similar theme as Docs

2015-04-14 Thread Zachary Ware

Zachary Ware added the comment:

One benefit to having a different theme for the devguide is that it makes clear 
that you're not in the standard library docs anymore.  I agree that that 
screenshot looks quite a bit better, though.

--
nosy: +zach.ware

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



[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2015-04-14 Thread Gregory P. Smith

Gregory P. Smith added the comment:

fyi - i didn't update the 2.7 docs. just 3.4 and 3.5. if some committer wants 
to, feel free.

--
nosy: +gregory.p.smith

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



[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2015-04-14 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
resolution:  - fixed
status: open - closed

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



[issue23944] Argument Clinic: wrap impl's declaration if it's too long

2015-04-14 Thread Zachary Ware

Zachary Ware added the comment:

Larry: Here's your sample:

/*[clinic input]
_winapi.CreateProcess

application_name: Py_UNICODE(nullable=True)
command_line: Py_UNICODE(nullable=True)
proc_attrs: object
Ignored internally, can be None.
thread_attrs: object
Ignored internally, can be None.
inherit_handles: BOOL
creation_flags: DWORD
env_mapping: object
current_directory: Py_UNICODE(nullable=True)
startup_info: object
/

Create a new process and its primary thread.

The return value is a tuple of the process handle, thread handle,
process ID, and thread ID.
[clinic start generated code]*/

static PyObject *
_winapi_CreateProcess_impl(PyModuleDef *module, Py_UNICODE *application_name, 
Py_UNICODE *command_line, PyObject *proc_attrs, PyObject *thread_attrs, BOOL 
inherit_handles, DWORD creation_flags, PyObject *env_mapping, Py_UNICODE 
*current_directory, PyObject *startup_info)
/*[clinic end generated code: output=c279c1271b4c45cf input=6667ea0bc7036472]*/

--

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



[issue1475523] gettext breaks on plural-forms header

2015-04-14 Thread A.M. Kuchling

A.M. Kuchling added the comment:

#17898 has been closed with basically the same fix as Mark's patch, so I'll 
close this issue.

--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue23947] Add mechanism to import stdlib package bypassing user packages

2015-04-14 Thread Steve Dower

New submission from Steve Dower:

There are some situations where the stdlib imports modules that could be 
absent, notably import readline in site.py. This import is expected to fail 
in some situations, but because sys.path is fully configured it can be 
importing arbitrary code.

To limit these imports to only installed packages, we could add a fake _stdlib 
module with __path__ set to a restricted set (approximately/exactly(?) what -I 
uses) and an importlib helper to import it and alias it in sys.modules.

Open question about what to do when a user has already imported their own 
module and it isn't the stdlib one. We discussed displaying a warning in this 
case.

If the import helper is private we should be able to backport to 2.7/3.4 easily 
enough.

--
components: Library (Lib)
messages: 240896
nosy: brett.cannon, christian.heimes, eric.snow, ncoghlan, steve.dower
priority: normal
severity: normal
status: open
title: Add mechanism to import stdlib package bypassing user packages
versions: Python 2.7, Python 3.4, Python 3.5

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



[issue23350] Content-length is incorrect when request body is a list or tuple

2015-04-14 Thread Vincent Alquier

Vincent Alquier added the comment:

Martin: You're right, it's the same issue, and only related to python2's old 
style classes. Sorry for the useless noise.

Demian: My problem is `len(obj)` raises an Using AttributeError in python2 
(with obj being old style class instance). It's python 2.X specific and I don't 
think it is going to be addressed (reading comments in #15267). But thanks for 
your code rework.

--

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



[issue23811] Python py_compile error message inconsistent and missing newline

2015-04-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 22790c4f3b16 by Berker Peksag in branch '2.7':
Issue #23811: Add missing newline to the PyCompileError error message.
https://hg.python.org/cpython/rev/22790c4f3b16

--

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



[issue9859] Add tests to verify API match of modules with 2 implementations

2015-04-14 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith

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



[issue21039] pathlib strips trailing slash

2015-04-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Therefore, I'm finally closing this as won't fix :)

--
resolution:  - wont fix
status: open - closed

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



[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2015-04-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3e8047ee9bbb by Gregory P. Smith in branch '3.4':
issue22046: mention that zipfile can raise NotImplementedError on unsupported
https://hg.python.org/cpython/rev/3e8047ee9bbb

New changeset 4b9deb7e6f2b by Gregory P. Smith in branch 'default':
issue22046: mention that zipfile can raise NotImplementedError on unsupported
https://hg.python.org/cpython/rev/4b9deb7e6f2b

--
nosy: +python-dev

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



[issue23193] Please support numeric_owner in tarfile

2015-04-14 Thread Eric V. Smith

Eric V. Smith added the comment:

Thanks for your review, Berker. I've updated the code with most of your 
suggestions, although some of them were mooted by some restructuring I did.

A couple of questions/issues:
- I'm not sure where we stand on keyword-only arguments. I certainly agree that 
I'd never specify numeric_only unless I named it. However, I don't see a lot of 
that style in new or modified APIs. I'll ask over on python-dev and see what 
they say.

- test_extract_without_numeric_owner only works if the user named 'root' has 
uid = 0 (same for gid). This is a different test than what 
test_os.root_in_posix is doing. I think it's best to leave it as-is, although 
I've added a comment and reduced the scope of the skip to just this one test.

- I reformatted the tests to stay within 80 characters, and I think it also 
made them more legible.

- I'm not sure what you mean by your last point. I believe I use True as it is 
elsewhere in that module and its documentation. And None doesn't make any sense 
to me as a parameter value for this.

--
Added file: 
http://bugs.python.org/file38998/tarfile-numeric-owner-with-tests-4.diff

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



[issue3353] make built-in tokenizer available via Python C API

2015-04-14 Thread Dustin J. Mitchell

Dustin J. Mitchell added the comment:

New:
 - rename token symbols in token.h with a PYTOK_ prefix
 - include an example of using the PyTokenizer functions
 - address minor review comments

--
Added file: http://bugs.python.org/file38999/issue3353-2.patch

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



[issue1648890] HP-UX: ld -Wl,+b...

2015-04-14 Thread A.M. Kuchling

A.M. Kuchling added the comment:

No activity on this issue since 2007; HP-UX 11.23 was released in 2003. Closing 
as outdated.

--
nosy: +akuchling
resolution:  - out of date
stage:  - resolved
status: open - closed

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



[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Joe Jevnik

Joe Jevnik added the comment:

Has the test passed or is it still hung? Also, I guess this means that the 
tuple is over-allocating, maybe I need to revise the memory assumptions to 
account for the growth algorithm.

--

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



[issue9859] Add tests to verify API match of modules with 2 implementations

2015-04-14 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch! I've reviewed it on Rietveld: 
http://bugs.python.org/review/9859/

--
nosy: +berker.peksag
stage: needs patch - patch review
versions: +Python 3.5 -Python 3.2

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



[issue18166] 'value' attribute for ValueError

2015-04-14 Thread Ofer Schwarz

Ofer Schwarz added the comment:

There's actually no advantage for a weakref here, since the exception object 
already holds an indirect reference to all the raising frame's locals through 
__traceback__.

--
nosy: +blackfawn

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



[issue21039] pathlib strips trailing slash

2015-04-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I beg to disagree :) Pathlib tries to find a compromise between 
user-friendliness and power, but it's definitely more on the user-friendliness 
side than, say, the os module APIs. In other words, I don't think it's a 
problem if not all details of OS semantics can be encoded in Path objects. In 
practice, the situations where it's useful to make a difference between a 
slash-ending path and a non-slash-ending path are few and far between.

There are all kinds of small API decisions which have to be revisited if we 
allow trailing slashes to be significant. For example, what should be the last 
component of the path? The component just before the ending slash, or the empty 
string? What if slice off the last part? What is the name, stem, suffix? etc.

A path, conceptually, is just that: a sequence of names designating the nodes 
in the filesystem tree that you walk to get to the terminal node. If you start 
making trailing slash significants then this simple, intuitive abstraction 
breaks and things become much more awkward to understand.

--

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



[issue22631] Feature Request CAN_RAW_FD_FRAMES

2015-04-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

It is a new feature.

--

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



[issue22631] Feature Request CAN_RAW_FD_FRAMES

2015-04-14 Thread Larry Hastings

Larry Hastings added the comment:

Benjamin, would you like CAN_RAW_FD_FRAMES in the next 2.7?

--
nosy: +benjamin.peterson

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



[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Joe Jevnik

Joe Jevnik added the comment:

I think that the idea is not to get as close to the limit as possible but just 
to hard cap the memory usage of the test suite so that it doesn't get 
oom-killed. twouters, does this sound correct? Also, I think that this means 
that the new decorator is reporting a proper size hint.

--

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



[issue23952] Document the 'maxlen' member of the cgi module

2015-04-14 Thread Rob King

New submission from Rob King:

The cgi module has a global variable, 'maxlen', that specifies the maximum 
length of a POST request. By default, this limit is 0, meaning an unlimited 
POST request size.

Having an unlimited default opens up CGI scripts to resource-exhaustion 
attacks. Setting the maxlen variable to a nonzero integer solves this problem, 
but this fix is not in the official documentation - neither the reference 
manual nor the module's docstring.

I would recommend augmenting the module's docstring with the following 
statement:

The maxlen variable can be set to an integer indicating the maximum size of a 
POST request. POST requests larger than this size will result in a ValueError 
being raised during parsing. The default value of this variable is 0, meaning 
the request size is unlimited.

--
messages: 240965
nosy: deadpixi
priority: normal
severity: normal
status: open
title: Document the 'maxlen' member of the cgi module
versions: Python 3.4, Python 3.5, Python 3.6

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



[issue23952] Document the 'maxlen' member of the cgi module

2015-04-14 Thread Rob King

Changes by Rob King jk...@deadpixi.com:


--
versions: +Python 2.7, Python 3.2, Python 3.3

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



[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-14 Thread Ulaga Nathan Mahadevan

New submission from Ulaga Nathan Mahadevan:

data = ['David',50,91.1,(2012,12,21)]
print (Data = ,data)
name,shares,price,date,value = data

print(Name = ,name, , no of shares = ,shares,, unit price = ,price,, 
date of purchase = ,date)

After running the script
Data =  ['David', 50, 91.1, (2012, 12, 21)]
name,shares,price,date,value = data
ValueError: need more than 4 values to unpack

There are only 4 values to unback and not more than 4. The given number of 
elements are 4 and so required number is 4. The error message is not clear or 
confusing.

--
messages: 240935
nosy: ulaganathanm...@gmail.com
priority: normal
severity: normal
status: open
title: Number of elements display in error message is wrong while unpacking in 
traceback
type: enhancement
versions: Python 3.2

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



[issue5438] test_bigmem.test_from_2G_generator uses more memory than expected

2015-04-14 Thread Steve Dower

Steve Dower added the comment:

It's passed. There was no memory usage increase from that point, but after 
about 20 minutes it completed successfully.

All the tests passed on Ubuntu, but again, they didn't really fill up RAM - 
50GB looks like the high point.

--

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



[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-14 Thread Skip Montanaro

Skip Montanaro added the comment:

I'm not sure I understand the problem is. You have a list containing four 
values, and try to unpack it into five individual objects. There is no element 
in the list data to assign the name value.

--
nosy: +skip.montanaro

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



[issue21833] Fix unicodeless build of Python

2015-04-14 Thread A.M. Kuchling

A.M. Kuchling added the comment:

The subsequent discussion didn't arrive at a consensus. Most commenters wanted 
to drop --disable-unicode support and thought these patches were too extensive 
for 2.7, but Serhiy noted that running the tests with --disable-unicode turns 
up problems in the Unicode enabled code.  There was no pronouncement from the 
BDFL or a release manager.

The python-dev discussion is archived at 
https://mail.python.org/pipermail/python-dev/2014-June/135181.html

--
nosy: +akuchling

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



[issue22631] Feature Request CAN_RAW_FD_FRAMES

2015-04-14 Thread Larry Hastings

Larry Hastings added the comment:

Isn't this a new feature?  2.7 is maybe fair game, but 3.4 arguably is not.

It should be odd to have a field marked in the documentation as New in 3.4.4.

--

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



[issue22211] Remove VMS specific code in expat.h xmlrole.h

2015-04-14 Thread A.M. Kuchling

Changes by A.M. Kuchling a...@amk.ca:


--
nosy: +akuchling, fdrake

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



[issue9859] Add tests to verify API match of modules with 2 implementations

2015-04-14 Thread Daniel Stutzbach

Daniel Stutzbach added the comment:

With regret, I have not had time to work on patches and am unlikely to have 
time in the near future.

--

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



[issue17751] ctypes/test/test_macholib.py fails when run from the installed location

2015-04-14 Thread Marin Dantchev

Marin Dantchev added the comment:

@Zachary - while that is doable, ctypes.macholib.dyld seems to be available in 
the dev version of 3.5.

 import ctypes.macholib.dyld
 ctypes.macholib.dyld.__file__
'/home/morkov/dev/cpython/Lib/ctypes/macholib/dyld.py'
 from ctypes.macholib.dyld import dyld_find
 dyld_find
function dyld_find at 0x7fc36c558560

The test itself is skipped correctly if I run on Linux.

/home/morkov/dev/cpython/python ./Lib/ctypes/test/test_macholib.py
s
--
Ran 1 test in 0.001s

OK (skipped=1)

--

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



[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-14 Thread Steven D'Aprano

Steven D'Aprano added the comment:

The error message isn't wrong, just hard to understand. In your example, when 
it says need more than 4 values to unpack it means that it got four values on 
the right hand side, and needs five (which is more than four) to match what is 
on the left.

When the error is the other way around, with too few targets on the left, the 
error message is more understandable:

a, b = (1, 2, 3)

gives

ValueError: too many values to unpack (expected 2).

Your example should be fixed to something similar. I think it would be useful 
for both cases to report expected %d, got %d rather than just one or the 
other.


By the way, I don't think that changes to error messages will be back-ported to 
old versions like 3.2, but only added to the latest version.

--
keywords: +easy
nosy: +steven.daprano

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



[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2015-04-14 Thread Michael Schurter

Changes by Michael Schurter m...@schmichael.com:


--
nosy:  -schmichael

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



[issue23342] run() - unified high-level interface for subprocess

2015-04-14 Thread Thomas Kluyver

Thomas Kluyver added the comment:

6a following in-person review with Gregory:

- Reapplied to the updated codebase.
- Docs: mention the older functions near the top, because they'll still be 
important for some time.
- Docs: Be explicit that combined stdout/stderr goes in stdout attribute.
- Various improvements to code style

--
Added file: http://bugs.python.org/file38997/subprocess_run6a.patch

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



[issue16405] Explain how to set up the whitespace commit hook locally

2015-04-14 Thread Ned Deily

Ned Deily added the comment:

The wording of the patch looks good to me other than one issue: which hook to 
use.  I notice Nick's suggestion is to use the hg commit hook.  But in the 
comments for the checkwhitespace hook itself, pretxncommit is the suggested 
hook.  The difference between them, AFAIK, is that the commit hook is 
executed after the changeset has been created and applied in the local repo, 
while the pretxncommit hook is called before the changeset is committed and 
can thus abort the commit.  So in either case, you'll see the warning message 
from the hook if the changeset has extraneous white space but when using the 
commit hook the changeset will be applied anyway and, to fix it, you either 
have to strip it or commit a fix in an additional changeset.  There may be some 
workflows where using commit is a better choice (like when using mq) but I 
think in general using the pretxncommit hook is the better choice.

Opinions?

https://hg.python.org/hooks/file/default/checkwhitespace.py#l10

--
nosy: +ned.deily

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



[issue23944] Argument Clinic: wrap impl's declaration if it's too long

2015-04-14 Thread Larry Hastings

Larry Hastings added the comment:

That's AMAZING, you mean the web site knew how to do that THE WHOLE TIME?

--

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



[issue9014] Incorrect documentation of the PyObject_HEAD macro

2015-04-14 Thread A.M. Kuchling

A.M. Kuchling added the comment:

The markup is not a huge deal, I think.  I also did some bits of rewording that 
can probably be ignored.  The TRACE_REFS question is the only important one, I 
think.

--

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



[issue9014] Incorrect documentation of the PyObject_HEAD macro

2015-04-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 752ea0acc37e by Gregory P. Smith in branch '3.4':
issue9014: Include more formatting on :c:type:`PyObject` etc.
https://hg.python.org/cpython/rev/752ea0acc37e

New changeset 78a2d1169be1 by Gregory P. Smith in branch 'default':
issue9014: Include more formatting on :c:type:`PyObject` etc.
https://hg.python.org/cpython/rev/78a2d1169be1

--

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



[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2015-04-14 Thread Michael McFadden

Michael McFadden added the comment:

I have a patch for moving script_helper as R. David suggested.

Here it is.

--
nosy: +flipmcf
Added file: 
http://bugs.python.org/file39003/iss9517_move_script_helpers_py.patch

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



[issue13472] devguide doesn’t list all build dependencies

2015-04-14 Thread Jeff Ramnani

Jeff Ramnani added the comment:

So, the devguide has been updated since this issue was opened.  The Quick Start 
section now has a link to build documentation, which includes information about 
build dependencies.  Is this sufficient to call this bug closed?

--
nosy: +jramnani

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



  1   2   3   >