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/
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.
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 :
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
New submission from Matt :
IDLE will not open; it does not give an error or even appear on the
process list.
I am using Windows XP on an IBM Thinkpad. I tried the prescribed
solution on Issue 4049, and it returned this message:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001
Changes by Matt :
--
nosy: +matthewjohn
___
Python tracker
<http://bugs.python.org/issue14102>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Matt :
--
components: +Library (Lib) -email
versions: +Python 3.5, Python 3.6
___
Python tracker
<http://bugs.python.org/issue17369>
___
___
Python-bug
Changes by Matt :
--
versions: -Python 3.5, Python 3.6
___
Python tracker
<http://bugs.python.org/issue17369>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Matt :
--
components: +email -Library (Lib)
versions: -Python 3.3, Python 3.4
___
Python tracker
<http://bugs.python.org/issue17369>
___
___
Python-bug
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
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
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 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
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
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
Change by Matt B :
--
resolution: not a bug ->
___
Python tracker
<https://bugs.python.org/issue46133>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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:
@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 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.
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:
Filed by request:
https://github.com/python/cpython/pull/26091#issuecomment-1024900261
--
___
Python tracker
<https://bugs.python.org/issue46
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:
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
&
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 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
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
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
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) may need to hook into the lifecycle of function objects to
determine what to optimize, invalidate previously-optimized functions, or free
resources allocated for
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
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 Chaput :
Currently the 'uuid' module uses os.urandom (in the absence of a system UUID
generation function) to generate random UUIDs in the uuid.uudi4() function.
This patch changes the implementation of uuid4() to use random.getrandbits() as
the source of
Matt Chaput added the comment:
Not sure if this is better as a separate feature request or a comment here,
but... the new version of .NET includes an option to specify a time limit on
evaluation of regexes (not sure if this is a feature in other regex libs). This
would be useful especially
Matt Chaput added the comment:
Passed all tests OK.
--
___
Python tracker
<http://bugs.python.org/issue12986>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue1887>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Matt Spear :
httplib with a debuglevel prints out the response headers, but does not do so
with CONNECT requests (when set_tunnel is used). Attached is a small patch to
print the reply when the CONNECT request returns something other than 200 OK.
I'm not sure if
New submission from Matt Joiner :
os.fstat doesn't not accept an object with the fileno() method.
Probably a bunch of other similar functions will not either.
In some parts of the standard library it's common practice to call
PyObject_AsFileDescriptor on fd-wrapping argume
Matt Joiner added the comment:
Also affects 3.3.
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue12684>
___
___
Python-bugs-list mailin
Changes by Matt Joiner :
--
resolution: -> works for me
status: open -> languishing
___
Python tracker
<http://bugs.python.org/issue12684>
___
___
Pyth
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue12822>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Mackall added the comment:
The underlying cause of Python's write exceptions with cp65001 is:
The ANSI C write() function as implemented by the Windows console returns the
number of _characters_ written rather than the number of _bytes_, which Python
reasonably interprets as a &
New submission from Matt Long :
The description of nesting list comprehensions in section 5.1.5 of the main
Python tutorial
(http://docs.python.org/tutorial/datastructures.html#nested-list-comprehensions)
is misleading at best and arguably incorrect. Where it says "To avoid
apprehension
New submission from Matt Joiner :
Patch attached
--
components: Library (Lib)
files: dispatcher_connect_addr.patch
keywords: patch
messages: 150449
nosy: anacrolix
priority: normal
severity: normal
status: open
title: asynchronous connect in asyncore.dispatcher does not set addr
type
Matt Joiner added the comment:
I don't believe it is. dispatcher.addr is only set if the connection is
immediately established. It's set explicitly in dispatcher.__init__ if a socket
is provided that is already connected. It's *not* set after a connection
completes.
There are
Matt Joiner added the comment:
Just ran into this bug myself with 3.2. Apparently this patch works:
http://groups.google.com/group/comp.lang.python/msg/bd8818ab9d4af8d7
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue9
Matt Joiner added the comment:
Attached a patch that fixes it, only the line numbers have changed from Martin
v. Loewis's patch. Used on 3.2.
--
Added file: http://bugs.python.org/file22360/fix-root-prefix.patch
___
Python tracker
Changes by Matt Joiner :
--
components: +Build, Library (Lib)
nosy: +alexis
type: behavior -> compile error
___
Python tracker
<http://bugs.python.org/iss
New submission from Matt Joiner :
_ctypes.dlopen is not including the errno when it raises OSError.
This occurs when attempting to load a library that doesn't exist, the error
string given is clearly generated from an ENOENT.
joiner@dbssyd800:~$ python3 dlopen_raise.py
None
somelib.so: c
New submission from Matt Joiner :
Given there is no ! operator in Python, I next tried ~ (despite that I'm after
a logical not). This came as a surprise:
>>> bool(~True)
True
>>> bool(~False)
True
>>> bool(~~False)
False
>>> ~True, ~~True, ~Fa
New submission from Matt Joiner :
The smptlib module's __main__ doesn't flush stdout when prompting:
sys.stdout.write(prompt + ": ")
return sys.stdin.readline().strip()
stdout is usually line buffered, and so running python3 smptlib.py doesn't
actua
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue4768>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Joiner added the comment:
What's the status of this bug? This is a very useful feature, I've had to use
and add bindings to monotonic times for numerous applications. Can it make it
into 3.3?
--
___
Python tracker
<http://bu
Matt Giuca added the comment:
There are still some inconsistencies in the documentation (in particular,
incorrectly using the word "string" to refer to a bytes object, which made
sense in Python 2 but not 3), which I fixed in my doc-only.patch file that's
coming up to its
Matt Joiner added the comment:
I get this on Linux with ^D
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue5505>
___
___
Python-bugs-list m
Matt Joiner added the comment:
Feel like a total noob: Where do I get the latest source? I can't find any
pre-release tarballs for 3.3, and the suggested py3k checkout doesn't work: $
hg clone http://hg.python.org/cpython#py3k py3k
abort: unknown revi
Matt Joiner added the comment:
This version is fixed for me:
$ ./python
Python 3.3.0a0 (default:7520f1bf0a81, Jul 18 2011, 17:12:12)
[GCC 4.1.2 20070115 (SUSE Linux)] on linux2
--
versions: +Python 3.2
___
Python tracker
<http://bugs.python.
New submission from Matt Joiner :
>>> a = subprocess.Popen(['cat', '/path/to/text.ini'], stdout=subprocess.PIPE,
>>> universal_newlines=True)
>>> b = configparser.ConfigParser()
>>> b.read_file(a.stdout)
Traceback (most recent call last)
Matt Basta added the comment:
The number of problems produced by this bug can be greatly reduced by adding a
relatively small check to the parser. Currently,
Matt Basta added the comment:
> So I think the example is invalid (should escape the <), and that HTMLParser
> is not buggy.
On the other hand, the HTML5 spec clearly dictates otherwise:
http://www.w3.org/TR/html5/syntax.html#cdata-rcdata-restrictions
The text in raw text and RCDATA
Matt Basta added the comment:
> Yes, but we don't claim to support HTML5 yet.
There's also no claim in the docs or the source that HTMLParser specifically
adheres to HTML4, either.
Ideally, the parser should strive for parity with the functionality of major
web browsers, as th
Matt Basta added the comment:
Seeing as everyone seems pretty satisfied with the 2.7 version, I'd be happy to
put together a patch for 3 as well.
To confirm, though, this fix is NOT going behind the strict parameter, correct?
--
___
Python tr
New submission from Matt Joiner :
>>> from threading import *
>>> ThreadError
Traceback (most recent call last):
File "", line 1, in
NameError: name 'ThreadError' is not defined
--
components: Library (Lib)
files: export-thread-error.patch
New submission from Matt Joiner :
Here's a patch that fixes it.
--
components: Library (Lib)
files: exception-in-profile.patch
keywords: patch
messages: 141591
nosy: anacrolix
priority: normal
severity: normal
status: open
title: profile does not dump stats on exception like cPr
Matt Joiner added the comment:
Should I just submit a patch for this myself? Can someone confirm the behaviour
is incorrect so I don't waste time fixing it?
--
___
Python tracker
<http://bugs.python.org/is
Matt Joiner added the comment:
I didn't notice there was no use of errno. It's quite possible that dlopen
might be used without the C library present, so perhaps this is why it wasn't
included. The error strings however are very C-like, which made me think of
this in the firs
Changes by Matt M :
--
nosy: +numbernine
___
Python tracker
<http://bugs.python.org/issue8713>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
Matt Joiner added the comment:
Why can't pipes.quote can't be moved to shlex.quote verbatim as I originally
proposed?
Is there justification to also change it as part of the relocation? I think any
changes to its behaviour should be a sepa
New submission from Matt Joiner :
The uuid.uuid4 function is not tested if a C system routine is not present,
despite that uuid4 has several fallback clauses. This patch will test at least
the first fallback.
--
components: Library (Lib)
files: uuid4-test-no-system-routine
New submission from Matt Chaput :
Several times in the recent past I've wished for the following methods on the
regular expression object. These would allow me to speed up search and parsing
code, by limiting the number of regex matches I need to try.
literal_prefix(): Returns any li
Matt Chaput added the comment:
Ezio, no offense, but I think it's safe to say you've completely misunderstood
this bug. It is not about "explaining what a regex matches" or optimizing the
regex. Read the last sentences of the two paragraphs explaining the proposed
metho
Matt Chaput added the comment:
Yes, it's an optimization of my code, not the regex, as I said. Believe me,
it's not premature. I've listed two general use cases for the two methods. To
me it seems obvious that having to test a large number of regexes against a
string, and h
New submission from Matt Bond :
As part of my GSoC project working on 2to3, I've created a script which will
allow compiled fixer patterns to be visualized using graphviz. This would be
useful for debugging and understanding exactly how patterns are matched. I've
written usin
Matt Kraai added the comment:
I don't know the gzip format well enough, but I was hoping that it would be
possible to iterate through the lines of a gzip-compressed stream without
having to use any of the functions that would require seeking.
--
nosy: +
Matt Bond added the comment:
Éric,
When I was working with 2to3 this summer I was running it via python3, so I
think the patch should work - however, if I've submitted it to the wrong place
or the wrong branch, where should I be looking at to ensure my code does work
on 3.2 and is subm
Matt Bond added the comment:
As requested, attached is the output for the fix_buffer fixer, as an example of
the kind of output this patch can produce.
--
Added file: http://bugs.python.org/file18968/fix_buf_pytree_1.png
___
Python tracker
<h
Matt Bond added the comment:
Huh. I must have diffed the wrong version of my code - how embarrassing!
I'll update the attached patch later this week. Thanks for catching that.
--
___
Python tracker
<http://bugs.python.org/i
Matt Keeler added the comment:
Python 2.7 docs say this was added in 2.7.3.1
Python 3.1 docs say this was added in 3.1
The problem with calling 're.split(pattern, string, re.I)' is that you are
using positional arguments only. If you were to do 're.split(pattern, string,
fla
New submission from Matt Johnston :
When opening mailboxes the module checks for errno.EACCES. This doesn't help if
the location is mounted read-only. Something like the following (against Python
2.6) would fix it, there are a few other checks in mailbox.py for EACCES too.
--- mailbox.py
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue5421>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Joiner added the comment:
This bug is very misleading in Py3, as the TypeError makes one think that a
string is being passed rather than bytes (how else do you get a 2 argument
function call wrong?). Very difficult to determine that this is not in fact the
bug in a dynamically typed
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue3136>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue3831>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Joiner added the comment:
I look forward to this, or something similar. Inspiration can be taken from
Golangs's select behaviour on channels.
select {
case i1 = <-c1:
print("received ", i1, " from c1\n")
case c2 <- i2:
print(&q
Matt Goodman added the comment:
You can not pickle individual objects larger than 2**31. This failure is not
handled cleanly in the core module, and I suspect masked by above processes.
Try piping "a"*(2**31) through you pipe, or pickling it to disk . . .
--
nosy: +Ma
Matt Bond added the comment:
Sorry for the delay in responding, and for getting this patch cleaned up and
submitted.
While I was going through my code to submit it, I found a couple of additional
issues with it. Then I ended up becoming very busy with my grad courses. As a
result, I haven
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue4761>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Matt Selsky :
--
nosy: +Matt.Selsky
___
Python tracker
<http://bugs.python.org/issue9742>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Giuca added the comment:
> I think that we have good reasons to not remove the NUL character.
Please note: Nobody is suggesting that we remove the NUL character. I was
merely suggesting that we don't rely on it where it is unnecessary.
Returning to my original patch: If the
Matt Chaput added the comment:
This is an important feature to me. Now I get to redo a bunch of code to have
two completely different code paths to do the same thing because nobody could
be bothered to keep array up-to-date.
--
nosy: +mattchaput
Matt Joiner added the comment:
This is sorely needed. IMO the current behaviour of time.clock works for
Windows, and clock_gettime(CLOCK_MONOTONIC) on POSIX or
clock_gettime(CLOCK_MONOTONIC_RAW) on Linux>=2.6.28.
There are some related discussions on StackOverflow that may contain use
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue2987>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Joiner added the comment:
I agree, I discovered this function (pipes.quote) only through recommendation
here:
http://stackoverflow.com/questions/4748344/whats-the-reverse-of-shlex-split
I suggest that it be added to shlex, perhaps as shlex.quote. While the quoting
style it performs
Matt Joiner added the comment:
Two reasons: The pipes module is Unix only, but pipes.quote is useful on all
platforms. Secondly pipes.quote pertains to shell command-lines, this is also
the domain of shlex which already cross platform. In pipes, an import
shlex.quote would more than
Matt Joiner added the comment:
I notice Linux is described as not taking count=0 to mean to send until the end
of "in" is reached. Is it possible to pass (size_t)-1 to this field if None is
given, or do a loop on non-zero counts from sendfile to emulate this?
I poked around the li
Matt Joiner added the comment:
I have a few problems with these parts of the latest patch:
+ The second case may be used on Mac OS X and FreeBSD where *headers*
+ and *trailers* are arbitrary sequences of buffers that are written before
and
+ after the data from *in* is written. It
Matt Joiner added the comment:
Thanks for catching that:
Presently (Linux 2.6.9): in_fd, must correspond to a file which sup‐
ports mmap(2)-like operations (i.e., it cannot be a socket); and out_fd
must refer to a socket.
Despite the fact the manpage hasn't changed since
Matt Cain added the comment:
I re-wrote encode() to be simpler and faster.
My version runs about 10 times faster on a 30KB message.
I have tested it somewhat but not rigorously
see attached patch
--
keywords: +patch
nosy: +cainmatt
Added file: http://bugs.python.org/file20635
New submission from Matt Chaput :
If you start unit tests with a command line such as "python setup.py test" or
"nosetests", if the tested code starts a multiprocessing.Process on Windows,
each new process will act as if it was started as "python setup.py
test&qu
Matt Chaput added the comment:
Thank you, I understand all that, but I don't think you understand the issue.
My code is not __main__. I am not starting the test suite. It's the
distutils/nose code that's doing that.
It seems as if the multiprocessing module is starting new Wi
1 - 100 of 595 matches
Mail list logo