John Belmonte added the comment:
> Either [...] we should lose the creation time check (not apply the
> transform), or we should still have the check (raise an error on invalid
> bits) which would still leave us in this situation.
That is only one option (which undesirable consequ
New submission from John L :
In an EAI (SMTPUTF8) mail session, AUTH usernames and passwords can be UTF-8,
not just ASCII.
The fix is easy. In smtplib.py, in three places in the auth() and
auth_cram_md5() routines change ".encode('ascii')" to
".encode(self.command
New submission from john kim :
I changed the path of the project using venv, so it didn't work properly.
I thought it worked successfully because there was a (venv) on the terminal
line.
However, the __VENV_DIR__ in the
set "VIRTUAL_ENV=__VENV_DIR__"
in the activate scri
john kim added the comment:
Thank you for your explanation of venv.
I understand that venv is not portable.
But I was confused because the venv was written on the left side of the
terminal line and it looked like it was working.
Therefore, if venv does not work, such as if __venv_dir__ is
john kim added the comment:
Okay. Thank you for the detailed explanation.
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
John Belmonte added the comment:
merged for Python 3.10
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
New submission from John L :
Some IMAP servers return an extra blank line after a counted literal value,
which makes imaplib crash.
MacOS mail and T'bird handle the blank line OK so it seems to be a somewhat
common bug.
--
components: Library (Lib)
messages: 395729
nosy: jrl
Change by John L :
--
keywords: +patch
pull_requests: +25286
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26701
___
Python tracker
<https://bugs.python.org/issu
Change by John L :
--
keywords: +patch
pull_requests: +25299
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/26709
___
Python tracker
<https://bugs.python.org/issu
John Belmonte added the comment:
> bpo-40816 took the much simpler approach of introducing a separate
> contextlib.AsyncContextDecorator class
How do I apply AsyncContextDecorator to the use case of wrapping either a sync
or async function with a synchronous context m
New submission from John Belmonte :
Over at the Trio project, we have evidence that
`AsyncExitStack.enter_async_context(foo())` is not actually equivalent to
`async with foo()` regarding raised exception context.
The symptom is a very long, unhelpful tracebacks because the __context__ of
Change by John Belmonte :
--
keywords: +patch
nosy: +jbelmonte
nosy_count: 3.0 -> 4.0
pull_requests: +25637
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/27089
___
Python tracker
<https://bugs.python.org/i
John Belmonte added the comment:
demonstrating the difference for async case:
import contextlib
import trio
async def background():
assert False
async def main1():
async with trio.open_nursery() as nursery:
nursery.start_soon(background
John Belmonte added the comment:
To clarify the problem case, I believe the discrepancy is seen when raising
exceptions as follows:
exc = foo()
try:
raise exc
finally:
exc.__context__ = None
(From my understanding, Trio has valid use cases for doing this since it wants
to control
John Belmonte added the comment:
[reposting the example, with source]
example:
class MyException(Exception):
pass
@contextmanager
def my_cm():
try:
yield
except BaseException:
exc = MyException()
try:
raise exc
John Belmonte added the comment:
cc: ncoghlan for help with ExitStack exception context
--
nosy: +ncoghlan
___
Python tracker
<https://bugs.python.org/issue44
John Snow added the comment:
Without sendmsg(), is there any other way to send SCM_RIGHTS ancillary messages
over an asyncio-managed UNIX socket?
(Is there a better place to discuss this? Kindly point me in the right
direction if so.)
--
nosy: +jnsnow
John Ehresman added the comment:
Is adding the field back an option at this point? It would mean that extensions
compiled against the release candidates may not be binary compatible with the
final release
My take is that use_tracing is an implementation and version dependent field,
and
New submission from John Wodder :
I use a custom script (and I'm sure many others have similar scripts as well)
for setting my prompt in Bash. It shows the name of the current venv (if any)
by querying the `VIRTUAL_ENV` environment variable, but if the venv was created
with a c
Change by John Belmonte :
--
type: -> behavior
versions: +Python 3.10, Python 3.11, Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issu
Change by John Belmonte :
--
pull_requests: +27078
pull_request: https://github.com/python/cpython/pull/28730
___
Python tracker
<https://bugs.python.org/issue44
Change by John Belmonte :
--
pull_requests: +27079
pull_request: https://github.com/python/cpython/pull/28731
___
Python tracker
<https://bugs.python.org/issue44
New submission from John Marshall :
<https://docs.python.org/3.11/library/multiprocessing.html#multiprocessing.Process.exitcode>
describes exitcode as
"The child’s exit code. This will be None if the process has not yet
terminated. A negative value -N indicates that the child was
John Andersen added the comment:
I ran into this today. Using a wrapper function around _make_zipfile due to
https://github.com/python/cpython/blob/d5650a1738fe34f6e1db4af5f4c4edb7cae90a36/Lib/shutil.py#L817-L819
where there is a check for if the format is zip then don't pass owne
New submission from John Howroyd :
>From the library documentation, it is an intended feature that an email part
>with content_maintype == "message" is treated as multipart. This does not
>seem to be compliant to MIME specification nor expected semantics. The
>attach
New submission from John Belmonte :
proposal: add a string formatting option to normalize negative 0 values to 0
use case: rounded display of a float that is nominally 0, where the
distraction of a flashing minus sign from minute changes around 0 is unwanted
example:
>>> '%~5
John Belmonte added the comment:
> To normalize negative 0.0 to 0.0 you can just add 0.0.
yes, I'm aware-- see "implementation" in the original post
> there is no need to change all formatting specifications
For adding 0 to work, it must be done after the rounding. Th
John Belmonte added the comment:
Here is the same proposal made for C++ `std::format`:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1496r2.pdf
It makes fair arguments for the feature's use, and explains why the problem is
hard to work around.
It was withdrawn by the a
John Belmonte added the comment:
> changing %-formatting doesn't seem viable
I'm concerned about treating %-formatting specially. As far as float/complex,
the logical and efficient place to put this change seems to be
PyOS_double_to_string(), which affects all three forma
John Belmonte added the comment:
I see now. PyOS_double_to_string() could gain the extra flag to coerce
negative zero but, out of the three formatting methods, only format() and
f-string would use the flag.
--
___
Python tracker
<ht
John Belmonte added the comment:
I'll share a draft PR soon (excluding Decimal), so far it's still looking
straightforward.
> Maybe old versions would correctly ignore the new bit being set.
That's one of the benefits of using bit flags in an ABI: backward-compatible
e
New submission from John Belmonte :
AsyncMock appears to be new in Python 3.8, but doc is missing info on when it
was introduced.
https://docs.python.org/3.8/library/unittest.mock.html#unittest.mock.AsyncMock
--
assignee: docs@python
components: Documentation
messages: 356290
nosy
John Belmonte added the comment:
yes, will do
--
___
Python tracker
<https://bugs.python.org/issue38753>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by John Belmonte :
--
keywords: +patch
pull_requests: +16608
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/17102
___
Python tracker
<https://bugs.python.org/issu
New submission from John Liao :
from tkinter import *
master = Tk()
master.resizable(False, False)
master.geometry("100x100")
master.mainloop()
When using the simple code above to create a fix size window, the actual window
client area's size is about 126x126 pixels.
Envir
New submission from John Goerzen :
The zipfile.py standard library component contains a number of pieces of
questionable handling of non-UTF8 filenames. As the ZIP file format predated
Unicode by a significant number of years, this is actually fairly common with
older code.
Here is a very
New submission from John Goerzen :
This simple recipe fails:
>>> import dbm
>>> dbm.open(b"foo")
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.7/dbm/__init__.py", line 78, in open
result = whichdb(fil
John Goerzen added the comment:
As has been pointed out to me, the surrogateescape method could be used here;
however, it is a bit of an odd duckling itself, and the system's open() call
accepts bytes; couldn't this as well?
--
___
Pyth
John Goerzen added the comment:
I can tell you that the zip(1) on Unix systems has never done re-encoding to
cp437; on a system that uses latin-1 (or any other latin-* for that matter) the
filenames in the ZIP will be encoded in latin-1. Furthermore, this doesn't
explain the corru
John Goerzen added the comment:
Hi Jon,
I've read your article in the gist, the ZIP spec, and the article you linked
to. As the article you linked to
(https://marcosc.com/2008/12/zip-files-and-encoding-i-hate-you/) states,
"Implementers just encode file names however they wan
New submission from John-Mark :
The `configure` script for building what appears to be any version of python
(I've manually checked 2.7, 3.6.6, and master) uses simple substring-in-path
checks to determine the compiler vendor. This is problematic because it is very
easy for it to pr
Change by John Haley :
--
nosy: John Haley
priority: normal
severity: normal
status: open
title: new world
___
Python tracker
<https://bugs.python.org/issue39
New submission from John Smith :
preamble: I am aware that I am not the first to encounter this issue but
neither I could identify a preexisting ticket which fully matches nor is the
commonly recommended "solution" (stay away from IDLE) satisfying.
environment: win10, python 3.7 (t
John Smith added the comment:
py -m idlelib -n path output:
Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
No Subprocess
WARNING: Runnin
Change by John Smith :
Added file:
https://bugs.python.org/file48901/IDLE_threading_issue_min_example1.py
___
Python tracker
<https://bugs.python.org/issue39
John Smith added the comment:
P.S. here (other computer but with same observed behavior) I have a 3.6 32bit
as one can see from the output.
--
___
Python tracker
<https://bugs.python.org/issue39
John Smith added the comment:
Interesting finding. Just some thoughs: I have to disagree on the "the
experience with input() in IDLE is more useful and less confusing, especially
to beginners" part.
Here are some reasons:
1. If a beginner starts with threading and expect a
Change by John Andersen :
--
nosy: +pdxjohnny
___
Python tracker
<https://bugs.python.org/issue37247>
___
___
Python-bugs-list mailing list
Unsubscribe:
John Andersen added the comment:
I'm going to take a stab at this by adding build_swig which will run if the
list of files only contains .i files.
--
___
Python tracker
<https://bugs.python.org/is
New submission from John Taylor :
The example for os.walkdir should be less destructive. It currently
recursively removes all files and directories. I will be submitting a PR on
GitHub.
--
assignee: docs@python
components: Documentation
messages: 365625
nosy: docs@python, jftuga
John Taylor added the comment:
https://github.com/python/cpython/pull/19313
I have just signed the CLA.
--
___
Python tracker
<https://bugs.python.org/issue40
John Taylor added the comment:
I would prefer an example that does not actually modify the file system. Is
there any way this could be achieved, yet still demonstrate why topdown=False
is necessary?
--
___
Python tracker
<ht
John Taylor added the comment:
I made the suggested change to just print the os.remove() statements (instead
of executing them) and also removed the 'skip news'.
--
___
Python tracker
<https://bugs.python.o
New submission from John Belmonte :
Please add aclosing() to contextlib, the async equivalent of closing().
It's needed to ensure deterministic call of aclose() on the resource object at
block exit.
It's been available in the async_generator module for some time. However that
John Levon added the comment:
closefrom() is on both Solaris and illumos too - and might even have originated
there as an API - so if that's the issue, it should be trivially fixable
--
___
Python tracker
<https://bugs.python.org/is
New submission from John Andersen :
When importing a file using importlib the id() of the object being imported is
not the same as when imported using the `import` keyword. I feel like this is a
bug. As if I have a package which is using relative imports, and then I import
all of the files
John Hagen added the comment:
With PEP 594 (https://www.python.org/dev/peps/pep-0594/) in the pipeline, is it
time that optparse correctly emits DeprecationWarnings?
--
___
Python tracker
<https://bugs.python.org/issue25
John Andersen added the comment:
Thank you! :) I must have missed that somehow
--
___
Python tracker
<https://bugs.python.org/issue40427>
___
___
Python-bug
New submission from John Smith :
Hi,
I'm running the following code in a Jupyter notebook (so there is already a
running loop).
`run_coro` (non-async function) adds given coroutines to the loop with
`loop.create_task`. I want to return the task objects created by
`loop.create_tas
Change by John Smith :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue40487>
___
___
Python-bugs-list mailing list
Unsubscrib
John Smith added the comment:
Additional note:
In a almost identical set-up, the simple fact of assigning the task object to a
variable:
`task = loop.create_task(coroutine())`
instead of just calling:
`loop.create_task(coroutine())`
...results in the same unexpected behavior in exception
John Andersen added the comment:
I haven't made much progress on the fix yet. But I have a workaround here:
https://github.com/tpm2-software/tpm2-pytss/commit/9952e374b4d9b854aea12c667dd7d7ab4ad501a9
--
___
Python tracker
<https://bugs.py
John Beeler added the comment:
For what it's worth, a library I use currently hacks in this functionality by
accessing the private method _create_connection_transport directly. This is
done to allow a SOCK_RAW to be passed (which is itself required to then enable
asyncio to be use
New submission from John McCabe :
I've built an application using tkinter (see below). I'm fairly new to tkinter,
despite having substantial software experience (33 years), so the layout might
be a bit odd/wrong, and the example obviously doesn't follow PEP-8 guide
John McCabe added the comment:
Is behaviour that differs between platforms, using components that are listed
in the "classification" -> "Components" section NOT a bug then?
--
___
Python tracker
<https://
John McCabe added the comment:
It's reproducible in both 3.8 and 3.9 on Windows 10.
--
versions: +Python 3.9 -Python 3.6
___
Python tracker
<https://bugs.python.org/is
John McCabe added the comment:
In addition, changing "Entry" to "Text" (+ necessary associated changes) makes
no difference to the outcome. Removing the call to tk.messagebox.askquestion()
does. It appears that tk.messagebox.askquestion() is screwing something up on
W
John McCabe added the comment:
Thank you.
Wrt to your initial suggestion, I recognise Python's popularity will make
things busy, and I will ask if anyone knows of a workaround in other fora, but
a bug's a bug and, IMO, if something behaves differently on different
platforms, usin
John McCabe added the comment:
@epaine Thank you for your comments. Although the order of events in the
example you quoted isn't the same as in the application I'm using
(tk.messagebox.askquestion() is called a long time before the Enter widget is
created in the application, not
John McCabe added the comment:
Thank you all for your time. I hope you don't feel it has been wasted since, at
the very least, it confirms an issue in tkinter usage, albeit that the actual
cause of the issue is TK itself.
--
___
Python tr
John McCabe added the comment:
Fair point about being "too" long. Having seen a "short" example that,
unfortunately, didn't actually exhibit the problem, I thought that providing a
"smallish" example that definitely did exhibit the issue was quicker tha
John McCabe added the comment:
Apologies, I couldn't find an edit button! That last comment should've said:
"As before, changing:
self.createWidgets()
to:
self.after_idle(self.createWidgets)
avoids the issue."
--
___
Py
John McCabe added the comment:
Thank you for that information and analysis Terry. As you can see, at the end
of the addNew() function in the original example, I'd added:
---
if initialLeft is not None:
rightBox.insert(tk.END, initia
New submission from John Brearley :
The first attached script ada_dbg1.py.txt which uses simple hardcoded import
statements, the creation of ads1115 objects work fine. The second attached
script ada_dbg2.py.txt uses a loop to import a variable list of packages, which
allows for more graceful
Change by John Brearley :
Added file: https://bugs.python.org/file49742/ada_dbg2.py
___
Python tracker
<https://bugs.python.org/issue42928>
___
___
Python-bugs-list m
Change by John Brearley :
Added file: https://bugs.python.org/file49743/print_data.py
___
Python tracker
<https://bugs.python.org/issue42928>
___
___
Python-bugs-list m
John Brearley added the comment:
Hi Guido: So the Adafruit CircuitPython forum has already said they aren't
really sure this is their issue or not, see:
https://github.com/adafruit/Adafruit_CircuitPython_ADS1x15/issues/66
What else would I need to do to get this looked at by p
John Reese added the comment:
Is there an ETA for having Big Sur support backported to the 3.8 branch, or is
it already there and I'm just not seeing it here?
--
nosy: +jreese
___
Python tracker
<https://bugs.python.org/is
John Rouillard added the comment:
Sorry for the spam, but there is no silent post setup for this tracker.
On https://github.com/python/psf-infra-meta/issues/74 in July E-paine reports
that he can't post to this issue. I just created an account linked to github to
see if I am able to
John Hennig added the comment:
@Floris:
> Not mentioning Path.resolve()'s behavior w.r.t. non-existing files since
that's documented in resolve() itself.
I don't see it mentioned in the documentation of `resolve()`, or anywhere else
in the docs, that on Windows (but not
New submission from John Belmonte :
time.thread_time is supposed to be available on OS X 10.12 and newer.
Yet it's reported to raise ImportError on macOS Big Sur (11.2.1) on Python
3.9.2 (python.org download). (Reported by Quentin Pradet.)
It is available in other OS X Python builds,
John Levon added the comment:
I checked, and the supposition this is due to lack of closefrom() doesn't seem
to be correct. Running the test case and looking at 'truss' output, there is no
large number of close() that one would expect if this was the issue.
I don't se
John Belmonte added the comment:
Given the lack of deterministic cleanup for iterators
(https://www.python.org/dev/peps/pep-0533/), aclosing() is the way to ensure
deterministic cleanup given any API using async iteration.
--
___
Python tracker
John Belmonte added the comment:
highlighting from PEP 533:
> Async generators cannot do cleanup at all without some mechanism for
> deterministic cleanup that people will actually use, and async generators are
> particularly likely to hold resources like file de
New submission from john passaro :
I expected the following code to print True:
import os
from unittest.mock import call, Mock, patch
parent = Mock()
parent.getenv = patch('os.getenv')
with parent.getenv:
os.getenv('FOO', 'bar')
expected = [call.getenv
John Belmonte added the comment:
Thank you heckad!
I'm in need of a decorating asynccontextmanager, and glad that an
implementation is in the works that I can copy from in the meantime.
I hope Yuri reviews the PR before long.
--
nosy: +John Bel
john mathew added the comment:
I am Grateful that you shared this informational post. Your website has
everything that I have been looking for so long. Your knowledge about this
topic is quite impressive. I am amazed by the content you shared on this
website.
I am John Mathew a technical
New submission from john mathew :
We provide Technical Help to our users by a diagnosis of their computer and
other devices. And if there is an issue to be solved, we give out the solution.
This helps the user to avoid any existing issues.
http://tplinklogins.com
http
New submission from John McCrone :
The method platform.win32_ver() produces the client version for the release
rather than the server version on a Windows domain controller.
This is easy to recreate on 3.8.5. For example, on a Windows 2012 server
running as a domain controller, the method
John Hagen added the comment:
I noticed this new feature was not added to the Python 3.9 what's new:
https://docs.python.org/3.9/whatsnew/3.9.html#venv
Should it be?
--
nosy: +John Hagen
___
Python tracker
<https://bugs.python.org/is
Change by John Belmonte :
--
keywords: +patch
nosy: +jbelmonte
nosy_count: 9.0 -> 10.0
pull_requests: +21613
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22640
___
Python tracker
<https://bugs.python.org/i
John Belmonte added the comment:
Part of this issue (#1) was intended to be addressed by
https://github.com/python/cpython/pull/1 which added an `__iter__`
implementation to Flag and IntFlag. (The PR did not reference this issue, and
was already merged last month.)
However that PR
John Belmonte added the comment:
> Just a comment, (1) is analogous to str. iter('abc') gives only 'a', 'b' and
> 'c', while contains accepts '', 'ab', 'bc', and 'abc' too. At least in my
> mind
John Belmonte added the comment:
I think https://github.com/python/cpython/pull/1 should be reverted
(considering the design issue, performance issue, and bugs), and lets have a
proper design and review.
While just reading the code, I found an existing bug in Flag. And the new
Change by John Belmonte :
--
pull_requests: +21633
versions: +Python 3.10 -Python 3.9
pull_request: https://github.com/python/cpython/pull/21545
___
Python tracker
<https://bugs.python.org/issue40
John Belmonte added the comment:
It's completely undocumented, but today I noticed that Flag.__contains__() is
actually a subset operation.
def __contains__(self, other):
...
return other._value_ & self._value_ == other._value_
It's an unfortunate depa
John Belmonte added the comment:
I agree that a bit and one-bit flag are the same.
> only 'x' was in 'xyz', not 'xy
I don't understand the comparison, because str 'a in b' tests if 'a' is a
subsequence of 'b'. It is not a s
Change by John Belmonte :
--
nosy: +jbelmonte
nosy_count: 4.0 -> 5.0
pull_requests: +21698
pull_request: https://github.com/python/cpython/pull/22734
___
Python tracker
<https://bugs.python.org/issu
New submission from John Ehresman :
Compiling pillow for a debug build fails without -j1 because distutils
parallelizes the build, but there are problems with locking the .pdb file
during when compiling the C files. An example of the error message from a
cl.exe command is:
fatal error
John Ehresman added the comment:
It is a setuptools bug and I've opened a setuptools issue at
https://github.com/pypa/setuptools/issues/2442
Thanks!
--
resolution: -> third party
stage: -> resolved
status: open -> closed
___
301 - 400 of 1249 matches
Mail list logo