Matt Giuca added the comment:
Oh, I just discovered that urlparse contains a copy of unquote, which will also
need to be patched. I've submitted a patch to remove the duplicate (#8143) --
if that is accepted first then there's no need to worr
Matt Giuca added the comment:
Oh, I just discovered that urlparse contains a copy of unquote, which will also
need to be patched. I've submitted a patch to remove the duplicate (#8143) --
if that is accepted first then there's no need to worr
Matt Giuca added the comment:
I thought more about it, and wrote a different patch which doesn't remove the
dictionary. I just replaced the dictionary creation code -- now it includes
keys for all combinations of upper and lower case (for two-letter hex codes).
This dictionary isn
Changes by Matt Giuca :
Removed file: http://bugs.python.org/file16551/urllib-unquote-mixcase.patch2
___
Python tracker
<http://bugs.python.org/issue8135>
___
___
Pytho
Matt Giuca added the comment:
Tiny fix to patch2 -- replaced list comprehension with generator expression in
dictionary construction.
--
Added file: http://bugs.python.org/file16552/urllib-unquote-mixcase.patch2
___
Python tracker
<h
Matt Giuca added the comment:
If this patch is rejected, then at the very least, the urllib.unquote function
needs a comment at the top explaining that it is duplicated in urlparse, so any
changes should be made to both.
Note that urlparse.unquote is not a documented function, or in the
Matt Giuca added the comment:
Thanks very much. Importantly, note that unquote is currently duplicated
between urllib and urlparse. I have a bug on it (#8143) but in the meantime,
you will have to commit this fix to both modules.
--
___
Python
Matt Giuca added the comment:
What about the alternative (newmodule) patch? That doesn't have threading
issues, or break backwards compatibility.
--
___
Python tracker
<http://bugs.python.org/i
New submission from Matt B :
>>> import _tkinter
Traceback (most recent call last):
File "", line 1, in
ImportError: DLL load failed: %1 is not a valid Win32 application.
I 'upgraded' to python 2.6.5 by downloading the windows 64 bit installer. I'm
run
Matt Bond added the comment:
I've attached a patch that fixes this particular idiom as well as a problem
with the handling of bare 'print' statements. It also includes updated tests
for these issues.
--
keywords: +patch
nosy: +zxaos
Added file: http://bugs.pytho
Changes by Matt Wartell :
--
nosy: +Matt.Wartell
___
Python tracker
<http://bugs.python.org/issue8562>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Matt Wartell :
As the bz2.BZ2File object claims to be a file-like object it should conform to
PEP 343 "The 'with' statement" by implementation of the __enter__ and __exit__
methods.
boring, substantiating detail follows:
$ uname -a
Linux tallguy 2
New submission from Matt Wartell :
This is related to http://bugs.python.org/issue8601 "bz2.BZ2File should support
"with" protocol per PEP 343"
The documentation at http://docs.python.org/library/bz2.html states:
"This module provides a comprehensive interfac
Matt Wartell added the comment:
cross referenced with documentation issue http://bugs.python.org/issue8602
"documentation of bz2 module mildly erroneous"
--
___
Python tracker
<http://bugs.python.
Matt Wartell added the comment:
Sorry for the dup, and thanks for the patch.
My patch for Module/bz2module.c was almost done - I learned a lot in the
process, but foremost to check better for dups, first ;)
--
___
Python tracker
<h
Matt Wartell added the comment:
Per request, I have attached a context diff for both bz2.txt and 3.0.txt
suitable for http://docs.python.org/library/bz2.html and
http://docs.python.org/release/3.0.1/whatsnew/3.0.html respectively.
The modification in bz2.txt may border on redundant and
Matt Kraai added the comment:
I'm willing to maintain the QNX 6 port, but I can't promise that I'll be
able to do so for 5 years. I don't know if that's sufficient or not.
_
Tracker <[EMAIL PROTECTED]>
<h
Matt Kraai added the comment:
I'm not interested in QNX 4, as that's not what I use. I'd be willing
to supporting threads on QNX 6.
--
title: Build on QNX -> Build on QNX 6
_
Tracker <[EMAIL PROTECTED]>
<http://b
Matt Kraai added the comment:
If they're defined, TCGETA, TCSETA, TCSETAW, and TCSETAF are used on
lines 702, 714, 717, and 720 of Modules/termios.c as of r60219. They
are defined by sys/ioctl.h as
#define TCGETA _IOR('T', 1, struct termio)
#define TCSETA
Matt Kraai added the comment:
This patch contains two improvements over the previous version:
* it uses configure to check whether sys/termio.h is available and uses
the result to determine whether to include it and
* it makes malloc_closure.c use _SC_PAGESIZE instead of getpagesize if
it
Matt Kraai added the comment:
Regarding the curses issue, I removed that portion of the patch and the
curses module still compiled. It must have been an artifact from before
I disabled _XOPEN_SOURCE. Thanks for catching that.
Regarding the stack size, without the "-N 2048K" option,
New submission from Matt Chaput:
Add a module to the standard library containing fast (C) implementations
of common text/language related algorithms, to begin specifically Porter
(and perhaps other) stemming and Levenshtein (and perhaps other) edit
distance. Both these algorithms are useful
Matt Chaput added the comment:
The Porter stemming and Levenshtein edit-distance algorithms are not
"fast-moving" nor are they fusion reactors... they've been around
forever, and are simple to implement, but are still useful in various
common scenarios. I'd say this
New submission from Matt Harden <[EMAIL PROTECTED]>:
In the method scheduler.run in the sched module, heapq.heappush is
called with single argument (event). It's a two argument function. The
correct call would be heapq.heappush(q, event).
This problem is probably not frequently
New submission from Matt Johnston <[EMAIL PROTECTED]>:
The email module example has "s.close()", while the smtplib docs say to
use .quit()
The latter is probably correct?
--
assignee: georg.brandl
components: Documentation
messages: 75354
nosy: georg.brandl, matt
Matt Johnston <[EMAIL PROTECTED]> added the comment:
Another problem with that example - the .connect() isn't required and
causes the SMTP session to fail to send anything and time out.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
New submission from Matt Kraai <[EMAIL PROTECTED]>:
When I try to build Python 3.0 on QNX 6.3.2, the build has the following
error:
gcc -c -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
-I. -IInclude -I./Include -DPy_BUILD_CORE -o Python/pythonrun.o
Python/pytho
New submission from Matt McClure :
The function trace.CoverageResults.write_results() can't write coverage
results on Windows for modules loaded by using the __path__ feature of
PEP 302.
For example, Bazaar uses the __path__ feature to load plugins from
directories specified b
Matt McClure added the comment:
The attached patch replaces the offending colon with a period.
--
keywords: +patch
Added file: http://bugs.python.org/file12735/tracebug.patch
___
Python tracker
<http://bugs.python.org/issue4
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 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 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 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 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
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
Change by Matt Joiner :
--
nosy: -anacrolix
___
Python tracker
<https://bugs.python.org/issue13322>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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 -
Matt Billenstein added the comment:
I don't see that error message - where are you seeing it?
--
___
Python tracker
<https://bugs.python.org/issue43572>
___
___
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:
Ah, word, was looking at stdout -- 256 is pretty low, raised it to 200k...
--
___
Python tracker
<https://bugs.python.org/issue43
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 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 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 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:
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, 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:
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:
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 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
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 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
_
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 Bogosian added the comment:
Thanks! Where's that documented? (Apologies if I missed it.)
--
___
Python tracker
<https://bugs.python.org/issue40346>
___
___
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 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:
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:
> "!value" or "!!value" also has the issue if I understood correctly.
No, just as "value != 0" is an int, so is "!value".
--
___
Python t
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:
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
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
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:
> 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 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 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
Change by Matt Kokotovich :
--
nosy: +mkokotovich
___
Python tracker
<https://bugs.python.org/issue39082>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
pull_requests: +17573
pull_request: https://github.com/python/cpython/pull/18190
___
Python tracker
<https://bugs.python.org/issue39
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 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
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 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 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
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
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
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
Change by Matt Joiner :
Added file: https://bugs.python.org/file49423/hex.py
___
Python tracker
<https://bugs.python.org/issue41564>
___
___
Python-bugs-list mailin
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"
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
New submission from Matt Joiner :
The navigation region at http://docs.python.org/dev/ should list "Other
versions" instead of "Old versions" as the in development docs are also
available here.
Docs for other versions
Python 2.7 (stable)
Python 3.2 (stable)
Old
New submission from Matt Joiner :
Frequently when profiling multiple threads, I need to combine several dump stat
files. Currently -m pstats reads the profiling data at only the first path
given. It should merge all the profiling data from all the paths given.
$ python3.3 -m pstats prof/5506
Changes by Matt Joiner :
--
resolution: works for me ->
status: languishing -> open
versions: +Python 3.4
___
Python tracker
<http://bugs.python.org/i
New submission from Matt Joiner :
_io._IOBase.readline doesn't seem to like _io.FileIO.read returning None, which
occurs when it's unbuffered and nonblocking. (Modules/_io/fileio.c:745 in
trunk). Can this be handled some other way?
$ python3.3
Python 3.3.0a0 (default:fb0f4fe8123
Matt Joiner added the comment:
The patches only fix write? What about read?
http://bugs.python.org/issue13858
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue13
New submission from Matt Joiner :
There's a lingering StandardError referenced in the logging module.
StandardError was removed in Python 3, and execution across this code path
generates a NameError:
File "/home/matt/src/cpython/Lib/logging/__init__.py", line 291, in __in
Matt Joiner added the comment:
Interesting this also occurs in 3.2 and 2.7, but not 2.6 or 3.1. It's probably
not an error in 2.x tho.
--
versions: +Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/is
Matt Joiner added the comment:
Cheers, thanks for the fast turn around.
--
___
Python tracker
<http://bugs.python.org/issue13859>
___
___
Python-bugs-list mailin
New submission from Matt Joiner :
socket.socket.detach doesn't mark the socket._closed flag. The flag is specific
to the Python wrapper, so the fix is put there. Test included.
--
components: Library (Lib)
files: socket-detach-mark-closed.patch
keywords: patch
messages: 152005
New submission from Matt Joiner :
_threading.RLock is optional, and threading._CRLock is set to None if it isn't
available. If this happens, the test_threading unittests crash.
Some implementations don't provide _thread.RLock.
Patch attached.
--
components: Library (Lib)
f
Matt Joiner added the comment:
Please also expose sched_getcpu().
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue12655>
___
___
Python-bug
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue14003>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Matt Joiner :
There is no Barrier in multiprocessing corresponding to threading.Barrier.
--
components: Library (Lib)
messages: 153744
nosy: anacrolix
priority: normal
severity: normal
status: open
title: Implement multiprocessing.Barrier
type: enhancement
versions
New submission from Matt Joiner :
>From the mailing list, there is some interest in a CSP-style channel.
>http://mail.python.org/pipermail/python-ideas/2012-February/014073.html
--
components: Library (Lib)
messages: 153748
nosy: anacrolix
priority: normal
severity: normal
status
Matt Joiner added the comment:
As I see it, here are the desirable features of CSP-style concurrency as it
pertains to channels:
1) At least an unbuffered mode
2) Can be marked closed
3) Block on multiple send/receives until one can proceed
Specifically features 1 and 2 could be bolted onto
Matt Joiner added the comment:
Can we get this exposed as an os.accept4, and an optional flags parameter to
socket.socket.accept?
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue10
New submission from Matt Joiner :
If an argument of '-' is handled by argparse.FileType, it defaults to
sys.stdin. However a mode of 'rb' is ignored, the returned file object does not
work with raw bytes.
--
components: Library (Lib)
messages: 154612
nosy: anacro
New submission from Matt Mullins :
As logs were rotated at midnight this morning (at the end of the day
2012-03-11), we detected that the logs were incorrectly renamed to
*.log.2012-03-10, causing logs from Saturday to be overwritten. I believe this
bug is related to the transition to
Matt Joiner added the comment:
Roger that. I'll start on a patch for this in a month or two if all goes well.
--
___
Python tracker
<http://bugs.python.org/is
Changes by Matt Joiner :
--
nosy: +anacrolix
___
Python tracker
<http://bugs.python.org/issue14222>
___
___
Python-bugs-list mailing list
Unsubscribe:
Matt Joiner added the comment:
Jim the code was lifted verbatim from Lib/cProfile.py, line 47.
That code in cProfile.py has not changed since 2006 when it was committed by
Armin Rigo.
I can modernize it if it's a requirement to get it committed, but I'm also okay
with my conserva
201 - 300 of 595 matches
Mail list logo