Commit Graph

42550 Commits

Author SHA1 Message Date
Georg Brandl facb0e9a76 2.7 is now stable. 2010-07-09 07:33:15 +00:00
Benjamin Peterson 8b0ef21c15 use assert method 2010-07-09 01:58:26 +00:00
Benjamin Peterson d02441ea2f fix repr of complicated structseqs #9206 2010-07-08 22:33:03 +00:00
Benjamin Peterson 8c567c540d assert tuple inheritance 2010-07-08 22:16:05 +00:00
Brian Curtin 808e1ada94 Undo inadvertant checkin. 2010-07-08 22:13:25 +00:00
Brian Curtin d40e6f70a5 Implement #1578269. Patch by Jason R. Coombs.
Added Windows support for os.symlink when run on Windows 6.0 or greater,
aka Vista. Previous Windows versions will raise NotImplementedError
when trying to symlink.

Includes numerous test updates and additions to test_os, including
a symlink_support module because of the fact that privilege escalation
is required in order to run the tests to ensure that the user is able
to create symlinks. By default, accounts do not have the required
privilege, so the escalation code will have to be exposed later (or
documented on how to do so). I'll be following up with that work next.

Note that the tests use ctypes, which was agreed on during the PyCon
language summit.
2010-07-08 21:39:08 +00:00
Mark Dickinson 0dd8f7890a Issue #9136: Profiling Decimal gave 'dictionary changed size during iteration'.
Remove the use of locals() that caused this error.
2010-07-08 21:15:36 +00:00
Mark Dickinson e42f1bb354 Fix misplaced exactness check that was causing unnecessary work in Decimal.__pow__. 2010-07-08 19:09:16 +00:00
Mark Dickinson a123631a5c Fix a performance issue in Decimal.pow. Thanks Stefan Krah for finding this. 2010-07-08 19:03:34 +00:00
Antoine Pitrou f48ea7c2a9 Issue #8605: Skip test_gdb if Python is compiled with optimizations. 2010-07-08 18:51:30 +00:00
Mark Dickinson 247900ce47 In test_decimal, convert heuristic for skipping tests into an explicit skiplist. 2010-07-08 17:23:40 +00:00
Ezio Melotti 9527afd02c Fix typo in a comment in mathmodule.c. 2010-07-08 15:03:02 +00:00
Alexander Belopolsky 73ca440e3d Issue #5288: Eliminated round-trips between timdelta and int offsets 2010-07-07 23:56:38 +00:00
Benjamin Peterson 6ef08a0ebe ValueError in this case is also acceptable 2010-07-07 22:45:06 +00:00
Benjamin Peterson ccabcd4bd4 make struct sequences subclass tuple; kill lots of code
This fixes #8413.
2010-07-07 20:54:01 +00:00
Benjamin Peterson a9800a8d5b add NEWS 2010-07-07 19:04:48 +00:00
Georg Brandl b9137848ae Turn more notes into comments. 2010-07-07 19:04:36 +00:00
Benjamin Peterson de73c4587f don't ignore exceptions from PyObject_IsTrue 2010-07-07 18:54:59 +00:00
Georg Brandl e789016a70 Make comment out of an awkward note. 2010-07-07 18:51:43 +00:00
Benjamin Peterson c937dc2ccb this needn't be in the loop 2010-07-07 18:44:05 +00:00
Mark Dickinson be64d95169 Issue #9186: log1p(-1.0) should raise ValueError, not OverflowError. 2010-07-07 16:21:29 +00:00
Mark Dickinson 9c91eb844c Minor refactoring in lgamma code, for clarity. 2010-07-07 16:17:31 +00:00
Mark Dickinson 7e4a6ebd42 Kill gratuitous space. 2010-07-07 16:10:44 +00:00
Alexander Belopolsky a11d8c03a4 Issue #9000: datetime.timezone objects now have eval-friendly repr. 2010-07-06 23:19:45 +00:00
Georg Brandl 44afa5e6a4 Fix typo. 2010-07-06 22:58:50 +00:00
Mark Dickinson 21a1f734fb Style nit. 2010-07-06 15:11:44 +00:00
Vinay Sajip c15dfd63b3 Minor improvements to logging documentation. 2010-07-06 15:08:55 +00:00
Mark Dickinson 6f493b7bac Indentation and PEP 7 fixes. 2010-07-06 15:00:40 +00:00
Matthias Klose d885e95be4 - sysmodule.c (get_hash_info): Define as static function. 2010-07-06 10:53:30 +00:00
Senthil Kumaran 37c63a385d Change 'lowered' to 'lowercased' 2010-07-06 02:08:36 +00:00
Brett Cannon c84dc9d018 Fix test_xmlrpc_net to no longer fail since there are no more buildbots for trunk. 2010-07-05 22:11:16 +00:00
Alexander Belopolsky 31c2740760 "Modernized" the demo a little. 2010-07-05 21:44:05 +00:00
Victor Stinner 1f1ccc0386 #9158: Fix y* format of PyArg_Parse*() functions documentation 2010-07-05 21:36:21 +00:00
Mark Dickinson 6c3bcb74b2 Post-detabification cleanup. 2010-07-05 20:14:26 +00:00
Georg Brandl 5ada7c7315 Update Vec class constructor, remove indirection via function, use operator module. 2010-07-05 20:13:41 +00:00
Georg Brandl dc00a2a249 Remove Dbm. 2010-07-05 20:13:06 +00:00
Benjamin Peterson aefc1c7e48 untabify 2010-07-05 20:04:54 +00:00
Alexander Belopolsky d87e932f51 Added two more test cases for datetime 2010-07-05 17:57:31 +00:00
Georg Brandl b0f0991cdb #9166: NotImplemented is not an exception. 2010-07-05 17:48:38 +00:00
Benjamin Peterson 97c694b90b looking up on the type is correct, so this isn't an XXX 2010-07-05 17:11:05 +00:00
Alexander Belopolsky f34e82ef49 Added more tests for utctimetuple() 2010-07-05 15:05:33 +00:00
Benjamin Peterson a7465e2fdf cleanup basicsize logic #3268 2010-07-05 15:01:22 +00:00
Benjamin Peterson 335d2c757d pydoc still has a silly encoding 2010-07-05 14:59:40 +00:00
Senthil Kumaran e51ee8a5bc Fix the docstrings of the capitalize method. 2010-07-05 12:00:56 +00:00
Senthil Kumaran fa8979867f Fix: Issue9091 Minor documentation clarification. 2010-07-05 11:41:42 +00:00
Brett Cannon 058173e2b2 Do some basic refactoring. Along the way also list what files had their
whitespace cleaned up and do the proper plurality for "N file(s)" based on N.

Refactoring closes issue8912. Thanks to Éric Araujo for the patch.
2010-07-04 22:05:34 +00:00
Andrew M. Kuchling 5cca695ed6 Add brief explanation; remove no-longer-working link 2010-07-04 20:47:00 +00:00
Mark Dickinson 45a26b9b18 Revert -r82559; it's not clear that this is the right thing to do, and the change obscures the original intentions. 2010-07-04 20:07:09 +00:00
Mark Dickinson 30b570bb4b Re-encode shlex.py in UTF-8, and remove coding cookie. 2010-07-04 19:27:12 +00:00
Mark Dickinson b4a17a8440 Remove coding cookie from heapq.py. 2010-07-04 19:23:49 +00:00