Re: [Python-Dev] Language Summit notes

2014-04-11 Thread Armin Rigo
Hi, On 10 April 2014 22:12, Paul Moore p.f.mo...@gmail.com wrote: I agree. I'd like to see a clear explanation of what advantages (and disadvantages!) CFFI gives over ctypes, as well as the plan for inclusion and how the inevitable confusion over whether to use ctypes or cffi will be handled.

Re: [Python-Dev] Language Summit notes

2014-04-11 Thread Nick Coghlan
On 11 Apr 2014 05:39, Armin Rigo ar...@tunes.org wrote: Hi, On 10 April 2014 22:12, Paul Moore p.f.mo...@gmail.com wrote: I agree. I'd like to see a clear explanation of what advantages (and disadvantages!) CFFI gives over ctypes, as well as the plan for inclusion and how the inevitable

Re: [Python-Dev] Language Summit notes

2014-04-11 Thread Paul Moore
On 11 April 2014 10:36, Armin Rigo ar...@tunes.org wrote: This would be superficial, but change the perception of CFFI to be a preprocessor that produces C extension modules. Thanks, that clarification helps a lot. Does this mean that API-mode CFFI is competing with things like swig (which is

[Python-Dev] flock in Python 3

2014-04-11 Thread Jakub QB Dorňák
Hi all, writing a threaded application I've been surprised that there is no object api for fcntl.flock implementing __enter__() and __exit__() methods to be used with 'with' statement. I have written one (https://pypi.python.org/pypi), but I wonder whether this could get into the Python

[Python-Dev] Summary of Python tracker Issues

2014-04-11 Thread Python tracker
ACTIVITY SUMMARY (2014-04-04 - 2014-04-11) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open4567 (+17) closed 28405 (+29) total 32972 (+46) Open issues

Re: [Python-Dev] flock in Python 3

2014-04-11 Thread Terry Reedy
On 4/11/2014 8:58 AM, Jakub QB Dorňák wrote: writing a threaded application I've been surprised that there is no object api for fcntl.flock implementing __enter__() and __exit__() methods to be used with 'with' statement. Several things have been turned into context managers because someone

Re: [Python-Dev] flock in Python 3

2014-04-11 Thread Benjamin Peterson
On Fri, Apr 11, 2014, at 5:58, Jakub QB Dorňák wrote: Hi all, writing a threaded application I've been surprised that there is no object api for fcntl.flock implementing __enter__() and __exit__() methods to be used with 'with' statement. I have written one (https://pypi.python.org/pypi),

Re: [Python-Dev] arguments policy: **kwargs.pop()

2014-04-11 Thread Christian Tismer
Ah, now I see it. For some reason, I forgot that the dict is always newly created. That was really wrong thinking. Sorry! On 11/04/14 05:47, Guido van Rossum wrote: I'm not sure what you're worried about here. Modifying kwds doesn't actually modify the dict that was passed in. So are you just

Re: [Python-Dev] arguments policy: **kwargs.pop()

2014-04-11 Thread Christian Tismer
Thank you too, Tres. Somehow I had a brain shortcut and forgot that the dict is locally generated, *because* of the stars. Good to become adjusted and restarted, sorry about the noise. ciao - Chris On 11/04/14 05:48, Tres Seaver wrote: On 04/10/2014 10:12 PM, Christian Tismer wrote: I

Re: [Python-Dev] Language Summit notes

2014-04-11 Thread Maciej Fijalkowski
On Fri, Apr 11, 2014 at 2:22 PM, Paul Moore p.f.mo...@gmail.com wrote: On 11 April 2014 10:36, Armin Rigo ar...@tunes.org wrote: This would be superficial, but change the perception of CFFI to be a preprocessor that produces C extension modules. Thanks, that clarification helps a lot. Does

[Python-Dev] Receiving email updates for the bug tracker

2014-04-11 Thread Antony Lee
Hi, Sorry for the slightly off-topic(?) question but I would like to know how to receive email notifications for activity on bugs I've opened on the bugs.python.org -- so far I don't receive anything even though I'm on the nosy list. Thanks, Antony ___

Re: [Python-Dev] Receiving email updates for the bug tracker

2014-04-11 Thread Brett Cannon
On Fri, Apr 11, 2014 at 1:47 PM, Antony Lee antony@berkeley.edu wrote: Hi, Sorry for the slightly off-topic(?) question but I would like to know how to receive email notifications for activity on bugs I've opened on the bugs.python.org -- so far I don't receive anything even though I'm on

Re: [Python-Dev] Receiving email updates for the bug tracker

2014-04-11 Thread Brett Cannon
On Fri, Apr 11, 2014 at 3:25 PM, Antony Lee antony@berkeley.edu wrote: Nope, the email is correct... Then you can try reporting a bug at http://psf.upfronthosting.co.za/roundup/meta/ 2014-04-11 12:12 GMT-07:00 Brett Cannon br...@python.org: On Fri, Apr 11, 2014 at 1:47 PM, Antony

Re: [Python-Dev] arguments policy: **kwargs.pop()

2014-04-11 Thread Chris Barker
On Thu, Apr 10, 2014 at 7:12 PM, Christian Tismer tis...@stackless.comwrote: Then I rather often see things like this: class someclass(object): # note that there is no comment about argument destruction... def __init__(self, **kwargs): first_arg = kwargs.pop('option_1',

Re: [Python-Dev] Receiving email updates for the bug tracker

2014-04-11 Thread Guido van Rossum
Did you check your spam folder? On Fri, Apr 11, 2014 at 1:47 PM, Antony Lee antony@berkeley.edu wrote: Hi, Sorry for the slightly off-topic(?) question but I would like to know how to receive email notifications for activity on bugs I've opened on the bugs.python.org -- so far I don't

Re: [Python-Dev] Receiving email updates for the bug tracker

2014-04-11 Thread Antony Lee
Nope, the email is correct... 2014-04-11 12:12 GMT-07:00 Brett Cannon br...@python.org: On Fri, Apr 11, 2014 at 1:47 PM, Antony Lee antony@berkeley.eduwrote: Hi, Sorry for the slightly off-topic(?) question but I would like to know how to receive email notifications for activity on

Re: [Python-Dev] arguments policy: **kwargs.pop()

2014-04-11 Thread Christian Tismer
Hi Chris, On 11/04/14 21:50, Chris Barker wrote: On Thu, Apr 10, 2014 at 7:12 PM, Christian Tismer tis...@stackless.comwrote: Then I rather often see things like this: class someclass(object): # note that there is no comment about argument destruction... def __init__(self,

Re: [Python-Dev] Receiving email updates for the bug tracker

2014-04-11 Thread Antony Lee
Actually that was a better idea... Antony 2014-04-11 13:20 GMT-07:00 Guido van Rossum gu...@python.org: Did you check your spam folder? On Fri, Apr 11, 2014 at 1:47 PM, Antony Lee antony@berkeley.eduwrote: Hi, Sorry for the slightly off-topic(?) question but I would like to know how

Re: [Python-Dev] arguments policy: **kwargs.pop()

2014-04-11 Thread Greg Ewing
On 11/04/14 21:50, Chris Barker wrote: On Thu, Apr 10, 2014 at 7:12 PM, Christian Tismer tis...@stackless.comwrote: def __init__(self, **kwargs): first_arg = kwargs.pop('option_1', somedefault) ... nth_arg = kwargs.pop('option_n', somedefault') ... Is: def

Re: [Python-Dev] arguments policy: **kwargs.pop()

2014-04-11 Thread Ethan Furman
On 04/11/2014 02:01 PM, Christian Tismer wrote: I have these style problems with several modules that I am reluctant to use, therefore. I know that I'm pretty alone with that. You are not alone in that. -- ~Ethan~ ___ Python-Dev mailing list

Re: [Python-Dev] arguments policy: **kwargs.pop()

2014-04-11 Thread Christian Tismer
On 12.04.14 01:55, Ethan Furman wrote: On 04/11/2014 02:01 PM, Christian Tismer wrote: I have these style problems with several modules that I am reluctant to use, therefore. I know that I'm pretty alone with that. You are not alone in that. Funny not to be alone in being alone in that :-)