[issue35228] Index search in CHM help crashes viewer

2021-12-17 Thread Charles G.
Charles G. added the comment: My previous Windows version (Win 10 1803) does not have this crashing problem. It only crashed after upgrading to 21H1. So I replaced hhctrl.ocx in system32 (Win 10 21H1) with hhctrl.ocx from Windows.old. 2019/03/19 11:45 696.320 hhctrl.ocx 2021/09

[issue46089] Problems with AF_PACKET sockets

2021-12-15 Thread G. Allard
G. Allard added the comment: Next 3 steps must be (in decreasing priorities): - fix the code - write a mini-howto. It will be used for test purposes - write documentation (a Howto/tutorial) For the 3rd step, I would accept to join a team

[issue46089] Problems with AF_PACKET sockets

2021-12-15 Thread G. Allard
New submission from G. Allard : For educational purposes, I'm developing my own IP stack in Python. It's going well but I'm stuck at a low level. I need to implement the following (simple) task: - open an AF_PACKET socket (socket.socket) - bind it to a specific interface (socket.bind) Python

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-10-22 Thread Matias G
Matias G added the comment: About the reference in exception: I thought that Python 3 didn't have the need for `sys.exc_clear()` (which has been removed), specifically for this kind of problem. The code I use is in fact more complex than the small snippet I posted here to reproduce

[issue45555] Object stays alive for weak reference if an exception happens in constructor

2021-10-21 Thread Matias G
New submission from Matias G : Hi Python developers, I stumbled on a weird behavior, which might be a bug actually. I am surprised by the output of the following piece of code: ``` import weakref refs = [] class A: def __init__(self): refs.append(weakref.ref(self

[issue44711] Optimize type check in pipes.py

2021-07-22 Thread Anton G.
New submission from Anton G. : When I did some work on typeshed I found some weird syntax in pipes.py. if type(cmd) is not type(''): which can easily be changed to if not isinstance(cmd, str): There are two occurrences and I will directly create the PR :) -- components: Library

[issue44152] [not a bug] .isupper() does not support Polytonic Greek (but .islower() does)

2021-05-16 Thread E G
E G added the comment: Oops: this is not a bug. The isupper() method tests ALL chars. Only the first char in the examples was a capital. All of the logic/tests succeed. Sorry for the error. Thanks to Serhiy S. for swift attention on this. -- resolution: -> not a bug ti

[issue44152] .isupper() does not support Polytonic Greek (but .islower() does)

2021-05-16 Thread E G
New submission from E G : Δημοϲθενικοί starts with an upper-case delta. 'Δημοϲθενικοί'.isupper() should yield "True". Ἀεὶ also fails this test: it begins with a capital Alpha with a breathing. εἰϲ is properly parsed: isupper() is False and islower() is True. Despite t

[issue43467] IDLE: horizontal scrollbar

2021-03-10 Thread David E. Franco G.
David E. Franco G. added the comment: How is that clutter? Even the most basic text editor (window notepad) have it, and knowing that yours or whoever code you are looking at extend horizontally beyond the size of your current windows size is a relevant information. -- Added file

[issue43467] IDLE: horizontal scrollbar

2021-03-10 Thread David E. Franco G.
New submission from David E. Franco G. : I noticed that the horizontal scroll bar is missing, I think it was present in previous version, regardless it would be nice if its be present. Thanks. -- assignee: terry.reedy components: IDLE files: no scroll bar.PNG messages: 388469 nosy

[issue42615] Redundant jump instructions due to deleted unreachable bytecode blocks

2020-12-16 Thread Om G
Change by Om G : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42615> ___ ___

[issue42615] Redundant jump instructions due to deleted unreachable bytecode blocks

2020-12-10 Thread Om G
Change by Om G : -- keywords: +patch pull_requests: +22591 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23733 ___ Python tracker <https://bugs.python.org/issu

[issue42615] Redundant jump instructions due to deleted unreachable bytecode blocks

2020-12-10 Thread Om G
New submission from Om G : During optimization, the compiler deletes blocks that are marked as unreachable. In doing so, it can render jump instructions that used to jump over the now-deleted blocks redundant, since simply falling through to the next non-empty block is now equivalent

[issue40900] uuid module build fix on FreeBSD proposal

2020-09-16 Thread Danilo G. Baio
Change by Danilo G. Baio : -- nosy: +dbaio ___ Python tracker <https://bugs.python.org/issue40900> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41753] subprocess.run on windows does not convert path to string

2020-09-09 Thread Kaushik G
Kaushik G added the comment: Thank you for your response. There are two concerns I have here. 1. Python's promise of being straightforward. In MOST cases pathlib.Path objects do the right thing, casting to a string such that pathlib.Path is a drop in replacement. This exception

[issue41753] subprocess.run on windows does not convert path to string

2020-09-09 Thread Kaushik G
New submission from Kaushik G : a call of the form `subprocess.run([x, y, z])` where one of the elements is a `pathlib.Pat`h fails on windows because the path is not converted to a string as it should. This works fine (as expected) on macOS and Linux. A typical error message is: `TypeError

[issue41647] MutableMapping ".setdefault()" to return default value via __getitem__

2020-08-27 Thread Matias G
New submission from Matias G : Hi, This is more a question/proposal than a real issue. I apologize in advance if this has already been debated or if it is not relevant. I noticed `setdefault` method of mutable mapping objects is returning the default value as passed in the call, when

[issue39380] ftplib uses latin-1 as default encoding

2020-03-22 Thread Sebastian G Pedersen
Sebastian G Pedersen added the comment: Yes, I will update the PR before the end of next week. -- ___ Python tracker <https://bugs.python.org/issue39

[issue39380] ftplib uses latin-1 as default encoding

2020-03-15 Thread Sebastian G Pedersen
Sebastian G Pedersen added the comment: Thanks again for the engagement. I am also in favor of adding the encoding to the constructor. However, following Giampaolo's comment, that utf-8 is standard and has been for a long time (and the RFC dating back to year 1999), I am also in favor

[issue39380] ftplib uses latin-1 as default encoding

2020-01-25 Thread Sebastian G Pedersen
Sebastian G Pedersen added the comment: Thank you for the feedback. I will elaborate a little bit on the reasons and thoughts behind the pull request: Since RFC 2640, the industry standard within FTP Clients is UTF-8 (see e.g. FileZilla here: https://wiki.filezilla-project.org

[issue39438] better handling of foreign signal handlers in signal.signal

2020-01-23 Thread Steven G. Johnson
New submission from Steven G. Johnson : In embedded Python, if the embedding code sets a signal handler (e.g. for SIGINT), then signal.getsignal(SIGINT) returns None. However, signal.signal(SIGINT, signal.getsignal(SIGINT)) throws a TypeError, even though it should logically be a no-op

[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen
Change by Sebastian G Pedersen : -- keywords: +patch pull_requests: +17443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18048 ___ Python tracker <https://bugs.python.org/issu

[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen
Change by Sebastian G Pedersen : -- components: Library (Lib) nosy: SebastianGPedersen priority: normal severity: normal status: open title: ftplib uses latin-1 as default encoding type: behavior versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

[issue37806] Infinite recursion with typing.get_type_hints

2019-08-09 Thread Valerio G
Change by Valerio G : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue37806> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37806] Infinite recursion with typing.get_type_hints

2019-08-09 Thread Valerio G
New submission from Valerio G : I encountered one condition where calling get_type_hints causes infinite recursion when dealing with forward declaration and cyclic types. Here's an example: from typing import Union, List, get_type_hints ValueList = List['Value'] Value = Union[str, ValueList

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-07-14 Thread Shane G
Shane G added the comment: This issue was created because I ran across a plist like this when parsing entitlements in an IPA. I assume that this happened by some unusual step in the toolchain when building the application. To some other points: * agreed lstrip()ing just the key would

[issue37344] plistlib doesn't skip whitespace in XML format detection

2019-06-19 Thread Shane G
New submission from Shane G : plistlib in Python 3.7.3 (and earlier) does not autodetect plist data as XML if it contains whitespace before the "https://github.com/python/cpython/blob/3.7/Lib/plistlib.py#L493 -- messages: 346089 nosy: shaneg priority: normal severity: normal s

[issue37229] bisect: Allow a custom compare function

2019-06-11 Thread G
G added the comment: What do you propose to do for objects outside your project? Replace their __lt__ method with a context manager which replaces the original implementation, for lists at a time? __lt__ is not good enough as a one-way-to-do-it solution. issue4356 is also a good-enough

[issue4356] Add "key" argument to "bisect" module functions

2019-06-11 Thread G
G added the comment: I did, thanks! -- ___ Python tracker <https://bugs.python.org/issue4356> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4356] Add "key" argument to "bisect" module functions

2019-06-11 Thread G
G added the comment: I opened a relevant PR, https://github.com/python/cpython/pull/11781. I believe a key parameter is inferior to a comparison callback. The former is a specific case of the latter, and in my use case would force me to create another class to serve as a comparator for my

[issue37229] bisect: Allow a custom compare function

2019-06-11 Thread G
Change by G : -- keywords: +patch pull_requests: +13837 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13970 ___ Python tracker <https://bugs.python.org/issu

[issue37229] bisect: Allow a custom compare function

2019-06-11 Thread G
New submission from G : All of bisect's functions (insort_{left,right}, bisect_{left,right}) can only use comparison of objects via __lt__. They should support providing a custom comparison function. -- components: Library (Lib) messages: 345216 nosy: gpery priority: normal severity

[issue4356] Add "key" argument to "bisect" module functions

2019-05-25 Thread Kevin G
Kevin G added the comment: Can anyone add "reverse" support? Key and reverse support are both functional requirement. -- nosy: +flyingosprey ___ Python tracker <https://bugs.python.

[issue36706] Python script on startup stucks at import

2019-04-23 Thread serge g
New submission from serge g : I am not sure if it is python's issue (correct me if this is wrong place for report). But sometimes (probably every 3-4 attempt) when I run script, interpreter just stucks for some time (0.5-3 minutes) and then actually runs the script normally. To figure out

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2019-04-18 Thread andrew-g
andrew-g added the comment: pinging the issue to try get the PR reviewed -- nosy: +andrew-g ___ Python tracker <https://bugs.python.org/issue35100> ___ ___ Pytho

[issue35100] urllib.parse.unquote_to_bytes: needs "escape plus" option

2019-03-16 Thread andrew-g
Change by andrew-g : -- keywords: +patch pull_requests: +12331 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35100> ___ ___ Python-

[issue31956] Add start and stop parameters to the array.index()

2018-11-29 Thread Ryan G.
Ryan G. added the comment: This functionality is useful to me. Is this issue still alive? If not, how can I help? -- nosy: +Ryan G. ___ Python tracker <https://bugs.python.org/issue31

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-30 Thread Sergey G. Brester
Sergey G. Brester added the comment: I have extended the PR a bit (more tests and corresponding documentation part). -- ___ Python tracker <https://bugs.python.org/issue34

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-29 Thread Sergey G. Brester
Sergey G. Brester added the comment: > Would you consider adding your test suite into the regression tests as well? Sure. Done. > Right now, this is a well known issue on all platforms Really? I can't imagine this for something else as windows (and it is currently fixed also for w

[issue34489] subprocess: execution of batch-files (.cmd/.bat) is vulnerable in python for windows / insufficient escape

2018-08-24 Thread Sergey G. Brester
New submission from Sergey G. Brester : There is a vulnerability "insufficient escape of special chars for quoting of arguments by exec process" for python-language, if executing windows batch-files (bat/cmd). ### What version of python is affected? All ### Does this issue

[issue33515] subprocess.Popen on a Windows batch file always acts as if shell=True

2018-08-24 Thread Sergey G. Brester
Change by Sergey G. Brester : -- keywords: +patch pull_requests: +8375 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue34353] stat's python implementation of filemode (fallback) doesn't behave like the C implementation

2018-08-07 Thread G
Change by G : -- keywords: +patch pull_requests: +8193 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34353> ___ ___ Python-bugs-lis

[issue34353] stat's python implementation of filemode (fallback) doesn't behave like the C implementation

2018-08-07 Thread G
New submission from G : stat.py (Lib/stat.py)'s implementation of filemode doesn't account for socket-type files, while _stat (Modules/_stat.c) does, using S_IFSOCK. -- components: Library (Lib) messages: 323248 nosy: gpery priority: normal severity: normal status: open title: stat's

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Jonathan G. Underwood
Jonathan G. Underwood added the comment: Thanks to both Serhiy Storchaka and David Murray - indeed you're both correct, and that is the issue in 21074, and the workaround from there of declaring a variable for that size fixes the problem

[issue24085] large memory overhead when pyc is recompiled

2018-06-02 Thread Jonathan G. Underwood
Jonathan G. Underwood added the comment: Seeing a very similar problem - very high memory useage during byte compilation. Consider the very simple code in a file: ``` def test_huge(): try: huge = b'\0' * 0x1 # this allocates 4GB of memory! except MemoryError

[issue19495] context manager for measuring duration of blocks of code

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue19495> ___

[issue32751] wait_for(future, ...) should wait for the future (even if a timeout occurs)

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32751> ___

[issue24255] Replace debuglevel-related logic with logging

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue24255> ___

[issue32767] Mutating a list while iterating: clarify the docs

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32767> ___

[issue32810] Expose ags_gen and agt_gen in asynchronous generators

2018-02-10 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32810> ___

[issue32590] Proposal: add an "ensure(arg)" builtin for parameter validation

2018-02-01 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32590> ___

[issue32703] 'async with' somehow suppresses unawaited coroutine warnings

2018-01-31 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32703> ___

[issue32637] Android: set sys.platform to android

2018-01-30 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32637> ___

[issue32623] Resize dict on del/pop

2018-01-30 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32623> ___

[issue30491] Add a lightweight mechanism for detecting un-awaited coroutine objects

2018-01-30 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30491> ___

[issue22499] [SSL: BAD_WRITE_RETRY] bad write retry in _ssl.c:1636

2018-01-22 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue22499> ___

[issue31122] SSLContext.wrap_socket() throws OSError with errno == 0

2018-01-22 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31122> ___

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2018-01-17 Thread Angie G
Change by Angie G <angelynn68...@gmail.com>: -- components: +Build, SSL type: resource usage -> performance ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue32561] Add API to io objects for non-blocking reads/writes

2018-01-15 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32561> ___

[issue32292] Building fails on Windows

2017-12-12 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32292> ___

[issue32226] Implement PEP 560: Core support for typing module and generic types

2017-12-12 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32226> ___

[issue31901] atexit callbacks should be run at subinterpreter shutdown

2017-12-12 Thread Xavier G. Domingo
Change by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31901> ___

[issue31800] datetime.strptime: Support for parsing offsets with a colon

2017-10-19 Thread Paul G
Paul G <p.gans...@gmail.com> added the comment: This seems very useful to me. I very frequently advise people *against* using dateutil.parser (despite my conflict of interest as maintainer of dateutil) for well-known formats, but the problem frequently comes up of, "what should I

[issue31729] multiprocesssing.pool.AsyncResult undocumented field

2017-10-08 Thread g...@nlc.co.nz
Change by g...@nlc.co.nz <g...@nlc.co.nz>: -- title: multiprocesssing.Pool.map_async() undocumented -> multiprocesssing.pool.AsyncResult undocumented field ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue31730] list unhashable, can not be use as key to dict

2017-10-08 Thread g...@nlc.co.nz
New submission from g...@nlc.co.nz <g...@nlc.co.nz>: A list can no be used as the key to a dict, apparently because it is "unhashable": TypeError: unhashable type: 'list'. The code must exist to hash object like this a tuple is hashable and can be constru

[issue31729] multiprocesssing.Pool.map_async() undocumented

2017-10-08 Thread g...@nlc.co.nz
New submission from g...@nlc.co.nz <g...@nlc.co.nz>: To monitor how much of my multiprocess.Pool is completed I am forced to use undocumented features which I fear mat changed in the future. Especially result._number_left which looks like a private variable. Can you please document the

[issue31222] datetime.py implementation of .replace inconsistent with C implementation

2017-08-16 Thread Paul G
Paul G added the comment: @r.david.murray In the other thread, you mention that the full test suite is run against the C and Python implementations, so that answers the question of how to write the tests. I think treating it as an enhancement in Python 3.7 makes a reasonable amount of sense

[issue31222] datetime.py implementation of .replace inconsistent with C implementation

2017-08-16 Thread Paul G
New submission from Paul G: In the .py implementation of datetime.replace (and date.replace and time.replace), the new datetime is created using the datetime type: https://github.com/python/cpython/blob/master/Lib/datetime.py#L1578 But in the C source, it is created from type(self): https

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-06-28 Thread Xavier G. Domingo
Changes by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29988> ___

[issue17960] Clarify the required behaviour of locals()

2017-06-26 Thread Xavier G. Domingo
Changes by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17960> ___

[issue29304] dict: simplify lookup functions

2017-06-25 Thread Xavier G. Domingo
Changes by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29304> ___

[issue30744] Local variable assignment is broken when combined with threads + tracing + closures

2017-06-24 Thread Xavier G. Domingo
Changes by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30744> ___

[issue29596] Unfinished sentence in howto/clinic.rst

2017-06-06 Thread G Young
Changes by G Young <gfyoun...@gmail.com>: -- pull_requests: +2042 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29596> ___ __

[issue29596] Unfinished sentence in howto/clinic.rst

2017-06-06 Thread G Young
Changes by G Young <gfyoun...@gmail.com>: -- pull_requests: +2041 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29596> ___ __

[issue17852] Built-in module _io can loose data from buffered files at exit

2017-06-01 Thread Xavier G. Domingo
Changes by Xavier G. Domingo <xgdomi...@gmail.com>: -- nosy: +xgdomingo ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17852> ___

[issue29510] gitignore settings files for Eclipse IDE

2017-05-24 Thread G Young
Changes by G Young <gfyoun...@gmail.com>: -- pull_requests: +1873 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29510> ___ __

[issue29596] Unfinished sentense in howto/clinic.rst

2017-05-21 Thread G Young
Changes by G Young <gfyoun...@gmail.com>: -- pull_requests: +1801 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29596> ___ __

[issue30361] Docs example: converting mixed types to floating point

2017-05-21 Thread G Young
Changes by G Young <gfyoun...@gmail.com>: -- pull_requests: +1797 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30361> ___ __

[issue30019] IDLE got unexpexted bahavior when trying to use some characters

2017-04-07 Thread David E. Franco G.
New submission from David E. Franco G.: wandering for the internet I fount some unicode character in a random comment, and just for curiosity I wanted to use python (3.6.1) to see their value, so I copy those characters and paste them in IDLE, and in doing so it just close without warning

[issue30010] Initial bytes to BytesIO cannot be seeked to

2017-04-07 Thread Samuli G
New submission from Samuli G: The initial bytes provided for the BytesIO constructor are lost when the stream is written to. Seeking to offset zero, and then getting the value of the entire buffer results of getting only the bytes that have been appended by calling "

[issue29960] _random.Random state corrupted on exception

2017-04-07 Thread Bryan G. Olson
Changes by Bryan G. Olson <bryan.ol...@acm.org>: -- pull_requests: +1181 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29960> ___

[issue29960] _random.Random state corrupted on exception

2017-04-01 Thread Bryan G. Olson
Changes by Bryan G. Olson <bryan.ol...@acm.org>: -- pull_requests: +1135 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29960> ___

[issue29960] _random.Random state corrupted on exception

2017-04-01 Thread Bryan G. Olson
Bryan G. Olson added the comment: I'm going through https://docs.python.org/devguide/pullrequest.html and would like to be assigned this issue. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue29960] _random.Random state corrupted on exception

2017-04-01 Thread Bryan G. Olson
New submission from Bryan G. Olson: Demo: Run the Python library's test_random.py under the Python debugger and check the generator at the start of test_shuffle(): C:\bin\Python36>python -m pdb Lib\test\test_random.py > c:\bin\python36\lib\test\test_random.py(1)() -> import unit

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-03 Thread David E. Franco G.
David E. Franco G. added the comment: I found the problem, it was a test.pyc file that was in my personal folder... once deleted it work perfect the build-in test module should have some other name... -- ___ Python tracker <rep...@bugs.python.

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-03 Thread David E. Franco G.
David E. Franco G. added the comment: Ok, Done. that work in both 3.5 and 3.6 I also did the python -m idlelib.ColorDelegator and python -m idlelib.colorizer and they turn ok I also open those modules in their respective idle and run them, ColorDelegator work ok but colorizer

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-03 Thread David E. Franco G.
David E. Franco G. added the comment: >I presume you would like 'async' and 'await' highlighted as keywords. Yes. Some others tools like IPython and the Spider IDE that come with the Anaconda package already highlighted them as keywords, even if you can use them as normal variab

[issue29706] IDLE needs syntax highlighting for async and await

2017-03-02 Thread David E. Franco G.
New submission from David E. Franco G.: Well, this is pretty self explanatory, when playing with this new features of async and await (https://docs.python.org/3.5/whatsnew/3.5.html#new-features) I found to me surprise that there is no syntax highlighting for it in the IDLE for py3.5 and also

[issue28641] Describe PEP 495 features in "What's New in Python 3.6" document

2016-11-09 Thread Paul G
Paul G added the comment: I've never written a "What's New" before, but here are the main things I took away from implementing a PEP 495-compliant tzinfo class: - The `fold` attribute is the SECOND occurrence of the time, not the first occurrence of the time. In my first pas

[issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation

2016-11-03 Thread Paul G
Paul G added the comment: > After all, how much effort would it save for you in dateutil if you could > reuse the base class fromutc? Realistically, this saves me nothing since I have to re-implement it anyway in in all versions <= Python 3.6 (basically just the exact same

[issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation

2016-11-03 Thread Paul G
Paul G added the comment: Of the `tzinfo` implementations provided by `python-dateutil`, `tzrange`, `tzstr` (GNU TZ strings), `tzwin` (Windows style time zones) and `tzlocal` all satisfy this condition. These are basically all implementations of default system time zone information

[issue28602] `tzinfo.fromutc()` fails when used for a fold-aware tzinfo implementation

2016-11-03 Thread Paul G
New submission from Paul G: After PEP-495, the default value for non-fold-aware datetimes is that they return the DST side, not the STD side (as was the assumption before PEP-495). This invalidates an assumption made in `tz.fromutc()`. See lines 991-1000 of datetime.py: dtdst = dt.dst

[issue28601] Ambiguous datetime comparisons should use == rather than 'is' for tzinfo comparison

2016-11-03 Thread Paul G
New submission from Paul G: According to PEP495 (https://www.python.org/dev/peps/pep-0495/#aware-datetime-equality-comparison) datetimes are considered not equal if they are an ambiguous time and have different zones. However, currently "interzone comparison" is defined / i

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread David E. Franco G.
David E. Franco G. added the comment: I think that removing the "typing." is for the best, with the example above >>> help(foo) Help on function foo in module __main__: foo(data:typing.List[typing.Any]) -> typing.Iterator[typing.Tuple[int, typing.Any]] >>>

[issue27989] incomplete signature with help function using typing

2016-09-07 Thread David E. Franco G.
David E. Franco G. added the comment: as that is the case, how about this as a solution: def formatannotation(annotation, base_module=None): if isinstance(annotation, type): if annotation.__module__ in ('builtins', base_module): return annotation.__qualname__

[issue27989] incomplete signature with help function using typing

2016-09-06 Thread David E. Franco G.
New submission from David E. Franco G.: the issue is that when calling help on a function annotated with typing, all the relevant information is lost, for example from typing import List, Any, Iterator, Tuple def foo(data:List[Any]) -> Iterator[ Tuple[int,Any] ]: ... when calling h

[issue27663] Inconsistent CSV Writer Behaviour

2016-08-01 Thread G Young
G Young added the comment: Second time around does the charm. I see the hidden "-" in the scientific notation is causing this. Thanks! -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.py

[issue27663] Inconsistent CSV Writer Behaviour

2016-08-01 Thread G Young
G Young added the comment: That doesn't make sense to me. Can you explain how that is intended behaviour? I just changed from '-' to '?' in the lineterminator. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue27663] Inconsistent CSV Writer Behaviour

2016-08-01 Thread G Young
New submission from G Young: When writing scientific notation to CSV with custom line-terminators, the behaviour is inconsistent depending on the line-terminator you use. In the file provided, two different line-terminator result in one quoting the number as a string and the other not. IMO

[issue27509] Some tests breaks PGO build on Windows

2016-07-14 Thread Charles G.
Charles G. added the comment: Tried with Visual Studio Community 2015 Update 3 with same result. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

  1   2   >