[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2015-06-17 Thread Martin Panter
Martin Panter added the comment: FWIW there is a new message currently being triggered by test___all__. The patch here also stops this message. $ hg update 4335d898be59 $ ./python -bWall -m test test___all__ [1/1] test___all__ Warning -- warnings.filters was modified by test___all__ 1 test alte

[issue24421] Race condition compiling Modules/_math.c

2015-06-17 Thread Martin Panter
Martin Panter added the comment: Here is a hacky patch that adds #include "_math.c" so that it is not compiled as a separate object file. This was suggested by Mark in Issue 7518. It is far from a perfect solution, but I cannot suggest anything better without knowing more about Python’s build

[issue24419] In argparse action append_const doesn't work for positional arguments

2015-06-17 Thread py.user
py.user added the comment: paul j3 wrote: > The name (and hence the 'dest') must be unique. The problem is in the dest argument of add_argument(). Why user can't set a custom name for a positional? We can use this list not only for positionals but for optionals too. -- __

[issue24419] In argparse action append_const doesn't work for positional arguments

2015-06-17 Thread paul j3
paul j3 added the comment: None of the `append` actions makes sense with positionals. The name (and hence the 'dest') must be unique. And positionals can't be repeated. There are other ways to put a pair of values in the Namespace. For example, after parsing args.x = [42, 43] or befor

[issue24419] In argparse action append_const doesn't work for positional arguments

2015-06-17 Thread py.user
py.user added the comment: paul j3 wrote: > What are you trying to accomplish in the examples with a 'dest'? To append all that constants to one list. >From this: Namespace(bar=[43], foo=[42]) To this: Namespace(x=[43, 42]) -- ___ Python tracker <

[issue24419] In argparse action append_const doesn't work for positional arguments

2015-06-17 Thread paul j3
paul j3 added the comment: What are you trying to accomplish in the examples with a 'dest'? For a positional, 'dest' is derived from the 'foo' name. There is no need to supply 'dest', in fact produces the error you get. It has nothing to with this action type (as your last example demonstra

[issue24441] In argparse add_argument() allows the empty choices argument

2015-06-17 Thread paul j3
Changes by paul j3 : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue24444] In argparse empty choices cannot be printed in the help

2015-06-17 Thread paul j3
paul j3 added the comment: Does this work for help='choices: %(choices)s' Without setting up my own test case, I'm guessing that the problem is with an empty help string. `help=''` should be ok, but the test handle that probably occurs earlier. Choices, empty or not, are included earlie

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov : Added file: http://bugs.python.org/file39723/corotype.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov : Added file: http://bugs.python.org/file39722/corotype.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +fwierzbicki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-17 Thread Armin Rigo
Armin Rigo added the comment: No problem from PyPy. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-06-17 Thread Ned Deily
Ned Deily added the comment: Ent, thanks for all your work on this, and thanks to Demian and Martin for their reviews. In the meantime, the Python 3.5 release cycle has reached feature code cutoff so, at this point, generally only bug fixes are being accepted into 3.5, which means this refacto

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-06-17 Thread Cyd Haselton
Cyd Haselton added the comment: Update: Now that I;ve finished porting a much-needed gdb to my device, I should have time to tackle patch and testing this weekend. Will post results when I have them. -- ___ Python tracker

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +arigo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue23255] SimpleHTTPRequestHandler refactor for more extensible usage.

2015-06-17 Thread Ent
Ent added the comment: Hello, Since this patch is in acceptable state, should the Status or Resolution be changed so that it is flagged to be merged into Python 3.5? Thanks. -- ___ Python tracker ___

[issue23883] __all__ lists are incomplete

2015-06-17 Thread Jacek Kołodziej
Changes by Jacek Kołodziej : Added file: http://bugs.python.org/file39721/Issue23883_csv_all.v2.patch ___ Python tracker ___ ___ Python-bugs-l

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov : -- assignee: -> yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue7518] Some functions in pymath.c should be moved elsewhere.

2015-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, there are almost certainly better ways to organize the build here. A hacky solution might be to simply #include _math.c in the two other files that need it. -- ___ Python tracker

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov : -- nosy: +yselivanov resolution: fixed -> stage: resolved -> patch review ___ Python tracker ___ ___ Pyth

[issue24439] Feedback for awaitable coroutine documentation

2015-06-17 Thread Yury Selivanov
Yury Selivanov added the comment: Martin, thanks a lot for the feedback and patch! I'll review the patch when issue24400 lands. -- assignee: docs@python -> yselivanov nosy: +ncoghlan ___ Python tracker ___

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-17 Thread Yury Selivanov
Yury Selivanov added the comment: I think we need some feedback from PyPy & Jython guys on this. I'm not sure that they can expose 'yieldfrom' slot without some performance penalties. -- nosy: +yselivanov ___ Python tracker

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-17 Thread Yury Selivanov
Yury Selivanov added the comment: Nick, Stefan, Martin, Please find an updated patch attached. All issues that you guys found (thanks a lot for the reviews btw!) should be resolved. -- Added file: http://bugs.python.org/file39720/corotype.patch __

[issue24462] bytearray.find Buffer Over-read

2015-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue24380] Got warning when compiling _scproxy.c on Mac

2015-06-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: The patch is not correct. You're probably building with a new enough version of OSX as the deployment target. _scproxy.c should recognise this and should only perform the != NULL test when the variable address might be NULL. #if MAC_OS_X_VERSION_MIN_REQUIRE

[issue24461] os.environ.get treats Environt variant with double quotation marks wrong

2015-06-17 Thread R. David Murray
R. David Murray added the comment: This is working in pretty much the only way it can work. Python is correctly retrieving the string from the environment (it includes the quotation marks). It is correctly passing that string to os.path: os.path takes the exact string that represents the fil

[issue24460] urlencode() of dictionary not as expected

2015-06-17 Thread David Rueter
David Rueter added the comment: Ah hah! Indeed, urlencode() does work on dictionaries as expected when doseq=True. Thank you for clarifying. FWIW I had read the documentation and the referenced examples multiple times. I would like to make a few documentation suggestions for clarity. 1 ) Upda

[issue24462] bytearray.find Buffer Over-read

2015-06-17 Thread JohnLeitch
New submission from JohnLeitch: The bytearray.find method suffers from a buffer over-read that can be triggered by passing a string equal in length to the buffer. The result is a read off the end of the buffer, which could potentially be exploited to disclose the contents of adjacent memory.

[issue24460] urlencode() of dictionary not as expected

2015-06-17 Thread R. David Murray
R. David Murray added the comment: That behavior is complex enough that I think it would be worth adding an example of it to the examples section (and maybe linking directly from the doseq explanation to that specific example). -- assignee: -> docs@python components: +Documentation no

[issue23883] __all__ lists are incomplete

2015-06-17 Thread Mauro S. M. Rodrigues
Changes by Mauro S. M. Rodrigues : Removed file: http://bugs.python.org/file39140/issue23883_fileinput.patch ___ Python tracker ___ ___ Python

[issue23883] __all__ lists are incomplete

2015-06-17 Thread Mauro S. M. Rodrigues
Changes by Mauro S. M. Rodrigues : Added file: http://bugs.python.org/file39718/issue23883_fileinput.patch ___ Python tracker ___ ___ Python-b

[issue24461] os.environ.get treats Environt variant with double quotation marks wrong

2015-06-17 Thread 进陆
进陆 added the comment: the patched method should be [quote] if os.name=='nt' and res: res=res.replace('"', '') [/quote] -- ___ Python tracker ___ _

[issue24461] os.environ.get treats Environt variant with double quotation marks wrong

2015-06-17 Thread 进陆
New submission from 进陆: On windows, if a Directory/Filename has SPACE, double quotation mark should be used. For example, "R:\just a test\hello.bat" has only one line "@echo hello world", so in the dos prompt [quote] R:\just a test>hello.bat hello world R:\just a test>cd .. R:\>set dir1="R:\j

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-06-17 Thread Torsten Bronger
Changes by Torsten Bronger : -- nosy: +bronger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue24460] urlencode() of dictionary not as expected

2015-06-17 Thread Gareth Rees
Gareth Rees added the comment: If you read the documentation for urllib.parse.urlencode [1], you'll see that it says: The value element in itself can be a sequence and in that case, if the optional parameter doseq is evaluates to True, individual key=value pairs separated by '&' are