[issue21878] wsgi.simple_server's wsgi.input readline waits forever for non-multipart/form-data

2014-06-28 Thread Robin Schoonover

New submission from Robin Schoonover:

In the reference WSGI server in wsgiref.simple_server, wsgi.input's readline() 
hangs if the request body does not actually contain any
newlines.

Consider the following (slightly silly) example:

from wsgiref.simple_server import make_server

def app(environ, start_response):
result = environ['wsgi.input'].readline()

# not reached...
start_response(200 OK, [(Content-Type, text/plain)])
return []

httpd = make_server('', 8000, app)
httpd.serve_forever()

And the following also silly request (the data kwarg makes it a
POST request):

from urllib.request import urlopen

req = urlopen(http://localhost:8000/;, data=b'some bytes')
print(req)

Normally this isn't a problem, as the reference server isn't intended
for production, and typically the only reason .readline() would be
used is with a request body formatted as multipart/form-data, which
uses ample newlines, including with the content boundaries.  However,
for other types of request bodies (such as application/x-www-form-urlencoded)
newlines often wouldn't appear, and using .readline() would wait forever for 
new input.

--
components: Library (Lib)
messages: 221774
nosy: rschoon
priority: normal
severity: normal
status: open
title: wsgi.simple_server's wsgi.input readline waits forever for 
non-multipart/form-data
type: behavior

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Nick Coghlan

Nick Coghlan added the comment:

For Python 3, I suggest tweaking the code to use shutil.which and see if that 
improves matters.

For Python 2, I'm inclined not to worry about it.

--

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Nick Coghlan

Nick Coghlan added the comment:

Skipping if the compiler isn't available is problematic, since that could 
reflect a real failure mode for the code.

--

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



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-28 Thread Jack Andrews

Jack Andrews added the comment:

I'm no longer working on this, but IIRC, my patch is not necessary and
there is no deficiency.

Ta, Jack

On Saturday, June 28, 2014, Mark Lawrence rep...@bugs.python.org wrote:


 Mark Lawrence added the comment:

 Does somebody want to propose a patch to take this forward, or can it be
 closed again, or what?

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

 ___
 Python tracker rep...@bugs.python.org javascript:;
 http://bugs.python.org/issue2571
 ___


--

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



[issue12808] Coverage of codecs.py

2014-06-28 Thread Walter Dörwald

Walter Dörwald added the comment:

The requirement that getstate() returns a (buffer, int) tuple has to do with 
the fact that for text streams seek() and tell() somehow have to take the state 
of the codec into account. See 
_pyio.TextIOWrapper.(seek|tell|_pack_cookie|_unpack_cookie).

However I can't remember the exact history of the specification.

--
nosy: +doerwalter

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



[issue21825] Embedding-Python example code from documentation crashes

2014-06-28 Thread Pat Le Cat

Pat Le Cat added the comment:

When working with the separately installed version of Python 3.4.1, which means 
by not using Py_SetPath() the embedding examples from your webpage work okay. 
So what's wrong with that function and why that allegedly missing module 
encoding that I cannot find anywhere but is obviously not missing when using 
the code without Py_SetPath()? Very confusing...

--

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



[issue21856] memoryview: test slick clamping

2014-06-28 Thread Stefan Krah

Stefan Krah added the comment:

Since the rewrite in 3.3 many memoryview tests are actually in test_buffer.py.

--

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



[issue21873] Tuple comparisons with NaNs are broken

2014-06-28 Thread akira

akira added the comment:

 (a, b)  (c, d) is more like: if a != c: return a  c ...

except CPython behaves (undocumented?) as:

  b  d if a is c or a == c else a  c

the difference is in the presence of `is` operator (identity
comparison instead of `__eq__`). `nan is nan` therefore `b  d` is
called and raises TypeError for `(nan, A())  (nan, A())` expression
where `a = c = nan`, `b = A()`, and `d = A()`.

But `(float(nan), A())  (float(nan), A())` is False (no
TypeError) because `a is not c` in this case and `a  c` is called
instead where `a = float('nan')`, `b = A()`, `c = float('nan')`, and
`d = A()`. Plus `(a, b)  (c, d)` evaluation is lazy (undocumented?)
i.e., once `a  c` determines the final result `b  d` is not called.

--

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



[issue21856] memoryview: test slick clamping

2014-06-28 Thread Stefan Krah

Stefan Krah added the comment:

And Terry is right, the actual slice clamping happens in
PySlice_GetIndicesEx(), which should always produce values
that are in the correct range.  Hence the tests focus on
slices that already are in the correct range.

I'm not sure if PySlice_GetIndicesEx() itself has tests somewhere.

--

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



[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-28 Thread Vladimir Iofik

Vladimir Iofik added the comment:

Finally I got environment and some time.
Attaching patch.

--
keywords: +patch
Added file: http://bugs.python.org/file35795/21652.patch

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



[issue21872] LZMA library sometimes fails to decompress a file

2014-06-28 Thread Esa Peuha

Esa Peuha added the comment:

This code

import _lzma
with open('22h_ticks_bad.bi5', 'rb') as f:
infile = f.read()
for i in range(8191, 8195):
decompressor = _lzma.LZMADecompressor()
first_out = decompressor.decompress(infile[:i])
first_len = len(first_out)
last_out = decompressor.decompress(infile[i:])
last_len = len(last_out)
print(i, first_len, first_len + last_len, decompressor.eof)

prints this

8191 36243 45480 True
8192 36251 45473 False
8193 36253 45475 False
8194 36260 45480 True

It seems to me that this is a subtle bug in liblzma; if the input stream to the 
incremental decompressor is broken at the wrong place, the internal state of 
the decompressor is corrupted. For this particular file, it happens when the 
break occurs after reading 8192 or 8193 bytes, and lzma.py happens to use a 
buffer of 8192 bytes. There is nothing wrong with the compressed file, since 
lzma.py decompresses it correctly if the buffer size is set to almost any other 
value.

--
nosy: +Esa.Peuha

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



[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-28 Thread Vladimir Iofik

Vladimir Iofik added the comment:

I have attached patch to #21652 which partly reverts patch applied in #9291. I 
think we'll have to add one more test for this case.

--

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



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Given my patch is not necessary and there is no deficiency. from Jack Andrews 
in msg221777 please close as not a bug.

--

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



[issue13354] tcpserver should document non-threaded long-living connections

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Am I barking up the wrong tree, or should the docs now refer to the new asyncio 
module aka Tulip when mentioning asynchronous behaviour?

--
nosy: +BreamoreBoy

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



[issue10402] sporadic test_bsddb3 failures

2014-06-28 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Closed as requested.

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

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



[issue1438480] shutil.move raises OSError when copystat fails

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

The patch would need changing to allow for the follow_symlinks parameter and 
the backward compatibility issues mention in msg141827.  Do we wait for an 
updated patch, close as won't fix or what?

--
nosy: +BreamoreBoy

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



[issue13670] Increase test coverage for pstats.py

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Andrea assuming that you get an answer to the question you posed in msg150292, 
will you follow up on this?

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

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



[issue10445] _ast py3k : add lineno back to args node

2014-06-28 Thread Claudiu Popa

Claudiu Popa added the comment:

It seems that this was actual the case for Python 3.2 and 3.3, but fixed in 
3.4. Unfortunately, it's too late now to add those fields back, since 3.2 and 
3.3 receives only security updates. So I guess this issue can be closed.

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

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



[issue13421] PyCFunction_* are not documented anywhere

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

ping.

--
nosy: +BreamoreBoy

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



[issue11279] test_posix and lack of id -G support - less noise required?

2014-06-28 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

I never saw this because I use GNU 'id' on my Solaris 10 machines. Taking care 
of this. Thanks for the report and the persistence :-)

--
assignee:  - jcea
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2

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



[issue9322] Don’t fail silently if ext_modules use absolute paths

2014-06-28 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

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



[issue13681] Aifc read compressed frames fix

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Oleg #13806 has been closed as fixed so can you take this issue forward?

--
nosy: +BreamoreBoy

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



[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-28 Thread Vladimir Iofik

Vladimir Iofik added the comment:

Test added.

--
keywords: +patch
Added file: http://bugs.python.org/file35796/21871.patch

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



[issue21856] memoryview: test slice clamping

2014-06-28 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
title: memoryview: test slick clamping - memoryview: test slice clamping

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



[issue21876] os.rename(src, dst) does nothing when src and dst files are hard-linked

2014-06-28 Thread R. David Murray

R. David Murray added the comment:

It may be a backward compatibility problem to change it, but although the os 
functions tend to be thin wrappers, we also try to be cross platform when 
possible and we tend to follow what the corresponding shell command does rather 
than what the posix API does when there is a conflict.

Clearly this case is a grey area, but it is worth thinking about at least.  
Perhaps the change could be made in the newer and more cross-platform replace.

--
nosy: +r.david.murray

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



[issue21856] memoryview: test slice clamping

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Seaching for PySlice_GetIndicesEx in .../test/*.py with Idle Find in Files 
did not turn up any hits. However, test.test_slice.test_indices() has several 
tests of clamping, including 2**100 in various combinations.  The use of 2**100 
was was added in #14794 to test successful removal of the Overflow that Victor 
requested. I don't see that there is any patch needed.  Victor, if you find a 
deficiency, reopen or open a new issue.

--
resolution:  - not a bug
status: open - closed

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



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Since Eric assigned this to himself, I will give him a chance to answer. I 
removed the 'easy' tag because it is not clear to me what the remaining issue 
is.

--

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



[issue5638] test_httpservers fails CGI tests if --enable-shared

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

David, Senthil, can either of you make any sense of this? Is the described 
configuration supported? Or should we close this?

--
nosy: +orsenthil, r.david.murray, terry.reedy

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



[issue14534] Add method to mark unittest.TestCases as do not run.

2014-06-28 Thread Victor Zhong

Victor Zhong added the comment:

Hi Zach,

I've pushed a fix here according to your suggestions:
https://bitbucket.org/hllowrld/cpython/commits/fe10b98717a23fd914c91d42dcca383d53e924a8

Please also find attached the diff.

--
hgrepos: +263
Added file: http://bugs.python.org/file35797/unnitest_do_not_run.diff

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



[issue11279] test_posix and lack of id -G support - less noise required?

2014-06-28 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4ef517041573 by Jesus Cea in branch '2.7':
Closes #11279: test_posix and lack of id -G support - less noise required? 
(Solaris)
http://hg.python.org/cpython/rev/4ef517041573

New changeset 6889fb276d87 by Jesus Cea in branch '3.4':
Closes #11279: test_posix and lack of id -G support - less noise required? 
(Solaris)
http://hg.python.org/cpython/rev/6889fb276d87

New changeset 54f94e753269 by Jesus Cea in branch 'default':
MERGE: Closes #11279: test_posix and lack of id -G support - less noise 
required? (Solaris)
http://hg.python.org/cpython/rev/54f94e753269

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

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I feel that conscientious users who test their installations should get a clean 
test. They cannot be expected to know that this is an 'expected failure' and 
therefore not really a failure.

Test_tools has the following, which indeed works to skip on installed 3.4.1 but 
not on built 3.4.1+.

if not sysconfig.is_python_build():
# XXX some installers do contain the tools, should we detect that
# and run the tests in that case too?
raise unittest.SkipTest('test irrelevant for an installed Python')

How about we decorate the two failing tests
   line 156, in test_optional_extension # or
   line 316, in test_get_outputs
with
@unittest.skipUnless(sysconfig.is_python_build(),
'test irrelevant for an installed Python')  # or modify message
?

--

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



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

After updating and rebuilding (32 bit VC express, on 64 bit Win 7), I get the 
same error as in msg210926, with or without -uall, even after turning my 
antivirus off.

  File F:\Python\dev\4\py34\lib\test\test_httpservers.py, line 310, in 
test_invalid_requests
self.check_status_and_reason(response, 501)
  File F:\Python\dev\4\py34\lib\test\test_httpservers.py, line 265, in 
check_status_and_reason
self.assertEqual(response.status, status)
AssertionError: 200 != 501

Is this a failure of the patch or a different issue?

--

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



[issue10850] inconsistent behavior concerning multiprocessing.manager.BaseManager._Server

2014-06-28 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
assignee:  - sbt

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



[issue9248] multiprocessing.pool: Proposal: waitforslot

2014-06-28 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Since there are no new features added to Python 2, this would be a Python 3 
only feature.

I think for Python 3 it is better to concentrate on developing 
concurrent.futures rather than multiprocessing.Pool.

--

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



[issue21779] test_multiprocessing_spawn fails when ran with -Werror

2014-06-28 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
assignee:  - sbt

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



[issue21664] multiprocessing leaks temporary directories pymp-xxx

2014-06-28 Thread Richard Oudkerk

Changes by Richard Oudkerk shibt...@gmail.com:


--
assignee:  - sbt

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



[issue5638] test_httpservers fails CGI tests if --enable-shared

2014-06-28 Thread Ned Deily

Ned Deily added the comment:

I don't see where any problems were fixed but I've verified that with current 
default that this case works correctly if you start the tests correctly as 
make test does.

LD_LIBRARY_PATH=$CWD ./python -m test ...

The cgi test cases create a temporary directory, set up a symlink for python 
using the value of sys.executable, which should be ./python, and the 
LD_LIBRARY_PATH environment variable (or equivalent on the platform) is 
inherited in the test cases.  I suppose you could run into trouble *if* there 
already is a Python shared library installed in the prefix location and on the 
platform, directories in LD_LIBRARY_PATH are not searched first.  If that's the 
case, then there's little Python can do and other tests would fail.  In such a 
situation, you would either have to install first or, for test purposes, use a 
temporary value for --prefix when running configure and make a test-only build.

--
nosy: +ned.deily
resolution:  - works for me
stage: test needed - resolved
status: open - closed

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



[issue13456] Providing a custom HTTPResponse class to HTTPConnection

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

ping.

--
nosy: +BreamoreBoy

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



[issue12500] Skip test_ssl.test_connect_ex() on connection error

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Victor would you like to follow up with your patch?

--
nosy: +BreamoreBoy

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



[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Ezio can you prepare a patch for this?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue13954] Add regrtest option to record test results to a file

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Brett I assume that you'd want to follow up on this.

--
nosy: +BreamoreBoy
type:  - enhancement
versions: +Python 3.5 -Python 3.3

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



[issue14235] test_cmd.py does not correctly call reload()

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

The patch has not been applied to the default or 3.4 branches.

--
nosy: +BreamoreBoy

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



[issue12790] doctest.testmod does not run tests in functools.partial functions

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Tim is this something you could take a look at please?

--
nosy: +BreamoreBoy, tim.peters

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



[issue9725] urllib.request.FancyURLopener won't connect to pages requiring username and password

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Senthil can you follow up on this please.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

A minor change: distutils has is own version of sysconfig*, which is already 
imported into disutils/tests/test_build_ext.py. It has '_python_build' instead 
of 'is_python_build'. With that change, the decorators work as expected to skip 
the tests on installed Windows 3.4.1 either when test_build_ext is run by 
itself as main or as part of test_distutils.

# Seems like a violation of DRY. According to hg revision history, (and 
visually comparing the two, some patches have been applied to just one, some to 
both.

--
stage:  - patch review

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



[issue12420] distutils tests fail if PATH is not defined

2014-06-28 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.5 -Python 3.3
Added file: http://bugs.python.org/file35798/distutils-12420.diff

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



[issue21878] wsgi.simple_server's wsgi.input read/readline waits forever in certain circumstances

2014-06-28 Thread Robin Schoonover

Robin Schoonover added the comment:

Issue also occurs if .read() is used with no size.

--
title: wsgi.simple_server's wsgi.input readline waits forever for 
non-multipart/form-data - wsgi.simple_server's wsgi.input read/readline waits 
forever in certain circumstances

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



[issue12808] Coverage of codecs.py

2014-06-28 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

The patch would have to be updated to 3.5 (part of it no longer applies), but 
other than that I think it's fine.

It may make sense to readd the comment for .getstate() to keep the state as 
simple as possible (The implementation should make sure that ``0`` is the most 
common state.), but without requiring a specific number, type, etc.

--

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



[issue1158490] locale fails if LANGUAGE has multiple locales

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

The words here 
https://docs.python.org/3/library/locale.html#locale.getdefaultlocale read in 
part envvars defaults to the search path used in GNU gettext; it must always 
contain the variable name 'LANG'..  I think this means that envvars should 
always contain 'LANG', even if the default is not used, but the code doesn't 
seem to need that.  If somebody can clarify this for me I'll submit a new patch.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

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



[issue6094] Python fails to build with Subversion 1.7

2014-06-28 Thread John O'Connor

John O'Connor added the comment:

I encountered the same problem w/ 2.7.7. 

Temporary workaround:
SVNVERSION=Unversioned directory ./configure
make
...

--
nosy: +jcon

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



[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

2014-06-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
keywords: +easy

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



[issue14812] Change file associations to not be a default installer feature

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Is the thinking behind this issue changed in any way by the implementation of 
PEP 397 Python launcher for Windows?

--
nosy: +BreamoreBoy

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



[issue828450] sdist generates bad MANIFEST on Windows

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Éric did you ever ask on distutils-sig if MANIFEST is meant to be 
cross-platform?

--
components:  -Distutils2, Windows
nosy: +BreamoreBoy, dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

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



[issue12640] test_ctypes seg fault (test_callback_register_double); armv7; gcc 4.5.1

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as out of date as we're now up to 2.7.7?

--
nosy: +BreamoreBoy

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



[issue6094] Python fails to build with Subversion 1.7

2014-06-28 Thread Ned Deily

Ned Deily added the comment:

Suman, Jon:  This issue was closed five years ago and the fixes for it have 
long been out in the field.  Comments on closed issues are likely to be 
overlooked and not acted on.  If you are having a current problem, you should 
open a new issue, documenting in particular what OS versions and shell you are 
using, the pertinent values (SVNVERSION, HGVERSION) from the generated 
Makefile, and the output from:

echo `LC_ALL=C echo Unversioned directory`

FWIW, I was unable to reproduce the failure on a different Unix platform.

--
nosy: +ned.deily

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



[issue9731] Add ABCMeta.has_methods and tests that use it

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a formal patch review with a view to committing as this issue is 
referenced from #9859.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9731
___
___
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

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Daniel do you intend putting forward a formal patch on this issue?  I'm asking 
as I think issue9858 is effectively completed and I've just asked for a formal 
patch review on Issue9731.

--
nosy: +BreamoreBoy

___
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



[issue8384] Better error message for executables not found

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Éric can you put this on your todo list if it's not already there?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

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



[issue13055] Distutils tries to handle null versions but fails

2014-06-28 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

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



[issue2661] Mapping tests cannot be passed by user implementations

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

@Walter/Raymond as there is still no patch for this issue do you want to leave 
it open just in case anybody wants to work on it, move it to langushing, close 
it or what?

--
nosy: +BreamoreBoy

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



[issue9960] test_structmembers fails on s390x (bigendian 64-bit): int/Py_ssize_t issue

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

I believe that the change in the later patch has already been applied to the 
2.7 branch.  If I'm correct can we close this please.

--
nosy: +BreamoreBoy

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



[issue21874] test_strptime fails on rhel/centos/fedora systems

2014-06-28 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +belopolsky, lemburg

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



[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2014-06-28 Thread 天一 何

天一 何 added the comment:

Confirmed in Python 3.4.1.

--
nosy: +天一.何
versions: +Python 3.4

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



[issue19003] email.generator.BytesGenerator corrupts data by changing line endings

2014-06-28 Thread 天一 何

天一 何 added the comment:

This patch added special behavior with MIMEApplication and may fix this issue.
Can be verified with test_email.

--
keywords: +patch
Added file: http://bugs.python.org/file35799/issue19003_email.patch

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



[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-28 Thread karl

karl added the comment:

I had the issue today. I needed to parse a date with the following format.

2014-04-04T23:59:00+09:00

and could not with strptime.

I see a discussion in March 2014 
http://code.activestate.com/lists/python-ideas/26883/ but no followup. 

For references:
http://www.w3.org/TR/NOTE-datetime
http://tools.ietf.org/html/rfc3339

--
nosy: +karlcow

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



[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-28 Thread karl

karl added the comment:

On closer inspection, Anders Hovmöller proposal doesn't work.
https://github.com/boxed/iso8601

At least for the microseconds part. 

In http://tools.ietf.org/html/rfc3339#section-5.6, the microsecond part is 
defined as:

time-secfrac= . 1*DIGIT

In http://www.w3.org/TR/NOTE-datetime, same thing:
 s= one or more digits representing a decimal fraction of a second

Anders considers it to be only six digits. It can be more or it can be less. :) 

Will comment on github too.

--

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



[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-28 Thread karl

karl added the comment:

Noticed some people doing the same thing

https://github.com/tonyg/python-rfc3339
http://home.blarg.net/~steveha/pyfeed.html
https://wiki.python.org/moin/WorkingWithTime

--

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