| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
"s#" will now return a pointer to the default encoded string data
of the Unicode object instead of a pointer to the raw UTF-16
data.
The latter is still available via PyObject_AsReadBuffer().
|
|
|
|
| |
to the Python style guide, and remove unneeded imports.
|
|
|
|
|
|
|
|
|
|
| |
flag is true, is set to a StringIO object that silently collects all
debug messages. This is triggered by the Node._debug=1 statement at
the top of test_minidom.py. After the tests, we better delete that
StringIO object to avoid wasting memory. We also reset the _debug
flag. (Note that this is an undetectable memory leak, and the memory
doesn't get collected by the cycle-gc either, because it's all
reachable -- it's just useless.)
|
|
|
|
|
|
|
|
|
|
| |
data and default handlers -- a new reference was being passed to
Py_BuildValue() for the "O" format character; using "N" plugs the leak.
Fixed two other (minor) leaks that occurred on various error conditions.
Removed uses of the UNLESS macro, which makes code hard to read, and is
Evil.
|
|
|
|
|
|
|
|
|
| |
Add support for parsing already-opened files. Make sure the parse()
method closes exactly those files that it opens.
Modified by FLD for better conformance to the Python style guide.
This closes SourceForge patch #101512.
|
|
|
|
|
| |
- added experimental "expand" method to match objects
- don't use the buffer interface on unicode strings
|
| |
|
|
|
|
| |
_Py_Dealloc(), is a bad idea (and always was!). So let's drop it.
|
|
|
|
| |
make too big a mess. One actually did not fit on a single page at all!
|
|
|
|
|
| |
support long tables which might break across page boundaries. Otherwise
identical to tableii, tableiii, and tableiv.
|
|
|
|
| |
macros in the argument list position.
|
| |
|
|
|
|
| |
from the FreeBSD code.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Don't ship debug .dll, .pyd or .lib files. Saves space.
Bumped the title to beta 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
%d,i,u,x,X,o formats.
Note a curious extension to the std C rules: x, X and o formatting can never produce
a sign character in C, so the '+' and ' ' flags are meaningless for them. But
unbounded ints *can* produce a sign character under these conversions (no fixed-
width bitstring is wide enough to hold all negative values in 2's-comp form). So
these flags become meaningful in Python when formatting a Python long which is too
big to fit in a C long. This required shuffling around existing code, which hacked
x and X conversions to death when both the '#' and '0' flags were specified: the
hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or
'+' flags too, since signs were always meaningless before for x and X conversions.
Isomorphic shuffling was required in unicodeobject.c.
Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
|
|
|
|
| |
reported by Detlef Lannert <lannert@uni-duesseldorf.de>.
|
|
|
|
| |
reported by Detlef Lannert <lannert@uni-duesseldorf.de>.
|
|
|
|
| |
<lannert@uni-duesseldorf.de>.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
once if all the temporary files are available from building
a DVI file. This can avoid two runs of pdflatex.
|
|
|
|
| |
not as a user-controlled parameter.
|
| |
|
|
|
|
| |
sub-modules).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
resource files. The gist of the patch is to treat ".rc" and ".mc"
files as source files; ".mc" files are compiled to ".rc" and then
".res", and ".rc" files are compiled to ".res". Wish I knew what
all these things stood for...
|
|
|
|
|
| |
recent changes to ntpath.py and posixmodule.c. Thanks to Guido for
pointing out the inconsistency!
|
|
|
|
| |
create a unix-style sys.argv.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
which implements the automatic conversion from Unicode to a string
object using the default encoding.
The new API is then put to use to have eval() and exec accept
Unicode objects as code parameter. This closes bugs #110924
and #113890.
As side-effect, the traditional C APIs PyString_Size() and
PyString_AsString() will also accept Unicode objects as
parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The cause was that the replace code necessarily used a PCRE internal
function to to template expansion.
The fix changes the code to use an SRE internal if SRE is used, and a
PCRE internal if SRE is used; in a way that should work with 1.5.2.
The solution can be sped up tremendously under the assumption that the
choice between sre and pre is not changed during the execution of the
program; especially replace-all will be slow.
But I'll leave that to someone else.
|
|
|
|
| |
"a:b", not "a:/b". Similar change was made to posixmodule.c earlier.
|
|
|
|
|
| |
Added new test for new __contains__ method.
Extensive editing to get rid of asserts.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Document the __contains__() method.
(Patch slightly modified by FLD.)
This closes SourceForge patch #101387.
|
| |
|
| |
|
|
|
|
| |
Closes Bug #114775.
|
|
|
|
|
| |
off an existing anchor tag if available (I think it
always is, but am not completely sure).
|
|
|
|
| |
discussion on python-dev.
|
|
|
|
| |
zip(None) tests. Found by Finn Bock a while ago.
|
| |
|
| |
|