[issue44242] enum.IntFlag regression: missing values cause TypeError

2021-05-26 Thread John Belmonte
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

[issue44269] smtplib AUTH command doesn't handle EAI arguments

2021-05-30 Thread John L
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

[issue44286] venv activate script would be good to show failure.

2021-06-02 Thread john kim
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

[issue44286] venv activate script would be good to show failure.

2021-06-03 Thread john kim
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

[issue44286] venv activate script would be good to show failure.

2021-06-04 Thread john kim
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

[issue40213] contextlib.aclosing()

2021-06-11 Thread John Belmonte
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

[issue44408] imaplib fails when server sends extra blank line after literal value

2021-06-12 Thread John L
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

[issue44408] imaplib fails when server sends extra blank line after literal value

2021-06-12 Thread John L
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

[issue44269] smtplib AUTH command doesn't handle EAI arguments

2021-06-13 Thread John L
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

[issue37398] contextlib.ContextDecorator decorating async functions

2021-06-26 Thread John Belmonte
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

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-07-09 Thread John Belmonte
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

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-07-11 Thread John Belmonte
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

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-07-11 Thread John Belmonte
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

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-07-11 Thread John Belmonte
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

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-07-11 Thread John Belmonte
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

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-07-12 Thread John Belmonte
John Belmonte added the comment: cc: ncoghlan for help with ExitStack exception context -- nosy: +ncoghlan ___ Python tracker <https://bugs.python.org/issue44

[issue43232] Prohibit previously deprecated operations on asyncio.trsock.TransportSocket

2021-09-17 Thread John Snow
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

[issue43760] The DISPATCH() macro is not as efficient as it could be (move PyThreadState.use_tracing)

2021-09-20 Thread John Ehresman
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

[issue45264] venv: Make activate et al. export custom prompt prefix as an envvar

2021-09-22 Thread John Wodder
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

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-10-01 Thread John Belmonte
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

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-10-04 Thread John Belmonte
Change by John Belmonte : -- pull_requests: +27078 pull_request: https://github.com/python/cpython/pull/28730 ___ Python tracker <https://bugs.python.org/issue44

[issue44594] AsyncExitStack.enter_async_context() is mishandling exception __context__

2021-10-04 Thread John Belmonte
Change by John Belmonte : -- pull_requests: +27079 pull_request: https://github.com/python/cpython/pull/28731 ___ Python tracker <https://bugs.python.org/issue44

[issue45554] multiprocessing exitcode is insufficiently documented

2021-10-21 Thread John Marshall
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

[issue39846] Register .whl as a unpack format in shutil unpack

2021-10-25 Thread John Andersen
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

[issue45626] Email part with content type message is multipart.

2021-10-27 Thread John Howroyd
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

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread John Belmonte
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

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread John Belmonte
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

[issue45995] string formatting: normalize negative zero

2021-12-06 Thread John Belmonte
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

[issue45995] string formatting: normalize negative zero

2021-12-07 Thread John Belmonte
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

[issue45995] string formatting: normalize negative zero

2021-12-07 Thread John Belmonte
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

[issue45995] string formatting: normalize negative zero

2021-12-07 Thread John Belmonte
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

[issue38753] AsyncMock not cited as new in 3.8

2019-11-08 Thread John Belmonte
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

[issue38753] AsyncMock not cited as new in 3.8

2019-11-09 Thread John Belmonte
John Belmonte added the comment: yes, will do -- ___ Python tracker <https://bugs.python.org/issue38753> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38753] AsyncMock not cited as new in 3.8

2019-11-09 Thread John Belmonte
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

[issue38783] the window size is bigger than the specific size when create a window with a fix size in Windows platform

2019-11-12 Thread John Liao
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

[issue38861] zipfile: Corrupts filenames containing non-UTF8 characters

2019-11-19 Thread John Goerzen
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

[issue38864] dbm: Can't open database with bytes-encoded filename

2019-11-20 Thread John Goerzen
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

[issue38864] dbm: Can't open database with bytes-encoded filename

2019-11-20 Thread John Goerzen
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

[issue38861] zipfile: Corrupts filenames containing non-UTF8 characters

2019-11-24 Thread John Goerzen
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

[issue38861] zipfile: Corrupts filenames containing non-UTF8 characters

2019-11-25 Thread John Goerzen
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

[issue38961] Flaky detection of compiler vendor

2019-12-03 Thread John-Mark
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

[issue39373] new world

2020-01-17 Thread John Haley
Change by John Haley : -- nosy: John Haley priority: normal severity: normal status: open title: new world ___ Python tracker <https://bugs.python.org/issue39

[issue39724] IDLE threading + stdout/stdin observed blocking behavior

2020-02-22 Thread John Smith
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

[issue39724] IDLE threading + stdout/stdin observed blocking behavior

2020-02-22 Thread John Smith
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

[issue39724] IDLE threading + stdout/stdin observed blocking behavior

2020-02-22 Thread John Smith
Change by John Smith : Added file: https://bugs.python.org/file48901/IDLE_threading_issue_min_example1.py ___ Python tracker <https://bugs.python.org/issue39

[issue39724] IDLE threading + stdout/stdin observed blocking behavior

2020-02-22 Thread John Smith
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

[issue39724] IDLE threading + stdout/stdin observed blocking behavior

2020-02-23 Thread John Smith
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

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2020-03-26 Thread John Andersen
Change by John Andersen : -- nosy: +pdxjohnny ___ Python tracker <https://bugs.python.org/issue37247> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2020-03-27 Thread John Andersen
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

[issue40160] documentation example of os.walk should be less destructive

2020-04-02 Thread John Taylor
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

[issue40160] documentation example of os.walk should be less destructive

2020-04-02 Thread John Taylor
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

[issue40160] documentation example of os.walk should be less destructive

2020-04-03 Thread John Taylor
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

[issue40160] documentation example of os.walk should be less destructive

2020-04-03 Thread John Taylor
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

[issue40213] contextlib.aclosing()

2020-04-06 Thread John Belmonte
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

[issue37790] subprocess.Popen() is extremely slow (with close_fds=True which is the default) on Illumos

2020-04-24 Thread John Levon
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

[issue40427] importlib of module results in different id than when imported with import keyword

2020-04-28 Thread John Andersen
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

[issue25521] optparse module does not emit DeprecationWarning

2020-04-29 Thread John Hagen
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

[issue40427] importlib of module results in different id than when imported with import keyword

2020-04-29 Thread John Andersen
John Andersen added the comment: Thank you! :) I must have missed that somehow -- ___ Python tracker <https://bugs.python.org/issue40427> ___ ___ Python-bug

[issue40487] Unexpected exception handler behavior in Jupyter when returning task objects created with create_task

2020-05-03 Thread John Smith
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

[issue40487] Unexpected exception handler behavior in Jupyter when returning task objects created with create_task

2020-05-03 Thread John Smith
Change by John Smith : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue40487> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue40487] Unexpected exception handler behavior in Jupyter when returning task objects created with create_task

2020-05-03 Thread John Smith
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

[issue37247] swap distutils build_ext and build_py commands to allow proper SWIG extension installation

2020-05-06 Thread John Andersen
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

[issue38285] Asyncio BaseEventLoop can support socket types other than SOCK_STREAM

2021-01-05 Thread John Beeler
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
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://

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-08 Thread John McCabe
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-09 Thread John McCabe
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-10 Thread John McCabe
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-10 Thread John McCabe
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

[issue42867] Entry Widget not editable on Windows 10, but is on Linux Ubuntu 16.04

2021-01-11 Thread John McCabe
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

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread John Brearley
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

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread John Brearley
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

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread John Brearley
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

[issue42928] adafruit_ads1x15.ads1115 not comaptible with globals()[pkg_trunc] = importlib.import_module(pkg_trunc)

2021-01-14 Thread John Brearley
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

[issue41100] Support macOS 11 and Apple Silicon Macs

2021-02-08 Thread John Reese
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

[issue39093] tkinter objects garbage collected from non-tkinter thread cause crash

2021-02-16 Thread John Rouillard
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

[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2021-02-24 Thread John Hennig
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

[issue43370] thread_time not available on python.org OS X builds

2021-03-02 Thread John Belmonte
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,

[issue37790] subprocess.Popen() is sometimes slower in python3 under illumos

2020-05-19 Thread John Levon
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

[issue40213] contextlib.aclosing()

2020-07-03 Thread John Belmonte
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

[issue40213] contextlib.aclosing()

2020-07-03 Thread John Belmonte
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

[issue41296] unittest.mock: patched mocks do not propagate calls to parent when set via setattr

2020-07-14 Thread john passaro
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

[issue40816] Add missed AsyncContextDecorator to contextlib

2020-07-17 Thread John Belmonte
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

[issue37625] Class variable is still accessible after class instance has been overwritten out

2020-08-06 Thread john mathew
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

[issue41495] Technical advise

2020-08-06 Thread john mathew
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

[issue41535] platform win32_ver produces incorrect value for release on Windows domain controllers

2020-08-12 Thread John McCrone
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

[issue34556] Add --upgrade-deps to venv module

2020-09-05 Thread John Hagen
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

[issue40213] contextlib.aclosing()

2020-10-10 Thread John Belmonte
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

[issue38250] enum.Flag should be more set-like

2020-10-11 Thread John Belmonte
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

[issue38250] enum.Flag should be more set-like

2020-10-11 Thread John Belmonte
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

[issue38250] enum.Flag should be more set-like

2020-10-11 Thread John Belmonte
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

[issue40213] contextlib.aclosing()

2020-10-11 Thread John Belmonte
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

[issue38250] enum.Flag should be more set-like

2020-10-13 Thread John Belmonte
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

[issue38250] enum.Flag should be more set-like

2020-10-13 Thread John Belmonte
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

[issue38250] enum.Flag should be more set-like

2020-10-16 Thread John Belmonte
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

[issue42080] Disutils on windows debug build fails without -j1

2020-10-19 Thread John Ehresman
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

[issue42080] Disutils on windows debug build fails without -j1

2020-10-19 Thread John Ehresman
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 ___

<    1   2   3   4   5   6   7   8   9   10   >