Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | SF patch 1631942 by Collin Winter: | Guido van Rossum | 2007-01-10 | 1 | -3/+3 |
| | | | | | | (a) "except E, V" -> "except E as V" (b) V is now limited to a simple name (local variable) (c) V is now deleted at the end of the except block | ||||
* | Merge p3yk branch with the trunk up to revision 45595. This breaks a fair | Thomas Wouters | 2006-04-21 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | number of tests, all because of the codecs/_multibytecodecs issue described here (it's not a Py3K issue, just something Py3K discovers): http://mail.python.org/pipermail/python-dev/2006-April/064051.html Hye-Shik Chang promised to look for a fix, so no need to fix it here. The tests that are expected to break are: test_codecencodings_cn test_codecencodings_hk test_codecencodings_jp test_codecencodings_kr test_codecencodings_tw test_codecs test_multibytecodec This merge fixes an actual test failure (test_weakref) in this branch, though, so I believe merging is the right thing to do anyway. | ||||
* | Whitespace normalization. | Tim Peters | 2006-02-11 | 1 | -1/+1 |
| | |||||
* | One more mod for support of C++ classes. | Jack Jansen | 2006-02-10 | 1 | -1/+1 |
| | |||||
* | For overriding C++ methods we also need to know whether a parameter | Jack Jansen | 2006-02-10 | 4 | -22/+45 |
| | | | | is an output parameter or not. Added support for that. | ||||
* | Fixed an oversight and a misunderstanding of PEP253: | Jack Jansen | 2006-02-07 | 1 | -2/+20 |
| | | | | | | | | | - Call tp_dealloc on the static baseclass, not dynamic (which leads to infinite loops with more than one baseclass) - Call tp_new and tp_init on baseclasses (overridable) -This line, and those below, will be ignored-- M bgen/bgenObjectDefinition.py | ||||
* | Whitespace normalization. | Tim Peters | 2005-12-25 | 2 | -8/+7 |
| | |||||
* | Enable optional "const" argument to _New routines. | Jack Jansen | 2005-11-21 | 1 | -2/+3 |
| | |||||
* | Added a class MallocHeapOutputBufferType for types that are passed | Jack Jansen | 2005-09-20 | 1 | -0/+29 |
| | | | | as &buffer, &size and allocated by the called function. | ||||
* | Added support for (optionally) bracketing calls with | Jack Jansen | 2005-09-20 | 1 | -0/+8 |
| | | | | Py_{BEGIN,END}_ALLOW_THREADS. | ||||
* | Whitespace normalization. | Tim Peters | 2005-07-17 | 1 | -5/+5 |
| | |||||
* | Added an option to the scanner to generated marked-up HTML from the input | Jack Jansen | 2005-07-17 | 1 | -6/+161 |
| | | | | | file. This should make it a lot easier (I hope) to get the regular expressions right. | ||||
* | Whitespace normalization. | Tim Peters | 2005-07-10 | 7 | -29/+29 |
| | |||||
* | Handle argref so it can be overridden more easily in a subclass. | Jack Jansen | 2005-07-08 | 1 | -1/+1 |
| | |||||
* | Allow for (optional) const declaration. | Jack Jansen | 2005-07-05 | 4 | -20/+43 |
| | |||||
* | Factored out the code that creates argument lists and formats for PyArg_Parse | Jack Jansen | 2005-07-03 | 1 | -19/+26 |
| | | | | and Py_BuildValue. | ||||
* | Sigh, changed the argument names in the tp_init function: to make them be | Jack Jansen | 2005-07-03 | 1 | -7/+7 |
| | | | | | more in line with other methods "self" and "args" had to be renamed "_self" and "_args". Did "_kwds" too, for consistency. | ||||
* | Added methods mkvaluePreCheck and getargsPreCheck, which are called (for | Jack Jansen | 2005-07-01 | 3 | -1/+22 |
| | | | | each variable) before calling Py_BuildValue and PyArg_Parse. | ||||
* | More factorization: added a method getrvforcallit(). This allows a C++ | Jack Jansen | 2005-06-30 | 1 | -8/+8 |
| | | | | | bridge to combine declaration and assignment to the return value temporary, allowing us to handle functions returning const values. | ||||
* | Added optional suppport for storage modifiers (virtual/static/inline/etc) | Jack Jansen | 2005-06-29 | 3 | -2/+20 |
| | | | | and conditional generation of objects and methods. | ||||
* | More factorization to help C++ support. | Jack Jansen | 2005-06-28 | 6 | -18/+51 |
| | |||||
* | Normalize whitespace to avoid offending Bug Day volunteers. | Tim Peters | 2005-06-24 | 5 | -13/+13 |
| | |||||
* | Added a missing newline Output(). | Jack Jansen | 2005-06-23 | 1 | -0/+1 |
| | |||||
* | Revamped type declaration so the basic routines return a list of strings. | Jack Jansen | 2005-06-22 | 6 | -44/+47 |
| | | | | | | This allows variables to be declared as formal arguments. The bgenType.declare method now simply outputs all declarations on separate lines ending in semicolons. | ||||
* | Added support for optional modifiers to functions/methods (such as C++ const, | Jack Jansen | 2005-06-21 | 2 | -6/+19 |
| | | | | static for methods, inline, etc). | ||||
* | More factorization. | Jack Jansen | 2005-06-16 | 2 | -3/+14 |
| | |||||
* | More tweaks for C++ support. Still doesn't seem to break anything:-) | Jack Jansen | 2005-06-14 | 3 | -10/+47 |
| | |||||
* | Minor tweaks, to allow some (out-of-tree, until successful) tinkering | Jack Jansen | 2005-06-10 | 2 | -11/+15 |
| | | | | with C++. | ||||
* | Whitespace normalization, via reindent.py. | Tim Peters | 2004-07-18 | 10 | -129/+126 |
| | |||||
* | Call the correct tp_dealloc. | Jack Jansen | 2004-07-15 | 1 | -2/+2 |
| | |||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -32/+32 |
| | | | | From SF patch #852334. | ||||
* | Got rid of macglue.h, replacing it by pymactoolbox.h where relevant. | Jack Jansen | 2003-11-20 | 1 | -13/+0 |
| | | | | Cleaned up various things in the toolbox modules. | ||||
* | Fix a bunch of typos in documentation, docstrings and comments. | Walter Dörwald | 2003-10-20 | 1 | -1/+1 |
| | | | | (From SF patch #810751) | ||||
* | Updated the doc strings to refer to PyArg_Parse and Py_BuildValue in stead | Jack Jansen | 2003-01-24 | 1 | -4/+7 |
| | | | | of getargs() and mkvalue(). | ||||
* | Sigh, due to sloppiness on my part bgen has become pretty mixed up wrt. tabs | Jack Jansen | 2003-01-19 | 13 | -2168/+2168 |
| | | | | and spaces. Detabbed the lot. | ||||
* | Oops, old-style types don't have a tp_free slot. Call PyObject_Free | Jack Jansen | 2002-12-23 | 1 | -2/+6 |
| | | | | directly in that case. | ||||
* | Always use self->ob_type->tp_free when freeing an object. | Jack Jansen | 2002-12-19 | 1 | -1/+1 |
| | |||||
* | Always output an inheritance-aware version of the xxxx_Check() macro. Also | Jack Jansen | 2002-12-19 | 1 | -5/+1 |
| | | | | fixed that macro to actually work:-) | ||||
* | Added an optional longname argument to Module, which gives the full, | Jack Jansen | 2002-12-17 | 1 | -2/+7 |
| | | | | | | externally visible name of the module. This is so that type names can be shown as "Carbon.File.FSSpec" even though the real name of the module is "_File". | ||||
* | Fixed typo. | Jack Jansen | 2002-12-05 | 1 | -1/+1 |
| | |||||
* | Added PEP253 support. | Jack Jansen | 2002-12-03 | 1 | -11/+114 |
| | |||||
* | Fixed two silly bugs in the PEP252 support code, added an assert | Jack Jansen | 2002-11-28 | 1 | -3/+10 |
| | | | | that basechain isn't set, and made the output a bit prettier. | ||||
* | Added a class PEP252Mixin. By adding this to your ObjectDefinition you | Jack Jansen | 2002-11-25 | 1 | -2/+127 |
| | | | | | | | | | | | get PEP-252 style objects in stead of old-fashioned objects. In stead of defining a GetattrHook you declare a class variable getsetlist, which contains tuples (name, getcode, setcode, docstring). Only lightly tested: the code still works if you don't inherit PEP252Mixin and the code works if you inherit it but don't define any getters or setters. Also, this will not work together with the "poor mans inheritance" offered by method chains, so the CF module will remain with old-style objects until PEP253 is supported too. | ||||
* | Apply diff2.txt from SF patch http://www.python.org/sf/572113 | Walter Dörwald | 2002-09-11 | 3 | -23/+19 |
| | | | | | | | | (with one small bugfix in bgen/bgen/scantools.py) This replaces string module functions with string methods for the stuff in the Tools directory. Several uses of string.letters etc. are still remaining. | ||||
* | Moved CoreFoundation type support to bgen/macsupport. | Jack Jansen | 2002-08-22 | 1 | -0/+11 |
| | |||||
* | iUse PyDoc_STR() around docstrings. | Jack Jansen | 2002-08-16 | 1 | -1/+1 |
| | |||||
* | Be a lot less verbose by default. | Jack Jansen | 2002-08-05 | 2 | -6/+7 |
| | |||||
* | Fixed to run better in unix-Python, and to cater for bgenlocations | Jack Jansen | 2002-08-05 | 1 | -3/+7 |
| | | | | possibly being missing. | ||||
* | Moved bgenlocations to the Mac/Lib directory. Not perfect, but better than | Jack Jansen | 2002-08-05 | 1 | -13/+0 |
| | | | | | | | where it was: it is really a configuration file, not a normal module. By moving it into Mac/Lib we can now also store the location of bgen itself in there, which is needed because bgen isn't installed. | ||||
* | Specify pathnames in a way that works on both OS9 and OSX. | Jack Jansen | 2002-08-04 | 1 | -3/+3 |
| | | | | You'll still have to manually edit it, though... |