Ben Morgan added the comment:
I've attached a patch to test_zipfile.py. I noticed that it writes out the
error to stdout not stderr; I don't know if this is the desired behaviour.
--
Added file: http://bugs.python.org/file21903/test-zip
New submission from Ben Wolfson :
As near as I can make out from
<http://docs.python.org/library/string.html#formatstrings>, the following
should return the string "hi":
"{0[!]}".format({"!":"hi"})
We have a "{", followed by a field n
Changes by Ben Wolfson :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue12014>
___
___
Python-bugs-list mailing list
Unsubscri
Ben Wolfson added the comment:
The semantics the docs suggest for index fields (namely that whatever is in the
index field is just passed to getitem) do seem to be right, no other processing
is done here, for instance:
>>> d = {"{0}":"hi"}
>>> "
Ben Wolfson added the comment:
My last examples were actually just attempting to figure out what triggered the
unexpected behavior. I don't want to do expansion inside the field_name part!
(I'll have a reply to your previous comment about use-cas
Ben Wolfson added the comment:
Here's my use case.
I'm writing a python version of the ruby library HighLine for CLI interaction,
to be called, uncreatively, PyLine. One of the moderately neat things about the
library is that it allows for color information to be embedded in the st
Ben Wolfson added the comment:
Actually, that's the wrong place in MarkupIterator_next to include that loop.
The attached diff has it in the right place. The results of "make test" here
are:
328 tests OK.
1 test failed:
test_unicode
25 tests skipped:
te
New submission from Ben Gamari :
Configure.in assumes that %lld is not supported by printf if cross-compiling.
This causes build errors in pyport.h,
In file included from Include/Python.h:58:0,
from Parser/parser.c:8:
Include/pyport.h:243:13: error: #error "This platf
Ben Gamari added the comment:
Well, I'm not convinced that overriding config.cache is the best solution, but
I am not really sure what else can be done. So far I've just been carrying a
patch which changes configure.in, but this is clearly an
Ben Gamari added the comment:
Has there been any progress here?
--
nosy: +bgamari
___
Python tracker
<http://bugs.python.org/issue3244>
___
___
Python-bugs-list m
Ben Beasley <[EMAIL PROTECTED]> added the comment:
Apparent duplicates are at http://bugs.python.org/issue1298962 and
http://bugs.python.org/issue1565468. This bug seems to have something to
do with "power user" user privileges.
I can duplicate this problem with the MSI insta
Ben Beasley <[EMAIL PROTECTED]> added the comment:
http://bugs.python.org/issue1298962 appears to be a duplicate, with some
more recent activity.
--
nosy: +music
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Ben Beasley <[EMAIL PROTECTED]> added the comment:
http://bugs.python.org/issue2271 and http://bugs.python.org/issue1298962
appear to be duplicates of this issue, with the former having the most
recent activity.
--
nosy: +music
___
Python t
Changes by Ben Beasley <[EMAIL PROTECTED]>:
--
versions: +Python 2.4, Python 2.5, Python 2.6, Python 3.0
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Changes by Ben Beasley <[EMAIL PROTECTED]>:
--
versions: +Python 2.4, Python 2.6, Python 3.0
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Changes by Ben Beasley <[EMAIL PROTECTED]>:
--
type: -> behavior
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1298962>
___
___
Changes by Ben Beasley <[EMAIL PROTECTED]>:
--
type: -> behavior
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1565468>
___
___
Changes by Ben Beasley <[EMAIL PROTECTED]>:
--
components: +Windows
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1298962>
___
__
Changes by Ben Beasley <[EMAIL PROTECTED]>:
--
components: +Windows
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1565468>
___
__
New submission from Ben Cottrell <[EMAIL PROTECTED]>:
This is a copy of a message I sent to the python-dev mailing list; it
was suggested in a reply that I file a bug for this issue. I'm
filing it against Python 2.5 because that's where I noticed it,
but it doesn't lo
Ben Cottrell <[EMAIL PROTECTED]> added the comment:
But then if there is a context switch during the last Py_XDECREF, then
it could be the case that self->dict is not set properly on return from
_ldict().
Functions like local_setattro() use _ldict() more for its side effect
(setting s
Ben Cottrell <[EMAIL PROTECTED]> added the comment:
The specific thing that was happening for me is that an
_sqlite3.Connection object was in the dictionary. In
Modules/_sqlite/connection.c, in pysqlite_connection_dealloc(),
it uses Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS.
So it'
Ben Cottrell <[EMAIL PROTECTED]> added the comment:
I like this patch, too! I think it's a much cleaner way of implementing
the thread._local type. However, when I test it, I have problems with
subclasses of thread._local; using the class itself seems to work.
I've attached a t
Ben Cottrell <[EMAIL PROTECTED]> added the comment:
Christian,
Your patch works for me -- thanks!!
I made a slight modification to your patch to allow "del" to work,
and have attached my modified version.
I agree that allowing subclassing makes thread._local harder to get
rig
New submission from Ben Artin :
Running the following script crashes my 2.6.1 interpreter on two different
platforms:
from warnings import warn
class TestWarning(Warning):
def __str__(self):
return u'\u00ae'
warn(TestWarning())
Platforms I tried this o
New submission from Ben Hayden:
Instead of listing installed modules, help('modules') prints a "please
wait" message, then a traceback noting that a module raised an exception
during import, then nothing else.
This happens in 2.5 and 2.6a0, but not in 2.4, which apparentl
Ben Bass added the comment:
I've just bumped into this issue. In my opinion the finish() method
should only do anything if wfile is not empty, i.e:
temp = self.wfile.getvalue()
if temp:
self.socket.sendto(temp, self.client_address)
--
nosy:
Ben Bass added the comment:
Main issue here (as I see it) is that StreamRequestHandler and
DatagramRequestHandler should behave in the same way. This is not the
case in Python 2.5.1 for the case where the handle method does not
respond to the request socket (e.g. in my case it is forwarding
New submission from Ben Bass:
To quickly open a PyDoc browser, I want to be able to run the following:
python -m pydoc -g
This works fine on Python2.4, but fails on 2.5(.1), with following
traceback (tested on both WinXP and Solaris 8, same result):
Traceback (most recent call last):
File
Changes by Ben Pfaff:
--
assignee: georg.brandl
components: Documentation
nosy: blp, georg.brandl
severity: normal
status: open
title: "continue" documentation
versions: Python 2.5
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.p
New submission from Ben Pfaff:
The "continue" documentation says: "continue may only occur
syntactically nested in a for or while loop, but not nested in a
function or class definition or finally statement within that loop."
In a footnote to that documentation, it says:
New submission from Ben Pfaff:
Apologies for filing this issue report: I hit "Enter" at the wrong time.
Issue 2253 was what I really meant to file. You can close this issue.
Sorry about that.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.p
Ben Creech <[EMAIL PROTECTED]> added the comment:
You can trigger this bug without use of stdin=subprocess.PIPE, or for
that matter any subprocess.PIPE's, although that makes it worse. (So
the name for this issue may be overly specific.)
I have seen this happening intermitte
New submission from Ben Artin :
RFC 2822 allows for certain headers to be spread across multiple lines
(section 2.2.3). In particular, subject, comments, and keywords headers
behave this way (section 3.6.5).
I think the email module should unfold such headers. See attached patch
New submission from Ben Kuhn :
The description of PyRun_InteractiveLoop(FILE * file, const char *
filename) states that if filename is NULL, "???" will be used instead.
In actuality, if the method is called with a NULL filename, it will
segfault after the first command is entered
Changes by Ben Kuhn :
--
versions: +Python 3.0
___
Python tracker
<http://bugs.python.org/issue5121>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ben Bangert :
OSX 10.5 has a broken poll, this is an already known issue as I noticed
there's even a HAVE_BROKEN_POLL option that is in the source:
http://mail.python.org/pipermail/python-checkins/2006-April/051710.html
However, this run-time check apparently does not
Ben Bangert added the comment:
I don't know specifically, Phil Jenvey probably would as he's the one
that told me it is. Apple apparently knows this an turns it off in their
version of Python that is supplied.
___
Python tracker
<http://bu
Ben Bangert added the comment:
Ah, sorry, misunderstanding. I'm not recommending that Python copy
Apple's patch. I was pointing out that the HAVE_BROKEN_POLL test
apparently doesn't work, and that *all* manually compiled copies of
Python done on OSX will suffer this socket 3
New submission from Ben North :
The functools module includes a 'partial' class, which allows partial
function application either by positional arguments or keyword
arguments. However, it cannot be used to create, for example, a
function splitting a string on commas, or a function t
Changes by Ben North :
--
keywords: +patch
Added file: http://bugs.python.org/file12991/_functoolsmodule.patch
___
Python tracker
<http://bugs.python.org/issue5
Changes by Ben North :
Added file: http://bugs.python.org/file12992/test_functools.patch
___
Python tracker
<http://bugs.python.org/issue5191>
___
___
Python-bugs-list m
Ben Darnell added the comment:
To summarize the justification, this patch does two things: it moves an
optimization from create_connection to getaddrinfo, which makes it apply to
more callers (including Tornado), and it makes the code simpler and less
redundant (net reduction of 47 non-test
Ben Darnell added the comment:
On MacOS in 2015, getaddrinfo was found to be much slower than inet_pton.
Unless that's changed, this patch would be a performance regression on that
platform. Data and benchmark script in
https://groups.google.com/g/python-tulip/c/-SFI8kkQEj4/m/m1-oCMS
Change by Ben Boeckel :
--
nosy: +mathstuf
___
Python tracker
<https://bugs.python.org/issue28584>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ben Hsing :
--
keywords: +patch
pull_requests: +15240
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15565
___
Python tracker
<https://bugs.python.org/issu
Ben Hsing added the comment:
Agreed. I've submitted a new commit with the call chaining behavior now
generalized for all dunder methods by delegating the resolution of all
attributes not directly in the _Call object's __dict__ keys to the getattr
method.
--
status: open
Change by Ben Hsing :
--
status: pending -> open
___
Python tracker
<https://bugs.python.org/issue37972>
___
___
Python-bugs-list mailing list
Unsubscrib
Ben Hsing added the comment:
Correction. I've now done this by delegating the resolution of attributes
belonging to the tuple class to _Call.__getattr__ instead. Passed all build
tests.
--
___
Python tracker
<https://bugs.python.org/is
New submission from Ben Spiller :
In performance-critical python code, it's quite common to need to get an item
from a dictionary, falling back on a default (e.g. None, 0 etc) if it doesn't
yet exist. The obvious way to do this based on the documentation is to call the
dict.ge
Ben Spiller added the comment:
Thanks... yep I realise method calls are slower than operators, am hoping we
can still find a cunning way to speed up this use case nonetheless. :D For
example by having a configuration option on dict (or making a new subclass)
that gives the (speedy
Change by Ben Harper :
--
pull_requests: +16186
pull_request: https://github.com/python/cpython/pull/16598
___
Python tracker
<https://bugs.python.org/issue36
Ben Harper added the comment:
Changes merged
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
Ben Harper added the comment:
The default build of python with ASAN builds successfully. Test suite and PGO
build are currently blocked, but that can be separated if it makes more sense
to handle them individually.
Would it make sense to add an ASAN build to the CI pipeline to make
New submission from Ben Spiller :
The built-in profiling modules only provide information about the main thread
(at least when invoked as documented).
To avoid user confusion we should state this in the documentation at
https://docs.python.org/3/library/profile.html.
Potentially we could
New submission from Ben Reilly :
mock.create_autospec is meant to create a mock that will ensure, among other
things, that method calls on the mock correspond to real methods on the
original object and that the arguments match the signature of the original
method. However, if the original
Change by Ben Reilly :
--
components: +Tests
___
Python tracker
<https://bugs.python.org/issue38729>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Ben Reilly :
--
nosy: +breilly_box
___
Python tracker
<https://bugs.python.org/issue30587>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ben Finney added the comment:
> tempfile.mktemp() still exists and works without raising a deprecation
> warning. Of course it's still marked as deprecated in the docs.
Right. So, the issue is not resolved: Functionality to create a temporary file
path is maintained in the stand
Ben Buchwald added the comment:
Hopefully I'm not too late to comment on this. I also just hit this issue, but
I do not agree with the proposed PR. Only modifying
_GatheringFuture.cancelled() just fixes one of the side-effects of the problem.
The state of the future is still FINISHE
Ben Darnell added the comment:
[I'm coming here from https://github.com/tornadoweb/tornado/pull/3010)
UnicodeError is a subclass of ValueError, so I don't see what value that change
would provide. The thing that's surprising to me is that it's not a
`socket.herror
Ben Darnell added the comment:
> It's even slightly easier for tornado, which can reasonably set the
> proactor-wrapper policy at IOLoop start time, which means
> `asyncio.get_event_loop()` returns a loop with add_reader. But pyzmq doesn't
> get invoked until an
Ben Darnell added the comment:
> The maintenance burden of the introduced deprecation should be pretty low.
This is going to cause an unpleasant amount of churn in the Tornado community.
It's been idiomatic (going back 12 years now) to do all your setup in
synchronous code before
Change by Ben Avrahami :
--
nosy: +avrahami.ben
___
Python tracker
<https://bugs.python.org/issue44695>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ben Boeckel :
Generally, the `configure.ac` script tries to detect compilers based on the
path to the compiler. This is mostly fine, but trips up when using `mpicc` as
the compiler. Even if the underlying compiler is `gcc`, this gets detected as
`icc` in various
New submission from Ben Hoyt :
In going through some standard library code, I found that the
email.utils.parsedate_tz() function
(https://docs.python.org/3/library/email.utils.html#email.utils.parsedate_tz)
has a bug if the time value is in dotted format and has more than 2 dots in it,
for
Ben Hoyt added the comment:
For reference, here's a repro case:
$ python3.10 -c 'import email.utils; \
email.utils.parsedate_tz("Wed, 3 Apr 2002 12.34.56.78+0800")'
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/
Change by Ben Hoyt :
--
keywords: +patch
pull_requests: +26853
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/28452
___
Python tracker
<https://bugs.python.org/issu
Ben Darnell added the comment:
> In IPython, I think you could use new_event_loop() for getting a new loop
> instance.
> Then, save the loop reference somewhere as a direct attribute,
> threading.local or ContextVar.
> Calling loop.run_until_complete() looks pretty normal in
New submission from Ben Ricketts :
https://docs.python.org/3/tutorial/appetite.html
4th paragraph from bottom refers to "skits" where as Monty Python in fact
perform sketch comedy.It is a minor but important differentiation.
--
assignee: docs@python
components: Documentatio
Ben Reilly added the comment:
Yes, your description sounds right, and I had zero-ed in on the same park of
the mock code when I was doing my investigation.
I know that this is a peculiar situation, but one thing to note is that
`inspect.signature` gets the signature right on these wrapped
New submission from Ben Barbour :
When downloading Python 2.7.9 x64, the actual python executable is Python
2.7.13. The 32-bit version has the correct executable.
--
messages: 356307
nosy: Ben Barbour
priority: normal
severity: normal
status: open
title: Python 2.7.9 x64 for Windows
Change by Ben Boeckel :
--
nosy: +mathstuf
___
Python tracker
<https://bugs.python.org/issue38728>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ben Caller :
The regex http.cookiejar.LOOSE_HTTP_DATE_RE iss vulnerable to regular
expression denial of service (REDoS). LOOSE_HTTP_DATE_RE.match is called when
using http.cookiejar.CookieJar to parse Set-Cookie headers returned by a
server. Processing a response from a
Change by Ben Caller :
--
keywords: +patch
pull_requests: +1
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17157
___
Python tracker
<https://bugs.python.org/issu
New submission from Ben Caller :
The regular expression urllib.request.AbstractBasicAuthHandler.rx is vulnerable
to malicious inputs which cause denial of service (REDoS).
The regex is:
rx = re.compile('(?:.*,)*[ \t]*([^ \t]+)[ \t]+'
'realm=(["\
Ben Caller added the comment:
I have been advised that DoS issues can be added to the public bug tracker
since there is no privilege escalation, but should still have the security
label.
--
___
Python tracker
<https://bugs.python.org/issue38
Change by Ben Brown :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue37226>
___
___
Python-bugs-list
New submission from Ben Boeckel :
Currently, the SOABI suffix is only available by running the Python interpreter
to ask `sysconfig` about the setting. This complicates cross compilation
because the target platform's Python may not be runnable on the build platform.
Exposing this i
Ben Boeckel added the comment:
Ah, that does look like it is suitable (since it is a shell script). I assume
it is a batch script on Windows (though I feel cross-compilation is far rarer
there). Thanks.
--
stage: -> resolved
status: open ->
Ben Caller added the comment:
Isn't this a duplicate of bpo-38826 ?
--
nosy: +bc
___
Python tracker
<https://bugs.python.org/issue39503>
___
___
Pytho
Ben Boeckel added the comment:
Thanks!
Should I file a new issue for the other (less urgent) problem mentioned at the
bottom or is it not really worth fixing?
> It also erroneously replaces things like '$prefixpath'. It should probably do
> split the path on the path sep
New submission from Ben Boeckel :
Previously reported as a sidenote in Issue21016.
The `--ignore-dir` option in trace.py replaces `$prefix` and `$exec_prefix`
*anywhere* in the path when it really should just replace it in the start of
the path and if it is followed by nothing or a path
Ben Boeckel added the comment:
`\b` is a bit too loose. That example should *not* have it replaced because it
is not a full path component.
(Granted, any of these conflicting paths are "dumb" in general; I'm fine with
just leaving this as a low priority, but if it does g
Ben Darnell added the comment:
I just spent some time digging into this. Each call to `run_forever` starts a
call to `_loop_self_reading`, then attempts to cancel it before returning:
https://github.com/python/cpython/blob/1ed61617a4a6632905ad6a0b440cd2cafb8b6414/Lib/asyncio
New submission from Ben Darnell :
Proactor and selector event loops behave differently when call_soon_threadsafe
races with a concurrent call to loop.close(). In a selector event loop,
call_soon_threadsafe will either succeed or raise a RuntimeError("Event loop is
closed"). In
Ben Boeckel added the comment:
> The paths are not user provided: they are hardcoded paths from the sysconfig
> module:
No, those paths are the *replacement* values, not the input. From the trace
docs:
> trace.py -c -f counts --ignore-dir '$prefix' spam.py eggs
This
Change by Ben Sokol :
--
type: behavior -> crash
versions: +Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue29298>
___
___
Python-
Ben Darnell added the comment:
I have an implementation of the selector-in-another-thread solution in
https://github.com/tornadoweb/tornado/pull/2815. Is something like this worth
considering for Python 3.9, or was Tornado the only project experiencing this
pain and a tornado-specific
Ben Darnell added the comment:
I considered using the `selectors` module directly, but it's not as simple as
it sounds. Using the low-level interface means you need to also use a
self-waker-pipe (or socket on windows) and manage a queue analogous to that
used by `call_soon_threadsafe
New submission from Ben Griffin :
While there is now support for a single default group, mysql documentation is
clear that there is a cascade of groups for option settings, normally starting
with [client], and including version numbers..
This allows generic settings to be overridden by
Ben Griffin added the comment:
Having looked at the code, I believe that it is best NOT to interfere with the
'default_section' value of the class, as it is used as a proxy to _defaults,
whereas the section parameter of get() is easily extended.
The actual changes are all to
Change by Ben Thayer :
--
nosy: +benthayer
___
Python tracker
<https://bugs.python.org/issue39791>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ben Boeckel added the comment:
I believe this to be a clang bug. I've filed an issue with upstream here:
https://bugs.llvm.org/show_bug.cgi?id=45170
--
nosy: +mathstuf
___
Python tracker
<https://bugs.python.org/is
Ben Spiller added the comment:
Looks like on WSL the errno is errno.EACCES rather than EPERM, so we just need
to change the shutil._copyxattr error handler to also cope with that error code:
except OSError as e:
- if e.errno not in (errno.EPERM, errno.ENOTSUP
Ben Caller added the comment:
Instead of
repeat_10_3 = 'Basic ' + ', ' * (10 ** 3) + simple
in the benchmark, try
repeat_10_3 = 'Basic ' + ', ' * (10 ** 3) + 'A'
--
Added file: https://bugs.python.org/file49022/bench_parser2.
Change by Ben Caller :
Added file: https://bugs.python.org/file49023/bench_parser2.py
___
Python tracker
<https://bugs.python.org/issue39503>
___
___
Python-bugs-list m
Change by Ben Caller :
Removed file: https://bugs.python.org/file49022/bench_parser2.py
___
Python tracker
<https://bugs.python.org/issue39503>
___
___
Python-bugs-list m
Ben Darnell added the comment:
> Would it be acceptable for you to *require* use of uvloop when Tornado is
> used with AsyncIO?
How, exactly? Adding the dependency is no problem, but AFAIK I'd still be stuck
with an import-time side effect to set the event loop policy (or a .pth
Ben Darnell added the comment:
No, this is unrelated to bpo-39010.
--
___
Python tracker
<https://bugs.python.org/issue39651>
___
___
Python-bugs-list mailin
101 - 200 of 595 matches
Mail list logo