[issue43945] [Enum] standardize format() behavior

2021-04-26 Thread Ethan Furman
Ethan Furman added the comment: New changeset 5987b8c463892e0ab7a63cdae92f34b5eb79732d by Ethan Furman in branch 'master': bpo-43945: [Enum] Deprecate non-standard mixin format() behavior (GH-25649) https://github.com/python/cpython/commit/5987b8c463892e0ab7a63cdae92f34b5eb79732d

[issue26092] doctest should allow custom sys.displayhook

2021-04-26 Thread Sergey B Kirpichev
Change by Sergey B Kirpichev : -- pull_requests: +24342 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25651 ___ Python tracker ___

[issue43947] lambdas stored with assignment expressions are unoptimized

2021-04-26 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- components: +Interpreter Core versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___

[issue43946] unpickling a subclass of list fails when it implements its own extend method

2021-04-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: >From PEP 307: listitemsOptional, and new in this PEP. If this is not None, it should be an iterator (not a sequence!) yielding successive list items. These list items will be pickled, and appended

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-26 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24341 pull_request: https://github.com/python/cpython/pull/25650 ___ Python tracker ___

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-04-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Please open a new issue. It has better chances of being fixed quickly. On Mon, Apr 26, 2021 at 10:02 PM junpengruan wrote: > > junpengruan <632077...@qq.com> added the comment: > > Hi > I think there is another bug when initial_response_ok=False. When

[issue27820] Possible bug in smtplib when initial_response_ok=False

2021-04-26 Thread junpengruan
junpengruan <632077...@qq.com> added the comment: Hi I think there is another bug when initial_response_ok=False. When using AUTH PLAIN, the server will response like: -- C: AUTH PLAIN S: 334 ok. go on -- and it's not base64 encoding, while in the auth() it will

[issue24258] BZ2File objects do not have name attribute

2021-04-26 Thread Roy Smith
Change by Roy Smith : -- nosy: +roysmith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Not found in the documentation

2021-04-26 Thread Paul Bryan
I agree. I would be useful for it to be documented elsewhere, especially in docstrings. I wonder if this is/was a conscious decision to keep Python runtime smaller? Paul On Mon, 2021-04-26 at 18:24 -0700, elas tica wrote: > Le mardi 27 avril 2021 à 01:44:04 UTC+2, Paul Bryan a écrit : > > From >

[issue43945] [Enum] standardize format() behavior

2021-04-26 Thread Ethan Furman
Change by Ethan Furman : -- keywords: +patch pull_requests: +24340 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/25649 ___ Python tracker

Re: Not found in the documentation

2021-04-26 Thread 2QdxY4RzWzUUiLuE
On 2021-04-26 at 18:24:18 -0700, elas tica wrote: > [...] I was expecting to find [a description of what str returns for > various types] in the Built-in Types section from the PSL > documentation. The representation returned by str over a complex > number is not stated. The same for fraction

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-26 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24339 pull_request: https://github.com/python/cpython/pull/25648 ___ Python tracker ___

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-26 Thread Inada Naoki
Inada Naoki added the comment: New changeset cfe523b49280cdc8c239c807121ad3f33552f638 by Inada Naoki in branch 'master': bpo-43651: PEP 597: Fix `socket.makefile()` (GH-25645) https://github.com/python/cpython/commit/cfe523b49280cdc8c239c807121ad3f33552f638 --

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2021-04-26 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: > Thank you for the suggestion Raymond, that was Guido's suggestion. -- ___ Python tracker ___

[issue43946] unpickling a subclass of list fails when it implements its own extend method

2021-04-26 Thread Richard Levasseur
Richard Levasseur added the comment: Here's a self-contained repro: ``` import pickle class MyList(list): def __init__(self, required, values): self.required = required super().__init__(values) def __getstate__(self): return self.required def __setstate__(self, state):

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-26 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24338 pull_request: https://github.com/python/cpython/pull/25645 ___ Python tracker ___

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-26 Thread Inada Naoki
Inada Naoki added the comment: New changeset 9dfefbe3e2dc548ad306870b56cc0cb475aa20a2 by Inada Naoki in branch 'master': bpo-43651: Fix EncodingWarning in `pydoc`. (GH-25644) https://github.com/python/cpython/commit/9dfefbe3e2dc548ad306870b56cc0cb475aa20a2 --

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2021-04-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with Serhiy, Mark and Jelle for the reasons they listed. Am marking this as closed. If there were a greenfield exercise, Integer would be a mildly better choice. However, this code has long been deployed and changing it would create more

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2021-04-26 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: On Tue, Apr 27, 2021 at 02:49:15AM +, Jelle Zijlstra wrote: > Forcing all of them to change doesn't seem particularly valuable. It seems, this will cost very little work on their side, much less than on the CPython side. Do you agree? Something like

[issue43532] Add keyword-only fields to dataclasses

2021-04-26 Thread Laurie Opperman
Laurie Opperman added the comment: Will this close https://bugs.python.org/issue36077 ? -- nosy: +Epic_Wink ___ Python tracker ___

Re: Not found in the documentation

2021-04-26 Thread elas tica
Le mardi 27 avril 2021 à 01:44:04 UTC+2, Paul Bryan a écrit : > From > https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy > > : > Thanks for the reference. I was expecting to find this information in the Built-in Types section from the PSL documentation. The

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2021-04-26 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Like Mark I'm opposed to this change. It requires little work in CPython itself, but numbers.Integral has now been a part of the language for many years and the name is used in numerous third-party projects. Forcing all of them to change doesn't seem

[issue32891] Add 'Integer' as synonym for 'Integral' in numbers module.

2021-04-26 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: > so I'll simply record my -1 for the proposed change and move on Mark, thank you for some PR review, anyway. I hope, we still can count Guido +1 on the change. > If you want to push this change through, the way forward would likely be to > find a

[issue43947] lambdas stored with assignment expressions are unoptimized

2021-04-26 Thread Dan Snider
New submission from Dan Snider : >>> import dis >>> @dis.dis ... def funcdef(k): return k in {None} ... 2 0 LOAD_FAST 0 (k) 2 LOAD_CONST 1

[issue43651] PEP 597: Fix EncodingWarning warnings in the Python stdlib

2021-04-26 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24337 pull_request: https://github.com/python/cpython/pull/25644 ___ Python tracker ___

[issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

2021-04-26 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +24336 pull_request: https://github.com/python/cpython/pull/25643 ___ Python tracker ___

[issue12966] cookielib.LWPCookieJar breaks on cookie values with a newline

2021-04-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: This bug was reported in 2.5 and we don't have a test case attached in this report. Given many changes and age of the bug, I am closing this. A specific report against the latest code will help us to fix this bug. -- stage: -> resolved status:

[issue3609] does parse_header really belong in CGI module?

2021-04-26 Thread Senthil Kumaran
Change by Senthil Kumaran : -- stage: needs patch -> resolved status: languishing -> closed ___ Python tracker ___ ___

[issue23498] Expose http.cookiejar.split_header_words()

2021-04-26 Thread Senthil Kumaran
Change by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3609] does parse_header really belong in CGI module?

2021-04-26 Thread Senthil Kumaran
Senthil Kumaran added the comment: Closing this age old bug in favor of fixing it as part of issue23498. -- resolution: -> wont fix ___ Python tracker ___

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Inada Naoki
Inada Naoki added the comment: > Just to be clear: I would *not* want this new mode to be the *default* > behavior. So far I think ONLY_IF_STRINGIZED is the best compromise for > default behavior. I don't think ONLY_IF_STRINGIZED is the best compromise. I don't think it solve any issue.

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Guido van Rossum
Guido van Rossum added the comment: No, I want the *default* not to raise when eval() fails. -- ___ Python tracker ___ ___

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Guido van Rossum
Guido van Rossum added the comment: I want to be as short as possible. The user may have annotations because they are using mypy. They may be using a library that calls inspect.signature() on some of their functions to retrieve the parameter names conveniently. All this has worked for years,

[issue29368] Optimize unpickling list-like objects: use extend() instead of append()

2021-04-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: The PyList_Check -> PyList_CheckExact change led to bugs where subclasses of list that override extend can no longer be unpickled. https://bugs.python.org/issue43946 -- nosy: +gregory.p.smith ___ Python tracker

[issue42128] Structural Pattern Matching (PEP 634)

2021-04-26 Thread Saiyang Gou
Change by Saiyang Gou : -- nosy: +gousaiyang nosy_count: 12.0 -> 13.0 pull_requests: +24335 pull_request: https://github.com/python/cpython/pull/25642 ___ Python tracker ___

[issue43946] unpickling a subclass of list fails when it implements its own extend method

2021-04-26 Thread Gregory P. Smith
New submission from Gregory P. Smith : The changes from https://bugs.python.org/issue29368 are causing a subclass of list trouble: ``` class FieldList(list): ... def extend(...): ... ``` FieldList has its own extend and append methods that implement additional checks. As it is a

[issue38530] Offer suggestions on AttributeError and NameError

2021-04-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 284c52da092438522949d6f96d8c1f9ff37f9f00 by Dennis Sweeney in branch 'master': bpo-38530: Require 50% similarity in NameError and AttributeError suggestions (GH-25584)

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Larry Hastings
Larry Hastings added the comment: One final thought on that idea. Part of the reason why I didn't go back to the drawing board and re-think the API was because I thought folks were pushing back on the idea of *default* behavior possibly raising exceptions. If I misread it, and the pushback

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Larry Hastings
Larry Hastings added the comment: Just to be clear: I would *not* want this new mode to be the *default* behavior. So far I think ONLY_IF_STRINGIZED is the best compromise for default behavior. -- ___ Python tracker

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Larry Hastings
Larry Hastings added the comment: I like Eric's suggestion best of all. I'd be willing to add a "silence errors on a case-by-case basis" flag to inspect.signature(). I imagine that would add a new field to the Parameter object (as Guido suggested) indicating which objects failed. Would

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Larry Hastings
Larry Hastings added the comment: > There may be a (deliberate? :-) misunderstanding. When I wrote about > "you" inspecting code by a "3rd party" I meant that as a symmetric > relationship -- the "you" could be a library and from the library's > POV the "3rd party" could be you (or me). I

[issue41639] Unpickling derived class of list does not call __init__()

2021-04-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: this looks resolved? -- nosy: +gregory.p.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Eric V. Smith
Eric V. Smith added the comment: I'd like to see the default behavior be to raise an exception if eval fails on any annotation. I think it's reasonable to provide a way to find out which specific keys have problems, but I don't think that should be the default. Wouldn't it be good enough

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Larry Hastings
Larry Hastings added the comment: > I use inspect.signature for getting information about callables > (third-party and first-party) in my type checker: > https://github.com/quora/pyanalyze/blob/master/pyanalyze/arg_spec.py#L436. > In that context, I'd much rather get string annotations that

Re: Not found in the documentation

2021-04-26 Thread Paul Bryan
From  https://docs.python.org/3/reference/datamodel.html#the-standard-type-hierarchy : > The string representations of the numeric classes, computed > by__repr__() and __str__(), have the following properties: > * They are valid numeric literals which, when passed to their >class

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-26 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Pablo, I've made a patch for most of these (I've left out Christian's > modules). I've only added a couple of tests for now. Do you want all in one > PR? Yes, please. The second most important part here is also adding regression tests so this

Not found in the documentation

2021-04-26 Thread elas tica
Python documentation doesn't seem to mention anywhere what is the str value of an int: is it right? the same for float, Fraction, complex, etc? Not worth to be documented? Perphaps str(42) returns "forty two" or "XLII" or "101010" ... -- https://mail.python.org/mailman/listinfo/python-list

[issue40432] Pegen regenerate project for Windows not working

2021-04-26 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-26 Thread Steve Dower
Steve Dower added the comment: Thanks for the PR! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-26 Thread Steve Dower
Steve Dower added the comment: New changeset 7244c0060dc3ef909f34b0791c3e7490b0340d5e by Erlend Egeberg Aasland in branch 'master': bpo-43762: Add audit events for loading of sqlite3 extensions (GH-25246) https://github.com/python/cpython/commit/7244c0060dc3ef909f34b0791c3e7490b0340d5e

[issue39812] Avoid daemon threads in concurrent.futures

2021-04-26 Thread Jan Konopka
Jan Konopka added the comment: Hi all! While browsing StackOverflow I came across this question: https://stackoverflow.com/q/67273533/2111778 The user created a ThreadPoolExecutor which started a Process using multiprocessing. The Process produces an exitcode of 0 in Python 3.8 but an

[issue43945] [Enum] standardize format() behavior

2021-04-26 Thread Ethan Furman
New submission from Ethan Furman : Currently, an enum with a mixed-in data type, such as IntEnum, will use that data type's `__format__` -- unless the user provides their own `__str__`, in which case the `str()` of the enum member will be used in the `format()` call. This behavior will be

[issue27590] tarfile module next() method hides exceptions

2021-04-26 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-26 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Steve & Ned: It would be nice if we could merge the PR's just before the weekend, so we get up-to-date installers for the beta. FYI, the SQLite forum has been quiet, and the fossil branch has not moved. --

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-26 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +24334 pull_request: https://github.com/python/cpython/pull/25641 ___ Python tracker ___

[issue43492] Upgrade to SQLite 3.35.5 in macOS and Windows

2021-04-26 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch pull_requests: +24333 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25640 ___ Python tracker

[issue43908] array.array should remain immutable

2021-04-26 Thread Guido van Rossum
Guido van Rossum added the comment: So keep cutting in half until the error disappears? -- ___ Python tracker ___ ___

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-26 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- keywords: +patch Added file: https://bugs.python.org/file49989/patch.diff ___ Python tracker ___

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-26 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Pablo, I've made a patch for most of these (I've left out Christian's modules). I've only added a couple of tests for now. Do you want all in one PR? $ git diff main --stat Lib/test/test_array.py | 4 Lib/test/test_unicodedata.py

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Guido van Rossum
Guido van Rossum added the comment: There may be a (deliberate? :-) misunderstanding. When I wrote about "you" inspecting code by a "3rd party" I meant that as a symmetric relationship -- the "you" could be a library and from the library's POV the "3rd party" could be you (or me). Either

[issue32958] socket module calls with long host names can fail with idna codec error

2021-04-26 Thread Alex Vandiver
Alex Vandiver added the comment: It seems reasonable to fail on hostnames that are too long -- but it feels like the weirdness is that it is categorized as a UnicodeError, and not as, say, a ValueError. Would a re-categorization as ValueError seem like a reasonable adjustment here?

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: I agree with Guido that it's better to design inspect.signature to not throw an error for annotations that don't eval() cleanly. I use inspect.signature for getting information about callables (third-party and first-party) in my type checker:

[issue43817] Add inspect.get_annotations()

2021-04-26 Thread Larry Hastings
Larry Hastings added the comment: > I'm not a big user of the inspect module, but I always thought that > its use was so that you could look at a function (or other object) > *produced by a 3rd party* and learn something about it. That's interesting! I always thought its main use was the

[issue40608] PY3.8 GC segfault (Py_TRASHCAN_SAFE_BEGIN/END are not backwards compatible)

2021-04-26 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36921] Deprecate yield from and @coroutine in asyncio

2021-04-26 Thread Nathaniel Smith
Nathaniel Smith added the comment: @types.coroutine is still useful as a tool for writing "foundation" coroutines that directly interact with the coroutine runner, e.g.: https://github.com/python-trio/trio/blob/94562c54d241859eb05ed85c88fd6073d6752ff6/trio/_core/_traps.py#L12-L21

[issue42095] plistlib: Add tests that compare with plutil(1)

2021-04-26 Thread Shatabarto Bhattacharya
Change by Shatabarto Bhattacharya : -- nosy: +hrik2001 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25567] shlex.quote doesn't work on bytestrings

2021-04-26 Thread Shatabarto Bhattacharya
Shatabarto Bhattacharya added the comment: Looks like this issue has been solved? What is there to be worked on? -- nosy: +hrik2001 ___ Python tracker ___

[issue43944] Processes in Python 3.9 exiting with code 1 when It's created inside a ThreadPoolExecutor

2021-04-26 Thread Genaro Camele
New submission from Genaro Camele : I've a piece of code that submits a task to a [ThreadPoolExecutor][1] which starts a [Process][2]. I've realised that in Python 3.8 that Process finished with exit code `0`. But I've updated Python to the 3.9 version and this started to finishing with exit

[issue43916] Check that new heap types cannot be created uninitialised

2021-04-26 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Christian: > Can I get rid of the function with "{Py_tp_new, NULL}" [...] Unfortunately not. The workaround in 993e88cf08994f7c1e0f9f62fda4ed32634ee2ad does the trick though. -- ___ Python tracker

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2021-04-26 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 10ad7eb2ef61a2ba99341c804c8c960e4f284621 by Pete Wicken in branch '3.8': [3.8] bpo-28577: Special case added to IP v4 and v6 hosts for /32 and /128 networks (GH-18757) (#25536)

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2021-04-26 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue40432] Pegen regenerate project for Windows not working

2021-04-26 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f65f3f0e99b27e0a4ea6bb7e30c5bdb5832a76c6 by Miss Islington (bot) in branch '3.9': bpo-40432: Use python 3.8 or higher to compile CPython on Windows (GH-25389) (#25637)

[issue41661] os.path.relpath does not document ValueError on Windows with different drives

2021-04-26 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b570feaa9c6039b9d89cdf854a5fb388872eb38e by Miss Islington (bot) in branch '3.8': bpo-41661: Document os.path.relpath() exception on Windows with different drives (GH-25346) (#25367)

[issue17305] IDNA2008 encoding is missing

2021-04-26 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 2760a6711b0f510afbd09b19949bee786e098af9 by Miss Islington (bot) in branch '3.8': bpo-17305: Link to the third-party idna package. (GH-25208) (#25211) https://github.com/python/cpython/commit/2760a6711b0f510afbd09b19949bee786e098af9 --

[issue34463] Discrepancy between traceback.print_exception and sys.__excepthook__

2021-04-26 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 727bed675f1a47d12492efba0ca118707502d988 by Irit Katriel in branch '3.8': [3.8] bpo-34463: Make python tracebacks identical to C tracebacks for (#23899) https://github.com/python/cpython/commit/727bed675f1a47d12492efba0ca118707502d988 --

[issue42924] bytearray_repeat copies from ob_bytes instead of ob_start

2021-04-26 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42924] bytearray_repeat copies from ob_bytes instead of ob_start

2021-04-26 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e1203e8001432a08b87b54867490beb19a694069 by Miss Islington (bot) in branch '3.8': bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24212) https://github.com/python/cpython/commit/e1203e8001432a08b87b54867490beb19a694069 --

[issue42924] bytearray_repeat copies from ob_bytes instead of ob_start

2021-04-26 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d0698c676ca1b7d34be4165a631bf4847583de76 by Miss Islington (bot) in branch '3.9': bpo-42924: Fix incorrect copy in bytearray_repeat (GH-24208) (#24211) https://github.com/python/cpython/commit/d0698c676ca1b7d34be4165a631bf4847583de76 --

[issue43938] Document that dataclasses.FrozenInstanceError derives from AttributeError

2021-04-26 Thread Eric V. Smith
Eric V. Smith added the comment: Thanks for the patch! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43938] Document that dataclasses.FrozenInstanceError derives from AttributeError

2021-04-26 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset c9c1dbd253d70665c1fd20e6341f9a08e21f37f4 by Miss Islington (bot) in branch '3.9': bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (GH-25635)

[issue43938] Document that dataclasses.FrozenInstanceError derives from AttributeError

2021-04-26 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 081bfe4eb58e107de0a38e98c44a3253e4ed1240 by Miss Islington (bot) in branch '3.8': bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603) (GH-25636)

[issue43762] Add audit events for loading of sqlite3 extensions

2021-04-26 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Ah, yes thanks for the heads up! I'll update the PR. -- ___ Python tracker ___ ___

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-26 Thread Barney Gale
Barney Gale added the comment: Totally valid! I suppose it hinges on the relatively likelihood/unlikelihood of us being able to make `expanduser('~foo')` reliable in future. On this question I'm relieved to defer to the experts! @eryksun: penny for your thoughts? --

[issue43908] array.array should remain immutable

2021-04-26 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: > The solution would be bisection -- apply half of the changes from apply-to-all, and see if you still get the errors. Etc. Getting the same error. These are the errors :- 0:12:14 load avg: 0.92 [115/426] test_distutils test test_distutils crashed --

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-26 Thread Steve Dower
Steve Dower added the comment: Yeah, that's all reasonable. But why wouldn't we go the other way and say "getting a user directory for a different user is not supported and all existing ways to do it are now deprecated"? I know you think that's not a relevant argument right now, but it is

[issue40432] Pegen regenerate project for Windows not working

2021-04-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 8.0 -> 9.0 pull_requests: +24332 pull_request: https://github.com/python/cpython/pull/25637 ___ Python tracker

[issue40432] Pegen regenerate project for Windows not working

2021-04-26 Thread Steve Dower
Steve Dower added the comment: New changeset 425434dadc30d96dc1c0c628f954f9b6f5edd2c9 by Ken Jin in branch 'master': bpo-40432: Use python 3.8 or higher to compile CPython on Windows (#25389) https://github.com/python/cpython/commit/425434dadc30d96dc1c0c628f954f9b6f5edd2c9 --

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-26 Thread Barney Gale
Barney Gale added the comment: In the previous comment, I was referring to bpo-39899 when I referred to "my patch". Long day! :D -- ___ Python tracker ___

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-26 Thread Barney Gale
Barney Gale added the comment: Thanks very much for taking a look. I can understand the view that, given the unreliability of `os.path.expanduser('~foo')`, we shouldn't be making that functionality *more* available. My argument for this being a reasonable change is as follows: Firstly,

[issue43938] Document that dataclasses.FrozenInstanceError derives from AttributeError

2021-04-26 Thread miss-islington
Change by miss-islington : -- pull_requests: +24331 pull_request: https://github.com/python/cpython/pull/25636 ___ Python tracker ___

[issue43938] Document that dataclasses.FrozenInstanceError derives from AttributeError

2021-04-26 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +24330 pull_request: https://github.com/python/cpython/pull/25635 ___ Python tracker

[issue43938] Document that dataclasses.FrozenInstanceError derives from AttributeError

2021-04-26 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 8a307e488d596914a7a5df6b2fdd945f8ce81e69 by Llandy Riveron Del Risco in branch 'master': bpo-43938: improve dataclasses.FrozenInstanceError documentation (GH-25603)

[issue43908] array.array should remain immutable

2021-04-26 Thread Shreyan Avigyan
Change by Shreyan Avigyan : Removed file: https://bugs.python.org/file49988/patch.diff ___ Python tracker ___ ___ Python-bugs-list mailing

Re: async watch directory for new files

2021-04-26 Thread Barry Scott
> On 24 Apr 2021, at 21:12, Zoran wrote: > > As I can see https://pypi.org/project/inotify/ > is not asyncio frendly. > Whatever I use, it should be asynchronous. > Final OS is linux (Centos 7), but I am doing development on Windows 10 > machine, so it

[issue42998] pathlib.Path: add `username` argument to `home()`

2021-04-26 Thread Steve Dower
Steve Dower added the comment: I'm not convinced this is a good change, mainly for the reasons Serhiy mentioned (and others have mentioned when I've spoken with them privately). What would you do with your custom subclass if home() did not have this argument? -- nosy: +steve.dower

[issue43908] array.array should remain immutable

2021-04-26 Thread Guido van Rossum
Guido van Rossum added the comment: The solution would be bisection -- apply half of the changes from apply-to-all, and see if you still get the errors. Etc. -- ___ Python tracker

[issue43908] array.array should remain immutable

2021-04-26 Thread Shreyan Avigyan
Shreyan Avigyan added the comment: @serhiy.storchaka I have no idea what's causing the errors I described in https://bugs.python.org/msg391947. I looked at all the changes in apply-to-all.diff and I don't think any of the errors are related. Do you have any thoughts about this problem? Is

[issue43757] pathlib: move 'resolve()' logic out of path flavour

2021-04-26 Thread Steve Dower
Steve Dower added the comment: I'm happy with the PR as it stands now. Anyone else have an opinion? -- nosy: +eryksun, steve.dower ___ Python tracker ___

[issue31726] Missing token.COMMENT

2021-04-26 Thread Irit Katriel
Irit Katriel added the comment: Fixed in 3.7 and too late for earlier versions. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue43908] array.array should remain immutable

2021-04-26 Thread Guido van Rossum
Guido van Rossum added the comment: PS. Don't wait for me. I'm going on vacation this Thursday and won't be back until well after the 3.10b1 release is done, and before I go I'm pretty busy already. -- ___ Python tracker

  1   2   3   >