Ben Boeckel added the comment:
> Presumably you looked around for ideas before figuring out the issue
Usually when "could not find foo.lib" popping up without any mention of
"foo.lib" on the link line points directly to these "autolinking" "features&qu
Ben Darnell added the comment:
> IMO, a better practice would be providing those potentially infinite running
> tasks a direct method of escape and invoking it before calling
> executor.shutdown(), it would be a more reliable approach.
Agreed, but the problem is that I'm in a
Ben Darnell added the comment:
I have resolved my issue here by moving from ThreadPoolExecutor to a plain
threading.Thread that I manage by hand
(https://github.com/tornadoweb/tornado/commit/15832bc423c33c9280564770046dd6918f3a31b4).
Therefore I no longer need this for myself and I leave it
Ben Avrahami added the comment:
The patch PR blocks out a useful idiom: generic Nametuple
>>> class LLNode(NamedTuple, Generic[T]):
... value :T
... next: Optional[LLNode[T]]
I put forward that, at the least, NamedTuple should accept do-nothing bases
like Generic.
--
New submission from Ben Spiller :
The py.exe launcher doc states "If no relevant options are set, the commands
python and python2 will use the latest Python 2.x version installed" ... which
was indeed working reliably until Microsoft added their weird python.exe shim
(which either
Change by Ben Spiller :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue40687>
___
___
Python-bugs-list mailing list
Unsubscrib
Ben Mares added the comment:
It's great to have this feature in the standard library, but it really seems to
clutter the functools documentation. Everything else in functools applies
directly to functions and methods. Suddenly reading graph theory terminology
was disorienting for me.
Ben Mares added the comment:
dependencytools?
But I don't think it qualifies yet for the plural...
--
___
Python tracker
<https://bugs.python.org/is
New submission from Ben Du :
The function platform.platform() does not report detailed Linux platform
information (Ubuntu, Debain, CentOS, etc). This information is reported in
Python 3.7 and earlier.
--
components: Library (Lib)
messages: 371488
nosy: legendu
priority: normal
New submission from Ben Griffin :
https://stackoverflow.com/questions/62713741/tkinter-and-32-bit-unicode-duplicating-any-fix
Emoji are doubling up when using canvas.create_text()
This is reported to work on tcl/tk 8.6.10 but there’s no. Way to upgrade tcl/tk
using the standard installs from
Ben Griffin added the comment:
Erm, I don’t rightly know how to parse epaine’s comment, as it seems to relate
to a version of Unicode from over a decade ago, and a wiki page that was
written 12 years ago.
IIRC Python 3 was (IMO rightly) developed to default to UTF-8, and according to
a much
Ben Griffin added the comment:
Wow, well if you are right, then TCL/TK is a showstopper for us, and we will
have to consider an alternative to tkinter.
Frankly, I am aghast that any active software would be limited to fixed width
characters.
We moved our languages over to multiwidth (utf-8
Ben Caller added the comment:
I've attached a minimal tar file which reproduces this. I think the minimum
length is 516 bytes.
We need a 512 byte PAX format header block as normal.
Then we need a pax header which matches the regex in
https://github.com/python/cpython
Ben Caller added the comment:
A smaller bug: If instead of 0 you use a large number (> 2^63) e.g.
999 you get `OverflowError: Python int too large to convert to
C ssize_t` rather than the expected `tarfile.ReadError` regardless of
errorle
Change by Ben Darnell :
--
pull_requests: +21117
pull_request: https://github.com/python/cpython/pull/22017
___
Python tracker
<https://bugs.python.org/issue39
Ben Darnell added the comment:
I've posted a pull request with a test and fix:
https://github.com/python/cpython/pull/22017. It's a more targeted fix than
cmeyer's PR (which I didn't even notice until now due to unfamiliar
Ben Darnell added the comment:
I can confirm that those warnings appear to be coming from the test I added
here. I'm not sure how to interpret them, though - what does it mean for the
main thread to be dangling?
--
___
Python tracker
&
Change by Ben Darnell :
--
pull_requests: +21156
pull_request: https://github.com/python/cpython/pull/22066
___
Python tracker
<https://bugs.python.org/issue39
Ben Darnell added the comment:
I've fixed the test and added some commentary about the different levels of
clean shutdown we must do to quiet all the warnings:
https://github.com/python/cpython/pull/22066
--
___
Python tracker
&
New submission from Ben Kurtovic :
json.dump vs. json.dumps have inconsistent error messages when encoding NaN
with allow_nan=False:
>>> json.dumps(float('nan'), allow_nan=False)
ValueError: Out of range float values are not JSON compliant
>>> json.dump(float(&
New submission from Ben Wolsieffer :
The distutils.sysconfig.get_python_inc() function finds headers relative to
sys.base_prefix or sys.base_exec_prefix. This causes problems when
cross-compiling extension modules because Python's headers are not platform
independent.
In
Change by Ben Wolsieffer :
--
keywords: +patch
pull_requests: +21469
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22440
___
Python tracker
<https://bugs.python.org/issu
New submission from Ben Avrahami :
python-ideas discussion:
https://mail.python.org/archives/list/python-id...@python.org/thread/6BNJ3YSEBPHEPGXSAZGBW3TJ64ZGZIHE/
In order to allow "decorator mixins" (most notably dataclass and
total_ordering) to implement ABCs, new functionality is
Ben Avrahami added the comment:
for the functionality to work, `total_ordering` needs to change to also
override abstract methods. I believe this is an OK change since total_ordering
implicitly dictates that the comparison methods are interchangable. Thus,
implementing some comparison
Ben Avrahami added the comment:
Good points all, that I will try to address one by one:
Firstly, this function is by no means mandatory for "post-creation mixins".
Such tools can still be used without calling it (and remain ABC unaware), with
absolutely no change in functionali
Ben Avrahami added the comment:
This is a behavior that the PR changes. total_ordering should be able to
override/implement abstract methods (in my opinion). If this ends up a
strickling point then we can exclude total_ordering from this issue.
Regardless, I think that this behavior is
Ben Avrahami added the comment:
> I would prefer the isinstance(cls, ABCMeta) check to be inside that helper
I had a little debate about this in my mind, I'll change it.
> it's totally clear to me what @total_ordering should do -- it should define
> __le__, __gt__ and
Ben Avrahami added the comment:
> Maybe you misunderstand what I tried to say?
Possibly, right now, total_ordering avoids overriding any method that is
declared, either in the class or its superclasses (except for object),
regardless of whether or not it is abstract. For it to be ABC-aw
Ben Avrahami added the comment:
Implementing this behavior automatically would be more complicated since you
would also have to take subclasses into account. Current implementation
enforces that the class is unused (as much as can be reasonably done) when its
abstraction status is re
Ben Avrahami added the comment:
> Adding a function to recalculate will require everyone to use it
I'd argue that this is akin to `functools.update_wrapper`. It too is a function
that must be called in virtually every function decorator (the only function
decorators that don't
New submission from Ben Darnell :
I'm dealing with a subtle deadlock involving
concurrent.futures.ThreadPoolExecutor, and my solution that worked in Python
3.8 broke with 3.9. I'm running some long-running (possibly infinite) tasks in
the thread pool, and I cancel them in
New submission from Ben Avrahami :
According to the documentation for types.SimpleNamespace,
`repr(SimpleNamespace())` should return `"SimpleNamespace()"`, but in actuality
returns `"namespace()"`. This is because SimpleNamespace is an alias for the C
implemented type
Change by Ben Bonenfant :
--
nosy: +bbonenfant
nosy_count: 6.0 -> 7.0
pull_requests: +21894
pull_request: https://github.com/python/cpython/pull/22977
___
Python tracker
<https://bugs.python.org/issu
New submission from Ben Boeckel :
On Windows, we are extracting a tarball of a Python installation for CI (to
avoid needing to juggle umpteen Python installs on umpteen machines). This
requires `PYTHONHOME` to be set to use properly since there is no registry
entry for the "install
Ben Boeckel added the comment:
We build our own applications which run Python interpreters internally, so the
auto-discovery won't work. It also doesn't seem to work for venvs either since
the venv's `python.exe` is under `Scripts` which makes it not able to find
things ei
New submission from Ben Timby :
If you instantiate a ThreadPool, then call map() with an empty list, the join()
method will block indefinitely on self._result_handler.join()
$ python
> from multiprocessing.pool import ThreadPool
> t = ThreadPool(1)
> t.map_async(lambda x: x, [])
New submission from Ben Darnell :
I have a script which attempts to re-invoke itself using sys.argv, but it fails
when run with "python -m package.module". The problem is that the handling of
-m (via the runpy module) rewrites sys.argv as if it were run as "python
package/modu
Ben Wolfson added the comment:
just curious if there are any developments here since the first 3.3 alpha has
been released.
--
___
Python tracker
<http://bugs.python.org/issue12
New submission from Ben Hayden :
When running the test suite on Linux 3.2.9-1, I get the following error on the
test_os suite:
test test_os crashed -- Traceback (most recent call last):
File "/home/benhayden/Documents/cpython/Lib/test/regrtest.py", line 1229, in
run
Ben Hayden added the comment:
That was my thought, but again, I didn't really know if it was 'safe' to snuff
the OSError all together. This patch just returns False if any OSError is
raised.
--
___
Python tracker
<http
Changes by Ben Hayden :
Added file:
http://bugs.python.org/file24934/test_os_support_ext_return_false.patch
___
Python tracker
<http://bugs.python.org/issue14
New submission from Ben Brown :
I have been getting an intermittent errors when using asyncio with SSL. The
error always occurs in the _process_write_backlog method in asyncio's
sslproto.py file. I have looked at lots of possibilities as to what the cause
is and found that for some r
Ben Brown added the comment:
The OpenSSL version is OpenSSL 1.1.0j 20 Nov 2018
--
___
Python tracker
<https://bugs.python.org/issue37226>
___
___
Python-bug
Ben Brown added the comment:
That's a shame, which version should it work on I don't mind downgrading for
now to fix the issue as a workaround.
--
___
Python tracker
<https://bugs.python.o
Ben Brown added the comment:
I am using the version I mentioned above 1.1.0 and TLS 1.2, I am sorry I can't
be of more help.
--
___
Python tracker
<https://bugs.python.org/is
Ben Brown added the comment:
I tested an older version of OpenSSL 1.0.2g and I get the same error on that
--
___
Python tracker
<https://bugs.python.org/issue37
Ben Brown added the comment:
I have created a minimal example if that helps to show the issue
https://gist.github.com/bobthemac/031213b8e37960ee805f2ae1e6990b60
--
___
Python tracker
<https://bugs.python.org/issue37
Ben Spiller added the comment:
I'd definitely suggest we go for a solution that doesn't hit performance of
normal logging when you're not adding/removing things, being as that's the more
common case. I guess that's the reason why callHandlers was originally
impleme
Ben Spiller added the comment:
Interesting conversation. :)
Yes I agree correctness is definitely top priority. :) I'd go further and say
I'd prefer correctness to be always there automatically, rather than something
the user must remember to enable by setting a fl
New submission from Ben Darnell :
On Windows there are two event loop implementions with different interfaces:
The proactor event loop is missing the file descriptor family of methods
(add_reader()), while the selector event loop has other limitations including
missing support for pipes and
Ben Darnell added the comment:
> From my understanding, there is no issue for Tornado itself. If Jupiter
> Notebook needs Tornado, Tornado needs selector event loop on Windows --
> Jupiter can install the proper loop.
Right. I'm just advocating for something that would make
Ben Darnell added the comment:
Yeah, it's definitely a hack. The argument for it, at best, is "practicality
beats purity". The solution is two simple lines, but those lines need to be
repeated in every project that depends on Tornado and cares about Windows, now
or in the f
Ben Brown added the comment:
Hi is there any update on this issue, were you able to replicate the error with
the minimal example I provided or is there any additional information I can
provide.
--
___
Python tracker
<https://bugs.python.
New submission from Ben Lewis :
>>> from curses import ascii
>>> from . import ascii
The second line should raise an ImportError but instead succeeds (tested
cpython 3.6.7, 3.7.0 and 3.7.3, and from interactive interpreter and scripts).
Specifically, builtins.__import__
Ben Lewis added the comment:
>>> foo = 'oops'
>>> from . import foo as fubar # should raise ImportError
>>> fubar
'oops'
After further investigation, the problem is that builtins.__import__ (the c
port version) does not replicate the behaviour
Ben Lewis added the comment:
I'll look into this further and open a PR initially for the regression tests.
--
___
Python tracker
<https://bugs.python.org/is
Change by Ben Lewis :
--
keywords: +patch
pull_requests: +14282
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/14465
___
Python tracker
<https://bugs.python.org/issu
Ben Brown added the comment:
Maayan Keshet do you have a minimal example it would be interesting to compare
against our code and see if there is something we are both doing that could
help narrow down the issue.
--
___
Python tracker
<ht
Ben Brown added the comment:
With some more research it looks like the issue is flow related, I experimented
with the StreamWriter in a simple server and using that plus drain() appears to
have worked an I no longer get the error. I have added my new server to the
gist I posted above
Ben Brown added the comment:
I can fully confirm the issue is due to flow control or lack of in my code the
system runs out of resources and this is when it errors, I have implemented
flow control in my protocol and it now works without errors. One thing I did
find is that the documentation
Change by Ben Lewis :
--
pull_requests: +14724
pull_request: https://github.com/python/cpython/pull/14956
___
Python tracker
<https://bugs.python.org/issue37
New submission from Ben Hoyt:
The documentation for namedtuple._replace() needs a tweak: currently its
signature shows "kwargs" without the ** notation, indicating it's a single,
positional argument. It should have the ** to indicate it's actually any number
of keyword ar
New submission from Ben Lewis:
Within the socket module, there are various tuples that are used for different
representations of a socket address. There are also other tuples returned by
other functions in the socket module.
As suggested on
Python-ideas(https://mail.python.org/pipermail
New submission from Ben Johnston:
Installing Python 3.6.1 from Python-3.6.1.tar.xz on Ubuntu 16.04.2 LTS, the
following tests are failing:
ERROR: test_logincapa_with_client_certfile
(test.test_imaplib.RemoteIMAP_SSLTest)
ERROR: test_logincapa_with_client_ssl_context
Ben Finney added the comment:
The library documentation (e.g.
file:///usr/share/doc/python3/html/library/functools.html#functools.reduce )
also has this dissonance:
> functools.reduce(`function`, `iterable` [, `initializer` ])
>
>Apply function of two arguments cumulative
Ben Finney added the comment:
Hah, sorry to use a local-filesystem URL. (Hooray for locally-installed
developer documentation!)
The same section is online at
https://docs.python.org/3/library/functools.html#functools.reduce .
--
___
Python
New submission from Ben Spiller :
These work fine and return instantly:
python -c "import re; re.compile('.*x').match('y'*(1000*100))"
python -c "import re; re.compile('x').search('y'*(1000*100))"
python -c "import re
Ben Spiller added the comment:
Correction to original report - it doesn't hang indefinitely, it just takes a
really long time. Specifically, looks like it's quadratic in the length of the
input string. Increase the size of the input string to 1000*1000 and it's
really really
Ben Spiller added the comment:
Running this command:
time python -c "import re; re.compile('y.*x').search('y'*(N))"
It's clearly quadratic:
N=100,000 time=7s
N=200,000 time=18s
N=400,000 time=110s
N=1,000,000 time=690s
This illustrates how a simple p
Ben Hoyt added the comment:
Agreed. Seems much the same as other argument constants,
like pickle.HIGHEST_PROTOCOL for the "protocol" argument. These are not
changing the API, just adding a helper constant to avoid the magic values.
-Ben
On Tue, Mar 14, 2017 at 12:24 PM, Brett Can
New submission from Ben Finney:
The docstring of a test case is not correctly parsed for display.
The attached ‘test_foo.py’ module contains two test case functions. Both
docstrings conform to PEP 257 <https://www.python.org/dev/peps/pep-0257/>: they
have a single-line synopsis and some
Ben Finney added the comment:
> This is because unittest.TestCase method `shortDescription()` will only
> return the first line of docstring
Yes, that is the “docstring synopsis” I referred to. PEP 257 has a section
specifically about how tools should parse a docstring:
Ben Finney added the comment:
Howdy R. David,
Okay, I have put together a series of commits to address this bug. The
changes are in my personal fork of the ‘cpython’ repository, so this is
a pull request from ‘wip/issue/issue30181_parse-docstring-using-pydoc’
in that repository.
The following
Ben Finney added the comment:
On 2017-05-01 17:45, Louie Lu wrote:
> Ben, the process of submitting PR was migrated to GitHub
Thank you. I'll re-base my branch onto the master branch found at the GitHub
repository.
> you will need to use a GitHub account to do it
I don
Ben Finney added the comment:
On 01-May-2017, R. David Murray wrote:
> You are depending on a non-portable feature of os.rename there
What's the non-portable dependency?
If you mean the expectation that ‘os.rename’ will be atomic on
success: the documentation promises “If success
Ben Finney added the comment:
On 01-May-2017, Serhiy Storchaka wrote:
> tempfile.mktemp() is not much more useful that just a function that
> generates some names which unlikely matches the names of existing
> files the directory.
Yes. That is already useful enough to be in the
Ben Finney added the comment:
Apparently there is some consternation about my bugs.python.org identity. This
is Ben Finney of WSP Digital, in Melbourne, Australia.
A GitHub account is wholly irrelevant to this account. A GitHub account is
wholly irrelevant to accepting the PSF CLA.
This
Ben Finney added the comment:
> No, your contribution will not be rejected by "you don't maintain the repo on
> GitHub", everyone can send the patch (PR) to python/cpython.
I am glad to know that. I won't be maintaining a GitHub account because I
disagree with the te
Ben Finney added the comment:
> if you upload a patch generated from your branch here, someone else will
> create the github PR so we can get it processed.
The branch has several commits. I have generated the patches, and am now
uploading them as a tarball.
It may be easier to simply
Ben Finney added the comment:
> I have already created such a pull requests. It is bidirectionally linked to
> this ticket.
I hope the PSF can start accepting contributions without that laundering, but
until then: thank you for taking t
New submission from Ben Wainwright:
The findall method for ElementTree.Element handles namespace prefixes by
tokenising the path and inserting the full namespace in braces based on entries
in a dictionary.
Unfortunately, this does not work for a namespace without a prefix, so if you
have
New submission from Ben Harper :
When running the builtin test suite with address sanitizer enabled, one of the
ctypes tests causes a use after free demonstrating the danger of using a
reference to the inside of a deallocated buffer. This use is detected as an
error by the address sanitizer
Change by Ben Harper :
--
keywords: +patch
pull_requests: +12243
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36253>
___
___
Py
New submission from Ben Harper :
Trying to run make after './configure --with-address-sanitizer --with-pydebug'
fails with leak of locale string
--
components: Build
messages: 338315
nosy: btharper
priority: normal
severity: normal
status: open
title: Failure to build wi
Change by Ben Harper :
--
keywords: +patch
pull_requests: +12380
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36356>
___
___
Py
Ben Harper added the comment:
I'm on Ubuntu 18.10/amd64 compiling with Ubuntu's GCC 8.2.0, I know there's
some libraries that are missing dependencies (including bz2 and sqlite) so I
may have missed the ipv6 dependencies as well.
My eventual goal was to be able to build
Change by Ben Harper :
--
pull_requests: +12399
___
Python tracker
<https://bugs.python.org/issue36356>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ben Harper added the comment:
I'm not sure about the change from 3.7 to master, but that assertion may be
more likely to happen while instrumented with ASAN due to the extra space
reserved between heap objects. As far as I can tell it's just expecting that
the offset of two poi
Change by Ben Creasy :
--
nosy: +jcrben
___
Python tracker
<https://bugs.python.org/issue13282>
___
___
Python-bugs-list mailing list
Unsubscribe:
Ben Creasy added the comment:
Not sure if this is filed elsewhere, but the contents on the page at
https://docs.python.org/3/contents.html could really use a collapse button, and
could start automatically collapsed. The first half of the page is "What's new"
for the past few
Ben Finney added the comment:
On 28-Apr-2019, Berker Peksag wrote:
> The original problem has already been solved by making
> tokenize.generate_tokens() public in issue 12486.
I don't understand how that would affect the resolution of this issue.
Isn't the correct resoluti
New submission from Ben Cummings :
If I pass an iterator to csv.DictWriter as the fieldname field, then DictWriter
consumes that iterator pretty quickly, emitting strange errors such as the
following when trying to write the headers.
>>> import csv
>>> fields = iter(
New submission from Ben Burrill :
PEP 448 defines unpacking generalizations for tuples. However, this does not
currently work for subscripted tuples that are not delimited by parentheses.
Current behavior (Tested on 3.6/3.7a4):
>>> class Subscriptable:
... def __getitem__(s
Ben Burrill added the comment:
Yeah, but in this case, you don't need parentheses unless you use unpacking.
That is unexpected behavior.
--
___
Python tracker
<https://bugs.python.org/is
Change by Ben North :
--
pull_requests: +5203
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue18533>
___
___
Python-bugs-lis
Ben North added the comment:
Terry in msg310785:
> As I expected from the fact that Ben once did a separate 2.7
> version, the auto backport for 2.7 failed. Ben, since you know what
> code changes are needed, can you prepare a backport (cherry pick)
> PR?
Yes, that's right
New submission from Ben Kirshenbaum :
Tkinter objects cannot handle the super() function, and probably other
functions (I only found a problem with super())
--
components: Tkinter
messages: 313397
nosy: benkir07
priority: normal
severity: normal
status: open
title: Tkinter old style
New submission from Ben Feinstein :
In logging.Manager, the logRecordFactory attribute is never used.
One would expect that makeRecord() (in logging.Logger) would generate a record
using its manager's logRecordFactory, or fallback to the global
_logRecordFactory (if has no manage
Change by Ben Feinstein :
--
keywords: +patch
pull_requests: +5848
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue33057>
___
___
Py
Change by Ben Feinstein :
Removed file: https://bugs.python.org/file47478/issue_logRecordFactory.py
___
Python tracker
<https://bugs.python.org/issue33057>
___
___
Pytho
201 - 300 of 595 matches
Mail list logo