[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +arigo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24450 ___ ___ Python-bugs-list

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org http://bugs.python.org/issue24450 ___ ___ Python-bugs-list mailing list

[issue24400] Awaitable ABC incompatible with functools.singledispatch

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: Added file: http://bugs.python.org/file39722/corotype.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24400 ___

[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

[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

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

[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

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +fwierzbicki ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24450 ___ ___ Python-bugs-list

[issue24460] urlencode() of dictionary not as expected

2015-06-17 Thread David Rueter
New submission from David Rueter: In Python 3.4 I would like to serialize a dictionary into a URL-encoded string. Given a dictionary like this: thisDict = {'SomeVar1': [b'abc'], 'SomeVar2': [b'def'], 'SomeVar3': [b'ghi']} I would like to be able to return this string:

[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 rep...@bugs.python.org http://bugs.python.org/issue24461 ___

[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

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

2015-06-17 Thread Torsten Bronger
Changes by Torsten Bronger bron...@physik.rwth-aachen.de: -- nosy: +bronger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20362 ___ ___

[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 testhello.bat hello world R:\just a testcd .. R:\set dir1=R:\just a

[issue23883] __all__ lists are incomplete

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

[issue23883] __all__ lists are incomplete

2015-06-17 Thread Mauro S. M. Rodrigues
Changes by Mauro S. M. Rodrigues maurosmrodrig...@gmail.com: Added file: http://bugs.python.org/file39718/issue23883_fileinput.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23883 ___

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

[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

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

[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

[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

[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 rep...@bugs.python.org

[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 rep...@bugs.python.org

[issue23996] _PyGen_FetchStopIterationValue() crashes on unnormalised exceptions

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +yselivanov resolution: fixed - stage: resolved - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23996 ___

[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 rep...@bugs.python.org

[issue24450] Add gi_yieldfrom calculated property to generator object

2015-06-17 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- assignee: - yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24450 ___ ___

[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

[issue24462] bytearray.find Buffer Over-read

2015-06-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24462 ___ ___