[issue17765] weakref.ref ignores a 'callback' keyword argument

2016-05-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> georg.brandl ___ Python tracker ___ ___

[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04250fc723e6 by Serhiy Storchaka in branch '3.5': Issue #26889: Tweaked xmlrpc.client documentation. https://hg.python.org/cpython/rev/04250fc723e6 New changeset 9bdec549bad3 by Serhiy Storchaka in branch 'default': Issue #26889: Tweaked

[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Terry. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread John Wong
On Sat, May 7, 2016 at 12:04 AM, Chris Angelico wrote: > > > In the case of PyCon questions, I fully agree with it; there were > enough women present that it wasn't a ridiculous suggestion, and it > encourages people to speak up who might otherwise have kept quiet. But > just

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread Chris Angelico
On Sat, May 7, 2016 at 1:33 PM, Steven D'Aprano wrote: > On Sat, 7 May 2016 06:35 am, beliav...@aol.com wrote: > >> This not "equal opportunity". It is a quota system. > > I must ask, what do you think the phrase "quota system" means? > > Who is setting and enforcing this

[issue22107] tempfile module misinterprets access denied error on Windows

2016-05-06 Thread Eryk Sun
Eryk Sun added the comment: The Windows API loses information when mapping kernel status values to Windows error codes. For example, the following status values are all mapped to ERROR_ACCESS_DENIED: STATUS_INVALID_LOCK_SEQUENCE 0xc01e STATUS_INVALID_VIEW_SIZE 0xc01f

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread Steven D'Aprano
On Sat, 7 May 2016 06:35 am, beliav...@aol.com wrote: > This not "equal opportunity". It is a quota system. I must ask, what do you think the phrase "quota system" means? Who is setting and enforcing this quota, and given that only about 1 in 20 Python programmers is a woman, do you think men

Re: A fun python CLI program for all to enjoy!

2016-05-06 Thread MRAB
On 2016-05-07 00:58, DFS wrote: On 5/6/2016 7:29 PM, Ethan Furman wrote: On 05/06/2016 04:12 PM, DFS wrote: On 5/6/2016 4:30 PM, MRAB wrote: If you don't want to use the 'with' statement, note that closing the file is: f.close() It needs the "()"! I used close() in 1

Re: A fun python CLI program for all to enjoy!

2016-05-06 Thread DFS
On 5/6/2016 7:29 PM, Ethan Furman wrote: On 05/06/2016 04:12 PM, DFS wrote: On 5/6/2016 4:30 PM, MRAB wrote: If you don't want to use the 'with' statement, note that closing the file is: f.close() It needs the "()"! I used close() in 1 place, but close without parens in

Re: python, ctypes and GetIconInfo issue

2016-05-06 Thread eryk sun
On Fri, May 6, 2016 at 9:49 AM, wrote: > > In your example you used a base class > and ICONINFO well as ICONINFOEX inherit it. > As the members of ICONINFO are part of ICONINFOEX > couldn't we do something like > > class ICONINFO_BASE(ctypes.Structure): > def __del__(self,

Re: python, ctypes and GetIconInfo issue

2016-05-06 Thread eryk sun
On Fri, May 6, 2016 at 8:36 AM, wrote: > >> Please avoid windll. It caches the loaded library, which in turn >> caches function pointers. So all packages that use windll.user32 are >> potentially stepping on each others' toes with mutually incompatible >> function prototypes.

Re: A fun python CLI program for all to enjoy!

2016-05-06 Thread Ethan Furman
On 05/06/2016 04:12 PM, DFS wrote: On 5/6/2016 4:30 PM, MRAB wrote: If you don't want to use the 'with' statement, note that closing the file is: f.close() It needs the "()"! I used close() in 1 place, but close without parens in 2 other places. So it works either way.

Re: A fun python CLI program for all to enjoy!

2016-05-06 Thread DFS
On 5/6/2016 4:30 PM, MRAB wrote: On 2016-05-06 20:10, DFS wrote: getAddresses.py Scrapes addresses from www.usdirectory.com and stores them in a SQLite database, or writes them to text files for mailing labels, etc Now, just by typing 'fast food Taco Bell 10 db all' you can find out how many

Re: Whittle it on down

2016-05-06 Thread DFS
On 5/6/2016 11:44 AM, Peter Otten wrote: DFS wrote: There are up to 4 levels of categorization: http://www.usdirectory.com/cat/g0 shows 21 Level 1 categories, and 390 Level 2. To get the Level 3 and 4 you have to drill-down using the hyperlinks. How to do it in python code is beyond my

[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The corrected link works. I agree with deleting a bad sentence if you cannot fix it. I think you can go ahead and apply as is. -- ___ Python tracker

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread alex wright
It seems like it would be equal opportunity between sexes. 1:1 opportunity to ask based on apparent sex. It is not equal representation necessarily. On May 6, 2016 5:53 PM, "beliavsky--- via Python-list" < python-list@python.org> wrote: > On Friday, May 6, 2016 at 5:07:28 PM UTC-4, Ethan Furman

[issue26934] android: test_faulthandler fails

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 8 failures are all because exitcode is 0 when it should not be. self.assertNotEqual(exitcode, 0) AssertionError: 0 == 0 -- nosy: +terry.reedy ___ Python tracker

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW asyncio's own test suite makes sure that the loop is indeed passed everywhere by setting the default loop to None. If a library chooses to pass the loop around like this it should structure its tests the same way. --

[issue26911] lib2to3/tests/pytree_idempotency.py has broken imports

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided that I should leave the scope of this issue as it was and close it as fixed. -- assignee: -> terry.reedy resolution: -> fixed stage: needs patch -> resolved status: open -> closed title: lib2to3/tests/pytree_idempotency.py does not run ->

[issue26912] Broken imports in test/test_email/torture_test.py, test_asian_codecs.py) has a broken import

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I also removed try to import the deleted support.TestSkipped. I temporarily commented out the SkipTest replacement so the module would run, create the test class, run it, and fail. I believe the import of run_unittest and the associated test_main, etc, can

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread beliavsky--- via Python-list
On Friday, May 6, 2016 at 5:07:28 PM UTC-4, Ethan Furman wrote: > On 05/06/2016 01:35 PM, beliavsky--- via Python-list wrote: > > > Most of [Guido's] keynote at that conference was answering questions from > > the people who had attended. And he actually said, "Let's alternate > between > >

[issue26912] Broken imports in test/test_email/torture_test.py, test_asian_codecs.py) has a broken import

2016-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7da216ba17c by Terry Jan Reedy in branch '3.5': Issue 26912: fix broken imports in test_email package. https://hg.python.org/cpython/rev/e7da216ba17c -- nosy: +python-dev ___ Python tracker

[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-05-06 Thread Christian Heimes
Christian Heimes added the comment: This patch implements SHA-3 and SHAKE for Python 3.6. The algorithm is provided by a slightly modified copy of the Keccak Code Package. I had to replace C++ comments and perform some minor cleanups. -- stage: needs patch -> patch review Added file:

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread Ethan Furman
On 05/06/2016 01:35 PM, beliavsky--- via Python-list wrote: Most of [Guido's] keynote at that conference was answering questions from > the people who had attended. And he actually said, "Let's alternate between > men and women asking questions."On the second day of the conference, he was >

[issue26912] Broken imports in test/test_email/torture_test.py, test_asian_codecs.py) has a broken import

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: As with #26911, no 'test_' prefix means 'run by hand'. I will make the two simple fixes, as well as delete 'from types import ListType' (ListType is list, and removed in 3.x). But I will not try to run the torture test, hence no guarantee that it will run

[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-05-06 Thread Christian Heimes
Changes by Christian Heimes : -- hgrepos: -152 ___ Python tracker ___ ___ Python-bugs-list

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: >> Update some places in asyncio where we currently use "get_event_loop()", >> such as Future constructor, Task.current_task, etc. > Yury, do you have an idea how it could be done? I think I do. To keep the backwards compatibility, we'll need to update the

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Luiz for your testing. > __main__:1: DeprecationWarning: Use of '' is deprecated It is bad that a warning is emitted for default value. > Will bytes be deprecated if used as a default_schema? No, only using empty bytes schema with string url is

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread R. David Murray
R. David Murray added the comment: The way I avoid the errors of failing to always pass the loop through in my application library, currently, is to run my tests in a thread with no event loop set up, so that get_event_loop will raise an error. Take that for what it is worth, since I don't

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Ilya Kulakov
Ilya Kulakov added the comment: > Update some places in asyncio where we currently use "get_event_loop()", such > as Future constructor, Task.current_task, etc. Yury, do you have an idea how it could be done? -- ___ Python tracker

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Forgot to say that the backtraces for test_threading and test_importlib were obtained with the patch applied while they were hanging. -- ___ Python tracker

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread beliavsky--- via Python-list
On Thursday, May 5, 2016 at 3:00:01 PM UTC-4, Terry Reedy wrote: > https://motherboard.vice.com/blog/python-is-an-equal-opportunity-programming-language > > from an 'Intel(R) Software Evangelist' > -- > Terry Jan Reedy >From the link: MB: What is it about Python that makes it friendly to

[issue26911] lib2to3/tests/pytree_idempotency.py does not run

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Import errors are runtime errors, not compile errors.) After 'import lib2to3.pgen2', 'pgen2' in the code would not be valid. A 'from' import is needed instead. I fixed the import for 3.5/6 (but not 2.7), but the file still does not run. File

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Ilya Kulakov
Ilya Kulakov added the comment: Yury, that would do it. Guido, that's indeed might be an anti-pattern. But it looks like passing event loop around is just a worse version of it. -- ___ Python tracker

Re: A fun python CLI program for all to enjoy!

2016-05-06 Thread MRAB
On 2016-05-06 20:10, DFS wrote: getAddresses.py Scrapes addresses from www.usdirectory.com and stores them in a SQLite database, or writes them to text files for mailing labels, etc Now, just by typing 'fast food Taco Bell 10 db all' you can find out how many Taco Bells are within 10 miles of

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: > Honestly I think it's pretty crazy and out there to have multiple event loops in the same thread. That feels like an anti-pattern inspired by some other event loop APIs (in other languages) that encourage this. But asyncio was not designed for that. I agree.

[issue26906] format(object.__reduce__) fails intermittently

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: Probably. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: Honestly I think it's pretty crazy and out there to have multiple event loops in the same thread. That feels like an anti-pattern inspired by some other event loop APIs (in other languages) that encourage this. But asyncio was not designed for that.

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: > Thread may have multiple event loops, but only one, explicitly associated, is > default. And it's not necessary one which is currently running. Ah, I got it. You know what, this actually is starting to make sense. Guido, what do you think about this?

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Do you know in which precise test it hangs? They are named in the first msg of each issue, the issues are: issue #26938: android: test_concurrent_futures hangs on armv7 issue #26939: android: test_functools hangs on armv7 issue #26940: android:

[issue26906] format(object.__reduce__) fails intermittently

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is one test (ClassPropertiesAndMethods.test_mutable_bases_with_failing_mro in test_descr) that crashes with the code from issue551412 because _PyType_Lookup() is recursive called from PyType_Ready(). Is this the reason? My patch prevents recursive

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Ilya Kulakov
Ilya Kulakov added the comment: > In this case I'm not sure how this is different from the current > "get_event_loop" Thread may have multiple event loops, but only one, explicitly associated, is default. And it's not necessary one which is currently running. I think what I propose here can

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: To clarify: the problem lies in "return currently running event loop when called from within a coroutine" -- what if there is no GIL and we have a few event loops running? You'd need to use a threadlocal storage. In this case I'm not sure how this is

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: > Probably it would make sense to modify behavior of the default policy to make > get_event_loop to return Thread-local event loop when called from > out-of-event-loop and return currently running event loop when called from > within a coroutine. The problem

[issue26911] lib2to3/tests/pytree_idempotency.py has a broken import

2016-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3279c910d0e0 by Terry Jan Reedy in branch '3.5': Issue 26911: fix import (other problems remain). https://hg.python.org/cpython/rev/3279c910d0e0 -- nosy: +python-dev ___ Python tracker

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Ilya Kulakov
Ilya Kulakov added the comment: > Why does it have to be a standard part of asyncio? I've only seen few libraries that deal with asyncio so far (aiohttp, pyzmq), but my general impression is that this is a generic problem. With asyncio code should be (ideally) written as a set of coroutines

[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Terry. Updated patch addresses most of your comments. But I'm unable to expand ServerProxy description as you suggest. May you can do this? My purpose was modest. Just fix some incorrect and outdated sentences. Then I fixed some

[issue26938] android: test_concurrent_futures hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: The strace output, the process is blocked in a futex system call: root@generic:/ # strace -p 1304 Process 1304 attached futex(0xb6f24880, FUTEX_WAIT_PRIVATE, 2, NULL -- ___ Python tracker

[issue26906] format(object.__reduce__) fails intermittently

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: But the problem isn't limited to format()... Why would format() be special? -- ___ Python tracker ___

[issue26906] format(object.__reduce__) fails intermittently

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is there a way to have format() try to force the initialization, by explicitly doing the equivalent of obj.__format__, at least for types, instead of raising the TypeError? -- nosy: +terry.reedy ___ Python tracker

[issue26941] android: test_threading hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Adding the back trace. -- Added file: http://bugs.python.org/file42761/test_threading_gdb_bt.txt ___ Python tracker ___

A fun python CLI program for all to enjoy!

2016-05-06 Thread DFS
getAddresses.py Scrapes addresses from www.usdirectory.com and stores them in a SQLite database, or writes them to text files for mailing labels, etc Now, just by typing 'fast food Taco Bell 10 db all' you can find out how many Taco Bells are within 10 miles of you, and store all the

[issue26903] ProcessPoolExecutor(max_workers=64) crashes on Windows

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The example runs fine, in about 1 second, on my 6 core (which I guess is 12 logical cores) Pentium. I am guessing that the default number of workers needs to be changed, at least on Windows, to min(#logical_cores, 60) -- nosy: +bquinlan, terry.reedy

[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is my first reading of this doc. The formatting improvements look good. A definite enhancement. Review contains a few comments. My main difficulty is separating creation of a proxy instance from use of a proxy instance. Some of the creation

Re: After a year using Node.js, the prodigal son returns

2016-05-06 Thread Rustom Mody
On Friday, May 6, 2016 at 8:23:27 AM UTC+5:30, Chris Angelico wrote: > On Fri, May 6, 2016 at 12:49 PM, Michael Torrie wrote: > > On 05/04/2016 02:59 AM, Steven D'Aprano wrote > >> A year ago, Gavin Vickery decided to move away from Python and give > >> Javascript with Node.js a try. Twelve

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I can stably reproduce this. PYTHONHASHSEED=36 ./python -m test.regrtest -vm test_hash_effectiveness test_set -- nosy: +serhiy.storchaka ___ Python tracker

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-06 Thread Xiang Zhang
Xiang Zhang added the comment: I agree with you. But right now, it seems parsing short options and allow_abbrev both rely on the same logic. If you turn off allow_abbrev, short options parsing also disabled. Separating them seems nontrivial. -- ___

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Still hangs at test_lru_cache_threaded with this last patch :( What about the other tests (test_importlib, test_threading)? Do you know in which precise test it hangs? (use "-v" to print test names) > There are two threads, gdb does not print the backtrace

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread R. David Murray
R. David Murray added the comment: Because, as indicated by the OP, I'm not using the default event loop of the thread. Thinking about my code, I now remember that the reason I went down this path was because I wanted to make sure that my functions, like asyncio functions, accepted the

[issue26632] __all__ decorator

2016-05-06 Thread R. David Murray
R. David Murray added the comment: "This will cause more problems than it solves" and "this looks unpythonic" are, IMO, not strong arguments against it without butressing discussion. If we can have some examples of problems it will cause, or a concrete explanation of wy something that makes

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: > Currently if one needs lazily resolve event loop depending on where awaitable > is being awaited have to pass loop everywhere explicitly. That quickly > becomes an unnecessary noise in interfaces of callables. Why don't you just use 'loop =

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread R. David Murray
R. David Murray added the comment: Can we at least make it part of the documentation? It's not obvious to me, at least, how to do it. (Maybe I just haven't thought about it carefully enough.) For that matter, it wasn't obvious to me it could even be done, so I've been passing loop

[issue11063] uuid.py module import has heavy side effects

2016-05-06 Thread Michael Felt
Michael Felt added the comment: I cannot comment on uuid directly, but for me, this is yet another example of how assumptions can break things. imho - if you know the exact version of s shared library that you want, calling cdll directly should be find. Maybe find_library is historic.

[issue26632] __all__ decorator

2016-05-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Updated. -- Added file: http://bugs.python.org/file42760/26632-in-c-3.diff ___ Python tracker ___

[issue18726] json functions have too many positional parameters

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: My remark was just about that I proposed to start a deprecation period at the time of developing Python 3.4. If this did accepted, the deprecation period would already finished and we would come up to the same code in 3.6. It doesn't matter now. --

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: The strace of test_lru_cache_threaded: ... gettimeofday({1462553238, 580860}, NULL) = 0 clock_gettime(CLOCK_REALTIME, {1462553238, 581276772}) = 0 gettimeofday({1462553238, 581672}, NULL) = 0 clock_gettime(CLOCK_REALTIME, {1462553238, 582078767}) = 0

[issue18531] Undocumented different between METH_KEYWORDS and **kws

2016-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: Okay. Adding back 3.5 and 2.7, in case someone wants to document the behavior there. I'm not sure if we fix docs in 3.4 still. -- versions: +Python 2.7, Python 3.5 ___ Python tracker

[issue18726] json functions have too many positional parameters

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: > Guido's decision on similar issue25628 is that changing keyword-or-positional > parameters to keyword-only is safe and can be made without deprecation. > If we started the deprecation period in 3.4, we could finish it in 3.6. That makes little sense. You

[issue26156] Bad name into power operator syntax

2016-05-06 Thread Guido Treutwein
Guido Treutwein added the comment: I'm with David here, in that a change would improve ease of comprehension: I still find it strange, that the grammar symbol has the same name as the keyword (or in the proposed version keyword+'expr'), which is never done on more widely used levels. I would

[issue18726] json functions have too many positional parameters

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Guido's decision on similar issue25628 is that changing keyword-or-positional parameters to keyword-only is safe and can be made without deprecation. If we started the deprecation period in 3.4, we could finish it in 3.6. Proposed simple patch changes all

[issue26906] format(object.__reduce__) fails intermittently

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: Sadly it's been a very long time since I wrote that code and I don't recall much about it. I presume there was a good reason for not to do it in _PyType_Lookup(), but who knows -- maybe the oroginal approach was just too naive and nobody cared? I'm not excited

Re: Slight problems with python in Windows

2016-05-06 Thread Zachary Ware
Hi Peter, On Fri, May 6, 2016 at 6:22 AM, Peter Toye wrote: > I'm trying to install Python under Windows 7 so that I can use git-review and > have found a few niggling issues. > > 1) Apparently (according to the git-review pages) pip has a problem with > directories with

Re: Slight problems with python in Windows

2016-05-06 Thread Pertti Kosunen
On 6.5.2016 14:22, Peter Toye wrote: I'm trying to install Python under Windows 7 so that I can use git-review and have found a few niggling issues. 1) Apparently (according to the git-review pages) pip has a problem with directories with spaces in their names. Python's default installation

[issue25628] Make namedtuple "verbose" and "rename" parameters into keyword only arguments

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then namedtuple_keywords.diff LGTM. But please document changes. -- assignee: -> rhettinger stage: patch review -> commit review ___ Python tracker

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Can you post the backtraces of all threads (at least the innermost frames)? There are two threads, gdb does not print the backtrace of the other thread. My current gdb setup with a connection to a gdb-server misses some stuff (access to the loader or some

[issue26632] __all__ decorator

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added a couple of comments on Rietveld. But sorry, the overall idea looks unpythonic to me. I'm strong -1. -- ___ Python tracker

[issue25628] Make namedtuple "verbose" and "rename" parameters into keyword only arguments

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: I think such a change can be safely made in a feature release (say 3.6) without further deprecation. But not in a bugfix release (say 3.5.2). -- ___ Python tracker

Re: Whittle it on down

2016-05-06 Thread Peter Otten
DFS wrote: > There are up to 4 levels of categorization: > http://www.usdirectory.com/cat/g0 shows 21 Level 1 categories, and 390 > Level 2. To get the Level 3 and 4 you have to drill-down using the > hyperlinks. > > How to do it in python code is beyond my skills at this point. Get the >

[issue25628] Make namedtuple "verbose" and "rename" parameters into keyword only arguments

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: And by "safely" I mean that I don't mind if some code breaks when they upgrade to a new feature release. FWIW the code most likely to break is code that wraps these functions with an identical interface. -- ___

[issue18531] Undocumented different between METH_KEYWORDS and **kws

2016-05-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 06, 2016, at 03:41 PM, Eric V. Smith wrote: >I agree it would be a 3.6 only change (and I've change the versions to >reflect that). The reason the other versions were included was because this was originally reported as a documentation bug. It should

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: Can't you easily write such a policy yourself? Why does it have to be a standard part of asyncio? -- ___ Python tracker

[issue18531] Undocumented different between METH_KEYWORDS and **kws

2016-05-06 Thread Eric V. Smith
Eric V. Smith added the comment: I think it's okay to change this as far as str.format() goes. Interestingly enough, the motivating case to add str.format_map() in issue 6081 was exactly this kind of code. Although I notice that the example in that issue, which it shows as failing, works in

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Still hangs at test_lru_cache_threaded with this last patch :( -- ___ Python tracker ___

[issue26632] __all__ decorator

2016-05-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I think I missed a decref. New diff. -- Added file: http://bugs.python.org/file42758/26632-in-c-2.diff ___ Python tracker

Re: python - handling HTTP requests asynchronously

2016-05-06 Thread justin walters
On Thu, May 5, 2016 at 11:56 PM, wrote: > Hi everyone, > I need to generate a PDF report for each entry of a django queryset. > There'll be between between 30k and 40k entries. > > The PDF is generated through an external API. Since currently is generated > on demand, this

[issue18531] Undocumented different between METH_KEYWORDS and **kws

2016-05-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Eric should chime in on the str.format() implications. -- ___ Python tracker ___

[issue18531] Undocumented different between METH_KEYWORDS and **kws

2016-05-06 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +eric.smith ___ Python tracker ___ ___

[issue1528167] Tweak to make string.Templates more customizable

2016-05-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Agreed with Serhiy. Raymond's approach is nicer, but I'm still not convinced about the use case. Closing. If someone wants to run with this again, an updated patch would be needed, and the issue could be reopened, but I also suggest following through with

[issue26632] __all__ decorator

2016-05-06 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Here's a C implementation. I'm a bit under the weather so please do double check my refcounting logic. ;) No tests or docs yet, but those would be easy to add. Here's an example: @public class Foo: pass public(qux=3) print(qux) @public def zzz():

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, sorry, hadn't seen the patch didn't compile. Can you tried with this new patch? (atomic_explicit2.patch) -- Added file: http://bugs.python.org/file42756/atomic_explicit2.patch ___ Python tracker

[issue26967] argparse: allow_abbrev=False stops -vv from working

2016-05-06 Thread Michael Kruse
Michael Kruse added the comment: I think the allow_abbrev option should be orthogonal on how short options are parsed. I am using parse_known_args() to forward the unrecognized args to another program, therefore allow_abbrev=False is essential. There is a special handling for short options in

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Android has stdatomic.h and HAVE_STD_ATOMIC is defined. The build fails with the patch, see the errors in the attached file. This is the native compilation of python, the patches in my build system are also applied to the native build so that they can be

Re: python, ctypes and GetIconInfo issue

2016-05-06 Thread mymyxin
A further question if you don't mind. In your example you used a base class and ICONINFO well as ICONINFOEX inherit it. As the members of ICONINFO are part of ICONINFOEX couldn't we do something like class ICONINFO_BASE(ctypes.Structure): def __del__(self, ): if self.hbmMask:

Re: Whittle it on down

2016-05-06 Thread DFS
On 5/6/2016 9:58 AM, DFS wrote: On 5/6/2016 3:45 AM, Peter Otten wrote: DFS wrote: Should've looked earlier. Their master list of categories http://www.usdirectory.com/cat/g0 shows a few commas, a bunch of dashes, and the ampersands we talked about. "OFFICE SERVICES, SUPPLIES & EQUIPMENT"

Slight problems with python in Windows

2016-05-06 Thread Peter Toye
I'm trying to install Python under Windows 7 so that I can use git-review and have found a few niggling issues. 1) Apparently (according to the git-review pages) pip has a problem with directories with spaces in their names. Python's default installation directory is under Program Files. I

Re: Whittle it on down

2016-05-06 Thread DFS
On 5/6/2016 3:45 AM, Peter Otten wrote: DFS wrote: Should've looked earlier. Their master list of categories http://www.usdirectory.com/cat/g0 shows a few commas, a bunch of dashes, and the ampersands we talked about. "OFFICE SERVICES, SUPPLIES & EQUIPMENT" gets removed because of the

Re: After a year using Node.js, the prodigal son returns

2016-05-06 Thread Chris Angelico
On Fri, May 6, 2016 at 11:45 PM, Grant Edwards wrote: >> JavaScript is terrible. Really, really bad. And because of that, it >> has the potential to sweep the world. > > If your reasoning is correct, it'll never be able to overtake PHP. > > I've never written anything

Re: After a year using Node.js, the prodigal son returns

2016-05-06 Thread Grant Edwards
On 2016-05-06, Chris Angelico wrote: > On Fri, May 6, 2016 at 12:49 PM, Michael Torrie wrote: >> On 05/04/2016 02:59 AM, Steven D'Aprano wrote: >>> A year ago, Gavin Vickery decided to move away from Python and give >>> Javascript with Node.js a try. Twelve

Re: python, ctypes and GetIconInfo issue

2016-05-06 Thread mymyxin
Hello eryk sun, first of all thank you very much, really appreciate your help. Please be informed that I'm a python beginner, so forgive me if my following questions sound stupid (also I'm not a native speaker). > Please avoid windll. It caches the loaded library, which in turn > caches function

[issue26156] Bad name into power operator syntax

2016-05-06 Thread R. David Murray
R. David Murray added the comment: Sounds like it is a bit more than just confusion: given that power can be used outside a coroutine but await can't, Serhiy's formulation would seem to me to be more semantically correct, even if syntactically it is the same as the current. I think it would

  1   2   >