[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
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

[issue1343] XMLGenerator: nice elements

2008-05-10 Thread Jonathan Hitchcock
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

[issue4560] "Flouted", not "flaunted"

2008-12-06 Thread Jonathan Feinberg
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

[issue47157] bijective invertible map

2022-03-29 Thread Jonathan Balloch
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

[issue47157] bijective invertible map

2022-03-29 Thread Jonathan Balloch
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/ > &

[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-11 Thread Jonathan Gossage
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

[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-12 Thread Jonathan Gossage
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

[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Jonathan Gossage
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

[issue38263] [Windows] multiprocessing: DupHandle.detach() race condition on DuplicateHandle(DUPLICATE_CLOSE_SOURCE)

2021-04-05 Thread Jesvi Jonathan
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.

[issue41570] Add DearPyGui to faq/gui.rst

2021-04-05 Thread Jonathan Hoffstadt
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

[issue43991] asyncio lock does not get released after task is canceled

2021-05-03 Thread Jonathan Schweder
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

[issue43806] asyncio.StreamReader hangs when reading from pipe and other process exits unexpectedly

2021-05-03 Thread Jonathan Schweder
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

[issue43742] tcp_echo_client in asyncio streams example does not work. Hangs for ever at reaser.read()

2021-05-03 Thread Jonathan Schweder
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

[issue43742] tcp_echo_client in asyncio streams example does not work. Hangs for ever at reaser.read()

2021-05-04 Thread Jonathan Schweder
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

[issue43742] tcp_echo_client in asyncio streams example does not work. Hangs for ever at reaser.read()

2021-05-04 Thread Jonathan Schweder
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

[issue44107] HTTPServer can't close http client completely

2021-05-11 Thread Jonathan Schweder
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

[issue44104] http.cookies.CookieError: Illegal key

2021-05-12 Thread Jonathan Schweder
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

[issue43813] Denial of service on http.server module with large request method.

2021-05-12 Thread Jonathan Schweder
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

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2021-05-12 Thread Jonathan Schweder
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

[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2021-05-13 Thread Jonathan Schweder
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

[issue38193] http.client should be "runnable" like http.server

2021-06-17 Thread Jonathan Schweder
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

[issue34629] Python3 regression for urllib(2).urlopen(...).fp for chunked http responses

2021-07-01 Thread Jonathan Schweder
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

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Jonathan Fine
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

[issue44623] help(open('/dev/zero').writelines) gives no help

2021-07-13 Thread Jonathan Fine
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

[issue45037] theme-change.py for tkinter lib

2021-08-28 Thread Jonathan Isaac
Jonathan Isaac added the comment: Get the code! -- nosy: +bonesisaac1982 ___ Python tracker <https://bugs.python.org/issue45037> ___ ___ Python-bugs-list mailin

[issue45037] theme-change.py for tkinter lib

2021-08-28 Thread Jonathan Isaac
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

[issue45038] Bugs

2021-08-28 Thread Jonathan Isaac
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

[issue2628] ftplib Persistent data connection

2021-10-30 Thread Jonathan Bell
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 &

[issue2628] ftplib Persistent data connection

2021-10-30 Thread Jonathan Bell
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

[issue2628] ftplib Persistent data connection

2021-10-31 Thread Jonathan Bell
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

[issue2628] ftplib Persistent data connection

2021-11-01 Thread Jonathan Bell
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

[issue2628] ftplib Persistent data connection

2021-11-01 Thread Jonathan Bell
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

[issue38771] Bug in example of collections.ChainMap

2019-11-11 Thread Jonathan Scholbach
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

[issue38771] Bug in example of collections.ChainMap

2019-11-11 Thread Jonathan Scholbach
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

[issue38791] readline history file is hard-coded

2019-11-13 Thread Jonathan Conder
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

[issue38791] readline history file is hard-coded

2019-11-13 Thread Jonathan Conder
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

[issue38791] readline history file is hard-coded

2019-11-13 Thread Jonathan Conder
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

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2019-12-09 Thread Jonathan Slenders
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

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2019-12-09 Thread Jonathan Slenders
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

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2019-12-10 Thread Jonathan Slenders
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

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2019-12-10 Thread Jonathan Slenders
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

[issue39010] ProactorEventLoop raises unhandled ConnectionResetError

2019-12-10 Thread Jonathan Slenders
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

[issue39194] asyncio.open_connection returns a closed client when server fails to authenticate client certificate

2020-01-02 Thread Jonathan Martin
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

[issue22107] tempfile module misinterprets access denied error on Windows

2020-01-07 Thread Jonathan Mills
Change by Jonathan Mills : -- nosy: +Jonathan Mills ___ Python tracker <https://bugs.python.org/issue22107> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22107] tempfile module misinterprets access denied error on Windows

2020-01-07 Thread Jonathan Mills
Change by Jonathan Mills : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue22107> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31727] FTP_TLS errors when use certain subcommands

2020-03-12 Thread Jonathan Castro
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

[issue40028] Math module method to find prime factors for non-negative int n

2020-03-21 Thread Jonathan Fine
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_

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-21 Thread Jonathan Hsu
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

[issue38948] os.path.ismount() returns False for current working drive

2020-03-23 Thread Jonathan Hsu
Change by Jonathan Hsu : -- nosy: +Jonathan Hsu ___ Python tracker <https://bugs.python.org/issue38948> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36759] astimezone() fails on Windows for pre-epoch times

2020-03-23 Thread Jonathan Hsu
Change by Jonathan Hsu : -- nosy: +Jonathan Hsu ___ Python tracker <https://bugs.python.org/issue36759> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36759] astimezone() fails on Windows for pre-epoch times

2020-03-23 Thread Jonathan Hsu
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

[issue36759] astimezone() fails on Windows for pre-epoch times

2020-03-23 Thread Jonathan Hsu
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

[issue20899] Nested namespace imports do not work inside zip archives

2020-03-24 Thread Jonathan Hsu
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

[issue40025] enum: _generate_next_value_ is not called if its definition occurs after calls to auto()

2020-03-24 Thread Jonathan Hsu
Jonathan Hsu added the comment: Thank you for the explanation. -- ___ Python tracker <https://bugs.python.org/issue40025> ___ ___ Python-bugs-list mailin

[issue40049] tarfile cannot extract from stdin

2020-03-26 Thread Jonathan Hsu
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

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread Jonathan Crall
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)]&#x

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread Jonathan Crall
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

[issue40438] Python 3.9 eval on list comprehension sometimes returns coroutines

2020-04-29 Thread Jonathan Crall
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

[issue40897] Inheriting from class that defines __new__ causes inspect.signature to always return (*args, **kwargs) for constructor

2021-02-17 Thread Jonathan Slenders
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

[issue43461] Tottime column for cprofile output does not add up

2021-03-10 Thread Jonathan Frawley
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

[issue39243] CDLL __init__ no longer supports name being passed as None when the handle is not None

2020-06-06 Thread Jonathan Hsu
Change by Jonathan Hsu : -- nosy: +Jonathan Hsu ___ Python tracker <https://bugs.python.org/issue39243> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40365] argparse: action "extend" with 1 parameter splits strings into characters

2020-06-07 Thread Jonathan Haigh
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

[issue40365] argparse: action "extend" with 1 parameter splits strings into characters

2020-06-09 Thread Jonathan Haigh
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

[issue41570] Add DearPyGui to faq/gui.rst

2020-08-17 Thread Jonathan Hoffstadt
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

[issue41570] Add DearPyGui to faq/gui.rst

2020-08-17 Thread Jonathan Hoffstadt
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

[issue41632] Tkinter - Unexpected behavior after creating around 10000 widgets

2020-08-25 Thread Jonathan Lahav
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

[issue41632] Tkinter - Unexpected behavior after creating around 10000 widgets

2020-08-25 Thread Jonathan Lahav
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

[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay
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

[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay
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

[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-13 Thread Jonathan Eunice
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

[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-13 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2232 ___ Python tracker <http://bugs.python.org/issue30662> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-14 Thread Jonathan Eunice
Jonathan Eunice added the comment: PR updated to incorporate Serhiy Storchaka and Brett Cannon feedback. -- ___ Python tracker <http://bugs.python.org/issue30

[issue30603] textwrap: declining indent level has no test case

2017-06-14 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2250 ___ Python tracker <http://bugs.python.org/issue30603> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30603] textwrap: declining indent level has no test case

2017-06-14 Thread Jonathan Eunice
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

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
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

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2269 ___ Python tracker <http://bugs.python.org/issue30680> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30680] textwrap should treat Unicode em-dash like ASCII em-dash

2017-06-15 Thread Jonathan Eunice
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

[issue30688] support named Unicode escapes (\N{name}) in re

2017-06-17 Thread Jonathan Eunice
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

[issue30688] support named Unicode escapes (\N{name}) in re

2017-06-17 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2311 ___ Python tracker <http://bugs.python.org/issue30688> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2636] Adding a new regex module (compatible with re)

2017-07-25 Thread Jonathan Halcrow
Changes by Jonathan Halcrow : -- nosy: -jhalcrow ___ Python tracker <http://bugs.python.org/issue2636> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-06 Thread Jonathan Gossage
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

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-06 Thread Jonathan Gossage
Change by Jonathan Gossage : Added file: https://bugs.python.org/file47980/lock1.result.txt ___ Python tracker <https://bugs.python.org/issue35267> ___ ___ Python-bug

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-08 Thread Jonathan Gossage
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

[issue34431] Docs does not eval allows code object as argument

2019-01-07 Thread Jonathan Fine
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

[issue33084] Computing median, median_high an median_low in statistics library

2019-01-07 Thread Jonathan Fine
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

[issue35698] Division by 2 in statistics.median

2019-01-09 Thread Jonathan Fine
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

[issue35698] Division by 2 in statistics.median

2019-01-10 Thread Jonathan Fine
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]

[issue35698] Division by 2 in statistics.median

2019-01-10 Thread Jonathan Fine
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

[issue35698] Division by 2 in statistics.median

2019-01-10 Thread Jonathan Fine
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

[issue35698] [statistics] Division by 2 in statistics.median

2019-01-14 Thread Jonathan Fine
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

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Jonathan Fine
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

[issue35857] Stacktrace shows lines from updated file on disk, not code actually running

2019-01-30 Thread Jonathan Fine
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

[issue30299] Display the bytecode when compiled a regular expression in debug mode

2017-05-08 Thread Jonathan Goble
Changes by Jonathan Goble : -- nosy: +Jonathan Goble ___ Python tracker <http://bugs.python.org/issue30299> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25652] collections.UserString.__rmod__() raises NameError

2017-05-09 Thread Jonathan Goble
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

[issue29943] PySlice_GetIndicesEx change broke ABI in 3.5 and 3.6 branches

2017-05-10 Thread Jonathan Helmus
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

[issue25652] collections.UserString.__rmod__() raises NameError

2017-05-10 Thread Jonathan Goble
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__

[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-07 Thread Jonathan Eunice
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

[issue30591] textwrap: placeholder backtracking special case lacks test coverage

2017-06-07 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2054 ___ Python tracker <http://bugs.python.org/issue30591> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30603] textwrap: declining indent level has no test case

2017-06-08 Thread Jonathan Eunice
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

[issue30603] textwrap: declining indent level has no test case

2017-06-08 Thread Jonathan Eunice
Changes by Jonathan Eunice : -- pull_requests: +2079 ___ Python tracker <http://bugs.python.org/issue30603> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2   3   4   >