Guido van Rossum added the comment:
Followup: https://github.com/faster-cpython/ideas/issues/93
New paper: https://arxiv.org/abs/2109.02958
--
___
Python tracker
<https://bugs.python.org/issue14
Change by Guido van Rossum :
--
Removed message: https://bugs.python.org/msg403481
___
Python tracker
<https://bugs.python.org/issue14757>
___
___
Python-bug
Guido van Rossum added the comment:
In a brief off-line chat we concluded that the desired API would be closer to
PyErr_Restore().
--
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
> If you meant to say: why is typing.Union[] allowed, but not
types.UnionType[]? That is intentional. types.UnionType is only meant for
builtin types. Once you union with *any* type from typing, it will convert
to a typing.Union.
But why? Just
Guido van Rossum added the comment:
Oh, I see. No, they must make another special case, like for Annotated.--
--Guido (mobile)
--
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
Someone whose name I don't recognize (MagzoB Mall) just changed the issue type
to "crash" without explaining why. That user was created today, and has no
triage permissions. Mind if I change it back? It feels
Change by Guido van Rossum :
--
type: crash -> performance
___
Python tracker
<https://bugs.python.org/issue45116>
___
___
Python-bugs-list mailing list
Un
Guido van Rossum added the comment:
Raymond, the bug must be in the Python code in inspect.py. Could you dig a
little deeper there? I don't know much about it. Specifically I think the
problem may just be in the repr() of class Parameter:
>>> inspect.signature(g)
Guido van Rossum added the comment:
I'm not convinced by the comment you linked to.
It seems Brett is referring to the case where at the C level someone overrides
`PyImport_FrozenModules` (a global in frozen.c) -- though it is never
explicitly named in the thread. And that variabl
Guido van Rossum added the comment:
Sure. Waiting for your PR. :-)
--
___
Python tracker
<https://bugs.python.org/issue45438>
___
___
Python-bugs-list mailin
Guido van Rossum added the comment:
Okay, thanks. We may do one of the other ideas (maybe co_flags & CO_DOCSTRING).
--
___
Python tracker
<https://bugs.python.org/iss
Guido van Rossum added the comment:
I suppose this is useful for programs that use runtime annotations (e.g.
pydantic?). I don’t mind adding this.
--
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
No. :-)
--
___
Python tracker
<https://bugs.python.org/issue45489>
___
___
Python-bugs-list mailing list
Unsubscribe:
Guido van Rossum added the comment:
Is gh-28940 only for UNIX?
I built on Windows with default options (PCbuild\build.bat) and it looks like
the frozen modules are used by default even though I am running in the source
directory. (I put a printf() call in unmarshal_frozen_code().)
I also
Guido van Rossum added the comment:
The space savings are nice, but I doubt that it will matter for startup time --
startup is most relevant in situations where it's *hot* (e.g. a shell script
that repeatedly calls out to utilities written in Python).
--
nosy: +gvanr
Guido van Rossum added the comment:
I really don't recall if we even seriously considered what
isinstance(list[int], type) should return. PEP 585 doesn't mention it. I
presume it falls out of the way it's being tested and the way list[int] passes
most attribute requests o
Guido van Rossum added the comment:
> The issue is that this feature is internally inconsistent (isinstance() is
> not consistent with issubclass()),
issubclass(x, list[int]) rejects the second argument for reasons explained in
the PEP. I don't think from that reasoning you can
Change by Guido van Rossum :
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45607>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Guido van Rossum :
--
nosy: +Zac Hatfield-Dodds
___
Python tracker
<https://bugs.python.org/issue45607>
___
___
Python-bugs-list mailing list
Unsub
Guido van Rossum added the comment:
Thanks!
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45619>
___
___
Python-bugs-list mailin
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/d02ffd1b5c0fd8dec6dd2f7e3f2b0c
Guido van Rossum added the comment:
Can we close this?
--
___
Python tracker
<https://bugs.python.org/issue45438>
___
___
Python-bugs-list mailing list
Unsub
Change by Guido van Rossum :
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45651>
___
___
Python-bugs-list mailing list
Unsubscribe:
Guido van Rossum added the comment:
OK, OK, I see your point. I'm curious what Łukasz thinks.
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/is
Guido van Rossum added the comment:
Thanks!
--
___
Python tracker
<https://bugs.python.org/issue45688>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Guido van Rossum :
See https://github.com/faster-cpython/ideas/issues/84
This appears to improve startup time by another 10% or more compared to main.
--
assignee: gvanrossum
components: Interpreter Core
messages: 405570
nosy: gvanrossum
priority: normal
severity
Change by Guido van Rossum :
--
keywords: +patch
pull_requests: +27637
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29118
___
Python tracker
<https://bugs.python.org/issu
Change by Guido van Rossum :
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45635>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Guido van Rossum :
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45694>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Guido van Rossum :
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45614>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Guido van Rossum :
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45615>
___
___
Python-bugs-list mailing list
Unsubscribe:
Guido van Rossum added the comment:
Hey Erlend, why did you add so many people to the nosy list of this old
issue?
On Thu, Nov 4, 2021 at 07:33 Erlend E. Aasland
wrote:
>
> Change by Erlend E. Aasland :
>
>
> --
> components: +Interpreter Core -Argument Cli
Guido van Rossum added the comment:
Yes, that’s definitely the problem.
--
___
Python tracker
<https://bugs.python.org/issue45651>
___
___
Python-bugs-list mailin
Guido van Rossum added the comment:
Why not propose a slight extension to the dis module?
--
___
Python tracker
<https://bugs.python.org/issue45630>
___
___
Guido van Rossum added the comment:
Do we have a plan for when this will be turned into a non-silent warning and
when into an error?
--
___
Python tracker
<https://bugs.python.org/issue43
Guido van Rossum added the comment:
We would need the OP to sign a CLA in order to be able to use (a modified
version of) his code.
I presume this page is where the example was supposed to go?
https://docs.python.org/3/library/mmap.html
Let me ask first -- does that page really need another
Guido van Rossum added the comment:
Thanks for the research! I will close the issue now.
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Guido van Rossum added the comment:
This has caused a regression, also reported here:
https://github.com/Azure/azure-cli/issues/20269 Global Arguments stop working
in Python 3.9.8
Can we please get some attention from @rhettinger and @ambv?
--
nosy: +gvanrossum
Guido van Rossum added the comment:
After PR 29118 is merged we get the benefits on UNIXy systems. We have several
TODOs left then:
- (Definitely:) Generate Windows build files
- (Probably:) Find a way to avoid having to regenerate everything whenever any
source file changes (any source
Guido van Rossum added the comment:
New changeset 1cbaa505d007e11c4a1f0d2073d72b6c02c7147c by Guido van Rossum in
branch 'main':
bpo-45696: Deep-freeze selected modules (GH-29118)
https://github.com/python/cpython/commit/1cbaa505d007e11c4a1f0d2073d72b
Guido van Rossum added the comment:
New changeset 1cbaa505d007e11c4a1f0d2073d72b6c02c7147c by Guido van Rossum in
branch 'main':
bpo-45696: Deep-freeze selected modules (GH-29118)
https://github.com/python/cpython/commit/1cbaa505d007e11c4a1f0d2073d72b
Guido van Rossum added the comment:
I'm torn. It's been like this for a very long time and Serhiy's reasoning makes
some sense.
OTOH it *does* make more sense as it's written in the PEP. The basic idea is
"the class has control over what is considered an instanc
Guido van Rossum added the comment:
I believe that the PEP 3119 example doesn't work (I've confirmed something
simpler) but I have a feeling that the uses of __instancecheck__ in
typing.py are actually okay. For example, isinstance(42, typing.Any)
correctly calls _SpecialForm.__insta
Guido van Rossum added the comment:
Isn’t the solution to use the unspecialized class?
--
___
Python tracker
<https://bugs.python.org/issue45755>
___
___
Pytho
Guido van Rossum added the comment:
I'd like to know how to reproduce this. @neonene can you write down the
steps I should do to get the results you get? I have VS 2019, if I need VS
2022 I can install that.
--
___
Python tracker
&
Change by Guido van Rossum :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Guido van Rossum :
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45829>
___
___
Python-bugs-list mailing list
Unsubscribe:
Guido van Rossum added the comment:
Of these, presumably LOAD_GETATTR is by far the most used, so should we try
that first?
--
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
That's a good one too, and perhaps simpler.
--
___
Python tracker
<https://bugs.python.org/issue45829>
___
___
Pytho
Guido van Rossum added the comment:
@neonene what's the importance of PR29565?
--
___
Python tracker
<https://bugs.python.org/issue45116>
___
___
Pytho
Change by Guido van Rossum :
--
nosy: gvanrossum
priority: normal
severity: normal
status: open
title: Port deep-freeze to Windows
versions: Python 3.11
___
Python tracker
<https://bugs.python.org/issue45
Change by Guido van Rossum :
--
keywords: +patch
pull_requests: +27881
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/29648
___
Python tracker
<https://bugs.python.org/issu
Change by Guido van Rossum :
--
keywords: +patch
nosy: +gvanrossum
nosy_count: 2.0 -> 3.0
pull_requests: +27883
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29648
___
Python tracker
Change by Guido van Rossum :
--
pull_requests: +27882
pull_request: https://github.com/python/cpython/pull/29648
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
(Note, that PR doesn't actually fix this, its description just references this.)
--
___
Python tracker
<https://bugs.python.org/is
Change by Guido van Rossum :
--
pull_requests: -27883
___
Python tracker
<https://bugs.python.org/issue45273>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Guido van Rossum :
--
Removed message: https://bugs.python.org/msg406633
___
Python tracker
<https://bugs.python.org/issue45273>
___
___
Python-bug
Change by Guido van Rossum :
--
pull_requests: -27882
___
Python tracker
<https://bugs.python.org/issue45272>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Guido van Rossum :
--
pull_requests: +27884
pull_request: https://github.com/python/cpython/pull/29648
___
Python tracker
<https://bugs.python.org/issue45
Change by Guido van Rossum :
--
pull_requests: +27887
pull_request: https://github.com/python/cpython/pull/29648
___
Python tracker
<https://bugs.python.org/issue45
Change by Guido van Rossum :
--
pull_requests: +27884, 27885, 27886
pull_request: https://github.com/python/cpython/pull/29648
___
Python tracker
<https://bugs.python.org/issue45
Change by Guido van Rossum :
--
pull_requests: +27884, 27885
pull_request: https://github.com/python/cpython/pull/29648
___
Python tracker
<https://bugs.python.org/issue45
Change by Guido van Rossum :
--
nosy: -gvanrossum
___
Python tracker
<https://bugs.python.org/issue45846>
___
___
Python-bugs-list mailing list
Unsubscribe:
Guido van Rossum added the comment:
I could really use 3.10 here as well.
--
nosy: +Guido.van.Rossum
___
Python tracker
<https://bugs.python.org/issue33
New submission from Guido van Rossum :
New changeset 1037ca5a8ea001bfa2a198e08655620234e9befd by Guido van Rossum in
branch 'main':
bpo-45850: Implement deep-freeze on Windows (#29648)
https://github.com/python/cpython/commit/1037ca5a8ea001bfa2a198e0865562
Change by Guido van Rossum :
--
resolution: -> fixed
stage: patch review -> commit review
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Guido van Rossum :
Now that we've got a way (for Windows) to deep-freeze without building a
bootstrap Python binary, we should do the same for UNIX.
--
components: Build
messages: 406798
nosy: gvanrossum
priority: normal
severity: normal
stage: needs patch
s
Change by Guido van Rossum :
--
pull_requests: +27950
pull_request: https://github.com/python/cpython/pull/29714
___
Python tracker
<https://bugs.python.org/issue45
Change by Guido van Rossum :
--
keywords: +patch
pull_requests: +27949
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/29714
___
Python tracker
<https://bugs.python.org/issu
Change by Guido van Rossum :
--
pull_requests: +27954
pull_request: https://github.com/python/cpython/pull/29717
___
Python tracker
<https://bugs.python.org/issue45
Change by Guido van Rossum :
--
pull_requests: +27953
pull_request: https://github.com/python/cpython/pull/29717
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
New changeset 5be98e57b3c3b36d1a1176b49c73b8822c6380e7 by Guido van Rossum in
branch 'main':
bpo-45873: Get rid of bootstrap_python (#29717)
https://github.com/python/cpython/commit/5be98e57b3c3b36d1a1176b49c73b8
Guido van Rossum added the comment:
New changeset 5be98e57b3c3b36d1a1176b49c73b8822c6380e7 by Guido van Rossum in
branch 'main':
bpo-45873: Get rid of bootstrap_python (#29717)
https://github.com/python/cpython/commit/5be98e57b3c3b36d1a1176b49c73b8
Guido van Rossum added the comment:
I assume there's something wrong with the OP's methodology for profiling.
(Raymond, in your last example there's a -s argument but nothing to run -- does
timeit just use "pass" in that case?)
--
_
Change by Guido van Rossum :
--
resolution: -> works for me
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Guido van Rossum :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Guido van Rossum added the comment:
To the question "why does _freeze_module need to be a (C) binary" (IOW, why
can't it be replaced by a Python script that is run with PYTHON_FOR_REGEN,
which always runs on the build host), the reason is that it uses the bytecode
compi
New submission from Guido van Rossum :
E.g.
https://dev.azure.com/Python/cpython/_build/results?buildId=92084&view=results
--
assignee: steve.dower
components: Build
messages: 406945
nosy: gvanrossum, steve.dower
priority: high
severity: normal
status: open
title: Azure Pipel
Change by Guido van Rossum :
--
nosy: +christian.heimes
___
Python tracker
<https://bugs.python.org/issue45893>
___
___
Python-bugs-list mailing list
Unsub
Guido van Rossum added the comment:
Christian thinks that a PR by Victor broke this (GH-29488 / bpo-39026)
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
Imthink I prefer the ‘make clean’ extension.--
--Guido (mobile)
--
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
New changeset 93c65df83cef71a4bc77d71afecdec8744c4f73a by Alex Waygood in
branch 'main':
bpo-44353: Correct docstring for `NewType` (#29785)
https://github.com/python/cpython/commit/93c65df83cef71a4bc77d71afecdec
Guido van Rossum added the comment:
New changeset cd876c84932ecc2f7a6c41f3fc800a34d5b06b95 by Arthur Milchior in
branch 'main':
bpo-45619: documentation of execution model: clarify and update binding summary
(#29232)
https://github.com/python/cpyt
Change by Guido van Rossum :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Guido van Rossum added the comment:
New changeset b0b10e146b1cbf9c5dfa44af116a2eeb0f210e8b by Kumar Aditya in
branch 'main':
bpo-45019: Cleanup module freezing and deepfreeze (#29772)
https://github.com/python/cpython/commit/b0b10e146b1cbf9c5dfa44af116a2e
Change by Guido van Rossum :
--
pull_requests: -26699
___
Python tracker
<https://bugs.python.org/issue44359>
___
___
Python-bugs-list mailing list
Unsubscribe:
Guido van Rossum added the comment:
AFAIK the reason command history works in cmd.py on Windows is that it's built
into the terminal program. Or maybe into the operating system.
Thus, the user can use line editing and history, but there is no API (in
Python) to interact with these.
Guido van Rossum added the comment:
Thanks, Eryk, I only read the part of the issue that landed in my inbox (fhe
first message and everything after Terry added me to the nosy list). Sorry.
You wrote:
> The console/terminal team at Microsoft apparently don't want to do anything
&g
Guido van Rossum added the comment:
I'm sure there's more to it, but I found at least this failure:
~/cpython$ ./python.exe -O -m test test_asyncio -m test_set_event_loop
Raised RLIMIT_NOFILE: 256 -> 1024
0:00:00 load avg: 2.02 Run tests sequentially
0:00:00 load avg: 2.02 [1/1]
Guido van Rossum added the comment:
Okay, so that's all hypothetical. It looks like the status quo is not
likely to change, so we should just document it. I wonder if keeely is
interested in submitting a PR for the docs?
--
___
Python tr
Guido van Rossum added the comment:
There's a similar issue with concurrent.futures.Future, and really, anything
that stores exceptions and later raises them can get in trouble if there's a
way to get the exception raised multiple times. This is rarely noticed because
usually the
Change by Guido van Rossum :
--
keywords: +easy
___
Python tracker
<https://bugs.python.org/issue26552>
___
___
Python-bugs-list mailing list
Unsubscribe:
Guido van Rossum added the comment:
I'd be happy to mentor someone who wants to tackle this.
--
keywords: +easy
___
Python tracker
<https://bugs.python.org/is
Guido van Rossum added the comment:
New changeset 02b5ac6091ada0c2df99c4e1eae37ddccbcd91f0 by Kumar Aditya in
branch 'main':
bpo-45653: fix test_embed on windows (GH-29814)
https://github.com/python/cpython/commit/02b5ac6091ada0c2df99c4e1eae37ddccbcd91f0
--
nosy: +
Change by Guido van Rossum :
--
nosy: +gvanrossum
___
Python tracker
<https://bugs.python.org/issue45953>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Guido van Rossum :
Since this is an enhancement, it should only target 3.11.--
--Guido (mobile)
--
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
This does not apply to Windows (we don’t support curses there).
--
components: +Library (Lib) -C API, Windows
___
Python tracker
<https://bugs.python.org/issue45
Guido van Rossum added the comment:
Serhiy, this started with a post by Julius to the core-mentorship list. He
wants to add newterm(), and found that an issue about that was just created by
a different user (draganic1) -- apparently without a comment body, so it
appears the first comment is
Guido van Rossum added the comment:
New changeset 44b0e76f2a80c9a78242b7542b8b1218d244af07 by Kumar Aditya in
branch 'main':
bpo-45654: Freeze the runpy module and stuff it imports (GH-29903)
https://github.com/python/cpython/commit/44b0e76f2a80c9a78242b7542b8b1218d244af07
-
Guido van Rossum added the comment:
Thanks Kumar!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
2201 - 2300 of 5533 matches
Mail list logo