[issue39254] python shebang in python3 tarball files

2020-01-07 Thread Arkadiusz Miskiewicz Arkadiusz Miskiewicz
Arkadiusz MiskiewiczArkadiusz Miskiewicz added the comment: These look to be python2 files. Since python2 is close to EOL should these be ported to python3? There are more of these in git: Lib/encodings/rot_13.py \ Lib/lib2to3/tests/data/different

[issue39254] python shebang in python3 tarball files

2020-01-07 Thread Arkadiusz Miskiewicz Arkadiusz Miskiewicz
New submission from Arkadiusz Miskiewicz Arkadiusz Miskiewicz : Python 3.8.1 files: Lib/encodings/rot_13.py \ Lib/lib2to3/tests/data/different_encoding.py \ Lib/lib2to3/tests/data/false_encoding.py \ Tools/gdb/libpython.py \

[issue38623] Python documentation should mention how to find site-packages

2020-01-07 Thread Inada Naoki
Inada Naoki added the comment: > The tutorial currently mentions its special role only briefly [7], saying: > >> * The installation-dependent default. > > We should explain that part. I'll give it a shot replacing my earlier > proposal. I don't think so. At there, the tutorial doesn't explai

[issue22107] tempfile module misinterprets access denied error on Windows

2020-01-07 Thread Jonathan Mills
Change by Jonathan Mills : -- nosy: +Jonathan Mills ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue22107] tempfile module misinterprets access denied error on Windows

2020-01-07 Thread Jonathan Mills
Change by Jonathan Mills : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue39243] CDLL __init__ no longer supports name being passed as None when the handle is not None

2020-01-07 Thread Eryk Sun
Eryk Sun added the comment: I'd like to match POSIX here by supporting path-like names. Also, I think it would be cleaner to split out the platform-specific work into a separate _load_library method, like how subprocess.Popen is designed, and to stop pretending that WINAPI LoadLibraryEx is P

[issue35163] locale: setlocale(..., 'eo') sets non-existing locale

2020-01-07 Thread Carmen Bianca Bakker
Change by Carmen Bianca Bakker : -- keywords: +patch pull_requests: +17313 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17901 ___ Python tracker ___

[issue39247] dataclass defaults and property don't work together

2020-01-07 Thread Eric V. Smith
Eric V. Smith added the comment: Your code basically becomes similar to this: sentinel = object() class FileObject: _uploaded_by: str = None uploaded_by = None def __init__(self, uploaded_by=sentinel): if uploaded_by is sentinel: self.uploaded_by = FileObject.

[issue39253] Running the test suite with --junit-xml and -R incorrectly reports refleaks

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: Oh. That explains these strange results on AMD64 RHEL7 Refleaks 3.8: https://buildbot.python.org/all/#/builders/219/builds/41 argv: [b'make', b'buildbottest', b'TESTOPTS=-R 3:3 -u-cpu --junit-xml test-results.xml -j10 ${BUILDBOT_TESTOPTS}', b'TESTPYTHONOPTS

[issue39253] Running the test suite with --junit-xml and -R incorrectly reports refleaks

2020-01-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: This is going to be very noisy now that we are using --junit-xml in the buildbots... -- ___ Python tracker ___ _

[issue39253] Running the test suite with --junit-xml and -R incorrectly reports refleaks

2020-01-07 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : ./python -m test test_list -R : --junit-xml something 0:00:00 load avg: 0.52 Run tests sequentially 0:00:00 load avg: 0.52 [1/1] test_list beginning 9 repetitions 123456789 . test_list leaked [798, 798, 798, 798] references, sum=3192 test_list

[issue38623] Python documentation should mention how to find site-packages

2020-01-07 Thread Peter Bittner
Peter Bittner added the comment: Python learners deserve to know about "site-packages" and (optionally) "dist-packages". This is a "random note", it's an explanation that is missing in the tutorial. - Site-packages "is the target directory of manually built Python packages", does someone ex

[issue27196] Eliminate 'ThemeChanged' warning when running IDLE tests

2020-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 EOL. Ned, do you still see Themed Changed? I don't on 3.8 on Macbook. with 10.14 mohave(?) -- versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker

[issue39229] library/functions.rst causes translated builds to fail

2020-01-07 Thread Julien Palard
Julien Palard added the comment: I've already seen Sphinx giving inconsistent warnings about inconsistent terms references, see https://github.com/sphinx-doc/sphinx/issues/3985. I would recommand fixing all other warnings in the file first, then tell us how it goes. --

[issue38882] IDLE should not make About be a transient of withdrawn root window

2020-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 is EOL. -- nosy: -ronaldoussoren title: IDLE should not make the about dialog be a transient of the withdrawn root window -> IDLE should not make About be a transient of withdrawn root window versions: -Python 2.7 _

[issue21995] Idle: review 'missing' attributes of pseudofiles

2020-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I changed title to 'review' (TextIOBase doc and StringIO as a pure text implementation). -- title: Idle: pseudofiles have no buffer attribute. -> Idle: review 'missing' attributes of pseudofiles versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3

[issue39252] email.contentmanager.raw_data_manager bytes handler breaks on 7bit cte

2020-01-07 Thread Ryan McCampbell
New submission from Ryan McCampbell : The email.contentmanager.set_bytes_content function which handles bytes content for raw_data_manager fails when passed cte="7bit" with an AttributeError: 'bytes' object has no attribute 'encode'. This is probably not a major use case since bytes are gener

[issue25178] IDLE: search regex errors should be in/attached to search dialog

2020-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I like the way that Open Module puts error messages in red under the entry box and allows users to correct without first clicking a modal message away. I would like to do the same here. -- assignee: -> terry.reedy nosy: -kbk, roger.serwy stage: -

[issue24816] IDLE: disable selecting debugger when user code is running

2020-01-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy stage: -> needs patch title: don't allow selecting IDLE debugger menu item when running -> IDLE: disable selecting debugger when user code is running versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6

[issue24818] IDLE: run program in debugger from edit window

2020-01-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy nosy: -kbk, roger.serwy title: no way to run program in debugger from edit window -> IDLE: run program in debugger from edit window versions: +Python 3.9 -Python 2.7, Python 3.5, Python 3.6 _

[issue24799] IDLE should detect changes to open files by other processes

2020-01-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- assignee: -> terry.reedy versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue24817] IDLE: disable format menu items when not applicable

2020-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The default selection is, now at least, the current line, so that every entry is always applicable. -- assignee: -> terry.reedy nosy: -kbk, roger.serwy resolution: -> works for me stage: -> resolved status: open -> closed title: disable format men

[issue24815] On maxOS, IDLE app menu can become nearly blank

2020-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The nearly blank menu has the Apple icon and the IDLE dropdown. I verified that this can be generated with either Debugger or IDLE Help, which are non-modal non-menu windows. Currently, IDLE has a separate menu for each editor and output and the shell. On

[issue39249] difflib SequenceMatcher 200 char length limitation for ratio calculation

2020-01-07 Thread Tim Peters
Tim Peters added the comment: Try passing autojunk=False to the SequenceMatcher constructor. More on that here: https://bugs.python.org/issue31889 -- nosy: +tim.peters ___ Python tracker

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: > Hm, I'm seeing _Py_CheckPython3() use Py_GetPrefix(), which uses > _Py_path_config.prefix? Oh right, that's the initial issue: > Later the interpreter tries to load python3.dll and uses dllpath which is > empty by default. This empty path gets joined with

[issue23434] support encoded filename in Content-Disposition for HTTP in cgi.FieldStorage

2020-01-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-07 Thread Anthony Wee
Anthony Wee added the comment: Hm, I'm seeing _Py_CheckPython3() use Py_GetPrefix(), which uses _Py_path_config.prefix? https://github.com/python/cpython/blob/c02b41b1fb115c87693530ea6a480b2e15460424/PC/getpathp.c#L1185 -- ___ Python tracker

[issue39251] outdated windows store links in WindowsApps folder

2020-01-07 Thread Steve Dower
Steve Dower added the comment: These links are controlled by Microsoft, and not by us. (Though just to make things confusing, I am the person at Microsoft who can get them updated.) We've been waiting for the ecosystem to be ready. Too many packages have been failing to install on Python 3.8

[issue39251] outdated windows store links in WindowsApps folder

2020-01-07 Thread Brian McKim
New submission from Brian McKim : When I uninstalled the windows store version 3.8 it appears to have placed two links in my \AppData\Local\Microsoft\WindowsApps folder (though they may have always been there), python.exe and python3.exe. When I run these in PowerShell both send me to the 3.7

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-01-07 Thread Ned Deily
Change by Ned Deily : -- components: -macOS nosy: +davin, pitrou -ned.deily, ronaldoussoren versions: +Python 3.9 ___ Python tracker ___ __

[issue5233] IDLE: exec IDLESTARTUP/PYTHONSTARTUP on restart

2020-01-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python

[issue39248] test_distutils fails on PPC64 Fedora 3.x

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: The problem seems to be that /tmp/subprocess.py file exists: when /tmp/tmpo2bw8_ak.py temporary script was run, /tmp/subprocess.py was used rather than the subprocess of the stdlib. -- ___ Python tracker

[issue39248] test_distutils fails on PPC64 Fedora 3.x

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: It seems like a change on the worker rather than in the code, since 3.7, 3.8 and master branches are affected. David Edelsohn: Would you mind to have a look at this issue? PPC64 Fedora 3.7: https://buildbot.python.org/all/#builders/32/builds/40 PPC64 Fedora

[issue29778] _Py_CheckPython3 uses uninitialized dllpath when embedder sets module path with Py_SetPath

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: > It looks like Py_SetPath() sets the _Py_path_config.prefix to "", but I'm not > seeing anything else set it to a real value? In the master branch, _Py_CheckPython3() doesn't use _Py_path_config.prefix. _PyPathConfig_InitDLLPath() calls GetModuleFileNameW(P

[issue39243] CDLL __init__ no longer supports name being passed as None when the handle is not None

2020-01-07 Thread David Heffernan
David Heffernan added the comment: I would approve of that On Tue, 7 Jan 2020, 20:43 Steve Dower, wrote: > > Steve Dower added the comment: > > In that case, we should refactor the init method to check whether handle > has been specified earlier, so that it's obvious that the two conditiona

[issue39250] os.path.commonpath() not so common

2020-01-07 Thread Zachary Ware
Zachary Ware added the comment: No problem :) -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39243] CDLL __init__ no longer supports name being passed as None when the handle is not None

2020-01-07 Thread Steve Dower
Steve Dower added the comment: In that case, we should refactor the init method to check whether handle has been specified earlier, so that it's obvious that the two conditional blocks are never executed in that case. -- ___ Python tracker

[issue39250] os.path.commonpath() not so common

2020-01-07 Thread Filipp Lepalaan
Filipp Lepalaan added the comment: Hi Zach! You're absolutely right. Forgive my ignorance. Too much staring at the trees and not seeing the forest (or vice versa). commonpath() works as advertised. I'm just looking for something different. Sorry for the false alarm. You can close this issue

[issue38870] Expose ast.unparse in the ast module

2020-01-07 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue39239] select.epoll.unregister(fd) should not ignore EBADF

2020-01-07 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue39243] CDLL __init__ no longer supports name being passed as None when the handle is not None

2020-01-07 Thread David Heffernan
David Heffernan added the comment: Personally I'd hang this off whether handle has been specified. It seems pointless to set the mode if you are never going to use it. -- ___ Python tracker

[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

2020-01-07 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: Thank for the (re) explanation. Unicode is tough! Basically this is the issue i have really in the end with the folding: what used to be a proper alpha string is not longer one after a lower() because the second codepoint is a punctuation and I use a rege

[issue39250] os.path.commonpath() not so common

2020-01-07 Thread Zachary Ware
Zachary Ware added the comment: I'm not seeing how `/var` has `/var/log` in common with `/var/log` and `/var/log/nginx`. -- nosy: +zach.ware ___ Python tracker ___ __

[issue39243] CDLL __init__ no longer supports name being passed as None when the handle is not None

2020-01-07 Thread Steve Dower
Change by Steve Dower : -- keywords: +easy, newcomer friendly ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39243] CDLL __init__ no longer supports name being passed as None when the handle is not None

2020-01-07 Thread Steve Dower
Steve Dower added the comment: Good catch. We should probably make the line 351 check "if name and ('/' in name ..." like the others in the same function. -- keywords: +3.8regression ___ Python tracker ___

[issue37194] Move new vector private declarations to the internal C API

2020-01-07 Thread Nick Coghlan
Change by Nick Coghlan : -- pull_requests: -17306 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue39250] os.path.commonpath() not so common

2020-01-07 Thread Filipp Lepalaan
New submission from Filipp Lepalaan : The documentation describes os.path.commonpath() as: "Return the longest common sub-path of each pathname in the sequence paths. Raise ValueError if paths contain both absolute and relative pathnames, the paths are on the different drives or if paths is e

[issue39161] Py_NewInterpreter docs need updating for multi-phase initialization

2020-01-07 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +17312 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17896 ___ Python tracker ___

[issue39249] difflib SequenceMatcher 200 char length limitation for ratio calculation

2020-01-07 Thread Daniel Pezoa
New submission from Daniel Pezoa : I am using the SequenceMatcher object of the difflib library and I have noticed that a drastic failure occurs when the text strings exceed 200 characters Source code: = from difflib import S

[issue39247] dataclass defaults and property don't work together

2020-01-07 Thread Eric V. Smith
Change by Eric V. Smith : -- assignee: -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue23434] support encoded filename in Content-Disposition for HTTP in cgi.FieldStorage

2020-01-07 Thread R. David Murray
R. David Murray added the comment: Are you saying there is no (http) RFC compliant way to fix this, or no way to fix it with the email library parsers? If the latter, the library is pretty flexible and for internal stdlib use it would probably be permissible to directly call methods in the

[issue23147] Possible error in _header_value_parser.py

2020-01-07 Thread R. David Murray
R. David Murray added the comment: Thanks for the ping. Whether or not Serhiy's patch fixed the original problem, the algorithm rewrite has happened so this issue is no longer relevant in any case. -- stage: test needed -> resolved status: open -> closed ___

[issue39247] dataclass defaults and property don't work together

2020-01-07 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue39248] test_distutils fails on PPC64 Fedora 3.x

2020-01-07 Thread STINNER Victor
New submission from STINNER Victor : https://buildbot.python.org/all/#/builders/8/builds/136 0:11:37 load avg: 2.21 [230/420/1] test_distutils failed Traceback (most recent call last): File "/tmp/tmpo2bw8_ak.py", line 5, in byte_compile(files, optimize=1, force=None, File "/home/shage

[issue37194] Move new vector private declarations to the internal C API

2020-01-07 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +17311 pull_request: https://github.com/python/cpython/pull/17893 ___ Python tracker ___ ___

[issue38871] lib2to3 generates invalid code with filter and ternary operator

2020-01-07 Thread miss-islington
miss-islington added the comment: New changeset 39a5c889d30d03a88102e56f03ee0c95db198fb3 by Miss Islington (bot) in branch '3.8': bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780) https://github.com/python/cpython/commit/39a5c889d30d03a88102e56f03ee0c95db198fb

[issue38871] lib2to3 generates invalid code with filter and ternary operator

2020-01-07 Thread miss-islington
miss-islington added the comment: New changeset 535a3c4e3da2f0076bd62f04fb2cc44999fc2419 by Miss Islington (bot) in branch '3.7': bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780) https://github.com/python/cpython/commit/535a3c4e3da2f0076bd62f04fb2cc44999fc241

[issue39247] dataclass defaults and property don't work together

2020-01-07 Thread Michael Robellard
New submission from Michael Robellard : I ran into a strange issue while trying to use a dataclass together with a property. I have it down to a minumum to reproduce it: import dataclasses @dataclasses.dataclass class FileObject: _uploaded_by: str = dataclasses.field(default=None, init=F

[issue13601] sys.stderr should be line-buffered when stderr is not a TTY

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: So it just took 9 years to fix this old bug :-) -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue38871] lib2to3 generates invalid code with filter and ternary operator

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: Thanks Zoran Simic to the bug report, and thanks Dong-hee Na for fixing it. It's fixed in the master branch and backports to 3.7 and 3.8 will land as soon as the CI tests pass. -- resolution: -> fixed stage: patch review -> resolved status: open ->

[issue38871] lib2to3 generates invalid code with filter and ternary operator

2020-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +17310 pull_request: https://github.com/python/cpython/pull/17900 ___ Python tracker ___ __

[issue38871] lib2to3 generates invalid code with filter and ternary operator

2020-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +17309 pull_request: https://github.com/python/cpython/pull/17899 ___ Python tracker ___ __

[issue38871] lib2to3 generates invalid code with filter and ternary operator

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset b821173b5458d137c8d5edb6e9b4997aac800a38 by Victor Stinner (Dong-hee Na) in branch 'master': bpo-38871: Fix lib2to3 for filter-based statements that contain lambda (GH-17780) https://github.com/python/cpython/commit/b821173b5458d137c8d5edb6e9b4

[issue38615] imaplib has no timeout setting

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: Thanks Jairo Llopis for the feature request and thanks Dong-hee Na for actually implementing it! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue38615] imaplib has no timeout setting

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 13a7ee8d62dafe7d2291708312fa2a86e171c7fa by Victor Stinner (Dong-hee Na) in branch 'master': bpo-38615: Add timeout parameter for IMAP4 and IMAP4_SSL constructor (GH-17203) https://github.com/python/cpython/commit/13a7ee8d62dafe7d2291708312fa2a8

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-07 Thread Vinay Sajip
Change by Vinay Sajip : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset d46dec981abdefba56336521c7587c8554bb1b9d by Vinay Sajip (Miss Islington (bot)) in branch '3.7': bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689) (GH-17898) https://github.com/python/cpython/commit/d46dec981

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset bff48c6734f936257b0cfae58dbea67d43e3b245 by Vinay Sajip (Miss Islington (bot)) in branch '3.8': bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689) (GH-17897) https://github.com/python/cpython/commit/bff48c673

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +17308 pull_request: https://github.com/python/cpython/pull/17898 ___ Python tracker ___ __

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +17307 pull_request: https://github.com/python/cpython/pull/17897 ___ Python tracker ___ __

[issue39198] Lock may not be released in Logger.isEnabledFor

2020-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset 950c6795aa0ffa85e103a13e7a04e08cb34c66ad by Vinay Sajip (Derek Brown) in branch 'master': bpo-39198: Ensure logging global lock is released on exception in isEnabledFor (GH-17689) https://github.com/python/cpython/commit/950c6795aa0ffa85e103a13e7a

[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

2020-01-07 Thread Christian Heimes
Christian Heimes added the comment: PS: The first entry of the result is a decomposed string, too: >>> r = [x.lower() for x in 'İ'] >>> hex(ord(r[0][0])) '0x69' >>> hex(ord(r[0][1])) '0x307' -- nosy: +christian.heimes ___ Python tracker

[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: > I would expect that the results would be the same in both cases. It's not. Read again my previous comment. >>> ["U+%04x" % ord(ch) for ch in "İ".lower()] ['U+0069', 'U+0307'] -- ___ Python tracker

[issue39236] [venv] Adding a .gitignore file to virtual environments

2020-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: I'm -0.5 on this. Beginners will probably shoot themselves in the foot multiple ways using git (or any DVCS), in terms of checking things in they didn't mean to (e.g. build artifacts which are not in the venv). As they can easily undo this, I don't think we nee

[issue39226] venv does not include pythonXX.lib

2020-01-07 Thread Vinay Sajip
Vinay Sajip added the comment: The python38.lib file isn't present in any venv, whether created by virtualenv or "python -m venv". I believe the mod_wsgi build process may not cater for building in a venv on Windows. When created with "python -m venv", a venv contains the file pyvenv.cfg wit

[issue37194] Move new vector private declarations to the internal C API

2020-01-07 Thread Petr Viktorin
Change by Petr Viktorin : -- pull_requests: +17306 pull_request: https://github.com/python/cpython/pull/17896 ___ Python tracker ___ ___

[issue39232] asyncio crashes when tearing down the proactor event loop

2020-01-07 Thread Michael Hall
Michael Hall added the comment: I don't know if it would be feasible to add this to asyncio, but having a way to mark a resource as needing to be deterministically cleaned up at loop close could probably solve this as well as the underlying reasons why the transports are leaning on __del__ b

[issue34723] lower() on Turkish letter "İ" returns a 2-chars-long string

2020-01-07 Thread Philippe Ombredanne
Philippe Ombredanne added the comment: There is a weird thing though (using Python 3.6.8): >>> [x.lower() for x in 'İ'] ['i̇'] >>> [x for x in 'İ'.lower()] ['i', '̇'] I would expect that the results would be the same in both cases. (And this is a source of a bug for some code of mine) --

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-07 Thread Andrew Svetlov
Change by Andrew Svetlov : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-07 Thread Andrew Svetlov
Andrew Svetlov added the comment: New changeset 4112a3da2e01ecc19e9f54b8ac7b383b6f5e85c8 by Andrew Svetlov in branch '3.8': [3.8] bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863) (#17894) https://github.com/python/cpython/commit/4112a3da2e01ecc19e9f54b8ac7b383b6f5e85c8 -- _

[issue39246] shutil.rmtree is inefficient because of using os.scandir instead of os.walk

2020-01-07 Thread Felipe A. Hernandez
New submission from Felipe A. Hernandez : os.rmtree has fd-based symlink replacement protection when iterating with scandir (after bpo-28564). This logic could be greatly simplified simply by os.fwalk in supported platforms, which already implements a similar (maybe safer) protection. --

[issue39239] select.epoll.unregister(fd) should not ignore EBADF

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5b23f7618d434f3000bde482233c8642a6eb2c67 by Victor Stinner in branch 'master': bpo-39239: epoll.unregister() no longer ignores EBADF (GH-17882) https://github.com/python/cpython/commit/5b23f7618d434f3000bde482233c8642a6eb2c67 -- _

[issue38209] Simplify dataclasses.InitVar by using __class_getitem__()

2020-01-07 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-07 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +17305 pull_request: https://github.com/python/cpython/pull/17895 ___ Python tracker ___ __

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-07 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +17304 pull_request: https://github.com/python/cpython/pull/17894 ___ Python tracker ___ __

[issue39161] Py_NewInterpreter docs need updating for multi-phase initialization

2020-01-07 Thread Petr Viktorin
Petr Viktorin added the comment: Thanks for the report. I'll draft something better. -- ___ Python tracker ___ ___ Python-bugs-list

[issue39191] Coroutine is awaited despite an exception in run_until_complete()

2020-01-07 Thread miss-islington
miss-islington added the comment: New changeset 10ac0cded26d91c3468e5e5a87cecad7fc0bcebd by Miss Islington (bot) (Andrew Svetlov) in branch 'master': bpo-39191: Fix RuntimeWarning in asyncio test (GH-17863) https://github.com/python/cpython/commit/10ac0cded26d91c3468e5e5a87cecad7fc0bcebd --

[issue38870] Expose ast.unparse in the ast module

2020-01-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > We might need to tweak the documentation @pablogsal, Maybe we can say that is 'as close as possible' if you pass an arbitrary AST object (if only happens with Constants we could documment exactly that). Let me think about this and I will make PR u

[issue39245] Public API for Vectorcall (PEP 590)

2020-01-07 Thread Petr Viktorin
Change by Petr Viktorin : -- keywords: +patch pull_requests: +17303 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17893 ___ Python tracker ___ __

[issue39245] Public API for Vectorcall (PEP 590)

2020-01-07 Thread Petr Viktorin
Change by Petr Viktorin : -- components: +C API versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue36974] Implement PEP 590

2020-01-07 Thread Petr Viktorin
Petr Viktorin added the comment: issue39245 tracks making the API public in Python 3.9. -- ___ Python tracker ___ ___ Python-bugs-l

[issue39245] Public API for Vectorcall (PEP 590)

2020-01-07 Thread Petr Viktorin
New submission from Petr Viktorin : As per PEP 590, in Python 3.9 the Vectorcall API will be public, i.e. without leading underscores. -- messages: 359506 nosy: petr.viktorin priority: normal severity: normal status: open title: Public API for Vectorcall (PEP 590)

[issue18969] test suite: enable faulthandler timeout in assert_python

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: I modified regrtest to use process groups in bpo-38502. It doesn't solve exactly this issue, but it does fix the overall problem of leaking running processes when a test fails for various reasons. For example, when using regrtest in multiprocessing (-jN) mod

[issue38502] regrtest: use process groups

2020-01-07 Thread STINNER Victor
STINNER Victor added the comment: The test_pty has been fixed. regrtest now calls setsid() when using multiprocessing (-jN), but only in the main branch. It's a nice feature, but I'm not comfortable about backporting it yet. Maybe if tests become too unstable on other branches, we may backpo

[issue39244] multiprocessing.get_all_start_methods() wrong default on macOS

2020-01-07 Thread Stefan Holek
New submission from Stefan Holek : In Python 3.8 the default start method has changed from fork to spawn on macOS. https://docs.python.org/3/whatsnew/3.8.html#multiprocessing get_all_start_methods() says: "Returns a list of the supported start methods, the first of which is the default." https

[issue38870] Expose ast.unparse in the ast module

2020-01-07 Thread Batuhan
Batuhan added the comment: We might need to tweak the documentation @pablogsal, > Unparse an ast.AST object and generate a string with code that would produce > an equivalent ast.AST object if parsed back with ast.parse(). If I interpret `equivalent` correctly, this explanation is false und

[issue38870] Expose ast.unparse in the ast module

2020-01-07 Thread Batuhan
Change by Batuhan : -- pull_requests: +17302 pull_request: https://github.com/python/cpython/pull/17892 ___ Python tracker ___ ___ P

[issue39243] CDLL __init__ no longer supports name being passed as None when the handle is not None

2020-01-07 Thread David Heffernan
New submission from David Heffernan : When creating an instance of CDLL (or indeed WinDLL) for a DLL that is already loaded, you pass the HMODULE in the handle argument to the constructor. In older versions of ctypes you could pass None as the name argument when doing so. However, the changes

[issue38870] Expose ast.unparse in the ast module

2020-01-07 Thread Batuhan
Batuhan added the comment: ExtSlice nodes without second value doesn't roundtrip properly source: x[1:2,] Expr( value=Subscript( value=Name(id='x', ctx=Load()), -slice=ExtSlice( -dims=[ -Slice( -

[issue39138] import a pycapsule object that's attached on many modules

2020-01-07 Thread Yorkie Liu
Yorkie Liu added the comment: Ping Python Team. -- resolution: remind -> ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >