Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Barry Warsaw
On Jan 25, 2015, at 09:31 PM, R. David Murray wrote: {*x for x in it} which is a set comprehension, while the other is a dict comprehension :) That distinction doesn't bother me -- you might as well claim it's confusing that f(*x) passes positional args from x while f(**x)

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread R. David Murray
On Mon, 26 Jan 2015 09:43:26 -0500, Barry Warsaw ba...@python.org wrote: On Jan 25, 2015, at 09:31 PM, R. David Murray wrote: {*x for x in it} which is a set comprehension, while the other is a dict comprehension :) That distinction doesn't bother me -- you might as

Re: [Python-Dev] Overriding stdlib http package

2015-01-26 Thread Demian Brecht
On 2015-01-24 7:17 AM, Donald Stufft wrote: It’s not just power users that it’s good for, it makes it harder for even beginners to use things like backports of modules. What about cases where new module versions are put in as dependencies of other packages and they stomp standard library

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Antoine Pitrou
On Mon, 26 Jan 2015 12:06:26 -0800 Ethan Furman et...@stoneleaf.us wrote: It destroy's the chaining value and pretty much makes the improvement not an improvement. If there's a possibility that the same key could be in more than one of the dictionaries then you still have to do the

Re: [Python-Dev] Pydoc Replacement for Python's help()?

2015-01-26 Thread Ryan Gonzalez
Looking at pydoc.py, it looks like the Tk is purely optional...and isn't called from the interpreter. (I'm not a core dev, though, so take that with a grain of salt.) However, can't you just strip out the gui function and the one place in the file where it's called? Again, not a main Python

Re: [Python-Dev] is a new buildbot gps-debian-profile-opt possible?

2015-01-26 Thread Antoine Pitrou
Of course. I hadn't had time to answer your private e-mail but will do so soon :-) Regards Antoine. On Mon, 26 Jan 2015 17:24:31 + Gregory P. Smith g...@krypto.org wrote: I want this buildbot to run make profile-opt instead of make all and it'd be best if it could _not_ have

[Python-Dev] Python bug tracker Roundup

2015-01-26 Thread Ethan Furman
Do we have our own mailing list for Roundup? I'm trying to fix the Activity Date search bug (only returns issues where the *last* activity was on a date, not *any* activity on a date). -- ~Ethan~ signature.asc Description: OpenPGP digital signature

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Ethan Furman
On 01/26/2015 11:24 AM, Barry Warsaw wrote: On Jan 26, 2015, at 10:55 AM, Ethan Furman wrote: In the your example from_env = {'a': 12} from_config = {'a': 13} f(**from_env, **from_config) I would think 'a' should be 13, as from_config is processed /after/ from_env. So which is it?

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Petr Viktorin
On Mon, Jan 26, 2015 at 8:29 PM, Ethan Furman et...@stoneleaf.us wrote: On 01/26/2015 11:24 AM, Barry Warsaw wrote: On Jan 26, 2015, at 10:55 AM, Ethan Furman wrote: In the your example from_env = {'a': 12} from_config = {'a': 13} f(**from_env, **from_config) I would think 'a' should

[Python-Dev] Pydoc Replacement for Python's help()?

2015-01-26 Thread Cyd Haselton
Hello, I've finally managed to build a (somewhat) working Python port for the Android tablet I'm using. Unfortunately, as I quickly found out, Python's built-in help function requires tkinter, which requires tcl/tk. I did download the sources for tcl/tk and built tcl, but found out that tk

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Ethan Furman
On 01/26/2015 10:40 AM, Paul Moore wrote: There *are* some nastily non-intuitive corner cases (for example, if from_env={'a':12} and from_config={'a':13}, I don't have any sort of intuition as to what a would be in f(**from_env, **from_config). I'd go with 12 because the PEP links multiple

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Ethan Furman
On 01/26/2015 10:55 AM, Ethan Furman wrote: On 01/26/2015 10:40 AM, Paul Moore wrote: There *are* some nastily non-intuitive corner cases (for example, if from_env={'a':12} and from_config={'a':13}, I don't have any sort of intuition as to what a would be in f(**from_env, **from_config). I'd

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Skip Montanaro
On Mon, Jan 26, 2015 at 12:55 PM, Ethan Furman et...@stoneleaf.us wrote: So which is it? Precisely... S ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Barry Warsaw
On Jan 26, 2015, at 10:55 AM, Ethan Furman wrote: In the your example from_env = {'a': 12} from_config = {'a': 13} f(**from_env, **from_config) I would think 'a' should be 13, as from_config is processed /after/ from_env. So which is it? In the face of ambiguity, refuse the temptation

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Ethan Furman
On 01/26/2015 11:39 AM, Petr Viktorin wrote: On Mon, Jan 26, 2015 at 8:29 PM, Ethan Furman et...@stoneleaf.us wrote: On 01/26/2015 11:24 AM, Barry Warsaw wrote: On Jan 26, 2015, at 10:55 AM, Ethan Furman wrote: In the your example from_env = {'a': 12} from_config = {'a': 13}

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/26/2015 09:43 AM, Barry Warsaw wrote: This is head-scratcher code that I'm sure I'd get asked about from folks who aren't steeped in all the dark corners of Python. I don't know if that's an argument not to adopt the PEP, but it I think it

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Ethan Furman
On 01/26/2015 12:09 PM, Antoine Pitrou wrote: On Mon, 26 Jan 2015 12:06:26 -0800 Ethan Furman et...@stoneleaf.us wrote: It destroy's the chaining value and pretty much makes the improvement not an improvement. If there's a possibility that the same key could be in more than one of the

Re: [Python-Dev] Pydoc Replacement for Python's help()?

2015-01-26 Thread Skip Montanaro
On Mon, Jan 26, 2015 at 12:49 PM, Cyd Haselton chasel...@gmail.com wrote: Unfortunately, as I quickly found out, Python's built-in help function requires tkinter, which requires tcl/tk. I'm a little confused. Are you using some sort of freeze system which is deciding Tkinter is required? I use

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Antoine Pitrou
On Mon, 26 Jan 2015 10:46:02 -0500 R. David Murray rdmur...@bitdance.com wrote: On Mon, 26 Jan 2015 09:43:26 -0500, Barry Warsaw ba...@python.org wrote: On Jan 25, 2015, at 09:31 PM, R. David Murray wrote: {*x for x in it} which is a set comprehension, while the other is a

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Skip Montanaro
On Mon, Jan 26, 2015 at 12:12 PM, Antoine Pitrou solip...@pitrou.net wrote: I also think the multiple-starargs function calls are completely overboard: f(**someargs, **someotherargs) (I might add I've never felt any need for those) This makes sense to me, but I wonder how you resolve the

[Python-Dev] is a new buildbot gps-debian-profile-opt possible?

2015-01-26 Thread Gregory P. Smith
I want this buildbot to run make profile-opt instead of make all and it'd be best if it could _not_ have --with-pydebug on the ./configure command line. I've got a small VM at the moment with one CPU and 600mb ram so just give it a make -j2 at most to start with. If that is possible, please

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Paul Moore
On 26 January 2015 at 18:12, Antoine Pitrou solip...@pitrou.net wrote: I have to agree with Barry. While the following is obvious even without having ever used it: a, b, *c = range(5) the following makes me scratch my head and I can't seem to guess what the *intent* is - which is very

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Georg Brandl
On 01/26/2015 07:25 PM, Skip Montanaro wrote: On Mon, Jan 26, 2015 at 12:12 PM, Antoine Pitrou solip...@pitrou.net wrote: I also think the multiple-starargs function calls are completely overboard: f(**someargs, **someotherargs) (I might add I've never felt any need for those) This

Re: [Python-Dev] Pydoc Replacement for Python's help()?

2015-01-26 Thread Zachary Ware
On Mon, Jan 26, 2015 at 12:49 PM, Cyd Haselton chasel...@gmail.com wrote: Hello, I've finally managed to build a (somewhat) working Python port for the Android tablet I'm using. Unfortunately, as I quickly found out, Python's built-in help function requires tkinter, which requires tcl/tk.

Re: [Python-Dev] Python bug tracker Roundup

2015-01-26 Thread Georg Brandl
On 01/26/2015 09:25 PM, Ethan Furman wrote: Do we have our own mailing list for Roundup? I'm trying to fix the Activity Date search bug (only returns issues where the *last* activity was on a date, not *any* activity on a date). That would be tracker-discuss. Georg

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Serhiy Storchaka
On 25.01.15 17:08, Antoine Pitrou wrote: On Sat, 24 Jan 2015 21:10:51 -0500 Neil Girdhar mistersh...@gmail.com wrote: To finish PEP 448, I need to update the grammar for syntax such as {**x for x in it} Is this seriously allowed by the PEP? What does it mean exactly? I would understand this

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Antoine Pitrou
On Mon, 26 Jan 2015 12:22:20 -0800 Ethan Furman et...@stoneleaf.us wrote: On 01/26/2015 12:09 PM, Antoine Pitrou wrote: On Mon, 26 Jan 2015 12:06:26 -0800 Ethan Furman et...@stoneleaf.us wrote: It destroy's the chaining value and pretty much makes the improvement not an improvement. If

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread R. David Murray
On Mon, 26 Jan 2015 22:05:44 +0100, Antoine Pitrou solip...@pitrou.net wrote: On Mon, 26 Jan 2015 12:22:20 -0800 Ethan Furman et...@stoneleaf.us wrote: On 01/26/2015 12:09 PM, Antoine Pitrou wrote: On Mon, 26 Jan 2015 12:06:26 -0800 Ethan Furman et...@stoneleaf.us wrote: It destroy's

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Antoine Pitrou
On Mon, 26 Jan 2015 16:28:24 -0500 R. David Murray rdmur...@bitdance.com wrote: My use case is a configuration method that takes keyword parameters. In tests I want to specify a bunch of default values for the configuration, but I want individual test methods to be able to override those

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread MRAB
On 2015-01-26 19:39, Petr Viktorin wrote: On Mon, Jan 26, 2015 at 8:29 PM, Ethan Furman et...@stoneleaf.us wrote: On 01/26/2015 11:24 AM, Barry Warsaw wrote: On Jan 26, 2015, at 10:55 AM, Ethan Furman wrote: In the your example from_env = {'a': 12} from_config = {'a': 13} f(**from_env,

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread R. David Murray
On Tue, 27 Jan 2015 00:07:08 +0100, Antoine Pitrou solip...@pitrou.net wrote: On Mon, 26 Jan 2015 16:28:24 -0500 R. David Murray rdmur...@bitdance.com wrote: My use case is a configuration method that takes keyword parameters. In tests I want to specify a bunch of default values for the

Re: [Python-Dev] Python bug tracker Roundup

2015-01-26 Thread Berker Peksağ
On Mon, Jan 26, 2015 at 10:25 PM, Ethan Furman et...@stoneleaf.us wrote: Do we have our own mailing list for Roundup? Hi, Yes: https://mail.python.org/mailman/listinfo/tracker-discuss There is also a tracker for bugs.p.o: http://psf.upfronthosting.co.za/roundup/meta/ --Berker

Re: [Python-Dev] Any grammar experts?

2015-01-26 Thread Serhiy Storchaka
On 26.01.15 00:59, Guido van Rossum wrote: Interestingly, the non-dict versions can all be written today using a double-nested comprehension, e.g. {**x for x in it} can be written as: {x for x in xs for xs in it} {x for xs in it for x in xs} But it's not so straightforward for