Matt Wozniski added the comment:
> My main hesitation with this name is that I suspect users may think that
> `use_utc_designator` means that they *unconditionally* want to use `Z` —
> without reading the documentation (which we can assume 99% of users won't do)
I was thinking
Change by Matt Wozniski :
--
keywords: +patch
pull_requests: +30131
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/32041
___
Python tracker
<https://bugs.python.org/issu
Matt Page added the comment:
Sorry for the confusion, I'm working on a PR. I filed the BPO to gauge interest
in the feature.
--
___
Python tracker
<https://bugs.python.org/is
Change by Matt Bogosian :
--
pull_requests: +29919
stage: backport needed -> patch review
pull_request: https://github.com/python/cpython/pull/31821
___
Python tracker
<https://bugs.python.org/issu
Matt Wozniski added the comment:
Pardon me for necroing an old issue, but someone pointed out the surprising
behavior of `__len__` being called twice by `list(iterable)`, and it caught my
curiosity.
https://github.com/python/cpython/commit/372d705d958964289d762953d0a61622755f5386
made it
Change by Matt Page :
--
versions: +Python 3.11
___
Python tracker
<https://bugs.python.org/issue46895>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Matt Page :
CPython extensions providing optimized execution of Python bytecode (e.g. the
Cinder JIT) may need to hook into the lifecycle of code objects to determine
what to optimize or to free resources allocated for code objects that no longer
exist. We propose adding
New submission from Matt Page :
CPython extensions providing optimized execution of Python bytecode (e.g. the
Cinder JIT) may need to hook into the lifecycle of function objects to
determine what to optimize, invalidate previously-optimized functions, or free
resources allocated for
Change by Matt Page :
--
title: Type-Modified Callbacks -> Allow extensions to set a callback to be
invoked when a type is modified
___
Python tracker
<https://bugs.python.org/issu
New submission from Matt Page :
CPython extensions providing optimized execution of Python bytecode (e.g. the
Cinder JIT), or even CPython itself (e.g. the faster-cpython project) may wish
to cache access to lookups in the class hierarchy (e.g. when resolving the
target of a method call
New submission from Matt Page :
Profiling tools that use the call-stack (i.e. all of them) paint an incomplete
picture of what’s really going on in async-heavy codebases. They can only show
the stack of the currently executing task; they miss the chain of awaitables
that are transitively
Matt Wozniski added the comment:
> I feel like "If the offset is 00:00, use Z" is the wrong rule to use
> conceptually
This is a really good point that I hadn't considered: `+00:00` and `Z` are
semantically different, and just because a datetime has a UTC offset of 0
d
Change by Matt Bogosian :
--
keywords: +patch
nosy: +mbogosian
nosy_count: 4.0 -> 5.0
pull_requests: +29243
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31061
___
Python tracker
<https://bugs.python.org/i
Matt B added the comment:
Thanks, @kj! Fantastic education and insight! I'm sad that I needed you as an
interpreter but very grateful you were around to provide the interpretation.
Working on a patch now….
--
___
Python tracker
&
Matt B added the comment:
I am happy to attempt a patch, but I don't understand what's going on with
_ConcatenateGenericAlias. Or rather, I don't fully understand the various
copy_with semantics. This code is *very* hard to follow.
Patching _GenericAlias.copy_with s
Matt B added the comment:
Filed by request:
https://github.com/python/cpython/pull/26091#issuecomment-1024900261
--
___
Python tracker
<https://bugs.python.org/issue46
New submission from Matt B :
c55ff1b352f8b82184f80d9dea220e832691acfc was submitted to fix #44098 and added
the _typevar_types and _paramspec_tvars properties to _GenericAlias. However,
those properties continue to be omitted from _GenericAlias.copy_with[1].
Further, typing.py is fairly
Matt B added the comment:
@ztane, if you are interested in trying your hand at a PR, these will be
generally useful:
* https://devguide.python.org/
* https://devguide.python.org/documenting/
--
___
Python tracker
<https://bugs.python.
Matt B added the comment:
@rhettinger, the docstring[1] alluded to in the docs is quite lengthy. Are you
suggesting copying it straight across to the standard library documentation? If
not, can you give (or link to) some documentation standards or other guidance
on constructing a viable PR
Matt Wozniski added the comment:
I agree with Brett. Adding `allow_z` (or perhaps `compact` or
`use_utc_designator` if we're bikeshedding) as an optional keyword only
argument to `.isoformat()` would allow us to keep the explanation that what
`.fromisoformat()` can parse is exactly
Matt B added the comment:
Please treat this as a feature request to add the ability for pdb (and
internals) to ingest sources for exec-generated code.
--
___
Python tracker
<https://bugs.python.org/issue46
Change by Matt B :
--
resolution: not a bug ->
___
Python tracker
<https://bugs.python.org/issue46133>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Matt B :
--
status: closed -> open
title: Unclear whether one can (or how to) provide source to exec-generated
code -> Feature request: allow mechanism for creator of exec-generated code to
provide source to pdb
type: behavior -> en
Matt Delengowski added the comment:
Hi Eric,
I see what are you referring to. Like you said unintuitive but still correct.
Do you think it would be worthwhile to change the order of the checking such
that '}' is always first? Or could the same edge case still appear but just the
New submission from Matt Delengowski :
Example code
```
foo = 1
f"blank (open paren {foo )"
```
Error report
File "", line 1
f"blank (open paren {foo )"
^
SyntaxError: f-string: unmatched ')'
The
Change by Matt B :
--
components: +Library (Lib)
type: -> behavior
versions: +Python 3.10, Python 3.11, Python 3.6, Python 3.7, Python 3.8, Python
3.9
___
Python tracker
<https://bugs.python.org/issu
New submission from Matt B :
Unless I missed it, looking at
https://github.com/python/cpython/blob/main/Lib/pdb.py,
https://github.com/python/cpython/blob/main/Lib/inspect.py, and
https://docs.python.org/3/library/pdb.html doesn't give much of a clue how to
provide sources to exec-gene
New submission from matt :
Hi there,
ISSUE DESCRIPTION
when I browse starting from the linux root ('/')
path = pathlib.Path('/')
_glob = '**/*'
for p in path.glob(_glob):
The program stops on my machine because of OSError.
File "/usr/lib/
Matt Bogosian added the comment:
Please consider highlighting that dicts are not included in the documentation.
While *technically* true, this ...
> compact impacts the way that long sequences (lists, tuples, sets, etc) are
> formatted. If compact is false (the default) then each ite
Matt Wozniski added the comment:
> Syntactically, this could be many possible errors: missing comma, missing
> period, missing parens, missing brackets, etc.
Syntactically, it cannot be a missing comma. Adding the comma is a syntax error.
$ python3 -c 'if datetime.now(),strftime(
New submission from Matt Martz :
HTTPError may not be fully initialized in some scenarios leading to an
inconsistent interface. This is documented in code at:
https://github.com/python/cpython/blob/55fe1ae9708d81b902b6fe8f6590e2a24b1bd4b0/Lib/urllib/error.py#L45-L50
Unfortunately the way
Matt Wozniski added the comment:
I wondered if it would be backwards compatible to make `pkgutil.get_data()`
delegate to `importlib.resources.read_binary()`. It isn't, because
`pkgutil.get_data()` accepts a relative path for the resource, and
`importlib.resources.read_binary()` accepts
Matt Wozniski added the comment:
The original case where I encountered this was with a namespace package, but
the behavior appears to be the same for a subpackage of a regular package.
--
title: pkgutil.get_data() doesn't add subpackages to namespaces when impo
New submission from Matt Wozniski :
If a module hasn't yet been imported, `pkgutil.get_data(pkg_name, data_file)`
will import it, but when it does, it doesn't add the submodule to its parent
package when the parent package is a PEP 420 implicit namespace package.
```
$ mkdir -p
Matt Wozniski added the comment:
> "!value" or "!!value" also has the issue if I understood correctly.
No, just as "value != 0" is an int, so is "!value".
--
___
Python t
Matt Wozniski added the comment:
The leftmost argument of the ternary is an int for every example that Victor
and I found in the stdlib, so no casting would be required in any of these
cases.
--
___
Python tracker
<https://bugs.python.
Matt Wozniski added the comment:
I spotted three other uses in the stdlib:
Modules/_io/_iomodule.c
raw = PyObject_CallFunction(RawIO_class, "OsOO",
path_or_fd, rawmode,
closefd ? Py_True
Matt Wozniski added the comment:
> but there is a catch -- the arguments should be a C int
Or a type that promotes to int. If you pass a C short or char, or a C++ bool,
it is implicitly promoted to int.
> so you will need to write "expr ? 1 : 0"
Or alternatively "!!
Matt Bogosian added the comment:
Thanks! Where's that documented? (Apologies if I missed it.)
--
___
Python tracker
<https://bugs.python.org/issue40346>
___
___
Matt Bogosian added the comment:
I landed here after investigating this surprising result:
# test_case.py
from random import Random
from typing import Sequence, Union
_RandSeed = Union[None, int, Sequence[int]]
class MyRandom(Random):
def __init__(
self,
seed
Matt Schuster added the comment:
Yes, I meant the day of week.
Ok, no problem as this is 'date of month'.
Closing as 'not a bug'. Thanks!!
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_
New submission from Matt Schuster :
Reference
https://docs.python.org/3/library/time.html?highlight=time%20time#module-time
in 3.8, 3.9, 3.10, 3.11 (previous versions do not have same issue).
Specifically under time.asctime([t]) and time.ctime([secs])
Change "day field is two characters
Matt Whitlock added the comment:
Observed this same failure mode on a Raspberry Pi 1 while running 'make
install' on Python 3.9.5 with 9 concurrent workers.
Exception in thread Thread-1:
Traceback (most recent call last):
File
"/var/tmp/portage/dev-lang/python-3.9.5_p
Matt Billenstein added the comment:
I have been stopping it since the initial problem - there’s something wonky
with using the system python on macos afaict...
M
--
Matt Billenstein
m...@vazor.com
> On Jun 3, 2021, at 4:39 AM, STINNER Victor wrote:
>
>
> STINNER Victo
Matt Billenstein added the comment:
So, I'd been trying various things before the master restart and I was using
python3 supplied by homebrew - I decided I didn't like that dependency and
switched it back to /usr/bin/python3 as supplied by the system [1].
I did a rebuild on 325 a c
Matt Billenstein added the comment:
Hmm, yeah, it did seem to me like the server was wedged or something... glad
to see it going.
M
--
Matt Billenstein
m...@vazor.com
> On Jun 2, 2021, at 6:13 PM, STINNER Victor wrote:
>
>
> STINNER Victor added the comment:
>
>>
Matt Billenstein added the comment:
Probably at 321 where it lost connection - I would have shut it down and wiped
the buildarea.
I'm not sure what's going on now, I'm walking back versions of buildbot-worker
and they seem to never connect to the master...
m
On Wed, Jun 02
Matt Billenstein added the comment:
Hmm, digging, afaict the buildbot-worker is up and running - something on the
master? I just updated my setup to use python3 instead of python2...
On Wed, Jun 02, 2021 at 06:24:23PM +, Ned Deily wrote:
>
> Ned Deily added the comment:
>
>
Matt Billenstein added the comment:
I rebuilt it a while ago which could have caused this - can you re-run the
affected build?
thx
m
On Wed, Jun 02, 2021 at 06:08:16PM +, Ned Deily wrote:
>
> Ned Deily added the comment:
>
> I can't reproduce that failure with that
Matt Harrison added the comment:
And by "if your model is in the correct layout", I meant "if your data is in
the correct layout"
--
___
Python tracker
<https://bug
Matt Harrison added the comment:
The ML world has collapsed on the terms X and y. (With that capitalization).
Moreover, most (Python libraries) follow the interface of scikit-learn [0].
Training a model looks like this:
model = LinearRegression()
model.fit(X, y)
After that, the
Matt Billenstein added the comment:
Ah, word, was looking at stdout -- 256 is pretty low, raised it to 200k...
--
___
Python tracker
<https://bugs.python.org/issue43
Matt Billenstein added the comment:
In any case - I've raised file/process limits on the buildbot.
--
___
Python tracker
<https://bugs.python.org/is
Matt Billenstein added the comment:
I don't see that error message - where are you seeing it?
--
___
Python tracker
<https://bugs.python.org/issue43572>
___
___
Change by Matt Fowler :
--
keywords: +patch
pull_requests: +22741
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/23881
___
Python tracker
<https://bugs.python.org/issu
New submission from Matt Fowler :
The documentation for `asyncio.Event` has incorrect links. The `wait` coroutine
incorrectly links to the docs for the `asyncio.wait` waiting primitive, and the
`set` method incorrectly links to the docs for the `set` class constructor.
--
assignee
Change by Matt Wozniski :
--
keywords: +patch
nosy: +godlygeek
nosy_count: 7.0 -> 8.0
pull_requests: +22673
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/23812
___
Python tracker
<https://bugs.p
Matt Joiner added the comment:
I do not think so. mypy has the same issue. The ByteString type does not
include the methods shared by all its implementations. I already linked to this
in https://bugs.python.org/msg375553. I also showed that mypy doesn't work in
my last co
Matt Joiner added the comment:
$ pyright hex.py
stubPath /Users/anacrolix/src/dht-scraper/typings is not a valid directory.
Assuming Python platform Darwin
Searching for source files
Found 1 source file
/Users/anacrolix/src/dht-scraper/hex.py
3:9 - error: Cannot access member "hex"
Change by Matt Joiner :
Added file: https://bugs.python.org/file49423/hex.py
___
Python tracker
<https://bugs.python.org/issue41564>
___
___
Python-bugs-list mailin
Change by Matt Prahl :
--
nosy: +mprahl
nosy_count: 7.0 -> 8.0
pull_requests: +21025
pull_request: https://github.com/python/cpython/pull/21909
___
Python tracker
<https://bugs.python.org/issu
Matt Joiner added the comment:
https://github.com/python/cpython/blob/48b069a003ba6c684a9ba78493fbbec5e89f10b8/Lib/_collections_abc.py#L953
https://github.com/python/cpython/blob/0e95bbf08571e98f4b688524efc2dcf20d315d91/Lib/typing.py#L1612
--
status: pending -> o
New submission from Matt Joiner :
I get this error when running pyright for a type of typing.ByteString. All the
implementations of ByteString (bytes, bytearray, memoryview) have the hex
method, so this seems unexpected?
--
components: Library (Lib)
messages: 375523
nosy: anacrolix
New submission from Matt Miller :
I was evaluating a few regular expressions for parsing URL. One such
expression
(https://daringfireball.net/2010/07/improved_regex_for_matching_urls) causes
the `re.Pattern` to exhibit some strange behavior (notice the stripped
characters in the `repr
Matt Wozniski added the comment:
A simple test case for this issue:
~>mkdir tmp
~>cd tmp
tmp>touch 1.txt
tmp>ln -s subdir/file 2.txt
tmp>touch 3.txt
tmp>ls -l
total 0
-rw-rw-r-- 1 mwoznisk general 0 Mar 6 14:52 1.txt
lrwxrwxrwx 1 mwoznisk general 11 Mar 6 14:52 2.txt -&g
Change by Matt Kokotovich :
--
pull_requests: +17573
pull_request: https://github.com/python/cpython/pull/18190
___
Python tracker
<https://bugs.python.org/issue39
Matt Kokotovich added the comment:
I'd love to see this issue resolved, as it is keeping me from being able to
switch to 3.8.
I have a PR with Karthikeyan's suggestion, as I agree it makes more sense and
could apply to more cases: https://github.com/python/cpython/
Change by Matt Kokotovich :
--
nosy: +mkokotovich
___
Python tracker
<https://bugs.python.org/issue39082>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Matt :
I'm trying to evaluate process' state between two "sibling" processes
(processes created by the same parent process); using the .is_alive() and
exitcode to evaluate whether a process has been init'd, started, finished
successfully or unsuc
Matt McEwen added the comment:
My interpretation of issue 24018 was that the Generator ABC was trying to
follow the PEP as much as possible, so that users were able to produce a custom
generator object and have it behave just like a builtin generator object.
I know that subclassing
New submission from Matt McEwen :
The Generator ABC in the standard library lets users define objects that follow
the Generator specification given in PEP342, and which can be used in the place
of builtin generator objects.
This was originally added in issue 24018
The ABC enforces that the
Matt Ward added the comment:
You're welcome!
On Fri, Oct 25, 2019 at 10:53 PM Ammar Askar wrote:
>
> Ammar Askar added the comment:
>
> Thank you for the report Matt!
>
> --
> nosy: +ammar2
> resolution: -> fixed
> stage: patch review -
New submission from Matt Ward :
The 3.8 documentation still includes the text.
```Note that in Python, unlike C, assignment cannot occur inside expressions. C
programmers may grumble about this, but it avoids a common class of problems
encountered in C programs: typing = in an expression
Change by Matt Joiner :
--
nosy: -anacrolix
___
Python tracker
<https://bugs.python.org/issue13322>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt added the comment:
I will close this issue and post in one of the two places you linked.
Thank you for your prompt reply and affirmation of my observations. I feel my
language was colored by frustration, yet you focused instead on my willingness
to help. I appreciate that and find
New submission from Matt :
* Problem:
Documentation search results favor tutorials and over language specifications
* How to reproduce:
I often forget simple syntax. For example, say I want to raise an exception.
Clearly, I need to search for "raise".
1. Go to https://docs.
New submission from Matt Christopher :
I've got a case where we mount a CIFS filesystem and then later the actual
backing filesystem is deleted (but the mount remains on the machine).
When running from a shell, this is the behavior which I see after the backing
CIFS filesystem has gone
New submission from Matt Martz :
The behavior of how SSL certificate validation is handled was changed in
https://bugs.python.org/issue31399
This introduced a new exception, ssl.SSLCertVerificationError, which is raised
for any certificate validation error, instead of the previous exception
Change by matt farrugia :
--
keywords: +patch
pull_requests: +12906
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36738>
___
___
Py
New submission from matt farrugia :
The json module allows a user to provide an `object_hook` function, which, if
provided, is called to transform the dict that is created as a result of
parsing a JSON Object.
It'd be nice if there was something analogous for JSON Arrays: an `array
New submission from Matt Houglum :
This is a follow-up to https://bugs.python.org/issue33365. The fix for that
issue (see https://github.com/python/cpython/pull/6611) added a statement to
also print header values, but it does not account for the case where multiple
values exist for the same
Change by Matt Joiner :
--
nosy: -anacrolix
___
Python tracker
<https://bugs.python.org/issue12822>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Wilber added the comment:
Inada-san, I think it's fair to ask for a broader vision about how ABCs are
used. In that respect I'm wondering about some inconsistencies in the existing
functools module about whether wrappers should maintain the wrapped function's
__isa
Matt Wilber added the comment:
To add some more context, the existing Python documentation is a little
misleading in this situation:
https://docs.python.org/3/library/abc.html#abc.abstractmethod
It shows that labeling a method with
@property
@abstractmethod
ought to be done in the order
Matt Wilber added the comment:
I agree, a comment can serve the same purpose. But for the same reasons it's
useful to express typing hints in Python with real syntax, and the reasons it's
useful to have the abc module in the first place, I think it is useful to be
able to a
Matt Wilber added the comment:
This allows a developer to add a @cached_property to a method with the
@abstractmethod decorator, without breaking the check for abstract methods on
ABC instantiation. That is, if you tried to instantiate an ABC with a method
that had a method decorated with
Change by Matt Wilber :
--
keywords: +patch
pull_requests: +9266
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34995>
___
___
Py
Change by Matt Wilber :
--
components: Library (Lib)
nosy: mwilbz
priority: normal
severity: normal
status: open
title: functools.cached_property does not maintain the wrapped method's
__isabstractmethod__
versions: Python 3.8
___
Python tr
Matt Tuttle added the comment:
Yep. You are right it is a firewall issue.
--
___
Python tracker
<https://bugs.python.org/issue34473>
___
___
Python-bugs-list m
Matt Tuttle added the comment:
Thanks Steve, you were right it is a firewall issue that impacted both pip and
conda simultaneously. ☹
--
___
Python tracker
<https://bugs.python.org/issue34
Matt Tuttle added the comment:
It was a firewall issue that affected pip and conda in the same way.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from Matt Tuttle :
Running pip install ANYTHING results in an SSL failure on Windows 10 1803
because SHA-1 certificates are untrusted.
--
components: Installation, Windows
messages: 323945
nosy: mtuttle, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
Matt Pruitt added the comment:
Also ran into this issue while building Python in an isolated environment.
Realized that libffi is installing into the $EPREFIX/lib64 directory of our
build environment.
Despite pkg-config returning the correct directory for linking libffi, it took
Matt Eaton added the comment:
Wanted to check in on this to see if there was any feedback on this topic?
--
___
Python tracker
<https://bugs.python.org/issue33
Matt Eaton added the comment:
Wanted to check in on this to see if there was any feedback by any community or
core members?
--
___
Python tracker
<https://bugs.python.org/issue33
Matt Eaton added the comment:
Adding some core team members to the nosy list to get their take on this as
well.
--
nosy: +berker.peksag, eric.smith
___
Python tracker
<https://bugs.python.org/issue33
Matt Eaton added the comment:
I was able to get some time together today and created a rough draft for the
idea that you had Berker on introducing a new API with more strict parsing
rules.
This will allow the ValueError to be raised when the URL is parsed rather than
when the computed
Matt Eaton added the comment:
I agree with you in regards to the statement, "Apache's redirect can be turned
off, whereas this can't." That is why my first thought would be to try and
control this response to the client a bit better by providing a variable
max-age.
sel
Matt Eaton added the comment:
It looks like the 301 redirect is in place to emulate the behavior that Apache
provides when it runs into a trailing slash. This is observed when this
condition is met:
parts = urllib.parse.urlsplit(self.path)
if not parts.path.endswith('/'):
Apache
Matt Eaton added the comment:
Oliver,
A possible option that would work for both the client side caching and the
server would be to pass back a Cache-Control header with a max-age attached
when the 301 is returned.
I am thinking something like this:
if os.path.isdir(path):
parts
1 - 100 of 595 matches
Mail list logo