Re: [Python-Dev] test.support.check_warnings

2014-01-11 Thread Brett Cannon
On Sat, Jan 11, 2014 at 3:45 PM, Ethan Furman et...@stoneleaf.us wrote: The docs say this [1]: == test.support.check_warnings(*filters, quiet=True) A convenience wrapper for warnings.catch_warnings() that makes it easier to test

Re: [Python-Dev] byteformat() proposal: please critique

2014-01-11 Thread Brett Cannon
On Sat, Jan 11, 2014 at 8:20 PM, Terry Reedy tjre...@udel.edu wrote: The following function interpolates bytes, bytearrays, and formatted strings, the latter two auto-converted to bytes, into a bytes (or auto-converted bytearray) format. This function automates much of what some people have

Re: [Python-Dev] Python3 complexity

2014-01-09 Thread Brett Cannon
On Thu, Jan 9, 2014 at 5:00 PM, Chris Barker chris.bar...@noaa.gov wrote: On Thu, Jan 9, 2014 at 1:45 PM, Antoine Pitrou solip...@pitrou.netwrote: latin-1 guaranteed to work with any binary data, and round-trip accurately? Yes, it is. and will surrogateescape work for arbitrary binary

Re: [Python-Dev] Changing Clinic's output

2014-01-08 Thread Brett Cannon
On Tue, Jan 7, 2014 at 7:07 PM, Larry Hastings la...@hastings.org wrote: On 01/07/2014 03:38 PM, Brett Cannon wrote: On Tue, Jan 7, 2014 at 6:24 PM, Larry Hastings la...@hastings.org wrote: For what it's worth, if we use the accumulator approach I propose that the generated code doesn't

Re: [Python-Dev] Changing Clinic's output

2014-01-08 Thread Brett Cannon
On Wed, Jan 8, 2014 at 10:46 AM, Larry Hastings la...@hastings.org wrote: On 01/08/2014 07:33 AM, Brett Cannon wrote: So let's make this idea concrete to focus a possible discussion. Using the example from the Clinic HOWTO and converting to how I see it working: [...] Yep. And what I

Re: [Python-Dev] Changing Clinic's output

2014-01-07 Thread Brett Cannon
On Tue, Jan 7, 2014 at 4:44 PM, Stefan Krah ste...@bytereef.org wrote: Antoine Pitrou solip...@pitrou.net wrote: Several solutions have been proposed: - move all generated code to separate C files, which would then be #included'd into the main module file +1 for the reasons that Serhiy

Re: [Python-Dev] Changing Clinic's output

2014-01-07 Thread Brett Cannon
On Tue, Jan 7, 2014 at 6:24 PM, Larry Hastings la...@hastings.org wrote: On 01/07/2014 12:46 PM, Mark Lawrence wrote: Maybe overkill but why not follow 3 with 2 at the end of the file, the marker to be a very clear /* Generated by Argument Clinic - DO NOT EDIT BELOW THIS LINE */ or

Re: [Python-Dev] Python 2.7 root buildbot showing errors

2014-01-06 Thread Brett Cannon
On Mon, Jan 6, 2014 at 2:09 AM, Chris Angelico ros...@gmail.com wrote: The first build my new root buildbot did showed errors in the 2.7 test suite, but I thought little of it as quite a few other 2.7 buildbots are showing red, too. But it seems they're showing different errors, so there

Re: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

2014-01-06 Thread Brett Cannon
On Mon, Jan 6, 2014 at 8:59 AM, Antoine Pitrou solip...@pitrou.net wrote: On Tue, 7 Jan 2014 00:54:17 +1100 Chris Angelico ros...@gmail.com wrote: On Tue, Jan 7, 2014 at 12:44 AM, Antoine Pitrou solip...@pitrou.net wrote: BTW, there's a subtlety here: ``%s`` currently means insert the

Re: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

2014-01-06 Thread Brett Cannon
On Mon, Jan 6, 2014 at 8:44 AM, Antoine Pitrou solip...@pitrou.net wrote: Hi, On Mon, 6 Jan 2014 14:24:50 +0100 Victor Stinner victor.stin...@gmail.com wrote: The PEP is a draft with open questions. First, I'm not sure that both bytes%args and bytes.format(args) are needed. The

Re: [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

2014-01-06 Thread Brett Cannon
On Mon, Jan 6, 2014 at 9:45 AM, Nick Coghlan ncogh...@gmail.com wrote: On 6 Jan 2014 22:15, Brett Cannon br...@python.org wrote: On Mon, Jan 6, 2014 at 8:59 AM, Antoine Pitrou solip...@pitrou.net wrote: On Tue, 7 Jan 2014 00:54:17 +1100 Chris Angelico ros...@gmail.com wrote

Re: [Python-Dev] Proposed: The Great Argument Clinic Conversion Derby

2014-01-06 Thread Brett Cannon
On Mon, Jan 6, 2014 at 3:40 PM, Skip Montanaro s...@pobox.com wrote: On Mon, Jan 6, 2014 at 2:17 PM, Antoine Pitrou solip...@pitrou.net wrote: I agree with Serhiy, but that is probably known at this point. :) I agree with Serhiy and you too. Clinic's current output makes C files more

Re: [Python-Dev] cffi in stdlib

2013-12-17 Thread Brett Cannon
Maybe someone from PyPy should bring this up as an official topic at the language summit to figure out the blockers (again). Or it can join regex on the list of module discussed for addition at the language summit but never quite pushed to commitment. =) On Tue, Dec 17, 2013 at 11:43 AM, Stefan

[Python-Dev] How do we feel about using pragmas and __attribute__ in C code?

2013-12-13 Thread Brett Cannon
http://bugs.python.org/issue12837 deals with the single compiler warning left on OS X: a tautalogical compare in socketmodule.c that is valid under POSIX. I have a solution that uses pragmas to turn off tautological compare warnings for the single 'if' statement that triggers it. But there are

Re: [Python-Dev] One-line abstractmethod function?

2013-12-05 Thread Brett Cannon
On Thu, Dec 5, 2013 at 2:22 PM, Ethan Furman et...@stoneleaf.us wrote: On 12/05/2013 10:56 AM, Alexander Belopolsky wrote: On Thu, Dec 5, 2013 at 1:24 PM, Guido van Rossum wrote: How would you get the docstrings in? [...] One way to reduce the amount of boilerplate code is to make

[Python-Dev] Python 3 is five years old

2013-12-04 Thread Brett Cannon
On 2008-12-03, Python 3.0.0 was released by Barry. I was actually on IRC the night when it happened, with Guido leaving his office across the hall from mine. We gave each other a high-five and then we both went home. Not exactly a party, but I know I at least breathed a sigh of relief that Python

Re: [Python-Dev] PEP process entry point and ill fated initiatives

2013-11-29 Thread Brett Cannon
On Fri, Nov 29, 2013 at 10:25 AM, Kristján Valur Jónsson krist...@ccpgames.com wrote: -Original Message- From: Python-Dev [mailto:python-dev- bounces+kristjan=ccpgames@python.org] On Behalf Of Antoine Pitrou Sent: 29. nóvember 2013 14:58 To: python-dev@python.org

Re: [Python-Dev] Assign(expr* targets, expr value) - why targetS?

2013-11-22 Thread Brett Cannon
On Fri, Nov 22, 2013 at 7:29 AM, Benjamin Peterson benja...@python.orgwrote: 2013/11/22 anatoly techtonik techto...@gmail.com: On Fri, Nov 15, 2013 at 5:43 PM, Benjamin Peterson benja...@python.org wrote: 2013/11/15 anatoly techtonik techto...@gmail.com: On Tue, Nov 12, 2013 at 5:08 PM,

Re: [Python-Dev] PEP 451 (ModuleSpec) has landed

2013-11-22 Thread Brett Cannon
On Fri, Nov 22, 2013 at 11:37 AM, Eric Snow ericsnowcurren...@gmail.comwrote: On Fri, Nov 22, 2013 at 9:36 AM, Eric Snow ericsnowcurren...@gmail.com wrote: The bulk of PEP 451 (all but the fluffy parts as Brett called them wink) is now committed to default. I'm looking into buildbot

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-21 Thread Brett Cannon
On Wed, Nov 20, 2013 at 5:41 PM, Mark Lawrence breamore...@yahoo.co.ukwrote: On 20/11/2013 22:01, Antoine Pitrou wrote: pathlib imports many modules at startup, so for scripts for which startup time is critical using os.path may still be the best option. Will there be or is there a note

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-21 Thread Brett Cannon
On Thu, Nov 21, 2013 at 4:09 PM, Greg Ewing greg.ew...@canterbury.ac.nzwrote: Concerning the version number, I thought the intention of PEP 404 was simply to say that the PSF would not be releasing anything called Python 2.8, not to forbid anyone *else* from doing so. Or am I wrong about

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-21 Thread Brett Cannon
On Thu, Nov 21, 2013 at 10:31 AM, Christian Heimes christ...@python.orgwrote: Am 21.11.2013 16:12, schrieb Barry Warsaw: On Nov 21, 2013, at 02:16 PM, Kristján Valur Jónsson wrote: Oh, this is the misunderstanding. No one is trying to get permission for CPython 2.8, only Stackless

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-19 Thread Brett Cannon
On Tue, Nov 19, 2013 at 4:04 PM, Antoine Pitrou solip...@pitrou.net wrote: Hello, Guido has told me that he was ready to approve PEP 428 (pathlib) in its latest amended form. Here is the last call for any comments or arguments against approval, before Guido marks the PEP accepted (or

Re: [Python-Dev] unicode Exception messages in py2.7

2013-11-18 Thread Brett Cannon
On Mon, Nov 18, 2013 at 12:15 PM, Chris Barker chris.bar...@noaa.govwrote: Folks, It seems changing anything about how Exception messages are handles is off the table for 2.7, and a non-issue in 3.* Is it worth opening an issue on this, just so we can close it as won't fix? Or is this

Re: [Python-Dev] Mixed up core/module source file locations in CPython

2013-11-17 Thread Brett Cannon
On Nov 17, 2013 8:58 AM, Eli Bendersky eli...@gmail.com wrote: On Sat, Nov 16, 2013 at 3:44 PM, Brett Cannon br...@python.org wrote: On Sat, Nov 16, 2013 at 1:40 PM, Eric Snow ericsnowcurren...@gmail.com wrote: If you look at the Python and Modules directories in the cpython repo

Re: [Python-Dev] Mixed up core/module source file locations in CPython

2013-11-16 Thread Brett Cannon
On Sat, Nov 16, 2013 at 1:40 PM, Eric Snow ericsnowcurren...@gmail.comwrote: If you look at the Python and Modules directories in the cpython repo, you'll find modules in Python/ and core files (like python.c and main.c) in Modules/. (It's like parking on a driveway and driving on a parkway.

Re: [Python-Dev] unicode Exception messages in py2.7

2013-11-15 Thread Brett Cannon
On Fri, Nov 15, 2013 at 12:41 PM, Chris Barker chris.bar...@noaa.govwrote: On Fri, Nov 15, 2013 at 9:21 AM, Armin Rigo ar...@tunes.org wrote: I figured that even using the traceback.py module and getting Exception: \u1234\u1235\u5321 is rather useless if you tried to raise an exception

Re: [Python-Dev] The pysandbox project is broken

2013-11-13 Thread Brett Cannon
On Wed, Nov 13, 2013 at 6:30 AM, Facundo Batista facundobati...@gmail.comwrote: On Wed, Nov 13, 2013 at 4:37 AM, Maciej Fijalkowski fij...@gmail.com wrote: Do you think it would be productive to create an independent Python compiler, designed with sandboxing in mind from the beginning?

Re: [Python-Dev] The pysandbox project is broken

2013-11-13 Thread Brett Cannon
On Wed, Nov 13, 2013 at 1:05 PM, Eli Bendersky eli...@gmail.com wrote: On Wed, Nov 13, 2013 at 6:58 AM, Brett Cannon br...@python.org wrote: On Wed, Nov 13, 2013 at 6:30 AM, Facundo Batista facundobati...@gmail.com wrote: On Wed, Nov 13, 2013 at 4:37 AM, Maciej Fijalkowski fij

Re: [Python-Dev] PEP 451 (ModuleSpec) is accepted

2013-11-08 Thread Brett Cannon
mechanism to the stdlib. On Fri, Nov 8, 2013 at 2:49 PM, Eric Snow ericsnowcurren...@gmail.comwrote: I'm pleased to announce that Brett Cannon and Nick Coghlan (the co-BDFL-delegates) have accepted PEP 451 for inclusion in Python 3.4. Both of them have contributed substantially

Re: [Python-Dev] Avoid formatting an error message on attribute error

2013-11-07 Thread Brett Cannon
On Thu, Nov 7, 2013 at 7:41 AM, Nick Coghlan ncogh...@gmail.com wrote: On 7 Nov 2013 21:34, Victor Stinner victor.stin...@gmail.com wrote: 2013/11/7 Steven D'Aprano st...@pearwood.info: My initial instinct here was to say that sounded like premature optimization, but to my surprise

Re: [Python-Dev] Avoid formatting an error message on attribute error

2013-11-07 Thread Brett Cannon
On Thu, Nov 7, 2013 at 2:20 PM, Eric Snow ericsnowcurren...@gmail.comwrote: On Thu, Nov 7, 2013 at 11:44 AM, Brett Cannon br...@python.org wrote: Lazy message creation through __str__ does leave the message out of `args`, though. If that's an issue you could make args a (settable) property

Re: [Python-Dev] A small patch.

2013-11-06 Thread Brett Cannon
Please put all patches on bugs.python.org, else we will lose track of the change. On Wed, Nov 6, 2013 at 2:17 PM, Sreenivas Reddy T thatiparthysreeni...@gmail.com wrote: diff -r bec6df56c053 Lib/datetime.py --- a/Lib/datetime.pyTue Nov 05 22:01:46 2013 +0200 +++ b/Lib/datetime.pyThu

Re: [Python-Dev] PEP 451 update

2013-11-02 Thread Brett Cannon
On Sat, Nov 2, 2013 at 5:46 AM, Nick Coghlan ncogh...@gmail.com wrote: On 2 November 2013 08:44, Eric Snow ericsnowcurren...@gmail.com wrote: On Fri, Nov 1, 2013 at 11:59 AM, Brett Cannon br...@python.org wrote: Thanks for the clarification. It all SGTM. I've updated the PEP

Re: [Python-Dev] PEP 451 update

2013-11-01 Thread Brett Cannon
On Thu, Oct 31, 2013 at 6:10 PM, Nick Coghlan ncogh...@gmail.com wrote: On 1 Nov 2013 01:37, PJ Eby p...@telecommunity.com wrote: . ;-) I also suspect, that if properly spelled out, those use cases are going to boil down to: 1. Throwing errors if you have an existing module object

Re: [Python-Dev] PEP 451 update

2013-11-01 Thread Brett Cannon
On Fri, Nov 1, 2013 at 1:52 PM, Eric Snow ericsnowcurren...@gmail.comwrote: On Fri, Nov 1, 2013 at 7:35 AM, Brett Cannon br...@python.org wrote: On Thu, Oct 31, 2013 at 6:10 PM, Nick Coghlan ncogh...@gmail.com wrote: At the time when find_spec runs, sys.modules hasn't been touched yet, so

Re: [Python-Dev] PEP 451 update

2013-10-25 Thread Brett Cannon
On Thu, Oct 24, 2013 at 2:05 AM, Eric Snow ericsnowcurren...@gmail.comwrote: I've had some offline discussion with Brett and Nick about PEP 451 which has led to some meaningful clarifications in the PEP. In the interest of pulling further discussions back onto this (archived/public) list,

Re: [Python-Dev] PEP 451 update

2013-10-25 Thread Brett Cannon
On Fri, Oct 25, 2013 at 11:44 AM, Eric Snow ericsnowcurren...@gmail.comwrote: On Fri, Oct 25, 2013 at 9:40 AM, Brett Cannon br...@python.org wrote: After reading Eric's doc patch, I realized there is one change I want to make to the current semantics and that's not to backfill __package__

Re: [Python-Dev] PEP 451 update

2013-10-25 Thread Brett Cannon
On Fri, Oct 25, 2013 at 12:24 PM, PJ Eby p...@telecommunity.com wrote: I've not really had time to review this PEP yet, but from skimming discussion to date, the only thing I'm still worried about is whether this will break lazy import schemes that use a module subclass that hooks

Re: [Python-Dev] PEP 451 update

2013-10-25 Thread Brett Cannon
On Fri, Oct 25, 2013 at 2:10 PM, PJ Eby p...@telecommunity.com wrote: On Fri, Oct 25, 2013 at 1:15 PM, Brett Cannon br...@python.org wrote: On Fri, Oct 25, 2013 at 12:24 PM, PJ Eby p...@telecommunity.com wrote: At least through all 2.x, reload() just uses module.__name__ to restart

Re: [Python-Dev] [Python-checkins] cpython: Close #19379: Lazily import linecache in the warnings module, to make startup

2013-10-24 Thread Brett Cannon
The diff doesn't show an addition to BENCH_GROUPS. Maybe apps? On Thu, Oct 24, 2013 at 4:24 PM, antoine.pitrou python-check...@python.orgwrote: http://hg.python.org/cpython/rev/8939c0196990 changeset: 86603:8939c0196990 user:Antoine Pitrou solip...@pitrou.net date:Thu Oct

Re: [Python-Dev] PyCon US 2014

2013-10-22 Thread Brett Cannon
On Fri, Oct 11, 2013 at 11:23 AM, Michael Foord fuzzy...@voidspace.org.ukwrote: On 10 Oct 2013, at 01:53, Eric Snow ericsnowcurren...@gmail.com wrote: Registration is now open for PyCon US 2014. Are there any plans yet for the language summit? Just the day (e.g. Thursday April 10) will

Re: [Python-Dev] [Python-checkins] cpython: Issue #18810: Be optimistic with stat calls when seeing if a directory

2013-10-19 Thread Brett Cannon
On Fri, Oct 18, 2013 at 9:06 PM, Nick Coghlan ncogh...@gmail.com wrote: On 19 Oct 2013 03:24, brett.cannon python-check...@python.org wrote: http://hg.python.org/cpython/rev/11f2f4af1979 changeset: 86444:11f2f4af1979 user:Brett Cannon br...@python.org date:Fri Oct 18

Re: [Python-Dev] [Python-checkins] cpython: Issue #18416: Fix various os calls in importlib.machinery.FileFinder

2013-10-19 Thread Brett Cannon
On Fri, Oct 18, 2013 at 8:55 PM, Nick Coghlan ncogh...@gmail.com wrote: On 19 Oct 2013 02:01, brett.cannon python-check...@python.org wrote: http://hg.python.org/cpython/rev/33844153cd02 changeset: 86438:33844153cd02 user:Brett Cannon br...@python.org date:Fri Oct 18

Re: [Python-Dev] PEP 454 (tracemalloc): new minimalist version

2013-10-19 Thread Brett Cannon
On Sat, Oct 19, 2013 at 10:00 AM, Charles-François Natali cf.nat...@gmail.com wrote: 2013/10/19 Nick Coghlan ncogh...@gmail.com: Speaking of which... Charles-François, would you be willing to act as BDFL-Delegate for this PEP? This will be a very useful new analysis tool, and between

Re: [Python-Dev] The Tulip Has Landed

2013-10-18 Thread Brett Cannon
On Fri, Oct 18, 2013 at 4:10 AM, Paul Moore p.f.mo...@gmail.com wrote: On 17 October 2013 23:40, Larry Hastings la...@hastings.org wrote: For those interested parties: Guido just checked asyncio, aka Tulip, aka PEP 3156, in to trunk. I expect it to be part of Python 3.4.0a4, hopefully to

[Python-Dev] possibility of shaving a stat call from imports

2013-10-18 Thread Brett Cannon
importlib.machinery.FileFinder does a stat call to check if a path is a file if the package check failed. Now I'm willing to bet that the check is rather redundant as the file extension should be a dead give-away that something in a directory is a file and not some non-file type. The import would

[Python-Dev] Current start-up times

2013-10-18 Thread Brett Cannon
tl;dr: 2.7 - 3.3 = 1.92x slower 2.7 - 3.4 = 1.36x slower 3.3 - 3.4 = 1.40x faster IOW the work people have been putting in to speed up interpreter startup are definitely paying off. ./perf.py -b normal_startup,startup_nosite ../cpython/py3.3/python.exe ../cpython/default/python.exe Running

Re: [Python-Dev] Daily reference leaks (30f33e6a04c1): sum=975756

2013-10-18 Thread Brett Cannon
On Fri, Oct 18, 2013 at 1:34 PM, Zachary Ware zachary.ware+py...@gmail.comwrote: On Fri, Oct 18, 2013 at 12:30 PM, Antoine Pitrou solip...@pitrou.net wrote: Is anyone looking into those leaks? I suspect they might have to do with Serhiy's latest re changes in add40e9f7cbe. (just a

Re: [Python-Dev] Daily reference leaks (30f33e6a04c1): sum=975756

2013-10-18 Thread Brett Cannon
On Fri, Oct 18, 2013 at 1:51 PM, Brett Cannon br...@python.org wrote: On Fri, Oct 18, 2013 at 1:34 PM, Zachary Ware zachary.ware+py...@gmail.com wrote: On Fri, Oct 18, 2013 at 12:30 PM, Antoine Pitrou solip...@pitrou.net wrote: Is anyone looking into those leaks? I suspect

Re: [Python-Dev] Daily reference leaks (30f33e6a04c1): sum=975756

2013-10-18 Thread Brett Cannon
On Fri, Oct 18, 2013 at 1:53 PM, Brett Cannon br...@python.org wrote: On Fri, Oct 18, 2013 at 1:51 PM, Brett Cannon br...@python.org wrote: On Fri, Oct 18, 2013 at 1:34 PM, Zachary Ware zachary.ware+py...@gmail.com wrote: On Fri, Oct 18, 2013 at 12:30 PM, Antoine Pitrou solip

Re: [Python-Dev] Checking in Argument Clinic early?

2013-10-15 Thread Brett Cannon
suite into Tools/clinic/ - Adding its documentation somewhere in the Doc/ directory - Merging six or eight places where I've converted random functions to use Clinic Brett Cannon gave the code a cursory review at PyCon CA over about six hours, and iirc he said it was basically

Re: [Python-Dev] Change PEP 399 import recommendation

2013-10-14 Thread Brett Cannon
On Sun, Oct 13, 2013 at 3:08 PM, Victor Stinner victor.stin...@gmail.comwrote: Le 13 oct. 2013 10:19, Stefan Behnel stefan...@behnel.de a écrit : I agree. I find it much easier to read a plain and obvious try: from _cmodule import * except ImportError: from

Re: [Python-Dev] PEPs shouldn't be considered docs

2013-10-12 Thread Brett Cannon
On Sat, Oct 12, 2013 at 5:38 AM, Paul Moore p.f.mo...@gmail.com wrote: On 12 October 2013 00:29, Nick Coghlan ncogh...@gmail.com wrote: There's no grand policy change or clarification needed here, it's just another consequence of the fact that the import system isn't documented properly in

Re: [Python-Dev] Right place for PBKDF2 wrapper

2013-10-12 Thread Brett Cannon
On Sat, Oct 12, 2013 at 1:19 PM, Christian Heimes christ...@python.orgwrote: Hi, I have written a interface to OpenSSL's PKCS5_PBKDF2_HMAC() function. It implements PKCS#5's password based key derivation function 2 with HMAC as pseudo-random function. It supports any digest that is supported

Re: [Python-Dev] Python startup time

2013-10-10 Thread Brett Cannon
On Thu, Oct 10, 2013 at 9:38 AM, Antoine Pitrou solip...@pitrou.net wrote: Le Thu, 10 Oct 2013 14:36:26 +0200, Dirkjan Ochtman dirk...@ochtman.nl a écrit : On Thu, Oct 10, 2013 at 2:25 PM, Christian Heimes christ...@python.org wrote: Benchmark of 1000 times python -c '' Python

Re: [Python-Dev] inspect() and dir()

2013-10-09 Thread Brett Cannon
On Tue, Oct 8, 2013 at 5:29 PM, Ethan Furman et...@stoneleaf.us wrote: Greetings, Currently, inspect() is dependent on dir(). What's inspect()? I don't know of any global with that name and you are obviously not talking about the module. ___

Re: [Python-Dev] project culture: take responsibility for your commits

2013-10-02 Thread Brett Cannon
On Wed, Oct 2, 2013 at 2:58 PM, Stefan Behnel stefan...@behnel.de wrote: Hi, I'm looking back on a rather unpleasant experience that I recently had in this developer community. Actually, twice by now. Here's what I take from it: You should take responsibility for your commits. Sounds

Re: [Python-Dev] PEP 453 (pip bootstrapping) ready for pronouncement?

2013-09-27 Thread Brett Cannon
On Fri, Sep 27, 2013 at 5:16 PM, Zachary Ware zachary.ware+py...@gmail.comwrote: On Fri, Sep 27, 2013 at 3:29 PM, Donald Stufft don...@stufft.io wrote: snip If it lives in the source tree how are you going to provent it from existing when someone installs on Linux? OSX? One of the BSDs?

Re: [Python-Dev] Getting Tulip (PEP 3156) into the 3.4 stdlib, marked provisional, named asyncio

2013-09-27 Thread Brett Cannon
On Fri, Sep 27, 2013 at 6:33 PM, Guido van Rossum gu...@python.org wrote: I've been looking at my progress with Tulip and the 3.4 release schedule (PEP 429) and it looks like I will have to do some kind of sprint to get it into the release in time for beta 1, which is planned for Nov 24.

Re: [Python-Dev] PEP 453 (pip bootstrapping) ready for pronouncement?

2013-09-26 Thread Brett Cannon
On Wed, Sep 25, 2013 at 7:15 PM, Donald Stufft don...@stufft.io wrote: On Sep 25, 2013, at 7:04 PM, Barry Warsaw ba...@python.org wrote: Another reason to oppose this is what I've heard quite often from people regarding Python 2.7. I've been told that many folks are actually really

Re: [Python-Dev] asdl.py and Python-ast.[hc]

2013-09-26 Thread Brett Cannon
On Thu, Sep 26, 2013 at 9:52 AM, Eli Bendersky eli...@gmail.com wrote: Hi All, Earlier this morning I had a slight tackle with a couple of the 3.4 bots (sorry everyone!). I fixed some problems in asdl.py - http://hg.python.org/cpython/rev/21d46e3ae60c - and used the 'with' statement. Some

Re: [Python-Dev] astgen.py vs. ASDL for ASTs

2013-09-25 Thread Brett Cannon
cc'ing Jeremy Hylton who made the decision to use Zephyr. On Wed, Sep 25, 2013 at 9:15 AM, Eli Bendersky eli...@gmail.com wrote: Hello, Some history (as best as I could collect it) followed by a question: Before Python 2.5, the ast stdlib module was auto generated by a script named

Re: [Python-Dev] astgen.py vs. ASDL for ASTs

2013-09-25 Thread Brett Cannon
On Wed, Sep 25, 2013 at 9:28 AM, Benjamin Peterson benja...@python.orgwrote: 2013/9/25 Eli Bendersky eli...@gmail.com: Hello, Some history (as best as I could collect it) followed by a question: Before Python 2.5, the ast stdlib module was auto generated by a script named astgen.py

Re: [Python-Dev] Installing python27-devel on Centos5.8 running python2.4

2013-09-25 Thread Brett Cannon
This list is for the developing *of *Python, not it's use. You can try asking on python-list for some help. On Wed, Sep 25, 2013 at 4:07 AM, alok bhan rajalo...@gmail.com wrote: Hi All I need help in installing python development packages (python27-devel) on Centos5.8. Upgrading hardware is

Re: [Python-Dev] Best practice for documentation for std lib

2013-09-22 Thread Brett Cannon
On Sun, Sep 22, 2013 at 8:53 AM, Steven D'Aprano st...@pearwood.infowrote: On Sun, Sep 22, 2013 at 10:20:46AM +0200, Antoine Pitrou wrote: On Sun, 22 Sep 2013 13:13:04 +1000 Steven D'Aprano st...@pearwood.info wrote: Hi all, I have a question about how I should manage documentation

Re: [Python-Dev] License() release list is imcomplete; intentional?

2013-09-17 Thread Brett Cannon
On Tue, Sep 17, 2013 at 2:45 PM, Glenn Linderman v+pyt...@g.nevcal.comwrote: On 9/17/2013 10:51 AM, Guido van Rossum wrote: But only the PSF has the list of original contributors and their licenses. So can that list be made public, and available in multiple archives? Technically it

Re: [Python-Dev] PEP 428: Pathlib - stat caching

2013-09-16 Thread Brett Cannon
On Mon, Sep 16, 2013 at 3:45 PM, Antoine Pitrou solip...@pitrou.net wrote: On Mon, 16 Sep 2013 19:06:37 +0200 Charles-François Natali cf.nat...@gmail.com wrote: 2013/9/16 Antoine Pitrou solip...@pitrou.net: Le Sun, 15 Sep 2013 06:46:08 -0700, Ethan Furman et...@stoneleaf.us a écrit :

Re: [Python-Dev] Need testing audio files

2013-09-11 Thread Brett Cannon
On Wed, Sep 11, 2013 at 8:46 AM, Victor Stinner victor.stin...@gmail.comwrote: Use your microphone, say python and save the file in your favorite file format. Try for example Audacity. I suppose that you don't need specific audio content and you don't need a huge file. And if you don't want

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.4.0a2

2013-09-09 Thread Brett Cannon
On Mon, Sep 9, 2013 at 8:02 AM, Larry Hastings la...@hastings.org wrote: On behalf of the Python development team, I'm chuffed to announce the second alpha release of Python 3.4. This is a preview release, and its use is not recommended for production settings. Python 3.4 includes a range

Re: [Python-Dev] Add a new tracemalloc module to trace memory allocations

2013-08-29 Thread Brett Cannon
On Wed, Aug 28, 2013 at 8:16 PM, Victor Stinner victor.stin...@gmail.comwrote: Hi, Thanks to the PEP 445, it becomes possible to trace easily memory allocations. I propose to add a new tracemalloc module computing the memory usage per file and per line number. It has also a private method

[Python-Dev] Benchmarks now run unmodified under Python 3

2013-08-23 Thread Brett Cannon
I just committed a change to the benchmarks suite so that there is no longer a translation step to allow running under Python 3. Should make it much easier to just keep a checkout lying around to use for both Python 2 and 3 benchmarking. ___ Python-Dev

Re: [Python-Dev] [Python-checkins] cpython (merge 3.3 - default): merge for issue #18755

2013-08-23 Thread Brett Cannon
...@python.org: http://hg.python.org/cpython/rev/7d30ecf5c916 changeset: 85339:7d30ecf5c916 parent: 85336:391f36ef461a parent: 85337:ddd610cb65ef user:Brett Cannon br...@python.org date:Fri Aug 23 11:52:19 2013 -0400 summary: merge for issue #18755 files

Re: [Python-Dev] Status of 3.2 in Hg repository?

2013-08-21 Thread Brett Cannon
On Tue, Aug 20, 2013 at 8:33 PM, Tim Peters tim.pet...@gmail.com wrote: [Tim, wondering why the 3.2 branch isn't inactive] ... What is gained by _not_ merging here? I don't see it. [Antoine Pitrou] Perhaps Georg doesn't like merges? ;-) I suppose what's gained is one less command to

Re: [Python-Dev] Status of 3.2 in Hg repository?

2013-08-21 Thread Brett Cannon
? I'd be happy to do that. I'd throw away all the merge changes except for adding the v3,2.5 tag to .hgtags. The only active branches remaining would be `default` and 2.7, which is what I expected when I started this ;-) [Brett Cannon] While I would think Georg can object if he wants, I

Re: [Python-Dev] Deprecating the formatter module

2013-08-15 Thread Brett Cannon
On Thu, Aug 15, 2013 at 5:22 AM, Antoine Pitrou solip...@pitrou.net wrote: On Thu, 15 Aug 2013 11:16:20 +0200 Victor Stinner victor.stin...@gmail.com wrote: 2013/8/15 Antoine Pitrou solip...@pitrou.net: We don't have any substantial change in store for an eventual Python 4, so it's

Re: [Python-Dev] When to remove deprecated stuff (was: Deprecating the formatter module)

2013-08-15 Thread Brett Cannon
On Thu, Aug 15, 2013 at 8:29 AM, R. David Murray rdmur...@bitdance.comwrote: On Thu, 15 Aug 2013 11:22:14 +0200, Antoine Pitrou solip...@pitrou.net wrote: On Thu, 15 Aug 2013 11:16:20 +0200 Victor Stinner victor.stin...@gmail.com wrote: 2013/8/15 Antoine Pitrou solip...@pitrou.net:

Re: [Python-Dev] When to remove deprecated stuff (was: Deprecating the formatter module)

2013-08-15 Thread Brett Cannon
On Thu, Aug 15, 2013 at 8:36 AM, Antoine Pitrou solip...@pitrou.net wrote: On Thu, 15 Aug 2013 08:29:35 -0400 R. David Murray rdmur...@bitdance.com wrote: On Thu, 15 Aug 2013 11:22:14 +0200, Antoine Pitrou solip...@pitrou.net wrote: On Thu, 15 Aug 2013 11:16:20 +0200 Victor Stinner

Re: [Python-Dev] When to remove deprecated stuff (was: Deprecating the formatter module)

2013-08-15 Thread Brett Cannon
On Thu, Aug 15, 2013 at 9:15 AM, Ezio Melotti ezio.melo...@gmail.comwrote: Hi, On Thu, Aug 15, 2013 at 3:29 PM, R. David Murray rdmur...@bitdance.com wrote: On Thu, 15 Aug 2013 11:22:14 +0200, Antoine Pitrou solip...@pitrou.net wrote: On Thu, 15 Aug 2013 11:16:20 +0200 Victor Stinner

Re: [Python-Dev] Deprecating the formatter module

2013-08-14 Thread Brett Cannon
On Tue, Aug 13, 2013 at 10:22 PM, Steven D'Aprano st...@pearwood.infowrote: On 13/08/13 23:36, Brett Cannon wrote: On Tue, Aug 13, 2013 at 6:34 AM, Serhiy Storchaka storch...@gmail.com wrote: 12.08.13 22:22, Brett Cannon написав(ла): I have created http://bugs.python.org

Re: [Python-Dev] Deprecating the formatter module

2013-08-14 Thread Brett Cannon
On Wed, Aug 14, 2013 at 11:47 AM, Nick Coghlan ncogh...@gmail.com wrote: On 14 August 2013 11:08, Brett Cannon br...@python.org wrote: We take adding a module to the stdlib very seriously for all of these reasons and yet people seem to forget that the exact same reasons apply to modules

Re: [Python-Dev] Deprecating the formatter module

2013-08-14 Thread Brett Cannon
On Wed, Aug 14, 2013 at 12:09 PM, Nick Coghlan ncogh...@gmail.com wrote: On 14 August 2013 11:55, Brett Cannon br...@python.org wrote: On Wed, Aug 14, 2013 at 11:47 AM, Nick Coghlan ncogh...@gmail.com wrote: On 14 August 2013 11:08, Brett Cannon br...@python.org wrote: We take adding

Re: [Python-Dev] Deprecating the formatter module

2013-08-14 Thread Brett Cannon
On Wed, Aug 14, 2013 at 1:50 PM, Chris Angelico ros...@gmail.com wrote: On Wed, Aug 14, 2013 at 6:42 PM, Nick Coghlan ncogh...@gmail.com wrote: That would be PEP 4 :) What's the normal way to update a PEP? ... proposals for deprecating modules MUST be made by providing a change to the

Re: [Python-Dev] Dealing with import lock deadlock in Import Hooks

2013-08-13 Thread Brett Cannon
On Mon, Aug 12, 2013 at 10:10 PM, Arnaud Fontaine arnaud.fonta...@nexedi.com wrote: Brett Cannon br...@python.org writes: On Mon, Aug 12, 2013 at 5:12 AM, Arnaud Fontaine arnaud.fonta...@nexedi.com wrote: Yes, I saw the bug report and its patch implementing the import lock per module

Re: [Python-Dev] Deprecating the formatter module

2013-08-13 Thread Brett Cannon
On Tue, Aug 13, 2013 at 6:34 AM, Serhiy Storchaka storch...@gmail.comwrote: 12.08.13 22:22, Brett Cannon написав(ла): I have created http://bugs.python.org/**issue18716http://bugs.python.org/issue18716to deprecate the formatter module for removal in Python 3.6 unless someone convinces me

Re: [Python-Dev] Dealing with import lock deadlock in Import Hooks

2013-08-12 Thread Brett Cannon
in my initial email) and watched the presentation by Brett Cannon (BTW, I could not find the diagram explained during the presentation, anyone knows if it's available somewhere?). http://prezi.com/mqptpza9xbic/?utm_campaign=shareutm_medium=copy -Brett

[Python-Dev] Deprecating the formatter module

2013-08-12 Thread Brett Cannon
At the PyCon CA sprint someone discovered the formatter module had somewhat low code coverage. We discovered this is because it's tested by test_sundry, i.e. it's tested by importing it and that's it. We then realized that it isn't really used by anyone (pydoc uses it but it should have been

Re: [Python-Dev] The Return Of Argument Clinic

2013-08-06 Thread Brett Cannon
On Tue, Aug 6, 2013 at 12:59 AM, Nick Coghlan ncogh...@gmail.com wrote: On 6 August 2013 09:53, Larry Hastings la...@hastings.org wrote: On 08/05/2013 02:55 AM, Nick Coghlan wrote: On 5 August 2013 18:48, Larry Hastings la...@hastings.org wrote: Question 0: How should we integrate Clinic

Re: [Python-Dev] Lambda [was Re: PEP 8 modernisation]

2013-08-01 Thread Brett Cannon
On Thu, Aug 1, 2013 at 12:58 PM, Alexander Shorin kxe...@gmail.com wrote: Hi Steven, On Thu, Aug 1, 2013 at 7:06 PM, Steven D'Aprano st...@pearwood.info wrote: Hi Alexander, On 02/08/13 00:48, Alexander Shorin wrote: Hi Ronald, I understand this, but I'm a bit confused about

Re: [Python-Dev] C code coverage report with lcov

2013-07-31 Thread Brett Cannon
On Tue, Jul 30, 2013 at 8:28 PM, Christian Heimes christ...@python.orgwrote: Am 29.07.2013 21:48, schrieb Antoine Pitrou: Ideally, we should run coverage runs on different systems (Unices, Windows...) and merge the results together, so that we know which paths are really uncovered. I

Re: [Python-Dev] C code coverage report with lcov

2013-07-29 Thread Brett Cannon
On Mon, Jul 29, 2013 at 1:15 PM, Christian Heimes christ...@python.orgwrote: Hi, I have done some experiments with GCC's gcov and lcov to get the C code coverage of our unit test suite. You may find today's report at http://tiran.bitbucket.org/python-lcov/ Thanks! I took a quick poke

Re: [Python-Dev] C code coverage report with lcov

2013-07-29 Thread Brett Cannon
On Mon, Jul 29, 2013 at 3:31 PM, Christian Heimes christ...@python.orgwrote: Am 29.07.2013 19:58, schrieb Brett Cannon: I took a quick poke around and it seems some things are legitimately not being executed, while others are error conditions that we wouldn't expect to occur (e.g. memory

Re: [Python-Dev] Coverity Scan

2013-07-26 Thread Brett Cannon
On Thu, Jul 25, 2013 at 6:56 PM, Christian Heimes christ...@python.orgwrote: Am 26.07.2013 00:32, schrieb Terry Reedy: I found the answer here https://docs.google.com/file/d/0B5wQCOK_TiRiMWVqQ0xPaDEzbkU/edit Coverity Integrity Level 1 is 1 (defect/1000 lines) Level 2 is .1 (we have

Re: [Python-Dev] Coverity Scan

2013-07-26 Thread Brett Cannon
On Fri, Jul 26, 2013 at 8:56 AM, Eli Bendersky eli...@gmail.com wrote: Just a quick question - is there a chance to convince Coverity to detect Python refcounting leaks in C API code :-) ? You can always ask. =) This could be useful not only for Python but for extensions too. As it stands

Re: [Python-Dev] Official github mirror for CPython?

2013-07-25 Thread Brett Cannon
On Thu, Jul 25, 2013 at 11:18 AM, Eli Bendersky eli...@gmail.com wrote: On Thu, Jul 25, 2013 at 7:48 AM, Brian Curtin br...@python.org wrote: On Thu, Jul 25, 2013 at 9:37 AM, Christian Heimes christ...@python.org wrote: Am 25.07.2013 16:29, schrieb Eli Bendersky: Hi all, I've been

Re: [Python-Dev] Python 3 as a Default in Linux Distros

2013-07-24 Thread Brett Cannon
On Wed, Jul 24, 2013 at 5:12 AM, Bohuslav Kabrda bkab...@redhat.com wrote: Hi all, in recent days, there has been a discussion on fedora-devel (see thread [1]) about moving to Python 3 as a default. I'd really love to hear opinions on the matter from the upstream, mainly regarding these two

Re: [Python-Dev] Tweaking PEP 8 guidelines for use of leading underscores

2013-07-17 Thread Brett Cannon
On Tue, Jul 16, 2013 at 9:07 PM, Barry Warsaw ba...@python.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Jul 16, 2013, at 07:34 PM, Tres Seaver wrote: On 07/16/2013 07:09 AM, Nick Coghlan wrote: I did find it interesting that we *don't* explicitly advise against the

Re: [Python-Dev] PLY in stdlib (was cffi in stdlib)

2013-07-14 Thread Brett Cannon
On Sun, Jul 14, 2013 at 2:54 AM, Nick Coghlan ncogh...@gmail.com wrote: On 13 July 2013 23:26, David Beazley d...@dabeaz.com wrote: I'm in favor of PLY going into stdlib with the caveat that there are some things about it that should probably be cleaned up and modernized. For instance, the

Re: [Python-Dev] Tweaking PEP 8 guidelines for use of leading underscores

2013-07-14 Thread Brett Cannon
On Sun, Jul 14, 2013 at 8:01 PM, Cameron Simpson c...@zip.com.au wrote: On 15Jul2013 09:48, Steven D'Aprano st...@pearwood.info wrote: | On 14/07/13 21:09, Nick Coghlan wrote: | | Slight adjustment to the proposed wording to ensure completely undocumented | modules are also considered

Re: [Python-Dev] lament for the demise of unbound methods

2013-07-04 Thread Brett Cannon
On Thu, Jul 4, 2013 at 8:13 AM, Chris Withers ch...@simplistix.co.ukwrote: On 04/07/2013 12:59, Christian Heimes wrote: Am 04.07.2013 13:21, schrieb Chris Withers: There doesn't appear to be any way in Python 3 to do this, which is a little surprising and frustrating... What am I missing

<    9   10   11   12   13   14   15   16   17   18   >