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 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 Fine added the comment:
My main concern is that the door not be closed on improving the user experience
relating to this behaviour of the compiler.
This issue was raised as a bug for the compiler (which is C-coded). I'd be very
happy for this issue to be closed as 'not
Jonathan Fine added the comment:
Many thanks Pablo for the clear explanation. I'd prefer that the issue remain
open, as there's an important user experience issue here. I suspect there are
other similar examples of how the compiler error messages could be improved.
Here'
New submission from Jonathan Fine :
This arises from a request for help made by Nguyễn Ngọc Tiến to the visually
impaired programmers lists, see
https://www.freelists.org/post/program-l/python,48. Please keep this in mind.
Nguyễn asked for help with the syntax error created by
===
count = 0
Jonathan added the comment:
True, have to admit, that I forgot to search first, that really looks like it
is the same problem, especially when looking at
https://bugs.python.org/msg289212. Would say this one can be closed.
--
nosy: +helo9
stage: -> resolved
status: open ->
Change by Jonathan :
--
nosy: -helo9
___
Python tracker
<https://bugs.python.org/issue46802>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Jonathan :
I have issues unpacking binary data, produced by C++. The appended jupyter
notebook shows the problem. It is also uploaded to github gist:
https://gist.github.com/helo9/04125ae67b493e505d5dce4b254a2ccc
--
components: ctypes
files
Jonathan added the comment:
I still don't get how UNIQUESTRING is the longest even with autojunk=True, but
that's an implementation detail and I'll trust you that it's working as
expected.
Given this, I'd suggest the following then:
* `Autojunk=False` should be t
Jonathan added the comment:
Gah. I mean 0.008 in both directions. I'm just going to be quiet now. :-)
--
___
Python tracker
<https://bugs.python.org/is
Jonathan added the comment:
(Like the idiot I am, the example code is wrong. `autojunk` parameter should
*not* be set for either of them to get the stated wrong results).
In place of "UNIQUESTRING", any unique 3 character string triggers it (QQQ,
EEE, ZQU...). And in those cases
New submission from Jonathan :
The following two strings are identical other than the text "UNIQUESTRING".
UNIQUESTRING is at the start of first and at the end of second.
Running the below gives the following output:
0.99830220713073
0.99830220713073
0.02376910016977928
Jonathan Lahav added the comment:
Here's a discussion about the issue. I asked about it in comp.lang.tcl:
https://groups.google.com/g/comp.lang.tcl/c/C-uQIH-wP5w
Someone there explains what's happening.
--
___
Python track
New submission from Jonathan Lahav :
Happens on Windows.
Observation:
When an expanded Combobox is destroyerd, widgets in the window can't get focus
until Alt+Tab forth and back.
Buttons can still be clicked, but focus can't be obtained by widgets, entries
fro example, not by click
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
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:
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
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:
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
&
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 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
Jonathan Isaac added the comment:
Get the code!
--
nosy: +bonesisaac1982
___
Python tracker
<https://bugs.python.org/issue45037>
___
___
Python-bugs-list mailin
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
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 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
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:
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
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:
@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:
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:
@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
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:
@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
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:
@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:
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 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
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.
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
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
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 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
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
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
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
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
Change by Jonathan Hsu :
--
nosy: +Jonathan Hsu
___
Python tracker
<https://bugs.python.org/issue39243>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 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
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 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
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:
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:
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:
I'd like to take on this issue if no one else is working on it.
--
___
Python tracker
<https://bugs.python.org/is
Change by Jonathan Hsu :
--
nosy: +Jonathan Hsu
___
Python tracker
<https://bugs.python.org/issue36759>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Jonathan Hsu :
--
nosy: +Jonathan Hsu
___
Python tracker
<https://bugs.python.org/issue38948>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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 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
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:
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
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
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:
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:
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
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 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
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
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 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 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
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
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 :
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 added the comment:
>What fallacy?
You appeared to be saying (to paraphrase) "no-one else has ever reported this,
so it's never been a problem". That's a fallacy.
> I was responding to "does anyone else have opinions on this?"
I was asking if an
Jonathan added the comment:
> I'm not sure your tone is particularly constructive here.
Apologies, my bad.
> Which code are you looking at?
The documentation code: `class logging.StreamHandler(stream=None)`. Sorry, I
don't know what you'd call that. I'm not re
Jonathan added the comment:
> The devil is in the detail. If stream=sys.stderr is specified, that takes
> effect at import time. If stream=None is specified and the implementation
> chooses to treat that as sys.stderr, that takes effect at the time of the
> call. The two are no
Change by Jonathan :
--
status: -> open
___
Python tracker
<https://bugs.python.org/issue37563>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Jonathan :
https://docs.python.org/2/library/logging.handlers.html
https://docs.python.org/3/library/logging.handlers.html
Both say:
"""class logging.StreamHandler(stream=None)
Returns a new instance of the StreamHandler class. If stream is specified, the
Jonathan added the comment:
> Learning is not a waste of time. You're entitled to your opinion, but this is
> not a bug in logging. We'll have to agree to disagree.
I agree and value learning a great deal. However learning should happen on your
own time, NOT when a program
Jonathan added the comment:
> I have no idea what you mean by this.
I don't see how I can be clearer. What are the reasons for NOT implementing
logging to file be unicode as a default? Logging to screen is unicode as a
default. What are the reasons for not wanting consistency?
&g
Jonathan added the comment:
> Did you look at the basicConfig documentation before raising this issue?
This seems like an attempt at victim blaming. But yes, I did. In fact, this is
now the third time I've looked at that page - once before raising this issue,
once before my previo
Jonathan added the comment:
Thank you for your comments but this wasn't a question and I maintain this is a
bug, or at least undesirable behaviour. I'd consider it a bug in my own
software.
Reasoning:
* It's an inconsistent default with the logging to screen. This causes m
Jonathan added the comment:
It definitely claims to be "utf-8" in NotePad++. I've attached it if you want
to double-check.
(Windows 7)
--
Added file: https://bugs.python.org/file48380/my_log.log
___
Python tracker
<https
New submission from Jonathan :
Python is inconsistent in how it handles errors that have some unicode
characters. It works to screen but fails to log
This works:
```
>>> import logging
>>> logging.error('จุด1')
ERROR:root:จุด1
```
The following bre
New submission from Jonathan Horn :
I encountered a problem with replacing the 'Subject' header of an email. After
serializing it again, the utf8 encoding was wrong. It seems to be occurring
when folding the internal header objects.
Example:
>> email.policy.default.fold
Jonathan Fine added the comment:
This is was closed and tagged as resolved in 2012. The status has not been
changed since then.
Using dict(a=1, ...) provides a workaround, but only when the keys are valid as
variable names. The general workaround is something like
helper([
(1
Jonathan Fine added the comment:
I mention this issue, and related pages, in
[Python-ideas] dict literal allows duplicate keys
https://mail.python.org/pipermail/python-ideas/2019-March/055717.html
It arises from a discussion of PEP 584 -- Add + and - operators to the built-in
dict class
Jonathan Fine added the comment:
I mention this issue, and related pages, in
[Python-ideas] dict literal allows duplicate keys
https://mail.python.org/pipermail/python-ideas/2019-March/055717.html
It arises from a discussion of PEP 584 -- Add + and - operators to the built-in
dict class
Jonathan added the comment:
The "ProcessPoolExecutor Example" on this page breaks for me:
https://docs.python.org/3/library/concurrent.futures.html
--
___
Python tracker
<https://bugs.python.o
Jonathan added the comment:
There's also this error too:
Traceback (most recent call last):
File "c:\_libs\Python37\lib\multiprocessing\process.py", line 297, in
_bootstrap
self.run()
File "c:\_libs\Python37\lib\multiprocessing\process.py", line 99, in r
New submission from Jonathan :
I'm using Concurrent Futures to run some work in parallel
(futures.ProcessPoolExecutor) on windows 7 x64. The code works fine in 3.6.3,
and 3.5.x before that.
I've just upgraded to 3.7.2 and it's giving me these errors:
Process SpawnProcess-6:
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
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:
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:
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:
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:
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]
1 - 100 of 349 matches
Mail list logo