[issue22239] asyncio: nested event loop

2019-02-21 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue22865] Document how to make pty.spawn not copy data

2019-02-21 Thread Martin Panter
Martin Panter added the comment: I'm not sure it is wise for the Python documentation to suggest inserting null bytes in general. This seems more like an application-specific hack. There is nothing in Python that handles these null bytes specially, and I expect they will be seen if the child

[issue35904] Add statistics.fmean(seq)

2019-02-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 47d9987247bcc45983a6d51fd1ae46d5d356d0f8 by Raymond Hettinger in branch 'master': bpo-35904: Add statistics.fmean() (GH-11892) https://github.com/python/cpython/commit/47d9987247bcc45983a6d51fd1ae46d5d356d0f8 -- ___

[issue35904] Add statistics.fmean(seq)

2019-02-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36070] Enclosing scope not visible from within list comprehension

2019-02-21 Thread Nathan Woods
New submission from Nathan Woods : The following code works in an interactive shell or in a batch file, but not when executed as part of a unittest suite or pdb: from random import random out = [random() for ind in range(3)] It can be made to work using pdb interact, but this doesn't help wit

[issue35651] PEP 257 (active) references PEP 258 (rejected) as if it were active

2019-02-21 Thread Mihai Capotă
Change by Mihai Capotă : -- nosy: +mihaic ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue36070] Enclosing scope not visible from within list comprehension

2019-02-21 Thread Zachary Ware
Zachary Ware added the comment: Can you attach a test file that shows the failure? -- nosy: +zach.ware ___ Python tracker ___ ___ P

[issue36046] support dropping privileges when running subprocesses

2019-02-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mai

[issue36067] subprocess terminate() "invalid handle" error when process is gone

2019-02-21 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Interesting. Because both errors/conditions are mapped to ERROR_INVALID_HANDLE we need the creation time. I can work on a patch for that. Potentially I can also include OSX, Linux and BSD* implementations for methods involving os.kill(pid). That would be

[issue28235] In xml.etree.ElementTree docs there is no parser argument in fromstring()

2019-02-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset e5458bdb6af81f9b98acecd8819c60016d3f1441 by Cheryl Sabella (Manjusaka) in branch 'master': bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903) https://github.com/python/cpython/commit/e5458bdb6af81f9b98acecd8819c60016d3f1441 --

[issue28235] In xml.etree.ElementTree docs there is no parser argument in fromstring()

2019-02-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +12007 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue28235] In xml.etree.ElementTree docs there is no parser argument in fromstring()

2019-02-21 Thread miss-islington
miss-islington added the comment: New changeset b046f1badaaffb7e526b937fa2192c449b9076ed by Miss Islington (bot) in branch '3.7': bpo-28235: Fix xml.etree.ElementTree.fromstring docs (GH-11903) https://github.com/python/cpython/commit/b046f1badaaffb7e526b937fa2192c449b9076ed -- nosy

[issue28235] In xml.etree.ElementTree docs there is no parser argument in fromstring()

2019-02-21 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you @py.user for reporting this issue and for the original patch and thank you @Manjusaka for the PR! This was my first merge! Woot! :-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed __

[issue35662] Windows #define _PY_EMULATED_WIN_CV 0 bug

2019-02-21 Thread Steve Dower
Steve Dower added the comment: The regular test suite ought to be enough - see devguide.python.org for the info. It was definitely failing in multiprocessing last time I tried this. You could also just push changes and start a PR, as that will run the tests automatically. -- __

[issue36070] Enclosing scope not visible from within list comprehension

2019-02-21 Thread Eric V. Smith
Eric V. Smith added the comment: I suspect Nathan is seeing this problem at class scope. This is a well known issue: >>> class C: ... from random import random ... out = [random() for ind in range(3)] ... Traceback (most recent call last): File "", line 1, in File "", line 3, in C

[issue36071] Add support for Windows ARM32 in ctypes/libffi

2019-02-21 Thread Paul Monson
Change by Paul Monson : -- components: Windows, ctypes nosy: Paul Monson, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: Add support for Windows ARM32 in ctypes/libffi versions: Python 3.8 ___ Pyt

[issue29871] Enable optimized locks on Windows

2019-02-21 Thread Paulie Pena
Change by Paulie Pena : -- nosy: +paulie4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue36070] Enclosing scope not visible from within list comprehension

2019-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a duplicate of issue3692. -- nosy: +serhiy.storchaka resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> improper scope in list comprehension, when used in class declaration _

[issue36072] str.translate() behave differently for ASCII-only and other strings

2019-02-21 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : In [186]: from itertools import cycle In [187]: class ContainerLike: ...: def __init__(self): ...: self.chars = cycle('12') ...: def __getitem__(self, key): ...: return next(self.chars) ...: In [188]: 'a

[issue36072] str.translate() behaves differently for ASCII-only and other strings

2019-02-21 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- title: str.translate() behave differently for ASCII-only and other strings -> str.translate() behaves differently for ASCII-only and other strings ___ Python tracker __

[issue36072] str.translate() behaves differently for ASCII-only and other strings

2019-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are using a mapping that returns different values for the same key. You should not expect a stable result for it. I do not think this needs a special mentioning in the documentation. Garbage in -- garbage out. -- nosy: +serhiy.storchaka _

[issue36069] asyncio: create_connection cannot handle IPv6 link-local addresses anymore (linux)

2019-02-21 Thread twisteroid ambassador
twisteroid ambassador added the comment: Duplicate of issue35545, I believe. -- nosy: +twisteroid ambassador ___ Python tracker ___ ___

[issue20582] socket.getnameinfo() does not document flags

2019-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use the special role :manpage: for referring man pages. -- nosy: +serhiy.storchaka ___ Python tracker ___ _

[issue36073] sqlite crashes with converters mutating cursor

2019-02-21 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : It's somewhat similar to bpo-10811, but for converter function: In [197]: import sqlite3 as sqlite ...: con = sqlite.connect(':memory:', detect_types=sqlite.PARSE_COLNAMES) ...: cur = con.cursor() ...: sqlite.converters['CURSOR_INIT'] = lambd

[issue36073] sqlite crashes with converters mutating cursor

2019-02-21 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +12008 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue32657] Mutable Objects in SMTP send_message Signature

2019-02-21 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue36073] sqlite crashes with converters mutating cursor

2019-02-21 Thread SilentGhost
Change by SilentGhost : -- nosy: +ghaering versions: +Python 3.7, Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue32657] Mutable Objects in SMTP send_message Signature

2019-02-21 Thread Inada Naoki
Change by Inada Naoki : -- versions: +Python 3.8 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue33961] Inconsistency in exceptions for dataclasses.dataclass documentation

2019-02-21 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

<    1   2