]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Tim Peters [Sat, 1 Apr 2006 00:26:53 +0000 (00:26 +0000)]
Another crack at bug #
1460340 : make random.sample(dict)
work, this time by ugly brute force.
Thomas Wouters [Fri, 31 Mar 2006 22:38:19 +0000 (22:38 +0000)]
In the fdopen(fd, 'a') case on UNIX, don't try to set fd's flags to -1 if
fcntl() and fdopen() both fail. Will backport.
Georg Brandl [Fri, 31 Mar 2006 21:12:32 +0000 (21:12 +0000)]
Make test_socket_ssl finally pass on WIn
Georg Brandl [Fri, 31 Mar 2006 20:31:02 +0000 (20:31 +0000)]
Bug #
1177964 : make file iterator raise MemoryError on too big files
Georg Brandl [Fri, 31 Mar 2006 20:27:22 +0000 (20:27 +0000)]
Add guards against fcntl() not being available on Windows.
Georg Brandl [Fri, 31 Mar 2006 20:02:40 +0000 (20:02 +0000)]
Update version number to 2.5
Georg Brandl [Fri, 31 Mar 2006 20:00:11 +0000 (20:00 +0000)]
bug #
1461855 : make os.fdopen() add the O_APPEND flag if using "a" mode.
glibc, for example, does this already on its own, but it seems that
the solaris libc doesn't. This leads to Python code being able to over-
write file contents even though having specified "a" mode.
Georg Brandl [Fri, 31 Mar 2006 19:34:13 +0000 (19:34 +0000)]
bug #
1257988 : don't bail out on gethostbyname(gethostname()) failure
Georg Brandl [Fri, 31 Mar 2006 19:20:13 +0000 (19:20 +0000)]
bug #
1444104 : add note about fdopen() to os.open().
Georg Brandl [Fri, 31 Mar 2006 19:09:56 +0000 (19:09 +0000)]
Disable test_socket_ssl timeout test on Windows.
Georg Brandl [Fri, 31 Mar 2006 18:54:53 +0000 (18:54 +0000)]
Patch #
1460496 : round() now accepts keyword arguments.
Georg Brandl [Fri, 31 Mar 2006 18:42:16 +0000 (18:42 +0000)]
Bug #
1445068 : getpass.getpass() can now be given an explicit stream
argument to specify where to write the prompt.
Georg Brandl [Fri, 31 Mar 2006 18:25:44 +0000 (18:25 +0000)]
Patch #
1462313 , bug #
1443328 : the pickle modules now can handle classes
that have __private names in their __slots__.
Georg Brandl [Fri, 31 Mar 2006 18:01:16 +0000 (18:01 +0000)]
Patch #
1380952 : fix SSL objects timing out on consecutive read()s
Georg Brandl [Fri, 31 Mar 2006 17:18:06 +0000 (17:18 +0000)]
Bug #
1250170 , Patch #
1462230 : handle socket.gethostname()
failures gracefully
Jeremy Hylton [Fri, 31 Mar 2006 16:41:22 +0000 (16:41 +0000)]
Expand comments.
Explicitly clear all elements from arena->a_objects and remove
assert() that refcount is 1. It's possible for a program to get a
reference to the list via sys.getobjects() or via gc functions.
Martin v. Löwis [Fri, 31 Mar 2006 16:19:18 +0000 (16:19 +0000)]
Add 2.5 libraries.
Georg Brandl [Fri, 31 Mar 2006 16:12:34 +0000 (16:12 +0000)]
typos
Georg Brandl [Fri, 31 Mar 2006 15:59:13 +0000 (15:59 +0000)]
traceback now shows error position for all SyntaxError subclasses,
e.g. IndentationError. (bug #
1447885 )
Georg Brandl [Fri, 31 Mar 2006 15:38:44 +0000 (15:38 +0000)]
Complete markup.
Thomas Wouters [Fri, 31 Mar 2006 15:31:43 +0000 (15:31 +0000)]
Fix the reference leak in test_generators, by explicitly breaking the cycle
we are about to leave behind. An example of the cause of this leak can be
found in the leakers directory, in case we ever want to tackle the
underlying problem.
Walter Dörwald [Fri, 31 Mar 2006 15:26:22 +0000 (15:26 +0000)]
Bug #947906: An object oriented interface has been added to the calendar
module. It's possible to generate HTML calendar now and the module can be
called as a script (e.g. via ``python -mcalendar``).
Martin v. Löwis [Fri, 31 Mar 2006 15:21:36 +0000 (15:21 +0000)]
Tagging for release r25a0
Martin v. Löwis [Fri, 31 Mar 2006 15:20:56 +0000 (15:20 +0000)]
Remove tag, to recreate it right away.
Georg Brandl [Fri, 31 Mar 2006 15:12:16 +0000 (15:12 +0000)]
Add index entries for new-style/old-style class.
Georg Brandl [Fri, 31 Mar 2006 15:07:25 +0000 (15:07 +0000)]
object() is a function, not a base class.
Georg Brandl [Fri, 31 Mar 2006 14:35:10 +0000 (14:35 +0000)]
Bug #
1461610 : xmlrpclib has no function "binary".
Walter Dörwald [Fri, 31 Mar 2006 11:03:57 +0000 (11:03 +0000)]
Fix typos.
Walter Dörwald [Fri, 31 Mar 2006 10:13:10 +0000 (10:13 +0000)]
Don't add multiple empty lines at the end of the codec. With this a
regenerated codec should survive reindent.py unchanged.
Walter Dörwald [Fri, 31 Mar 2006 09:15:29 +0000 (09:15 +0000)]
Clarify what the final argument does in
IncrementalDecoder.decode().
Neal Norwitz [Fri, 31 Mar 2006 08:21:40 +0000 (08:21 +0000)]
Add a NEWS entry for the Alpha fixes
Neal Norwitz [Fri, 31 Mar 2006 06:54:45 +0000 (06:54 +0000)]
Get gcc to do strict IEEE math. This flag was already used for cc, just not
gcc. Without this flag, doing pretty much anything with NaNs causes
a Floating Point Exception signal. This causes the interpreter to quit.
The failing tests this fixes are: test_float, test_long, and test_struct.
This is somewhat equivalent to doing signal(SIGFPE, SIG_IGN).
Will verify if this is a problem in 2.4 and backport if necessary (probably).
Fred Drake [Fri, 31 Mar 2006 05:30:19 +0000 (05:30 +0000)]
improve reporting of illegal section nesting (provide location which
caused detection of the error)
Fred Drake [Fri, 31 Mar 2006 05:28:38 +0000 (05:28 +0000)]
fix sectioning: cannot skip section levels
Tim Peters [Fri, 31 Mar 2006 04:11:16 +0000 (04:11 +0000)]
test_main(): Restore the decimal context that was in
effect at the time test_decimal was imported. Else
running test_decimal had the bad side effect of
permanently changing the decimal context in effect.
That caused text_tokenize to fail if it ran after
test_decimal.
Tim Peters [Fri, 31 Mar 2006 03:17:30 +0000 (03:17 +0000)]
Repaired a number of errors in this test:
- The doctests in decistmt() weren't run at all when
test_tokenize was run via regrtest.py.
- Some expected output in decistmt() was Windows-specific
(but nobody noticed because the doctests weren't getting
run).
- test_roundtrip() didn't actually test anything when
running the tests with -O. Now it does.
- Changed test_roundtrip() to show the name of the input
file when it fails. That would have saved a lot of
time earlier today.
- Added a bunch of comments.
Barry Warsaw [Thu, 30 Mar 2006 22:45:35 +0000 (22:45 +0000)]
SF patch #
1458476 with modifications based on discussions in python-dev. This
adds the following API calls: PySet_Clear(), _PySet_Next(), and
_PySet_Update(). The latter two are considered non-public. Tests and
documentation (for the public API) are included.
Guido van Rossum [Thu, 30 Mar 2006 21:43:35 +0000 (21:43 +0000)]
Insert a safety space after numbers as well as names in untokenize().
Ronald Oussoren [Thu, 30 Mar 2006 20:18:33 +0000 (20:18 +0000)]
Add '-Wno-deprecated-warnings' to the compile flags for the Carbon extensions
on OSX 10.4 or later. This stops the compiler for complaining about calls to
deprecated functions in these extensions, they are supposed to wrap as much
of Carbon as possible.
Thomas Heller [Thu, 30 Mar 2006 19:16:15 +0000 (19:16 +0000)]
Try to fix test_loading on openbsd.
Thomas Heller [Thu, 30 Mar 2006 18:29:25 +0000 (18:29 +0000)]
Oops - this should not have gone in.
Thomas Heller [Thu, 30 Mar 2006 17:49:55 +0000 (17:49 +0000)]
Output more info when the test fails.
Armin Rigo [Thu, 30 Mar 2006 14:04:02 +0000 (14:04 +0000)]
Minor bugs in the __index__ code (PEP 357), with tests.
Anthony Baxter [Thu, 30 Mar 2006 12:59:11 +0000 (12:59 +0000)]
whitespace normalisation
Georg Brandl [Thu, 30 Mar 2006 12:19:07 +0000 (12:19 +0000)]
That one was a mistake.
Georg Brandl [Thu, 30 Mar 2006 11:58:57 +0000 (11:58 +0000)]
Remove unnecessary casts from type object initializers.
Georg Brandl [Thu, 30 Mar 2006 11:57:00 +0000 (11:57 +0000)]
Remove unnecessary casts in type object initializers.
Thomas Heller [Thu, 30 Mar 2006 11:51:58 +0000 (11:51 +0000)]
Try to build _ctypes on x86 openbsd.
Armin Rigo [Thu, 30 Mar 2006 11:28:43 +0000 (11:28 +0000)]
Checking in the test for PEP 357.
This is from the SF tracker as well; for some reason the
content of test_index.py was lost and an empty file was
checked in instead.
Anthony Baxter [Thu, 30 Mar 2006 10:54:07 +0000 (10:54 +0000)]
Fixed bug #
1459029 - unicode reprs were double-escaped.
Anthony Baxter [Thu, 30 Mar 2006 10:53:17 +0000 (10:53 +0000)]
Fixed bug #
1459029 - unicode reprs were double-escaped.
Backed out an old patch from 2000.
Phillip J. Eby [Thu, 30 Mar 2006 07:09:06 +0000 (07:09 +0000)]
Mark the upload command as new in 2.5, per Neal Norwitz's request.
Fred Drake [Thu, 30 Mar 2006 03:04:41 +0000 (03:04 +0000)]
fill in refcount information for APIs first documented in Python 2.5
Fred Drake [Thu, 30 Mar 2006 02:58:38 +0000 (02:58 +0000)]
merge revision 43437 from the release24-maint branch:
- update the refcount information (late, but not a bad thing to do...)
- clarify that PyGen_New() steals a reference
Phillip J. Eby [Thu, 30 Mar 2006 02:16:40 +0000 (02:16 +0000)]
Oops, forgot to checkin the NEWS for --identity
Phillip J. Eby [Thu, 30 Mar 2006 02:12:14 +0000 (02:12 +0000)]
Implementation for patch request #
1457316 : support --identity option
for setup.py "upload" command.
Raymond Hettinger [Wed, 29 Mar 2006 09:13:13 +0000 (09:13 +0000)]
SF bug #
1460340 : random.sample can raise KeyError
Fix the hit and miss style of testing for sets and dicts.
Tim Peters [Tue, 28 Mar 2006 21:44:32 +0000 (21:44 +0000)]
In format strings slinging Py_ssize_t, unconditionally
interpolate PY_FORMAT_SIZE_T instead of #if'ing on
MS_WIN64.
Armin Rigo [Tue, 28 Mar 2006 20:30:45 +0000 (20:30 +0000)]
add the ctypes.test subpackage to a normal Unix installation --
otherwise, test/test_ctypes.py fails. What about ctypes.macholib?
Armin Rigo [Tue, 28 Mar 2006 19:27:56 +0000 (19:27 +0000)]
fix a comment.
Georg Brandl [Tue, 28 Mar 2006 19:19:56 +0000 (19:19 +0000)]
Revert r43399.
Armin Rigo [Tue, 28 Mar 2006 19:10:40 +0000 (19:10 +0000)]
answer a question from a comment
Martin v. Löwis [Tue, 28 Mar 2006 18:30:05 +0000 (18:30 +0000)]
Move product_codes in their own file.
Georg Brandl [Tue, 28 Mar 2006 18:02:44 +0000 (18:02 +0000)]
document sys.maxint in std objects
Georg Brandl [Tue, 28 Mar 2006 12:48:43 +0000 (12:48 +0000)]
Bug #
1459103 : add inter-section links for strftime section.
Georg Brandl [Tue, 28 Mar 2006 12:40:24 +0000 (12:40 +0000)]
Bug #
1459963 : urllib2 now normalizes HTTP header names correctly
with title().
Thomas Heller [Tue, 28 Mar 2006 11:00:08 +0000 (11:00 +0000)]
Make the tests succeed with -Qnew: Do not rely on the exact wording of a ZeroDivisionError.
Georg Brandl [Tue, 28 Mar 2006 10:29:45 +0000 (10:29 +0000)]
Make uu use floor division instead of classic division.
This was discovered by test_email failing with -Qnew.
Georg Brandl [Tue, 28 Mar 2006 10:26:45 +0000 (10:26 +0000)]
Make test_augassign pass with -Qnew and convert to unittest.
Georg Brandl [Tue, 28 Mar 2006 10:07:46 +0000 (10:07 +0000)]
Make xdrlib use floor division instead of classic division.
Makes test_xdrlib pass.
Georg Brandl [Tue, 28 Mar 2006 10:00:53 +0000 (10:00 +0000)]
Make test_coercion pass with -Qnew. Converted to unittest on the occasion.
Thomas Wouters [Tue, 28 Mar 2006 08:44:55 +0000 (08:44 +0000)]
In true regression-test spirit, make sure the
itertools.tee->instance->attribute->itertools.tee and
itertools.tee->teedataobject->itertools.tee cycles, which can be found now
that itertools.tee and its teedataobject participate in GC, remain findable
and cleanable. The test won't fail when they aren't, but at least the
frequent hunt-refleaks runs would spot the rise in refleaks.
Thomas Wouters [Tue, 28 Mar 2006 08:14:24 +0000 (08:14 +0000)]
Add an example of a generator->freevar->cell->generator reference-cycle that
doesn't get cleaned up and thus leaks.
Georg Brandl [Tue, 28 Mar 2006 08:06:35 +0000 (08:06 +0000)]
Make test_decimal work with -Qnew.
Martin v. Löwis [Tue, 28 Mar 2006 07:51:51 +0000 (07:51 +0000)]
Correct case in test for Windows 9X.
Tim Peters [Tue, 28 Mar 2006 07:39:22 +0000 (07:39 +0000)]
Part of bug
1459808 : fiddle test_input_and_raw_input()
so it passes w/ -Qnew.
Tim Peters [Tue, 28 Mar 2006 07:28:40 +0000 (07:28 +0000)]
Part of bug
1459808 : fiddle so that this passes
with or without -Qnew.
Neal Norwitz [Tue, 28 Mar 2006 06:19:28 +0000 (06:19 +0000)]
Try to get rid of a Coverity warning by consistently using origpending.
Neal Norwitz [Tue, 28 Mar 2006 05:51:02 +0000 (05:51 +0000)]
Add version added info for with statement and context managers
Phillip J. Eby [Tue, 28 Mar 2006 00:13:10 +0000 (00:13 +0000)]
Document objects that can be used with the ``with`` statement.
Phillip J. Eby [Tue, 28 Mar 2006 00:08:22 +0000 (00:08 +0000)]
Fix some missing imports
Phillip J. Eby [Tue, 28 Mar 2006 00:07:24 +0000 (00:07 +0000)]
Fix contextlib not copying function attributes
Phillip J. Eby [Mon, 27 Mar 2006 23:58:46 +0000 (23:58 +0000)]
Document the contextlib module.
Phillip J. Eby [Mon, 27 Mar 2006 23:32:10 +0000 (23:32 +0000)]
dummy_thread needs to support PEP 343 too.
Georg Brandl [Mon, 27 Mar 2006 22:09:16 +0000 (22:09 +0000)]
Document change made to number of preallocated integers.
Phillip J. Eby [Mon, 27 Mar 2006 21:55:21 +0000 (21:55 +0000)]
Patch #
1459476 : install PKG-INFO metadata alongside distutils-installed packages.
Phillip J. Eby [Mon, 27 Mar 2006 21:42:30 +0000 (21:42 +0000)]
The "with" statement needs a __future__. :)
Phillip J. Eby [Mon, 27 Mar 2006 21:06:13 +0000 (21:06 +0000)]
Document the "with" statement.
Thomas Wouters [Mon, 27 Mar 2006 21:02:13 +0000 (21:02 +0000)]
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.
Phillip J. Eby [Mon, 27 Mar 2006 19:59:34 +0000 (19:59 +0000)]
Document the PEP 343 context manager protocol methods.
Martin v. Löwis [Mon, 27 Mar 2006 16:35:13 +0000 (16:35 +0000)]
Drop information about 2.4 DLLs.
Martin v. Löwis [Mon, 27 Mar 2006 16:30:41 +0000 (16:30 +0000)]
Allow supression of subwcrev.exe invocation on a per-working-copy basis.
Walter Dörwald [Mon, 27 Mar 2006 15:11:56 +0000 (15:11 +0000)]
Whitespace for generated code.
Anthony Baxter [Mon, 27 Mar 2006 13:37:36 +0000 (13:37 +0000)]
Tagging for release r25a0
Anthony Baxter [Mon, 27 Mar 2006 13:35:34 +0000 (13:35 +0000)]
oops. lets try that one more time
Anthony Baxter [Mon, 27 Mar 2006 12:12:48 +0000 (12:12 +0000)]
Tagging for release r25a0
Anthony Baxter [Mon, 27 Mar 2006 11:56:58 +0000 (11:56 +0000)]
Tagging for release svn+ssh://pythondev@svn.python.org/python//tags/r25a0
Anthony Baxter [Mon, 27 Mar 2006 11:53:34 +0000 (11:53 +0000)]
more testing.
Martin v. Löwis [Mon, 27 Mar 2006 09:51:16 +0000 (09:51 +0000)]
Add product ids for 2.5.
Walter Dörwald [Mon, 27 Mar 2006 09:02:04 +0000 (09:02 +0000)]
Whitespace.