[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42024] Exception ignored in: .remove at 0x7f6a325f2ea0>

2020-10-12 Thread jayesh
New submission from jayesh : Team, I am getting python warning messages while run ansible. Previously I was using python 3.5.3, but after read the below article, I upgraded it with python 3.5.4. ref: https://github.com/ansible/ansible/issues/21982 Still facing the same issues. Kindly find

[issue42023] Argparse: Add a "display" arg

2020-10-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41822] Document the meaning of values for sys.float_info.rounds

2020-10-12 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37461] email.parser.Parser hang

2020-10-12 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42010] Generic types accept indexing/subscripting, causing confusion

2020-10-12 Thread Ken Jin
Ken Jin added the comment: Partly due to Python 3.9.0's nascency, I've not been able to find online cases of beginners getting confused by this specific behavior. Wow I didn't know about integer variadics, assuming they make their way into 3.11, I can see why it'd be better to leave that in

[issue40422] Light refactor: create a common _Py_closerange API

2020-10-12 Thread Kyle Evans
Change by Kyle Evans : -- pull_requests: +21651 pull_request: https://github.com/python/cpython/pull/22680 ___ Python tracker ___

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-12 Thread Dennis Sweeney
Dennis Sweeney added the comment: I used random_bench.py to compare PR 22679 to Master, and the results are in bench_results.txt. Results were varied. I suppose this depends on what cases we want to optimize for. -- Added file: https://bugs.python.org/file49512/random_bench.py

[issue40422] Light refactor: create a common _Py_closerange API

2020-10-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 64eb259cc1e42a5f74b5911a518d2c50daa8d50b by Kyle Evans in branch 'master': bpo-40422: Move _Py_*_SUPPRESS_IPH bits into _Py_closerange (GH-22672) https://github.com/python/cpython/commit/64eb259cc1e42a5f74b5911a518d2c50daa8d50b --

[issue39481] Implement PEP 585 (Type Hinting Generics In Standard Collections)

2020-10-12 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 1c217652b690c184b43d8e2b6529a60a14e64328 by Saiyang Gou in branch '3.9': [3.9] bpo-39481: Fix duplicate SimpleQueue type in test_genericalias.py (GH-22619) (#22624)

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-12 Thread Dennis Sweeney
Dennis Sweeney added the comment: PR 22679 is a draft that does the two-way algorithm but also adds both of the tricks from Fredrik's implementation: a bit-set "bloom filter" and remembering the skip-distance between some pair of characters. -- Added file:

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-12 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +21650 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22679 ___ Python tracker ___

[issue42010] Generic types accept indexing/subscripting, causing confusion

2020-10-12 Thread Guido van Rossum
Guido van Rossum added the comment: Have you observed actual users getting confused by this? (E.g. StackOverflow or mailing list posts.) I would assume that if you try to *do* anything with the resulting object it's going to cause a traceback, and from there it's pretty straightforward to

[issue41756] Do not always use exceptions to return result from coroutine

2020-10-12 Thread Vladimir Matveev
Change by Vladimir Matveev : -- pull_requests: +21649 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22677 ___ Python tracker ___

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Eryk Sun
Eryk Sun added the comment: > So I'm +1 on fixing this by calling realpath. In POSIX, calculate_path() in Modules/getpath.c calls calculate_argv0_path() before it calls calculate_read_pyenv(), and calculate_argv0_path() in turn calls resolve_symlinks(>argv0_path). Thus "pyvenv.cfg" isn't

[issue42020] interpreter hangs forever on invalid input

2020-10-12 Thread STINNER Victor
STINNER Victor added the comment: I don't see anything wrong with Python itself and I suggest to close the issue as "not a bug". -- ___ Python tracker ___

[issue28002] ast.unparse can't roundtrip some f-strings

2020-10-12 Thread Shantanu
Shantanu added the comment: Bumping again! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Henry Schreiner
Henry Schreiner added the comment: I tested before the patch, and I got 17 segfaults running a pybind11 module 20 times. After the patch, I ran about 50 times and had no segfaults! -- ___ Python tracker

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread miss-islington
miss-islington added the comment: New changeset 8a12503b4532e33d590ecea7eb94cd0e6b0f1488 by Miss Skeleton (bot) in branch '3.9': bpo-42015: Reorder dereferencing calls in meth_dealloc, to make sure m_self is kept alive long enough (GH-22670)

[issue41756] Do not always use exceptions to return result from coroutine

2020-10-12 Thread Yury Selivanov
Yury Selivanov added the comment: > Also, in Include/abstract.h it should only be available for limited C API >= > 3.10: Vladimir, could you please submit a PR? > We now should discuss the behavior of PySend_Iter() if value is NULL. It is > not documented, the current behavior differs from

[issue41756] Do not always use exceptions to return result from coroutine

2020-10-12 Thread Yury Selivanov
Change by Yury Selivanov : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42023] Argparse: Add a "display" arg

2020-10-12 Thread ThatXliner
New submission from ThatXliner : In argparse, I've always wanted a way to make colored help text like those of poetry and pipenv. But argparse's show help isn't well documented (Therefore, I can't find a way to completely modify the help text), and the metavar arg isn't really helpful. I

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +21648 pull_request: https://github.com/python/cpython/pull/22674 ___ Python tracker

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 04b8631d84a870dda456ef86039c1baf34d08500 by Yannick Jadoul in branch 'master': bpo-42015: Reorder dereferencing calls in meth_dealloc, to make sure m_self is kept alive long enough (GH-22670)

[issue42022] Allow ensurepip to work without bundled wheels

2020-10-12 Thread Filipe Laíns
New submission from Filipe Laíns : Some Linux distributions, such as Debian, have guidelines against shipping things like prebuilt wheels. Taking Debian as an example, they remove the pip and setuptools wheels and consequently break ensurepip. This also has some implications in the venv

[issue42017] Add new type in typing

2020-10-12 Thread Guido van Rossum
Guido van Rossum added the comment: You can easily define that yourself if you need it, though honestly the utility seems marginal. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Notepad++ Find by marks all matches in the current doc as 'found', with a distinct (darker) highlight for the 'selected' found. Double clicking selects a word, as in IDLE, *and* finds all matches. One can then either cut/copy/replace the selection, as in

[issue42021] Fix possible ref. leaks in _sqlite3 module initialisation

2020-10-12 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-12 Thread Tal Einat
Tal Einat added the comment: I should mention one *major* advantage of using a search/replace bar: Live highlighting of matches *as you type*. It really is a vastly better experience; if you haven't tried it yet, please do. -- ___ Python tracker

[issue42021] Fix possible ref. leaks in _sqlite3 module initialisation

2020-10-12 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-12 Thread Tal Einat
Tal Einat added the comment: The version in the PR is modeled after similar features in IDEs, not browsers. I mentioned browsers since they are very commonly used, and to the best of my knowledge all modern browsers use search bars. Therefore, as a UI element, search bars are now

[issue42020] interpreter hangs forever on invalid input

2020-10-12 Thread Eryk Sun
Eryk Sun added the comment: In Windows 10 2004, CSI is currently supported by the console host (conhost.exe) if virtual-terminal mode is enabled. Windows Terminal Preview supports many more C1 control codes, as will conhost.exe in the next release of Windows 10. This should be 'fun'

[issue42021] Fix possible ref. leaks in _sqlite3 module initialisation

2020-10-12 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +21647 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22673 ___ Python tracker

[issue42020] interpreter hangs forever on invalid input

2020-10-12 Thread Eryk Sun
Eryk Sun added the comment: The terminal you're using apparently implements C1 controls [1]. U+009B is the Control Sequence Introducer (CSI) for ANSI escape sequences. U+0090 starts a Device Control String (DCS), and it gets terminated by U+009C, a String Terminator (ST). For example, in

[issue41756] Do not always use exceptions to return result from coroutine

2020-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Few things I forget about. The new C API function should be exported in PC/python3dll.c. Also, in Include/abstract.h it should only be available for limited C API >= 3.10: #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A ... #endif We now

[issue42021] Fix possible ref. leaks in _sqlite3 module initialisation

2020-10-12 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Handle PyDict_SetItemString() errors in _sqlite3 init by dereferencing the item object and then goto error. -- components: Library (Lib) messages: 378516 nosy: erlendaasland priority: normal severity: normal status: open title: Fix possible

[issue41756] Do not always use exceptions to return result from coroutine

2020-10-12 Thread Yury Selivanov
Yury Selivanov added the comment: With the latest PR now merged this issue can be closed. Please reopen if there are any other action items left. -- stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37209] Add what's new entries for pickle enhancements

2020-10-12 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42020] interpreter hangs forever on invalid input

2020-10-12 Thread denis
New submission from denis : Python 3.8.5, Python 3.7.3 When trying to print invalid unicode, interpreter goes to a completely unresponsive state >>> print("\x9b") eyboardInterrupt >>> print("\xa5") ¥ >>> print("\x95") >>> print("\x90") denis@debian:~$ -- components: Unicode

[issue42017] Add new type in typing

2020-10-12 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42019] Override MagicMock special methods

2020-10-12 Thread Aristotelis Mikropoulos
New submission from Aristotelis Mikropoulos : This is more of a question whether the following is intended behavior: Subclassing unittest.mock.MagicMock and overriding one of the special (double underscore) methods has no effect. The default MagicMock method implementation still stands. This

[issue40422] Light refactor: create a common _Py_closerange API

2020-10-12 Thread Kyle Evans
Change by Kyle Evans : -- pull_requests: +21646 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/22672 ___ Python tracker ___

[issue42018] winreg SetValue(Ex) should mention integer as an acceptable value

2020-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +serhiy.storchaka type: -> enhancement versions: +Python 3.10, Python 3.8 ___ Python tracker ___

[issue42018] winreg SetValue(Ex) should mention integer as an acceptable value

2020-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Paul Moore
Paul Moore added the comment: I'm inclined to think that creating a venv from within another venv should be allowed. Tools like pipx can result in *other* tools being run from within a virtual environment, and I don't think it's good to disallow that usage - as an example, I have

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Yannick for your report and PR! -- ___ Python tracker ___ ___ Python-bugs-list

[issue41561] test_ssl fails in Ubuntu 20.04: test_min_max_version_mismatch

2020-10-12 Thread Bug Reporter
Bug Reporter added the comment: I got an advice and posted the question at https://answers.launchpad.net/ubuntu/+source/openssl/+question/693423 -- ___ Python tracker ___

[issue34976] IDLE: Replace the search dialog with a search bar

2020-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Notepad++, which I use, uses a tabbed dialog for search and replace, which I think I would like to somewhat imitate. Or just have one search and replace dialog. I need to experiment. I don't like the Firefox toolbar and consider it buggy. In any case,

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2020-10-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue42017] Add new type in typing

2020-10-12 Thread ThatXliner
Change by ThatXliner : -- versions: +Python 3.9 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42017] Add new type in typing

2020-10-12 Thread ThatXliner
Change by ThatXliner : -- versions: +Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42018] winreg SetValue(Ex) should mention integer as an acceptable value

2020-10-12 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 2.0 -> 3.0 pull_requests: +21644 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22671 ___ Python tracker

[issue42018] winreg SetValue(Ex) should mention integer as an acceptable value

2020-10-12 Thread Kevin Wojniak
New submission from Kevin Wojniak : On https://docs.python.org/3/library/winreg.html For SetValue and SetValueEx is says: > value is a string that specifies the new value. but value can also be an integer if the type is DWORD. Here's a test that shows that:

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Steve Dower
Steve Dower added the comment: Thanks for figuring that out, Eryk. Probably we should just update venv to do a realpath(sys._base_executable) to handle the venv-from-symlinked-venv scenario. Though I'd also be quite happy to just disallow that entirely (as we used to?). If you enable

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Yannick Jadoul
Yannick Jadoul added the comment: Yes, sorry for the delay; I got caught up in something else. Meanwhile, https://github.com/python/cpython/pull/22670 should solve our issues. I think Henry confirmed this locally? -- ___ Python tracker

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Yannick Jadoul
Change by Yannick Jadoul : -- keywords: +patch pull_requests: +21643 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22670 ___ Python tracker ___

[issue42017] Add new type in typing

2020-10-12 Thread ThatXliner
New submission from ThatXliner : Because there is a typing.AnyStr (which is equal to AnyStr = TypeVar("AnyStr", str, bytes)), I think there should be a AnyNum which is equivalent to from decimal import Decimal from fractions import Fraction AnyNum = TypeVar("AnyNum", int, float, complex,

[issue21927] BOM appears in stdin when using Powershell

2020-10-12 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Eryk for following up. Glad to hear the issue has been fixed upstream! -- ___ Python tracker ___

[issue42016] Add ksh to venv examples

2020-10-12 Thread Fibonacci
New submission from Fibonacci : Add an example on how to source with the korn shell (tested on OpenBSD). Maybe the bash/zsh example can be changed to use the dot to source the file, then it could be included there. Diff attached. -- assignee: docs@python components: Documentation

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you mind to create a PR Yannick? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Henry Schreiner
Change by Henry Schreiner : -- nosy: +Henry Schreiner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42011] Documentation for logging.Filter.filter reports the wrong return type

2020-10-12 Thread Vinay Sajip
Change by Vinay Sajip : -- versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42011] Documentation for logging.Filter.filter reports the wrong return type

2020-10-12 Thread Vinay Sajip
Vinay Sajip added the comment: I agree that the documentation now should use Booleans rather than ints for the return type. It's a hangover from the pre-bool days of Python 1.5.2 ... > P.S. As a side note, the API for filter() is quite counter-intuitive That depends on if you consider the

[issue42015] Order of decrementing reference counts in meth_dealloc

2020-10-12 Thread Yannick Jadoul
New submission from Yannick Jadoul : In Python 3.9, the line `Py_XDECREF(PyCFunction_GET_CLASS(m));` was added to `meth_dealloc` (in `methodobject.c`). Unfortunately for pybind11, it's inserted exactly two lines too low, since it accesses the `PyMethodDef` and we store the `PyMethodDef`

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Eryk Sun
Eryk Sun added the comment: This issue is partly due to bpo-8901, which changed the behavior of the -E and -I command-line options to make them ignore the default PythonPath value in the registry key "Software\Python\PythonCore\X.Y\PythonPath". The change itself is not wrong. It's just

[issue42004] Allow uploading files with SimpleHTTPRequestHandler

2020-10-12 Thread Javier Ayres
Javier Ayres added the comment: I see. To be honest I didn't know FieldStorage at all, it was the best way I found of dealing with file data in requests using just the standard library. If you think this feature makes sense and it could be included, I could look into removing the

[issue40422] Light refactor: create a common _Py_closerange API

2020-10-12 Thread Kyle Evans
Kyle Evans added the comment: Excellent, thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41282] Deprecate and remove distutils

2020-10-12 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42011] Documentation for logging.Filter.filter reports the wrong return type

2020-10-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42007] Line continuation after Boolean operation

2020-10-12 Thread Eric V. Smith
Eric V. Smith added the comment: Agreed that this isn't likely to change. If you have a concrete proposal for how the language parsing rules would change in order to support this, you should post it to the python-ideas mailing list. If that discussion results in a consensus, then we can

[issue41977] ctypes array inside structure requires explicit garbage collection

2020-10-12 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42014] shutil.rmtree calls onerror with different function than failed

2020-10-12 Thread Michal Čihař
New submission from Michal Čihař : The onerror callback is called with os.lstat when the actual failing function is os.open. To reproduce create directory that can not be listed: import os import shutil def onerror(func, path, exc_info): print(func) os.mkdir("test") os.chmod("test", 0)

[issue41990] venv module clashes with pip --user ... improve coordination.

2020-10-12 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2020-10-12 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg378489 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Eryk Sun
Eryk Sun added the comment: > Well, actually the environment variables /should/ not matter as -I > implies -E. The operative word there is "should". I was grasping for anything that might explain why I couldn't reproduce the issue. > Ok, the missing link is that the python you run into

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
Bernat Gabor added the comment: > We need more information about the specific environment this is triggering. Both Gitub Actions Windows CPython3.9 or installer as downloaded from (on Windows 10) https://www.python.org/downloads/release/python-390/. > PYTHONHOME should not be set all.

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
Bernat Gabor added the comment: Ok, the missing link is that the python you run into needs to be also a symlink venv: ❯ py -m venv env --without-pip --clear --symlinks ❯ .\env\Scripts\python.exe -c "import venv, subprocess; venv.EnvBuilder(with_pip=False, symlinks=True).create('venv');

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Filipe Laíns
Filipe Laíns added the comment: Well, actually the environment variables /should/ not matter as -I implies -E. -- ___ Python tracker ___

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Filipe Laíns
Filipe Laíns added the comment: This error most likely happens because sys.path isn't being set properly and the standard library isn't being included. We need more information about the specific environment this is triggering. Which CPython build are you using? The one from Github Actions,

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Eryk Sun
Eryk Sun added the comment: What about the PYTHONHOME and PYTHONPATH environment variables? >>> 'PYTHONHOME' in os.environ False >>> 'PYTHONPATH' in os.environ False PYTHONHOME should not be set all. PYTHONPATH needs to be set carefully. It should never include

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
Bernat Gabor added the comment: ❯ py -c 'import sys; print(sys.version)' 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] -- ___ Python tracker

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Eryk Sun
Eryk Sun added the comment: I can't reproduce the issue with the normal 3.9.0 distribution from python.org. For example: >>> venv.EnvBuilder(with_pip=False, symlinks=True).create("venv") >>> subprocess.check_call(["venv\\Scripts\\python.exe", "-Ic", "import sys;

[issue38912] test_asyncio altered the execution environment

2020-10-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21927] BOM appears in stdin when using Powershell

2020-10-12 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this as a third-party issue with older versions of PowerShell. Newer versions of PowerShell set the output encoding to UTF-8 without a BOM preamble. For example: PS C:\> $PSVersionTable.PSVersion Major Minor Patch PreReleaseLabel BuildLabel

[issue42008] Internal Random class calling seed() with incorrect argument

2020-10-12 Thread Amir Mohamadi
Change by Amir Mohamadi : -- keywords: +patch pull_requests: +21641 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22668 ___ Python tracker ___

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
Change by Bernat Gabor : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___

[issue42013] venv on Windows with symlinks is broken if invoked with -I

2020-10-12 Thread Bernat Gabor
New submission from Bernat Gabor : Here's a small reproducible, run it on a Windows OS that has symlinks enabled: import shutil import venv import subprocess shutil.rmtree("venv", ignore_errors=True) venv.EnvBuilder(with_pip=False, symlinks=True).create("venv") # works

[issue42012] typing support in wsgiref

2020-10-12 Thread Sebastian Rittau
New submission from Sebastian Rittau : In typeshed (the repository for stdlib type annotations), we have defined a bunch of types to support annotating WSGI interfaces. See https://github.com/python/typeshed/blob/master/stdlib/2and3/_typeshed/wsgi.pyi for the current version. Unfortunately

[issue35155] Clarify Protocol Handlers in urllib.request Docs

2020-10-12 Thread Irit Katriel
Irit Katriel added the comment: This seems complete, can it be closed? -- nosy: +iritkatriel ___ Python tracker ___ ___

[issue42008] Internal Random class calling seed() with incorrect argument

2020-10-12 Thread Amir Mohamadi
Amir Mohamadi added the comment: Can I open a PR for it? -- nosy: +Amir ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42010] Generic types accept indexing/subscripting, causing confusion

2020-10-12 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42011] Documentation for logging.Filter.filter reports the wrong return type

2020-10-12 Thread Riccardo Coccioli
New submission from Riccardo Coccioli : The documentation for the logging.Filter().filter() method states: #- Is the specified record to be logged? Returns 0 for no, nonzero for yes. If deemed appropriate, the record may be modified in-place. #- While its implementation returns a

[issue38912] test_asyncio altered the execution environment

2020-10-12 Thread STINNER Victor
STINNER Victor added the comment: Another failure on aarch64 RHEL7 Refleaks 3.9: https://buildbot.python.org/all/#builders/122/builds/62 0:53:43 load avg: 0.97 [424/425/1] test_asyncio failed (env changed) (53 min 34 sec) -- running: test_pydoc (29 min 2 sec) beginning 6 repetitions 123456

[issue41833] threading.Thread: use target name if the name parameter is omitted

2020-10-12 Thread STINNER Victor
STINNER Victor added the comment: Cool, my threading change works as expected! The name of the target function was logged in bpo-41739 issue. https://buildbot.python.org/all/#/builders/509/builds/172 0:00:28 load avg: 3.58 [ 36/424/1] test_logging failed (env changed) Warning --

[issue41739] test_logging: test_race_between_set_target_and_flush() leaks threads (threading_cleanup() failed to cleanup ...)

2020-10-12 Thread STINNER Victor
STINNER Victor added the comment: Ok, test_race_between_set_target_and_flush() should no longer leak dangling threads. I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue41739] test_logging: test_race_between_set_target_and_flush() leaks threads (threading_cleanup() failed to cleanup ...)

2020-10-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 33057c70920787627f2c94d08eb5d33c31f8bdd9 by Miss Skeleton (bot) in branch '3.8': bpo-41739: Fix test_logging.test_race_between_set_target_and_flush() (GH-22655) (GH-22656) (GH-22662)

[issue42010] Generic types accept indexing/subscripting, causing confusion

2020-10-12 Thread Ken Jin
Ken Jin added the comment: I'd like to clarify the following too, currently: (1) >>> list[1] list[1] (2) >>> list[1, 2, 3] list[1, 2, 3] The PR only solves (1) and not (2), is (2) intended behavior? -- ___ Python tracker

[issue42010] Generic types accept indexing/subscripting, causing confusion

2020-10-12 Thread Ken Jin
Change by Ken Jin : -- title: Generic types accepts indexing/subscripting, causing confusion -> Generic types accept indexing/subscripting, causing confusion ___ Python tracker

[issue42010] Generic types accepts indexing/subscripting, causing confusion

2020-10-12 Thread Ken Jin
Change by Ken Jin : -- title: GenericAlias accepts indexing/subscripting, causing confusion -> Generic types accepts indexing/subscripting, causing confusion ___ Python tracker

  1   2   >