[issue44318] Asyncio classes missing __slots__

2021-06-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: My mistake, I forgot the size of the dict itself is not included in getsizeof(). -- ___ Python tracker ___

[issue14995] PyLong_FromString documentation should state that the string must be null-terminated

2021-06-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: The description is nonsensical as is; not sure the patch goes far enough. C-style strings are *defined* to end at the NUL terminator; if it really needs a NUL after the int, saying it "points to the first character which follows the representation of the

[issue44318] Asyncio classes missing __slots__

2021-06-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: Andrei: The size of an instance of Semaphore is 48 bytes + 104 more bytes for the __dict__ containing its three attributes (ignoring the cost of the attributes themselves). A slotted class with three attributes only needs 56 bytes of overhead per-instance

[issue44318] Asyncio classes missing __slots__

2021-06-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: The size of an instance of Semaphore is 48, of an empty tuple is 40, of a small int is 28, of an instance of a normal class with a single slot in __slots__ is also 40, are you use 48 byte size will really be an issue for you? --

[issue44365] Bad dataclass post-init example

2021-06-17 Thread Andrei Kulakov
Andrei Kulakov added the comment: It's a good example, but some readers might only have a vague idea (if any) of what FTP is, so a self contained example might be easier to digest? -- ___ Python tracker

[issue44433] processes created by subprocess.Popen is not terminating

2021-06-17 Thread Eric V. Smith
Eric V. Smith added the comment: I'm going to close this. If you can reproduce it with a smaller program that we can test, please attach the information and re-open this issue. -- resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior

[issue44448] Suggestion: change existing error message for invalid function name

2021-06-17 Thread Andre Roberge
New submission from Andre Roberge : Consider the following two examples with the latest beta release: Python 3.10.0b3 ... >>> def 3job(x): File "", line 1 def 3job(x): ^ SyntaxError: invalid imaginary literal >>> def 3ob(x): File "", line 1 def 3ob(x): ^

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Filipe Laíns
Filipe Laíns added the comment: Upon further investigation, there are actually two issues here. The first would be the one I identified already, traceback.FrameSummary not being prepared for lineno being None, but there is also a regression in lineno being invalid in this situation in the

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Filipe Laíns
Change by Filipe Laíns : -- pull_requests: +25367 pull_request: https://github.com/python/cpython/pull/26782 ___ Python tracker ___

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2021-06-17 Thread Brett Cannon
Brett Cannon added the comment: Did you mean to link to a fork, Irit? -- status: pending -> open ___ Python tracker ___ ___

[issue44447] Syntax Error not as detailed as shown

2021-06-17 Thread Andre Roberge
Andre Roberge added the comment: Your example is different than the one in the documentation (What's new). >>> (x, x for x in range(7)) # Your example File "", line 1 (x, x for x in range(7)) ^^^ SyntaxError: invalid syntax >>> foo(x, x for x in range(7)) # Example similar

[issue44447] Syntax Error not as detailed as shown

2021-06-17 Thread Eesa Ibrahim Khokhar
New submission from Eesa Ibrahim Khokhar : I was testing the new features for python 3.10 beta 3, and noticed the errors were not as detailed as shown in the docs. I have an image below: In the docs, it was said that the entire generator statement would be pointed out by carets. However,

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Filipe Laíns
Filipe Laíns added the comment: I bissected this to 088a15c49d99ecb4c3bef93f8f40dd513c6cae3b and submitted a patch making traceback.FrameSummary take into consideration that lineno might be None, I believe this is probably the correct fix. -- ___

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch nosy: +FFY00 nosy_count: 4.0 -> 5.0 pull_requests: +25366 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26781 ___ Python tracker

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 77eaf14d278882857e658f83681e5b9a52cf14ac by Miss Islington (bot) in branch '3.10': bpo-44310: Add a FAQ entry for caching method calls (GH-26731) (GH-26777) https://github.com/python/cpython/commit/77eaf14d278882857e658f83681e5b9a52cf14ac

[issue25251] Unknown MS Compiler version 1900

2021-06-17 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 14.0 -> 15.0 pull_requests: +25365 pull_request: https://github.com/python/cpython/pull/26780 ___ Python tracker ___

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +25363 pull_request: https://github.com/python/cpython/pull/26777 ___ Python tracker ___

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +25364 pull_request: https://github.com/python/cpython/pull/26778 ___ Python tracker ___

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 7f01f77f8fabcfd7ddb5d99f12d6fc99af9af384 by Raymond Hettinger in branch 'main': bpo-44310: Add a FAQ entry for caching method calls (GH-26731) https://github.com/python/cpython/commit/7f01f77f8fabcfd7ddb5d99f12d6fc99af9af384 --

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I meant, if one has set maxsize=None. The docs already say, "If maxsize is set to None, the LRU feature is disabled and the cache can grow without bound." -- ___ Python tracker

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: (but consenting adults, setting max_size=None for "efficiency", you better be sure what you are doing in a long running process and making sure it cannot grow unbounded.) -- ___ Python tracker

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: I clearly was missing some words there Raymond. I meant, if one has set maxsize=None. -- ___ Python tracker ___

[issue44310] Document that lru_cache uses hard references

2021-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > if you are creating instances and calling this method > all the time, will lead to an infinite memory leak. Your words aren't making any sense to me. The default lru_cache will never hold more than maxsize entries. The default maxsize is 128. How is

[issue31538] mailbox does not treat external factories the same

2021-06-17 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar : -- versions: +Python 3.10, Python 3.11 -Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___

[issue31538] mailbox does not treat external factories the same

2021-06-17 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar : -- keywords: +patch nosy: +Cryvate nosy_count: 4.0 -> 5.0 pull_requests: +25362 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26776 ___ Python tracker

[issue38193] http.client should be "runnable" like http.server

2021-06-17 Thread Jonathan Schweder
Change by Jonathan Schweder : -- keywords: +patch nosy: +jaswdr nosy_count: 1.0 -> 2.0 pull_requests: +25361 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26775 ___ Python tracker

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Thomas Grainger
Change by Thomas Grainger : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Thomas Grainger
Change by Thomas Grainger : -- nosy: +Mark.Shannon -nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Ned Batchelder
Change by Ned Batchelder : -- nosy: +nedbat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-17 Thread Eric Snow
Eric Snow added the comment: FWIW, I've wrapped up the key parts that I wanted to get done here (co_localplusnames/kinds, MAKE_CELL, eliminate unused fast local for arg cells). I'm leaving this open for now as there are a few things I didn't do that seem part of the original intention of this

[issue14995] PyLong_FromString documentation should state that the string must be null-terminated

2021-06-17 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar : -- nosy: +Cryvate nosy_count: 4.0 -> 5.0 pull_requests: +25360 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26774 ___ Python tracker

[issue44446] linecache.getline TypeError when formatting tracebacks in stacks containing an async list comprehension

2021-06-17 Thread Thomas Grainger
New submission from Thomas Grainger : demo: import traceback import io async def foo(): yield 1 traceback.print_stack(file=io.StringIO()) yield 2 async def bar(): return [chunk async for chunk in foo()] next(bar().__await__(), None) print("working!") Traceback (most

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks; this looks like an easy fix, then. No time right now, but I'll aim to get to it at some point before the end of the weekend, if no-one beats me to it. -- ___ Python tracker

[issue44445] Add `site-include` install scheme path in sysconfig

2021-06-17 Thread Steve Dower
Steve Dower added the comment: distutils.sysconfig doesn't expose the headers path either, it's only there as a default value for the install command (Lib/distutils/command/install.py). So it doesn't seem unreasonable to provide a recommendation on where to put shared header files and let

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-06-17 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-06-17 Thread Irit Katriel
Irit Katriel added the comment: New changeset eb0a6801bef4f68eebf6fdb2b7a32c32a5b6c983 by Miss Islington (bot) in branch '3.10': bpo-43024: improve signature (in help, etc) for functions taking sent… (GH-24331) (GH-26773)

[issue44384] test_ttk_guionly: 2 tests fail once each on Pipelines Ubuntu

2021-06-17 Thread E. Paine
Change by E. Paine : -- nosy: +epaine ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +25359 pull_request: https://github.com/python/cpython/pull/26773 ___ Python tracker ___

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-06-17 Thread miss-islington
miss-islington added the comment: New changeset f73377d57c5272390de633c292c44689310a by Irit Katriel in branch 'main': bpo-43024: improve signature (in help, etc) for functions taking sent… (GH-24331) https://github.com/python/cpython/commit/f73377d57c5272390de633c292c44689310a

[issue31299] Add "ignore_modules" option to TracebackException.format()

2021-06-17 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +25358 pull_request: https://github.com/python/cpython/pull/26772 ___ Python tracker ___

[issue23316] Incorrect evaluation order of function arguments with *args

2021-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was pointing out what to me is a second related contradiction in the doc, between one sentence and the next. -- ___ Python tracker ___

[issue44032] Function locals and evaluation stack should be stored in a contiguous, per-thread stack

2021-06-17 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +25357 pull_request: https://github.com/python/cpython/pull/26771 ___ Python tracker ___

[issue44442] Globals (and presumably builtins) are cleared premuturely in FrameObject

2021-06-17 Thread Mark Shannon
Mark Shannon added the comment: No problem, I've added a simple test. -- stage: patch review -> ___ Python tracker ___ ___

[issue44442] Globals (and presumably builtins) are cleared premuturely in FrameObject

2021-06-17 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44444] Spam

2021-06-17 Thread Zachary Ware
Change by Zachary Ware : -- nosy: -zach.ware ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44444] Spam

2021-06-17 Thread Zachary Ware
Change by Zachary Ware : -- Removed message: https://bugs.python.org/msg396003 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue44444] Spam

2021-06-17 Thread Zachary Ware
Zachary Ware added the comment: So disappointing that this issue number was taken by spam :( -- nosy: +zach.ware -fastwaytracking123 title: How can track and trace your parcel live? -> Spam ___ Python tracker

[issue23316] Incorrect evaluation order of function arguments with *args

2021-06-17 Thread Guido van Rossum
Guido van Rossum added the comment: I'm currently not very interested in philosophizing about why we allow one syntax but not the other. -- ___ Python tracker ___

[issue1105770] null source chars handled oddly by tokenize

2021-06-17 Thread Guido van Rossum
Guido van Rossum added the comment: Closing in favor of issue20115. -- nosy: +gvanrossum resolution: -> duplicate stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue44445] Add `site-include` install scheme path in sysconfig

2021-06-17 Thread Filipe Laíns
New submission from Filipe Laíns : During the distutils deprecation, we have identified that there is no good replacement for the distutils `headers` install path. This path defines where packages are supposed to install headers on the system. The setuptools equivalent would be

[issue44444] How can track and trace your parcel live?

2021-06-17 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44444] How can track and trace your parcel live?

2021-06-17 Thread fastway track
New submission from fastway track : Do you feel worried about your parcel and also get bored collecting the parcel from depo? Fastway Tracking is the best service for tracking the parcel. You are looking for a service in which you can track your parcel and also get the parcel at home? Then

[issue44442] Globals (and presumably builtins) are cleared premuturely in FrameObject

2021-06-17 Thread STINNER Victor
STINNER Victor added the comment: > Victor, you've mentioned this problem. Did you have a specific example I can > add as a test? Sorry, I didn't have any reproducer. I vaguely recall an error in the unittest module when getting globals from a frame. --

[issue44443] dataclass looks up field default value on the class, not the class's __dict__

2021-06-17 Thread Eric V. Smith
Change by Eric V. Smith : -- title: dataclass looks up default on the class, not the class's __dict__ -> dataclass looks up field default value on the class, not the class's __dict__ ___ Python tracker

[issue38820] Make Python compatible with OpenSSL 3.0.0

2021-06-17 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +25356 pull_request: https://github.com/python/cpython/pull/26769 ___ Python tracker ___

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-17 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14995] PyLong_FromString documentation should state that the string must be null-terminated

2021-06-17 Thread Henk-Jaap Wagenaar
Change by Henk-Jaap Wagenaar : -- nosy: +cryvate ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38146] QVariant NULL returns anomalous values in equality statements

2021-06-17 Thread Irit Katriel
Irit Katriel added the comment: This looks like an issue with the way QVariant is defined. I'm not sure why you are reporting it as a Python bug? -- nosy: +iritkatriel resolution: -> third party status: open -> pending ___ Python tracker

[issue14995] PyLong_FromString documentation should state that the string must be null-terminated

2021-06-17 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy type: -> enhancement versions: +Python 3.11 ___ Python tracker ___ ___

[issue44324] add a "expected expression" syntax error

2021-06-17 Thread Andre Roberge
Change by Andre Roberge : -- nosy: +aroberge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44443] dataclass looks up default on the class, not the class's __dict__

2021-06-17 Thread Eric V. Smith
Change by Eric V. Smith : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44443] dataclass looks up default on the class, not the class's __dict__

2021-06-17 Thread Eric V. Smith
Change by Eric V. Smith : -- title: dataclass looks up default on the class, not the classes __dict__ -> dataclass looks up default on the class, not the class's __dict__ ___ Python tracker

[issue44443] dataclass looks up default on the class, not the classes __dict__

2021-06-17 Thread Eric V. Smith
New submission from Eric V. Smith : Consider: class FtpHelper(ftplib.FTP): host: str baz: str = 'baz default' >>> FtpHelper.host '' >>> FtpHelper.baz 'baz default' >>> getattr(FtpHelper, "host") '' >>> getattr(FtpHelper, "baz") 'baz default' But: >>> FtpHelper.__dict__['host']

[issue44365] Bad dataclass post-init example

2021-06-17 Thread Eric V. Smith
Eric V. Smith added the comment: I was thinking about something like: @dataclass class FtpHelper(ftplib.FTP): my_host: str my_user: str lookup_password: InitVar[Callable] def __post_init__(self, lookup_password): super().__init__(host=self.my_host, user=self.my_user,

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: The sentence within the doc should not be considered in isolation. The "Logger" object is *not* ignoring the message (in accordance with the documentation and your expectation), but the "Handler" is, see

[issue44324] add a "expected expression" syntax error

2021-06-17 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-17 Thread Karolina Surma
Karolina Surma added the comment: Thanks for the suggestion, I reran the build without -W option. Fortunately, the output shows that the reported errors shall be the only ones. Build logs from the test build for reference:

[issue44405] add program passed as string to dis module.

2021-06-17 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14322] More test coverage for hmac

2021-06-17 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43024] improve signature (in help, etc) for functions taking sentinel defaults

2021-06-17 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44442] Globals (and presumably builtins) are cleared premuturely in FrameObject

2021-06-17 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +25355 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26768 ___ Python tracker ___

[issue10582] PyErr_PrintEx exits silently when passed SystemExit exception

2021-06-17 Thread Irit Katriel
Irit Katriel added the comment: This was removed in https://github.com/python/cpython/pull/13390. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue44442] Globals (and presumably builtins) are cleared premuturely in FrameObject

2021-06-17 Thread Mark Shannon
New submission from Mark Shannon : When calling frame.clear(), the globals (and builtins) are cleared. This is not the case in 3.10. We should restore the 3.10 behavior, as there is no reason not to. Victor, you've mentioned this problem. Did you have a specific example I can add as a test?

[issue12600] Add example of using load_tests to parameterise Test Cases

2021-06-17 Thread Irit Katriel
Irit Katriel added the comment: It remains to update the load_test doc along the lines of Michael's suggestion in msg140999. -- keywords: +easy nosy: +iritkatriel versions: +Python 3.11 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Alexander Dietz
Alexander Dietz added the comment: I was not asking for a solution or a workaround. I simply wanted to submit this bug in either the code or the documentation. -- ___ Python tracker

[issue9102] pybench: Cannot compare 2.x and 3.x benchmarks

2021-06-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Yes, closing. -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___

[issue9102] pybench: Cannot compare 2.x and 3.x benchmarks

2021-06-17 Thread Irit Katriel
Irit Katriel added the comment: Can we close this? I don't think we are still interested in performance comparisons with Python 2. -- nosy: +iritkatriel resolution: -> out of date status: open -> pending ___ Python tracker

[issue43693] Logically merge cell and locals array. They are already contiguous in memory

2021-06-17 Thread Mark Shannon
Change by Mark Shannon : -- assignee: Mark.Shannon -> eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue44318] Asyncio classes missing __slots__

2021-06-17 Thread Bluenix
Bluenix added the comment: My exact use-case is that I am subclassing asyncio.Semaphore to change some functionality (override `release()` to do nothing and set up tasks to schedule calls to reset the counter). I am expecting *a lot* of these instances so (like Serhiy Storchaka nicely put

[issue20115] NUL bytes in commented lines

2021-06-17 Thread Irit Katriel
Irit Katriel added the comment: See also issue1105770. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16376] wrong type for wintypes.BYTE

2021-06-17 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +amaury.forgeotdarc, belopolsky versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-17 Thread kryheb
Change by kryheb : -- keywords: +patch pull_requests: +25353 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26767 ___ Python tracker ___

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-06-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 7297d74251de3b1c02dcdb9ca281461cc7fb4535 by Miss Islington (bot) in branch '3.10': bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351) (GH-26766)

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Henk-Jaap Wagenaar
Henk-Jaap Wagenaar added the comment: Logging can be quite tricky. There are filters at multiple levels. In this case, you didn't set up the "global logging" and I am guessing, by default, it only shows WARNING and above. You can fix your problem by doing:

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. That one's a genuine keyword. Looks like what we probably need to do is get a list of all these errors, so that they can all be fixed at once. Presumably running without the "-W" flag would make that easier. --

[issue44441] Malformed PyImport_Inittab after re-initialization

2021-06-17 Thread kryheb
New submission from kryheb : Hi all, I observed misbehavior trying to embed the Python interpreter into a C app. It seems that after re-initialization, PyImport_Inittab is malformed and points to the memory freed _PyImport_Fini2. Steps to reproduce: 1. Append embedded module 2. Initialize

[issue44440] logging does not work as documented (setLevel)

2021-06-17 Thread Alexander Dietz
New submission from Alexander Dietz : Using python 3.8.10 and the documentation https://docs.python.org/3.8/library/logging.html it seems that either the documentation is incorrect/unclear, or that the logging module does not work as described. Reading on the Logger Object and the setLevel

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-06-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 00710e6346fd2394aa020b2dfae170093effac98 by Erlend Egeberg Aasland in branch 'main': bpo-43908: Make heap types converted during 3.10 alpha immutable (GH-26351)

[issue43908] array.array should remain immutable: add Py_TPFLAGS_IMMUTABLETYPE flag

2021-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +25352 pull_request: https://github.com/python/cpython/pull/26766 ___ Python tracker ___

[issue44389] Modules/_ssl.c, repeated 'SSL_OP_NO_TLSv1_2'

2021-06-17 Thread miss-islington
miss-islington added the comment: New changeset 08f2b9dedea13d2e9d11c189914387db3a66e2ca by Miss Islington (bot) in branch '3.10': bpo-44389: Fix typo in ssl deprecation warning message (GH-26754) https://github.com/python/cpython/commit/08f2b9dedea13d2e9d11c189914387db3a66e2ca --

[issue44389] Modules/_ssl.c, repeated 'SSL_OP_NO_TLSv1_2'

2021-06-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +25351 pull_request: https://github.com/python/cpython/pull/26765 ___ Python tracker ___

[issue44389] Modules/_ssl.c, repeated 'SSL_OP_NO_TLSv1_2'

2021-06-17 Thread miss-islington
miss-islington added the comment: New changeset c544393b89f9b3e2b1a22588fc9ae58019314879 by Joe in branch 'main': bpo-44389: Fix typo in ssl deprecation warning message (GH-26754) https://github.com/python/cpython/commit/c544393b89f9b3e2b1a22588fc9ae58019314879 --

[issue44426] Docs fail to build with Sphinx 4 due to Invalid C declaration

2021-06-17 Thread Karolina Surma
Karolina Surma added the comment: Thanks for the fix, this indeed worked. Documentation however still doesn't build successfully, this time with a traceback: Warning, treated as error: /builddir/build/BUILD/Python-3.10.0b2/Doc/c-api/object.rst:314:Error in declarator or parameters Error in

[issue16437] issubclass doc improvement

2021-06-17 Thread Irit Katriel
Irit Katriel added the comment: @Ken - not quite. This issue is about isinstance containing "(or recursively, other such tuples)" which is not there for issubclass. -- ___ Python tracker

[issue23316] Incorrect evaluation order of function arguments with *args

2021-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: (The nosy list change was an accident of my local copy not being complete refreshed before posting.) If (b=b, *c) were evaluated in order, then the byte code for b=b and any subsequent keyword arguments would have to be put aside, such as in a separate

[issue44439] PickleBuffer doesn't have __len__ method

2021-06-17 Thread Ma Lin
Change by Ma Lin : -- keywords: +patch pull_requests: +25350 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26764 ___ Python tracker ___

[issue38211] clean up type_init()

2021-06-17 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I'm marking this as closed/fixed. Mark, please reopen if you disagree :) -- nosy: +erlendaasland resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue44439] PickleBuffer doesn't have __len__ method

2021-06-17 Thread Ma Lin
Ma Lin added the comment: Ok, I'm working on a PR. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23316] Incorrect evaluation order of function arguments with *args

2021-06-17 Thread Guido van Rossum
Guido van Rossum added the comment: Looks like Terry accidentally removed Serhiy. Adding him back. -- nosy: +Guido.van.Rossum, serhiy.storchaka ___ Python tracker ___

  1   2   >