[issue43537] interpreter crashes when handling long text in input()

2021-03-17 Thread Xinmeng Xia
Change by Xinmeng Xia : -- title: nterpreter crashes when handling long text in input() -> interpreter crashes when handling long text in input() ___ Python tracker ___ __

[issue43537] nterpreter crashes when handling long text in input()

2021-03-17 Thread Xinmeng Xia
New submission from Xinmeng Xia : When the argument of input() is very long text, the interpreter crashes. This bug can be reproduced Python 3.9.2 and Python 2.7.18 on Ubuntu 3.9.2 with GCC7.5.0. I try to reproduce this bug on other version of Python and Operating System, but it fails. Thi

[issue43493] EmailMessage mis-folding headers of a certain length

2021-03-17 Thread Mike Glover
Mike Glover added the comment: Further research shows that email.parser.Parser is not handling the affected lines correctly -- the leading '\n ' is not being stripped from the header value. Attached is the (ugly, worksforme) function I'm using to workaround this problem -- Added fil

[issue42161] Remove private _PyLong_Zero and _PyLong_One variables

2021-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Thanks Raymond, I fixed the code. Can you fix all the other cases where this is used in inner-loop; otherwise, it is undoing everyone else's optimizations and fast paths. Also, it seems the that primary motivation for this is support subinterpreters.

[issue43536] 3.9.2 --without-pymalloc --with-pydebug --with-valgrind: test failed: test_posix

2021-03-17 Thread Thermi
Thermi added the comment: PKGBUILD I use to build the python package I need for debugging on Arch. Only changes to it are the addition of the 3 configure flags mentioned in the title. Other than that, it should work fine. I built the package previously without those changes and that worked.

[issue43536] 3.9.2 --without-pymalloc --with-pydebug --with-valgrind: test failed: test_posix

2021-03-17 Thread Thermi
New submission from Thermi : -- Ran 210 tests in 0.950s OK (skipped=26) == Tests result: FAILURE == 412 tests OK. 1 test failed: test_posix 10 tests skipped: test_devpoll test_gdb test_kqueue test_msilib test_ossau

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-17 Thread Vedran Čačić
Vedran Čačić added the comment: I can't find it now, but I seem to remember me having this same proposal (except the part for bytes) quite a few years ago, and you being the most vocal opponent. What changed? Of course, I'm still for it. (Your second list has fourth item extra. But it's clear

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue43532] Add keyword-only fields to dataclasses

2021-03-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for this idea. I don't see any downside. -- nosy: +rhettinger ___ Python tracker ___ ___ P

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

2021-03-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> docs@python components: +Documentation -Windows nosy: +docs@python type: performance -> behavior ___ Python tracker ___ _

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-17 Thread Raymond Hettinger
New submission from Raymond Hettinger : Rather than just erroring-out, it would be nice if str.join converted inputs to strings when needed. Currently: data = [10, 20, 30, 40, 50] s = ', '.join(map(str, data)) Proposed: s = ', '.join(data) That would simplify a common idiom. T

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

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

[issue43534] turtle.textinput window is not transient

2021-03-17 Thread John Private
John Private added the comment: I am enclosing a PNG showing the difference between 3.9.1 and 3.9.2 In 3.9.2 the pop-up opens as a new window complete with minimise and maximise buttons, and the position is unrelated to the turtle screen. -- nosy: +jwmp5051 Added file: https://bugs.p

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

2021-03-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset e0bf70d08c4a4a68782702e747e6bf7670667591 by Victor Stinner in branch 'master': bpo-43244: Fix test_peg_generator for PyAST_Validate() (GH-24912) https://github.com/python/cpython/commit/e0bf70d08c4a4a68782702e747e6bf7670667591 --

[issue21822] [Windows] KeyboardInterrupt during Thread.join hangs that Thread

2021-03-17 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner title: KeyboardInterrupt during Thread.join hangs that Thread -> [Windows] KeyboardInterrupt during Thread.join hangs that Thread ___ Python tracker ___

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

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

[issue43534] turtle.textinput window is not transient

2021-03-17 Thread Chris Winkler
New submission from Chris Winkler : When `turtle.textinput` is called in Python 3.9.2, the resulting dialog window is not marked as transient. This is not a problem in 3.9.1. The offending change seems to come from bpo-42630. Specifically, `SimpleDialog.__init__` is being passed `parent=None`

[issue42128] Structural Pattern Matching (PEP 634)

2021-03-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 08fb8ac99ab03d767aa0f1cfab3573eddf9df018 by Pablo Galindo in branch 'master': bpo-42128: Add 'missing :' syntax error message to match statements (GH-24733) https://github.com/python/cpython/commit/08fb8ac99ab03d767aa0f1cfab3573eddf9df018

[issue31103] Windows Installer Product does not include micro version in display name

2021-03-17 Thread Eryk Sun
Eryk Sun added the comment: FYI, the 3rd field is Field3Value, defined in "PCbuild/python.props" as the value `MicroVersionNumber*1000 + ReleaseLevelNumber*10 + ReleaseSerial`. It gets set as the FIELD3 macro in "PCbuild/pyproject.props", which gets used in the definition of the PYVERSION64

[issue43533] Exception and contextmanager in __getattr__ causes reference cycle

2021-03-17 Thread Ran Chen
New submission from Ran Chen : If __getattr__ raises exception within a contextlib.context_manager, it creates a reference cycle and prevents the frame from being garbage collected. This only happens if the exception is raised inside a context manager inside __getattr__. It doesn't happen if

[issue43532] Add keyword-only fields to dataclasses

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

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

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

[issue43521] Allow `ast.unparse` to handle NaNs and empty sets

2021-03-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[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

[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 ___ __

[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: +23672 pull_request: https://github.com/python/cpython/pull/24910 ___ Python tracker ___ __

[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 -- ___

[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

[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 ___ __

[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 ___ __

[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
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 -- __

[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

[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

[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 ___ __

[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

[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

[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

[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 __

[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 ___ __

[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 _

[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

[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

[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 ___ __

[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 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 ---

[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.

[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

[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

[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

[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

[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

[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

[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

[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 ___ _

[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

[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

[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

[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

[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

[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 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. -- _

[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

[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

[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 ___ ___

[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

[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 _

[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

[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 __

[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 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 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

[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

[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

[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 ___ __

[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

[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

[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. -- ___

[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 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

[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: 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

[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

[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

[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://

[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: 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 _

[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

[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 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

[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

[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

[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

[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 __

[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
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

[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

[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 _

[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

  1   2   >