[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:

[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

[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

[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.py

[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

[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

[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 revi

[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

[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 onl

[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 th

[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

[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

[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

[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:

[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

[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:

[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

[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:

[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

[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

[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

[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

[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:

[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

[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

[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/is

[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))

[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. >>>

[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: 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
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: 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. >>>

[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile
New submission from Anthony Sottile : This appears to be a regression between 3.8a3 and 3.8a4 -- though it may be intentional and I'm missing something? I noticed this while packaging 3.8 for deadsnakes https://github.com/deadsnakes/python3.8 I've created a minimal reproductio

[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile
Anthony Sottile added the comment: +vstinner Hmmm, actually the relevant commit appears to be 6c44fde3e03079e0c69f823dafbe04af50b5bd0d and intentional (I ran a git bisect to find this!) https://github.com/python/cpython/pull/12931 Does PEP 3149 require an update with this change, it still

[issue36844] abiflag `m` is no longer showing when compiled with --enable-shared

2019-05-07 Thread Anthony Sottile
Anthony Sottile added the comment: seems intentional => closing -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[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

[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> ___ ___

[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

[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

[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

[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

[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:

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

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

[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

[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: 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:

[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

[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

[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

[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: 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, note that

[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: >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):

[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: 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`pt

[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

[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 for this

[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

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Anthony Sottile
New submission from Anthony Sottile : More fallout from the Constant change in https://bugs.python.org/issue32892 minimal reproduction: import ast class V(ast.NodeVisitor): def visit_Str(self, node): print(node.s) def main(): V().visit(ast.parse('x = "hi"&#

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Anthony Sottile
Anthony Sottile added the comment: wrong bpo, this is the right one: https://bugs.python.org/issue32892 -- ___ Python tracker <https://bugs.python.org/issue36

[issue32892] Remove specific constant AST types in favor of ast.Constant

2019-05-14 Thread Anthony Sottile
Anthony Sottile added the comment: hitting this in https://bugs.python.org/issue36917? Is the simplification here really worth the breaking change to consumers? I now have to write something that's essentially this to work around this which feels more like the complexity has just

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-14 Thread Anthony Sottile
Anthony Sottile added the comment: There would still be a breakage for that if someone was defining py36+ `visit_Constant` (which would clobber the `ast.NodeVisitor.visit_Constant` if we were to add it) -- ___ Python tracker <ht

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-15 Thread Anthony Sottile
Anthony Sottile added the comment: spent some more time thinking about this and I think we should strongly consider reverting. simplification in the core interpreter should not be weighed lightly against complexity and breaking changes for users. the change is also unfortunate because it

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-15 Thread Anthony Sottile
Anthony Sottile added the comment: The simplest case is just the addition of an `isinstance` check: https://github.com/asottile/dead/blob/85f5edbb84b5e118beab4be3346a630e41418a02/dead.py#L165-L170 class V(ast.NodeVisitor): def visit_Str(self, node): ... def visit_Constant

[issue36917] ast.NodeVisitor no longer calls visit_Str

2019-05-15 Thread Anthony Sottile
Anthony Sottile added the comment: > You can not use the same implementation of the visitor for Num, Str, > NameConstant and Ellipsis, because all these classes use different attribute > for saving the value ah yes, this is true -- maybe the better change would be to just add `

[issue32539] os.listdir(...) on deep path on windows in python2.7 fails with errno 123

2018-01-12 Thread Anthony Sottile
New submission from Anthony Sottile : On windows, a deep path can be accessed by prefixing the path with \\?\ https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx?f=255&MSPPError=-2147217396#maxpath The call to `listdir()` fails because it uses a posix separator

[issue32539] os.listdir(...) on deep path on windows in python2.7 fails with errno 123

2018-01-12 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +5023 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32539> ___ ___ Py

[issue32770] collections.counter examples are misleading

2018-02-04 Thread Anthony Flury
New submission from Anthony Flury : The first example given for collections.Counter is misleading - the documentation ideally should show the 'best' (one and only one) way to do something and the example is this : >>> # Tally occurrences of words in a list >>> cnt

[issue32770] collections.counter examples are misleading

2018-02-05 Thread Anthony Flury
Anthony Flury added the comment: Raymond, I completely understand your comment but I do disagree. My view would be that the documentation of the stdlib should document the entry level use cases. The first example given uses nothing special from the Counter class - you could implement

[issue32770] collections.counter examples are misleading

2018-02-05 Thread Anthony Flury
Anthony Flury added the comment: Cheryl : When you iterate around a counter instance it does return keys in the order they are first encountered/inserted - so I agree with you that it is an ordered collection from Python 3.7 onwards (although the iteration and the repr are ordered in

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2018-02-09 Thread Anthony Sottile
Anthony Sottile added the comment: Seeing this as well when running the cpython test suite in docker: ``` $ ./python -m test.test_asyncio ... [18 similar traces omitted] == ERROR: test_sock_sendfile_zero_size

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2018-02-09 Thread Anthony Sottile
Anthony Sottile added the comment: Actually, my issue seems to be something more strange. The host being passed in is `localhost` which resolves to: ``` >>> pprint.pprint(socket.getaddrinfo('localhost', 80)) [(, , 6, '', ('127.0.0.1', 80)),

[issue30945] loop.create_server does not detect if the interface is IPv6 enabled

2018-02-09 Thread Anthony Sottile
Anthony Sottile added the comment: Applying this patch makes the tests pass for me, but I don't think the patch is appropriate (just hides the bug): ``` $ git diff diff --git a/Lib/test/test_asyncio/test_unix_events.py b/Lib/test/test_asyncio/test_unix_events.py index 5bd76d3..ff6c4e1 1

[issue32933] mock_open does not support iteration around text files.

2018-02-24 Thread Anthony Flury
New submission from Anthony Flury : Using the unittest.mock helper mock_open with multi-line read data, although readlines method will work on the mocked open data, the commonly used iterator idiom on an open file returns the equivalent of an empty file. from unittest.mock import

[issue32933] mock_open does not support iteration around text files.

2018-02-25 Thread Anthony Flury
Change by Anthony Flury : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue32933> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2018-03-01 Thread Anthony Sottile
Anthony Sottile added the comment: Still a problem in 3.7: $ python3.7 Python 3.7.0b2 (default, Feb 28 2018, 06:59:18) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ast &g

[issue32933] mock_open does not support iteration around text files.

2018-03-04 Thread Anthony Flury
Change by Anthony Flury : -- keywords: +patch pull_requests: +5740 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32933> ___ ___ Py

[issue32933] mock_open does not support iteration around text files.

2018-03-04 Thread Anthony Flury
Change by Anthony Flury : -- pull_requests: +5741 ___ Python tracker <https://bugs.python.org/issue32933> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32933] mock_open does not support iteration around text files.

2018-03-04 Thread Anthony Flury
Change by Anthony Flury : -- pull_requests: +5742 ___ Python tracker <https://bugs.python.org/issue32933> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32933] mock_open does not support iteration around text files.

2018-03-04 Thread Anthony Flury
Change by Anthony Flury : -- pull_requests: +5743 ___ Python tracker <https://bugs.python.org/issue32933> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28955] Not matched behavior of numeric comparison with the documentation

2018-03-05 Thread Anthony Flury
Change by Anthony Flury : -- keywords: +patch pull_requests: +5748 stage: needs patch -> patch review ___ Python tracker <https://bugs.python.org/issu

[issue33006] docstring of filter function is incorrect

2018-03-07 Thread Anthony Flury
Change by Anthony Flury : -- keywords: +patch pull_requests: +5782 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33006> ___ ___ Py

[issue31550] Inconsistent error message for TypeError with subscripting

2018-03-19 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +5909 ___ Python tracker <https://bugs.python.org/issue31550> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31550] Inconsistent error message for TypeError with subscripting

2018-03-19 Thread Anthony Sottile
Anthony Sottile added the comment: I made a new PR which instead *reverts* the python2.7 patch to restore consistency -- ___ Python tracker <https://bugs.python.org/issue31

[issue31550] Inconsistent error message for TypeError with subscripting

2018-03-19 Thread Anthony Sottile
Anthony Sottile added the comment: I think the main concern here is ease in portability coupled with the incorrectness of the current message (pointed out in https://bugs.python.org/issue31550#msg302738) For instance it was consistent in 2.7.1, but not later on in the 2.7.x tree. *And

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-03-20 Thread Anthony Sottile
Anthony Sottile added the comment: The intention of the change in issue 26510 was to pick the least surprising behaviour for the default value of subparsers -- the compatiblity with the behaviour before the regression was introduced in 3.3 was a nice side-effect. As with the rest of

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-03-20 Thread Anthony Sottile
Anthony Sottile added the comment: Grabbed the wrong SO link, I believe this is the one I meant to link to: https://stackoverflow.com/a/18283730/812183 -- ___ Python tracker <https://bugs.python.org/issue33

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-03-20 Thread Anthony Sottile
Anthony Sottile added the comment: Yeah, I picked the default value `True` because I couldn't actually find a user of subparsers that _wanted_ optional subparsers. ¯\_(ツ)_/¯ -- ___ Python tracker <https://bugs.python.org/is

[issue32933] mock_open does not support iteration around text files.

2018-04-06 Thread Anthony Flury
Anthony Flury added the comment: No - it isn't related. In the case of mock_open; it isn't intended to be a simple MagicMock - it is meant to be a mocked version of open, and so to be useful as a testing tool, it should emulate a file as much as possible. When a mock_open is cr

[issue33006] docstring of filter function is incorrect

2018-04-30 Thread Anthony Flury
Anthony Flury added the comment: Strictly speaking the official Python2 reference document isn't a great example - for instance: ' If function is None, the identity function is assumed, that is, all elements of iterable that are false are removed.' Implies that items are r

[issue33405] PYTHONCOERCECLOCALE no longer being respected

2018-05-01 Thread anthony shaw
New submission from anthony shaw : observing a behaviour on Python 3.7 b2 that doesn't match what's documented in PEP 538 PEP 538 states that the locale coercion behaviour can be disabled through the PYTHONCOERCECLOCALE environment variable. I would then expect the stdin encoding

[issue33109] argparse: make new 'required' argument to add_subparsers default to False instead of True

2018-05-15 Thread Anthony Sottile
Anthony Sottile added the comment: According to the other bugs, the change in 3.3 was an inadvertent regression. The fact that it didn't get fixed for so long is mostly due to the unmaintained state of argparse in the stdlib. The change in behaviour here is the _fix_ of that regre

[issue31550] Inconsistent error message for TypeError with subscripting

2017-09-24 Thread Anthony Sottile
Anthony Sottile added the comment: Shouldn't you wait for Raymond's arguments before outright closing the PR? -- ___ Python tracker <https://bugs.python.o

[issue31766] Python 3.5 missing from documentation

2017-10-11 Thread Anthony Flury
New submission from Anthony Flury : In the Python version pull down list on docs.python.org, Python3.5 used to be listed, but has now been removed; the list only contains 2.7, 3.6 & 3.7. Python 3.5 is still the official Python 3.5 release in the Ubuntu repository, and still a suppo

[issue31766] Python 3.5 missing from documentation

2017-10-12 Thread Anthony Flury
Anthony Flury added the comment: Isn't Python 2.7 in Security Fix only as well ? It seems strange; Python 3.5 probably the most heavily installed Python 3 release (every Ubuntu installation has Python 3.5 installed by default - and neither Python 3.6 or 3.7 are available from the sta

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-11-03 Thread Anthony Sottile
New submission from Anthony Sottile : Fortunately, this can be reproduced with the testsuite: ``` == ERROR: test_copystat_symlinks (__main__.TestShutil

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-11-03 Thread Anthony Sottile
Anthony Sottile added the comment: Here's one idea for a patch (inspired by the rest of the function): ``` diff --git a/Lib/shutil.py b/Lib/shutil.py index 464ee91..2099289 100644 --- a/Lib/shutil.py +++ b/Lib/shutil.py @@ -213,6 +213,13 @@ def copystat(src, dst, *, follow_symlinks

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-11-03 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +4230 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue31940> ___ ___ Py

[issue31940] copystat on symlinks fails for alpine -- faulty lchmod implementation?

2017-12-10 Thread Anthony Sottile
Change by Anthony Sottile : -- pull_requests: +4684 ___ Python tracker <https://bugs.python.org/issue31940> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2   3   4   5   6   7   8   >