[issue29400] Instruction level tracing via sys.settrace

2017-02-01 Thread George King
George King added the comment: Thanks to both of you for your feedback. I will take a stab at updating the patch with Victor's suggestions as soon as I can. -- ___ Python tracker <http://bugs.python.org/is

[issue29400] Add instruction level tracing via sys.settrace

2017-02-06 Thread George King
George King added the comment: Attached is a new patch, which does not settrace/gettrace and instead offers new settraceinst/gettraceinst per Victor's recommendation. I did not implement the proposed behavior of raising an exception if the old APIs are used when the inst_tracing flag i

[issue29400] Add instruction level tracing via sys.settrace

2017-02-06 Thread George King
George King added the comment: I'm not sure exactly, but the way I see it (for code coverage), we want to trace transitions between basic blocks. So I would define it as: each entry into a BB is traced, with a tuple of (previous_offset, current_offset). This way when a function call s

[issue29511] Add 'find' as build-in method for lists

2017-02-09 Thread George Shuklin
New submission from George Shuklin: I found that Python provides 'find()' and 'in' methods for strings, but lacking same functionality for lists. Because strings and lists are very similar, it's reasonable to expect same function available for both. Here long and

[issue27407] prepare_ssl.py missing in PCBuild folder

2016-06-28 Thread George Ge
New submission from George Ge: The readme.txt file in the PCBuild folder in Python 2.7.11 and 2.7.12 sources both contain instructions on how to configure to build a different OpenSSL version using PCbuild\prepare_ssl.py, but this file is missing on both versions. -- components

[issue27407] prepare_ssl.py missing in PCBuild folder

2016-06-28 Thread George Ge
George Ge added the comment: I see. Would it be possible to have a version of prepare_ssl.py written in 2.7 for the official source releases? -- ___ Python tracker <http://bugs.python.org/issue27

[issue27035] Cannot set exit code in atexit callback

2016-07-31 Thread George King
George King added the comment: The documentation for atexit.register clearly states that a SystemExit raised inside of the registered function is a special case: ''' If an exception is raised during execution of the exit handlers, a traceback is printed (unless SystemExit is

[issue23417] Windows 8.1 and Windows Server 2012 R2 are not displayed properly

2015-02-08 Thread George Schizas
New submission from George Schizas: Python on Windows can now can understand that it's on Windows 8.1 and Windows Server 2012 R2, but platform.py hasn't been updated, and claims it's on "post2012Server": >>> import platform >>> print(platfor

[issue1182143] making builtin exceptions more informative

2015-06-21 Thread George Jenkins
George Jenkins added the comment: Reviewer please :) (or, advice on how I can get this to proceed, thx) -- ___ Python tracker <http://bugs.python.org/issue1182

[issue1182143] making builtin exceptions more informative

2015-06-27 Thread George Jenkins
George Jenkins added the comment: Thanks for the response. In terms of python API changes - I exposed the 'name' attribute on UnboundLocalError and NameError exceptions. (This can be seen (& is verified) by the changes to test_exceptions.py exceptions test cases in the patch

[issue1182143] making builtin exceptions more informative

2015-10-25 Thread George Jenkins
George Jenkins added the comment: Bump on this one please -- ___ Python tracker <http://bugs.python.org/issue1182143> ___ ___ Python-bugs-list mailing list Unsub

[issue25492] subprocess with redirection fails after FreeConsole

2015-10-27 Thread George Prekas
New submission from George Prekas: Under Windows, if I do FreeConsole and then subprocess.call with redirected stdin or stdout or stderr, then subprocess.call fails. The only solution is either DO NOT redirect any handle OR to redirect ALL of them. The problem lies in function _get_handles at

[issue27039] bytearray.remove cannot remove bytes with value greater than 127

2016-05-16 Thread Damien George
New submission from Damien George: The following code fails with a ValueError (but I expect it to succeed): >>> bytearray([128]).remove(128) Tested with Python 2.7.11 and 3.5.1. Probably it's a case of comparing a char (signed byte) with an unsigned value. -- component

[issue1182143] making builtin exceptions more informative

2015-03-18 Thread George Jenkins
George Jenkins added the comment: Hi, I attempted a solution for this a while back Attached is a (git diff based) patch for review Changes can also been seen at: https://bitbucket.org/bloomberg/cpython/pull-request/2/http-bugspythonorg-issue1182143-add-name/diff (but note the changes in Misc

[issue1182143] making builtin exceptions more informative

2015-04-08 Thread George Jenkins
George Jenkins added the comment: Add patch generated via mercurial -- Added file: http://bugs.python.org/file38872/Issue1182143_1hg.patch ___ Python tracker <http://bugs.python.org/issue1182

[issue1182143] making builtin exceptions more informative

2015-05-02 Thread George Jenkins
George Jenkins added the comment: Heh, just noticed this issue passed its 10 year anniversary! If someone has time to review my patch, that would be much appreciated. Thanks! -- ___ Python tracker <http://bugs.python.org/issue1182

[issue27957] minor typo in importlib docs

2016-09-05 Thread George London
New submission from George London: An extra apostrophe made the grammar of a method description ambiguous. The attached patch removes the apostrophe. -- assignee: docs@python components: Documentation files: mywork.patch keywords: patch messages: 274429 nosy: docs@python, gjlondon

[issue27889] ctypes interfers with signal handling

2016-09-05 Thread George Slavin
George Slavin added the comment: I can reproduce this issue with Python 2.7.12 and Python 3.5.2 on a Arch linux VM using the python script provided, but I think this is an error in the code. The repro is tied to the time.sleep call in the try block. If I do time.sleep(1), I can reproduce

[issue27889] ctypes interfers with signal handling

2016-09-05 Thread George Slavin
George Slavin added the comment: Thanks for the reply! I've managed to reproduce the issue without using ctypes, so we can exclude ctypes as the cause of the problem :) The bug only occurs for me after hundreds of iterations of the script, so it is very intermittent. >From my res

[issue27889] ctypes interfers with signal handling

2016-09-06 Thread George Slavin
George Slavin added the comment: In case anyone else sees this thread, here's my trimmed down script to repro the issue: #!/usr/bin/env python2 import threading as mt import signal import time import os def sigusr2_handler(signum, frame): raise RuntimeError('caug

[issue27889] ctypes interfers with signal handling

2016-09-06 Thread George Slavin
George Slavin added the comment: The docs say the sleep call will end if a signal is caught, so once the main thread wakes, it won't go back to sleep. On Sep 6, 2016 12:35 AM, "Andre Merzky" wrote: > > Andre Merzky added the comment: > > Hi George, > > >

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-09-19 Thread George Slavin
George Slavin added the comment: I have a patch that checks for KeyboardInterrupt during builtin operations. This allows sum, max, min, list, dict, set, and tuple calls to be interrupted when they are working on infinite iterators. I've attached the patch, and a test I wrote to show tha

[issue26351] Occasionally check for Ctrl-C in long-running operations like sum

2016-09-19 Thread George Slavin
George Slavin added the comment: I've attached the test for this patch (I couldn't figure out how to upload two files with one comment). -- Added file: http://bugs.python.org/file44747/test_sig_int_builtins.py ___ Python trac

[issue28264] Python 3.4.4 Turtle library - Turtle.onclick events blocked by Turtle.stamp

2016-09-23 Thread George Fagin
New submission from George Fagin: After a Turtle.stamp() command, turtle click notifications enabled via Turtle.onclick() are blocked until subsequent turtle commands are issued. Examples of the functions that re-enable click notifications include undo(), fd(0), left(0), etc. I've ver

[issue28264] Turtle.onclick events blocked by Turtle.stamp

2016-10-02 Thread George Fagin
George Fagin added the comment: When you say "left click always moves the turtle" I fear my explanation was not clear enough. A left click always moves the turtle in my version as well. What changes when stamp is activated is that OnClick events are not issued when you click on

[issue28264] Turtle.onclick events blocked by Turtle.stamp

2016-10-04 Thread George Fagin
George Fagin added the comment: Now you've got it. Clicking on the turtle results in an event message - at which point I spin the turtle and issue the message to make it clear that the message arrived. However, if you try doing that after a 'Turtle.stamp()' the message never

[issue28447] socket.getpeername() failure on broken TCP/IP connection

2016-10-14 Thread George,Y
New submission from George,Y: I need to know the IP address on the other side of a broken TCP/IP connection. "socket.getpeername()" fails to do the job sometimes because the connection has been closed, and Windows Error 10038 tells the connection is no longer a socket so that

[issue28714] Addition to Documentation of configparser.ConfigParser.write() documentaion

2016-11-16 Thread George Fischhof
New submission from George Fischhof: Hi There, I used configparser.ConfigParser.write() to update a config file. And I found that my config wa duplicated. The file was opened with mode 'r+' I figured out that write (I mean the write method of configparser) writes at actual file po

[issue28714] Addition to Documentation of configparser.ConfigParser.write()

2016-11-16 Thread George Fischhof
Changes by George Fischhof : -- title: Addition to Documentation of configparser.ConfigParser.write() documentaion -> Addition to Documentation of configparser.ConfigParser.write() ___ Python tracker <http://bugs.python.org/issu

[issue38596] simple example give a Linux core dumped with atk-bridge

2019-10-26 Thread Feștilă George Cătălin
New submission from Feștilă George Cătălin : My simple notepad code with QtWidgets.QPlainTextEdit() give me a crash dump on Linux Fedora 30 with python3 Python 3.7.4 (default, Jul 9 2019, 16:32:37) [GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux [mythcat@desk pyqt5_examples]$ uname -a Linux

[issue38596] simple example give a Linux core dumped with atk-bridge

2019-10-26 Thread Feștilă George Cătălin
Feștilă George Cătălin added the comment: No. I don't have a reproducer script for this issue with Linux OS. The mytext is a class from another script named my_notepad. The problem comes with time when I use the menu to change the syntax value, as you can see: self.syntax = m

[issue36384] ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-03-31 Thread George-Cristian Bîrzan
Change by George-Cristian Bîrzan : -- nosy: +gc2 ___ Python tracker <https://bugs.python.org/issue36384> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-05-25 Thread George-Cristian Bîrzan
George-Cristian Bîrzan added the comment: The timeline there is wrong. This issue's creation time isn't the disclosure time, it's when the bug was introduced. The disclosure was on 30th of May, when I emailed secur...@python.org and Christian Heimes commented here and made htt

[issue36384] [security] CVE-2021-29921: ipaddress Should not reject IPv4 addresses with leading zeroes as ambiguously octal

2021-05-25 Thread George-Cristian Bîrzan
George-Cristian Bîrzan added the comment: I think the only thing I'd improve would be to mention that this issue is the one that introduced the bug, otherwise it looks a bit weird. -- ___ Python tracker <https://bugs.python.org/is

[issue44671] Create a built-in yaml module

2021-07-21 Thread Jurj Andrei George
Jurj Andrei George added the comment: I would also like to have yaml in the stdlib. I reckon it would make sense to at least discuss yaml given that toml is on its way in the stdlib. By the time a toml parser gets added, yaml will be the only major data serialization language to not be

[issue35938] crash of METADATA file cannot be fixed by reinstall of python

2019-02-08 Thread Feștilă George Cătălin
New submission from Feștilă George Cătălin : The pip install module crash with this error: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\\python364\\lib\\site-packages\\traits-4.6.0.dist-info\\METADATA ' You are using pip version 18.

[issue35938] crash of METADATA file cannot be fixed by reinstall of python

2019-02-08 Thread Feștilă George Cătălin
Feștilă George Cătălin added the comment: I delete two folders of traits Using the pip-review --auto this is the output of traits: copying traits\util\tests\__init__.py -> build\lib.win-amd64-3.6\traits\util\t ests running build_ext building 'traits.ctraits' extension c

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread George-Cristian Bîrzan
George-Cristian Bîrzan added the comment: I posted on python dev that this would slow exception checking considerably so that is a concern. As for possible bugs, this has been working in the 2 branch for a while now, so I don't think that is the biggest issue. As for possible use

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread George-Cristian Bîrzan
George-Cristian Bîrzan added the comment: I have a patch, with tests, but no Internet on my computer so going out, will post it when I get back/my Internet comes back -- ___ Python tracker <http://bugs.python.org/issue12

[issue12029] Catching virtual subclasses in except clauses

2012-05-12 Thread George-Cristian Bîrzan
George-Cristian Bîrzan added the comment: As promissed the patch. It doesn't break any tests, and it passes the ones I added. I have a pybench one as well, which even though trivial, does point to the fact that there is a degradation in performance, but not sure it's worth po

[issue13922] argparse handling multiple "--" in args improperly

2012-08-21 Thread George-Cristian Bîrzan
George-Cristian Bîrzan added the comment: This patch introduced a regression. Before, parse_args would take a tuple as an argument, and in _get_values it was converted to a list via list comprehension, which meant it was working with tuples too. In the current version, that raises an

<    1   2   3