[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 ___ __

[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

[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 --

[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://mai

[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://mai

[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

[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. -- __

[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

[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/b4c8871ca43d37be167ef5d

[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/6a526f673878677032c02f7

[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-

[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/e32bbaf376a09c149fa7c7f2919d7

[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://mai

[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

[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 ___ __

[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 ___

[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 mai

[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/f216cbf9ab704da98146

[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 version

[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://mai

[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 ___ _

[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 ___

[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

[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://m

[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/5affd5c29eb1493cb31ef3cfdde15538a

[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://mai

[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://mai

[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/cf61a81f1d600064be6dd43896afcf5f976de

[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

[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

[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.float

[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 _

[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

[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/htt

[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. -

[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

[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 ___

[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

[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/

[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 _

[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/

[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-lis

[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 ___ _

[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.o

[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 dis

[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. -- --

[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 ___

[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

[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 en

[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. --

[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? -- __

[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 _

[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

[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:

[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

[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 ___ ___

[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 ___

[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

[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

[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

[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 ___

[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 o

[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://mai

[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

[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/b8e9d6c5cd44ebc9c462fea9ad1bc5d0b

[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 ___

[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.p

[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-lis

[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

[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

[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

[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 d

[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

[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://m

[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. --

[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://m

[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

[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 Un

[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://mai

[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 YIE

[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 ___ __

[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. --

[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 Unsubscrib

[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/baca85fcc7cdf70af4a76ea0966d4

[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 ___ ___

[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 t

[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

[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://ma

[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 ___ __

[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 :-) -- ___ Pyt

[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:

[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.deno

[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

[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://m

[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 ___ _

[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 mailin

[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 me

[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 ___ _

[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

[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: +pitr

  1   2   >