| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
| |
legal in Python 2 also. Use fancy REPR macro and the %V format code for
cross-Python compatibility.
|
| |
|
|
|
|
| |
Part of a patch for Python 3 compatibility.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
|
|
|
|
| |
Based on part of a patch from Barry Warsaw.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
|
| |
|
|
|
|
|
| |
This avoids these static types wrongly being deallocated. Python
implements static types as having one initial reference, which is never
meant to be released, but if you get your refcounting wrong they'll be
"deallocated" (causing a crash) during Py_Finalize.
|
| | |
|
| |
|
|
| |
removing all references to the LGPL as a result
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
__dict__ on deallocation.
* Use a fixed-size struct for String (unicode objects are in fact fixed-size)
and store its variant_level that way.
* Don't store Struct, _LongBase, _StrBase variant_level and Struct signature
in a __dict__, but instead have a global dict mapping object IDs to variant
levels, and a global dict mapping Struct IDs to signatures. This is a bit
strange, but easier than correctly freeing the __dict__ (which is stored
at the end of a variable-length struct, so somewhat hard to get at).
* With this change, allocating objects in a loop no longer leaks memory, and
neither does the test case supplied by Luka Renko.
|
| |
|
|
| |
I can't find it)
|
| |
|
|
| |
lines in license statement
|
| |
|
|
| |
no longer exists
|
| |
|
|
| |
UTF8String from the API.
|
| | |
|
|
|
signature, string) into separate translation units
|