[issue44814] python 3.9.6 installation installs 0 modules

2021-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: Setting as pending. It looks as though this report represents a misunderstanding of how Python works rather than a bug in Python. -- nosy: +mark.dickinson resolution: -> not a bug status: open -> pending ___ Pytho

[issue44821] Instance dictionaries should be created eagerly

2021-08-04 Thread Mark Shannon
New submission from Mark Shannon : Currently, instance dictionaries (__dict__ attribute) are created lazily when the first attribute is set. This is bad for performance for a number of reasons: 1. It causes additional checks on every attribute access. 2. It causes allocation of the object and

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : The third argument to sqlite3_result_text() is the length of the string passed as the second argument. Currently, we pass -1, so SQLite has to invoke strlen() to compute the length of the passed string. Suggesting to use PyUnicode_AsUTF8AndSize() iso. P

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +26090 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27588 ___ Python tracker __

[issue44823] Docs fail to build - looking for the wrong interpreter (Python 3.10-rc1)

2021-08-04 Thread Karolina Surma
New submission from Karolina Surma : Documentation for Python3.10-rc1 fails to build. sphinx-build looks for non-existing interpreter, which causes a crash. Looking at the tarball with Python, there is Doc/venv/ present (which probably shouldn't be included) containing executable sphinx-build w

[issue44824] The 3.10.0rv1 source tarballs contain the Docs/venv directory populated with pablogsal's venv

2021-08-04 Thread Miro Hrončok
New submission from Miro Hrončok : When we download the signed Python-3.10.0rc1.tgz or Python-3.10.0rc1.tar.xz source tarball, we see that the Docs/venv directory contains teh actual virtual environment with #!/home/pablogsal/github/python/3.10/3.10.0rc1/Python-3.10.0rc1/Doc/venv/bin/python3

[issue44824] The 3.10.0rc1 source tarballs contain the Docs/venv directory populated with pablogsal's venv

2021-08-04 Thread Miro Hrončok
Change by Miro Hrončok : -- title: The 3.10.0rv1 source tarballs contain the Docs/venv directory populated with pablogsal's venv -> The 3.10.0rc1 source tarballs contain the Docs/venv directory populated with pablogsal's venv ___ Python tracker

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-04 Thread Miro Hrončok
Miro Hrončok added the comment: The 3.10.0rc1 source tarballs contain the Docs/venv directory populated with pablogsal's venv: issue44824 -- nosy: +hroncok ___ Python tracker

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The difference between specifying negative and non-negative third argument of sqlite3_result_text() is that in the latter case the result can contain embedded NUL characters. Could you please add a test for string containing embedded NUL? Letting SQLite c

[issue43498] "dictionary changed size during iteration" error in _ExecutorManagerThread

2021-08-04 Thread Jakub Kulik
Jakub Kulik added the comment: I think that even if copy() doesn't fix it entirely, it's still much better than nothing. I never encountered the issue mentioned in bpo-40327, but I saw this issue several times a week (before applying the proposed patch). -- _

[issue44823] Docs fail to build - looking for the wrong interpreter (Python 3.10-rc1)

2021-08-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems like a duplicate of https://bugs.python.org/issue44824 -- nosy: +pablogsal, xtreak ___ Python tracker ___ ___

[issue44824] The 3.10.0rc1 source tarballs contain the Docs/venv directory populated with pablogsal's venv

2021-08-04 Thread Miro Hrončok
Miro Hrončok added the comment: This is the same as https://bugs.python.org/issue44823, sorry about that. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Could you please add a test for string containing embedded NUL? Of course, thanks for the heads up. > I think that we should raise explicit error if sz > INT_MAX. Yes, I thought about this. I do agree that raising OverflowError would be better. Thanks.

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-04 Thread Petr Viktorin
Petr Viktorin added the comment: The issue this (or lack of communication about it) caused in rc1 is tracked in https://bugs.python.org/issue44823 > @petr.viktorin a whatsnew entry was added, what more notice could have been > provided? Ideally, the python-dev mailing list (or Discourse).

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-04 Thread Petr Viktorin
Petr Viktorin added the comment: I've sent a mail to python-dev: https://mail.python.org/archives/list/python-...@python.org/thread/MGPNI7OSA7UXNOTVDVW2I2GUMXV25FRS/ -- ___ Python tracker __

[issue44772] Regression in memory use of instances due to dictionary ordering

2021-08-04 Thread Mark Shannon
Mark Shannon added the comment: Raymond, When you say "this was mostly a net win" do you mean the more compact layout or ordering? The compact layout is obviously a win, and doesn't conflict with sharing. The problem is that ordering conflicts with sharing. As long as instances all have att

[issue44823] Docs fail to build - looking for the wrong interpreter (Python 3.10-rc1)

2021-08-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will look into this ASAP -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue44825] node.annotation is not a str in `ast`'s `class _Unparser(NodeVisitor)`

2021-08-04 Thread Samuel Marks
New submission from Samuel Marks : I tried making `node.annotation` an `ast.Name("str", ast.Load())`, which worked but when the AST was unparsed to a string it shows as `# type: `. https://github.com/offscale/cdd-python/runs/3213864077 Replicate with: ``` unparse(Assign(annotation=None, simple

[issue44825] node.annotation is not a str in `ast`'s `class _Unparser(NodeVisitor)`

2021-08-04 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44825] node.annotation is not a str in `ast`'s `class _Unparser(NodeVisitor)`

2021-08-04 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: @samuelmarks can you share the full reproducer / AST and what you expect it to be unparsed? (you can use gist or other pasting services if it is too big) -- ___ Python tracker

[issue44825] node.annotation is not a str in `ast`'s `class _Unparser(NodeVisitor)`

2021-08-04 Thread Samuel Marks
Samuel Marks added the comment: Hmm, debugging my test and I was able to replicate it with this smaller one: ``` from ast import FunctionDef, arguments, Load, Name, AnnAssign, Store, BinOp, Add, unparse unparse(FunctionDef(args=arguments(args=[], defaults=[],

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue44822] [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text()

2021-08-04 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: Serhiy, I've updated the PR, if you want to take a look. Thanks for your feedback. -- ___ Python tracker ___

[issue44823] Docs fail to build - looking for the wrong interpreter (Python 3.10-rc1)

2021-08-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The tarball in the download server has been updated to not contain the venv directory and the release machinery has been updated to account for https://bugs.python.org/issue44756 -- ___ Python tracker

[issue44823] Docs fail to build - looking for the wrong interpreter (Python 3.10-rc1)

2021-08-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Note, this problem was created due to: https://bugs.python.org/issue44756 -- ___ Python tracker ___ _

[issue44756] In ./Doc, "make html" and "make build" should depend on "make venv"

2021-08-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Note this issue has impacted negatively the release process of 3.10.0rc1: https://bugs.python.org/issue44823 -- ___ Python tracker __

[issue44823] Docs fail to build - looking for the wrong interpreter (Python 3.10-rc1)

2021-08-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue44825] node.annotation is not a str in `ast`'s `class _Unparser(NodeVisitor)`

2021-08-04 Thread Samuel Marks
Samuel Marks added the comment: Fixed with https://github.com/offscale/cdd-python/commit/079dc28 -- stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue44825] node.annotation is not a str in `ast`'s `class _Unparser(NodeVisitor)`

2021-08-04 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > Which for some reason has made the `annotation` a `str` rather than `Name`. > So I think it's my bug then? Yes, from what I can see it is a bug in your code. > body=[AnnAssign(annotation='int', The 'annotation' field in 'AnnAssign' nodes are desi

[issue44826] Specialize STORE_ATTR using PEP 659 machinery.

2021-08-04 Thread Mark Shannon
New submission from Mark Shannon : Add specializations of STORE_ATTR following the pattern of LOAD_ATTR and LOAD_GLOBAL. For this to work well we need https://bugs.python.org/issue44821, otherwise the first assigned to an attribute of any object cannot be specialized. -- messages: 39

[issue44821] Instance dictionaries should be created eagerly

2021-08-04 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +26091 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27589 ___ Python tracker ___ ___

[issue44826] Specialize STORE_ATTR using PEP 659 machinery.

2021-08-04 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +26092 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27590 ___ Python tracker ___ ___

[issue44822] [sqlite3] Do not truncate results of user functions and aggregates on the first NUL

2021-08-04 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- title: [sqlite3] Micro-optimisation: pass string size to sqlite3_result_text() -> [sqlite3] Do not truncate results of user functions and aggregates on the first NUL type: enhancement -> behavior versions: +Python 3.10, Python 3.9 _

[issue44827] Incomplete 3.10.0rc1 release info

2021-08-04 Thread PEW's Corner
New submission from PEW's Corner : The "Files" section is empty on this page: https://www.python.org/downloads/release/python-3100rc1/ Also, the Python Insider blog post contains the outdated b4 text under "And now for something completely different". -- messages: 39 nosy: pewsco

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-08-04 Thread Nythepegasus
New submission from Nythepegasus : Using tkinter.filedialog crashes on macOS 12.0 Beta (21A5294g) on M1 when the open file dialog window is created. Full crash below: 2021-08-04 07:19:04.239 Python[40251:323363] *** Assertion failure in -[NSOpenPanel beginServicePanel:asyncExHandler:], NSVBOp

[issue39940] Micro-optimizations to PySequence_Tuple()

2021-08-04 Thread Irit Katriel
Irit Katriel added the comment: Marco, are you planning to complete this work, and in particular show the benefit with benchmarks? Otherwise, if this project is abandoned I will close the issue and the PR. -- nosy: +iritkatriel status: open -> pending ___

[issue44819] assertSequenceEqual does not use _getAssertEqualityFunc

2021-08-04 Thread Irit Katriel
Irit Katriel added the comment: That's correct, and apparently not mentioned in the doc: https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertSequenceEqual -- nosy: +ezio.melotti, iritkatriel, michael.foord, rbcollins ___ Python

[issue44827] Incomplete 3.10.0rc1 release info

2021-08-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I can see the files section table with links. -- nosy: +pablogsal, xtreak ___ Python tracker ___ __

[issue44827] Incomplete 3.10.0rc1 release info

2021-08-04 Thread PEW's Corner
PEW's Corner added the comment: Yes, they're there now. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue42524] [doc] pdb access to return value

2021-08-04 Thread Romuald Brunet
Romuald Brunet added the comment: I'm not sure I follow. You wish to "simply" update the doc? (and not update the retval to allow storing it into a varible. I'm OK with that) But if we choose this, I'm not sure what needs changing in the doctests :-? Another interrogation: is the use loca

[issue44050] [subinterpreters] _PyImport_FixupExtensionObject() regression in Python 3.9

2021-08-04 Thread Trygve Aaberge
Trygve Aaberge added the comment: @jack__d: If you're just getting "no data" once and nothing else, the test isn't working correctly. You should get "no data" twice when it works correctly and the issue is fixed, or "unknown error" and some other info if the issue is present. I'm not sure wh

[issue42524] [doc] pdb access to return value

2021-08-04 Thread Irit Katriel
Irit Katriel added the comment: Yes, exactly - to update the doc so that the next person who needs it will easily find a way to do it (which was not available to you when you created this issue). The test should assert that what the doc says, so that if someone breaks documented functionali

[issue44827] Incomplete 3.10.0rc1 release info

2021-08-04 Thread PEW's Corner
PEW's Corner added the comment: It was probably a caching issue, because another device was just now still displaying the page without files until I forced a refresh. -- ___ Python tracker _

[issue44827] Incomplete 3.10.0rc1 release info

2021-08-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, there is CDN in front and it has to get invalidated when we update it -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue44760] Turtle Documentation - Contents Hyperlink conflict

2021-08-04 Thread Harry
Harry added the comment: The conflict comes from the fact that the documentation is written from the perspective of the procedure-oriented interface "All methods of TurtleScreen/Screen also exist as functions, i.e. as part of the procedure-oriented interface" The conflict in the documentati

[issue44829] zoneinfo.ZoneInfo does not check for Windows device names

2021-08-04 Thread apple502j
New submission from apple502j : Note: this issue was submitted to security@ due to its potential as a DoS vector on 2021-05-08, but I have not received a response (excluding the automated email). It is over 88 days since the report, so I am now reporting this publicly. Issue: zoneinfo.ZoneIn

[issue44611] CPython uses deprecated randomness API

2021-08-04 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to document in os.urandom() documentation that the BCryptGenRandom() function is used on Windows with the "system-preferred random number generator algorithm"? (I don't think that we should mention the BCRYPT_USE_SYSTEM_PREFERRED_RNG con

[issue44611] CPython uses deprecated randomness API

2021-08-04 Thread STINNER Victor
STINNER Victor added the comment: Thanks for this change, I like the fact that hCryptProv variable could be removed! -- ___ Python tracker ___ ___

[issue44820] subprocess hungs when processing value from mariadb

2021-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: Hi @jb. This tracker is for reporting bugs in the core Python language. While it's possible that what you're experiencing is due to a bug in core Python, on the information given it's likely that the problem is either in your own code, or in whatever databas

[issue44760] Turtle Documentation - Contents Hyperlink conflict

2021-08-04 Thread Harry
Change by Harry : -- keywords: +patch pull_requests: +26093 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/27592 ___ Python tracker ___

[issue44818] '\t' (tab) support

2021-08-04 Thread Pooia
Pooia added the comment: unexcpeted indent On Tue, Aug 3, 2021 at 7:59 PM Serhiy Storchaka wrote: > > Change by Serhiy Storchaka : > > > -- > status: open -> pending > > ___ > Python tracker > > ___

[issue31426] [3.5] crash in gen_traverse(): gi_frame.ob_type=NULL, called by subtract_refs() during a GC collection

2021-08-04 Thread STINNER Victor
STINNER Victor added the comment: This bug report mentions Python 3.5 and 3.6 which no longer accept bugfixes. Since nobody reported issues on Python 3.9 and newer (which still accept bugfixes), I close the issue as out of date. Victor Zhestkov: > It seems I have the same segfault, but with

[issue41117] [easy C] GC: Use local variable 'op' when invoking 'traverse' in 'subtract_refs'

2021-08-04 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner nosy_count: 1.0 -> 2.0 pull_requests: +26094 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27593 ___ Python tracker ___

[issue41117] [easy C] GC: Use local variable 'op' when invoking 'traverse' in 'subtract_refs'

2021-08-04 Thread STINNER Victor
STINNER Victor added the comment: I created PR 27593. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue44683] Can't subscript objects with the string "1" using str.format()

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

[issue44661] Update property_descr_set to use vectorcall if possible.

2021-08-04 Thread STINNER Victor
STINNER Victor added the comment: > Mean +- std dev: [property_base] 140 ns +- 5 ns -> [property_vectorcall] 125 > ns +- 2 ns: 1.12x faster Ah! That's better. If it was only 1.01x faster, I would say that it's not worth it. But 1.12x is worth it. Thanks for this optimization. -- __

[issue44821] Instance dictionaries should be created eagerly

2021-08-04 Thread Mark Shannon
Mark Shannon added the comment: New changeset cee67fa66129b5d1db5c8aa3884338f82f0da3de by Mark Shannon in branch 'main': bpo-44821: Eagerly assign __dict__ for new objects. (GH-27589) https://github.com/python/cpython/commit/cee67fa66129b5d1db5c8aa3884338f82f0da3de -- _

[issue44683] Can't subscript objects with the string "1" using str.format()

2021-08-04 Thread Eric V. Smith
Change by Eric V. Smith : -- components: +Interpreter Core -Unicode ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue41117] [easy C] GC: Use local variable 'op' when invoking 'traverse' in 'subtract_refs'

2021-08-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset c34fa2bb06ea44045af8493dfa414addb2b7ce66 by Victor Stinner in branch 'main': bpo-41117: Cleanup subtract_refs() (GH-27593) https://github.com/python/cpython/commit/c34fa2bb06ea44045af8493dfa414addb2b7ce66 -- __

[issue41117] [easy C] GC: Use local variable 'op' when invoking 'traverse' in 'subtract_refs'

2021-08-04 Thread STINNER Victor
STINNER Victor added the comment: Thanks William, I made the change that you suggested. Next time, please create a PR directly ;-) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.11 -Python 3.10 _

[issue44819] assertSequenceEqual does not use _getAssertEqualityFunc

2021-08-04 Thread Brian
Brian added the comment: I've attached an example of what I want. It contains a class, a function to be tested, and a test class which tests the function. What TestCase.addTypeEqualityFunc feels like it offers is a chance to compare objects however I feel like is needed for each test. Someti

[issue41946] Add concrete examples to os.path documentation

2021-08-04 Thread Andrei Kulakov
Andrei Kulakov added the comment: Some examples were added since this issue was created, but more can be added. Stargirl: feel free to open a PR, I can review it. -- nosy: +andrei.avk ___ Python tracker ___

[issue44830] Broken Mozilla devguide link in "Dealing with Bugs" doc section

2021-08-04 Thread Mark Dickinson
New submission from Mark Dickinson : The "Bug Report Writing Guidelines" link in the "Dealing with Bugs" doc section (https://docs.python.org/3/bugs.html) looks broken. The linked URL is https://developer.mozilla.org/en-US/docs/Mozilla/QA/Bug_writing_guidelines, but that gives me a "Page not

[issue44830] Broken Mozilla devguide link in "Dealing with Bugs" doc section

2021-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: A bit more Googling found this: https://support.mozilla.org/en-US/kb/contributors-guide-writing-good-bug -- ___ Python tracker ___ _

[issue39355] The Python library will not compile with a C++2020 compiler because the code uses the reserved “module” keyword

2021-08-04 Thread Hasan
Hasan added the comment: If nobody works, i would like to solve this -- nosy: +AliyevH ___ Python tracker ___ ___ Python-bugs-list

[issue44829] zoneinfo.ZoneInfo does not check for Windows device names

2021-08-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue44829] zoneinfo.ZoneInfo does not check for Windows device names

2021-08-04 Thread Eryk Sun
Eryk Sun added the comment: In zoneinfo._tzpath, _validate_tzfile_path() depends on os.path.normpath(). I think the Windows implementation of normpath() in the ntpath module should be extended to normalize reserved names in the final path component in the same manner as WinAPI GetFullPathNam

[issue44819] assertSequenceEqual does not use _getAssertEqualityFunc

2021-08-04 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate superseder: -> addTypeEqualityFunc is not used in assertListEqual ___ Python tracker ___

[issue44818] '\t' (tab) support

2021-08-04 Thread Eric V. Smith
Eric V. Smith added the comment: Please show us an example that demonstrates your problem. Show us the code you tried, what you expected to happen, and what actually happened. Otherwise we can’t help you. -- nosy: +eric.smith ___ Python tracker

[issue44829] zoneinfo.ZoneInfo does not check for Windows device names

2021-08-04 Thread Paul Ganssle
Paul Ganssle added the comment: Sorry you didn't receive a response to your security@ email, I guess my response just went to the PSRT, not to you as well. I believe we determined that this was an issue in importlib.resources generally, not specific to zoneinfo. I think `importlib.resources

[issue44760] Turtle Documentation - Contents Hyperlink conflict

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

[issue44760] Turtle Documentation - Contents Hyperlink conflict

2021-08-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +26096 pull_request: https://github.com/python/cpython/pull/27595 ___ Python tracker ___ __

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-04 Thread Miksus
New submission from Miksus : I am trying to measure time twice and the second measurement gives a time that is 1 microsecond before the first measurement about half of the time. My experiment in short: --- import time, datetime start = time.time(

[issue44832] Compiler detection is not strict enough

2021-08-04 Thread Ben Boeckel
New submission from Ben Boeckel : Generally, the `configure.ac` script tries to detect compilers based on the path to the compiler. This is mostly fine, but trips up when using `mpicc` as the compiler. Even if the underlying compiler is `gcc`, this gets detected as `icc` in various situations

[issue44803] change tracemalloc.BaseFilter to an abstract class

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: Many standard libraries, including new ones like asyncio, use `raise NotImplementedError` to denote methods that need re-implementation in subclasses. Some of those base classes even literally *called* Abstract and yet don't inherit from ABC (nor use ABCMeta).

[issue44831] Inconsistency between datetime.now() and datetime.fromtimestamp(time.time(), None)

2021-08-04 Thread Miksus
Miksus added the comment: I accidentially posted Python 3.6 link to the declaration of datetime.datetime.now() but this has been unchanged: https://github.com/python/cpython/blob/3d2b4c6f18d7e644e5850d2af74ac5dc530eb24c/Lib/datetime.py#L1696 The actual piece of code as of now: ... import tim

[issue44833] VideoCapture is not installing

2021-08-04 Thread ENG19EC0098_Swathi.M
New submission from ENG19EC0098_Swathi.M : The python version is failing to install the VideoCapture of opencv despite many trials. Would request you to kindly go through this at the earliest -- components: Installation files: Screenshot 2021-08-04 232419.jpg messages: 398923 nosy: en

[issue44301] Is there a way to provide destructor for module written using C API?

2021-08-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +26098 pull_request: https://github.com/python/cpython/pull/27597 ___ Python tracker ___ __

[issue44301] Is there a way to provide destructor for module written using C API?

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

[issue44834] contextvars.Context.run w/ coroutines gives inconsistent behavior

2021-08-04 Thread Adrian Garcia Badaracco
New submission from Adrian Garcia Badaracco : I recently tried to use `contextvars.Context.run` w/ coroutines, expecting the same behavior as with regular functions, but it seems that `contextvars.Context.run` does not work w/ coroutines. I'm sorry if this is something obvious to do with how

[issue44829] zoneinfo.ZoneInfo does not check for Windows device names

2021-08-04 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg398916 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42815] new thread doesn't copy context of the parent thread

2021-08-04 Thread Adrian Garcia Badaracco
Change by Adrian Garcia Badaracco : -- nosy: +adriangb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue44834] contextvars.Context.run w/ coroutines gives inconsistent behavior

2021-08-04 Thread Adrian Garcia Badaracco
Change by Adrian Garcia Badaracco : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue44801] Type expression is coerced to a list of parameter arguments in substitution of ParamSpec

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 3875a6954741065b136650db67ac533bc70a3eac by Serhiy Storchaka in branch 'main': bpo-44801: Check arguments in substitution of ParamSpec in Callable (GH-27585) https://github.com/python/cpython/commit/3875a6954741065b136650db67ac533bc70a3eac --

[issue44801] Type expression is coerced to a list of parameter arguments in substitution of ParamSpec

2021-08-04 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26099 pull_request: https://github.com/python/cpython/pull/27598 ___ Python tracker _

[issue33277] Deprecate __loader__, __package__, __file__, and __cached__ on modules

2021-08-04 Thread Irit Katriel
Irit Katriel added the comment: > We didn't make it stronger since we can't get rid of any of these attributes > until Python 2.7 compatibility is no longer a concern. Maybe this can be revisited now. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.8 _

[issue44760] Turtle Documentation - Contents Hyperlink conflict

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Harry! ✨ 🍰 ✨ -- nosy: +lukasz.langa resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker _

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-04 Thread Sebastian Berg
Sebastian Berg added the comment: The fix broke NumPy (see also https://github.com/numpy/numpy/pull/19612) It seems incorrect. After all, it doesn't matter much whether the float can be converted to an integer correctly (or even if it returns an undefined value), so long `int_value == float

[issue44301] Is there a way to provide destructor for module written using C API?

2021-08-04 Thread Łukasz Langa
Change by Łukasz Langa : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker ___ _

[issue44301] Is there a way to provide destructor for module written using C API?

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for your report, Azat! ✨ 🍰 ✨ -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-li

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-04 Thread Sebastian Berg
Sebastian Berg added the comment: Hmm, sorry, I overshot/misread :(. The thing that the NumPy test-suite trips over is that: c_powi(inf+0j, 3) seems to not raise, but: _Py_c_pow(inf+0j, 3.+0j) (or nan+0.j rather then inf+0j) does seem to raise (returning `nan+nanj` in both cases).

[issue44817] os.path.realpath fails with WinError 161

2021-08-04 Thread Michael Förderer
Michael Förderer added the comment: Updated with ERROR_BAD_NETPATH (53). What about following errors: - ERROR_LOCK_VIOLATION (33) - ERROR_DEV_NOT_EXIST (52) - ERROR_BAD_NET_RESP (58) - ERROR_UNEXP_NET_ERR (59) - ERROR_NETNAME_DELETED (64) - ERROR_NETWORK_ACCESS_DENIED (65) - ERROR_BAD_DEV_TYPE (

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-04 Thread Sebastian Berg
Sebastian Berg added the comment: (Sorry for the spam. I think we can/should just hard-code the expected values in the NumPy test-suite. So this is not actually an issue for NumPy and probably just warrants a double-check that the behaviour change is desirable.) -- ___

[issue41354] filecmp.cmp documentation does not match actual code

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: Closed in favor of BPO-42958. Thanks for your report, Christof! -- nosy: +lukasz.langa resolution: -> out of date stage: patch review -> resolved status: open -> closed superseder: -> filecmp.cmp(shallow=True) isn't actually shallow when only mtime dif

[issue44828] Using tkinter.filedialog crashes on macOS Python 3.9.6

2021-08-04 Thread E. Paine
E. Paine added the comment: Thanks for reporting issue and for including the backtrace. I presume you used the Universal 2 installer, given that you are running an M1 mac? Kevin, do you have access to the macOS 12 beta to help test whether this is a Tkinter or Tk bug? (I assume the latter,

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, @seberg. I'll take a look and see if we can restore the old behaviour, at least for Python 3.9 and 3.10. I'm not convinced that the new behaviour is objectively wrong, but I agree that the *change* in behaviour is problematic. I do find it a little o

[issue44564] DeprecationWarning in test_enum over formatting

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset f99c015638b46e46ae3ee3f27b96a514007cdaef by Brandon Schabell in branch 'main': bpo-44564 Move formatted assertion under deprecation warning context (GH-27090) https://github.com/python/cpython/commit/f99c015638b46e46ae3ee3f27b96a514007cdaef -

[issue44698] Undefined behaviour in Objects/complexobject.c's complex_pow

2021-08-04 Thread Mark Dickinson
Mark Dickinson added the comment: > a double-check that the behaviour change is desirable I'm not sure I'm brave or foolhardy enough to try to figure out what all of the special case results *should* be for complex pow. The special cases seem reasonably clear cut for everything else in the c

[issue33277] Deprecate __loader__, __package__, __file__, and __cached__ on modules

2021-08-04 Thread Brett Cannon
Brett Cannon added the comment: > Maybe this can be revisited now. I've started the work already (albeit rather slowly 😄). Importlib has been updated to prefer __spec__.parent of __package__ and warns when the values are not equal. Next step will be to raise an ImportWarning when __package__

[issue44564] DeprecationWarning in test_enum over formatting

2021-08-04 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Brandon! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

  1   2   >