Mercurial > cpython-lru_cache-weakref
diff Python/getargs.c @ 12074:65f35b73e350 legacy-trunk
Marc-Andre Lemburg:
The attached patch set includes a workaround to get Python with
Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause
is a bug in the BSDI wchar.h header file) and Python interfaces
for the MBCS codec donated by Mark Hammond.
Also included are some minor corrections w/r to the docs of
the new "es" and "es#" parser markers (use PyMem_Free() instead
of free(); thanks to Mark Hammond for finding these).
The unicodedata tests are now in a separate file
(test_unicodedata.py) to avoid problems if the module cannot
be found.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 28 Mar 2000 20:29:59 +0000 |
| parents | b981a7a9b738 |
| children | 13a16793bb1c |
line wrap: on
line diff
--- a/Python/getargs.c Tue Mar 28 20:20:53 2000 +0000 +++ b/Python/getargs.c Tue Mar 28 20:29:59 2000 +0000 @@ -704,7 +704,7 @@ the data copied into it; *buffer is updated to point to the new buffer; the caller is responsible for - free()ing it after usage + PyMem_Free()ing it after usage - if *buffer is not NULL, the data is copied to *buffer; *buffer_len @@ -752,7 +752,7 @@ is allocated and the data copied into it; *buffer is updated to point to the new buffer; the caller - is responsible for free()ing it + is responsible for PyMem_Free()ing it after usage */
