Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment:
I have also added some unit tests to test the feature with the option
turned on, and off - patch attached.
Added file: http://bugs.python.org/file10262/test.test_sax.py.patch
__
Tracker <[EMAIL
Jonathan Hitchcock <[EMAIL PROTECTED]> added the comment:
Acting on a comment (with which I agree) that the "empty_elements_tag"
wasn't such an obvious name, here's a (combined) patch which uses the
name "short_empty_elements" (which was my original gut
New submission from Jonathan Feinberg <[EMAIL PROTECTED]>:
http://docs.python.org/3.0/whatsnew/3.0.html#library-changes
"Some modules were renamed because their old name flaunted PEP 0008"
should read "Some modules were renamed because their old name flouted
PEP 0008&q
New submission from Jonathan Balloch :
It would be powerful to have a native implementation of a bijective map (e.g. a
dictionary that hashed only one-to-one, but as a result either the "key" or the
"value" could do lookup in O(1) time with the only overhead being th
Jonathan Balloch added the comment:
thank you!!
On Tue, Mar 29, 2022 at 8:44 PM Raymond Hettinger
wrote:
>
> Raymond Hettinger added the comment:
>
> This is indeed a duplicate. If needed just use one of implementations on
> PyPI https://pypi.org/project/bidict/
>
&
New submission from Jonathan Gossage :
I installed Python 3.8.0b4 manually on Ubuntu 19.04 desktop. After the
installation that appeared to run OK, I was unable to find python3.8, even
though it had been installed in /usr/local/bin and that directory was on the
path. I got the result
Jonathan Gossage added the comment:
I now do not think that it is a Python problem. It only appears when Ubuntu
18.04 is upgraded to 19.04 by the upgrade process. The problem does not
show up on a fresh install of Ubuntu 19.04 followed by a source install of
Python 3.8.0b4 only if the install
New submission from Jonathan Gossage :
Python 3.8 was installed from source on Ubuntu 19.04 desktop and a virtual
environment was created with python3.8 -m venv venvrh. When attempting to use
pip to install a package, the following error was encountered:
(venvrh) jgossage@jgossage-XPS-8700
Jesvi Jonathan added the comment:
File "c:/Users/jesvi/Documents/GitHub/Jesvi-Bot-Telegram/scripts/main.py", line
144, in thread_test
p.start()
File
"C:\Users\jesvi\AppData\Local\Programs\Python\Python38\lib\multiprocessing\process.py",
line 121, in start
self.
Jonathan Hoffstadt added the comment:
I hoped someone else could complete it it.
Sent from my iPhone
> On Apr 4, 2021, at 10:03 AM, Irit Katriel wrote:
>
>
> New submission from Irit Katriel :
>
> Jonathan, I see you closed the PR. Did you intend to close
Jonathan Schweder added the comment:
a.niederbuehl tasks are free of context, meaning that the task does not know
what was done inside it, and by consequence is impossible to know when or not
release a lock. This is by design and normally in these cases you need to be
aware of the lock, by
Jonathan Schweder added the comment:
@kormang this is an expected behaviour, this is a problem even for the OS
level, just because it is impossible to know when the reader needs to stop
waiting, the best option here is to implement some timeout mechanism.
--
nosy: +jaswdr
Jonathan Schweder added the comment:
I was able to execute the example in Debian 10 + Python 3.10+
Did you execute the server too? You need to create two files, one for the
client code and one for the server code, the server as specified by the example
should be something like the code
Jonathan Schweder added the comment:
@jcolo
Awesome to hear that you were able to run the example, in fact I got in the
same trap, thinking the same that the example should carry the server and
client side, I guess we can improve the documentation to avoid it, I'll sent a
PR to mak
Change by Jonathan Schweder :
--
keywords: +patch
pull_requests: +24563
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25889
___
Python tracker
<https://bugs.python.org/issu
Jonathan Schweder added the comment:
@ueJone according to the
(RFC)[https://datatracker.ietf.org/doc/html/rfc6455#section-1.4] the FIN/ACK is
not normative, in other words is recommended but not required, I've checked the
syscalls of the server, see it below:
```
...
1561 15143 wr
Jonathan Schweder added the comment:
Simple example to reproduce the issue:
from http import cookies
C = cookies.SimpleCookie()
C["ys-api/mpegts/service"] = "blabla"
print(C.output())
@ra1nb0w so far as I have found [1][2], the "/" not a valid character for the
Jonathan Schweder added the comment:
@demonia you are more than welcome to send a PR, sent it and add a reference to
this issue, so it could be reviewed.
--
nosy: +jaswdr
___
Python tracker
<https://bugs.python.org/issue43
Jonathan Schweder added the comment:
@op368 I don't think that this is a bug, [1] literally uses this exact example
and shows the expected behaviour.
[1] https://datatracker.ietf.org/doc/html/rfc3986#section-5.4.2
--
nosy: +jaswdr
___
P
Jonathan Schweder added the comment:
Not exactly, in the RFC example they use a/b/c for the path, but when using
http:g there is no nested path, so it should be http:///g, no?
--
___
Python tracker
<https://bugs.python.org/issue40
Change by Jonathan Schweder :
--
keywords: +patch
nosy: +jaswdr
nosy_count: 1.0 -> 2.0
pull_requests: +25361
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26775
___
Python tracker
<https://bugs.python.org/i
Jonathan Schweder added the comment:
Hello @tkruse, I have made some research and found that when using the Chunked
transfer encoding [1], each chunk is preceded by its size in bytes, something
that really happen if you check the content of one downloaded file from the
example you provided
New submission from Jonathan Fine :
On Linux
>>> help(open('/dev/zero').writelines)
gives
However
https://docs.python.org/3/library/io.html#io.IOBase.writelines
gives
Write a list of lines to the stream. Line separators are not added, so it is
usual for each of the lines
Jonathan Fine added the comment:
I used my default Python, which is Python 3.6. However, with 3.7 and 3.8 I get
the same as Paul.
So I'm closing this as 'not a bug' (as there's not an already-fixed option for
closing).
--
resolution: works for me -> no
Jonathan Isaac added the comment:
Get the code!
--
nosy: +bonesisaac1982
___
Python tracker
<https://bugs.python.org/issue45037>
___
___
Python-bugs-list mailin
Jonathan Isaac added the comment:
Bugs
--
components: +Parser
nosy: +lys.nikolaou, pablogsal
type: -> crash
versions: +Python 3.11, Python 3.6
___
Python tracker
<https://bugs.python.org/issu
New submission from Jonathan Isaac :
Jonathan Isaac
Sent with Aqua Mail for Android
https://www.mobisystems.com/aqua-mail
--
messages: 400479
nosy: bonesisaac1982
priority: normal
severity: normal
status: open
title: Bugs
___
Python tracker
<ht
Jonathan Bell added the comment:
The CLA is signed, and I'm again able to work on this.
I was able to update this locally for Python 3 with a minimal test case. What
specifically were you looking for?
--
___
Python tracker
&
Change by Jonathan Bell :
--
pull_requests: +27604
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/29337
___
Python tracker
<https://bugs.python.org/iss
Jonathan Bell added the comment:
This issue is 13 years old. The original 2008 patch was used in a production
environment against an OpenVMS server identifying itself as MadGoat. That use
case involved downloading documents only, and no write permission was
available. Therefore the patch
Jonathan Bell added the comment:
No practical method exists to verify BLOCK transmission mode, which as
mentioned earlier, was rarely implemented even when this issue was opened.
Given that reality, I'm inclined to close this issue.
--
___
P
Jonathan Bell added the comment:
I should rephrase: There doesn't seem to be a practical way to verify BLOCK
transmission mode against actual servers in the wild. As the Wikipedia article
that Giampaolo referenced points out, BLOCK mode is a rarity that was primarily
supported on
New submission from Jonathan Scholbach :
Below "Examples and Recipes", the Documentation of collections.ChainMap has an
"Example of letting user specified command-line arguments take precedence over
environment variables which in turn take precedence over default values
Change by Jonathan Scholbach :
--
keywords: +patch
pull_requests: +16614
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17108
___
Python tracker
<https://bugs.python.org/issu
New submission from Jonathan Conder :
Other tools such as bash and less allow their history file to be customised
with an environment variable. Will add a patch for this in a bit.
This could also be customised using PYTHONSTARTUP, but then the user has to
duplicate a bunch of code which is
Change by Jonathan Conder :
--
keywords: +patch
pull_requests: +16658
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/17149
___
Python tracker
<https://bugs.python.org/issu
Jonathan Conder added the comment:
I agree. Did a cursory search before posting but missed it somehow
--
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from Jonathan Slenders :
We have a snippet of code that runs perfectly fine using the
`SelectorEventLoop`, but crashes *sometimes* using the `ProactorEventLoop`.
The traceback is the following. The exception cannot be caught within the
asyncio application itself (e.g., it is
Jonathan Slenders added the comment:
Suppressing `ConnectionResetError` in
`BaseProactorEventLoop._loop_self_reading`, like we do with `CancelledError`
seems to fix it.
Although I'm not sure what it causing the error, and whether we need to handle
it so
Jonathan Slenders added the comment:
Thanks Victor for the reply.
It looks like it's the self-socket in the BaseProactorEventLoop that gets
closed. It's exactly this FD for which the exception is raised.
We don't close the event loop anywhere. I also don't see `_clo
Jonathan Slenders added the comment:
It looks like the following code will reproduce the issue:
```
import asyncio
import threading
loop = asyncio.get_event_loop()
while True:
def test():
loop.call_soon_threadsafe(loop.stop)
threading.Thread(target=test).start
Jonathan Slenders added the comment:
Even simpler, the following code will crash after so many iterations:
```
import asyncio
loop = asyncio.get_event_loop()
while True:
loop.call_soon_threadsafe(loop.stop)
loop.run_forever()
```
Adding a little sleep of 0.01s after `run_forever
New submission from Jonathan Martin :
I'm trying to use SSL to validate clients connecting a an asyncio socket server
by specifying CERT_REQUIRED and giving a `cafile` containing the client
certificate to allow. client and server code attached.
Certificates are generated with:
openss
Change by Jonathan Mills :
--
nosy: +Jonathan Mills
___
Python tracker
<https://bugs.python.org/issue22107>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jonathan Mills :
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.org/issue22107>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Castro added the comment:
I had the same problem but when i was trying to upload the files using FTPS
with explicit TLS 1.2 over an AWS Lambda function.
Each time that i was trying upload a file, there was an lambda timeout on the
storbinary called, and the function ended whit error
Jonathan Fine added the comment:
A pre-computed table of primes might be better. Of course, how long should the
table be. There's an infinity of primes.
Consider
>>> 2**32
4294967296
This number is approximately 4 * (10**9). According to
https://en.wikipedia.org/wiki/Prime_
Jonathan Hsu added the comment:
While the current behavior may be initially unexpected, it does match the way
that python normally behaves when defining class variables. For example, the
following class will throw an exception because the function number_two() is
called before it is defined
Change by Jonathan Hsu :
--
nosy: +Jonathan Hsu
___
Python tracker
<https://bugs.python.org/issue38948>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jonathan Hsu :
--
nosy: +Jonathan Hsu
___
Python tracker
<https://bugs.python.org/issue36759>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Hsu added the comment:
I'd like to take on this issue if no one else is working on it.
--
___
Python tracker
<https://bugs.python.org/is
Jonathan Hsu added the comment:
This exception is raised because astimezone() ends up calling time.localtime()
to determine the appropriate time zone. If the datetime object has a pre-epoch
value, it passes a negative timestamp to time.localtime(). On Windows,
time.localtime() does not
Jonathan Hsu added the comment:
It appears this issue has been fixed, as I am unable to reproduce it on Windows
10/Python 3.7:
Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit
(AMD64)] on win32
Type "help", "copyright", "credi
Jonathan Hsu added the comment:
Thank you for the explanation.
--
___
Python tracker
<https://bugs.python.org/issue40025>
___
___
Python-bugs-list mailin
Jonathan Hsu added the comment:
This is caused when tarfile tries to write a symlink that already exists. Any
exceptions to os.symlink() as handled as if the platform doesn't support
symlinks, so it scans the entire tar to try and find the linked files. When it
resumes extraction, it
New submission from Jonathan Crall :
I first noticed this when testing xdoctest on Python 3.9, and then again when
using IPython.
I was finally able to generate a minimal working example in Python itself. The
following code:
python -c "print(eval(compile('[i for i in range(3)]
Jonathan Crall added the comment:
Ah, sorry. I neglected all the important information.
I tested this using:
Python 3.9.0a5 (default, Apr 23 2020, 14:11:34)
[GCC 8.3.0]
Specifically, I ran in a docker container:
DOCKER_IMAGE=circleci/python:3.9-rc
docker pull $DOCKER_IMAGE
docker run
Jonathan Crall added the comment:
This can be closed, but for completeness, the test you ran didn't verify that
the bug was fixed. This is because the hard coded compile flags I gave in my
example seem to have changed in Python 3.9 (is this documented?).
In python3.8 the compile fl
Jonathan Slenders added the comment:
The following patch to inspect.py solves the issue that inspect.signature()
returns the wrong signature on classes that inherit from Generic. Not 100% sure
though if this implementation is the cleanest way possible. I've been looking
into attach
New submission from Jonathan Frawley :
I am using cprofile and PStats to try and figure out where bottlenecks are in a
program. When I sum up all of the times in the "tottime" column, it only comes
to 57% of the total runtime. Is this due to rounding of times or some ot
Change by Jonathan Hsu :
--
nosy: +Jonathan Hsu
___
Python tracker
<https://bugs.python.org/issue39243>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Haigh added the comment:
The situation for type=int and unspecified nargs or nargs="?" is also
surprising:
Python 3.8.3 (default, May 21 2020, 12:19:36)
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license&quo
Jonathan Haigh added the comment:
>> But I wonder, was this situation discussed in the original bug/issue?
>Doesn't look like it:
I was looking at the wrong PR link. This has more discussion:
https://github.com/python/cpython/pull/13305.
nargs is discussed but I'm not s
Change by Jonathan Hoffstadt :
--
assignee: docs@python
components: Documentation
nosy: docs@python, jhoffstadt
priority: normal
severity: normal
status: open
title: Add DearPyGui to faq/gui.rst
type: enhancement
versions: Python 3.9
___
Python
Change by Jonathan Hoffstadt :
--
keywords: +patch
pull_requests: +21026
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21911
___
Python tracker
<https://bugs.python.org/issu
New submission from Jonathan Lahav :
Observation:
After creating around 1 widgets (verified with ttk.Label), no more widgets
get created, and sometimes graphical artifacts appear outside the application
window.
No error message or exception is raised.
Expected:
Either the limit can be
Jonathan Lahav added the comment:
Thank you for checking it so quickly, and answering nicely.
I indeed forgot to mention that it happened to me on Windows. Sorry for that.
The issue seems similar to the one you linked. I will try and take this to the
TCL community since it impacts our
New submission from Jonathan Finlay :
File "/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/main.py", line
1194, in _sig_remove_book
res = page.sig_close()
File "/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/form.py",
line 492, in sig_clos
Jonathan Finlay added the comment:
This is the patch for the issue
--
resolution: -> fixed
Added file: http://bugs.python.org/file25207/locale.patch
___
Python tracker
<http://bugs.python.org/issu
New submission from Jonathan Eunice:
In Python 3.6 and current repo (pre-3.7), the docstring for
collections.OrderedDict.__init__() stats that keyword argument order is
arbitrary. That is untrue if I properly understand PEP 468, which as of Python
3.6 makes the order of kwargs stable
Changes by Jonathan Eunice :
--
pull_requests: +2232
___
Python tracker
<http://bugs.python.org/issue30662>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Eunice added the comment:
PR updated to incorporate Serhiy Storchaka and Brett Cannon feedback.
--
___
Python tracker
<http://bugs.python.org/issue30
Changes by Jonathan Eunice :
--
pull_requests: +2250
___
Python tracker
<http://bugs.python.org/issue30603>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Eunice added the comment:
@emilyemorehouse Added new tests per your request:
https://github.com/python/cpython/pull/2206
--
___
Python tracker
<http://bugs.python.org/issue30
New submission from Jonathan Eunice:
The textwrap module goes to great lengths to "do the right thing" when it finds
the ASCII simulation of an em-dash (two or more consecutive hyphens), but it
does nothing to recognize and similarly treat true (Unicode) em-dashes (aka
'\N{EM
Changes by Jonathan Eunice :
--
pull_requests: +2269
___
Python tracker
<http://bugs.python.org/issue30680>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Eunice added the comment:
Agreed. It makes great sense that textwrap started as highly ASCII-centric. But
in the Python 3, Unicode-friendly era, ASCII-biased isn't where we should leave
things.
--
___
Python tracker
New submission from Jonathan Eunice:
The re module specially handles Unicode escapes (\u and \U) so that
even raw strings (r'...') have symbolic Unicode characters. But it has not
supported named Unicode escapes such as r'\N{EM DASH}', making the escapes for
Changes by Jonathan Eunice :
--
pull_requests: +2311
___
Python tracker
<http://bugs.python.org/issue30688>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jonathan Halcrow :
--
nosy: -jhalcrow
___
Python tracker
<http://bugs.python.org/issue2636>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Gossage added the comment:
This is a great example of abusing the multi-processing API and thus
creating timing errors that lead to locks not being released. What is
happening is that the example attempts to transmit data that is too
big for the underlying pipe and this creates the
Change by Jonathan Gossage :
Added file: https://bugs.python.org/file47980/lock1.result.txt
___
Python tracker
<https://bugs.python.org/issue35267>
___
___
Python-bug
Jonathan Gossage added the comment:
I think documentation is sufficient but I would like it to state the pitfalls
available if apply_async is not synchronized correctly which will happen
whenever the output does not fit the pipe buffer
Jonathan Fine added the comment:
This graceful reminder is most welcome. At present, it's not help I'm short of,
but time. I've given myself a reminder, to spend time on this before the end of
this month (January 2019).
Once again, thank you for this reminder. This is somethi
Jonathan Fine added the comment:
Based on a quick review of the python docs, the bug report, PEP 450
and this thread, I suggest
1. More carefully draw attention to the NaN feature, in the
documentation for existing Python versions.
2. Consider revising statistics.py so that it raises an
New submission from Jonathan Fine :
When len(data) is odd, median returns the average of the two middle values.
This average is computed using
i = n//2
return (data[i - 1] + data[i])/2
This results in the following behaviour
>>> from fractions import Fraction
Jonathan Fine added the comment:
I read PEP 450 as saying that statistics.py can be used by "any secondary
school student". This is not true for most Python libraries.
In this context, the difference between a float and an int is important.
Consider
statistics.median([2]
Jonathan Fine added the comment:
Here's the essence of a patch.
Suppose the input is Python integers, and the output is a mathematical integer.
In this case we can make the output a Python integer by using the helper
function
>>> def wibble(p, q):
... if type(p) == type(q
Jonathan Fine added the comment:
It might be better in my sample code to write
isinstance(p, int)
instead of
type(p) == int
This would fix Rémi's example. (I wanted to avoid thinking about (False //
True).)
For median([1, 1]), I am not claiming that 1.0 is wrong and 1 is right
Jonathan Fine added the comment:
I'm still thinking about this.
I find Steve's closing of the issue premature, but I'm not going to reverse it.
--
___
Python tracker
<https://bugs.pyt
Jonathan Fine added the comment:
The problem, as I understand it, is a mismatch between the code object being
executed and the file on disk referred to by the code object. When a module is
reloaded it is first recompiled, if the .py file is newer than the .pyc file.
(I've tested this
Jonathan Fine added the comment:
For information - all taken from docs and Lib/*.py
https://docs.python.org/3.7/library/traceback.html
traceback -- Print or retrieve a stack traceback
Source code: Lib/traceback.py
===
This module provides a standard interface to extract, format and print stack
Changes by Jonathan Goble :
--
nosy: +Jonathan Goble
___
Python tracker
<http://bugs.python.org/issue30299>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonathan Goble added the comment:
Any decision on this? I recently played around and found a reasonable use case
where UserString.__rmod__ does get called; run the attached userstringerror.py
to see it in action.
Basically, it seems the idea of UserString is to subclass it, tweak as desired
Jonathan Helmus added the comment:
In Anaconda we ship both Python 3.6.0 and 3.6.1 and have run into this issue
when building packages with 3.6.1 and importing them on 3.6.0. We are
discussing adding #undef PySlice_GetIndicesEx to the Python.h we ship with
Python 3.6.1. From the discussion
Jonathan Goble added the comment:
I would prefer to keep __rmod__ and fix the bug, given that the use case I
described above would otherwise create an inconsistency in subclasses, which
would be able to easily extend __mod__ by calling super(), but would be forced
to fully implement __rmod__
New submission from Jonathan Eunice:
A rare case in textwrap when max_lines insufficient and textwrap needs to
backtrack to a previous line to add the placeholder seems to lack test coverage.
This issue added as prereq for suggesting an additional test. PR imminent.
Code: Lib/textwrap.py (as
Changes by Jonathan Eunice :
--
pull_requests: +2054
___
Python tracker
<http://bugs.python.org/issue30591>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jonathan Eunice:
The case where textwrap.dedent() handles a declining indent level, requiring it
to revise its margin estimate downward, remains untested.
This issue is opened in support of an imminent PR that adds an appropriate test.
--
components: Library (Lib
Changes by Jonathan Eunice :
--
pull_requests: +2079
___
Python tracker
<http://bugs.python.org/issue30603>
___
___
Python-bugs-list mailing list
Unsubscribe:
101 - 200 of 349 matches
Mail list logo