Georg Brandl
9d548374e4
Add two entries about how to actually clear a list.
2006-04-13 08:04:56 +00:00
Georg Brandl
7f573f7319
Add a test for Py_ssize_t. Correct typo in getargs.c.
2006-04-13 07:59:30 +00:00
Martin v. Löwis
b1ed7fac12
Replace INT_MAX with PY_SSIZE_T_MAX.
2006-04-13 07:52:27 +00:00
Martin v. Löwis
2a19074a9c
Replace INT_MAX with PY_SSIZE_T_MAX where string length
...
are concerned.
2006-04-13 07:37:25 +00:00
Martin v. Löwis
2308915b2f
Replace INT_MAX with PY_SSIZE_T_MAX.
2006-04-13 07:34:09 +00:00
Georg Brandl
635af32bdf
Add PY_SSIZE_T_MIN/MAX to _testcapi.
2006-04-13 07:29:18 +00:00
Martin v. Löwis
bb30011880
Stop claiming that Py_Finalize releases all memory.
...
Fixes part of #1445210 .
2006-04-13 07:28:29 +00:00
Martin v. Löwis
f15da6995b
Remove another INT_MAX limitation
2006-04-13 07:24:50 +00:00
Martin v. Löwis
8ce358f5fe
Replace most INT_MAX with PY_SSIZE_T_MAX.
2006-04-13 07:22:51 +00:00
Anthony Baxter
7cbc0f5524
C++ compiler changes. casts, rename variables with reserved names.
2006-04-13 07:19:01 +00:00
Martin v. Löwis
3c6e4188ed
Support NFD of very long strings.
2006-04-13 06:36:31 +00:00
Neal Norwitz
07c6071729
test_compile can be really long if we are using -u compiler.
...
This may be causing the debian sparc buildbot to fail.
Print a little message to let the user ^w buildbot know it's still thinking.
We may want to adjust the time period which is currently 5 minutes.
Will backport.
2006-04-13 06:34:59 +00:00
Martin v. Löwis
412fb67368
Change more ints to Py_ssize_t.
2006-04-13 06:34:32 +00:00
Martin v. Löwis
80d2e591d5
Revert 34153: Py_UNICODE should not be signed.
2006-04-13 06:06:08 +00:00
Anthony Baxter
1ad9ec276e
whoops. missed one in an auto-generated file. another extern "C" {} for C++ compiler compatibility
2006-04-13 04:49:25 +00:00
Neal Norwitz
0cfa58c43a
Remove tests that no longer leak. There is still one leaking generator test
2006-04-13 04:35:36 +00:00
Neal Norwitz
5f5a69ba9d
Fix {} mismatch spotted by George Yoshida.
2006-04-13 03:41:04 +00:00
Tim Peters
ba8194bd2a
tty isn't supported on all boxes.
2006-04-13 03:09:40 +00:00
Andrew M. Kuchling
b66871f1c0
Fix typography of Martin's name
2006-04-13 02:10:16 +00:00
Anthony Baxter
ac6bd46d5c
spread the extern "C" { } magic pixie dust around. Python itself builds now
...
using a C++ compiler. Still lots and lots of errors in the modules built by
setup.py, and a bunch of warnings from g++ in the core.
2006-04-13 02:06:09 +00:00
Andrew M. Kuchling
28c5f1fa16
Write some ctypes examples
2006-04-13 02:04:42 +00:00
Skip Montanaro
288a5be5ad
If compiling with g++ don't use -Wstrict-prototpes.
2006-04-13 02:00:56 +00:00
Anthony Baxter
57fdcbc60f
reverting r45321: Patch #860326 : traceback.format_exception_only() now
...
prepends the exception's module name to non-builtin exceptions, like
the interpreter itself does.
broke a number of doctests. should be discussed before checking in (see
discussion on python-dev).
2006-04-13 01:34:33 +00:00
Anthony Baxter
d691f1a35f
casting nastiness to make C++ compiler happy
2006-04-13 01:23:28 +00:00
Anthony Baxter
3109d62da6
Add a cast to make code compile with a C++ compiler.
2006-04-13 01:07:27 +00:00
Georg Brandl
24c274f5dc
Patch #860326 : traceback.format_exception_only() now prepends the
...
exception's module name to non-builtin exceptions, like the interpreter
itself does.
2006-04-12 21:14:09 +00:00
Gregory P. Smith
64029986bc
Fixes bug #1117761
...
bsddb.*open() methods cachesize parameter wouldn't work (raised an
internal bsddb.db exception when it was given). The set_cachesize
call needed to be moved from the DB object to the DBEnv since the env
was introduced to allow for threading.
(will backport to 2.4)
2006-04-12 20:35:02 +00:00
Gregory P. Smith
14c6b4626f
Closes bug #1149413
...
Using None for a filename with the 'n' flag when calling bsddb.btopen
would cause an error while checking if the file None existed. error
not likely to be seen as anyone using None for a filename would likely
use the 'c' flag in the first place.
2006-04-12 20:16:56 +00:00
Thomas Heller
55d031ef23
Fix for a bug found by Armin Rigo, plus test.
...
https://sourceforge.net/tracker/?func=detail&atid=532154&aid=1467852&group_id=71702
2006-04-12 19:07:36 +00:00
Phillip J. Eby
8920bf24f8
Don't set gi_frame to Py_None, use NULL instead, eliminating some insane
...
pointer dereferences.
2006-04-12 19:07:15 +00:00
Andrew M. Kuchling
5f445bf3df
Mention ASCII as default encoding; update TODO list; use PyCF_ONLY_AST by MvL's suggestion; typographical tidying of MvL's name
2006-04-12 18:54:00 +00:00
Andrew M. Kuchling
8872dbff99
Bump version number; rearrange introduction a bit
2006-04-12 18:52:09 +00:00
Armin Rigo
e170937af6
Ignore the references to the dummy objects used as deleted keys
...
in dicts and sets when computing the total number of references.
2006-04-12 17:06:05 +00:00
Georg Brandl
314fce92dd
Patch #1468808 : don't complain if Tkinter is already deleted at the time Font.__del__ is run.
2006-04-12 15:28:49 +00:00
Andrew M. Kuchling
6a67e4ead4
Add PEP 243 section
2006-04-12 13:03:35 +00:00
Georg Brandl
f69a24c6ac
Update test_sundry. Many modules have now tests, but
...
e.g. SimpleXMLRPCServer wasn't in here yet.
2006-04-12 12:44:36 +00:00
Andrew M. Kuchling
f7c6290ca4
Note C API incompatibilities
2006-04-12 12:27:50 +00:00
Andrew M. Kuchling
4e86195a99
Mention access to ASTs
2006-04-12 12:16:31 +00:00
Anthony Baxter
e29002ccb0
Bug #1469163 : SimpleXMLRPCServer unconditionally attempted to import fcntl.
...
Wrapped in a try/except.
2006-04-12 12:07:31 +00:00
Armin Rigo
2db15505be
Off-by-one buffer overflow error.
2006-04-12 11:59:26 +00:00
Walter Dörwald
bc96609555
Patch #1463288 : use a context manager to temporarily switch locales.
...
Add tests for the output of the TextCalendar and HTMLCalendar classes.
2006-04-12 10:09:16 +00:00
Neal Norwitz
017749c33d
wrap docstrings so they are less than 80 columns. add spaces after commas.
2006-04-12 06:56:56 +00:00
Tim Peters
a5a80cb4a4
gen_throw(): The caller doesn't own PyArg_ParseTuple()
...
"O" arguments, so must not decref them. This accounts
for why running test_contextlib.test_main() in a loop
eventually tried to deallocate Py_None.
2006-04-12 06:44:36 +00:00
Neal Norwitz
ee6d23e500
Update comments and the skip list, maybe some of these tests don't
...
report failures, we'll see.
Skip certain hopeless tests: compiler and logging.
compiler will likely always show varying leaks since it doesn't work
on a defined set of modules unless -u compiler is specified. But that
takes forever (we only run with -u network currently).
logging causes hangs when running with -R.
2006-04-12 05:56:00 +00:00
Neal Norwitz
d3a9162e5e
Add another little test to make sure we roundtrip multiple list comp ifs ok.
...
Add tests for generator expressions too.
2006-04-12 05:27:46 +00:00
Neal Norwitz
4b194fabdf
Update for new grammar
2006-04-12 05:24:39 +00:00
Anthony Baxter
623acf646e
put in a reference to PEP 306 in a comment at the top
2006-04-12 05:16:30 +00:00
Neal Norwitz
1bd7127fec
Get rid of some warnings on Mac
2006-04-12 04:56:35 +00:00
Anthony Baxter
97300387ec
avoid C++ name mangling for the _Py.*SizeT functions
2006-04-12 04:38:54 +00:00
Anthony Baxter
d6495b5944
remove forward declarations. No constructors to move for these files. Makes
...
code work with C++ compilers.
2006-04-12 04:29:01 +00:00