Thomas Wouters
19bf33bc7a
Make itertools.tee and its internal teedataobject participate in GC. This
...
alone does not solve the leak in test_generators, unfortunately, but it is
part of test_generators' problem and it does solve other cycles.
2006-03-27 21:02:13 +00:00
Phillip J. Eby
5d0f4c6193
Document the PEP 343 context manager protocol methods.
2006-03-27 19:59:34 +00:00
Martin v. Löwis
06b3ddea23
Drop information about 2.4 DLLs.
2006-03-27 16:35:13 +00:00
Martin v. Löwis
0a4e98bf13
Allow supression of subwcrev.exe invocation on a per-working-copy basis.
2006-03-27 16:30:41 +00:00
Walter Dörwald
cff22083f1
Whitespace for generated code.
2006-03-27 15:11:56 +00:00
Anthony Baxter
07508834e0
Tagging for release r25a0
2006-03-27 13:37:36 +00:00
Anthony Baxter
285965a0c9
oops. lets try that one more time
2006-03-27 13:35:34 +00:00
Anthony Baxter
06a4ed5540
Tagging for release r25a0
2006-03-27 12:12:48 +00:00
Anthony Baxter
a0b1a743e6
Tagging for release svn+ssh://pythondev@svn.python.org/python//tags/r25a0
2006-03-27 11:56:58 +00:00
Anthony Baxter
deee50910b
more testing.
2006-03-27 11:53:34 +00:00
Martin v. Löwis
1fe4f01fe4
Add product ids for 2.5.
2006-03-27 09:51:16 +00:00
Walter Dörwald
a8da934069
Whitespace.
2006-03-27 09:02:04 +00:00
Neal Norwitz
33b730e33c
Fix SF bug #1458903 with AST compiler.
...
def foo((x)): was getting recognized as requiring tuple unpacking
which is not correct.
Add tests for this case and the proper way to unpack a tuple of one:
def foo((x,)):
test_inpsect was incorrect before. I'm not sure why it was passing,
but that has been corrected with a test for both functions above.
This means the test (and therefore inspect.getargspec()) are broken in 2.4.
2006-03-27 08:58:23 +00:00
Hye-Shik Chang
6c40359795
Find a source file in srcdir to allow to build outside of srcdir.
2006-03-27 08:43:11 +00:00
Hye-Shik Chang
b9c03e999f
Fix reference leaks introduced by the recent incremental codec
...
changes.
2006-03-27 08:24:54 +00:00
Walter Dörwald
40108c97fb
Mention patch id for the CJK part of the patch and
...
the name of the two new C functions.
2006-03-27 08:15:44 +00:00
Anthony Baxter
17d25ca76d
tagging for release 2.5a0
2006-03-27 01:11:38 +00:00
Anthony Baxter
f096615fcb
updating snapshot.
2006-03-27 01:11:07 +00:00
Tim Peters
c9d78aa470
Years in the making.
...
objimpl.h, pymem.h: Stop mapping PyMem_{Del, DEL} and PyMem_{Free, FREE}
to PyObject_{Free, FREE} in a release build. They're aliases for the
system free() now.
_subprocess.c/sp_handle_dealloc(): Since the memory was originally
obtained via PyObject_NEW, it must be released via PyObject_FREE (or
_DEL).
pythonrun.c, tokenizer.c, parsermodule.c: I lost count of the number of
PyObject vs PyMem mismatches in these -- it's like the specific
function called at each site was picked at random, sometimes even with
memory obtained via PyMem getting released via PyObject. Changed most
to use PyObject uniformly, since the blobs allocated are predictably
small in most cases, and obmalloc is generally faster than system
mallocs then.
If extension modules in real life prove as sloppy as Python's front
end, we'll have to revert the objimpl.h + pymem.h part of this patch.
Note that no problems will show up in a debug build (all calls still go
thru obmalloc then). Problems will show up only in a release build, most
likely segfaults.
2006-03-26 23:27:58 +00:00
Georg Brandl
1c168d8eeb
Bug #1457264 : parse http://host?query correctly in urllib
2006-03-26 20:59:38 +00:00
Martin v. Löwis
04855cc100
Fix typo.
2006-03-26 16:40:47 +00:00
Martin v. Löwis
6da56f9428
Patch from Aldo Cortesi: expected skips for OpenBSD.
2006-03-26 10:02:34 +00:00
Martin v. Löwis
c667d052e5
Provide more debug output, to diagnose OpenBSD test failures.
2006-03-26 09:50:11 +00:00
Hye-Shik Chang
04904faac5
Utilize %zd for Py_ssize_t formatting instead of casting to long.
2006-03-26 06:53:37 +00:00
Hye-Shik Chang
9f4b632212
Allow long objects as a position value of error callbacks returned.
2006-03-26 06:21:34 +00:00
Neal Norwitz
7545a6bac2
regsub is gone, nothing to ignore
2006-03-26 04:59:27 +00:00
Neal Norwitz
2c85d826d8
Try to handle sys.getfilesystemencoding() returning None.
...
ascii seems like the safest bet that it will exist. I wonder if utf-8
would be a better choice? This should get test_fileinput passing on OpenBSD.
2006-03-26 03:11:57 +00:00
Raymond Hettinger
334b5b20f2
Tighten an overbroad and misleading assertion.
...
(Reported by Jim Jewett.)
2006-03-26 03:11:29 +00:00
Hye-Shik Chang
e2ac4abd01
Patch #1443155 : Add the incremental codecs support for CJK codecs.
...
(reviewed by Walter Dörwald)
2006-03-26 02:34:59 +00:00
Raymond Hettinger
a531e5b84c
Guarantee evaluation order for izip(). Document its creative uses and its limitations.
2006-03-26 01:41:25 +00:00
Neal Norwitz
1818ed705b
Try to fix broken compile on openbsd.
2006-03-26 00:29:48 +00:00
Neal Norwitz
7fbd6916b6
Get rid of warnings on some platforms by using %u for a size_t.
2006-03-25 23:55:39 +00:00
Raymond Hettinger
4d65af0807
Add section headers and examples.
2006-03-25 23:26:43 +00:00
Neal Norwitz
6a91e94e66
SF bug # 1457358 and patch # 1458419, floor division not documented. Patch by Andy.
...
Will backport.
2006-03-25 21:25:30 +00:00
Skip Montanaro
4ec3c26952
Found this in an old email message from Hartmut Goebel.
2006-03-25 14:12:03 +00:00
Georg Brandl
baf05b7e09
fix typo
2006-03-25 13:12:56 +00:00
Raymond Hettinger
c4e94b90a8
Don't decrement below zero. And add more tests.
2006-03-25 12:15:04 +00:00
Phillip J. Eby
ccc7bb4ef2
More extensive comment on __exit__ handling, per Guido's request.
2006-03-25 04:32:12 +00:00
Tim Peters
e33901eb2b
Whitespace normalization.
2006-03-25 01:50:43 +00:00
Phillip J. Eby
1a9fac0937
Yield is now allowed in try-finally, so update docs accordingly
2006-03-25 00:46:43 +00:00
Phillip J. Eby
6edd258608
Fix a problem with @contextmanager not detecting a broken generator
...
that yields after a throw(). Make @contextmanager not reraise
exceptions, but return a false value in that case instead. Add test
cases for both behaviors.
2006-03-25 00:28:24 +00:00
Phillip J. Eby
bee0712214
Support throw() of string exceptions.
2006-03-25 00:05:50 +00:00
Raymond Hettinger
43b00da219
Revert previous change. Wasn't ready yet.
2006-03-24 23:55:32 +00:00
Raymond Hettinger
e751c86dcb
Add more tests
2006-03-24 23:47:53 +00:00
Phillip J. Eby
4a26633e0e
Revert r42719, because the isinstance() check wasn't redundant; formatting a
...
string exception was causing a TypeError.
2006-03-24 22:10:54 +00:00
Raymond Hettinger
fd3fcf0b35
SF Patch #1455676 : Simplify using Queues with daemon consumer threads
...
Adds join() and task_done() methods to track when all enqueued tasks have
been gotten and fully processed by daemon consumer threads.
2006-03-24 20:43:29 +00:00
Nick Coghlan
98bcb70815
Add documentation for PEP 338
2006-03-24 13:36:33 +00:00
Nick Coghlan
c841bb6b63
run_module shouldn't hold the import lock when running a script
2006-03-24 13:05:53 +00:00
Neal Norwitz
cdb7948f97
Use absolute import.
2006-03-24 08:58:38 +00:00
Martin v. Löwis
b95caff56c
Clarify cases when waitpid might not return self.pid.
2006-03-24 08:26:26 +00:00