6 - Fixed indentation problem in Pyrex.Distutils.build_ext.
7 [Oliver Grisel <ogrisel@nuxeo.com>]
15 - All use of lvalue casts has been eliminated, for
16 compatibility with gcc4.
18 - PyMODINIT_FUNC now used to declare the module init function.
20 - Generated code should be compilable as either C or C++.
21 When compiling as C++, "extern C" is used where appropriate
22 to preserve linkage semantics. C++ functions still cannot
25 - An extension type can be made weak-referenceable by
26 giving it a C attribute of type object called __weakref__.
28 - Source files opened in universal newlines mode.
30 - Support for public extension type C attributes of type
31 long long and unsigned long long added (but not tested).
32 [Sam Rushing <sam@rushing.nightmare.com>]
34 - Distutils include directories now passed to Pyrex compiler.
35 [Konrad Hinsen <khinsen@cea.fr>]
37 - Integer constants with an "L" suffix are now allowed
38 and are converted to Python long integers.
39 [Rainer Deyke <rainerd@eldwood.com>]
41 - A broken .c file is no longer left behind if there are
44 - Using the result of a Python indexing or attribute access
45 operation as a char * is no longer considered an error in
46 most cases, as the former behaviour proved to be more
47 annoying than helpful.
51 - Fixed problems with conversion from Python integers to
52 C unsigned longs. Now use PyInt_AsUnsignedLongMask and
53 PyInt_AsUnsignedLongLongMask instead of the PyLong_*
54 functions (which only work on Python longs).
55 [Wim Vree <wim@vree.be>]
57 - C unsigned ints now converted to/from Python longs intead
58 of Python ints to avoid overflow problems.
59 [Heiko Wundram <me+pyrex@modelnine.org>]
61 - Correct PyArg_ParseTuple format characters now used for
62 unsigned types. [Jeff Bowden <jlb@houseofdistraction.com>]
64 - Nonzero return value from a base class tp_traverse call
67 - Taking sizeof an incomplete type caused a crash while
68 producing an error message. [Drew Perttula <dperttula@pdi.com>]
70 - If a module cimported itself, definitions of global variables
71 were generated twice. [Parzival Herzog <parzp@shaw.ca>]
73 - Distutils extension updated to handle changed signature of
74 swig_sources(). [David M. Cooke <cookedm@physics.mcmaster.ca>]
76 - Incorrect C code generated for a raw string containing a double
77 quote preceded by a backslash. [Thomas Drake <bistroy@mac.com>]
79 - Declaration of public C function with an exception value written
80 to generated .pxi file without the except clause.
81 [Robby Dermody <robbyd@u20.org>]
83 - __delitem__ method of an extension type with no __setitem__
84 did not get called. [Richard Boulton <richard@tartarus.org>]
86 - A spurious Py_INCREF was generated when a return statement
87 required a type test. [Jonathan Doda <jdoda@sympatico.ca>]
89 - Casting a value to a function pointer and then immediately
90 calling it generated a cast to a function instead of a cast
91 to a function pointer. [Simon Burton <simon@arrowtheory.com>]
93 - Py_TPFLAGS_HAVE_GC was not being set on an extension type that
94 inherited from an external extension type that used GC but did
95 not itself have any PyObject* attributes.
96 [Michael Hordijk <hoffbrinkle@hotmail.com>]
98 - A return statement inside a for statement leaked a reference
99 to the loop's iterator.
100 [Jürgen Kartnaller <j.kartnaller@robotech.at>]
102 - Full module name now appears in __module__ attribute of classes
103 and extension types, provided a correct dotted name is used
104 for the .pyx file. [Giovanni Bajo <rasky@develer.com>]
106 - Public extension type with no C attributes produced an
107 invalid .pxi file. [Simon Burton <simon@arrowtheory.com>]
109 - Using a dict constructor as the second operand of a boolean
110 expression crashed the Pyrex compiler.
111 [Stefan Behnel <behnel_ml@gkec.informatik.tu-darmstadt.de>]
113 - A C declaration list ending with a comma resulted in invalid
114 C code being generated. [Alex Coventry <alex_c@mit.edu>]
116 - A raw string containing two consecutive backslashes produced
117 incorrect C code. [Helmut Jarausch <jarausch@igpm.rwth-aachen.de>]
119 - An error is reported if you attempt to declare a special
120 method of an extension type using 'cdef' instead of 'def'.
121 [Sam Rushing <srushing@ironport.com>]
128 - Types defined with a ctypedef in a 'cdef extern from' block
129 are now referred to by the typedef name in generated C code,
130 so it is no longer necessary to match the type in the C
133 - Conversion to/from unsigned long now done with
134 PyLong_AsUnsignedLong and PyLong_FromUnsignedLong.
135 [Dug Song <dugsong@monkey.org>]
137 - A struct, union or enum definition in a 'cdef extern from'
138 block may now be left empty (using 'pass'). This can be useful
139 if you need to declare a variable of that type, but don't need
140 to refer to any of its members.
142 - More flexible about ordering of qualifiers such as 'long' and
144 ["John (J5) Palmieri" <johnp@redhat.com>]
149 - Non-interned string literals used in a Python class
150 definition did not work.
151 [Atsuo Ishimoto <ishimoto@gembook.org>]
152 [Andreas Kostyrka <andreas@kostyrka.org>]
154 - Return types of the buffer interface functions for extension
155 types have been corrected.
156 [Dug Song <dugsong@monkey.org>]
158 - Added 'static' to declarations of string literals.
159 [Phil Frost <indigo@bitglue.com>]
161 - Float literals are now copied directly to the C code as written,
162 to avoid problems with loss of precision.
163 [Mario Pernici <Mario.Pernici@mi.infn.it>]
165 - Inheriting from an extension type with C methods defined in
166 another Pyrex module did not work.
167 [Itamar Shtull-Trauring <itamar@itamarst.org>]
174 - Corrected an import statement setup.py, and made it
175 check for a unix platform in a more reliable way.
182 - Names of Python global variables and attributes are now
183 interned, and PyObject_GetAttr/SetAttr are used instead
184 of PyObject_GetAttrString/SetAttrString. String literals
185 which resemble Python identifiers are also interned.
187 - String literals are now converted to Python objects only
188 once instead of every time they are used.
190 - NUL characters are now allowed in Python string literals.
192 - Added some missing error checking code to the beginning
193 of module init functions. It's unlikely the operations
194 involved would ever fail, but you never know.
198 - Corrected some problems introduced by moving the Plex
206 - Corrected a problem in the setup.py (pyrexc script incorrectly
209 - Updated the distutils extension to match changes in the
210 Pyrex compiler calling interface.
212 - Doing 'make clean' in Demos/callback was removing a little too
213 much (that's why cheesefinder.c kept disappearing).
220 - A C method can now call an inherited C method by the usual
222 [Jiba <jiba@tuxfamily.org>]
224 - The __modname__ of a Python class is now set correctly.
225 [Paul Prescod <paul@prescod.net>]
227 - A MANIFEST.in file has been added to the distribution to
228 facilitate building rpms.
229 [contributed by Konrad Hinsen <hinsen@cnrs-orleans.fr>]
233 - Conditional code now generated to allow for the renaming of LONG_LONG
234 to PY_LONG_LONG that occurred between Python 2.2 and 2.3.
236 - Header files referenced in cimported modules were not being included.
237 [Tom Popovich <tompopovich@aol.com>]
239 - References to C functions and variables in a cimported module were
240 not being recognised if made from within a local scope.
241 [Tom Popovich <tompopovich@aol.com>]
243 - Spurious declarations in code generated for a "finally" block.
244 [Brandon Long <blong@fiction.net>]
246 - Attempting to return a value from a __contains__ method didn't work.
247 [Andreas Kostyrka <andreas@mtg.co.at>]
249 - Incorrect code generated for an extension type with C methods
250 inheriting from a base type with no C methods.
251 [Robin Becker <robin@reportlab.com>]
253 - Failure to report an error if a C method was defined in the
254 implementation part of an extension type that was not declared
255 in the corresponding definition part. Documentation also updated
256 to explain that this is necessary.
257 [Jiba <jiba@tuxfamily.org>]
259 - Made it an error to forward-declare an extension type with
260 a different base class specification from its subsequent
262 [Jiba <jiba@tuxfamily.org>]
264 - C attributes of an extension type were not being propagated
265 through more than one level of inheritance.
266 [Jiba <jiba@tuxfamily.org>]
268 - If a garbage collection occurred early enough in the __new__
269 method of an extension type with Python-valued C attributes,
270 a crash could occur in its tp_traverse function.
271 [reported by Jiba <jiba@tuxfamily.org>]
272 [fix suggested by Paul Prescod <paul@prescod.net>]
274 - An empty vtable struct is no longer generated for extension
275 types with no C methods.
276 [Robin Becker <robin@reportlab.com>]
278 - Memory was leaked in the sq_item function of an extension
279 type with a __getitem__ method.
280 [Atsuo Ishimoto <ishimoto@gembook.org>]
282 - Code generated to work around a bug in some versions of Python
283 2.2 which fails to initialise the tp_free slot correctly in
285 [Matthias Baas <baas@ira.uka.de>]
287 - Compiler crash when defining an extension type with a base
288 class specified by a dotted name.
289 [Alain Pointdexter <alainpoint@yahoo.fr>]
291 - Referencing an extension type defined in a cimported module
292 at run time did not work correctly.
293 [Alain Pointdexter <alainpoint@yahoo.fr>]
295 - Incorrect object struct code generated for an extension type
296 whose base class was defined in a .pxd file.
297 [Alain Pointdexter <alainpoint@yahoo.fr>]
299 - Redeclaring a type that wasn't previously an extension type
300 as an extension type caused a compiler crash.
301 [Scott Robinson <scott@tranzoa.com>]
303 - Incorrect code was generated for return statements in a
304 special method with no return value.
305 [Gary Bishop <gb@cs.unc.edu>]
307 - Single-line def statement did not work.
308 [Francois Pinard <pinard@iro.umontreal.ca>]
312 - Only the last pathname component of the .pyx file is reported in
314 [Bryan Weingarten <bryan.weingarten@pobox.com>]
316 - Documentation corrected to remove the erroneous statement that
317 extension classes can have a __del__ method.
318 [Bryan Weingarten <bryan.weingarten@pobox.com>]
320 - Note added to documentation explaining that it is not possible
321 for an extension type's __new__ method to explicitly call the
322 inherited __new__ method.
324 - The version of Plex included with Pyrex is now installed
325 as a subpackage of the Pyrex package, rather than as a
326 top-level package, so as not to interfere with any other
327 version of Plex the user may have installed.
334 - Extension types can have properties. See the new "Properties"
335 section in the "Extension Types" page.
337 - An extension type can inherit from a builtin type or another
338 extension type. See "Subclassing" in the "Extension Types" page.
340 - Extension types can have C methods, which can be overridden
341 in derived extension types. See "C Methods" in the "Extension Types"
346 - Conversion is now performed between C long longs and Python
347 long integers without chopping to the size of a C long.
348 Also the Python PY_LONG_LONG type is now used for long longs
349 for greater portability.
353 - Names were sometimes being generated that were insufficiently
354 unique in the presence of cimported declarations.
356 - Changed the way the included filename table is declared from
357 char *[] to char **, to stop MSVC from complaining about it
358 having an unknown size.
359 [Alexander A Naanou <alex_nanou@pochta.ru>]
361 - Second argument of assert statement was not being coerced
363 [Francois Pinard http://www.iro.umontreal.ca/~pinard]
365 - Return statement without value wasn't accepted in some
366 extension type special methods when it should have been.
367 [Francois Pinard http://www.iro.umontreal.ca/~pinard]
369 - Attempting to call a non-function C value crashed the
371 [John J Lee <jjl@pobox.com>]
373 - Functions declared as "except *" were not returning exceptions.
374 [John J Lee <jjl@pobox.com>]
376 - A syntax warning from Plex about assignment to None has
378 [Gordon Williams <g_will@cyberus.ca>]
380 - Public function declaration with empty argument list was
381 producing (void) in .pxi file.
382 [Michael P. Dubner <dubnerm@mindless.com>]
384 - Incorrect error signalling code was being generated in the
385 __hash__ special method of an extension type.
393 - Names of structs, unions and enums in external header
394 files were getting mangled when they shouldn't have been.
395 [Norman Shelley <Norman.Shelley@motorola.com>]
397 - Modified distutils extension so that it will stop before
398 compiling the C file if the Pyrex compiler reports errors.
399 [John J Lee <jjl@pobox.com>]
407 - INCOMPATIBLE CHANGE: The type object of an external extension
408 type is now imported at run time using the Python import
409 mechanism. To make this possible, an 'extern' extension type
410 declaration must DECLARE THE MODULE from which the extension
411 type originates. See the new version of the "Extension Types"
412 documentation for details.
414 This change was made to eliminate the need for Pyrex to be
415 told the C name of the type object, or for the Pyrex module
416 to be linked against the object code providing the type object.
418 You will have to update any existing external extension type
419 declarations that you are using. I'm sorry about that, but it
420 was too hard to support both the old and new ways.
422 - Compile-time importing: A Pyrex module can now import declarations
423 from another Pyrex module using the new 'cimport' statement. See
424 the new section on "Sharing Declarations Between Pyrex Modules" in
429 - An error is reported if you declare a struct, union or
430 extension type using 'cdef' in one place and 'ctypedef'
433 - Struct, union and extension types can only be forward-
434 declared using 'cdef', not 'ctypedef' (otherwise invalid
435 C code would be generated).
437 - The 'global' statement can be used at the module level to
438 declare that a name is a module-level name rather than a
439 builtin. This can be used to access module attributes such
440 as __name__ that would otherwise be assumed to be builtins.
441 [Pat Maupin <pmaupin@speakeasy.net>]
443 - The 'assert' statement now accepts a second argument.
444 [Francois Pinard <pinard@iro.umontreal.ca>]
448 - When using Python 2.3, "True" or "False" could sometimes
449 turn up in generated code instead of "1" or "0".
450 [Adam Hixson <chixson@ou.edu>]
452 - Function return value not always converted to or from a
453 Python object when it should have been.
455 - Certain kinds of error in a function call expression
456 could crash the compiler.
457 ["Edward C. Jones" <edcjones@erols.com>]
459 - Fixed memory leak in functions with * or ** args.
460 [Alexander A Naanou <alex_nanou@pochtamt.ru>]
468 - Calling a function declared as returning an extension
469 type could crash the compiler.
471 - A function call with type errors in the argument list
472 could crash the compiler.
474 - An 'else' clause on a for-from statement could crash
477 - Incorrect casting code was generated when a generic
478 object argument of a special method was declared as
479 being of an extension type.
480 [Phillip J. Eby <pje@telecommunity.com>]
482 - A blank line that couldn't be interpreted wholly as
483 a valid indentation sequence caused a syntax error.
484 In particular, a formfeed character on an otherwise
485 blank line wasn't accepted.
486 [Francois Pinard <pinard@iro.umontreal.ca>]
488 - Parallel assignments were incorrectly optimised.
490 - A bare tuple constructor with an extra comma at the
491 end of a line caused a syntax error.
498 - Attributes of extension types can be exposed to Python
499 code, either read/write or read-only.
501 - Different internal and external names can be specified
504 - None is a compile-time constant, and more efficient code
505 is generated to reference it.
507 - Command line options for specifying directories to
508 search for include files.
512 - More efficient code is generated for access to Python
513 valued C attributes of extension types.
515 - Cosmetic code improvement: Less casting back and forth
516 between extension types and PyObject * when referencing
517 C members of the object struct.
519 - C arguments and variables declared as an extension type
520 can take the value None.
522 - Form feed characters are accepted as whitespace.
524 - Function names in tracebacks are qualified with
525 module name and class name.
529 - A sufficiently complex expression in a boolean context
530 could cause code to be generated twice for the same
533 - Incorrect casting code was generated when passing an
534 extension type to a function expecting a generic Python
537 - Executable statements are now disallowed inside a
538 cdef class block (previously they silently caused
539 crazy C code to be generated).
541 - Tracebacks should now report the correct filename for
542 functions defined in files included with the 'include'
545 - The documentation incorrectly claimed that an extension
546 type can't have a __del__ method. In fact, it can, and
547 it behaves as expected.
555 - Fixed broken distutils extension.
564 - Command line options for reporting version number,
565 requesting a listing file and specifying the name of
566 the generated C file.
568 - An 'include' statement allows inclusion of declarations
569 from other Pyrex source files.
571 - If there are any public declarations, a Pyrex include
572 file is generated (as well as a .h file) containing
573 declarations for them.
575 - Extension types can be declared public, so their C
576 attributes are visible to other Pyrex and C code.
578 - Try-except statements can now have an 'else' clause.
579 [Francois Pinard <pinard@iro.umontreal.ca>]
581 - Multiple simple statements can be placed on one line
582 separated by semicolons.
584 - A suite consisting of a simple statement list can now
585 be placed on the same line after the colon in most
587 [Francois Pinard <pinard@iro.umontreal.ca>]
589 - The automatic coercion of a C string to a C char has
590 been removed (it proved to be too error-prone).
591 Instead, there is a new form of literal for C
592 character constants: c'X'
594 - The __get__ special method (used by descriptor objects)
595 now allows for the possibility of the 2nd or 3rd
596 arguments being NULL. Also the __set__ method has been
597 split into two methods, __set__ and __delete__.
598 [Phillip J. Eby <pje@telecommunity.com>]
602 - Values unpacked into a non-Python destination variable
603 were not being converted before assignment.
604 [Gareth Watts <gareth@omnipotent.net>]
606 - Hex constants greater than 0x7fffffff caused compiler
607 to crash. [Gareth Watts <gareth@omnipotent.net>]
609 - Type slots are no longer statically initialised with
610 extern function pointers, to avoid problems with
611 some compilers. The hack in the distutils extension
612 to work around this by compiling as C++ has been
613 disabled. [Phillip J. Eby <pje@telecommunity.com>]
615 - Fixed several more instances of the error-reporting
616 routine being called with arguments in the wrong
617 order. Hoping I've *finally* got all of them now...
619 - Nested for-from loops used the same control variable.
620 [Sebastien de Menten <sdementen@hotmail.com>]
622 - Fixed some other error message related bugs.
623 [Francois Pinard <pinard@iro.umontreal.ca>]
625 - Assigning to slice didn't work.
626 [Francois Pinard <pinard@iro.umontreal.ca>]
628 - Temp variables were being declared as extension
629 types and then being assigned PyObject *'s. All
630 Python temp vars are now declared as PyObject *.
631 [Francois Pinard <pinard@iro.umontreal.ca>]
638 - Algorithm for allocating temp variables redesigned
639 to fix various errors concerning temp
641 [Mark Rowe <bdash@gmx.net>]
643 - Memory leak occured sometimes when an implicit
644 type test was applied to the result of an
646 [christoph.wiedemann@daimlerchrysler.com]
648 - __set__ method of extension types had wrong
650 [Josh Littlefield <joshl@cisco.com>]
657 - Indexing multi-dimensional C arrays didn't
659 [Gary Dietachmayer <gary.dietachmayer@dsto.defence.gov.au>]
667 - There is now a 'public' declaration for
668 making Pyrex-defined variables and functions
669 available to external C code. A .h file is
670 also generated if there are any public
675 - Defining __len__/__getitem__ methods in an
676 extension class fills sq_length/sq_item slots
677 as well as mp_length/mp_subscript.
678 [Matthias Baas <baas@ira.uka.de>]
680 - The Distutils extension now allows .c files
681 to be incorporated along with .pyx files.
682 [Modification to Distutils extension contributed
683 by Darrell Gallion <dgallion1@yahoo.com>.]
687 - Float literals without a decimal point
689 [Mike Rovner <mike@bindkey.com>]
690 [Peter Lepage <gpl@mail.lns.cornell.edu>]
692 - Compiler crashed if exception value didn't
693 match function return type.
694 [Michael JasonSmith <mpj17@smtphost.canterbury.ac.nz>]
696 - The setup.py file should now install the
697 Lexicon.pickle file in the right place.
698 [Patch supplied by David M. Cooke
699 <cookedm@arbutus.physics.mcmaster.ca>]
701 - Compiler crashed when compiling a C function that
702 returned an extension type.
704 <cookedm@arbutus.physics.mcmaster.ca>]
706 - Anonymous enum types did not have C code
707 suppressed inside an extern-from block.
708 [Matthew Mueller <donut@azstarnet.com>]
716 - Tracebacks now extend into Pyrex function
717 calls and show line numbers in the Pyrex
720 - Syntax for float literals made more lenient
721 (no longer requires digits both before and
723 [Peter Lepage <gpl@mail.lns.cornell.edu>]
725 - Method calls can be made on string literals
727 [pedro_rodriguez@club-internet.fr]
731 - Incorrect refcount code generated when a
732 Python function needing argument type tests
733 had local Python variables.
734 [Matthias Baas <baas@ira.uka.de>]
736 - 'self' parameter of __getitem__ method of
737 extension type had wrong implicit type.
738 [Peter Lepage <gpl@mail.lns.cornell.edu>]
740 - Repaired breakage introduced by trying to
741 allow an empty parameter list to be written
742 as (void). No longer attempting to allow
743 this (too hard to parse correctly).
744 [Peter Lepage <gpl@mail.lns.cornell.edu>]
746 - Found bug in Plex 1.1.2 which was the *real*
747 cause of the two-newlines-in-a-row problem.
748 Removed the Opt(Eol)+Str("\n") hacks in
749 the scanner which were working around this
751 [pedro_rodriguez@club-internet.fr]
753 - __call__ special method of extension types
755 [Peter Lepage <gpl@mail.lns.cornell.edu>]
761 New language features:
763 - For-from loop for iterating over integer
764 ranges, using pure C loop where possible.
768 - sizeof() can now be applied to types as
771 - Improved handling of forward-declared
776 - Two newlines in a row in a triple quoted
777 string caused a parse error on some
779 [Matthias Baas <baas@ira.uka.de>]
781 - Fixed problem with break and continue in
782 the else-clause of a loop.
788 New language features:
790 - C functions can be declared as having an
791 exception return value, which is checked
792 whenever the function is called. If an
793 exception is detected inside a C function
794 for which no exception value is declared,
795 a warning message is printed and the
796 exception is cleared.
798 - Cascaded assignments (i.e. a = b = c
801 - Anonymous enum declarations are allowed,
802 for when you just want to declare constants.
804 - The C types "long long" and "long double"
805 are now understood. Also, "int" is optional
806 after "short" or "long".
810 - A * argument in a function call can now be
811 any sequence, not just a tuple.
813 - A C char* or char[] will be turned into
814 a char by taking its first character if
815 used in a context where a char is required,
816 thus allowing a string literal to be used as
819 - C string * C int or vice versa is now
820 interpreted as Python string replication.
822 - Function arguments are checked for void or
827 - Non-external extension types show up in the
828 module dict once more (this got broken in
831 - A spurious decref has been removed from the
832 runtime support code for the "import" statement.
833 Hopefully this will prevent the crashes some
834 people have been experiencing when importing
836 [Mathew Yeates <mathew@comma.jpl.nasa.gov>]
841 New language features:
843 - "ctypedef struct/union/enum/class" statements
844 added, for use in extern-from blocks when a
845 header file uses a ctypedef to declare a
846 tagless struct, union or enum type.
848 - "pass" allowed in an extern-from block.
850 - "cdef extern from *" for when you don't want
851 to specify an include file name.
853 - Argument names may be omitted in function
854 signatures when they're not needed.
856 - New reserved word NULL for the null C pointer.
858 Compiler enhancements:
860 - Lexicon is now picked in binary format, so
861 startup should be much faster on slower
864 - If Pyrex decides to rebuild the lexicon and
865 then finds that it can't write a pickle file,
866 it now prints a warning and carries on
869 - Chat about hash codes and lexicon pickling
870 now turned off by default except when creating
871 a new lexicon (which ought never happen now
872 unless you change the scanner).
876 - Modified the runtime support code for "import"
877 statements, hopefully fixing problem with using
878 a Pyrex module in conjunction with py2exe.
880 - DL_EXPORT now used in both the prototype and
881 definition of the module init function.
883 - Exception state is now saved and restored around
884 calls to an extension type __dealloc__ method,
885 to avoid screwing up if the object is deallocated
886 while an exception is being propagated.
888 - Making an attribute reference to a method of
889 an extension type caused a compiler crash.
891 - Doc string in new-style class definition
892 caused a run-time error.
894 - Insufficient parentheses were put around C type
897 - Constructors for extension types are now read-only
898 C global variables instead of entries in the
899 module dict. This change was needed to prevent
900 Numeric from blowing up due to touching its
901 typeobject before import_numeric() could be called.
908 - "cdef extern from" statement allows inclusion
909 of C header files to be specified, solving
910 a number of problems including:
911 - Clashes between Pyrex and C declarations,
912 due to "const" and other reasons
913 - Windows-specific features required in
914 function declarations
915 - Helping deal with types such as "size_t"
916 - Helping deal with functions defined as
919 - Access to internals of pre-existing extension
920 types is now possible by placing an extension
921 type declaration inside a "cdef extern from"
926 - Error not reported properly when passing
927 wrong number of args to certain special
928 methods of extension types.
929 [Mitch Chapman <mitchchapman@earthlink.net>]
931 - Compile-time crash when defining an extension
932 type with a __hash__ method.
936 - Hashing of the scanner source file made more
937 platform-independent, making spurious regeneration
938 of the pickle less likely.
946 - Runtime crash when using * or ** args in
947 a method of an extension type fixed.
948 [Matthew Mueller <donut@azstarnet.com>]
950 - Compiler crash when using default argument
951 values in a method of a Python class.
952 [Mike Rovner <mike@bindkey.com>]
956 - Type slots filled with functions from outside
957 the extension module are now initialised dynamically,
958 which should eliminate at least some of the
959 "initialiser is not constant" problems experienced
961 [Marek Baczek <imbaczek@poczta.fm>]
963 - On Windows, __declspec(dllexport) is now used for
964 the module init func declaration (or should be --
965 I haven't tested this).
966 [Marek Baczek <imbaczek@poczta.fm>]
968 - The compiler shouldn't attempt to rewrite the
969 Lexicon.pickle file unless the source has been
970 changed (hashing is used now instead of comparing
971 timestamps). So there should be no problem any more
972 with installing Pyrex read-only.
973 [fawcett@uwindsor.ca]
980 * A void * can be assigned from any other
984 * File names in error messages no longer
985 quoted (this was apparently confusing some
987 [donut@azstarnet.com]
989 * Reference to a struct member which is an
990 array is coerced to a pointer.
991 [donut@azstarnet.com]
993 * Default argument values did not work
994 in methods of an extension type.
995 [donut@azstarnet.com]
997 * Single or double quote characters in a
998 triple-quoted string didn't work.
999 [donut@azstarnet.com]
1001 * Using *args in a function definition
1002 sometimes caused a crash at runtime.
1003 [donut@azstarnet.com]
1005 * A hack is included which tries to make
1006 functions in Python.h which use 'const'
1007 accessible from Pyrex. But it doesn't
1008 work on all platforms. Thinking about a
1014 * Comment containing Pyrex version number
1015 and date/time at top of generated C file.
1024 * The & operator works again.
1025 [matthias.oberlaender@daimlerchrysler.com]
1028 * The & operator had incorrect precedence.
1030 * "SystemError: 'finally' pops bad exception"
1031 under some circumstances when raising an
1032 exception. [baas@ira.uka.de]
1034 * Calling a Python function sometimes leaked
1037 * Crash under some circumstances when casting
1038 a Python object reference to a C pointer type.
1039 [mpj17@cosc.canterbury.ac.nz]
1041 * Crash when redeclaring a function.
1044 * Crash when using a string constant inside
1045 a Python class definition.
1048 * 2-element slice indexing expressions.
1051 * Crash when encountering mixed tabs and
1057 * A wider variety of constant expressions is
1058 now accepted for enum values, array
1068 * More special methods for extension types:
1069 __delitem__, __delslice__, __getattr__,
1070 __setattr__, __delattr__
1072 * Module-level variable of a Python object type
1073 declared with 'cdef' is private to the module, and
1074 held in a C variable instead of the module dict.
1076 * External C functions with variable argument lists
1077 can be declared and called.
1079 * Pyrex-defined Python functions can have default
1080 argument values and * and ** arguments, and can be
1081 called with keyword arguments.
1083 * Pointer-to-function types can be declared.
1085 * Pyrex now supports a declaration syntax that
1088 cdef (int (*)()) foo() # function returning a function ptr
1090 * There is now a ctypedef statement.
1092 * Extension types can now be forward-declared.
1094 * All permutations of (non-Unicode) string literals
1095 and escape codes should work now.
1097 * Hex and octal integer literals.
1099 * Imaginary number literals.
1101 * Docstrings are now supported.
1105 * Type tests are performed when using a Python object
1106 in a context requiring a particular extension type.
1108 * Module-level variable holding the type object
1109 of an extension type had incorrect type.
1116 * Extension types! Yay!
1123 * Fixed error message generation again after a previous
1124 bug was accidentally re-indroduced.
1126 * Removed the declaration of isspace() from the code
1127 generated for print statement support (it's not needed
1128 and was conflicting with the system-supplied one on
1136 * Executable statements are now allowed at the
1137 top level of a module.
1139 * Python class definitions are now supported, with
1140 the following limitations:
1142 - Class definitions are only allowed at the top
1143 level of a module, not inside a control structure
1144 or function or another class definition.
1146 - Assigning a Pyrex-defined Python function to a
1147 class attribute outside of the class definition
1148 will not create a method (because it's not an
1149 interpreted Python function and therefore
1150 won't trigger the bound-method creation magic).
1152 - The __metaclass__ mechanism and the creation of
1153 new-style classes is not (yet) supported.
1155 * Casting between Python and non-Python types is
1160 * Fixed bug preventing for-loops from working.
1166 * I've discovered a flaw in my algorithm for releasing
1167 temp variables. Fixing this properly will require some
1168 extensive reworking; I've put in a hack in the meantime
1169 which should work at the cost of using more temp variables
1170 than are strictly necessary.
1172 * Fixed bug preventing access to builtin names from
1173 working. This should also have fixed the import
1174 statement, but I haven't tested it.
1176 * Fixed some errors in __Pyx_GetExcValue.
1178 * Fixed bug causing boolean expressions to malfunction