[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Nikita Sobolev

Nikita Sobolev  added the comment:

Thanks, Łukasz!

чт, 28 окт. 2021 г. в 23:04, Łukasz Langa :

>
> Change by Łukasz Langa :
>
>
> --
> resolution:  -> fixed
> stage: patch review -> resolved
> status: open -> closed
> versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-28 Thread Eryk Sun


Eryk Sun  added the comment:

If only force_hide is implemented, based on `wShowWindow=SW_HIDE`, please 
ensure that it's clearly documented that this option hides the main window 
(i.e. first top-level window) of any application that doesn't bypass the 
default behavior of the window manager.

This means a script can't simply use `force_hide=True` universally when running 
arbitrary commands, since hiding the main window of a GUI app is probably 
undesired behavior. If it's unknown in advance whether an executable is a 
console or GUI app, it can be determined via SHGetFileInfoW(). For example:

import ctypes
shell32 = ctypes.WinDLL('shell32', use_last_error=True)
SHGFI_EXETYPE = 0x2000

def is_gui_exe(path):
result = shell32.SHGetFileInfoW(path, 0, None, 0, SHGFI_EXETYPE)
# the high word is non-zero for a GUI app
return (result >> 16) > 0

>>> is_gui_exe(r'C:\Windows\pyw.exe')
True
>>> is_gui_exe(r'C:\Windows\py.exe')
False

Regarding the effect of wShowWindow:

If the STARTUPINFO record defines wShowWindow, the value gets used as the 
normal show command for the first top-level window that's shown in the process. 
In particular, it overrides the first use (and only the first use) of the 
commands SW_SHOW, SW_SHOWNORMAL, and SW_SHOWDEFAULT (yes, only the first use of 
the latter; the documentation is wrong). This affects showing the first 
top-level window regardless of whether it's explicit via ShowWindow() or 
implicit via the WS_VISIBLE window style. For the latter, the implicit command 
is SW_SHOW, which one can override in the CreateWindowW() call by passing 
x=CW_USEDEFAULT and y as the show command to use. 

To completely ignore the STARTUPINFO wShowWindow value for the main window, an 
application can use an initial show command that wShowWindow doesn't override, 
such as SW_HIDE, SW_RESTORE (behaves like SW_SHOWNORMAL on first use), 
SW_MINIMIZE, or SW_MAXIMIZE. For example, for the first command use 
ShowWindow(hwnd, SW_HIDE). Subsequently calling ShowWindow(hwnd, SW_SHOWNORMAL) 
will show the window normally (i.e. active and restored) instead of using the 
STARTUPINFO wShowWindow command.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Why so fast a web framework?

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 3:49 PM Dan Stromberg  wrote:
>
> I care, and I suspect the OP does too.  Usually machine time doesn't matter
> as much as developer time, but API overhead Can matter - especially on a
> busy server.
>
> I wonder if Pypy would do any better?  Or Micropython?  Or Cython?
>
> CPython != Python.
>
> Sometimes this group reminds me of a certain large company I worked for.
> If they didn't have a solution addressing a problem, they'd pretend it
> didn't matter and belittle anyone who questioned that version of reality.
>

That's not strictly true; what's happening here is that someone's
published a cool-looking bar graph but nobody knows what it really
means. I don't feel the need to delve into everyone's benchmarks to
explain why Python is purportedly worse. If someone uses those kinds
of numbers to decide which programming language to use, they have
bigger problems.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Why so fast a web framework?

2021-10-28 Thread Dan Stromberg
I care, and I suspect the OP does too.  Usually machine time doesn't matter
as much as developer time, but API overhead Can matter - especially on a
busy server.

I wonder if Pypy would do any better?  Or Micropython?  Or Cython?

CPython != Python.

Sometimes this group reminds me of a certain large company I worked for.
If they didn't have a solution addressing a problem, they'd pretend it
didn't matter and belittle anyone who questioned that version of reality.


On Thu, Oct 28, 2021 at 9:46 AM Calvin Spealman  wrote:

> Who cares?
>
> On Wed, Oct 27, 2021 at 10:47 PM Abdur-Rahmaan Janhangeer <
> arj.pyt...@gmail.com> wrote:
>
> > @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
> >
> >
>
> --
>
> CALVIN SPEALMAN
>
> SENIOR QUALITY ENGINEER
>
> calvin.speal...@redhat.com  M: +1.336.210.5107
> [image: https://red.ht/sig] 
> TRIED. TESTED. TRUSTED. 
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue45646] Star expression in comprehension wrongly indicates to use or_expression after the star

2021-10-28 Thread Arthur Milchior


Change by Arthur Milchior :


--
keywords: +patch
pull_requests: +27571
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29303

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-10-28 Thread Chris Wesseling


Change by Chris Wesseling :


--
nosy: +CharString, CharString
nosy_count: 4.0 -> 5.0
pull_requests: +27569, 27570
pull_request: https://github.com/python/cpython/pull/29273

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-10-28 Thread Chris Wesseling


Change by Chris Wesseling :


--
nosy: +CharString
nosy_count: 4.0 -> 5.0
pull_requests: +27569
pull_request: https://github.com/python/cpython/pull/29273

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Get a Joke in Python

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 12:29 PM Jon Ribbens via Python-list
 wrote:
>
> On 2021-10-28, Greg Ewing  wrote:
> > On 29/10/21 11:34 am, Chris Angelico wrote:
> >> On Fri, Oct 29, 2021 at 7:31 AM Mostowski Collapse  
> >> wrote:
> >>> QA engineer walks into a bar. Orders a beer. Orders 0 beers.
> >>> Orders 9 beers. Orders a lizard. Orders -1 beers.
> >>> Orders a sfdeljknesv.
> >>>
> >>
> >> Orders 1 пиво and is served a пиво. QA engineer sighs "not again".
> >
> > Orders NaN beers and 
>
> The variant of this I saw the other day follows the above and after
> the QA engineer has ordered various things it follows:
>
>   A real customer walks into the bar and doesn't order anything,
>   but asks where the toilets are.
>
>   The bar explodes in flames.

... and the owner just bulldozes the bar, builds a new one on the same
spot, and pretends nothing happened.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Get a Joke in Python

2021-10-28 Thread Jon Ribbens via Python-list
On 2021-10-28, Greg Ewing  wrote:
> On 29/10/21 11:34 am, Chris Angelico wrote:
>> On Fri, Oct 29, 2021 at 7:31 AM Mostowski Collapse  
>> wrote:
>>> QA engineer walks into a bar. Orders a beer. Orders 0 beers.
>>> Orders 9 beers. Orders a lizard. Orders -1 beers.
>>> Orders a sfdeljknesv.
>>>
>> 
>> Orders 1 пиво and is served a пиво. QA engineer sighs "not again".
>
> Orders NaN beers and 

The variant of this I saw the other day follows the above and after
the QA engineer has ordered various things it follows:

  A real customer walks into the bar and doesn't order anything,
  but asks where the toilets are.

  The bar explodes in flames.
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2021-10-28 Thread Grant Edwards
On 2021-10-28, Avi Gross via Python-list  wrote:

> I see := makes ≔ which is just a longer equals sign.

On my screen it's an assignment operator that looks like := only a bit
smaller.

> Not sure this mailing list allows this stuff, so if your mailer does
> not show it, never mind.

Everything renders fine for me.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Get a Joke in Python

2021-10-28 Thread Greg Ewing

On 29/10/21 11:34 am, Chris Angelico wrote:

On Fri, Oct 29, 2021 at 7:31 AM Mostowski Collapse  wrote:


QA engineer walks into a bar. Orders a beer. Orders 0 beers.
Orders 9 beers. Orders a lizard. Orders -1 beers.
Orders a sfdeljknesv.



Orders 1 пиво and is served a пиво. QA engineer sighs "not again".


Orders NaN beers and 

--
Greg


--
https://mail.python.org/mailman/listinfo/python-list


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

2021-10-28 Thread Avi Gross via Python-list
Thank, Chris. I found and installed one from here: 
https://github.com/samhocevar/wincompose

My right ALT key now lets me type in all kinds of nonsense like ⑦ and © and ß 
and ℵ0 and ⅔  and ≠ and ⇒ and ♬and although :- makes ÷ I see :=  makes ≔ which 
is just a longer equals sign.


Not sure this mailing list allows this stuff, so if your mailer does not show 
it, never mind.

Now I have to locate the list of available sequences as the built-in does not 
show many I want to se and I have already guessed some!

And, yes, as long as the list of additional program symbols is easily 
available, that should do even on standard keyboards.

∴

-Original Message-
From: Python-list  On 
Behalf Of Chris Angelico
Sent: Thursday, October 28, 2021 3:24 PM
To: Python 
Subject: Re: walrus with a twist :+= or ...

On Fri, Oct 29, 2021 at 5:53 AM Avi Gross via Python-list 
 wrote:
> Is there a reasonable extension to a keyboard that might be 
> reasonable, perhaps with an accommodation to those without such a 
> keyboard so that entering some sequence gets it converted into what 
> you want on the screen but more mnemonic than 0X234f ??

It's called Compose key sequences and they're supported by every X11-based 
system, plus Windows and Mac OS if you set them up.

ChrisA
--
https://mail.python.org/mailman/listinfo/python-list

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: The task is to invent names for things

2021-10-28 Thread Avi Gross via Python-list
Stefan,

I choose not to get involved in a discussion about arbitrary naming rules as 
many languages and programmers have their own ideas and preferences and rules.

My examples were EXAMPLES and the actual names are irrelevant. Feel free not to 
use them and I assure you I have no plans to either.

My POINT was that people choose names as being descriptive in many ways, often 
unique to themselves or to their organizations. A name that may be considered 
quite useful and explanatory in one context is not in another. Specifically, 
names chosen using American English may mean little if looked at by programmers 
elsewhere or if they are chosen with a sense of humor or the like, may not make 
sense to those who are not in on the ideas involved. Naming a variable PINK (in 
any combination of upper or lower case you feel like may make you think it fits 
when using it to count Breast Cancer patients but many will have no idea why 
you chose that.

I strenuously disagree with many things you quote as being obviously true. 
Nonsense! Programs need whatever number of variables they need. There is no 
reason you must reuse the same variable of "i" or "index" for every loop nor 
why it must be different every time. Nor must names lengths be determined by 
the length of scopes. You are quoting, presumably, from some document outlining 
what a corporation or University or such are doing to try to get a consistency 
across their programmers. Fine, I have seen multiple CONTRADICTORY such 
declarations and it is often a matter of taste. In some languages I use periods 
in longer variable names and in others I use underscores and many times I use 
camelCase, Hungarian notation and others. The compiler and interpreter 
generally do NOT care.

To bring this back to python, does it have any serious rules or informal ones 
as compared to others? I have seen places that suggest constants be all CAPS 
and Classes should be capitalized and regular variables never capitalized and 
endless variations on such themes. I have seen places they suggest adding parts 
to names such as the units so you have xxxDollars versus xxxFeet or where they 
want each variable to contain a similar suffix (or prefix) specifying the type 
of the object such as int or char or objectXY as one way to make things clearer 
or help prevent errors. There are MANY schools of thought and I suggest no one 
right way.

My thought was that no matter what methodology for naming you have, it may not 
work quite well if the same variable is used in contexts ranging from does it 
currently exist, how much does it hold, is it "true" as in non-empty, or the 
value it has when switched to another form of measurement. It is common often 
to encapsulate something into an object and then use instance variables or 
functions to address it different ways. So an object called incomedata might be 
used as incomedata.count in one context and incomedata.nonempty() in another. 
That is not the same as my talking about synonyms. And note many languages 
allow you to create somewhat dynamic synonyms such as a view of a subset of 
something like an array using another variable and allowing it to represent the 
current state of the main data structure or even change selected parts. It is 
not at all a foreign concept to have multiple names point to the same things. 
Often, it helps make the code clearer.



-Original Message-
From: Python-list  On 
Behalf Of Stefan Ram
Sent: Thursday, October 28, 2021 2:07 PM
To: python-list@python.org
Subject: Re: The task is to invent names for things

Supersedes: 
[corrected two typos]

"Avi Gross"  writes:
>if (WeHaveAny)

|Function names should be lowercase, with words separated by underscores 
|as necessary to improve readability.
|Variable names follow the same convention as function names.
PEP 8 (2019)

  The name should not be "optimized" for a certain use case
  (as for the use in an if expression) only. "We", "have",
  and "any" carry little information. A name should pack as
  much information as possible in as least characters as
  possible. So, for me, it'd be something like:

if word_count:

  .

>So, the obvious solution is to ask the language, like Python, to allow 
>variables that are synonyms.

  Programs already have too many names in them. 
  There is no need to add even more, especially
  when they are equivalent, and the average human can
  only hold 7 ± 2 objects (like names) in his short-
  term memory.

>really good names often end up being really long names

  If they are really long, they are not really good,
  /except/ when they have a really large scope.

  Names for a small scope can and should be short,
  names for a large scope may be longer.

  Some very short names have traditional meanings
  and are ok when used as such:

for i in range( 10 ):

  . And, as a "golden rule" for refactoring, I'd say:
  When you see:

i = 0 # word count

  , then remove the comment and rename "i" to "word_count"!


--

[issue45347] datetime subject to rounding?

2021-10-28 Thread Daniele Varrazzo


Daniele Varrazzo  added the comment:

Considering that I have found another pair of dates failing equality, and they 
are too on the last Sunday of October, the hypothesis of rounding in timezone 
code starts to look likely

Python 3.7.9 (default, Jan 12 2021, 17:26:22) 
[GCC 8.3.0] on linux

>>> import datetime, backports.zoneinfo
>>> d1 = datetime.datetime(2255, 10, 28, 7, 31, 21, 393428, 
>>> tzinfo=datetime.timezone(datetime.timedelta(seconds=27060)))
>>> d2 = datetime.datetime(2255, 10, 28, 2, 0, 21, 393428, 
>>> tzinfo=backports.zoneinfo.ZoneInfo(key='Europe/Rome'))
>>> d1 - d2
datetime.timedelta(0)
>>> d1 == d2
False

Added Python 3.7 to the affected list.

--
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Get a Joke in Python

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 7:31 AM Mostowski Collapse  wrote:
>
> QA engineer walks into a bar. Orders a beer. Orders 0 beers.
> Orders 9 beers. Orders a lizard. Orders -1 beers.
> Orders a sfdeljknesv.
>

Orders 1 пиво and is served a пиво. QA engineer sighs "not again".

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue45438] inspect not capturing type annotations created by __class_getitem__

2021-10-28 Thread Guido van Rossum

Guido van Rossum  added the comment:

OK, OK, I see your point. I'm curious what Łukasz thinks.

--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45645] Deep recursion terminates script execution with no error (Windows, Python 3.9)

2021-10-28 Thread Steve Dower


Steve Dower  added the comment:

> But why does it happen only on Windows?

Because it's the operating system that is terminating the process :) 
Other operating systems behave differently when you exceed the stack, 
and may also allocate different amounts of stack space, making it less 
likely that you hit it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +27566, 27567, 27568
pull_request: https://github.com/python/cpython/pull/29302

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +27566, 27567
pull_request: https://github.com/python/cpython/pull/29302

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +27566
pull_request: https://github.com/python/cpython/pull/29302

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 7203ecd332eca3a44a3f1c8bdadd76a08c5568a1 by Miss Islington (bot) 
in branch '3.10':
bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29296)
https://github.com/python/cpython/commit/7203ecd332eca3a44a3f1c8bdadd76a08c5568a1


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset dd674ca96f2150fb3f7b4086ef7ec0022c4e2058 by Miss Islington (bot) 
in branch '3.9':
bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167) (GH-29295)
https://github.com/python/cpython/commit/dd674ca96f2150fb3f7b4086ef7ec0022c4e2058


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45645] Deep recursion terminates script execution with no error (Windows, Python 3.9)

2021-10-28 Thread PABLO LOBATO DE LA CRUZ

PABLO LOBATO DE LA CRUZ  added the comment:

I see thanks for answering so quickly. But why does it happen only on
Windows?

El jue, 28 oct 2021 a las 23:09, Steve Dower ()
escribió:

>
> Steve Dower  added the comment:
>
> This is almost certainly because of how Windows handles stack overflow
> exceptions, and the fact that there's no way for us to detect it reliably.
>
> There's some work going on to reduce the C stack depth when calling
> heavily nested Python code (see issue45256), but there's nothing else we
> can really do I'm afraid.
>
> I'm marking *this* issue as wontfix, but hopefully we can make some
> improvement on this general issue through other issues. Thanks for
> reporting it!
>
> --
> resolution:  -> wont fix
> stage:  -> resolved
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45396] Custom frozen modules get ignored.

2021-10-28 Thread Eric Snow


Change by Eric Snow :


--
resolution: fixed -> 
stage: resolved -> patch review
status: closed -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

This is done now.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45396] Custom frozen modules get ignored.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

The behavior has been addressed in the fix for bpo-45395.  However, I'd like to 
change the name of the -X option from "frozen_modules" to "frozen_stdlib", to 
avoid any confusion in the future.  After that this issue is done.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45396] Custom frozen modules get ignored.

2021-10-28 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +27565
pull_request: https://github.com/python/cpython/pull/29301

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45443] 'ThreadPoolExecutor' object has no attribute 'map'

2021-10-28 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

It's been a couple of weeks, so I'm closing this. Feel free to re-open if you 
figure out that this is a bug that you can reliably reproduce on a fresh 
install of cpython.

--
resolution:  -> not a bug
stage:  -> resolved
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 8813a987b1df78b5eaddb085e514dfa5af5c8634 by Alex Waygood in 
branch '3.9':
[3.9] bpo-45655: Add "relevant PEPs" section to typing documentation (GH-29297)
https://github.com/python/cpython/commit/8813a987b1df78b5eaddb085e514dfa5af5c8634


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Carl Friedrich! ✨  ✨

--
components: +Tests
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 67a1abb6aab3b3ce40eb3fdc0af73179ab436a3a by Miss Islington (bot) 
in branch '3.9':
bpo-45624: make test_graphlib not depend on the iteration order of sets 
(GH-29233) (GH-29292)
https://github.com/python/cpython/commit/67a1abb6aab3b3ce40eb3fdc0af73179ab436a3a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset eccb753ae6e1459dc697d5408e1082fff4f6d8f7 by Miss Islington (bot) 
in branch '3.10':
bpo-45624: make test_graphlib not depend on the iteration order of sets 
(GH-29233) (GH-29293)
https://github.com/python/cpython/commit/eccb753ae6e1459dc697d5408e1082fff4f6d8f7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45484] test_pickle segfault on s390x RHEL7 LTO 3.x

2021-10-28 Thread Dennis Sweeney


Dennis Sweeney  added the comment:

Hopefully this was fixed by https://github.com/python/cpython/pull/29258

--
nosy: +Dennis Sweeney

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-28 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +27564
pull_request: https://github.com/python/cpython/pull/29300

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45645] Deep recursion terminates script execution with no error (Windows, Python 3.9)

2021-10-28 Thread Steve Dower


Steve Dower  added the comment:

This is almost certainly because of how Windows handles stack overflow 
exceptions, and the fact that there's no way for us to detect it reliably.

There's some work going on to reduce the C stack depth when calling heavily 
nested Python code (see issue45256), but there's nothing else we can really do 
I'm afraid.

I'm marking *this* issue as wontfix, but hopefully we can make some improvement 
on this general issue through other issues. Thanks for reporting it!

--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue30082] hide command prompt when using subprocess.Popen with shell=False on Windows

2021-10-28 Thread Steve Dower


Steve Dower  added the comment:

I'd rather only have one force_hide option that does its best to hide 
everything.

Yes, it's probably unintuitive for GUI apps, it might even be maliciously 
misused, but it does have occasional legitimate uses. And besides, an app can 
easily ignore SW_HIDE if it wants.

Bear in mind that the test suite should (mostly) operate without ctypes. So if 
you use ctypes to verify the test, make it a separate test that skips if ctypes 
cannot be imported, and have a test that runs it without verifying the window 
is actually hidden. That way we always at least _run_ the code, even if we only 
(usually) verify that it's actually hiding the window.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:


New changeset 074fa5750640a067d9894c69378a00ceecc3b948 by Eric Snow in branch 
'main':
bpo-45395: Make custom frozen modules additions instead of replacements. 
(gh-28778)
https://github.com/python/cpython/commit/074fa5750640a067d9894c69378a00ceecc3b948


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45623] static build is broken

2021-10-28 Thread Steve Dower


Steve Dower  added the comment:

winver is static data, so no reason we can't define it all the time.

Unassigning myself - if anyone else would like to work on this, feel free.

--
assignee: steve.dower -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-28 Thread Martin


Change by Martin :


--
pull_requests: +27563
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/29299

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-10-28 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +27562
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29298

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45657] Enum behavior when values are functions

2021-10-28 Thread Ronald Pandolfi


Ronald Pandolfi  added the comment:

Ok, yeah that works. I would have thought that __members__ could be able to 
differentiate between bound methods and external functions, but that's probably 
asking too much.

Fair enough! This works so I'm happy. Closing, "not a bug"...

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
versions: +Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Alex Waygood


Change by Alex Waygood :


--
pull_requests: +27561
pull_request: https://github.com/python/cpython/pull/29297

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Why so fast a web framework?

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 6:17 AM Calvin Spealman  wrote:
>
> I don't think there's anything meaningful being compared in that so-called
> "benchmark" at all. There is no evidence that its worth even the smallest
> bit of attention.
>
> You want to write a web service? Do it. Use Python or PHP, or whatever you
> prefer. Do you think your service is "slow"? You won't know until you
> measure *your* service and compare that against actual requirements you
> have. There is no context here to discuss performance and performance can
> *only* be discussed in a context.
>
> "SQL queries per second" is pointless. Why are you making so many SQL
> queries? If you want your service to be more efficient, make fewer queries!
>

In my experience, using PostgreSQL, a more viable metric is
"transactions per second" - throughput is very similar regardless of
the number of queries per transaction. As a general rule, a web
service should be doing at most one transaction per query, so
throughput in requests per second will be equal to transactions per
second plus however many can be returned from cache (which, for some
applications, will be zero).

Sadly, many people still bow down in worship at the little tin god,
while completely ignoring the fact that proper transactional integrity
will improve *business* performance by, yaknow, not losing data... and
it still often works out faster than doing things wrongly.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue45664] resolve_bases() and new_class() do not work with type alias of a built-in type

2021-10-28 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

resolve_bases() returns incorrect result:

>>> import types
>>> types.resolve_bases((list[int],))
(list[int],)

Expected (list,).

new_class() fails:

>>> types.new_class('L', (list[int],), {})
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/serhiy/py/cpython/Lib/types.py", line 77, in new_class
return meta(name, resolved_bases, ns, **kwds)
   ^^
TypeError: GenericAlias expected 2 arguments, got 3

Both work well with typing.List[int].

--
components: Library (Lib)
messages: 405265
nosy: gvanrossum, kj, serhiy.storchaka, yselivanov
priority: normal
severity: normal
status: open
title: resolve_bases() and new_class() do not work with type alias of a 
built-in type
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: Get a Joke in Python

2021-10-28 Thread Mostowski Collapse
QA engineer walks into a bar. Orders a beer. Orders 0 beers. 
Orders 9 beers. Orders a lizard. Orders -1 beers.
Orders a sfdeljknesv.

LoL

joel.d...@gmail.com schrieb am Mittwoch, 27. Oktober 2021 um 21:00:29 UTC+2:
> 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 — ‘it’ 
> German — ‘de’ Galician — ‘gl’ Basque — ‘eu’ Categories Included In Pyjokes 
> For geeky jokes -’neutral’ (It is chosen by default) For Chris Norris Jokes — 
> ‘chuck’. If you want all type of jokes — ‘all’ There is one more category 
> known as ‘twister’ which only works for the German Language (‘de’) and mostly 
> includes tongue twister. Read the documentation available on https://pyjok.es 
> for more info. :::Lets Code::: Install pyjokes if you haven't pip install 
> pyjokes This Program will give you one-liner Joke #pip install pyjokes # 
> importing module i 
> [Read More...] 
> 
> https://pysnakeblog.blogspot.com
-- 
https://mail.python.org/mailman/listinfo/python-list


[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Erlend! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d6623c3ddb9a0e5ffed81253bd40f75c3c662f1a by Miss Islington (bot) 
in branch '3.9':
bpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29289)
https://github.com/python/cpython/commit/d6623c3ddb9a0e5ffed81253bd40f75c3c662f1a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 823b3e39ae12884d5aa3c98341a41b2d6f19d329 by Miss Islington (bot) 
in branch '3.10':
bpo-45612: Add sqlite3 module docstring (GH-29224) (GH-29288)
https://github.com/python/cpython/commit/823b3e39ae12884d5aa3c98341a41b2d6f19d329


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45396] Custom frozen modules get ignored.

2021-10-28 Thread Eric Snow


Change by Eric Snow :


--
pull_requests: +27560
pull_request: https://github.com/python/cpython/pull/28778

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +27558
pull_request: https://github.com/python/cpython/pull/29295

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27559
pull_request: https://github.com/python/cpython/pull/29296

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45577] Make `test_zoneinfo.py` to check all pickle protocols

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 66e6b3dcd3bbab06feeff2cbaf8aade7b6223d6c by Nikita Sobolev in 
branch 'main':
bpo-45577: test all pickle protocols in `test_zoneinfo` (GH-29167)
https://github.com/python/cpython/commit/66e6b3dcd3bbab06feeff2cbaf8aade7b6223d6c


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45379] Improve errors related to frozen modules.

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 233841ab782953510ad308dc6173072a6cc6a1cd by Filipe Laíns in 
branch 'main':
bpo-45379: add custom error string for FROZEN_DISABLED (GH-29190)
https://github.com/python/cpython/commit/233841ab782953510ad308dc6173072a6cc6a1cd


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45649] Add tarinfo.Path

2021-10-28 Thread Ethan Furman


Change by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Arthur! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 3767e0d94351653a34ba6a6914e57c5c231012b0 by Miss Islington (bot) 
in branch '3.9':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29286)
https://github.com/python/cpython/commit/3767e0d94351653a34ba6a6914e57c5c231012b0


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6 by Miss Islington (bot) 
in branch '3.10':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29285)
https://github.com/python/cpython/commit/fef54abf5fa3bf3d3cdeb2cba7a2921d204867c6


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-10-28 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +27557
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29294

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45663] is_dataclass() does not work for dataclasses which are subclasses of types.GenericAlias

2021-10-28 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

>>> import dataclasses, types
>>> @dataclasses.dataclass
... class A(types.GenericAlias):
... origin: type
... args: type
... 
>>> dataclasses.is_dataclass(A)
True
>>> a = A(list, int)
>>> dataclasses.is_dataclass(type(a))
True
>>> dataclasses.is_dataclass(a)
False

--
components: Library (Lib)
messages: 405256
nosy: eric.smith, gvanrossum, serhiy.storchaka
priority: normal
severity: normal
status: open
title: is_dataclass() does not work for dataclasses which are subclasses of 
types.GenericAlias
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Change by Łukasz Langa :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Nikita! ✨  ✨

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 01d11b1d62b869f77e024b3979dbc064e9019b7c by Miss Islington (bot) 
in branch '3.9':
bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func 
(GH-29226) (GH-29284)
https://github.com/python/cpython/commit/01d11b1d62b869f77e024b3979dbc064e9019b7c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27556
pull_request: https://github.com/python/cpython/pull/29293

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 76658e5bdbdf57464f4b43f1625c02c2ba4222dd by Miss Islington (bot) 
in branch '3.8':
bpo-45583: Correct datamodel documentation of int() (GH-29182) (GH-29287)
https://github.com/python/cpython/commit/76658e5bdbdf57464f4b43f1625c02c2ba4222dd


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 7401694807fc6b5f7b35ff73c06f4bb852e02946 by Carl Friedrich 
Bolz-Tereick in branch 'main':
bpo-45624: make test_graphlib not depend on the iteration order of sets 
(GH-29233)
https://github.com/python/cpython/commit/7401694807fc6b5f7b35ff73c06f4bb852e02946


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45662] Incorrect repr of InitVar of a type alias

2021-10-28 Thread Serhiy Storchaka


Change by Serhiy Storchaka :


--
keywords: +patch
pull_requests: +27554
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/29291

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45624] test_graphlib.py depends on iteration order of sets

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +27555
pull_request: https://github.com/python/cpython/pull/29292

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40452] Tkinter/IDLE: preserve clipboard on closure

2021-10-28 Thread primexx


Change by primexx :


--
nosy: +primexx

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset fb80aede6ab5d10297b787526657b1a6e20a706a by Miss Islington (bot) 
in branch '3.10':
bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func 
(GH-29226) (GH-29283)
https://github.com/python/cpython/commit/fb80aede6ab5d10297b787526657b1a6e20a706a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Erlend! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 1d88b2b0a15198843a43f34aba1abc65455d3ba7 by Miss Islington (bot) 
in branch '3.10':
bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219) 
(GH-29281)
https://github.com/python/cpython/commit/1d88b2b0a15198843a43f34aba1abc65455d3ba7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 020aa06ec8b0f473a682f4ae74af5833035b054b by Miss Islington (bot) 
in branch '3.9':
bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219) 
(GH-29282)
https://github.com/python/cpython/commit/020aa06ec8b0f473a682f4ae74af5833035b054b


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45653] Freeze the encodings module.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

On Thu, Oct 28, 2021 at 12:15 PM Marc-Andre Lemburg
 wrote:
> encodings is a package. I think you first have to check whether mixing
> frozen and non-frozen submodules are even supported. I've never tried
> having only part of a package frozen.

It works as long as __path__ is set properly, which it is now.  FWIW,
I tested freezing only some of the submodules a while back and it
worked fine.  That was using a different branch that I never merged
but it should be fine with the different change that got merged.  Of
course, we'd need to verify that if we went that route.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27552
pull_request: https://github.com/python/cpython/pull/29289

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 5.0 -> 6.0
pull_requests: +27553
pull_request: https://github.com/python/cpython/pull/29290

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 4dd1e84789f0bd2da83ad06d23c569bf03713a50 by Erlend Egeberg 
Aasland in branch 'main':
bpo-45612: Add sqlite3 module docstring (GH-29224)
https://github.com/python/cpython/commit/4dd1e84789f0bd2da83ad06d23c569bf03713a50


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45655] List of PEPs at top of typing docs is too long to be readable

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 03db1bbfd2d3f5a343c293b2f0e09a1e962df7ea by Alex Waygood in 
branch 'main':
bpo-45655: Add "relevant PEPs" section to ``typing`` documentation (GH-29280)
https://github.com/python/cpython/commit/03db1bbfd2d3f5a343c293b2f0e09a1e962df7ea


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45612] [doc] add sqlite3 module docstring

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 2.0 -> 3.0
pull_requests: +27551
pull_request: https://github.com/python/cpython/pull/29288

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45020] Freeze all modules imported during startup.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

I consider this done.  There is some lingering follow-up work, for which I've 
created a number of issues:

* https://bugs.python.org/issue45396 - -X frozen_modules=off ignores custom 
frozen modules
* https://bugs.python.org/issue45395 - custom modules override frozen stdlib 
modules
* https://bugs.python.org/issue45651 - frozen_modules default not right on 
Windows
* https://bugs.python.org/issue45272 - "os.path" should be in the list of 
frozen modules
* https://bugs.python.org/issue45653 - freeze encodings
* https://bugs.python.org/issue45654 - freeze runpy
* https://bugs.python.org/issue45660 - freeze argparse
* https://bugs.python.org/issue45661 - freeze other stdlib modules
* https://bugs.python.org/issue45273 - os-specific modules frozen unnecessarily?
* https://bugs.python.org/issue45096 - update Tools/freeze
* https://bugs.python.org/issue45379 - improving frozen-related errors
* https://github.com/python/devguide/issues/756 - add devguide info about 
frozen modules

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35540] dataclasses.asdict breaks with defaultdict fields

2021-10-28 Thread Raymond Xu


Raymond Xu  added the comment:

I am seeing this bug with 3.9.7

--
nosy: +greenfish6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset d9c1868c25ec6466e8d8ae21fe9315a8a03836ab by Arthur Milchior in 
branch 'main':
bpo-45583: Correct datamodel documentation of int() (GH-29182)
https://github.com/python/cpython/commit/d9c1868c25ec6466e8d8ae21fe9315a8a03836ab


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27549
pull_request: https://github.com/python/cpython/pull/29286

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +27548
pull_request: https://github.com/python/cpython/pull/29285

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45583] Documentation of int() in datamodel.rst is out of date

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27550
pull_request: https://github.com/python/cpython/pull/29287

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45662] Incorrect repr of InitVar of a type alias

2021-10-28 Thread Serhiy Storchaka


New submission from Serhiy Storchaka :

The repr of InitVar preserves type aliases from the typing module, but not 
builtin.

>>> import typing, dataclasses
>>> dataclasses.InitVar[typing.List[int]]
dataclasses.InitVar[typing.List[int]]
>>> dataclasses.InitVar[list[int]]
dataclasses.InitVar[list]

--
components: Library (Lib)
messages: 405241
nosy: eric.smith, gvanrossum, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Incorrect repr of InitVar of a type alias
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45661] [meta] Freeze commonly used stdlib modules.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

One to consider that isn't necessarily used that commonly is sysconfig.  
However, that could also involve freezing the "sysconfigdata" file (without 
needing to expose it as a module).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43656] TracebackException or StackSummary.extract with capture_locals=True fail to catch exceptions raised by repr() on value of frame local variable in FrameSummary.__init__.

2021-10-28 Thread Martin


Martin  added the comment:

Once again a very good summary, thanks Joe!

> it would be quite useful if this function parameter was given not just the 
> local variable values, but also the name of the local variable and maybe also 
> the stack frame it is in

So this would be something like `format_locals(filename, lineno, name, locals) 
-> dict[str,str]` that could be used inside FrameSummary.__init__. I like that!

I wouldn't bother with detecting un-repr-able objects in Python itself, but if 
the above `format_locals` was implemented, you could easily prepare such a 
formatter for your students that hides `self` et al. and/or catch exceptions 
during `repr` to your liking.

What is needed to get an OK for such a change?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45661] [meta] Freeze commonly used stdlib modules.

2021-10-28 Thread Eric Snow


New submission from Eric Snow :

We're already freezing modules needed for bootstrapping the runtime, as well as 
the modules imported during startup. [1][2]  We're also planning on freezing 
argparse. [3]  There may be other modules (or files) worth freezing (assuming 
we don't just freeze the entire stdlib, which would have some potential 
downsides).

This issue is meant to cover the broader idea.  The work to actually freeze 
modules should be handled in separate issues.


[1] https://bugs.python.org/issue45020
[2] https://bugs.python.org/issue45654
[3] https://bugs.python.org/issue45660

--
components: Build
messages: 405239
nosy: FFY00, eric.snow
priority: normal
severity: normal
status: open
title: [meta] Freeze commonly used stdlib modules.
type: behavior
versions: Python 3.11

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45651] -X frozen_modules not defaulting to "off" on Windows when running in source tree?

2021-10-28 Thread Guido van Rossum


Change by Guido van Rossum :


--
nosy: +gvanrossum

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 1fb968c07a76fb2d1ec8c14a0026f1d15828f4a5 by Nikita Sobolev in 
branch 'main':
bpo-45604: add `level` argument to `multiprocessing.log_to_stderr` func 
(GH-29226)
https://github.com/python/cpython/commit/1fb968c07a76fb2d1ec8c14a0026f1d15828f4a5


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27547
pull_request: https://github.com/python/cpython/pull/29284

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45604] multiprocessing.log_to_stderr missing documentation for parameter

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +27546
pull_request: https://github.com/python/cpython/pull/29283

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread miss-islington


Change by miss-islington :


--
pull_requests: +27545
pull_request: https://github.com/python/cpython/pull/29282

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 88d8a1a340fb09c54d47f354f5fd7d4fbc5f0c78 by Erlend Egeberg 
Aasland in branch 'main':
bpo-45608: Document missing `sqlite3` DB-API attributes and methods (GH-29219)
https://github.com/python/cpython/commit/88d8a1a340fb09c54d47f354f5fd7d4fbc5f0c78


--
nosy: +lukasz.langa

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45608] [sqlite3] some DB-API attributes are undocumented

2021-10-28 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +27544
pull_request: https://github.com/python/cpython/pull/29281

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:

Thanks, Sam! ✨  ✨

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45654] Freeze the runpy module.

2021-10-28 Thread Eric Snow


Eric Snow  added the comment:

(See https://bugs.python.org/issue45020#msg402118.)

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2021-10-28 Thread Chris Angelico
On Fri, Oct 29, 2021 at 5:53 AM Avi Gross via Python-list
 wrote:
> Is there a reasonable extension to a keyboard that might be reasonable,
> perhaps with an accommodation to those without such a keyboard so that
> entering some sequence gets it converted into what you want on the screen
> but more mnemonic than 0X234f ??

It's called Compose key sequences and they're supported by every
X11-based system, plus Windows and Mac OS if you set them up.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


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

2021-10-28 Thread Łukasz Langa

Łukasz Langa  added the comment:


New changeset 193504acf3bfb7cff1edf7f568c2405b857fa1f7 by Miss Islington (bot) 
in branch '3.9':
bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() 
(GH-29246) (GH-29248)
https://github.com/python/cpython/commit/193504acf3bfb7cff1edf7f568c2405b857fa1f7


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   >