[Python-checkins] r62303 - in python/trunk: Doc/library/warnings.rst Include/Python.h Include/pyerrors.h Include/sysmodule.h Include/traceback.h Include/warnings.h Lib/test/test_support.py Lib/test/test_warnings.py Lib/warnings.py Makefile.pre.in

Neal Norwitz nnorwitz at gmail.com
Tue Apr 15 04:57:08 CEST 2008


On Mon, Apr 14, 2008 at 12:10 PM, Guido van Rossum <guido at python.org> wrote:
> On Sat, Apr 12, 2008 at 4:44 PM, brett.cannon
>  <python-checkins at python.org> wrote:
>  > Author: brett.cannon
>  >  Date: Sun Apr 13 01:44:07 2008
>  >  New Revision: 62303
>  >
>  >  Log:
>  >  Re-implement the 'warnings' module in C. This allows for usage of the
>  >  'warnings' code in places where it was previously not possible (e.g., the
>  >  parser). It could also potentially lead to a speed-up in interpreter start-up
>  >  if the C version of the code (_warnings) is imported over the use of the
>  >  Python version in key places.
>  >
>  >  Closes issue #1631171.
>
>  This was originally Neal's code, right? I think this is really cool.

Yeah, this was the code I started a long time ago.  Brett probably
wrote more of it by the time he checked it in though.

>  It's also ironic that we're moving warnings.py to C, and we're also
>  considering moving import.c to Python...

Yeah, isn't it?

Now we need to find someone to fix all the warnings under Parser.
Also, we should benchmark startup performance.  We might be able to
eliminate some more modules and have a faster startup.

n


More information about the Python-checkins mailing list