[issue29688] Add support for Path.absolute()

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

[issue25012] pathlib should allow converting to absolute paths without resolving symlinks

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Add support for Path.absolute() ___ Python tracker ___

[issue34297] Windows py launcher fails to handle a quoted version argument

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- stage: test needed -> needs patch title: Windows py.exe launcher fail to handle quote correctly -> Windows py launcher fails to handle a quoted version argument versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ P

[issue35216] misleading error message from shutil.copy()

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> shutil.copy raises IsADirectoryError when the directory does not actually exist ___ Python tracker ___

[issue43502] [C-API] Convert obvious unsafe macros to static inline functions

2021-03-17 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Pablo: > I agree we should be careful here. There are several things to consider: Yes, and thanks for your thorough reply and insights. I do not suggest converting macros blindly, and I have no intention of doing so. Apart from the three PyUnicode_*(

[issue43214] site: Potential UnicodeDecodeError when handling pth file

2021-03-17 Thread Inada Naoki
Inada Naoki added the comment: locale-specific encoding is not good especially for Windows. But we used it for a long time. Changing the encoding for pth files is breaking change. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-03-17 Thread Xavier Morel
New submission from Xavier Morel : When setting `BytesWarning` programmatically (via the warnings API), though the `warnings.filters` value matches what's obtained via `python -b` and an explicit `warnings.warn` trigger will trigger, "native" triggers of the warning fail to trigger properly:

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-03-17 Thread Xavier Morel
Xavier Morel added the comment: Addendum: is there a way to force `-b` from within the running Python program? -- ___ Python tracker ___ __

[issue43527] Support full stack trace extraction in warnings.

2021-03-17 Thread Xavier Morel
New submission from Xavier Morel : When triggering warnings, it's possible to pass in a `stacklevel` in order to point to a more informative cause than the `warnings.warn` call. For instance `stacklevel=2` is a common one for DeprecationWarning in order to mark the call itself as deprecated

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is intended behaviour. BytesWarning is only emitted when you set a special internal flag (by the -b option). Warning filters control what happen with that warning later: be it ignored, printed, or converted to exception. In normal circumstances you

[issue43214] site: Potential UnicodeDecodeError when handling pth file

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: Since it's a Python script, the default encoding should be UTF-8, as any Python script. I guess that most pth files don't use characters outside ASCII so it's fine. I think that distutils made a few changes to switch UTF-8 last years, so it's possible. ---

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-17 Thread Thomas Wamm
Thomas Wamm added the comment: I spent a few hours running numerous configurations (M1 Mac Mini, iMac24-2007, Win10 on i5-8250U, Raspberry Pi 4B, various Pythons from 3.7.3 to 3.10.0a6). It can get confusing. The primary interesting result is that Python 3.9.2 and 3.10.0a6 arm64 versions on

[issue42246] Implement PEP 626 -- Precise line numbers for debugging

2021-03-17 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +23665 pull_request: https://github.com/python/cpython/pull/24902 ___ Python tracker ___

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

2021-03-17 Thread Fred Drake
Fred Drake added the comment: New changeset 9bdb5802361016704fb3434369741cc6c5e08f02 by Mariusz Felisiak in branch '3.8': bpo-43353: Document that logging.getLevelName() accepts string representation of logging level. (GH-24693) (#24825) https://github.com/python/cpython/commit/9bdb580236101

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

2021-03-17 Thread Mariusz Felisiak
Change by Mariusz Felisiak : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43528] "connect_read_pipe" raises errors on Windows for STDIN

2021-03-17 Thread Ivan Kravets
New submission from Ivan Kravets : Hi there, It seems that "connect_read_pipe" is not implemented in ProactorEventLoop. Does it make sense to update docs in these places? - https://docs.python.org/3/library/asyncio-platforms.html#windows - https://docs.python.org/3/library/asyncio-eventloop.ht

[issue43065] Delegating to thread and process deadlocks

2021-03-17 Thread doublex
Change by doublex : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue43352] Add a Barrier object in asyncio lib

2021-03-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +23666 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24903 ___ Python tracker _

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: Eric Snow proposes that C extensions which want to be compatible with subinterpreters must use an hypothetical variant of the C API which doesn't inherit flaws of the current C API. For example, static types like "&PyLong_Type" would be excluded. To be clea

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: Raymond Hettinger: "Shouldn't this wait to see if the subinterpreters PEP is approved? Because if it isn't, then no chance should be made. We shouldn't change something this fundamental without good cause." I agree that we reached a point where a PEP is ne

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-17 Thread Eric Snow
Eric Snow added the comment: > I am confused. How can widening the usable number of functions (i.e. using > the whole C-API rather than the limited API) help c-extension modules be > usable in subinterpreters? Aren't the same singletons, exception types, and > other types exposed in the full C-

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-17 Thread Eric Snow
Eric Snow added the comment: > PEP 489 is *very much* part of the limited API. Gah, I missed that. That said, I don't think it matters; I just lose an easy point in the rationale. :) -- ___ Python tracker ___

[issue43503] [subinterpreters] PyObject statics exposed in the limited API break isolation.

2021-03-17 Thread Eric Snow
Eric Snow added the comment: FYI, I'm going to focus discussion on the capi-sig thread. -- ___ Python tracker ___ ___ Python-bugs-l

[issue43284] Inability to fetch build 20H2

2021-03-17 Thread Steve Dower
Steve Dower added the comment: Yeah, that all makes sense. 90%+ of the time, checking the version number is a compatibility issue waiting to happen. For the other 10% (diagnostic logging), it would be nice to have a better option than running "cmd /c ver", but that might be the easiest thing

[issue43512] Bug in isinstance(instance, cls) with cls being a protocol? (PEP 544)

2021-03-17 Thread Guido van Rossum
Guido van Rossum added the comment: Yes, discussion on a close issue is still read, unless people explicitly unsubscribe (which they rarely do unless the chatter is spam). -- ___ Python tracker _

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue43529] pathlib.Path.glob causes OSError encountering symlinks to long filenames

2021-03-17 Thread Eric Frederich
New submission from Eric Frederich : Calling pathlib.Path.glob("**/*) on a directory containing a symlink which resolves to a very long filename causes OSError. This is completely avoidable since symlinks are not followed anyway. In pathlib.py, the _RecursiveWildcardSelector has a method _ite

[issue43529] pathlib.Path.glob causes OSError encountering symlinks to long filenames

2021-03-17 Thread Eric Frederich
Change by Eric Frederich : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue43529] pathlib.Path.glob causes OSError encountering symlinks to long filenames

2021-03-17 Thread Eric Frederich
Eric Frederich added the comment: I verified against all versions available for me to select. For 3.10 I used the 3.10-rc Docker image. -- versions: +Python 3.10, Python 3.6, Python 3.7 ___ Python tracker __

[issue43530] email.parser.BytesParser failed to parse mail when it is with BOM

2021-03-17 Thread tzing
New submission from tzing : Python's builtin `email.parser.BytesParser` could not properly parse the message when the bytes starts with BOM. Not 100% ensured- but this issue seems cause by that `FeedParser._parsegen` could not match any of the header line after the data is decoded. Steps to

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

2021-03-17 Thread Larry Trammell
Larry Trammell added the comment: Assuming that my understanding is completely correct, the situation is that the xml parser has an unspecified behavior. This is true in any text content handler, at any time, and applies to the expat parser as well as SAX. In some rare cases, the behavior o

[issue39511] [subinterpreters] Per-interpreter singletons (None, True, False, etc.)

2021-03-17 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue43531] Turtle module does not work

2021-03-17 Thread Adrian LeDeaux
New submission from Adrian LeDeaux : So when I try to do the command "import turtle" all I get back is: Traceback (most recent call last): File "", line 1, in import turtle File "/Users/Virsatech/Documents/turtle.py", line 2, in t = turtle.Pen() AttributeError: partially initiali

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

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: Could you give an example (using a list of callbacks and values or something) that shows how it's behaving that you think is problematic? That's the part I'm not understanding. This doesn't have to be a real example, just show what the user is getting that's

[issue43531] Turtle module does not work

2021-03-17 Thread Mark Dickinson
Mark Dickinson added the comment: You have a local file named `turtle.py`, which is conflicting with the standard library `turtle` module. Rename your local file to something else, then you'll be able to import the standard library `turtle` module. -- nosy: +mark.dickinson

[issue43531] Turtle module does not work

2021-03-17 Thread Adrian LeDeaux
Adrian LeDeaux added the comment: Oh, OK. I am not an expert on python so I did not understand the error. Thanks for the help, and I will update you if the problems continue. -- ___ Python tracker _

[issue43336] document whether io.TextIOBase.readline(size>0) will always read the full newline

2021-03-17 Thread Christoph Anton Mitterer
Christoph Anton Mitterer added the comment: I guess that the translation from CRLF to LF simply happens before the size restriction is enforced (which is good so, btw), so effectively it: will not *read* at most size characters from the stream, but *return* at most size characters from it (w

[issue43531] Turtle module does not work

2021-03-17 Thread Adrian LeDeaux
Adrian LeDeaux added the comment: That fixed it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue43531] Turtle module does not work

2021-03-17 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue43284] Inability to fetch build 20H2

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > For the other 10% (diagnostic logging), it would be nice to have a > better option than running "cmd /c ver" CMD's VER command (cmd!eVersion) calls GetVersion(), for which, in its case, the API calls the internal function GetVersion_Current(). The VER command als

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

2021-03-17 Thread Larry Trammell
Larry Trammell added the comment: Sure... I'll cut and paste some of the text I was organizing to go into a possible new issue page. The only relevant documentation I could find was in the "xml.sax.handler" page in the Python 3.9.2 Documentation for the Python Standard Library (as it has b

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

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks, that's very helpful. Does this only affect content text? This should definitely be documented. As far as changing it, I think the best thing to do is say that if the context text is less than some size (I don't know, maybe 1MB?) that it's guaranteed t

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

2021-03-17 Thread Larry Trammell
Larry Trammell added the comment: Great minds think alike I guess... I was thinking of a much smaller carryover size... maybe 1K. With individual text blocks longer than that, the user will almost certainly be dealing with collecting and aggregating content text anyway, and in that case, th

[issue43471] Fails to import bz2 on Ubuntu

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. @xmm: If you can provide more information showing that this is a bug in Python or its build process, please re-open this issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed __

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

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: I think that's good text, once the enhancement is made. But for existing versions of python, shouldn't we just document that the text might come back in chunks? I don't have a feel for what the limit should be. -- ___

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

2021-03-17 Thread Brett Cannon
Brett Cannon added the comment: Having `test_pkg.test_submodule` be set after your import based on the sequence of imports your example executes is entirely expected and a side-effect of how import is (at least now) designed. So I disagree with the assessment "that nothing here was requested

[issue43284] Inability to fetch build 20H2

2021-03-17 Thread Steve Dower
Steve Dower added the comment: CMD is not going to be subjected to compatibility shims that hide the version number, and I *think* those are not inherited by child processes. So it can use the basic APIs. (It's also likely to be the comparison that most people will check against.) I agree t

[issue43531] Turtle module does not work

2021-03-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: For next time, the turtle module is not part of IDLE. -- assignee: terry.reedy -> components: +Library (Lib) -IDLE ___ Python tracker ___ __

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

2021-03-17 Thread Larry Trammell
Larry Trammell added the comment: Oh, and whether this affects only content text... I would presume so, but I don't know how to tell for sure. Unspecified behaviors can be very mysterious! -- ___ Python tracker

[issue29687] smtplib does not support proxy

2021-03-17 Thread Christian Heimes
Christian Heimes added the comment: The Python standard library has no builtin support for socks proxy. I suggest that you report issues with socks library to the author of the package. By the way the smptlib makes it really easy to override the socket object with a custom implementation: c

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: See the related discussion in bpo-41299. The system interrupt period can be lowered to 1 ms with timeBeginPeriod() -- or lower with undocumented NtSetTimerResolution(). This affects the resolution of dispatcher waits such as Sleep() and WaitForSingleObject(), as w

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Eric V. Smith
New submission from Eric V. Smith : The idea is that a keyword-only field becomes a keyword-only argument to __init__(). For the proposal and a discussion, see https://mail.python.org/archives/list/python-id...@python.org/message/FI6KS4O67XDEIDYOFWCXMDLDOSCNSEYG/ The @dataclass decorator wil

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2021-03-17 Thread Steve Dower
Steve Dower added the comment: Given that extra info, I'd say we're fine to document that our timeouts can't do any better than the OS, which "for example, is typically around 15ms on Windows", and recommend using non-blocking calls instead. -- __

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This looks like a duplicate of https://bugs.python.org/issue33129 or that ticket can be closed. -- nosy: +xtreak ___ Python tracker __

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

2021-03-17 Thread Larry Trammell
Larry Trammell added the comment: I think the existing ContentHandler.characters(content) documentation DOES say that the text can come back in chunks... but it is subtle. It might be possible to say more explicitly that any content no matter how small is allowed to be returned as any numbe

[issue33129] Add kwarg-only option to dataclass

2021-03-17 Thread Eric V. Smith
Eric V. Smith added the comment: Closing this in favor of issue 43532, which has a slightly elaborated approach. -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Add keyword-only fields to dataclasses _

[issue43499] Compiler warnings in building Python 3.9 on Windows

2021-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset db733761060be92915b5f5cba209dcaada88f94e by Ammar Askar in branch '3.9': [3.9] bpo-43499: Restrict co_code to be under INT_MAX in codeobject (GH-20628) (GH-24896) https://github.com/python/cpython/commit/db733761060be92915b5f5cba209dcaada88f9

[issue43499] Compiler warnings in building Python 3.9 on Windows

2021-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ammar. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43531] Turtle module does not work

2021-03-17 Thread Adrian LeDeaux
Adrian LeDeaux added the comment: OK. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue43511] tkinter with Tk 8.6.11 is slow on macOS

2021-03-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The result of help('modules') depends on Python version. Do you have any example which does not depend on Python version? Could you also run some pure Tcl/Tk demos to check whether the difference is in Tcl/Tk instead of the wrapper? -- nosy: +serh

[issue29687] smtplib does not support proxy

2021-03-17 Thread Ryan Hiebert
Ryan Hiebert added the comment: Thank you, Christian. It sounds like you believe that we should view the `_get_socket` method as a public interface? That at least makes it possible to use a proxy socket through an appropriate mechanism, which solves my use-case. -- _

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

2021-03-17 Thread Larry Trammell
Larry Trammell added the comment: If there were a decision NOT TO FIX... maybe then it would make sense to consider documentation patches at a higher priority. That way, SAX-Python (and expat-Python) tutorials across the Web could start patching their presentations accordingly. --

[issue29687] smtplib does not support proxy

2021-03-17 Thread Christian Heimes
Christian Heimes added the comment: It's not a public API but it's a stable API. It hasn't changed since Python 2.6 and commit 366d6262f81 from 2007. It's unlikely to change in the near future. -- ___ Python tracker

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Ryan Hiebert
Change by Ryan Hiebert : -- nosy: +ryanhiebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > Given that extra info, I'd say we're fine to document that our timeouts > can't do any better than the OS, which "for example, is typically > around 15ms on Windows", and recommend using non-blocking calls > instead. The 15.625 ms resolution limit is fine, as l

[issue34535] queue.Queue(timeout=0.001) avg delay Windows:14.5ms, Ubuntu: 0.063ms

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue21822] KeyboardInterrupt during Thread.join hangs that Thread

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules, Interpreter Core versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ _

[issue42855] pathlib.exists on Windows raises an exception on URL like/bad input

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- components: +Library (Lib) versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list ma

[issue43395] os.path states that bytes can't represent all MBCS paths under Windows

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue32451] venv activate bash script has wrong line endings in Windows

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: The POSIX "Lib/venv/scripts/common/activate" script needs a line-ending exception in ".gitattributes": https://github.com/python/cpython/blob/master/.gitattributes -- title: python -m venv activation issue when using cygwin on windows -> venv activate bas

[issue43437] venv activate bash script has wrong line endings on windows

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> venv activate bash script has wrong line endings in Windows ___ Python tracker

[issue39340] shutil.rmtree and write protected files

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > What I would expect is a consistent behaviour and as a > user I am not interested in inner guts of differences > between filesystems. It's already consistent. msg360033 contains a misunderstanding about what write permission on a file means in Unix. The parent

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2021-03-17 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue33240] shutil.rmtree fails if inner folder is open in Windows Explorer

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > Explorer keeps handles open to directories to get updates via > ReadDirectoryChangesExW. It opens watched directories with > shared delete access, so deleting the child succeeds. But as > discussed above, the directory isn't unlinked from the parent > until Explo

[issue33240] shutil.rmtree fails if inner folder is open in Windows Explorer

2021-03-17 Thread Eryk Sun
Change by Eryk Sun : -- components: -IO ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue35883] Python startup fails with a fatal error if a command line argument contains an invalid Unicode character

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9976834f807ea63ca51bc4f89be457d734148682 by Victor Stinner in branch 'master': bpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843) https://github.com/python/cpython/commit/9976834f807ea63ca51bc4f89be457d734148682 ---

[issue35883] Python startup fails with a fatal error if a command line argument contains an invalid Unicode character

2021-03-17 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 7.0 -> 8.0 pull_requests: +23667 pull_request: https://github.com/python/cpython/pull/24905 ___ Python tracker _

[issue35883] Python startup fails with a fatal error if a command line argument contains an invalid Unicode character

2021-03-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +23668 pull_request: https://github.com/python/cpython/pull/24906 ___ Python tracker ___ __

[issue40533] [subinterpreters] Don't share Python objects between interpreters

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: > To get one GIL per interpreter (bpo-40512), either PyObject.ob_refcnt member > must become an atomic variable, or subinterpreters must not share any object. The current plan is to not share any object between two interpreters, so this PR is not needed. I c

[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

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

[issue43068] test_subprocess: test_specific_shell() fails on AMD64 FreeBSD Shared 3.x

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: The two FreeBSD 3.x buildbot are back to green, I close the issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker _

[issue42370] test_ttk_guionly: test_to() fails on the GitHub Ubuntu job

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue43228] Regression in function builtins

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: Issue fixed in bpo-42990. -- priority: release blocker -> resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker __

[issue42990] Improve the C code for calling Python code: _PyEval_EvalCode()

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: I checked manually cloudpickle_bug.py attached to bpo-43228: it works as expected. The bpo-43228 regression has been fixed. I close again the issue. It was proposed to add a builtins parameter to the types.FunctionType constructor. If someone wants to add it

[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2021-03-17 Thread 4-launchpad-kalvdans-no-ip-org
Change by 4-launchpad-kalvdans-no-ip-org : -- nosy: +4-launchpad-kalvdans-no-ip-org ___ Python tracker ___ ___ Python-bugs-list mail

[issue35883] Python startup fails with a fatal error if a command line argument contains an invalid Unicode character

2021-03-17 Thread miss-islington
miss-islington added the comment: New changeset aa967ec4d4c2fc844f8f16b339140b050ae4d5e2 by Miss Islington (bot) in branch '3.9': bpo-35883: Py_DecodeLocale() escapes invalid Unicode characters (GH-24843) https://github.com/python/cpython/commit/aa967ec4d4c2fc844f8f16b339140b050ae4d5e2

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23669 pull_request: https://github.com/python/cpython/pull/24907 ___ Python tracker ___ __

[issue30044] shutil.copystat should (allow to) copy ownership, and other attributes

2021-03-17 Thread Steve Dower
Steve Dower added the comment: Just wanted to add that the sooner we can offer a wrapper around CopyFileEx on Windows (with no callbacks), the sooner we can take advantage of some significant optimisations that are being done to this function (which I can't share details of right now, but co

[issue42730] TypeError/hang inside of Time.Sleep() when _thread.interrupt_main()

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: > Shouldn't the behaviour for _thread.interrupt_main() be always to > interrupt the main thread. The underlying C API function, PyErr_SetInterrupt(), simulates SIGINT without actually sending the signal to the process via kill() or raise(), but the doc string of

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b4536e1c6abe4c6219177a89e16575d05ea22f64 by Victor Stinner in branch 'master': bpo-43244: Rename pycore_ast.h to pycore_ast_state.h (GH-24907) https://github.com/python/cpython/commit/b4536e1c6abe4c6219177a89e16575d05ea22f64 -- __

[issue22128] patch: steer people away from codecs.open

2021-03-17 Thread Irit Katriel
Irit Katriel added the comment: Since Martin corrected the docs in issue 19548 for python 3, and python 2 is no longer relevant, I believe this can be closed. -- nosy: +iritkatriel resolution: -> duplicate status: open -> pending superseder: -> 'codecs' module docs improvements ___

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23670 pull_request: https://github.com/python/cpython/pull/24908 ___ Python tracker ___ __

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +patch pull_requests: +23671 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24909 ___ Python tracker ___ __

[issue27901] DOC: inspect.ismethod returns different results on the same basic code between Python2.7 Python3.5

2021-03-17 Thread Irit Katriel
Irit Katriel added the comment: There seems to be agreement on this resolution: > add a cross link from 'bound method' to > the 'instance methods' section of the data model docs. I'm updating version and marking as easy. -- keywords: +easy nosy: +iritkatriel title: inspect.ismethod r

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 526fdeb2278b61653df704d7cfcaedde504dee48 by Victor Stinner in branch 'master': bpo-43244: Add pycore_ast.h header file (GH-24908) https://github.com/python/cpython/commit/526fdeb2278b61653df704d7cfcaedde504dee48 -- ___

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23672 pull_request: https://github.com/python/cpython/pull/24910 ___ Python tracker ___ __

[issue12575] add a AST validator

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 8.0 -> 9.0 pull_requests: +23674 pull_request: https://github.com/python/cpython/pull/24911 ___ Python tracker ___ ___

[issue43244] Move PyArena C API to the internal C API

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23673 pull_request: https://github.com/python/cpython/pull/24911 ___ Python tracker ___ __

[issue31861] add aiter() and anext() functions

2021-03-17 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

  1   2   >