[issue24509] Undocumented features of asyncio: call_at, call_later

2015-06-25 Thread Марк Коренберг

Changes by Марк Коренберг socketp...@gmail.com:


--
assignee:  - docs@python
components: +Documentation, asyncio
nosy: +docs@python, gvanrossum, haypo, yselivanov
type:  - enhancement

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



[issue24509] Undocumented features of asyncio: call_at, call_later

2015-06-25 Thread Марк Коренберг

New submission from Марк Коренберг:

These function returns handle, so, registered callback can be cancelled.

--
messages: 245803
nosy: mmarkk
priority: normal
severity: normal
status: open
title: Undocumented features of asyncio: call_at, call_later
versions: Python 3.6

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



[issue24509] Undocumented features of asyncio: call_at, call_later

2015-06-25 Thread STINNER Victor

STINNER Victor added the comment:

Documentatin of call_soon() and call_later() contain the sentence An instance 
of asyncio.Handle is returned. with a link to Handle which shows the cancel() 
method:

https://docs.python.org/dev/library/asyncio-eventloop.html#asyncio.BaseEventLoop.call_soon

https://docs.python.org/dev/library/asyncio-eventloop.html#asyncio.BaseEventLoop.call_later

Can you please suggest a new sentence to explain that a Handle can be cancelled?

--

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



[issue23684] urlparse() documentation does not account for default scheme

2015-06-25 Thread Berker Peksag

Berker Peksag added the comment:

Thanks Martin.

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

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



[issue24496] Non-idiomatic examples in gzip docs

2015-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 10eea15880db by Berker Peksag in branch '2.7':
Issue #24496: Backport gzip examples to Python 2.
https://hg.python.org/cpython/rev/10eea15880db

--
nosy: +python-dev

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



[issue19065] sqlite3 timestamp adapter chokes on timezones

2015-06-25 Thread Jacques-D. Piguet

Jacques-D. Piguet added the comment:

I just hit the problem in Python 2.7.
The patch given here is not applicable due to missing class datetime.timezone 
in Python before 3.2.

Question 1: when will the patch be applied in Python 3?
Question 2: any chance to get a solution in Python 2?

--
nosy: +jacques-piguet
type: enhancement - crash

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



[issue24508] Backport 3.5's Windows build project files to 2.7

2015-06-25 Thread Steve Dower

Steve Dower added the comment:

I'll try out the changes when I get a bit of time today or tomorrow and decide 
then what I'll do.

msi.py doesn't actually build the projects AFAIK, so it's probably okay. It 
might try to read them to get paths though.

--

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



[issue24503] csv.writer fails when within csv.reader

2015-06-25 Thread Skip Montanaro

Skip Montanaro added the comment:

@ezzieyguywuf - Can you provide an example of a non-empty input.csv which fails 
for you? Otherwise, I'd have to agree with @josh.r and @vadmium that it's 
working as it should.

--
nosy: +skip.montanaro

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



[issue19111] 2to3 should remove from future_builtins import *

2015-06-25 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Ah, my mistake. Apologies.

--

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



[issue18857] urlencode of a None value uses the string 'None'

2015-06-25 Thread R. David Murray

R. David Murray added the comment:

I see no reason for this issue to be open.  As suggested on the linked bug, the 
value should be passed as an empty string (which will produce, eg 
foo=a='1', which is the correct format for such a parameter.  Unless 
someone can point to a real web server that does something different with 
foo than with foo=, there is no reason to make a change to Python.

--
status: open - closed

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



[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2015-06-25 Thread David Watson

David Watson added the comment:

I've updated the ASCII/surrogateescape patches in line with
various changes to Python since I posted them.

return-ascii-surrogateescape-2015-06-25.diff incorporates the
ascii-surrogateescape and uname-surrogateescape patches, and
accept-ascii-surrogateescape-2015-06-25.diff corresponds to the
try-surrogateescape-first patch.  Neither patch touches
gethostname() on Windows.

Python's existing code now has a fast path for ASCII-only strings
which passes them through unchanged (Unicode - ASCII), so in
order not to slow down processing of valid IDNs, the latter patch
now effectively tries encodings in the order

   ASCII/strict (existing code, fast path)
   IDNA/strict (existing code)
   ASCII/surrogateescape (added by patch)

rather than the previous

   ASCII/surrogateescape
   IDNA/strict

This doesn't change the behaviour of the patch, since IDNA always
rejects strings containing surrogate codes, and either rejects
ASCII-only strings (e.g. when a label is longer than 63
characters) or passes them through unchanged.

These patches would at least allow getfqdn() to work in Almad's
example, but in that case the host also appears to be addressable
by the IDNA equivalent (xn--didejo-noas-1ic) of its Unicode
hostname (I haven't checked as I'm not a Windows user, but I
presume the UnicodeDecodeError came from gethost_common() in
socketmodule.c and hence the name lookup was successful), so it
would certainly be more helpful to return Unicode for non-ASCII
gethostbyaddr() results there, if they were guaranteed to map to
real IDNA hostnames in Windows environments.

(That isn't guaranteed in Unix environments of course, which is
why I'm still suggesting ASCII/surrogateescape for the general
case.)

--
Added file: 
http://bugs.python.org/file39812/return-ascii-surrogateescape-2015-06-25.diff
Added file: 
http://bugs.python.org/file39813/accept-ascii-surrogateescape-2015-06-25.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9377
___# HG changeset patch
# Parent  a497e7faa09b9a836983635b96adbf216a39e4f5
Decode hostnames as ASCII/surrogateescape (except
socket.gethostname() on Windows).

diff --git a/Doc/library/os.rst b/Doc/library/os.rst
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -587,12 +587,21 @@ process and user.
:func:`socket.gethostname`  or even
``socket.gethostbyaddr(socket.gethostname())``.
 
+   The strings are converted using the file system encoding and
+   the ``'surrogateescape'`` error handler, except for
+   :attr:`nodename`, which is converted as ASCII with the
+   ``'surrogateescape'`` error handler (see the :mod:`socket`
+   module documentation for details).
+
Availability: recent flavors of Unix.
 
.. versionchanged:: 3.3
   Return type changed from a tuple to a tuple-like object
   with named attributes.
 
+   .. versionchanged:: XXX
+  The :attr:`nodename` attribute is now converted as
+  ASCII/``surrogateescape``.
 
 .. function:: unsetenv(key)
 
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst
--- a/Doc/library/socket.rst
+++ b/Doc/library/socket.rst
@@ -124,6 +124,14 @@ differently into an actual IPv4/v6 addre
 resolution and/or the host configuration.  For deterministic behavior use a
 numeric address in *host* portion.
 
+When a hostname is returned by a system interface (except
+:func:`gethostname` on Windows), it is decoded into a string
+using the ``'ascii'`` codec and the ``'surrogateescape'`` error
+handler; this leaves ASCII bytes as ASCII, including IDNA
+ASCII-compatible encodings (see :mod:`encodings.idna`), but
+converts any non-ASCII bytes to the Unicode lone surrogate codes
+U+DC80...U+DCFF.
+
 All errors raise exceptions.  The normal exceptions for invalid argument types
 and out-of-memory conditions can be raised; starting from Python 3.3, errors
 related to socket or address semantics raise :exc:`OSError` or one of its
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4464,6 +4464,7 @@ os_uname_impl(PyModuleDef *module)
 struct utsname u;
 int res;
 PyObject *value;
+PyObject *o;
 
 Py_BEGIN_ALLOW_THREADS
 res = uname(u);
@@ -4486,7 +4487,13 @@ os_uname_impl(PyModuleDef *module)
 } \
 
 SET(0, u.sysname);
-SET(1, u.nodename);
+o = PyUnicode_DecodeASCII(u.nodename, strlen(u.nodename),
+  surrogateescape);
+if (!o) {
+Py_DECREF(value);
+return NULL;
+}
+PyStructSequence_SET_ITEM(value, 1, o);
 SET(2, u.release);
 SET(3, u.version);
 SET(4, u.machine);
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -895,6 +895,15 @@ static PyThread_type_lock netdb_lock;
 #endif
 
 
+/* Return the string representation for the given hostname. */
+
+static 

[issue23684] urlparse() documentation does not account for default scheme

2015-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 368db4b1ced9 by Berker Peksag in branch '3.4':
Issue #23684: Clarify the return value of the scheme attribute of ParseResult 
and SplitResult objects.
https://hg.python.org/cpython/rev/368db4b1ced9

New changeset 68629ebe0fee by Berker Peksag in branch '3.5':
Issue #23684: Clarify the return value of the scheme attribute of ParseResult 
and SplitResult objects.
https://hg.python.org/cpython/rev/68629ebe0fee

New changeset 7846aadbd4f5 by Berker Peksag in branch 'default':
Issue #23684: Clarify the return value of the scheme attribute of ParseResult 
and SplitResult objects.
https://hg.python.org/cpython/rev/7846aadbd4f5

--
nosy: +python-dev

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



[issue23684] urlparse() documentation does not account for default scheme

2015-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 7bf9e10fc32f by Berker Peksag in branch '2.7':
Issue #23684: Clarify the return value of the scheme attribute of ParseResult 
and SplitResult objects.
https://hg.python.org/cpython/rev/7bf9e10fc32f

--

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



[issue24496] Non-idiomatic examples in gzip docs

2015-06-25 Thread Berker Peksag

Berker Peksag added the comment:

Thanks for the patch, Jakub. I've updated the patch to match ae1528beae67 
(thanks Martin) and commit it.

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

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



[issue24511] Add methods for async protocols

2015-06-25 Thread Arc Riley

Changes by Arc Riley arcri...@gmail.com:


--
nosy: +ArcRiley

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



[issue24483] Avoid repeated hash calculation in C implementation of functools.lru_cache()

2015-06-25 Thread Meador Inge

Meador Inge added the comment:

I did some regression testing and reviewed the code; LGTM.

As for the code structure issues, I agree that the duplication is undesirable 
(the readability argument is not that convincing), but Serhiy's patch is 
consistent with the existing design.  As such, I think the structure issue is a 
separate one and definitely should not hold this patch up.

--
nosy: +meador.inge

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



[issue24439] Feedback for awaitable coroutine documentation

2015-06-25 Thread Yury Selivanov

Yury Selivanov added the comment:

Martin, it's now updated.

(As for why it wasn't applied in the first place, I guess standard MacOS 
`patch` command fails to apply git binary diffs)

--

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



[issue24484] multiprocessing cleanup occasionally throws exception

2015-06-25 Thread Jorge Herskovic

Jorge Herskovic added the comment:

Ok, I *think* I tracked it down to Connections getting cleaned up in a 
non-orderly fashion, sometimes while _run_finalizers is executing. The 
following patch to lib/python3.4/multiprocessing/connection.py cures the 
problem on my machine.

@@ -124,10 +124,10 @@
 self._handle = handle
 self._readable = readable
 self._writable = writable
-
+self._shutdown = util.Finalize(self, self._finalizer)
 # XXX should we use util.Finalize instead of a __del__?
-
-def __del__(self):
+
+def _finalizer(self):
 if self._handle is not None:
 self._close()

--

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



[issue24510] Make _PyCoro_GetAwaitableIter a public API

2015-06-25 Thread Yury Selivanov

New submission from Yury Selivanov:

We should consider making _PyCoro_GetAwaitableIter(o) a public API.

Its implementation isn't trivial because it's not around simply accessing 
'tp_as_async-am_await'.  You also need to check is 'o' is a generator with a 
CO_ITERABLE_COROUTINE or a CoroObject, etc.

--
assignee: yselivanov
components: Interpreter Core
messages: 245812
nosy: gvanrossum, haypo, ncoghlan, scoder, yselivanov
priority: normal
severity: normal
status: open
title: Make _PyCoro_GetAwaitableIter a public API
type: enhancement
versions: Python 3.5, Python 3.6

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



[issue18857] urlencode of a None value uses the string 'None'

2015-06-25 Thread Piotr Dobrogost

Piotr Dobrogost added the comment:

This problem came out in the bug Cannot make URL query string with a parameter 
without a value (https://github.com/kennethreitz/requests/issues/2651) raised 
in urllib3 project (which itself is being used by Requests library mentioned in 
this bug).

--
nosy: +piotr.dobrogost

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



[issue24439] Feedback for awaitable coroutine documentation

2015-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e9c34e16f445 by Yury Selivanov in branch '3.5':
Issue #24439: Update tulip_coro.dia
https://hg.python.org/cpython/rev/e9c34e16f445

New changeset 15b8a62da6ff by Yury Selivanov in branch 'default':
Merge 3.5 (Issue #24439)
https://hg.python.org/cpython/rev/15b8a62da6ff

--

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



[issue24511] Add methods for async protocols

2015-06-25 Thread Yury Selivanov

Changes by Yury Selivanov yseliva...@gmail.com:


--
type:  - enhancement

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



[issue24511] Add methods for async protocols

2015-06-25 Thread Yury Selivanov

New submission from Yury Selivanov:

Let's consider adding C API functions for working with new tp_as_async:

PyAwait_Check for checking tp_as_async-am_await || PyCoro_Check || PyGen  
CO_ITERABLE_COROUTINE

PyAwait_AsyncIterCheck for checking tp_as_async-am_iter
PyAwait_GetAsyncIter for calling tp_as_async-am_iter
PyAwait_AsyncIterNext for calling tp_as_async-am_next

Please also see issue24510 for opening up _PyCoro_GetAwaitableIter; we can call 
it PyAwait_Get

--
assignee: yselivanov
components: Interpreter Core
messages: 245814
nosy: gvanrossum, haypo, ncoghlan, scoder, yselivanov
priority: normal
severity: normal
status: open
title: Add methods for async protocols
versions: Python 3.5, Python 3.6

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



[issue24510] Make _PyCoro_GetAwaitableIter a public API

2015-06-25 Thread STINNER Victor

STINNER Victor added the comment:

It looks like the code is currently moving fast. I suggest to wait until Python 
3.6 to stabilize the Python C API for async/await.

--

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




[issue24425] Installer Vender Issue

2015-06-25 Thread John Laurence Poole

John Laurence Poole added the comment:

I attempted to install on Windows Server 2008 R2 Service Pack 1 and had the 
same problems.  I thought it might be proxy since I'm behind a firewall, but 
setting the usual values did not allow the program to overcome whatever it is 
that PIP is having problems with.

here's the log at the failure point:
MSI (s) (2C:BC) [11:10:26:806]: Executing op: CacheSizeFlush(,)
MSI (s) (2C:BC) [11:10:26:806]: Executing op: ActionStart(Name=UpdatePip,,)
Action 11:10:26: UpdatePip. 
MSI (s) (2C:BC) [11:10:26:809]: Executing op: 
CustomActionSchedule(Action=UpdatePip,ActionType=3090,Source=C:\Python27\python.exe,Target=-m
 ensurepip -U --default-pip,)
MSI (s) (2C:BC) [11:10:26:812]: Note: 1: 1721 2: UpdatePip 3: 
C:\Python27\python.exe 4: -m ensurepip -U --default-pip 
MSI (s) (2C:BC) [11:10:26:812]: Note: 1: 2262 2: Error 3: -2147287038 
Error 1721. There is a problem with this Windows Installer package. A program 
required for this install to complete could not be run. Contact your support 
personnel or package vendor. Action: UpdatePip, location: 
C:\Python27\python.exe, command: -m ensurepip -U --default-pip 
MSI (s) (2C:BC) [11:10:30:520]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (s) (2C:BC) [11:10:30:520]: Product: Python 2.7.10 (64-bit) -- Error 1721. 
There is a problem with this Windows Installer package. A program required for 
this install to complete could not be run. Contact your support personnel or 
package vendor. Action: UpdatePip, location: C:\Python27\python.exe, command: 
-m ensurepip -U --default-pip 

Action ended 11:10:30: InstallFinalize. Return value 3.

To get this to install, during the installation, disengage entirely PIP, it's 
default is to install it.

--
nosy: +John Laurence Poole

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



[issue24510] Make _PyCoro_GetAwaitableIter a public API

2015-06-25 Thread Yury Selivanov

Yury Selivanov added the comment:

 It looks like the code is currently moving fast. [..]

Yeah, that's my feeling too, I don't want to rush things too much.  Unless 
Guido, Nick and you are in complete agreement that we need this, we should 
postpone till 3.6.

--

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



[issue16379] SQLite error code not exposed to python

2015-06-25 Thread Cal Leeming

Cal Leeming added the comment:

Any update on this? Still seems to be a problem as of 3.4.0.

--
nosy: +sleepycal

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



[issue24507] CRLF issues

2015-06-25 Thread Eric V. Smith

Eric V. Smith added the comment:

At least for the files in decimaltestdata, I'd be wary about changing them. My 
understanding is that these files are from the IBM decimal test library. I 
don't think we should stray from upstream here, even for something as simple as 
line endings.

Unfortunately, the link http://www2.hursley.ibm.com/decimal from the file 
headers is no longer valid.

--
nosy: +eric.smith

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



[issue16379] SQLite error code not exposed to python

2015-06-25 Thread Ivan Levkivskyi

Changes by Ivan Levkivskyi levkivs...@gmail.com:


--
nosy: +levkivskyi

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



[issue24509] Undocumented features of asyncio: call_at, call_later

2015-06-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3199ec504dbe by Yury Selivanov in branch '3.4':
Issue #24509: Clarify Handle.cancel() and loop.call_* methods.
https://hg.python.org/cpython/rev/3199ec504dbe

New changeset fc69dd6aea55 by Yury Selivanov in branch '3.5':
Merge 3.4 (issue #24509)
https://hg.python.org/cpython/rev/fc69dd6aea55

New changeset 9aad116baee8 by Yury Selivanov in branch 'default':
Merge 3.5 (issue #24509)
https://hg.python.org/cpython/rev/9aad116baee8

--
nosy: +python-dev

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



[issue24512] multiprocessing should log a warning when forking multithreaded process

2015-06-25 Thread Timothy Cardenas

New submission from Timothy Cardenas:

We were tracking down a bug the other day that was rather hard to find 
involving a forking a process that had both a primary thread and a logging 
thread. The docs clearly state that forking a multithreaded process is 
problematic 
https://docs.python.org/3.4/library/multiprocessing.html#contexts-and-start-methods

However given that it is very simple to check if the process currently has 
multiple threads at the time of the forking operation and that its almost never 
safe to do so with multiple running threads I was wondering if it made sense to 
add a message that warned that a unsafe operation (forking a multithreaded 
process without the forkserver option) was occurring.

--
components: Library (Lib)
messages: 245825
nosy: trcarden
priority: normal
severity: normal
status: open
title: multiprocessing should log a warning when forking multithreaded process
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue24507] CRLF issues

2015-06-25 Thread Rusi

Rusi added the comment:

The newest (at least newer) version seems to be http://speleotrove.com/decimal/
Top of page says:
Welcome to the General Decimal Arithmetic website, which is now hosted
at speleotrove.com. The page and file names here have not been changed
from the names used on the previous website, www2.hursley.ibm.com.

File to download is dectest.zip
All files are now CRLF
More significantly the versions are bumped up from 2.59 in the python
repo to 2.62 at this link
Needless to say there are much larger differences between these than
just CRLF :-)

On Thu, Jun 25, 2015 at 10:57 PM, Eric V. Smith rep...@bugs.python.org wrote:

 Eric V. Smith added the comment:

 At least for the files in decimaltestdata, I'd be wary about changing them. 
 My understanding is that these files are from the IBM decimal test library. I 
 don't think we should stray from upstream here, even for something as simple 
 as line endings.

 Unfortunately, the link http://www2.hursley.ibm.com/decimal from the file 
 headers is no longer valid.

The newest (at least newer) version seems to be http://speleotrove.com/decimal/
Top of page says:
Welcome to the General Decimal Arithmetic website, which is now hosted
at speleotrove.com. The page and file names here have not been changed
from the names used on the previous website, www2.hursley.ibm.com.

File to download is dectest.zip
All files are now CRLF
More significantly the versions are bumped up from 2.59 in the python
repo to 2.62 at this link
Needless to say there are much larger differences between these
versions than just CRLF :-)

--

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



[issue24509] Undocumented features of asyncio: call_at, call_later

2015-06-25 Thread Yury Selivanov

Yury Selivanov added the comment:

Thanks for reporting this Mark!

--
resolution:  - fixed
stage:  - commit review
status: open - closed
versions: +Python 3.4, Python 3.5

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



[issue20387] tokenize/untokenize roundtrip fails with tabs

2015-06-25 Thread Jason R. Coombs

Jason R. Coombs added the comment:

@gumblex, I've applied your updated patch (though I couldn't figure out why it 
wouldn't apply mechanically; I had to paste it). I also corrected the test. 
Thanks for the advice on that.

I don't understand the second half of your message. Are you stating caveats for 
our edification? Do you have outstanding concerns? Can you confirm your 
original report is corrected by the latest tip in the patch repository?

I believe what remains to be done is to add a NEWS entry and merge the changes 
with the 3.4, 3.5, and default branches. If a 2.7 backport is required, that 
could be done also.

--
stage: needs patch - patch review

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



[issue24513] decimal test version mismatch

2015-06-25 Thread Rusi

New submission from Rusi:

In http://bugs.python.org/issue24507
there was an apprehension about changing the decimal test versions.

Poking around I find that the versions in headers of files in
Lib/test/decimaltestdata refer to version 2.59 and the IBM link
http://www2.hursley.ibm.com/decimal which is dead

Whereas help(decimal) points to
http://speleotrove.com/decimal/decarith.html -- version 1.70 

http://speleotrove.com/decimal/ contains dectest.zip which is
at version 2.62

--
messages: 245835
nosy: RusiMody, eric.smith, zach.ware
priority: normal
severity: normal
status: open
title: decimal test version mismatch
versions: Python 3.5

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



[issue23883] __all__ lists are incomplete

2015-06-25 Thread Martin Panter

Martin Panter added the comment:

Jacek: If we used the ModuleType check, and somebody adds a module-level 
constant (like logging.CRITICAL = 50), the test will automatically detect if 
they forget to update __all__. That is what I meant by the test being stricter. 
But it looks like you went for the other option, which has its own relative 
advantages :)

Will try to to a proper review later when I get a chance.

--

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



[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-06-25 Thread Nathaniel Smith

Nathaniel Smith added the comment:

Ping.

I know this is pretty trivial and everyone's focused on 3.5-related stuff, but 
it would be nice to get this finalized soon b/c the sooner CPython commits to 
some standard behavior here, the sooner all the other (faster-moving) python 
REPLs will converge to match.

--

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



[issue24509] Undocumented features of asyncio: call_at, call_later

2015-06-25 Thread Марк Коренберг

Марк Коренберг added the comment:

For delayed execution methods:

Returned handle is actually timer object. That timer can be deactivated using 
asyncio.Handle.cancel() method, so registered callback won't be called.

For other callback registration methods:

Returned handle may be used to unregister callback using 
asyncio.Handle.cancel(), so registered callback won't be called.


Also:
1. Documentation of .cancel does not say if it is allowed to cancel cancelled 
handle.
2. Documentation does not say if it is allowed to cancel timer, that was 
already fired.

--

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