[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Does it support a trailing comma after *args or name=value?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

I'm not sure that a trailing comma after **kwargs in a function signature 
should be allowed in Python grammar. Reasons for allowing it after other 
arguments don't work here since **kwargs is always a last item in a signature.

But this ship perhaps is sailed.

--

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset b51f5de71163f096d2d5229ede5379cdb284f651 by Łukasz Langa in 
branch 'master':
bpo-33064: lib2to3: support trailing comma after *args and **kwargs (#6096)
https://github.com/python/cpython/commit/b51f5de71163f096d2d5229ede5379cdb284f651


--

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5860

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5861

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Łukasz Langa

Łukasz Langa  added the comment:

Yes, this ship has sailed with Python 3.6.

I understand your logic and this is indeed why we didn't support this for a 
long time. However, people tend to grow muscle memory to add trailing commas 
and that was tripping them over for no real gain on our part. So this was 
added. The reason I found out about lib2to3 not following suit was that 3.6 
users quickly started to put those trailing commas in and tools using lib2to3 
were crashing on such files :) This proves it was worth it.

--
resolution:  -> fixed
stage: patch review -> commit review

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Łukasz Langa

Łukasz Langa  added the comment:

Oh, and in terms of *calling* functions, now we can specify multiple unpacks, 
like:

  >>> f(
  ...   **d,
  ...   **e,
  ... )

so the extra comma for signatures simply makes it symmetrical in terms of 
appearance.

--

___
Python tracker 

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



[issue33062] ssl_renegotiate() doesn't seem to be exposed

2018-03-13 Thread Christian Heimes

Christian Heimes  added the comment:

Since it's a feature request, I have changed the version number to 3.8.

By the way, renegotiation is a problematic and has been replaced by rekeying in 
TLS 1.3.

--
type: behavior -> enhancement
versions:  -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset b4c8871ca43d37be167ef5dbe9fb341922c04a9f by Łukasz Langa (Miss 
Islington (bot)) in branch '3.7':
bpo-33064: lib2to3: support trailing comma after *args and **kwargs (GH-6096) 
(#6097)
https://github.com/python/cpython/commit/b4c8871ca43d37be167ef5dbe9fb341922c04a9f


--

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 6a526f673878677032c02f7800ee13d4769f391a by Łukasz Langa (Miss 
Islington (bot)) in branch '3.6':
bpo-33064: lib2to3: support trailing comma after *args and **kwargs (GH-6096) 
(#6098)
https://github.com/python/cpython/commit/6a526f673878677032c02f7800ee13d4769f391a


--

___
Python tracker 

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



[issue33023] Unable to copy ssl.SSLContext

2018-03-13 Thread Christian Heimes

Change by Christian Heimes :


--
keywords: +patch
pull_requests: +5862
stage:  -> patch review

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset e32bbaf376a09c149fa7c7f2919d7c9ce4e2a055 by Serhiy Storchaka 
(xdegaye) in branch '3.7':
[3.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. 
(GH-5928)
https://github.com/python/cpython/commit/e32bbaf376a09c149fa7c7f2919d7c9ce4e2a055


--

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5863

___
Python tracker 

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



[issue33023] Unable to copy ssl.SSLContext

2018-03-13 Thread Christian Heimes

Christian Heimes  added the comment:

Antoine is correct. Session resumption is fully transparent for the application 
layer. The context object is designed to be reused by multiple connections to 
same or different servers.

--

___
Python tracker 

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



[issue33041] Issues with "async for"

2018-03-13 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
dependencies: +Fix jumping out of "with" block, cannot jump from a 'return' or 
'exception' trace event

___
Python tracker 

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



[issue33025] urlencode produces bad output from ssl.CERT_NONE and friends that chokes decoders

2018-03-13 Thread Christian Heimes

Christian Heimes  added the comment:

Ethan, please take a look.

--
assignee:  -> ethan.furman
nosy: +ethan.furman

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Łukasz Langa

Change by Łukasz Langa :


--
pull_requests: +5864
stage: commit review -> patch review

___
Python tracker 

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



[issue33056] LEaking files in concurrent.futures.process

2018-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:


New changeset f216cbf9ab704da98146a25d57ff0e85aecb49da by Antoine Pitrou (Miss 
Islington (bot)) in branch '3.7':
bpo-33056 FIX leaking fd in concurrent.futures.ProcessPoolExecutor (GH-6084) 
(#6092)
https://github.com/python/cpython/commit/f216cbf9ab704da98146a25d57ff0e85aecb49da


--
nosy: +pitrou

___
Python tracker 

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



[issue33056] LEaking files in concurrent.futures.process

2018-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Andrew: where there are multiprocessing issues, could you please nosy me so 
that I get a chance to review?

Thomas: thanks for spotting this and thanks for the fix!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8

___
Python tracker 

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



[issue11594] 2to3 does not preserve line endings

2018-03-13 Thread Łukasz Langa

Change by Łukasz Langa :


--
keywords: +easy -patch

___
Python tracker 

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



[issue8947] Provide as_integer_ratio() method to Decimal

2018-03-13 Thread Mark Dickinson

Change by Mark Dickinson :


--
title: as_integer_ratio Decimal -> Provide as_integer_ratio() method to Decimal

___
Python tracker 

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



[issue8947] as_integer_ratio Decimal

2018-03-13 Thread Mark Dickinson

Change by Mark Dickinson :


--
title: Provide  as_integer_ratio() method to Decimal -> as_integer_ratio Decimal

___
Python tracker 

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



[issue33066] raise an exception from multiple positions break the traceback frames

2018-03-13 Thread hubo

New submission from hubo :

The attachment is a script that demonstrates the behavior. The simple unittest 
script should exit very quickly, but in fact, it runs indefinitely.

It uses asyncio to reproduce the result, but other concurrent technologies are 
also affected.

In Python 3, traceback of an exception is mutable. When the exception is 
re-raised, current frames are appended to the traceback. But when the same 
exception object is raised in multiple position (e.g. passed to different 
coroutines with futures), the frames are appended in the same list, so the 
tracebacks are mixed together.

assertRaises in unittest calls traceback.clear_frames internally. When the 
tracebacks are mixed, it may clear a running frame (in a generator), producing 
strange behaviors.

--
files: test1.py
messages: 313735
nosy: hubo1016
priority: normal
severity: normal
status: open
title: raise an exception from multiple positions break the traceback frames
type: behavior
versions: Python 3.6
Added file: https://bugs.python.org/file47480/test1.py

___
Python tracker 

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



[issue30622] Fix NPN guard for OpenSSL 1.1

2018-03-13 Thread Christian Heimes

Change by Christian Heimes :


--
pull_requests: +5865

___
Python tracker 

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



[issue32885] Tools/scripts/pathfix.py leaves bunch of ~ suffixed files around with no opt-out

2018-03-13 Thread Christian Heimes

Christian Heimes  added the comment:


New changeset 5affd5c29eb1493cb31ef3cfdde15538ac134689 by Christian Heimes 
(Miro Hrončok) in branch 'master':
bpo-32885: Tools/scripts/pathfix.py: Add -n option for no backup~ (#5772)
https://github.com/python/cpython/commit/5affd5c29eb1493cb31ef3cfdde15538ac134689


--

___
Python tracker 

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



[issue32885] Tools/scripts/pathfix.py leaves bunch of ~ suffixed files around with no opt-out

2018-03-13 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5866

___
Python tracker 

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



[issue32885] Tools/scripts/pathfix.py leaves bunch of ~ suffixed files around with no opt-out

2018-03-13 Thread miss-islington

Change by miss-islington :


--
pull_requests: +5867

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread miss-islington

miss-islington  added the comment:


New changeset cf61a81f1d600064be6dd43896afcf5f976de9b0 by Miss Islington (bot) 
in branch '3.6':
[3.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. 
(GH-5928)
https://github.com/python/cpython/commit/cf61a81f1d600064be6dd43896afcf5f976de9b0


--
nosy: +miss-islington

___
Python tracker 

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



[issue33056] LEaking files in concurrent.futures.process

2018-03-13 Thread Andrew Svetlov

Andrew Svetlov  added the comment:

Antoine sorry, will do next time

--
components: +Windows, XML -Library (Lib)
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue33062] ssl_renegotiate() doesn't seem to be exposed

2018-03-13 Thread Vitaly Kruglikov

Vitaly Kruglikov  added the comment:

> By the way, renegotiation is a problematic and has been replaced by rekeying 
> in TLS 1.3

How can I trigger rekeying via python ssl? Many thanks.

--

___
Python tracker 

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



[issue28716] Fractions instantiation revisited

2018-03-13 Thread Mark Dickinson

Mark Dickinson  added the comment:

[Eric Wieser]

> This would allow the numpy `np.floating` types to take part in `Fraction` 
> conversion as well, which would be great.

I'm confused: as far as I can tell, the NumPy floating-point types don't 
implement `as_integer_ratio`. (Except for `np.float64`, which subclasses 
`float` and so inherits `is_integer_ratio` from it.) Or are you suggesting that 
_if_ they were to implement `as_integer_ratio` at some point in the future, 
then they'd become compatible with `Fraction`?

--

___
Python tracker 

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



[issue33062] ssl_renegotiate() doesn't seem to be exposed

2018-03-13 Thread Christian Heimes

Christian Heimes  added the comment:

You can't.

Rekeying is not available yet. SSL_key_update() is only available with OpenSSL 
1.1.1 and TLS 1.3. Both are still in beta phase.

--

___
Python tracker 

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



[issue25345] Unable to install Python 3.5 on Windows 10

2018-03-13 Thread Arran McCutcheon

Arran McCutcheon  added the comment:

I'm also having this problem on Windows 10 with Python 3.6.4, and previous 
versions of Python. Every time I try to install Python, I get error 0x80070652. 
Rebooting doesn't help. I've attached my log file in case that helps as I don't 
know how to interpret it. Was a solution found?

--
nosy: +ArranM
Added file: https://bugs.python.org/file47481/Python 3.6.4 
(64-bit)_20180313115253.log

___
Python tracker 

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



[issue33067] http.client no longer sends HTTP request in one TCP package

2018-03-13 Thread Christian Heimes

New submission from Christian Heimes :

https://bugs.python.org/issue23302 changed how http.client sends request. 
endheaders() no longer sends header and message body in one TCP package if the 
total payload is smaller than TCP max segment size. 
https://github.com/python/cpython/blob/3.5/Lib/http/client.py#L934-L936 uses 
two send calls to send header and body. This causes very simple HTTP servers in 
embedded devices to fail.

Matthew Garrett noticed the bug, see 
https://twitter.com/mjg59/status/972985566387032064 / 
https://twitter.com/mjg59/status/973000950439817217

We should try to send requests as one TCP package again. TCP_CORK may do the 
trick. Or we should fix our custom implementation of send. It has multiple 
issues, e.g. a fixed buffer. The buffer size is suboptimal for small MTU and 
jumbo frames.

--
components: Library (Lib)
keywords: 3.5regression
messages: 313743
nosy: benjamin.peterson, christian.heimes
priority: normal
severity: normal
status: open
title: http.client no longer sends HTTP request in one TCP package
type: behavior
versions: Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue33065] IDLE debugger: problem importing user created module

2018-03-13 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I cannot do anything from this bare description, as I cannot think of any 
reason why stepping should introduce an error.  It sounds like there are two 
files involved.  Try to reduce them to the minimum needed to reproduce the 
issue and then upload.

--
stage:  -> test needed
title: debugger issue concerning importing user created modules into another 
program -> IDLE debugger: problem importing user created module
type: compile error -> behavior

___
Python tracker 

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



[issue33068] Inconsistencies in parsing (evaluating?) longstrings

2018-03-13 Thread David Lukeš

New submission from David Lukeš :

""" \""" """ evaluates to ' """ ' (as expected), but without the surrounding 
spaces, """\"" evaluates to '"' instead of '"""'.

Is this expected behavior? If I'm reading the definition of string syntax in 
https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals
 correctly, it shouldn't be.

--
components: Interpreter Core
messages: 313745
nosy: David Lukeš
priority: normal
severity: normal
status: open
title: Inconsistencies in parsing (evaluating?) longstrings
versions: Python 3.6

___
Python tracker 

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



[issue33068] Inconsistencies in parsing (evaluating?) longstrings

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

"""\"" is parsed as """\ "": a triple-quoted string containing an 
escaped '"', followed by an empty single-quoted string.

--
nosy: +serhiy.storchaka
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-13 Thread Paul Ganssle

New submission from Paul Ganssle :

This is basically the same as issue 962772, as there seems to have been a 
regression. The current version of distutils discards author= metadata if 
maintainer= is present, even though PEP 345 has added the Maintainer: and 
Maintainer-Email: metadata fields.

I think that the way forward is to have write_pkg_info generate separate 
Maintainer: and Maintainer-Email: fields.

--
components: Distutils
messages: 313747
nosy: dstufft, eric.araujo, p-ganssle
priority: normal
severity: normal
status: open
title: Maintainer information discarded when writing PKG-INFO
type: behavior
versions: Python 2.7, Python 3.6, Python 3.7

___
Python tracker 

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



[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2018-03-13 Thread bbayles

Change by bbayles :


--
nosy: +bbayles

___
Python tracker 

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



[issue33070] Add platform triplet for RISC-V

2018-03-13 Thread Andreas Schwab

Change by Andreas Schwab :


--
components: Build
nosy: schwab
priority: normal
severity: normal
status: open
title: Add platform triplet for RISC-V
type: enhancement

___
Python tracker 

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



[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-13 Thread bbayles

Change by bbayles :


--
nosy: +bbayles

___
Python tracker 

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



[issue33070] Add platform triplet for RISC-V

2018-03-13 Thread Roundup Robot

Change by Roundup Robot :


--
keywords: +patch
pull_requests: +5868
stage:  -> patch review

___
Python tracker 

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



[issue33068] Inconsistencies in parsing (evaluating?) longstrings

2018-03-13 Thread David Lukeš

David Lukeš  added the comment:

Oh, right, of course! Sorry and thanks for taking the time to clarify that :)

--

___
Python tracker 

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



[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-13 Thread Ned Deily

Change by Ned Deily :


--
nosy: +ncoghlan

___
Python tracker 

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



[issue33071] Document that PyPI no longer requires 'register'

2018-03-13 Thread Paul Ganssle

New submission from Paul Ganssle :

I've been asked to post this by @brainwave (who is having some trouble getting 
an account on bpo due to technical difficulties).

Per twine's github issue 311 ( https://github.com/pypa/twine/issues/311 ), it 
seems that distutil's docs Update setuptools and distutils docs, e.g., 
https://docs.python.org/3.6/distutils/packageindex.html#the-upload-command 
should be clarified to indicate that PyPI does not require register anymore, 
although other package indexes might.

--
assignee: docs@python
components: Distutils, Documentation
messages: 313749
nosy: docs@python, dstufft, eric.araujo, p-ganssle
priority: normal
severity: normal
status: open
title: Document that PyPI no longer requires 'register'
type: enhancement

___
Python tracker 

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



[issue30528] ipaddress.IPv{4,6}Network.reverse_pointer is broken

2018-03-13 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

The "reverse_pointers" attribute is implicitly documented by this phrase in the 
introduction of network objects:

--
All attributes implemented by address objects are implemented by network 
objects as well.
--

--

___
Python tracker 

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



[issue33071] Document that PyPI no longer requires 'register'

2018-03-13 Thread Christian Heimes

Change by Christian Heimes :


--
components:  -Distutils
keywords: +easy
versions: +Python 2.7, Python 3.6, Python 3.7, Python 3.8

___
Python tracker 

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



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-13 Thread Jon Janzen

Jon Janzen  added the comment:

Ping

--

___
Python tracker 

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



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-13 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

I'm still not too happy about supporting UIDs in plistlib, especially because 
I'm not sure it that's all that's needed. AFAIK I removed more types that the 
underlying encoder supported from plistlib because those are never used in 
plist files. 

The swift encoder for keyed archives is probably not the code that's actually 
used on the OS, AFAIK that still is Objective-C code.

P.S. I changed the version selection to 3.8, adding support for UIDs would be a 
feature change and not suited for back ports.

--
versions: +Python 3.8 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue28716] Fractions instantiation revisited

2018-03-13 Thread Eric Wieser

Eric Wieser  added the comment:

> Are you suggesting that _if_ they were to implement `as_integer_ratio` at 
> some point in the future, then they'd become compatible with `Fraction`

Yes, exactly. Conversely, there's little gain in implementing it _until_ 
`Fraction` supports calling it.

--

___
Python tracker 

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



[issue25345] Unable to install Python 3.5 on Windows 10

2018-03-13 Thread Steve Dower

Steve Dower  added the comment:

Arran - I think yours is a different issue. There should be some other log 
files near the one you shared that I'll need to see to find what's going wrong. 
Can you zip up all the Python ones and attach them here?

--

___
Python tracker 

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



[issue33063] failed to build _ctypes: undefined reference to `ffi_closure_FASTCALL'

2018-03-13 Thread Siming Yuan

Siming Yuan  added the comment:

edit - I do see this in python 3.6.4 on a different server when building 32-bit 

Red Hat Enterprise Linux Workstation release 6.7 (Santiago)

gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-16)

--
versions: +Python 3.6

___
Python tracker 

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



[issue33056] LEaking files in concurrent.futures.process

2018-03-13 Thread Steve Dower

Steve Dower  added the comment:

Andrew - you can search for some module names in the nosy list to add the 
designated people for them. The components list doesn't include all of them 
(perhaps it should?).

--

___
Python tracker 

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



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-13 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
type: behavior -> enhancement

___
Python tracker 

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



[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2018-03-13 Thread Jurjen N.E. Bos

Jurjen N.E. Bos  added the comment:

I always use the following piece of code that can be trivially used to patch 
the source.
It basically looks for a using line in the test string and finds it in the 
source file. If there is a match, we know where we are. Otherwise it falls back 
to the "normal" way.

--
Added file: https://bugs.python.org/file47482/doctestfix.py

___
Python tracker 

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



[issue24925] Allow doctest to find line number of __test__ strings if formatted as a triple quoted string.

2018-03-13 Thread Jurjen N.E. Bos

Jurjen N.E. Bos  added the comment:

Oh wait, I already posted that so long ago I forgot about it.
Oops.
Sorry about the repetition, folks.
- Jurjen

--

___
Python tracker 

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



[issue33063] failed to build _ctypes: undefined reference to `ffi_closure_FASTCALL'

2018-03-13 Thread Christian Heimes

Christian Heimes  added the comment:

3.4 and 3.5 are in security release-only mode.

--
nosy: +christian.heimes
versions:  -Python 3.4, Python 3.5

___
Python tracker 

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



[issue33063] failed to build _ctypes: undefined reference to `ffi_closure_FASTCALL'

2018-03-13 Thread Zachary Ware

Zachary Ware  added the comment:

Your better option is to install libffi-devel (or whatever the correct name is 
) on your system and use `./configure --with-system-ffi`.  This is the default 
in 3.6 and the only option in 3.7 (on any platform but Windows and macOS).

--
nosy: +zach.ware

___
Python tracker 

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



[issue33069] Maintainer information discarded when writing PKG-INFO

2018-03-13 Thread Paul Ganssle

Change by Paul Ganssle :


--
keywords: +patch
pull_requests: +5869
stage:  -> patch review

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

In PR 5928 Serhiy Storchaka wrote:
> Great! Could you please create a backport to master?

Yes.
I prefer to answer in the issue as I am still not getting any mail from github.

--

___
Python tracker 

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



[issue23599] single and double quotes stripped upon paste with MacPorts libedit

2018-03-13 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

Hi Ned,

Do you think this issue still needs follow up?

--
nosy: +csabella

___
Python tracker 

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



[issue32174] nonASCII punctuation characters can not display in python363.chm.

2018-03-13 Thread Steve Dower

Steve Dower  added the comment:

We should probably prefer to force ASCII with explicit escapes (ideally named 
escapes, rather than codepoints). I'm not sure how to make Sphinx/docutils do 
that, but presumably it could be our own extension that handles the problematic 
characters people add to our docs.

--

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Xavier de Gaye

Change by Xavier de Gaye :


--
pull_requests: +5870

___
Python tracker 

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



[issue26707] plistlib fails to parse bplist with 0x80 UID values

2018-03-13 Thread Jon Janzen

Jon Janzen  added the comment:

Support for KeyedArchives are not limited to the Swift implementation I linked 
to. They have been supported since Mac OS X since 10.2 (long before Swift came 
around). The documentation 
(https://developer.apple.com/documentation/foundation/nskeyedarchiver?language=objc)
 shows that NSKeyedArchive can only output in plist format since outputFormat 
is of type NSPropertyListFormat (allowing to output in either XML or binary).

The other unimplemented binary token types (URL, UUID, set, ordset) are not 
used under NSKeyedArchive (see the "Encoding Data and Objects" section of the 
documentation mentioned above) so there's no concern that supporting 0x80 (UID) 
will suddenly necessitate implementing the other unimplemented types. If you 
feel that it would be necessary to implement them in order to accept the patch 
I would be happy to try and implement them.

I know I certainly have an use case (reading to-do list data from the 2Do app) 
and the creator of this bug wanted to read SnapChat data files.

Currently, I am using a hot-patched plistlib._BinaryPlistParser to read the 
data I need (see attached for a snippet) and I would rather not do that, but if 
you think my use case scope does not warrant inclusion in the standard library 
then I'll just have to deal with that.

--
Added file: https://bugs.python.org/file47483/plist_hack.py

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset b8e9d6c5cd44ebc9c462fea9ad1bc5d0b970e28a by Serhiy Storchaka 
(xdegaye) in branch 'master':
bpo-17288: Prevent jumps from 'return' and 'exception' trace events. (GH-6107)
https://github.com/python/cpython/commit/b8e9d6c5cd44ebc9c462fea9ad1bc5d0b970e28a


--

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Thank you! Do you mind to make a backport to 2.7 (if this makes a sense)?

--

___
Python tracker 

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



[issue33067] http.client no longer sends HTTP request in one TCP package

2018-03-13 Thread Senthil Kumaran

Change by Senthil Kumaran :


--
nosy: +orsenthil

___
Python tracker 

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



[issue8947] Provide as_integer_ratio() method to Decimal

2018-03-13 Thread Mark Dickinson

Mark Dickinson  added the comment:

Apologies: the title change was accidental. Reverted.

--

___
Python tracker 

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



[issue8947] Provide as_integer_ratio() method to Decimal

2018-03-13 Thread Alexander Belopolsky

Alexander Belopolsky  added the comment:

This issue has been superseded by #25928.

--
resolution: rejected -> duplicate
stage: patch review -> resolved
superseder:  -> Add Decimal.as_integer_ratio()

___
Python tracker 

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



[issue33063] failed to build _ctypes: undefined reference to `ffi_closure_FASTCALL'

2018-03-13 Thread Siming Yuan

Siming Yuan  added the comment:

interesting, didn't know that option existed.

--

___
Python tracker 

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



[issue27984] singledispatch register should typecheck its argument

2018-03-13 Thread Cheryl Sabella

Cheryl Sabella  added the comment:

@xiang.zhang, would you be able to make a PR for your patch?  Thanks!

--
nosy: +csabella
stage:  -> patch review
versions: +Python 3.7, Python 3.8 -Python 3.5, Python 3.6

___
Python tracker 

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



[issue33072] The interpreter bytecodes for with statements are overly complex.

2018-03-13 Thread Mark Shannon

New submission from Mark Shannon :

The bytecodes WITH_CLEANUP_START and WITH_CLEANUP_FINISH are complex and 
implement entirely different behavior depending on what is on the stack.

This is unnecessary as the same semantics can be implemented with much simpler 
bytecodes and using the compiler do much of the work now done at runtime.

--
components: Interpreter Core
messages: 313771
nosy: Mark.Shannon
priority: normal
severity: normal
status: open
title: The interpreter bytecodes for with statements are overly complex.
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue33072] The interpreter bytecodes for with statements are overly complex.

2018-03-13 Thread Mark Shannon

Change by Mark Shannon :


--
keywords: +patch
pull_requests: +5871
stage:  -> patch review

___
Python tracker 

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



[issue33041] Issues with "async for"

2018-03-13 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
pull_requests: +5872

___
Python tracker 

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



[issue33041] Issues with "async for"

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

PR 6110 adds tests for jumping in/out of 'async with' blocks. It isn't directly 
related to 'async for', but it adds helpers that will be used also in tests for 
'async for'.

I'm not sure this is a correct and good way of writing such tests.

--

___
Python tracker 

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



[issue32949] Simplify "with"-related opcodes

2018-03-13 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
pull_requests: +5873

___
Python tracker 

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



[issue33072] The interpreter bytecodes for with statements are overly complex.

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

I already opened issue32949 for this.

--
nosy: +serhiy.storchaka
resolution:  -> duplicate
stage: patch review -> resolved
status: open -> closed
superseder:  -> Simplify "with"-related opcodes

___
Python tracker 

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



[issue33072] The interpreter bytecodes for with statements are overly complex.

2018-03-13 Thread Mark Shannon

Mark Shannon  added the comment:

So you did.
Sorry for the duplication

--

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Xavier de Gaye

Change by Xavier de Gaye :


--
pull_requests: +5874

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

The conditions used for the fix are still the same in 2.7: f->f_trace == NULL 
on a call event, f->f_lasti == -1 in a new frame and f->f_stacktop == NULL in a 
trace function with a non-line event except for yield statements.
There are minor differences: the YIELD_FROM opcode does not exist and 
function.__code__ is written as function.func_code.

Added a PR for 2.7.

--

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Xavier de Gaye

Xavier de Gaye  added the comment:

FWIW I now get github notifications, the problem was some bad configuration of 
my github profile (my fault).

--

___
Python tracker 

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



[issue23599] single and double quotes stripped upon paste with MacPorts libedit

2018-03-13 Thread Ned Deily

Ned Deily  added the comment:

Cheryl, as far as I know this is still an unresolved issue for at least some 
versions of Python and some versions of libedit.  I'd like to keep it open as a 
reminder.  If someone else wants to dig into it before I get around to it, feel 
free to do so.

--

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Serhiy Storchaka

Change by Serhiy Storchaka :


--
versions: +Python 2.7, Python 3.6

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:


New changeset baca85fcc7cdf70af4a76ea0966d4842c173de1a by Serhiy Storchaka 
(xdegaye) in branch '2.7':
[2.7] bpo-17288: Prevent jumps from 'return' and 'exception' trace events. 
(GH-6111)
https://github.com/python/cpython/commit/baca85fcc7cdf70af4a76ea0966d4842c173de1a


--

___
Python tracker 

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



[issue17288] cannot jump from a 'return' or 'exception' trace event

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Thank you Xavier!

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

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Raymond Hettinger

New submission from Raymond Hettinger :

Goal:  make int() more interoperable with float by making a float/Decimal 
method also available on ints.  This will let mypy treat ints as a subtype of 
floats.

See: https://mail.python.org/pipermail/python-dev/2018-March/152384.html

Open question:  Is this also desired for fractions.Fraction and 
numbers.Rational?

--
assignee: Nofar Schnider
components: Library (Lib)
messages: 313780
nosy: Nofar Schnider, gvanrossum, rhettinger
priority: normal
severity: normal
status: open
title: Add as_integer_ratio() to int() objects
type: enhancement
versions: Python 3.8

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Tim Peters

Tim Peters  added the comment:

> Is this also desired for fractions.Fraction and numbers.Rational?

I think so.  The idea, e.g., that "it's obvious" for Fraction is no more 
compelling than that it's even more obvious for ints ;-)  Given that it's 
spreading to ints anyway, there's an opportunity to make it possible for 
clients to write utterly uniform code for every type whose values can be 
represented as integer ratios.

I'd also say it's desirable to extend the Fraction constructor, to accept 
argument(s) of any type(s) that implement as_integer_ratio().  But that should 
probably be a different issue.

--
nosy: +tim.peters

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Mark Dickinson

Change by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Mark Dickinson

Mark Dickinson  added the comment:

On the Fraction constructor, it looks like there's some overlap with the goals 
of issue #28716 here.

--

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

> it looks like there's some overlap with the goals of issue #28716

Okay, let's focus this issue on just int.as_integer_ratio() so that Nofar can 
have something small and self contained to work on :-)

--

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Nofar Schnider

Nofar Schnider  added the comment:

I'm working on it

--

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Serhiy Storchaka

Serhiy Storchaka  added the comment:

Wouldn't be better to add the function as_integer_ration() in the math module 
(or in more appropriate place)?

def as_integer_ration(x):
if hasattr(x, 'as_integer_ration'):
return x.as_integer_ration()
else:
return (x.numerator, x.denominator)

The advantage over adding the int method is that it will automatically support 
other rational numbers like NumPy integers.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue28716] Fractions instantiation revisited

2018-03-13 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

FYI, adding int.as_integer_ratio() is being taken care in a separate issue:  
https://bugs.python.org/issue33073 . I've set it aside for a beginning core-dev 
mentee to work on because it is simple and self-contained.  Pretty much all the 
related work can be done here.

--
nosy: +rhettinger

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Raymond Hettinger

Change by Raymond Hettinger :


--
keywords: +easy (C)

___
Python tracker 

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



[issue33054] unittest blocks when testing function using multiprocessing.Pool with state spawn

2018-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Please, can you post a self-contained script to reproduce the issue?

--
nosy: +pitrou

___
Python tracker 

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



[issue33064] lib2to3 fails on a trailing comma after **kwargs in a function signature

2018-03-13 Thread Łukasz Langa

Change by Łukasz Langa :


--
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue33073] Add as_integer_ratio() to int() objects

2018-03-13 Thread Tim Peters

Tim Peters  added the comment:

Serhiy, we already went down the path of implementing this as a method.   Of 
course `numbers.Rational` could define the method as `return (self.numerator, 
self.denominator)` for itself and its subclasses.  Unless I'm confused, that 
would "magically" define the method for (at least) ints and Fractions too - but 
I didn't try it.

--

___
Python tracker 

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



[issue33047] "RuntimeError: dictionary changed size during iteration" using trace.py module

2018-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I cannot reproduce this on Ubuntu 16.04.

--
nosy: +belopolsky, paul.moore, pitrou, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue22872] multiprocessing.Queue raises AssertionError

2018-03-13 Thread Antoine Pitrou

Change by Antoine Pitrou :


--
components: +Library (Lib) -ctypes

___
Python tracker 

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



[issue22872] multiprocessing.Queue raises AssertionError

2018-03-13 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The expected behaviour here would be to raise ValueError, as on other closed 
objects:

>>> s = io.StringIO()
>>> s.close()
>>> s.write("")
Traceback (most recent call last):
  File "", line 1, in 
ValueError: I/O operation on closed file

--
nosy: +pitrou
versions: +Python 3.8 -Python 3.6

___
Python tracker 

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



  1   2   >