[issue23248] Update ssl data

2015-01-16 Thread Antoine Pitrou

New submission from Antoine Pitrou:

Amusingly OpenSSL has removed some error codes, so perhaps we should only apply 
this to the default branch.

--
components: Library (Lib)
files: update_ssl_data.patch
keywords: patch
messages: 234114
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou
priority: normal
severity: normal
stage: patch review
status: open
title: Update ssl data
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file37722/update_ssl_data.patch

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



[issue15955] gzip, bz2, lzma: add option to limit output size

2015-01-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I've posted a review of the latest lzma decompressor patch. I think it'll be 
able to go in once the comments are addressed.

--

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



[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-01-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The patch would at least need to add a unit test in order to avoid regressions.

--
nosy: +pitrou

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



[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2015-01-16 Thread Antoine Pitrou

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


--
nosy: +davin

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



[issue21354] PyCFunction_New no longer exposed by python DLL breaking bdist_wininst installers

2015-01-16 Thread Antoine Pitrou

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


--
nosy: +steve.dower, tim.golden, zach.ware

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



[issue1103213] Adding the missing socket.recvall() method

2015-01-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I'm frankly not sure why this is useful. If you want a guaranteed read size you 
should use the buffered layer - i.e. socket.makefile(). No need to complicate 
the raw socket implementation.

--
nosy: +pitrou

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



[issue20544] Use specific asserts in operator tests

2015-01-16 Thread Antoine Pitrou

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


--
assignee:  - serhiy.storchaka

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Patch looks good to me. For further efficiency, addresses could be pickled as 
ints (but beware of interfaces and networks).

--
nosy: +pitrou

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



[issue23249] test_win32 fails on aarch64

2015-01-16 Thread Robert Kuska

New submission from Robert Kuska:

Original bug report at https://bugzilla.redhat.com/show_bug.cgi?id=1174037
Additional informations at Issue #20160

Note that this was reproduced not only with separate libffi package but also 
with libffi bundled in python.
Reproduced with Python 2.7.9 but same issue should exists also in 3.4.x.

Richard Henderson provided fix in original bug report at bugzilla (attached).

Summary:
==
FAIL: test_struct_by_value (ctypes.test.test_win32.Structures)
--
Traceback (most recent call last):
  File /builddir/build/BUILD/Python-2.7.9/Lib/ctypes/test/test_win32.py, line 
112, in test_struct_by_value
self.assertEqual(ret.left, left.value)
AssertionError: -200 != 10
--

(gdb) b ReturnRect
Function ReturnRect not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (ReturnRect) pending.
(gdb) run test_win32.py
Starting program: /usr/bin/python test_win32.py
Missing separate debuginfos, use: debuginfo-install 
glibc-2.20.90-12.fc22.aarch64
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib64/libthread_db.so.1.

Breakpoint 1, ReturnRect (i=0, ar=..., br=0x59b750, cp=..., dr=..., 
er=0x59b750, fp=..., 
gr=error reading variable: Cannot access memory at address 
0x)
at /usr/src/debug/Python-2.7.9/Modules/_ctypes/_ctypes_test.c:552
552 if (ar.left + br-left + dr.left + er-left + gr.left != left * 5)
(gdb) p fp
$1 = {x = 4396722194992, y = 5879632}
(gdb) p cp
$2 = {x = 15, y = 25}
(gdb)

Consider to apply a patch or update bundled libffi.

--
components: ctypes
files: libffi-henderson
messages: 234119
nosy: rkuska
priority: normal
severity: normal
status: open
title: test_win32 fails on aarch64
type: crash
versions: Python 2.7, Python 3.4
Added file: http://bugs.python.org/file37723/libffi-henderson

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



[issue23249] test_win32 fails on aarch64

2015-01-16 Thread Robert Kuska

Changes by Robert Kuska rku...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file37724/libffi-mattip.patch

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



[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-01-16 Thread Robert Kuska

Robert Kuska added the comment:

I have created #23249.

--

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file37726/ipaddress_pickle_3.patch

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Removed file: http://bugs.python.org/file37725/ipaddress_lightweight_2.patch

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Removed file: http://bugs.python.org/file37726/ipaddress_pickle_3.patch

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file37728/ipaddress_pickle_3.patch

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


Added file: http://bugs.python.org/file37727/ipaddress_pickle_2.patch

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



[issue20132] Many incremental codecs don’t handle fragmented data

2015-01-16 Thread Martin Panter

Martin Panter added the comment:

There is a flaw with inheriting the readline() method in my patch, and I have 
decided to give up fixing the StreamReader classes. I did update the 
documentation in my copy of the patch based on Marc-Andre Lemburg’s feedback if 
anyone is interested in it, otherwise I am going to focus on some of the 
incremental codecs now.

--

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

ipaddress_pickle_3.patch breaks one test (testMissingAddressVersion). Is this 
test needed?

--

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't understand what the test is for. I think it's safe it's remove it.

--

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



[issue23249] test_win32 fails on aarch64

2015-01-16 Thread Matěj Stuchlík

Changes by Matěj Stuchlík matej.stuch...@gmail.com:


--
nosy: +sYnfo

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



[issue22995] Restrict default pickleability

2015-01-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

How many cases does the patch catch?

--

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



[issue1103213] Adding the missing socket.recvall() method

2015-01-16 Thread STINNER Victor

STINNER Victor added the comment:

The patch uses the flag MSG_WAITALL for recv() if available. Extract of the 
manual page:

   MSG_WAITALL (since Linux 2.2)
  This flag requests that  the  operation  block  until  the  full
  request  is  satisfied.  However, the call may still return less
  data than requested if a signal is caught, an error  or  discon-
  nect  occurs,  or the next data to be received is of a different
  type than that returned.

It looks interesting, but it doesn't guarantee that you will always get exactly 
the expected size. You still have to call again recv() to get more data if a 
signal was received.


Jean-Paul Calderone wrote:
 Since MSG_WAITALL is already exposed to Python (when the underlying platform 
 provides it), I wonder if this could all be implemented more simply in pure 
 Python.  Can you elaborate on the motivation to use C?

sendall() is implemented in C while it would be possible to implement it in 
Python. The same rationale can be used on a large part of the stdlib :-) (The 
io module is implemented in Python in Python 2.6!)

The C gives you a full control on the GIL, signal handle, and it might be 
faster.


Antoine Pitrou wrote:
 I'm frankly not sure why this is useful.

recvall() allows to easily fix existing code: just replace recv() with 
recvall(), no need to refactor code to call makefile() which has a different 
API (ex: read/recv, write/send).

The addition is small and well defined.

--

About the exception: asyncio.StreamReader.read_exactly() raises an 
IncompleteReadError which contains the read bytes and inherits from EOFError: 
see
https://docs.python.org/dev/library/asyncio-stream.html#asyncio.StreamReader.readexactly
and
https://docs.python.org/dev/library/asyncio-stream.html#asyncio.IncompleteReadError

The following issue discussed the design on this exception in asyncio:
https://code.google.com/p/tulip/issues/detail?id=111

http.client uses an IncompleteRead (which inherits from HTTPException):
https://docs.python.org/dev/library/http.client.html#http.client.IncompleteRead

--

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



[issue23013] Tweak wording for importlib.util.LazyLoader in regards to Loader.create_module()

2015-01-16 Thread Brett Cannon

Brett Cannon added the comment:

Change went in through making create_module() required.

--
resolution:  - fixed
status: open - closed

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



[issue21581] Consider dropping importlib.abc.Loader.create_module()

2015-01-16 Thread Brett Cannon

Brett Cannon added the comment:

create_module() is now slated to be required in Python 3.6.

--
resolution:  - out of date
status: open - closed

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-16 Thread Steve Dower

Steve Dower added the comment:

Setuptools has the code to find the compiler package. We deliberately put it 
there instead of in distutils to make sure more people would get it.

I should probably port the extra check into 2.7.10, but the immediate fix is to 
import setuptools.

--

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



[issue23211] test.test_logging.SMTPHandlerTest failing on Snow Leopard

2015-01-16 Thread Vinay Sajip

Vinay Sajip added the comment:

No objections from me.

--

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



[issue22995] Restrict default pickleability

2015-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

All public classes not designed for pickling explicitly. I tested only 
operator.methodcaller, mmap.mmap, sqlite3 classes (Connect, Cursor, Row), 
_socket.socket, select.epoll, _csv.Dialect, but should be more. Instances of 
these classes can be pickled, but unpickling either raise an exception 
(usually TypeError), or returns default or underinitialized object.

For other classes the patch changes raised exception type. E.g. pickling 
zlib.compressobj() raised

_pickle.PicklingError: Can't pickle class 'zlib.Compress': attribute lookup 
Compress on zlib failed

and with the patch it raises

TypeError: can't pickle zlib.Compress objects

--

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



[issue23250] http.cookies HttpOnly attribute does not use suggested case-style of HTTP standard

2015-01-16 Thread Jon Dufresne

New submission from Jon Dufresne:

See http://tools.ietf.org/html/rfc6265#section-5.2.6

Relevant section:

---

5.2.6. The HttpOnly Attribute

If the attribute-name case-insensitively matches the string HttpOnly, the user 
agent MUST append an attribute to the cookie-attribute-list with an 
attribute-name of HttpOnly and an empty attribute-value.

...

If the cookie-attribute-list contains an attribute with an attribute-name of 
HttpOnly, set the cookie's http-only-flag to true. Otherwise, set the 
cookie's http-only-flag to false.

---

http.cookies creates this attribute as `httponly` not `HttpOnly`.

It is true, when interpreted by the user agent, this attribute is case 
insensitive, but it seems odd that Python would go out of its way to purposely 
use a different case then stated in the standard. When looking at other web 
technologies, the case used in the standard is most typical. The examples in 
the standard also use the `HttpOnly` style.

(Same applies to the Secure flag.)

--
components: Library (Lib)
messages: 234132
nosy: jdufresne
priority: normal
severity: normal
status: open
title: http.cookies HttpOnly attribute does not use suggested case-style of 
HTTP standard
type: behavior
versions: Python 3.5

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



[issue23250] http.cookies HttpOnly attribute does not use suggested case-style of HTTP standard

2015-01-16 Thread Jon Dufresne

Changes by Jon Dufresne jon.dufre...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file37729/http-only-case.patch

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



[issue23233] TypeError in ./setup.py

2015-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

On one of my computer on one workspace it is reproduced constantly, but I don't 
know how to reproduce it from clean checkout.

--

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



[issue23133] Pickling of ipaddress classes

2015-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
assignee:  - serhiy.storchaka

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



[issue23250] http.cookies HttpOnly attribute does not use suggested case-style of HTTP standard

2015-01-16 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +r.david.murray
stage:  - commit review
versions: +Python 3.4

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



[issue23095] asyncio: race condition when cancelling a _WaitHandleFuture

2015-01-16 Thread STINNER Victor

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


--
title: asyncio: race condition in IocpProactor.wait_for_handle() - asyncio: 
race condition when cancelling a _WaitHandleFuture

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



[issue23095] asyncio: race condition when cancelling a _WaitHandleFuture

2015-01-16 Thread STINNER Victor

STINNER Victor added the comment:

The race condition occurs when _WaitHandleFuture().cancel() is called. This 
object is created by IocpProactor.wait_for_handle().

_WaitHandleFuture().cancel() is only called by 4 tests:

- test_cancel_post_init()
- test_cancel_make_subprocess_transport_exec
- test_wait_for_handle
- test_wait_for_handle_cancel

It looks like the GetQueuedCompletionStatus() returned an unexpected event 
error is logged when test_wait_for_handle() and/or 
test_wait_for_handle_cancel() is executed(). Disabling these tests is enough to 
workaround this issue.

Using Tulip, use python3 runtests.py -r to reproduce the issue. You may have 
to run this command multiple times to see the error, the bug is random.

--

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



[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread Akira Li

New submission from Akira Li:

There is the corresponding StackOverflow question with 60K view 
time.sleep — sleeps thread or process? [1]

The documentation patch is attached.

[1] http://stackoverflow.com/questions/92928/time-sleep-sleeps-thread-or-process

--
assignee: docs@python
components: Documentation
files: docs-time.sleep-other-threads-are-not-blocked.diff
keywords: patch
messages: 234135
nosy: akira, docs@python
priority: normal
severity: normal
status: open
title: mention in time.sleep() docs that it does not block other Python threads
type: enhancement
versions: Python 3.5
Added file: 
http://bugs.python.org/file37730/docs-time.sleep-other-threads-are-not-blocked.diff

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



[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread R. David Murray

R. David Murray added the comment:

Can you re-upload the patch without reflowing the paragraph?  I think the only 
thing needed is the addition of the word thread, to mirror the equivalent unix 
man page phrasing, and I think that's what you've done, but I can't easily tell 
from the provided patch.

--
nosy: +r.david.murray

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-16 Thread Gregory Szorc

Gregory Szorc added the comment:

Thanks, Steve.

The package I was trying to build has its setup.py importing setup from 
distutils, not setuptools. I'll see about porting them to the future.

For posterity, https://bitbucket.org/pypa/setuptools/issue/258, which was first 
released in setuptools 6.0.

--

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



[issue22992] Adding a git developer's guide to Mercurial to devguide

2015-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 51c89a0c30b4 by Brett Cannon in branch 'default':
Issue #22992: A git developer's guide to hg.
https://hg.python.org/devguide/rev/51c89a0c30b4

--
nosy: +python-dev

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



[issue22992] Adding a git developer's guide to Mercurial to devguide

2015-01-16 Thread Brett Cannon

Brett Cannon added the comment:

Thanks for the hard work, Demian! I don't remember how often the devguide is 
updated online, but it should hopefully be no longer than a day (probably more 
like an hour).

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

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-01-16 Thread Steve Dower

Steve Dower added the comment:

FWIW, at some point I will need to do some serious work on this code for Python 
3.5, so I'll certainly take your suggestions into account there. But I won't be 
doing the same for old versions of Python - at most 2.7 may get a check for the 
extra registry key, but 2.6 and 3.0-3.2 will still need to be using 
setuptools=6.0 (which 2.7.10 will ship with).

Also, pip forces setuptools onto packages whether they like it or not, so pip 
installs should always build. Because it's a monkeypatch, import setuptools 
is sufficient to port old setup.py files.

All together, there doesn't seem to be an urgent need to get this into the core 
release. If someone comes up with a simple patch I'll happily review and apply 
it (and Jason will want a setuptools patch to skip the monkeypatch there), but 
I need to spend my own dev time on the next release.

--

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



[issue22619] Possible implementation of negative limit for traceback functions

2015-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your patches Dmitry.

But I think that the code can be made simpler. Here is a patch which refactors 
extracting code. It splits the code on few generators which do different tasks: 
iterate over tracebacks or frames linked list, limit the size of proceeded 
sequence, and generates required fields. Note that the behavior of 
extract_stack() with negative limit differs if sys.tracebacklimit is specified 
and less than the length of full traceback. Tests are changed too, now they 
test all combinations of the limit parameter and sys.tracebacklimit.

--
stage:  - patch review
Added file: http://bugs.python.org/file37731/traceback_negative_limit_2.patch

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



[issue14099] ZipFile.open() should not reopen the underlying file

2015-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your report Matt.

There is other problem. It is nowhere documented and newer granted and newer 
mentioned when ZipFile.open() was added, but file-like objects returned by 
ZipFile.open() could be read in different threads simultaneously. It makes 
sense because decompressors release GIL and parallel reading compressed file 
can has benefit.

It is easy to fix both issues (I prefer to do this in separate paths), but due 
to the overall complexity it is safer to withdraw committed changes in 
maintained releases and apply additional patches only in default branch.

--
stage:  - patch review
Added file: http://bugs.python.org/file37732/zipfile_tellable.patch

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



[issue14099] ZipFile.open() should not reopen the underlying file

2015-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
versions:  -Python 2.7, Python 3.4

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



[issue14099] ZipFile.open() should not reopen the underlying file

2015-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Adding locks almost not affects performance, because reads are done by relative 
large chunks and locking overhead is small.

--
Added file: http://bugs.python.org/file37733/zipfile_threadsafe.patch

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



[issue22286] Allow backslashreplace error handler to be used on input

2015-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you make a review Nick to get this feature in the first alpha.

--

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



[issue23252] Add support of writing to unseekable file in zipfile

2015-01-16 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

ZIP files can be created to transfer it via unseekable streams (pipes, 
sockets). Mercurial uses a workaround to write ZIP files right to wsgirequest, 
but this is possible only with writestr(). write() needs seek() to updated file 
size, compressed sized and CRC. However ZIP file format supports streamed data 
without writing sizes and CRC before file data. It is possible and desirable to 
add full support of unseekable output files in zipfile.

--
assignee: serhiy.storchaka
components: Library (Lib)
messages: 234145
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Add support of writing to unseekable file in zipfile
type: enhancement
versions: Python 3.5

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



[issue14099] ZipFile.open() should not reopen the underlying file

2015-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

See also issue23252.

--

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



[issue5309] distutils doesn't parallelize extension module compilation

2015-01-16 Thread Julian Taylor

Julian Taylor added the comment:

very nice, thanks for adding this.

coincidentally numpy added the same to numpy.distutils independently just a 
week later, though numpy also accepts an environment variable to set the number 
of jobs.
This is useful for e.g. pip installations where one does not control the 
command line. Also an environment variable allows parallel jobs in environments 
where it is not guaranteed that the feature is available. E.g. you could just 
put it into your .bashrc and when building with 3.5 it will just work and 2.7 
will not fail.

Is the naming --parallel/j already fixed? I'll change the numpy options to the 
same name then.

Please also add it to the release notes so the feature can be discovered easier.

--
nosy: +jtaylor

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



[issue23249] test_win32 fails on aarch64

2015-01-16 Thread STINNER Victor

STINNER Victor added the comment:

  libffi-3.2.1 was released on November 12, 2014. You can ftp it from 
 sourceware.org:/pub/libffi/libffi-3.2.1.tar.gz. 

Does this version include libffi-henderson patch?

--
nosy: +haypo

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



[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread Martin Panter

Martin Panter added the comment:

There is also a new sentence about the GIL at the end, but leaving the 
inbetween lines as they were would verify this

--
nosy: +vadmium

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



[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread Akira Li

Akira Li added the comment:

I do not understand. Have you tried to look at the patch in Rietveld?

The new content is highlighted in a darker green. It is clearly
visible. I've tested on Chromium, Firefox, Safari.

If I won't reflow then the first line will be longer than the
recommended 80 in devguide:

 The maximum line length is 80 characters for normal text, but
 tables, deeply indented code samples and long links may extend
 beyond that.

I've set *fill-column* to 80 in emacs. Do you suggest other settings?

Anyway, it doesn't affect how the final text is shown in a web
browser.

--

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



[issue23253] Delay-load ShellExecute[AW] in os.startfile

2015-01-16 Thread Steve Dower

New submission from Steve Dower:

Currently, pythonXY.dll has a dependency on shell32.dll solely for the 
os.startfile (Modules/posixmodule.c) function. This is quite a heavy dependency 
that many would rather not have to load (e.g. lightweight server 
configurations).

It would be nice to delay load the DLL and fail the operation if it is not 
available.

(This is as much a reminder for myself as anything else, but if someone wants 
to do it then feel free.)

--
components: Windows
messages: 234151
nosy: steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Delay-load ShellExecute[AW] in os.startfile
type: enhancement
versions: Python 3.5

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



[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread Andrew Svetlov

Andrew Svetlov added the comment:

I guess R. David Murray asked you to make the least minimal change,
even it breaks the formatting rules.

Paragraph reflow is safe when it's done by the Core Developer but it
requires additional check (and probably mercurial conflict errors on
merging the change with default branch if the last has changes also).

In your case I see no problems though, but the final decision is on R.
David Murray

On Sat, Jan 17, 2015 at 12:56 AM, Akira Li rep...@bugs.python.org wrote:

 Akira Li added the comment:

 I do not understand. Have you tried to look at the patch in Rietveld?

 The new content is highlighted in a darker green. It is clearly
 visible. I've tested on Chromium, Firefox, Safari.

 If I won't reflow then the first line will be longer than the
 recommended 80 in devguide:

 The maximum line length is 80 characters for normal text, but
 tables, deeply indented code samples and long links may extend
 beyond that.

 I've set *fill-column* to 80 in emacs. Do you suggest other settings?

 Anyway, it doesn't affect how the final text is shown in a web
 browser.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue23251
 ___
 ___
 docs mailing list
 d...@python.org
 https://mail.python.org/mailman/listinfo/docs

--
nosy: +asvetlov

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



[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread Martin Panter

Martin Panter added the comment:

What I have sometimes done in this situation is just break the overly long line 
into two short lines

--

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



[issue23250] http.cookies HttpOnly attribute does not use suggested case-style of HTTP standard

2015-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0d8380c493ad by Benjamin Peterson in branch '3.4':
capitialize HttpOnly and Secure as they appear in the standard and other 
impls (closes #23250)
https://hg.python.org/cpython/rev/0d8380c493ad

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

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



[issue22986] Improved handling of __class__ assignment

2015-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d3671e6ba106 by Benjamin Peterson in branch 'default':
merge 3.4 (#22986)
https://hg.python.org/cpython/rev/d3671e6ba106

--
nosy: +python-dev

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



[issue22986] Improved handling of __class__ assignment

2015-01-16 Thread Benjamin Peterson

Benjamin Peterson added the comment:

(That message should have gone to #23250.)

--

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



[issue1103213] Adding the missing socket.recvall() method

2015-01-16 Thread Irmen de Jong

Irmen de Jong added the comment:

I created the patch about 5 years ago and in the meantime a few things have 
happened:
- I've not touched C for a very long time now
- I've learned that MSG_WAITALL may be unreliable on certain systems, so any 
implementation of recvall depending on MSG_WAITALL may inexplicably fail on 
such systems
- I've been using a python implementation of a custom recv loop in Pyro4 for 
years
- it is unclear that a C implementation will provide a measurable performance 
benefit because I think most of the time is spent in the network I/O anyway, 
and the GIL is released when doing a normal recv (I hope?)

In other words, I will never follow up on my original C-based patch from 5 
years ago. I do still like the idea of having a reliable recvall in the stdlib 
instead of having to code a page long one in my own code.

--

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



[issue15745] Numerous utime ns tests fail on FreeBSD w/ ZFS (update: and NetBSD w/ FFS, Solaris w/ UFS)

2015-01-16 Thread Terry J. Reedy

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


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

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



[issue23251] mention in time.sleep() docs that it does not block other Python threads

2015-01-16 Thread R. David Murray

R. David Murray added the comment:

I actually didn't know that reitveld was smart enough to highlight just the 
text changes in a reflowed paragraph.

Nevertheless, for ease of looking at diff in the repository using the hg 
command (which is not that smart), I prefer to commit doc changes without the 
reflow, then do the reflow in a separate commit.  I don't know if other 
developers do this or not.

I think the patch is fine.

--
stage:  - commit review
versions: +Python 2.7, Python 3.4

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



[issue15608] Improve socketserver doc

2015-01-16 Thread Martin Panter

Martin Panter added the comment:

The post makes a bit more sense once you realize the dotted numbers refer to 
old section numbers (which have moved on now):

20.19.2 → “Server Objects” section
20.19.1 → “Server Creation Notes”

Regarding point 2: Instructions for the user to make a threading or forking are 
still relevant when using a subclass (e.g. HTTPServer) that does not come with 
a predefined subclass. However documenting which predefined classes exist would 
be nice too.

--
nosy: +vadmium

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



[issue14307] Make subclassing SocketServer simpler for non-blocking frameworks

2015-01-16 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

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



[issue1429] FD leak in SocketServer when request handler throws exception

2015-01-16 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
title: FD leak in SocketServer - FD leak in SocketServer when request handler 
throws exception

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

2015-01-16 Thread Martin Panter

Changes by Martin Panter vadmium...@gmail.com:


--
nosy: +vadmium

___
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



[issue15955] gzip, bz2, lzma: add option to limit output size

2015-01-16 Thread Martin Panter

Martin Panter added the comment:

Adding issue15955_lzma_r5.diff. Main changes from r4:

* Consistent Py_ssize_t type for data_size
* max_size → max_length to match Python parameter name
* Arranged for EOF handling to occur before, and instead of, saving the input 
buffer
* Removed my LZMAFile test

Nikolaus, I hope I am not getting in your way by updating this patch. I though 
I should take responsibility for removing the test I accidentally added in r4.

--
Added file: http://bugs.python.org/file37734/issue15955_lzma_r5.diff

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



[issue23254] Document how to close the TCPServer listening socket

2015-01-16 Thread Martin Panter

New submission from Martin Panter:

Running the example from the Asynchronous Mixins section of the “socketserver” 
documentation generates a ResourceWarning:

$ ./python -btWall ThreadedTCPServer.py
Server loop running in thread: Thread-1
Received: Thread-2: Hello World 1
Received: Thread-3: Hello World 2
Received: Thread-4: Hello World 3
sys:1: ResourceWarning: unclosed socket.socket fd=3, 
family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, 
laddr=('127.0.0.1', 43804)

There is a server_close() method mentioned in the doc string of the BaseServer 
class, so I assume it is meant to be part of the API. But there is no mention 
of it in the reference documentation.

I think server.server_close() should be documented, and called after 
server.shutdown() in the example. A further enhancement might be to turn 
BaseServer into a context manager, but I would be happy with using the existing 
server_close() method.

--
assignee: docs@python
components: Documentation
messages: 234161
nosy: docs@python, vadmium
priority: normal
severity: normal
status: open
title: Document how to close the TCPServer listening socket
type: enhancement

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



[issue23220] IDLE does not display \b backspace correctly.

2015-01-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Going back to msdos, there are graphic chars for all 256 bytes, including may 
single and double line box-drawing chars. Many In Idle, I see 5 solid white 
circles.  In FireFox, there are 5 empty circles (on dark background, which are 
chr(9689).  When I copy from FF back to Idle (3.4.2, Win7), there are 5 of 
each. I have no idea if the 9689s are on the site or added by FF.

Here is another difference.

 print('\x03')  # console
♥  # heart

 print('\x03')  # idle
  # lower left single line corner in Idle, box on FF

Trying to match console-Idle(tk) print output for control chars even on Windows 
would be tough.  
---

I have been planning to add a subsection of the doc that mentions known 
differences between console interpreter and Idle shell.  The result of print() 
is one of them.  Another print difference is that Idle displays many unicode 
chars that Windows replaces with boxes or ?s, depending on the codepage.

--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python, terry.reedy

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



[issue3566] httplib persistent connections violate MUST in RFC2616 sec 8.1.4.

2015-01-16 Thread Martin Panter

Martin Panter added the comment:

Okay here is a demonstration script, which does two tests: a short basic GET 
request, and a 2 MB POST request. Output for me is usually:

Platform: Linux-3.15.5-2-ARCH-x86_64-with-arch
Normal request: getresponse() raised BadStatusLine('',)
2 MB request: request() raised BrokenPipeError(32, 'Broken pipe'); errno=EPIPE

Sometimes I get a BadStatusLine even for the second request:

Platform: Linux-3.15.5-2-ARCH-x86_64-with-arch
Normal request: getresponse() raised BadStatusLine('',)
2 MB request: getresponse() raised BadStatusLine('',)

--
Added file: http://bugs.python.org/file37735/persistent-closing.py

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