New submission from Ben :
When installing a package using --editable, pip creates a .egg-link file in
your site-packages dir that points to the .egg-info metadata that by default
exists along side the source that it was installed from. This worked just fine
with the older pkg_resources
Ben added the comment:
I should also add that the easy-install.pth file, which similarly contains a
link to the source dir containing the .egg-info metadata, is also not processed
to locate the necessary metadata.
--
___
Python tracker
<ht
Ben added the comment:
yes, the latest version of pip creates an .egg-info metadata dir at the level
of the package src dir and .egg-link and easy-install.pth stubs in the
site-packages dir (the contents of which are paths to the package src dir). The
intent is that these links would be
Ben added the comment:
https://github.com/python/importlib_metadata/issues/364
--
resolution: -> works for me
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Ben :
--
nosy: +bjs
nosy_count: 6.0 -> 7.0
pull_requests: +29450
pull_request: https://github.com/python/cpython/pull/31290
___
Python tracker
<https://bugs.python.org/issu
Ben added the comment:
This is a duplicate of https://bugs.python.org/issue45274
but the patch there did not fix it
I've just added a PR there (or should it go here?) that (i think) fixes this.
The issue is that the lock.locked() call just checks that *someone* has the
lock, not tha
Change by Ben :
--
nosy: +vstinner
___
Python tracker
<https://bugs.python.org/issue46726>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Ben added the comment:
You are right,
What one really needs here is a way to know *who* owns the lock,
but threading.Lock does not provide that.
The race on := is much smaller than the original race and I suspect in practice
will be very hard to hit.
As the original bpo notes, it may not
Change by Ben :
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46726>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from ben :
AttributeErrors on log.py in the distutils directory
import sys
stream = sys.stdout
if stream.errors == 'strict': pass'=> this will raise an AttributeError'
--
assignee: tarek
components: Distutils
files: log.py
messages: 143949
nosy:
ben added the comment:
Error had been raised when installing the distribute package, but it could be
raised on any other usage as sys.stdout does not have an 'error' attribute.
From: Éric Araujo
To: thelen_...@yahoo.com
Sent: Tuesday, 13 September 2011 8:54 PM
Subject: [
ben added the comment:
Hi Eric,
I'm not suggesting that python does not test the applications. just reporting
what I experience.
The python version installed is r32:88445
What I did, I opened the setup file (in IDLE) from the distribute 0.6.21 and
run this.
On my python 3.2 ve
ben added the comment:
Hi Ned,
Not sure if I fully understand the IDLE issue, I'm still learning Python (abt.
6 months). Nevertheless I've installed the distributes through the command line.
if you want to reassign this issue to IDLE, please do so.
Best regards,
Ben Thelen
New submission from ben :
print function unable while multiprocessing.Process is being run
Not sure if this really is a bug, but the multiprocessing.Process (or Pool)
does not allow to print during multiprocessing tasks.
I've copied the example from The Python V3.2.2 documentation, li
ben added the comment:
Thanks Terry,
That does solve the problem, so the bug is really with IDLE (I got a previous
Issue (12967) reported which also was connected to the stdout).
I changed the component to IDLE as the lib. is working as it should do.
--
components: +IDLE -Library
Ben added the comment:
Sorry to chime in on an old issue. Whilst it is good to have the ability to
format the string up to microsecond precision, it would be better to be able to
control the precision used.
For instance, the ISO8601 specification states that there is no strictly
defined
Ben added the comment:
I can reproduce on 3.9.6
A little digging and it seems asyncio imports Task from _asyncio
and _asyncio's implementation (in asynciomodule.c) of Task has an __init__
which adds the task to the `all_tasks` weakref.WeakSet
which appears to be implemented in Python (i
New submission from Ben :
This is a very subtle race
WeakSet uses _weakrefset.py's _IterationGuard structure to protect against the
case where the elements the WeakSet refers to get cleaned up while a thread is
iterating over the WeakSet.
It defers the actual removal of any elements
Ben added the comment:
This seems to be present in both the Python implementation as well as the
accelerated C _asyncio module.
It looks like that when a Task awaits a cancelled future,
the task itself is cancelled but the cancellation message is not propagated to
the task.
https
Ben added the comment:
The problem with the FAQs is that it's over-simplifying things to the point
where it can sometimes mislead.
Notably, it says the GIL protects these operations; but as Antoine points out,
many operations on datatypes drop back into Python (including potential de
New submission from Ben :
First, I am not a programmer by any stretch of the imagination, and I am just
trying to get this error solved.
I attempted to highlight and comment out a section of code, maybe 20 lines, and
the program froze, greyed out, and gave me a spinning wheel mouse.
I
Change by Ben :
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue45951>
___
___
P
New submission from Ben :
The Multiprocessing docs specifically say that Queue is process- and thread-
safe:
https://docs.python.org/3/library/multiprocessing.html#exchanging-objects-between-processes.
But this information is not given for the various synchronisation primitives
and such
Change by Ben :
--
nosy: +bjs
___
Python tracker
<https://bugs.python.org/issue41423>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
Change by Ben :
--
nosy: +bjs, vstinner
___
Python tracker
<https://bugs.python.org/issue41676>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ben added the comment:
looking at the source
https://raw.githubusercontent.com/python/cpython/3.8/Doc/library/asyncio-sync.rst
it says :meth:`wait` just like the surrounding methods and surrounding
types, which all work.
Maybe :meth:`Event.wait` would fix? But why :meth:`wait` didn
Ben added the comment:
See the note in
https://docs.python.org/3.7/reference/compound_stmts.html#the-for-statement
"There is a subtlety when the sequence is being modified by the loop ..."
Since your code is mutating the all_fields list as you iterate it, you get
the " ne
New submission from Ben :
When running the attached on 3.8 and 3.9 (master) I get the following:
Process Process-3:
Traceback (most recent call last):
File
"/hom
Ben added the comment:
It would be nice to get davin to clarify the API for this module.
What are the use cases for SharedMemory and ShareableList?
Are you supposed to ever use a raw SharedMemory buffer directly?
What atomicity guarantees are there for ShareableList operations and read/write
Ben added the comment:
Still a problem with python-2.7.10.amd64.msi. A bit surprising that this has
not been addressed since 2015.05.23...
--
nosy: +cbj4074
___
Python tracker
<http://bugs.python.org/issue25
Ben Steffensmeier added the comment:
We have been seeing intermittent crashes on jep that we tracked down to the
same change (d0d29655ff).
I have created a sample program using _testcapi that crashes about 50% of the
time when run on Windows with Python 3.9.9. We have not been able to
New submission from Ben Kehoe :
Currently, the only thing that can be done with a string.Template instance and
a mapping is either attempt to substitute with substitute() and catch a
KeyError if some identifier has not been provided in the mapping, or substitute
with safe_substitute() and
Ben Kehoe added the comment:
Happy to make a PR! In my mind I had been thinking it would be the
get_identifiers() method with the implementation above, returning a list.
As for __iter__, I'm less clear on what that would look like:
t = string.Template(...)
for identifier in t:
#
Change by Ben Kehoe :
--
keywords: +patch
pull_requests: +28698
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30493
___
Python tracker
<https://bugs.python.org/issu
Ben Kehoe added the comment:
I opened a PR. By default, it raises an exception if there's an invalid
identifier; there's a keyword argument raise_on_invalid to control that.
The implementation I have adds them to a set first, which means the order is
not guaranteed. I'm of
Ben Kehoe added the comment:
Having slept on it, I realized that if I was presenting interactive prompts for
a template, I would expect the prompts to be in order that the identifiers
appear in the template. Accordingly, I've updated the PR to maintain ord
Ben Kehoe added the comment:
The point is to be able to programmatically determine what is needed for a
successful substitute() call. A basic use case for this is better error
messages; calling substitute() with an incomplete mapping will tell you
only the first missing identifier it encounters
Ben Kehoe added the comment:
That doesn’t really seem like a Pythonic way of extracting that
information? Nor does it seem like it would be an obvious trick for the
average developer to come up with. A method that provides the information
directly seems useful
Ben Avrahami added the comment:
IMHO, I don't think any alternative to aviramha's solution addresses the issue,
And I don't think the need is niche enough to be ignored.
PyType_HasFeature excludes strings, bytes, and other esoteric types.
PyMapping_Check includes mapping
Ben Darnell added the comment:
> To be clear, by "cancel" you are not talking about Future.cancel(). Rather,
> your handler causes all running tasks to finish (by sending a special message
> on the socket corresponding to each running task). Is that right?
Correct. My t
Ben Griffin added the comment:
This is still being ignored.
It's a bug, because it prevents the ini file from being used by other clients.
--
versions: +Python 3.10, Python 3.11, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.py
Ben Beasley added the comment:
I ran Richard Christen's script from msg55784 on Ubuntu Feisty Fawn
(64-bit) with both Python 2.5.1 and Python 3.0a1 (for the latter, I had
to change xrange to range).
(2, 5, 1, 'final', 0)
2007-09-11 11:39:08
(500, 7.392560005187
Ben Beasley added the comment:
See the BDFL's comment in msg55828. "I know Py3k text I/O is very slow;
it's written in Python and uses UTF-8
as the default encoding. We've got a summer of code student working on
an accelerating this. (And if he doesn't finish we have a
New submission from Ben Sherman:
"""
If, a little later on, "-tracks=4" is seen, it does:
options.tracks.append(int("4"))
"""
That should read --tracks=4, not -tracks=4
Found at
http://docs.python.org/lib/optparse-standard-option-actions.h
Ben Sherman added the comment:
Typos corrected.
--
title: type in docutmentatio section 14.3.3.4 -> type in docutmentation - lib
ref section 14.3.3.4
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Ben Sherman added the comment:
There were typos in my original bug report - the typo in the
documentation is still a bug. Ugh, someone must have brewed decaf.
--
title: type in docutmentation - lib ref section 14.3.3.4 -> typo in
documentation - lib ref section 14.3.
New submission from Ben Gamari :
The distutils.LooseVersion constructor currently only calls parse if vstring
has a value. Unfortunately, this means that a user passing in vstring="" or
vstring=None gets a version object with self.vstring and self.version unset.
This wreaks havoc
Changes by Ben Gamari :
Added file: http://bugs.python.org/file23253/distutils-workaround.patch
___
Python tracker
<http://bugs.python.org/issue13055>
___
___
Python-bug
Changes by Ben Gamari :
--
assignee: -> tarek
components: +Distutils
nosy: +eric.araujo, tarek
type: -> crash
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/i
Ben Hayden added the comment:
I added in docs for the method from the actual method docstring from the
http.client module.
--
keywords: +patch
nosy: +beardedp
Added file: http://bugs.python.org/file23290/issue13073.patch
___
Python tracker
<h
New submission from Ben Bass :
The new SIGINT behaviour of pdb.Pdb prevents use of pdb within a non-main
thread without explicitly setting nosigint=True. Specifically the 'continue'
command causes a traceback as follows:
{{{
...
File
"/Library/Frameworks/Python.framework/V
Changes by Ben Bass :
--
title: Default nosigint optionto pdb.Pdb() prevents use in non-main thread ->
Default nosigint option to pdb.Pdb() prevents use in non-main thread
___
Python tracker
<http://bugs.python.org/issu
Ben Gamari added the comment:
The bug was encountered while trying to install a package. As it turns out, a
dependency was incorrectly installed, resulting in a null version being passed
around which quickly caused a crash in setup.py. While this is definitely not a
normal circumstance, the
Ben Gamari added the comment:
Sorry, no log is available.
--
___
Python tracker
<http://bugs.python.org/issue13055>
___
___
Python-bugs-list mailing list
Unsub
Ben Wolfson added the comment:
I just noticed that the patch labelled strformat-as-document is actually the
same as the other one, owing to my incompetence. Anyway, as far as I can tell
the patches would have to be reworked in the light of recent changes anyway. I
am willing to do this if
Ben Wolfson added the comment:
"All three patches look different to me."
Yeah, I verified that later; I'm not sure what made me think otherwise except
that I eyeballed them sloppily. (It's still true that they'd need to target a
d
New submission from Ben Darnell :
The ssl module docs claim that the default ssl_version for client-side
operation is SSLv3, but it is actually SSLv23. The exact behavior depends on
the version of openssl: starting in 1.0 the connection is limited by default
to SSLv3 or TLSv1 (as documented
Ben Darnell added the comment:
Not necessarily. If I want to run python 2.7 or 3.x on an older linux
distribution (e.g. Ubuntu 10.04 LTS, which has python 2.6 and openssl 0.9.8), I
need to build from source, but I wouldn't think to update/rebuild all the
dependencies from the grou
Ben Wolfson added the comment:
Hm. As I interpret this:
The str.format() function will have
a minimalist parser which only attempts to figure out when it is
"done" with an identifier (by finding a '.' or a ']', or '}',
etc.).
The present
Ben Wolfson added the comment:
"""
PEP 3101 defines format strings as intermingled character data and markup.
Markup defines replacement fields and is delimited by braces. Only after markup
is extracted does the PEP talk about interpreting the contents of the markup.
So, given
Ben Wolfson added the comment:
str.format doesn't intermingle character data and markup. The PEP is quite
clear about the terms in this case, at least: the *argument* to str.format
consists of character data (passed through unchanged) and markup (processed).
That's what it means t
Ben Wolfson added the comment:
"""
>From the PEP: "Format strings consist of intermingled character data and
>markup."
"""
I know. Here is an example of a format string:
"hello, {0}"
Here is the character data from that format stri
New submission from Ben Ranker :
TextTestResult.__init__(...) calls super(TextTestResult, self).__init__() with
no args. If a custom TextTestResult descendant has a complex inheritance
hierarchy that puts another class between TextTestResult and TestResult in the
__mro__, then that class
Ben Ranker added the comment:
Sorry for any confusion caused by my imprecise use of the word "explodes."
--
___
Python tracker
<http://bugs.python.o
Ben Wolfson added the comment:
This patch differs from the previous one; its goal is to bring the actual
behavior of the interpreter into line with the documentation (with the
exception of using only decimal integers, rather than any integers, wherever
the documentation for str.format
Ben Wolfson added the comment:
And here is a patch for Greg Ewing's proposal:
http://mail.python.org/pipermail/python-dev/2011-June/111934.html
Again, decimal integers rather than any kind of integers are used.
Both patches alter the exceptions expected in various places in test_unic
Ben Wolfson added the comment:
undo integer -> decimalinteger in docs
--
Added file: http://bugs.python.org/file22601/strformat-as-documented.diff
___
Python tracker
<http://bugs.python.org/issu
Changes by Ben Wolfson :
Removed file: http://bugs.python.org/file22598/strformat-as-documented.diff
___
Python tracker
<http://bugs.python.org/issue12014>
___
___
Pytho
Ben Wolfson added the comment:
(same as previous)
--
Added file:
http://bugs.python.org/file22602/strformat-just-identifiers-please.diff
___
Python tracker
<http://bugs.python.org/issue12
Changes by Ben Wolfson :
Removed file:
http://bugs.python.org/file22599/strformat-just-identifiers-please.diff
___
Python tracker
<http://bugs.python.org/issue12
New submission from Ben Darnell :
cgi.parse_header doesn't work on headers that contain combinations of double
quotes and semicolons (although it works with either type of character
individually).
>>> cgi.parse_header('form-data; name="files"; filename="
Ben Darnell added the comment:
These functions are used when passing a socket object across a
multiprocessing.Queue.
--
___
Python tracker
<http://bugs.python.org/issue11
Ben Hayden added the comment:
I made the suggested second change - both in the docs & the socketmodule.c
file. If there's a different way to patch documentation, someone let me know. :D
--
keywords: +patch
nosy: +beardedp
Added file: http://bugs.python.org/file22896/issue12
Changes by Ben Finney :
--
nosy: +bignose
___
Python tracker
<http://bugs.python.org/issue12750>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ben Finney :
=
$ date -u +'%F %T %s %z'
2011-08-16 06:42:12 1313476932 +
$ python -c 'import sys, datetime; now = datetime.datetime.utcnow();
sys.stdout.write(now.strftime("%F %T %s %z"))'
2011-08-16 06:42:12 1313440932
Ben Wolfson added the comment:
"The guys at #python-dev confirmed the same happens on 2.7 but not on 3.x."
Really? This is on gentoo, not debian, admittedly:
coelacanth ~ 11:12:36 $ python3
Python 3.1.3 (r313:86834, May 1 2011, 09:41:48)
[GCC 4.4.4] on linux2
Type "he
Ben Cottrell added the comment:
The latest patch over in #1868 is working fine for my company in production,
and solves #3710 as well. I think the only thing left to do on that patch is to
make it special case "__dict__".
--
___
Pyth
Ben Walker added the comment:
I have been using the following patch to fix the issue locally for a few weeks
now (in addition to something equivalent to what Brian submitted for the
_curses issue). These two patches combined give me a working python 2.7 on
cygwin 1.7. I originally used
New submission from Ben Schmaus :
The argparse module lists required args as optional in the default help message.
If you run the following program (also attached) you'll get the output listed
below.
#!/usr/bin/env python
import argparse
parser = argparse.ArgumentParser(
descri
Ben Schmaus added the comment:
FWIW, I like the idea of just using the label "options".
--
___
Python tracker
<http://bugs.python.org/issue9694>
___
___
Ben Decker added the comment:
Closed then. The next patch will posted at http://www.caddit.net/pythond/when
we get around to doing a version 3 port.
Frankly, as the current v2 binary meets most remaining requirements on this
legacy platform, we are left with modern syntax compatibility as
Ben Smith added the comment:
I also see this issue on occasion on windows XP SP 3, using python 2.6.5 to
fetch large files via http.
The error is infrequent, but it is happening in my situation without a VM.
--
nosy: +Ben.Smith
___
Python tracker
Ben Bass added the comment:
Same applies to collections.deque, which seems closely related (being another
collections class). Can this get addressed here or should I open another issue?
(just been pprinting defaultdict(deque) objects, which clearly fails :)
--
nosy: +bpb
New submission from Ben Gamari :
Even the simple example included below fails in the following manner,
$ sudo python3.1 hi.py
3
Traceback (most recent call last):
File "hi.py", line 13, in
ioctl(a, EVIOCGID, buf, True)
TypeError: ioctl requires a file or file descriptor, an i
Changes by Ben Gamari :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue10345>
___
___
Python-bugs-list mailing list
Unsubscri
Ben Gamari added the comment:
The problem seems to have been that I tried passing mutate_flag. Things seem to
work fine when the last parameter is omitted.
--
___
Python tracker
<http://bugs.python.org/issue10
New submission from Ben Hayden :
When running the test_pulldom test with a latest checkout of cpython from
hg.python.org on Ubuntu 10.10 x64, the following ResourceWarning is thrown:
test_parse (test.test_pulldom.PullDOMTestCase)
Minimal test of DOMEventStream.parse() ...
/home/benhayden
Changes by Ben Hayden :
Removed file:
http://bugs.python.org/file21203/test_pulldom_resource_warning.patch
___
Python tracker
<http://bugs.python.org/issue11550>
___
___
Changes by Ben Hayden :
--
versions: -Python 3.3, Python 3.4
Added file: http://bugs.python.org/file21205/test_pulldom_resource_warning.patch
___
Python tracker
<http://bugs.python.org/issue11
Ben Hayden added the comment:
I was unclear as to why the list() calls were there. I thought it would just
change the iterator into a list - I didn't know that actually was needed for
the test - my mistake. I'll change it back to the list() - but I'll need to
loop over the fir
Ben Hayden added the comment:
Adding a patch that adds an __exit__ function much like the one that
socket.socket implements. Passes the test_asyncore & also doesn't raise a
resource warning when I explicitly comment out some close() calls on file
wrapper objects in
New submission from Ben Darnell :
Line 125 of multiprocessing.c is "*CMSG_DATA(cmsg) = fd;". CMSG_DATA returns
an unsigned char*, while fd is an int, so this code does not support file
descriptors > 256 (additionally, I'm not sure if the buffer is guaranteed to be
init
New submission from Ben Hayden :
Adding in a cleanup to close Popen stdout in the function
test_select_unbuffered in test_subprocess file in Lib/test dir. There are
several tickets about different resource warnings mentioning test_subprocess -
but I couldn't find any patches that fix
Ben Bass added the comment:
Perhaps this should be addressed separately, but subprocess.CalledProcessError
is subject to this problem (can't be unpickled) (it has separate returncode and
cmd attributes, but no args).
It's straightforward to conform user-defined Exceptions to inclu
New submission from Ben Okopnik :
Long-standing problem (happens in every Python version I've tested). The usual
situation is when invoking Python (and then "help('modules')") or "pydoc
modules" in /tmp, but also happens when located anywhere with unreadabl
Ben Okopnik added the comment:
Here's a test that should exercise every version of "pydoc" installed on the
system:
mkdir -p /tmp/foo/bar; cd /tmp/foo; chmod 0 bar
for n in `whereis -b pydoc`; do echo " $n "; $n modules; done
Tested under Ubuntu with bash
Ben Okopnik added the comment:
Trivial fix: please see attached. As to test_pydoc.py, I don't know the system
well enough to fiddle with it, but something like this should work (untested):
def test_unreadable_dir(self):
''' pydoc should handle unreadabl
Ben Okopnik added the comment:
Whoops... with all of that, I just realized that this bug should be filed
against pkgutil, not pydoc (pydoc, of course, calls pkgutil to do the path
resolution, which is where this crash occurs.) My bad.
>>> import pkgutil
>>> inst = pkguti
New submission from Ben Morgan :
PyZipFile.writepy gives internal error on syntax errors in files it processes.
For example, in the attached test case:
Traceback (most recent call last):
File "C:\tfs\SDKS\python\Python32\lib\py_compile.py", line 119, in compile
optimize=optimi
Changes by Ben Morgan :
--
keywords: +patch
Added file: http://bugs.python.org/file21889/pyzipfile-error.patch
___
Python tracker
<http://bugs.python.org/issue12
1 - 100 of 595 matches
Mail list logo