[issue46707] Parser hanging on stacked { tokens

2022-02-09 Thread anthony shaw
Change by anthony shaw : -- versions: +Python 3.10, Python 3.11 ___ Python tracker <https://bugs.python.org/issue46707> ___ ___ Python-bugs-list mailin

[issue46707] Parser hanging on stacked { tokens

2022-02-09 Thread anthony shaw
New submission from anthony shaw : Providing an (invalid) input to the parser causes an exponentially-slow DoS to the Python executable in 3.10. e.g. python3.10 -c "{:" takes ~2 seconds python3.10 -c ":" takes ~22 seco

[issue46704] Parser API not checking for null-terminator

2022-02-09 Thread anthony shaw
New submission from anthony shaw : In tokenizer.c, the translate_newlines() function does a `strlen()` on the input string, if the string is not null-terminated, e.g. '\xbe' this leads to a heap-buffer-overflow. The overflow is not exploitable, but if there are further changes to the parser

[issue46147] Support AddressSanitizer in Windows build

2021-12-21 Thread anthony shaw
anthony shaw added the comment: After some experimentation, this can be done if you enable ASAN in all projects except python3dll.vcxproj I think it would make sense (if this were supported) to have a flag in build.bat like there is for pgo `build.bat --asan

[issue46147] Support AddressSanitizer in Windows build

2021-12-21 Thread anthony shaw
New submission from anthony shaw : I'd like to compile my C-extensions with ASAN for testing in Windows, but they cannot be loaded as the host python.exe process needs to be compiled with ASAN. https://docs.microsoft.com/en-us/cpp/sanitizers/asan?view=msvc-170#ide-msbuild The EnableASAN

[issue44692] Const folding in parser with negative numbers doesn't match float/int behaviour

2021-07-20 Thread anthony shaw
anthony shaw added the comment: Thanks! I didn't realise it applied the negative operator instead of loading the constant value. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44692] Const folding in parser with negative numbers doesn't match float/int behaviour

2021-07-20 Thread anthony shaw
Change by anthony shaw : -- title: Const unfolding in parser with negative numbers doesn't match float/int behaviour -> Const folding in parser with negative numbers doesn't match float/int behaviour ___ Python tracker <https://bugs.pyth

[issue44692] Const unfolding in parser with negative numbers doesn't match float/int behaviour

2021-07-20 Thread anthony shaw
New submission from anthony shaw : Powers with negative bases do not observe the same rules that float_pow/long_pow do when it comes to returning negative results/ Example: > -2 ** 2 -4 >>> x = -2 >>> y = 2 >>> x ** y 4 >>> -2. ** 2. -4.0 >&g

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-31 Thread anthony shaw
anthony shaw added the comment: Guido, regen.vcxproj targets 142 as the SDK version, which is most likely a mistake. The other projects are part of the main PCBuild.sln solution, which has a variable for the base SDK version. If you need to change it quickly, you can either open it in VS

[issue43292] xml.ElementTree iterparse filehandle left open

2021-02-21 Thread anthony shaw
anthony shaw added the comment: Example script attached works perfectly on macOS > python3.9 test.py [('default', 'http://schemas.openxmlformats.org/officeDocument/2006/extended-properties'), ('vt', 'http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes')] [('defa

[issue43292] xml.ElementTree iterparse filehandle left open

2021-02-21 Thread anthony shaw
anthony shaw added the comment: which version of Python were you doing this on? The function in question is https://github.com/python/cpython/blob/master/Lib/xml/etree/ElementTree.py#L1233-L1278 -- nosy: +anthonypjshaw ___ Python tracker <ht

[issue42521] Debug (-d) mode not working in 3.9

2020-12-01 Thread anthony shaw
anthony shaw added the comment: thanks, it would be great if this were documented in the --help section like the other options which require a debug build (-X showrefcount) -- ___ Python tracker <https://bugs.python.org/issue42

[issue42521] Debug (-d) mode not working in 3.9

2020-12-01 Thread anthony shaw
New submission from anthony shaw : I noticed since the new parser implementation, the debug mode in the tokeniser is no longer working. This is the case for 3.9.0 and also 3.9.1rc1. Running python3.9 with a simple application like this: # Demo application def my_function(): proceed

[issue41888] Duplicate Opcode value in master and 3.9rc2

2020-09-29 Thread anthony shaw
Change by anthony shaw : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue41888> ___ ___ Python-bugs-list

[issue41888] Duplicate Opcode value in master and 3.9rc2

2020-09-29 Thread anthony shaw
anthony shaw added the comment: No, this is intentional. sorry. closing https://github.com/python/cpython/blob/34cd3e9f6a87f9c50edac893b0d5ae46c4e48ee3/Doc/library/dis.rst#L1194 -- ___ Python tracker <https://bugs.python.org/issue41

[issue41888] Duplicate Opcode value in master and 3.9rc2

2020-09-29 Thread anthony shaw
anthony shaw added the comment: Or is this some sort of obscure month python reference!? -- ___ Python tracker <https://bugs.python.org/issue41888> ___ ___ Pytho

[issue41888] Duplicate Opcode value in master and 3.9rc2

2020-09-29 Thread anthony shaw
New submission from anthony shaw : I noticed that HAVE_ARGUMENT and STORE_NAME have the same value (90) in Include/opcode.h in both the source code and in the 2bd31b5f revision (3.9.0rc2). This must be creating some weird bugs. https://github.com/python/cpython/blob

[issue34956] _tkinter built on macOS 10.14 does not link to Tcl and Tk in /Library/Frameworks

2020-05-18 Thread anthony shaw
Change by anthony shaw : -- nosy: +anthonypjshaw nosy_count: 4.0 -> 5.0 pull_requests: +19480 pull_request: https://github.com/python/cpython/pull/17753 ___ Python tracker <https://bugs.python.org/issu

[issue40490] peg_generator module has unused imports

2020-05-03 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +19202 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19891 ___ Python tracker <https://bugs.python.org/issu

[issue40490] peg_generator module has unused imports

2020-05-03 Thread anthony shaw
New submission from anthony shaw : the tools/peg_generator package contains a number of unused imports -- components: Interpreter Core messages: 368005 nosy: anthonypjshaw, pablogsal priority: normal severity: normal stage: needs patch status: open title: peg_generator module has

[issue40432] Pegen regenerate project for Windows not working

2020-04-28 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +19108 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19785 ___ Python tracker <https://bugs.python.org/issu

[issue40432] Pegen regenerate project for Windows not working

2020-04-28 Thread anthony shaw
New submission from anthony shaw : The additional tasks in the MSBuild project for pegen regeneration are not functional: - Setting PYTHONPATH= inline cannot be done in Windows using that method - The task does not inherit environment variables that way - The path to the peg_generator module

[issue39498] Signpost security considerations in library

2020-01-29 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +17647 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18272 ___ Python tracker <https://bugs.python.org/issu

[issue39498] Signpost security considerations in library

2020-01-29 Thread anthony shaw
New submission from anthony shaw : Within the documentation, there are some really important security considerations for standard library modules. e.g. subprocess, ssl, pickle, xml. There is currently no "index" of these, so you have to go hunting for them. They're easter e

[issue34946] inspect.getcallargs is marked as deprecated in documentation, but doesn't issue a DeprecationWarning when used

2020-01-03 Thread anthony shaw
anthony shaw added the comment: Resolved by another bpo -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue39186] Windows installer instructions refer to mercurial

2020-01-01 Thread anthony shaw
New submission from anthony shaw : Very minor, but the instructions in Tools/msi/readme.txt tell the user to ensure hg.exe is in PATH, but the scripts use Git. -- components: Windows messages: 359179 nosy: anthonypjshaw, paul.moore, steve.dower, tim.golden, zach.ware priority: normal

[issue39186] Windows installer instructions refer to mercurial

2020-01-01 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +17225 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17792 ___ Python tracker <https://bugs.python.org/issu

[issue39185] Add quiet and detailed verbosity levels to build.bat

2020-01-01 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +17224 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17791 ___ Python tracker <https://bugs.python.org/issu

[issue39185] Add quiet and detailed verbosity levels to build.bat

2020-01-01 Thread anthony shaw
New submission from anthony shaw : The build.bat script (windows build) has a flag for verbose, which sets the msbuild verbosity level to normal. The default level is minimal. The quiet and detailed levels would also be useful for development. -- components: Windows messages: 359178

[issue39162] setup.py not picking up tkinter headers

2019-12-30 Thread anthony shaw
anthony shaw added the comment: This comes down to a logic bug in detect_tkinter_darwin(), shown in https://github.com/python/cpython/pull/17753/files#r361956102 -- ___ Python tracker <https://bugs.python.org/issue39

[issue39162] setup.py not picking up tkinter headers

2019-12-30 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +17189 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17753 ___ Python tracker <https://bugs.python.org/issu

[issue39162] setup.py not picking up tkinter headers

2019-12-30 Thread anthony shaw
anthony shaw added the comment: I also can't see how this condition would ever match, since macosx_sdk_root() is not in the list being iterated upon, https://github.com/python/cpython/blob/master/setup.py#L1774 -- ___ Python tracker <ht

[issue39162] setup.py not picking up tkinter headers

2019-12-30 Thread anthony shaw
Change by anthony shaw : -- nosy: +ned.deily ___ Python tracker <https://bugs.python.org/issue39162> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39162] setup.py not picking up tkinter headers

2019-12-30 Thread anthony shaw
New submission from anthony shaw : ./configure && make -j4 is returning: Failed to build these modules: _tkinter I'm running macOS 10.15.2, with the SDK installed using `xcode-select --install` (no funny business) /Library/D

[issue39160] ./configure --help has inconsistencies in style

2019-12-29 Thread anthony shaw
Change by anthony shaw : -- nosy: +twouters ___ Python tracker <https://bugs.python.org/issue39160> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39160] ./configure --help has inconsistencies in style

2019-12-29 Thread anthony shaw
Change by anthony shaw : -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue39160> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39160] ./configure --help has inconsistencies in style

2019-12-29 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +17185 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17747 ___ Python tracker <https://bugs.python.org/issu

[issue39160] ./configure --help has inconsistencies in style

2019-12-29 Thread anthony shaw
anthony shaw added the comment: Updated version based on principles: - Should not specify --with(out) in help string - Sentences should start with lowercase (as autoconf generates the builtin string with lower case) - --with-xyx=VALUE will be described as "overriding" -

[issue39160] ./configure --help has inconsistencies in style

2019-12-29 Thread anthony shaw
anthony shaw added the comment: Current Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-universalsdk

[issue39160] ./configure --help has inconsistencies in style

2019-12-29 Thread anthony shaw
New submission from anthony shaw : I've noticed that ./configure --help is inconsistent. - The way default values are shared - The way enumerated - The verbs used (e.g. enable, set) - Some --with-xyx and some --with(out-xyz) - Some start with capitals, others don't Also, many of the flags

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +17166 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17721 ___ Python tracker <https://bugs.python.org/issu

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread anthony shaw
anthony shaw added the comment: Also, make tags will reset the "tags" file, whereas, make TAGS will not. If you ran "make tags" then "make TAGS" you will have a corrupt etags file -- ___ Python tracker <h

[issue39144] Align ctags and etags targets and include Python stdlib

2019-12-27 Thread anthony shaw
New submission from anthony shaw : make tags will include - Modules/_ctypes/ where as make TAGS will not. Also, neither include the Python source files for the standard library, which both etags and ctags are capable of handling. PR to follow -- components: Build messages: 358917

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-13 Thread anthony shaw
anthony shaw added the comment: If you can write a test similar to the AnotherLeak.test_callback test case, and commit that first. It will show in the CI/CD log as failed and verify the issue (incase it comes up in PR review) Then add another commit with the patch itself and we should see

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-11 Thread anthony shaw
anthony shaw added the comment: Thanks Eryk that saved a lot of debugging. dgelessus - if you want to write a patch for CPython am happy to take you through this and get it over the line. Else: am Happy to write a test against the gc counter and a patch

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-11 Thread anthony shaw
anthony shaw added the comment: In the stack it's calling none_dealloc() which should never happen. Assume this is being triggered by ctypes PyCFuncPtr_call. The stacktrace I'm getting comes after the double decref so it's not showing the root cause. Someone who knows ctypes better might

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-11 Thread anthony shaw
anthony shaw added the comment: Full trace for reference: (lldb) bt all * thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT * frame #0: 0x7fff5984f2c6 libsystem_kernel.dylib`__pthread_kill + 10 frame #1: 0x7fff59904bf1 libsystem_pthread.dylib`pthread_kill

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-11 Thread anthony shaw
anthony shaw added the comment: >From lldb (lldb) run ~/cpython/test_gc_ctypes.py Process 20059 launched: '/Users/anthonyshaw/CLionProjects/cpython/python.exe' (x86_64) Fatal Python error: deallocating None Current thread 0x0001005c85c0 (most recent call first): File &quo

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-11 Thread anthony shaw
anthony shaw added the comment: The documentation says: >> Note Make sure you keep references to CFUNCTYPE() objects as long as they are used from C code. ctypes doesn’t, and if you don’t, they may be garbage collected, crashing your program when a callback is made. Also

[issue36880] Returning None from a callback with restype py_object decrements None's refcount too much

2019-05-10 Thread anthony shaw
anthony shaw added the comment: Thanks, I'll check this out -- assignee: -> anthonypjshaw nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issu

[issue36882] 在ctypes里调用C库返回c_char_p类型时的问题

2019-05-10 Thread anthony shaw
anthony shaw added the comment: "When the C library is called in ctypes to return the c_char_p type, the problem that only the string before \0 can be obtained when the string contains \\0" This function is specifically for null-terminated strings (\0), please could you be mor

[issue36883] 在ctypes里调用C库返回c_char_p类型时的问题

2019-05-10 Thread anthony shaw
anthony shaw added the comment: Closing as duplicate of 36882 -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue36883> ___ ___ Python-bug

[issue36883] 在ctypes里调用C库返回c_char_p类型时的问题

2019-05-10 Thread anthony shaw
Change by anthony shaw : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue36883> ___ ___ Python-bugs-list

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-09 Thread anthony shaw
anthony shaw added the comment: The existing tests in place add the null-termination bytes in the test string: def testLinuxAbstractNamespace(self): address = b"\x00python-test-hello\x00\xff" with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as s1:

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-09 Thread anthony shaw
Change by anthony shaw : -- versions: +Python 3.8 -Python 2.7, Python 3.4, Python 3.7 ___ Python tracker <https://bugs.python.org/issue25541> ___ ___ Python-bug

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-09 Thread anthony shaw
anthony shaw added the comment: thanks, your code example zero-pads the socket address, and looking at the socketmodule.c code it does some padding under certain circumstances. https://github.com/python/cpython/blob/master/Modules/socketmodule.c#L1318-L1330 The Unix man page specify the same

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-05-09 Thread anthony shaw
Change by anthony shaw : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35668] Improve test coverage for idlelib

2019-05-08 Thread anthony shaw
Change by anthony shaw : -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue35668> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36500] Add "regen-*" equivalent projects for Windows builds

2019-05-08 Thread anthony shaw
Change by anthony shaw : -- assignee: -> anthonypjshaw nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue36500> ___ ___ Python-bugs-lis

[issue36551] Optimize list comprehensions with preallocate size and protect against overflow

2019-05-08 Thread anthony shaw
Change by anthony shaw : -- assignee: -> anthonypjshaw nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue36551> ___ ___ Python-bugs-lis

[issue36552] Replace OverflowError with ValueError when calculating length of range objects > PY_SIZE_MAX

2019-05-08 Thread anthony shaw
Change by anthony shaw : -- assignee: -> anthonypjshaw nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue36552> ___ ___ Python-bugs-lis

[issue36862] Add Visual Studio 2019 support to PCBuild/env.bat

2019-05-08 Thread anthony shaw
Change by anthony shaw : -- nosy: +steve.dower stage: patch review -> ___ Python tracker <https://bugs.python.org/issue36862> ___ ___ Python-bugs-list mai

[issue36862] Add Visual Studio 2019 support to PCBuild/env.bat

2019-05-08 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +13126 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36862> ___ ___ Py

[issue36862] Add Visual Studio 2019 support to PCBuild/env.bat

2019-05-08 Thread anthony shaw
New submission from anthony shaw : The PCBuild tool should support VS2019 but default to 2017 as per documentation. PR to follow. -- assignee: anthonypjshaw components: Build messages: 341963 nosy: anthonypjshaw priority: normal severity: normal status: open title: Add Visual Studio

[issue24263] unittest cannot load module whose name starts with Unicode

2019-05-08 Thread anthony shaw
anthony shaw added the comment: thanks, will wait for a review from Serhiy, Rbcollins or ezio -- ___ Python tracker <https://bugs.python.org/issue24263> ___ ___

[issue12188] PEP 7 (or guide) add C style policies and explanation

2019-05-08 Thread anthony shaw
anthony shaw added the comment: Hi, This discussion came to a stop, but it doesn't seem conclusive. PEP discussions are now in GitHub on https://github.com/python/peps/issues so I'm going to close this BPO issue. There is no additional section in PEP 7 for this level of detail

[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw
anthony shaw added the comment: After patch: Python 3.8.0a3+ (heads/31968-dirty:c664b342a4, May 6 2019, 18:06:21) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>

[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Issue is in parse_file_actions parse_file_actions(PyObject *file_actions, posix_spawn_file_actions_t *file_actionsp, PyObject *temp_buffer) { PyObject *seq; PyObject *file_action = NULL; PyObject *tag_obj

[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Raised a fix in GH-13144 -- stage: patch review -> ___ Python tracker <https://bugs.python.org/issue36814> ___ ___ Python-

[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +13057 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36814> ___ ___ Py

[issue36814] posix_spawn explicit file_actions=None throws error

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Verified on master Python 3.8.0a3+ (heads/bpo-28367:373c7aa098, May 6 2019, 17:34:39) [Clang 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>

[issue36819] Crash during encoding using UTF-16/32 and custom error handler

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Easily reproduced on master, thanks (lldb) run encode_crash.py Process 14743 launched: '/Users/anthonyshaw/repo/cpython/python.exe' (x86_64) Objects/unicodeobject.c:448: _PyUnicode_CheckConsistency: Assertion "((PyObject*)(op))->ob_type))->tp_fl

[issue36821] Termios module largely untested

2019-05-06 Thread anthony shaw
anthony shaw added the comment: This could be a good issue for the PyCon sprints, otherwise I'm happy to implement it -- ___ Python tracker <https://bugs.python.org/issue36

[issue36821] Termios module largely untested

2019-05-06 Thread anthony shaw
New submission from anthony shaw : I noticed that the termios.c module is largely untested. There is some coverage via test_pty, test_ioctl and test_getpass, but there is nothing to cover regression and the behaviours in the module functions. Tests are required for: - termios.tcgetattr

[issue28367] Add more standard baud rate constants to "termios"

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Converted the original patch as a PR GH-13142 this seems like a good idea and an easy change -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue28

[issue28367] Add more standard baud rate constants to "termios"

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- pull_requests: +13055 ___ Python tracker <https://bugs.python.org/issue28367> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27534] IDLE: Reduce number and time for user process imports

2019-05-06 Thread anthony shaw
anthony shaw added the comment: It would be great for this issue to be revisited, there has been some further interest from users. -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue27

[issue25251] Unknown MS Compiler version 1900

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Closing as 3rd party feature for setuptools -- nosy: +anthonypjshaw resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue28775] Option to set startup directory in IDLE

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Hi Nofar are you still interested on working on this request? -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue28

[issue31968] exec(): method's default arguments from dict-inherited globals

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Added a PR for the documentation clarification. -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue31

[issue31968] exec(): method's default arguments from dict-inherited globals

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- pull_requests: +13053 ___ Python tracker <https://bugs.python.org/issue31968> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24939] Remove unicode_format.h from stringlib

2019-05-06 Thread anthony shaw
anthony shaw added the comment: The code is mostly: FieldNameIterator * related functions FormatterIterator * related functions MarkupIterator * related functions There are a few other utility methods in there as well -- ___ Python tracker

[issue34368] ftplib __init__ function can't handle 120 or 4xy reply when connect to the server

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- nosy: +giampaolo.rodola ___ Python tracker <https://bugs.python.org/issue34368> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32971] Docs on unittest.TestCase.assertRaises() should clarify context manager details

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue32971> ___ ___ Pyth

[issue32971] Docs on unittest.TestCase.assertRaises() should clarify context manager details

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- pull_requests: -9605 ___ Python tracker <https://bugs.python.org/issue32971> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25541] Wrong usage of sockaddr_un struct for abstract namespace unix sockets

2019-05-06 Thread anthony shaw
anthony shaw added the comment: hi, which version of Python were you using to do this? Please could you provide the full code snippet to reproduce the issue. The following example binds to the correct namespace from socket import * sock = socket(AF_UNIX, SOCK_STREAM) sock.bind(&qu

[issue33971] os.mknod is subject to "umask"

2019-05-06 Thread anthony shaw
anthony shaw added the comment: NB: This issue would be good for PyCon sprints -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue33

[issue33971] os.mknod is subject to "umask"

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- assignee: docs@python -> Mariatta nosy: +Mariatta ___ Python tracker <https://bugs.python.org/issue33971> ___ ___ Python-bugs-lis

[issue24939] Remove unicode_format.h from stringlib

2019-05-06 Thread anthony shaw
anthony shaw added the comment: > The things that are in this file but are unrelated to unicodeobject.c are the support routines for implementing string.Formatter. I'm not sure which functions that relates to, if you could let me know I'd be happy to add those to the

[issue24939] Remove unicode_format.h from stringlib

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +13050 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue24939> ___ ___ Py

[issue24939] Remove unicode_format.h from stringlib

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Eric, there have been further changes to Objects/stringlib/unicode_format.h since this original note, I've raised a PR with the intent of your note from 2015. There also hasn't been any change to the situation, unicode_format.h is only used

[issue25597] unittest.mock does not wrap dunder methods (__getitem__ etc)

2019-05-06 Thread anthony shaw
anthony shaw added the comment: The assertions in the attached test still fail on master (3.8a3), so this still applies. Michael, are you able to look at this, the code hasn't changed since the original PEP417 implementation, which doesn't specify if this behaviour should be supported

[issue13582] IDLE and pythonw.exe stderr problem

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Revisiting this issue as it's still open. The original patch was for 3.3a0, there have been many changes to both IDLE and the Windows build since, including the recent IDLE entry point in the new Windows installer. Steve, Terry, please could you review

[issue26278] BaseTransport.close() does not trigger connection_lost()

2019-05-06 Thread anthony shaw
anthony shaw added the comment: This issue was never responded to, are you still having this issue? Which version of CPython are you using and can you please provide steps to reproduce the problem. -- nosy: +anthonypjshaw ___ Python tracker

[issue28742] argparse.ArgumentDefaultsHelpFormatter sometimes provides inaccurate documentation of defaults, so they should be overrideable

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Hi Peter, this proposal would be easier to review as a GitHub Pull Request. -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue28

[issue34946] inspect.getcallargs is marked as deprecated in documentation, but doesn't issue a DeprecationWarning when used

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Submitted PR to add the deprecation warning, since this initial discussion, some other functions also raise DeprecationWarning's in code. -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.

[issue34946] inspect.getcallargs is marked as deprecated in documentation, but doesn't issue a DeprecationWarning when used

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- keywords: +patch pull_requests: +13040 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue34946> ___ ___ Py

[issue31603] Please add argument to override stdin/out/err in the input builtin

2019-05-06 Thread anthony shaw
anthony shaw added the comment: The discussion on python-ideas has some unresolved questions. Wren, did you get a definitive answer on this idea? -- nosy: +anthonypjshaw ___ Python tracker <https://bugs.python.org/issue31

[issue5243] Missing dependency in distutils build

2019-05-06 Thread anthony shaw
Change by anthony shaw : -- nosy: +dstufft, ncoghlan ___ Python tracker <https://bugs.python.org/issue5243> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28540] math.degrees(sys.float_info.max) should throw an OverflowError exception

2019-05-06 Thread anthony shaw
anthony shaw added the comment: Francisco, I recommend converting the patch into a GitHub pull request to make it easier to code review. Mark, Raymond, please could you re-review this patch. -- nosy: +anthonypjshaw, rhettinger ___ Python tracker

  1   2   >