[issue43411] wm_manage fails with ttk.Frame

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: As an IDLE maintainer, I am a tkinter user also and that is my involvement in tkinter changes. One of my projects for IDLE has been to switch to ttk widgets, including ttk.Frame, wherever possible, for the reasons you gave. It is known the tkinter docs we

[issue43473] Junks in difflib

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Currently return tuple (i, j, n), means that a[i:i+n] == b[j:j+n], where both matching blocks are the same length. https://docs.python.org/3/library/difflib.html#difflib.SequenceMatcher.get_matching_blocks This would not be the case if a has an ignored space

[issue43214] site: Potential UnicodeDecodeError when handling pth file

2021-03-12 Thread Inada Naoki
Change by Inada Naoki : -- keywords: +patch pull_requests: +23602 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24837 ___ Python tracker ___

[issue43214] site: Potential UnicodeDecodeError when handling pth file

2021-03-12 Thread Inada Naoki
Change by Inada Naoki : -- superseder: -> Use io.open_code for .pth files ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23633] Improve py launcher help, index, and doc

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: The current help text attempts to explain point 2, in terms of an active virtual environment, shebangs, the PY_PYTHON[2|3] environment variables, and the py.ini [defaults]. It's a lot to say succinctly in a few lines of text. A shortened URL that links to the

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue26362] Approved API for creating a temporary file path

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: > So no, while unresolved, this bug report should not be closed. The implied question was whether you or the core devs on the nosy list, upon further consideration, wanted to resolve the issue by rejecting the request, but it had simply been forgotten about for 4

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23601 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24836 ___ Python tracker ___

[issue43468] functools.cached_property locking is plain wrong.

2021-03-12 Thread Antti Haapala
Antti Haapala added the comment: I've been giving thought to implementing the locking on the instance or per instance instead, and there are bad and worse ideas like inserting per (instance, descriptor) into the instance `__dict__`, guarded by the per-descriptor lock; using a per-descriptor

[issue23835] configparser does not convert defaults to strings

2021-03-12 Thread junyixie
Change by junyixie : -- nosy: +JunyiXie nosy_count: 7.0 -> 8.0 pull_requests: +23600 pull_request: https://github.com/python/cpython/pull/24821 ___ Python tracker ___

[issue43420] Optimize rational arithmetics

2021-03-12 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: > a short paragraph or section on alternative implementations There are no alternative implementations. SymPy's PythonRational (AFAIR, this class not in the default namespace) is an internal fallback solution, for case when no gmpy2 is available.

[issue43420] Optimize rational arithmetics

2021-03-12 Thread Tim Peters
Tim Peters added the comment: Terry, we could do that, but the opposition here isn't strong, and is pretty baffling anyway ;-) : the suggested changes are utterly ordinary for implementations of rationals, require very little code, are not delicate, and are actually straightforward to see

[issue34840] dlopen() error with no error message from dlerror()

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue19217] Calling assertEquals for moderately long list takes too long

2021-03-12 Thread Zachary Ware
Change by Zachary Ware : -- hgrepos: -401 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43485] Spam

2021-03-12 Thread Zachary Ware
Change by Zachary Ware : -- hgrepos: -400 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43485] Spam

2021-03-12 Thread Zachary Ware
Change by Zachary Ware : -- hgrepos: -399 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43485] Spam

2021-03-12 Thread Zachary Ware
New submission from Zachary Ware : You appear to be just creating spam, so I've removed your ability to make any changes to bugs.python.org. If you feel this was done in error, please bring it up on discuss.python.org. -- assignee: docs@python -> components: -2to3 (2.x to 3.x

[issue19217] Calling assertEquals for moderately long list takes too long

2021-03-12 Thread Kadir SELÇUK
Change by Kadir SELÇUK : -- hgrepos: +401 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26362] Approved API for creating a temporary file path

2021-03-12 Thread Ben Finney
Ben Finney added the comment: > tempfile.mktemp() still exists and works without raising a deprecation > warning. Of course it's still marked as deprecated in the docs. Right. So, the issue is not resolved: Functionality to create a temporary file path is maintained in the standard library

[issue43485] devturks

2021-03-12 Thread Kadir SELÇUK
Change by Kadir SELÇUK : -- hgrepos: +400 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43485] devturks

2021-03-12 Thread Kadir SELÇUK
Change by Kadir SELÇUK : -- resolution: -> works for me ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43485] devturks

2021-03-12 Thread Kadir SELÇUK
Change by Kadir SELÇUK : -- assignee: docs@python components: 2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, C API, Cross-Build, Demos and Tools, Distutils, Documentation, Extension Modules, FreeBSD, IDLE, IO, Installation, Interpreter Core, Library (Lib), Regular

[issue43477] from x import * behavior inconsistent between module types.

2021-03-12 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +brett.cannon, eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- type: behavior -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue43484] we can create valid datetime objects that become invalid if the timezone is changed

2021-03-12 Thread Zachary Ware
Change by Zachary Ware : -- nosy: +belopolsky, lemburg, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue18017] ctypes.PyDLL documentation

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: I think the documentation of ctypes.PyDLL and ctypes.pythonapi is good enough as is. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker

[issue29688] Add support for Path.absolute()

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- assignee: -> docs@python components: +Library (Lib) type: -> enhancement versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue26362] Approved API for creating a temporary file path

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: > The proposal in this issue is to have a public standard library API, > which I'm calling ‘tempfile.makepath’, It's a few years later, and tempfile.mktemp() still exists and works without raising a deprecation warning. Of course it's still marked as deprecated in

[issue43484] we can create valid datetime objects that become invalid if the timezone is changed

2021-03-12 Thread mike bayer
New submission from mike bayer : So I'm pretty sure this is "not a bug" but it's a bit of a problem and I have a user suggesting the "security vulnerability" bell on this one, and to be honest I don't even know what any library would do to "prevent" this. Basically, the datetime() object

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-12 Thread Brandt Bucher
Brandt Bucher added the comment: Yup, I agree we should explore this area further. See my comment here on Adrian’s mypy PR: https://github.com/python/mypy/pull/10191#issuecomment-797841945 -- ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-12 Thread Guido van Rossum
Guido van Rossum added the comment: This does point out that the ast structure is a liability, and we won't be able to easily change it, since mypy and IIRC many linters use the ast module. So I think that maybe we need to think more carefully about what the *proper* ast structure is, rather

[issue43483] Loss of content in simple (but oversize) SAX parsing

2021-03-12 Thread Larry Trammell
New submission from Larry Trammell : == The Problem == I have observed a "loss of data" problem using the Python SAX parser, when processing an oversize but very simple machine-generated xhtml file. The file represents a single N x 11 data table. W3C "tidy" reports no xml errors. The

[issue43462] canvas.bbox returns None on 'hidden' items while coords doesn't

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: (You don't use coords('tunnel') above because it only reports on the 'first' tagged object.) tkinter widget methods are generally thin wrappers around tk functions that translate between python objects and tk strings. I believe that this should be closed

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-12 Thread Brandt Bucher
Brandt Bucher added the comment: Not a much thought went into that decision, honestly. The main reason I chose an identifier there was because "as" always stores a simple name, so allowing it to potentially be other contexts or expressions (which are illegal) just seemed to create

[issue43475] Worst-case behaviour of hash collision with float NaN

2021-03-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: Idea: We could make this problem go away by making NaN a singleton. -- ___ Python tracker ___

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-12 Thread Guido van Rossum
Guido van Rossum added the comment: If we add a new flag to ignore errors it's difficult to write code that works in 3.9 as well. And given the use case I have doubts that "Errors should never pass silently" is really the right Zen line to focus on. I'd rather go for "Simple is better than

[issue43411] wm_manage fails with ttk.Frame

2021-03-12 Thread Martin Cooper
Martin Cooper added the comment: I think you are confusing the perspective of the implementor with that of the typical developer _using_ the toolkit without reading through its source code. In my tkinter applications, I pretty much always use ttk widgets where they are available. This is

[issue43461] Tottime column for cprofile output does not add up

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: An actual example might help get an answer. -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Change by Senthil Kumaran : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 8cadc2c9cacfa1710cb5ca28a70f7782cacf09aa by Senthil Kumaran in branch '3.8': [3.8] bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24833) https://github.com/python/cpython/commit/8cadc2c9cacfa1710cb5ca28a70f7782cacf09aa

[issue42967] [CVE-2021-23336] urllib.parse.parse_qsl(): Web cache poisoning - `; ` as a query args separator

2021-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Petr, On > the `separator` argument now allows multi-character strings, so you can parse > 'a=1b=2' with separator=''. Was this intentional? No, this was not intentional. The separator arg was just coice, for compatibility, if some wanted to use `;`

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think I prefer to raise a single event, because it match more closely the actual call, is a bit faster and more straighfoward. I will create a PR soon -- ___ Python tracker

[issue43425] test_peg_generator.test_c_parser emits DeprecationWarning due to distutils

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Steve, PEP 632 lacks a reference to the SC acceptance thereof. Could you add one? https://mail.python.org/archives/list/python-...@python.org/thread/TXU6TVOMBLQU3SV57DMMOA5Y2E67AW7P/ And can you verify my interpretation below? The warning is correct as to

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 32717b982d3347e30ae53eb434e2a32e0d03d51e by Miss Islington (bot) in branch '3.9': bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) (#24832) https://github.com/python/cpython/commit/32717b982d3347e30ae53eb434e2a32e0d03d51e

[issue27886] Docs: the difference between Path.rename() and Path.replace() is not obvious

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: The pathlib documentation of Path.rename() says "[o]n Unix, if target exists and is a file, it will be replaced silently if the user has permission". This leaves the behavior on Windows in question. The reader has to scroll down to the correspondence table to

[issue27886] Docs: the difference between rename and replace is not obvious

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg273845 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43438] [doc] sys.addaudithook() documentation should be more explicit on its limitations

2021-03-12 Thread Steve Dower
Steve Dower added the comment: If someone offers a patch for replacing the list of per-interpreter hooks with something not easily discoverable via gc, I'm sure we'd take it. It's all internal, so just hiding it from the list of bases should be fine (there should never be more than one

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-12 Thread Steve Dower
Steve Dower added the comment: Passing a tuple as "O" just means it gets passed as-is, without wrapping it again. And yeah, I thought that was right here, but it's not. I didn't realise it's a varargs argument. So yeah, it should be wrapped again so that only a single argument is being

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-12 Thread Adrian Freund
Adrian Freund added the comment: Thanks for the response. Looks like I overlooked the imports, global, nonlocal, ... because I only searched for usages of identifier, but they use lists of identifiers. In that case I agree that it isn't inconsistent. --

[issue35883] Change invalid unicode characters to replacement characters in argv

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- components: +Unicode nosy: +ezio.melotti, vstinner versions: -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Change by Senthil Kumaran : -- pull_requests: +23599 pull_request: https://github.com/python/cpython/pull/24833 ___ Python tracker ___

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +23598 pull_request: https://github.com/python/cpython/pull/24832 ___ Python tracker

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-03-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: New changeset 7591d9455eb37525c832da3d65e1a7b3e6dbf613 by Pandu E POLUAN in branch 'master': bpo-27820: Fix AUTH LOGIN logic in smtplib.SMTP (GH-24118) https://github.com/python/cpython/commit/7591d9455eb37525c832da3d65e1a7b3e6dbf613 --

[issue37612] os.link(..., follow_symlinks=True) broken on Linux

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules -Library (Lib) versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue43422] Revert _decimal C API changes

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: skrah is still a bpo user with an CLA-signed account linked to his github account. So he can post here and, I believe, open a PR as a contributor. But if, under the current circumstances, he feels more comfortable using Antoine as a go between, then I

[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- stage: needs patch -> versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___

[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: Deleting a file in Windows 10 has been updated to try a POSIX-style delete. For a POSIX delete, the filesystem unlinks the file even it's open, whereas a classic delete only unlinks a 'deleted' file when it's closed. The filesystem has to support it. NTFS does,

[issue43420] Optimize rational arithmetics

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: A possible resolution to this issue might be augmenting https://docs.python.org/3/library/fractions.html#module-fractions with a short paragraph or section on alternative implementations noting that there is a tradeoff between speed and complexity (and

[issue43418] FTPLib error when server returns byte message instead of string

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: An exception exit is not a 'crash' for this tracker. The latter is an indefinite hang or a no-exception stackoverflow or the Windows equivalent error box (or worse). The linked issue appears to show an exception exit. -- title: FTPLib module

[issue43418] FTPLib module crashes when server returns byte message instead of string

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 only gets security fixes. Please verify that this is an issue with 3.10, or at least 3.9, and give a reproducible test case. -- nosy: +terry.reedy ___ Python tracker

[issue43412] object.h -Wcast-qual warning

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Victor, the apparent 3.10 regression is from your commit. -- nosy: +terry.reedy, vstinner ___ Python tracker ___

[issue43482] PyAddPendingCall Function Never Called in 3.8, works in 3.6

2021-03-12 Thread Chris Morton
New submission from Chris Morton : Building code on Mac OSX or Linux Ubuntu 16.04 #include #include #include #include // MacOSX build: // g++ stop.cpp -I /include/pythonX.X -L /lib -lpythonX.X -o stop // Linuxe requires addtional linkage: // -lpthread void RunPythonScript() {

[issue43411] wm_manage fails with ttk.Frame

2021-03-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are confusing the widget path component, an arbitrary string of chars other than the separator '.', with the English word 'frame', which is also a tk command. In tk docs, 'a *frame*' is a widget (tk window) created with the 'frame' command. By

[issue43481] PyEval_EvalCode() namespace issue not observed in Python 2.7.

2021-03-12 Thread Chris Morton
New submission from Chris Morton : Compiling (Window 10, MSVS 16): #include int main(int argc, char* argv[]) { const char* code = "c=[1,2,3,4]\nd={'list': [c[i] for i in range(len(c))]}\nprint(d)\n"; Py_Initialize(); PyObject* pycode = Py_CompileString(code, "", Py_file_input

[issue29256] Windows select() errors out when given no fds to select on, which breaks SelectSelector

2021-03-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34780] [Windows] Hang on startup if stdin refers to a pipe with an outstanding concurrent operation on Windows

2021-03-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29256] Windows select() errors out when given no fds to select on, which breaks SelectSelector

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue43463] typing.get_type_hints with TYPE_CHECKING imports / getting hints for single argument

2021-03-12 Thread Florian Bruhin
Florian Bruhin added the comment: I suppose returning the string unchanged would work as well. However, "Errors should never pass silently." :) Perhaps that with a ignore_nameerror=True or switch or so would work? -- ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-12 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > This seams really inconsistent with the rest of the ast, where identifiers > are always wrapped in a ast.Name object. The only other exception to this is > ast.Attribute. import ... as from ... import ... as try: ... except ... as : ... global

[issue29657] os.symlink: FileExistsError shows wrong message

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules, Interpreter Core -Library (Lib) stage: patch review -> versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-12 Thread Adrian Freund
Adrian Freund added the comment: For the last few days I've been working with pattern matching and it's ast for a bit, while trying to add support for it to mypy. During this I noticed an inconsistency in the ast: ast.MatchAs has an attribute name which is of type identifier (in C) and type

[issue15453] ctype with packed bitfields does not match native compiler

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Ctypes Packing Bitfields Incorrectly - Linux ___ Python tracker

[issue22781] ctypes: Differing results between Python and C.

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43334] venv does not install libpython

2021-03-12 Thread Anup Parikh
Anup Parikh added the comment: Also, at least on windows, the C-API header files are also missing from the venv -- ___ Python tracker ___

[issue43334] venv does not install libpython

2021-03-12 Thread Anup Parikh
Anup Parikh added the comment: A typical python installation includes libpython libraries that C extensions can link to. Creating virtual environments with venv normally creates a replica of a python installation directory, including all the built in python modules. However, it doesn't seem

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: "Tools/msi/README.txt" still references "%SystemRoot%\System32" and "%SystemRoot%\SysWOW64" as the location of "python3[x].dll" for all-users installs. The containing paragraph can be removed. Move the lines for ".\python3x.dll" and ".\python3.dll"

[issue11429] ctypes is highly eclectic in its raw-memory support

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-12 Thread Saiyang Gou
Saiyang Gou added the comment: In addition to the consistency with existing audit hook signatures, there may also be another benefit of wrapping it with a tuple of length 1. If gc.get_referrers or gc.get_referents happens to gain a new keyword-only argument in the future, we may need to add

[issue34780] [Windows] Hang on startup if stdin refers to a pipe with an outstanding concurrent operation on Windows

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: If non-disk files are made non-seekable in Windows, this will also resolve bpo-42602. -- ___ Python tracker ___

[issue40540] inconstent stdin buffering/seeking behaviour

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> seekable() returns True on pipe objects in Windows ___ Python tracker

[issue34780] [Windows] Hang on startup if stdin refers to a pipe with an outstanding concurrent operation on Windows

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: Console input handles pose the same risk of hanging indefinitely when io.FileIO is used in legacy standard I/O mode (i.e. PYTHONLEGACYWINDOWSSTDIO). Seeking could simply be disallowed on all files that aren't FILE_TYPE_DISK. For example, change portable_lseek()

[issue43458] Tutorial should mention about variable scope in try/except/finally

2021-03-12 Thread Éric Araujo
Éric Araujo added the comment: The only blocks that create scopes are modules, class and functions. if, try, with, for, while, etc are blocks but not new scopes. For the tutorial it could be nice to have an explicit mention and example of this. -- nosy: +eric.araujo

[issue43198] One operation on sets < 1/100th as efficient in 3.9 than before

2021-03-12 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Operations on sets more than hundred times less efficient with python3.9 than with previous versions -> One operation on sets < 1/100th as efficient in 3.9 than before ___ Python tracker

[issue40601] [C API] Hide static types from the limited C API

2021-03-12 Thread STINNER Victor
STINNER Victor added the comment: I plan to write such PEP soon. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40601] [C API] Hide static types from the limited C API

2021-03-12 Thread STINNER Victor
STINNER Victor added the comment: The Steering Council asked for a PEP to explain why static types should be converted to heap types. -- ___ Python tracker ___

[issue26882] The Python process stops responding immediately after starting

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: Hanging on a synchronous console file during startup shouldn't be an issue in 3.6+, since io._WindowsConsoleIO doesn't support seeking, but it could still be an issue with legacy mode, which uses io.FileIO. I'm marking this as a duplicate of bpo-34780, which has

[issue25741] Usual Installation Directory

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this issue as out of date. The tutorial now refers to the py command and also the python3.9 command from the app distribution. The patch's addition of "followed by Enter" after "Control-Z" is still needed, but it's not related to this issue.

[issue20408] memoryview() constructor documentation error

2021-03-12 Thread Larry Hastings
Change by Larry Hastings : -- nosy: -larry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20408] memoryview() constructor documentation error

2021-03-12 Thread Mariusz Felisiak
Change by Mariusz Felisiak : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue24052] sys.exit(code) returns "success" to the OS for some nonzero values of code

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list

[issue21518] Expose RegUnLoadKey in winreg

2021-03-12 Thread Eryk Sun
Eryk Sun added the comment: I added an updated implementation of windows_helper.py to the dependency bpo-22080. -- components: +Windows nosy: +paul.moore versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5 ___ Python tracker

[issue31427] Add an answer to the Windows FAQ about installing the Universal C Runtime

2021-03-12 Thread Eryk Sun
Change by Eryk Sun : -- title: Proposed addition to Windows FAQ -> Add an answer to the Windows FAQ about installing the Universal C Runtime versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue40601] [C API] Hide static types from the limited C API

2021-03-12 Thread junyixie
junyixie added the comment: It seems that there is no continued progress for move static type in heap.This will make it impossible to continue to achieve sub interpreters parallel. Are there any plans to try other solutions to the problem? In my project, i try to slove this problem, It can

[issue43480] Add .path method/property to tempfile.* for a pathlib.Path

2021-03-12 Thread Patrick Reader
New submission from Patrick Reader : It would be nice to have a `.path` method or property on `tempfile.NamedTemporaryFile`, `tempfile.TemporaryDirectory` which produces a `pathlib.Path` of their `.name` attribute, so one can use the modern interface directly. I think a method would be more

[issue43439] [security] Add audit events on GC functions giving access to all Python objects

2021-03-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Steve, do you think that makes sense? If so, I will create a batch of PRs to correct it. -- ___ Python tracker ___

[issue43479] Remove a duplicate comment and assignment in http.client

2021-03-12 Thread Géry
New submission from Géry : Remove a duplicate comment and assignment following the usage of a name already assigned in the http.client standard library. -- components: Library (Lib) messages: 388538 nosy: maggyero priority: normal pull_requests: 23597 severity: normal status: open

[issue43471] Fails to import bz2 on Ubuntu

2021-03-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You are likely did not have headers for bz2 library installed. Read thoughtfully the output of ./configure and make. See also https://devguide.python.org/setup/#install-dependencies . -- nosy: +serhiy.storchaka status: pending -> open

[issue43353] Document that logging.getLevelName() can return a numeric value.

2021-03-12 Thread miss-islington
miss-islington added the comment: New changeset 4d7f11e05731f67fd2c07ec2972c6cb9861d52be by Mariusz Felisiak in branch '3.9': [3.9] bpo-43353: Document that logging.getLevelName() accepts string representation of logging level. (GH-24693) (GH-24826)