[issue45640] Production tokens are not clickable

2021-10-27 Thread Arthur Milchior
Change by Arthur Milchior : -- keywords: +patch pull_requests: +27525 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29260 ___ Python tracker ___

[issue45640] Production tokens are not clickable

2021-10-27 Thread Arthur Milchior
New submission from Arthur Milchior : In the current documentation, production tokens are not clickable. For example in https://docs.python.org/3/reference/expressions.html#yield-expressions , you highlight `yield_from` as a token but do not link to it. I suppose that the goal, when using

[issue45620] A misleading url in 'Floating Point Arithmetic' page

2021-10-27 Thread Sonia
Sonia added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

RE: walrus with a twist :+= or ...

2021-10-27 Thread Avi Gross via Python-list
Correct, I left out a bit, not wisely. I am trying to remember the last time (outside of classes) I have ever had to use bitwise operators nontrivially and it may have been around 1980 when I had to implement an encryption algorithm. Of course, when I was working in UNIX, I often had to combine

Re: Why so fast a web framework?

2021-10-27 Thread Abdur-Rahmaan Janhangeer
@Chris @Peter See that famous benchmark https://www.techempower.com/benchmarks/#section=data-r20 Like routinely PHP frameworks appear higher up than py -- https://mail.python.org/mailman/listinfo/python-list

[issue45639] Support modern image formats in MIME types

2021-10-27 Thread Adam Konrad
Change by Adam Konrad : -- keywords: +patch pull_requests: +27523 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29259 ___ Python tracker ___

[issue45639] Support modern image formats in MIME types

2021-10-27 Thread Adam Konrad
New submission from Adam Konrad : Modern image types webp and avif are not recognized by the mimetypes module. Problem: Many tools are written in Python and running on macOS. Good example is the AWS CLI. Running commands like "s3 sync" will save files with .webp and .avif extensions with

RE: walrus with a twist :+= or ...

2021-10-27 Thread Avi Gross via Python-list
My apologies, again. I got Chris going and although quite humorous, we may want to allow a slew of emoticons! But a serious question is now that we sort of have UNICODE, and even many editors and other programs support it, perhaps it might make sense for some operations in computer languages to

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-27 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think this broke some buildbots. https://buildbot.python.org/all/#/builders/256/builds/264 https://buildbot.python.org/all/#/builders/370/builds/263 I opened a PR to temporarily decrease the recursion limit so that the C stack doesn't overflow in these

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-27 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +27522 pull_request: https://github.com/python/cpython/pull/29258 ___ Python tracker ___

Re: The task is to invent names for things

2021-10-27 Thread Chris Angelico
On Thu, Oct 28, 2021 at 11:55 AM Eli the Bearded <*@eli.users.panix.com> wrote: > The choice of a non-sensical is perfectly fine _when_ it's a major > component. Kafka, Python, Java, Rust. Those are all non-sensically named, > in that the name doesn't fit what it is, by pun, initials, or

Re: walrus with a twist :+= or ...

2021-10-27 Thread MRAB
On 2021-10-28 02:06, Avi Gross via Python-list wrote: I just realized I left out **= so my apologies. Are there other such abbreviations and does anyone use them? You forgot about the bitwise operators: |= &= ^= -Original Message- From: Python-list On Behalf Of Avi Gross via

Re: walrus with a twist :+= or ...

2021-10-27 Thread Chris Angelico
On Thu, Oct 28, 2021 at 11:58 AM Avi Gross via Python-list wrote: > On a serious note, if it was ever considered a good idea, what would be an > acceptable sequence of symbols that might not break or confuse existing > programs and what would we call it? I mean what animal, of course. > > > >

RE: walrus with a twist :+= or ...

2021-10-27 Thread Avi Gross via Python-list
I just realized I left out **= so my apologies. Are there other such abbreviations and does anyone use them? -Original Message- From: Python-list On Behalf Of Avi Gross via Python-list Sent: Wednesday, October 27, 2021 8:57 PM To: python-list@python.org Subject: walrus with a twist :+=

walrus with a twist :+= or ...

2021-10-27 Thread Avi Gross via Python-list
I realized that the person seeking completeness in Python may next ask why the Walrus operator, :=, is not properly extended to include a whole assortment of allowed assignment operators I mean in normal python programs you are allowed to abbreviate x = x + 5 with x += 5

Re: The task is to invent names for things

2021-10-27 Thread Eli the Bearded
In comp.lang.python, Peter J. Holzer wrote: ^^ > On 2021-10-27 12:41:56 +0200, Karsten Hilbert wrote: >> In that situation, is it preferable to choose a nonsensical >> name over a mediocre one ? > I don't know. A mediocre name conveys at least some information, and > that seems

Re: New assignmens ...

2021-10-27 Thread Chris Angelico
On Thu, Oct 28, 2021 at 11:08 AM Avi Gross via Python-list wrote: > > Dave, > > You make me wonder about unintended side effects. Are we allowing the ++ and > --- operations into Python through a side door? > class IncrementableInteger(int): def __pos__(self): return HalfIncremented(self)

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-27 Thread Graham Dumpleton
Graham Dumpleton added the comment: Too much to grok right now. There is already a convention for what a decorator wraps. It is __wrapped__. https://github.com/python/cpython/blob/3405792b024e9c6b70c0d2355c55a23ac84e1e67/Lib/functools.py#L70 Don't use __func__ as that has other defined

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-27 Thread wim glenn
wim glenn added the comment: added Graham Dumpleton to nosy list in case he has some useful insight here, I think the PR from issue19072 may have been adapted from grahamd's patch originally? -- nosy: +grahamd ___ Python tracker

RE: New assignmens ...

2021-10-27 Thread Avi Gross via Python-list
Dave, You make me wonder about unintended side effects. Are we allowing the ++ and --- operations into Python through a side door? any context that allows you to insert the walrus operator like: index := index + 1 index := index - 1 Is now similar to notations in C/C++ and

[issue45638] Does ccbench still require 2.6 compatibility?

2021-10-27 Thread Skip Montanaro
New submission from Skip Montanaro : At the top of Tools/ccbench/ccbench.py is this comment dating from 2010 (probably in the initial version): # This file should be kept compatible with both Python 2.6 and Python >= 3.0. Is there still a need for 2.6 compatibility in what is essentially a

RE: Create a contact book

2021-10-27 Thread Avi Gross via Python-list
I used to be on the Tutor list for python and found it was not for me. Yes, we should refer people there especially those who seem to have HW and would like some gentle coaching but not outright answers. What frustrated me is that rarely would we be told by people what they had learned and

[issue45637] The fallback to find the current frame in the gdb helpers fails for inlined frames

2021-10-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27521 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29257 ___ Python tracker

[issue45637] The fallback to find the current frame in the gdb helpers fails for inlined frames

2021-10-27 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : This code does not work in the presence of inlined Python calls: https://github.com/python/cpython/blob/d02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899/Tools/gdb/libpython.py#L1804-L1813 -- components: Interpreter Core messages: 405140 nosy:

[issue44828] tkinter.filedialog linked with Tk 8.6.11 crashes on macOS 12 Monterey, breaking IDLE saves

2021-10-27 Thread Marc Culler
Marc Culler added the comment: Hi Ned, I think this problem is fixed now in the tip of the Tk macosx_filedialog branch. I am attaching the tkMacOSXDialog.c file from that branch. I think you should be able to just replace the version in 8.6.11 and be able to build a working version. I

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread Guido van Rossum
Guido van Rossum added the comment: Can we close this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: The task is to invent names for things

2021-10-27 Thread Peter J. Holzer
On 2021-10-27 12:41:56 +0200, Karsten Hilbert wrote: > Am Tue, Oct 26, 2021 at 11:36:33PM + schrieb Stefan Ram: > > xyzzy = lambda x: 2 * x > > . Sometimes, this can even lead to "naming paralysis", where > > one thinks excessively long about a good name. To avoid this > > naming

[issue45591] PathFinder does not find namespace packages children

2021-10-27 Thread Filipe Laíns
Filipe Laíns added the comment: Okay, I think that makes sense to me. Thank you!! -- ___ Python tracker ___ ___ Python-bugs-list

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Maciej Olko
Change by Maciej Olko : -- pull_requests: +27520 pull_request: https://github.com/python/cpython/pull/29256 ___ Python tracker ___

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP/INPLACE_OP

2021-10-27 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +27519 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29255 ___ Python tracker ___

[issue45636] Merge BINARY_*/INPLACE_* into BINARY_OP/INPLACE_OP

2021-10-27 Thread Brandt Bucher
New submission from Brandt Bucher : ...as discussed in https://github.com/faster-cpython/ideas/issues/101. This change merges all BINARY_*/INPLACE_* instructions, except for a few special cases: - BINARY_ADD/INPLACE_ADD, which interact with sq_concat/sq_inplace_concat and already have their

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Maciej Olko
Maciej Olko added the comment: It occurs that the documentation builds without warnings on most recent Sphinx -- version 4.2.0. Probably we should bump the version in 3.11, 3.10 and 3.9 to 4.2.0. That would enable us to remove the pin on docutils. --

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Maciej Olko
Maciej Olko added the comment: I'm sorry for the confusion. I might have make more checking on my side before proposing a fix. -- ___ Python tracker ___

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread miss-islington
miss-islington added the comment: New changeset 21150c6fa330f80747d698e4b883c7b4801a25bd by Miss Islington (bot) in branch '3.9': bpo-45438: format of inspect.Signature with generic builtins (GH-29212) https://github.com/python/cpython/commit/21150c6fa330f80747d698e4b883c7b4801a25bd

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread miss-islington
miss-islington added the comment: New changeset ce7a6afb797d2ffde45e9e902516b8437c8f9e31 by Miss Islington (bot) in branch '3.10': bpo-45438: format of inspect.Signature with generic builtins (GH-29212) https://github.com/python/cpython/commit/ce7a6afb797d2ffde45e9e902516b8437c8f9e31

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 038f45230892235e806ef227dfd9484b95687823 by Miss Islington (bot) in branch '3.10': bpo-45562: Print tokenizer debug messages to stderr (GH-29250) (GH-29252)

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2021-10-27 Thread paul j3
paul j3 added the comment: A new patch, https://bugs.python.org/issue45235 has clobbered this patch. It has also exposed the inadequate unittesting for the case(s) where the 'dest' of main namespace, subparser namespace, user provided namespace overlap. --

[issue45235] argparse does not preserve namespace with subparser defaults

2021-10-27 Thread paul j3
paul j3 added the comment: I should study previous posts in more detail, but here are some thoughts on correctly handling user namespace. At the start of `parse_known_args`, there's a if namespace is None: namespace = Namespace() We need to hang on to a copy of this

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +27518 pull_request: https://github.com/python/cpython/pull/29254 ___ Python tracker ___

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27517 pull_request: https://github.com/python/cpython/pull/29253 ___ Python tracker

[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-27 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset d02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899 by Martin Rueckl in branch 'main': bpo-45438: format of inspect.Signature with generic builtins (#29212) https://github.com/python/cpython/commit/d02ffd1b5c0fd8dec6dd2f7e3f2b0cfae48b7899 --

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-10-27 Thread Irit Katriel
Change by Irit Katriel : -- components: +Interpreter Core versions: +Python 3.11 ___ Python tracker ___ ___ Python-bugs-list

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread miss-islington
miss-islington added the comment: New changeset 10bbd41ba8c88bc102df108a4e0444abc7c5ea43 by Pablo Galindo Salgado in branch 'main': bpo-45562: Print tokenizer debug messages to stderr (GH-29250) https://github.com/python/cpython/commit/10bbd41ba8c88bc102df108a4e0444abc7c5ea43 --

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

Re: The task is to invent names for things

2021-10-27 Thread dn via Python-list
On 27/10/2021 23.41, Karsten Hilbert wrote: > Am Tue, Oct 26, 2021 at 11:36:33PM + schrieb Stefan Ram: > >> xyzzy = lambda x: 2 * x >> >> . Sometimes, this can even lead to "naming paralysis", where >> one thinks excessively long about a good name. To avoid this >> naming paralysis, one

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +27516 pull_request: https://github.com/python/cpython/pull/29252 ___ Python tracker ___

[issue45635] Tidy up error handling in traceback.c / python run.c

2021-10-27 Thread Irit Katriel
New submission from Irit Katriel : They do things like err = PyFile_WriteString("TypeError: print_exception(): Exception expected for value, ", f); err += PyFile_WriteString(Py_TYPE(value)->tp_name, f); err += PyFile_WriteString(" found\n", f); which means that PyFile_XXX

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Maciej Olko
Maciej Olko added the comment: For what it's worth I have just successfully built documentation on 3.7 and 3.6 branches locally. It looks like Sphinx 2.3.1 used there doesn't use this part of docutils API that have changed recently. Sphinx 2.3.1 has requirement of "docutils>=0.12", just

[issue45634] [sqlite3] don't combine error checks when adding integer constants

2021-10-27 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +27515 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29251 ___ Python tracker

[issue45562] python -d creates lots of tokenizer messages

2021-10-27 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +27514 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29250 ___ Python tracker ___

[issue45634] [sqlite3] don't combine error checks when adding integer constants

2021-10-27 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : In Modules/_sqlite/module.c, add_integer_constants() accumulates the return values of repeated PyModule_AddIntMacro() calls. We should change this to instead bailing immediately on error. -- components: Extension Modules messages: 405124 nosy:

Re: The task is to invent names for things

2021-10-27 Thread Chris Angelico
On Thu, Oct 28, 2021 at 7:54 AM Karsten Hilbert wrote: > > Am Wed, Oct 27, 2021 at 10:00:16PM +1100 schrieb Chris Angelico: > > > > Am Wed, Oct 27, 2021 at 10:20:19AM +1100 schrieb Chris Angelico: > > > > > > > Many operations in computing are fully reversible. After you do > > > > something, you

[issue45548] Update Modules/Setup

2021-10-27 Thread Brett Cannon
Brett Cannon added the comment: > Could Brett or you please add those notes back ? There's no other place where such details are documented. It really depends on what "details" you're referring to. Most of what I removed were things like "Module by ", or saying _json.c is for "json

Re: The task is to invent names for things

2021-10-27 Thread Karsten Hilbert
Am Wed, Oct 27, 2021 at 12:41:56PM +0200 schrieb Karsten Hilbert: > Am Tue, Oct 26, 2021 at 11:36:33PM + schrieb Stefan Ram: > > > xyzzy = lambda x: 2 * x > > > > . Sometimes, this can even lead to "naming paralysis", where > > one thinks excessively long about a good name. To avoid this

[issue45591] PathFinder does not find namespace packages children

2021-10-27 Thread Brett Cannon
Brett Cannon added the comment: The full name argument approach comes from PEP 302. But you want the full name as you are otherwise missing potentially key information for the finder. For instance, if you manipulate __path__, then it's just some random directory you're searching in. But

Re: The task is to invent names for things

2021-10-27 Thread Karsten Hilbert
Am Wed, Oct 27, 2021 at 10:00:16PM +1100 schrieb Chris Angelico: > > Am Wed, Oct 27, 2021 at 10:20:19AM +1100 schrieb Chris Angelico: > > > > > Many operations in computing are fully reversible. After you do > > > something, you can undo it. After you assign, you can unassign. And > > > after you

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: I've looked more into it, the issue is that even before an object can be tested with `isinstance()`, both inspect.classify_class_attrs and in pydoc, classdoc local function `spill()` use a `getattr()` call, which triggers the property. So I think my PR is

Re: Why so fast a web framework?

2021-10-27 Thread Peter J. Holzer
On 2021-10-27 23:49:59 +0400, Abdur-Rahmaan Janhangeer wrote: > See this: > https://github.com/walkor/webman > > Why similar frameworks do not exist in Python. Is it because > of lack of lib contributors or due to an inherent difference in Py > and PHP? Thanks! The comparison table contains only

Re: Why so fast a web framework?

2021-10-27 Thread Chris Angelico
On Thu, Oct 28, 2021 at 6:52 AM Abdur-Rahmaan Janhangeer wrote: > > See this: > https://github.com/walkor/webman > > Why similar frameworks do not exist in Python. Is it because > of lack of lib contributors or due to an inherent difference in Py > and PHP? Thanks! > It depends entirely on what

Re: Does loading PDB slow down execution?

2021-10-27 Thread Peter J. Holzer
On 2021-10-27 15:47:08 -0400, Benjamin Schollnick wrote: > > On Oct 27, 2021, at 1:01 PM, Unixnut wrote: [...] > > Excellent, many thanks for confirming. I can leave the execution running > > then. > > But it’s pointless to import pdb, if you aren’t going to use it. Please read the first mail

Why so fast a web framework?

2021-10-27 Thread Abdur-Rahmaan Janhangeer
See this: https://github.com/walkor/webman Why similar frameworks do not exist in Python. Is it because of lack of lib contributors or due to an inherent difference in Py and PHP? Thanks! Kind Regards, Abdur-Rahmaan Janhangeer about | blog

Re: Does loading PDB slow down execution?

2021-10-27 Thread Benjamin Schollnick
> On Oct 27, 2021, at 1:01 PM, Unixnut wrote: > > On 06/10/2021 18:30, Dieter Maurer wrote: >> Unixnut wrote at 2021-10-3 22:03 +0100: >>> If I run a python3 program with "import pdb" in the code, would it >>> execute slower than without loading the debugger? >> Importing `pdb` does not slow

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Sam Gross
Change by Sam Gross : -- pull_requests: +27513 pull_request: https://github.com/python/cpython/pull/29249 ___ Python tracker ___

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +27512 pull_request: https://github.com/python/cpython/pull/29248 ___ Python tracker

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 35e1ff38ee67ee543d9fcb268c3552c5397f9b3f by Sam Gross in branch 'main': bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246) https://github.com/python/cpython/commit/35e1ff38ee67ee543d9fcb268c3552c5397f9b3f --

Get a Joke in Python

2021-10-27 Thread Python 4 Fun
Get a Joke in Python. Pyjokes - is a python library / module for one line joke program based on programmers. You can get funny one-liner random jokes at every run also available in following " languages " & " categories ". Supported Languages By Pyjokes English — ‘en’ Spanish — ‘es’ Italian —

Re: New assignmens ...

2021-10-27 Thread Abdur-Rahmaan Janhangeer
I no longer track the threads on the subject ... Many simultaneous ones ongoing! Kind Regards, Abdur-Rahmaan Janhangeer about | blog github Mauritius --

Re: New assignmens ...

2021-10-27 Thread Chris Angelico
On Thu, Oct 28, 2021 at 4:34 AM Christman, Roger Graydon wrote: > Do you put special code in next_couple() to recognize that the provided > arguments > are actually the first couple so it can return those unmodified, but then > require its > own mental note not to give you an infinite loop

Re: Does loading PDB slow down execution?

2021-10-27 Thread Unixnut
On 06/10/2021 18:30, Dieter Maurer wrote: Unixnut wrote at 2021-10-3 22:03 +0100: If I run a python3 program with "import pdb" in the code, would it execute slower than without loading the debugger? Importing `pdb` does not slow down the application significantly (it just adds the import time

Re: New assignmens ...

2021-10-27 Thread Chris Angelico
On Thu, Oct 28, 2021 at 4:03 AM Antoon Pardon wrote: > > So suppose I have an arbitrary number of simple statements. The > latter possible using results from previous assignment and at the > end a condition to control the one and a half loop. How do you write > the python code so that the one and

[issue45633] Py_GT listed twice in Doc/extending/newtypes.rst

2021-10-27 Thread Julien Palard
New submission from Julien Palard : In Doc/extending/newtypes one can read: > This function is called with two Python objects and the operator as > arguments, where the operator is one of Py_EQ, Py_NE, Py_LE, Py_GT, Py_LT or > Py_GT. It bet one of them should be Py_GE. (I let this one as

RE: New assignmens ...

2021-10-27 Thread Avi Gross via Python-list
I think anyone who suggests we should separate costs from benefits belongs securely within the academic world and should remain there. Practical things need to be built considering costs. Theoretical things, sure, cost is not an issue. Python is not only a real-world set of applications but an

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Ned Deily
Ned Deily added the comment: All of the open branches are affected by this since we also have to build documentation for security-fix-only branches when releases. PRs for 3.7 and 3.6 forthcoming. -- versions: +Python 3.6, Python 3.7, Python 3.8

[issue45623] static build is broken

2021-10-27 Thread Christian Heimes
Christian Heimes added the comment: Full commit hash is dd18001c308fb3bb65006c91d95f6639583a3420 -- ___ Python tracker ___ ___

[issue45623] static build is broken

2021-10-27 Thread Christian Heimes
Christian Heimes added the comment: Steve changed the line in comment dd18001c308f / bpo-41627. -- assignee: -> steve.dower components: +Windows nosy: +christian.heimes, paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue45356] Calling `help` executes @classmethod @property decorated methods

2021-10-27 Thread Andrei Kulakov
Andrei Kulakov added the comment: I missed that this is assigned to Raymond, hope we didn't duplicate any effort (it only took me a short while to do the PR). Apologies.. -- ___ Python tracker

Re: New assignmens ...

2021-10-27 Thread Christman, Roger Graydon
On 27/10/2021 8:28, Anton Pardon wrote: >>> Suppose I would like to write a loop as follows: >>. >while ((a, b) := next_couple(a, b))[1]: >> >do needed calculations >> >> >>> What I can do is write it as follows: >>> while [tmp := next_couple(a,b), a := tmp[0], b :=

[issue45632] Strange readline save history behaviour in site.py

2021-10-27 Thread doraeric
New submission from doraeric : I noticed that in site.py, it saves history to a hard-coded location if the current history length is 0. The history is considered as not loaded if the length is 0, but it may be actually loaded from a empty file. In this case, the history is save to hard-coded

[issue45621] Small fixes to mmap

2021-10-27 Thread Tim Golden
Change by Tim Golden : -- keywords: +patch pull_requests: +27511 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29247 ___ Python tracker ___

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Sam Gross
Change by Sam Gross : -- keywords: +patch pull_requests: +27510 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29246 ___ Python tracker ___

Re: New assignmens ...

2021-10-27 Thread Antoon Pardon
Op 27/10/2021 om 18:16 schreef Christman, Roger Graydon: On 27/10/2021 at 12:45 Antoon Pardon wrote: However with the introduction of the walrus operator there is a way to simulate a significant number of one and a half loops. Consider the following: >do > a = expr1 >

[issue45618] Documentation builds fail with Sphinx 3.2.1

2021-10-27 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +27509 pull_request: https://github.com/python/cpython/pull/29245 ___ Python tracker ___

[issue45617] sys.stdin does not iterate correctly on '\r' line separator

2021-10-27 Thread Kelly Brazil
Kelly Brazil added the comment: Also, I believe this docstring is being inherited, but this is also where it seems that '\r' is documented to work with sys.stdin: >>> print(sys.stdin.__doc__) Character and line based layer over a BufferedIOBase object, buffer. encoding gives the name of the

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Sam Gross
Sam Gross added the comment: Antoine Pitrou already fixed the "noddy4" example (now renamed to "custom4") and updated the newtypes_tutorial, but I think it's still worth mentioning PyObject_GC_Untrack in a few additional places. -- ___ Python

[issue45617] sys.stdin does not iterate correctly on '\r' line separator

2021-10-27 Thread Eryk Sun
Eryk Sun added the comment: > like those returned by the open() function. Their parameters are > chosen as follows..." The `newline` argument for sys.std* isn't documented, but it should be. It happens to be newline='\n' on every platform except Windows. > its newlines attribute is set to

[issue45631] missing unittests for overlapping dest when using subparsers

2021-10-27 Thread paul j3
New submission from paul j3 : https://bugs.python.org/issue45235 argparse does not preserve namespace with subparser defaults was passed and put into the latest release with rather obvious buggy behavior. This means that the unittest file does not adequately test for overlapping 'dest' in

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-10-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately, seems that https://github.com/python/cpython/pull/28937 has broken the AMD64 FreeBSD Shared 3.x buildbot: https://buildbot.python.org/all/#/builders/483/builds/1003/steps/5/logs/stdio The buildbot was green until we merged this

[issue44525] Implement CALL_FUNCTION adaptive interpreter optimizations

2021-10-27 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Unfortunately, PR 26934 has broken thes 390x RHEL7 LTO 3.x buildbot as you can see before. As per the buildbot maintenance procedures, we will need to revert this PR unless is fixed in 24 hours. @markshannon @Fidget-Spinner -- nosy:

Re: New assignmens ...

2021-10-27 Thread Christman, Roger Graydon
On 27/10/2021 at 12:45 Antoon Pardon wrote: > However with the introduction of the walrus operator there is a > way to simulate a significant number of one and a half loops. > Consider the following: >do > a = expr1 > b = expr2 > while 2 * a > b: > more calculations

[issue34046] subparsers -> add_parser doesn't support hyphen char '-'

2021-10-27 Thread paul j3
paul j3 added the comment: Артём Иконников, developers and experienced users are familiar with other programs, such as 'svn' which is used as an example svn checkout, svn update, and svn commit Also the use of '--foo' as flagged/optional(s) argument is so familiar to developers, that it

[issue45630] Dump CodeObject API for debugging

2021-10-27 Thread penguin_wwy
Change by penguin_wwy <940375...@qq.com>: -- keywords: +patch pull_requests: +27507 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29243 ___ Python tracker

[issue45630] Dump CodeObject API for debugging

2021-10-27 Thread penguin_wwy
New submission from penguin_wwy <940375...@qq.com>: What the title says. -- components: Interpreter Core messages: 405106 nosy: penguin_wwy priority: normal severity: normal status: open title: Dump CodeObject API for debugging type: enhancement versions: Python 3.11

[issue45096] Update Tools/freeze to make use of Tools/scripts/freeze_modules.py?

2021-10-27 Thread Eric Snow
Change by Eric Snow : -- stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45096] Update Tools/freeze to make use of Tools/scripts/freeze_modules.py?

2021-10-27 Thread Eric Snow
Change by Eric Snow : -- pull_requests: -27485 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28737] Document that tp_dealloc handler must call PyObject_GC_UnTrack if Py_TPFLAGS_HAVE_GC is set

2021-10-27 Thread Sam Gross
Change by Sam Gross : -- assignee: docs@python -> colesbury ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45629] Tools/freeze needs tests in the test suite.

2021-10-27 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +27506 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/29222 ___ Python tracker

[issue45629] Tools/freeze needs tests in the test suite.

2021-10-27 Thread Eric Snow
New submission from Eric Snow : I found that Tools/freeze doesn't get tested. It has a "test" directory but it's more of a rudimentary sanity check that must be run manually. Since the tool isn't tested through our test suite, there's a high likelihood it can get broken without anyone

[issue45628] TimedRotatingFileHandler backupCount not working

2021-10-27 Thread Ned Deily
Change by Ned Deily : -- components: -macOS nosy: +vinay.sajip -ned.deily, ronaldoussoren ___ Python tracker ___ ___

[issue45628] TimedRotatingFileHandler backupCount not working

2021-10-27 Thread Ivo Grondman
New submission from Ivo Grondman : Using the TimedRotatingFileHandler with a non-zero backupCount, I get different behaviour between versions 3.9 and 3.10. Attached is a small example. Running it with 3.9 gives me two backups at most even if I run the script for a long time. Running it with

[issue45609] Specialize STORE_SUBSCR

2021-10-27 Thread Dennis Sweeney
Change by Dennis Sweeney : -- pull_requests: +27505 pull_request: https://github.com/python/cpython/pull/29242 ___ Python tracker ___

  1   2   >