Commit Graph

36445 Commits

Author SHA1 Message Date
Georg Brandl ab49684f55 Patch #1638243: the compiler package is now able to correctly compile
a with statement; previously, executing code containing a with statement
compiled by the compiler package crashed the interpreter.
2007-01-27 17:43:02 +00:00
Fred Drake 7a7cbae77b fix typo (extraneous ")") 2007-01-26 16:28:44 +00:00
Brett Cannon 9875ba4d4e Remove specific mention of my name and email address from modules. Not really
needed and all bug reports should go to the bug tracker, not directly to me.
Plus I am not the only person to have edited these files at this point.
2007-01-25 23:30:39 +00:00
Brett Cannon 07e1db317d Fix time.strptime's %U support. Basically rewrote the algorithm to be more
generic so that one only has to shift certain values based on whether the week
was specified to start on Monday or Sunday.  Cut out a lot of edge case code
compared to the previous version.  Also broke algorithm out into its own
function (that is private to the module).

Fixes bug #1643943 (thanks Biran Nahas for the report).
2007-01-25 20:22:02 +00:00
Andrew M. Kuchling 27b4c8b23c Add item 2007-01-25 20:02:13 +00:00
Thomas Heller 4378215474 Fix for #1643874: When calling SysAllocString, create a PyCObject
which will eventually call SysFreeString to free the BSTR resource.
2007-01-25 18:34:14 +00:00
Andrew M. Kuchling 391e917b1a Strengthen warning about using lock() 2007-01-24 20:06:41 +00:00
Walter Dörwald 4b884a5cc2 Port test_popen.py to unittest. 2007-01-24 00:42:19 +00:00
Brett Cannon f5bee30e30 Fix crasher for when an object's __del__ creates a new weakref to itself.
Patch only fixes new-style classes; classic classes still buggy.

Closes bug #1377858.  Already backported.
2007-01-23 23:21:22 +00:00
Martin v. Löwis 6c5c502b91 Make PyTraceBack_Here use the current thread, not the
frame's thread state. Fixes #1579370.
Will backport.
2007-01-23 21:11:47 +00:00
Thomas Wouters 6ed1965308 Add news entry about last checkin (oops.) 2007-01-23 13:50:49 +00:00
Thomas Wouters afea529088 SF patch #1630975: Fix crash when replacing sys.stdout in sitecustomize
When running the interpreter in an environment that would cause it to set
stdout/stderr/stdin's encoding, having a sitecustomize that would replace
them with something other than PyFile objects would crash the interpreter.
Fix it by simply ignoring the encoding-setting for non-files.

This could do with a test, but I can think of no maintainable and portable
way to test this bug, short of adding a sitecustomize.py to the buildsystem
and have it always run with it (hmmm....)
2007-01-23 13:42:00 +00:00
Lars Gustäbel d2e22903d3 Patch #1507247: tarfile.py: use current umask for intermediate
directories.
2007-01-23 11:17:33 +00:00
Georg Brandl e498083b59 Bug #1627316: handle error in condition/ignore pdb commands more gracefully. 2007-01-22 21:23:41 +00:00
Georg Brandl 626349526e Bug #1249573: fix rfc822.parsedate not accepting a certain date format 2007-01-22 21:10:33 +00:00
Andrew M. Kuchling b94c0c3ea1 Make comment match the code 2007-01-22 20:27:50 +00:00
Andrew M. Kuchling b78bb74c41 Improve pattern used for mbox 'From' lines; add a simple test 2007-01-22 20:26:40 +00:00
Georg Brandl 5a096e1b10 Use new email module names (#1637162, #1637159, #1637157). 2007-01-22 19:40:21 +00:00
Georg Brandl dd7b0525e9 Patch #1627441: close sockets properly in urllib2. 2007-01-21 10:35:10 +00:00
Georg Brandl b84c13792d Bug #1486663: don't reject keyword arguments for subclasses of builtin
types.
2007-01-21 10:28:43 +00:00
Martin v. Löwis aef4c6bc00 Patch #1610575: Add support for _Bool to struct. 2007-01-21 09:33:07 +00:00
Walter Dörwald 71cd55150b Port test_new.py to unittest. 2007-01-20 23:07:28 +00:00
Walter Dörwald d414302eec resource.RUSAGE_BOTH might not exist. 2007-01-20 19:03:17 +00:00
Walter Dörwald 66262ab064 Add argument tests an calls of resource.getrusage(). 2007-01-20 18:19:33 +00:00
Walter Dörwald 9fab9a7da8 Port test_resource.py to unittest. 2007-01-20 17:28:31 +00:00
Martin v. Löwis cc0eba9d98 Merge 53501 and 53502 from 25 branch:
Add /GS- for AMD64 and Itanium builds where missing.
2007-01-20 14:05:39 +00:00
Raymond Hettinger 1b0ce85271 SF# 1635892: Fix docs for betavariate's input parameters . 2007-01-19 18:07:18 +00:00
Martin v. Löwis 0682a52e31 Add UUIDs for 2.5.1 and 2.5.2 2007-01-19 18:01:38 +00:00
Martin v. Löwis 4885e7d098 Prefix AST symbols with _Py_. Fixes #1637022.
Will backport.
2007-01-19 06:42:22 +00:00
Neal Norwitz a6c0b59814 SF #1635217, Fix unbalanced paren 2007-01-19 05:53:33 +00:00
Neal Norwitz 06a9a0ccf4 This test doesn't pass on Windows. The cause seems to be that chmod
doesn't support the same funcationality as on Unix.  I'm not sure if
this fix is the best (or if it will even work)--it's a test to see
if the buildbots start passing again.

It might be better to not even run this test if it's windows (or non-posix).
2007-01-18 06:20:55 +00:00
Fred Drake b94ed71bd1 add missing version entry 2007-01-18 05:42:30 +00:00
Neal Norwitz 7beeb2b0a5 Try reverting part of r53145 that seems to cause the Windows buildbots to fail in test_uu.UUFileTest.test_encode 2007-01-18 05:40:58 +00:00
Georg Brandl b26b1c6d6b Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs. 2007-01-17 21:19:58 +00:00
Georg Brandl 45dc1f2fd3 Bug #1637967: missing //= operator in list. 2007-01-17 21:09:04 +00:00
Andrew M. Kuchling 3ffcfe2f68 [Part of bug #1599254] Add suggestion to Mailbox docs to use Maildir, and warn user to lock/unlock mailboxes when modifying them 2007-01-17 19:55:06 +00:00
Thomas Heller 2e07810ef0 Replace C++ comments with C comments. 2007-01-17 09:40:34 +00:00
Neal Norwitz 7d106efee3 Remove Calvin since he only has access to the website currently. 2007-01-17 08:37:26 +00:00
Neal Norwitz 1e52d6b4c4 Give Calvin Spealman access for python-dev summaries. 2007-01-17 06:23:51 +00:00
Sjoerd Mullender 33a0a06d31 Fixed ntpath.expandvars to not replace references to non-existing
variables with nothing.  Also added tests.
This fixes bug #494589.
2007-01-16 16:42:38 +00:00
Marc-André Lemburg fa3d08b4a9 Add news items for the recent pybench and platform changes. 2007-01-16 13:03:06 +00:00
Vinay Sajip b3d8a06a46 Updated rotating file handlers to use _open(). 2007-01-16 09:50:07 +00:00
Brett Cannon f5c034af10 Add a note for strptime that just because strftime supports some extra
directive that is not documented that strptime will as well.
2007-01-15 19:12:08 +00:00
Guido van Rossum 2799aab86d Doc patch matching r53434 (htonl etc. now always take/return positive ints). 2007-01-15 00:02:35 +00:00
Vinay Sajip 1ff01fb0af Added documentation for WatchedFileHandler (based on SF patch #1598415) 2007-01-14 21:50:50 +00:00
Vinay Sajip 73306b07ed Added WatchedFileHandler (based on SF patch #1598415) 2007-01-14 21:49:59 +00:00
Guido van Rossum bb2cc698c1 Patch #1635058 by Mark Roberts: ensure that htonl and friends never accept or
return negative numbers, per the underlying C implementation.
2007-01-14 17:03:32 +00:00
Ka-Ping Yee 8ef1cf30b7 Handle old-style instances more gracefully (display documentation on
the relevant class instead of documentation on <type 'instance'>).
2007-01-14 04:25:15 +00:00
Guido van Rossum 0567ba20f3 Remove a dependency of this test on $COLUMNS. 2007-01-14 03:46:33 +00:00
Gerhard Häring 0741a60ca7 Merged changes from standalone version 2.3.3. This should probably all be
merged into the 2.5 maintenance branch:

- self->statement was not checked while fetching data, which could
  lead to crashes if you used the pysqlite API in unusual ways.
  Closing the cursor and continuing to fetch data was enough.

- Converters are stored in a converters dictionary. The converter name
  is uppercased first. The old upper-casing algorithm was wrong and
  was replaced by a simple call to the Python string's upper() method
  instead.

-Applied patch by Glyph Lefkowitz that fixes the problem with
 subsequent SQLITE_SCHEMA errors.

- Improvement to the row type: rows can now be iterated over and have a keys()
  method. This improves compatibility with both tuple and dict a lot.

- A bugfix for the subsecond resolution in timestamps.

- Corrected the way the flags PARSE_DECLTYPES and PARSE_COLNAMES are
  checked for. Now they work as documented.

- gcc on Linux sucks. It exports all symbols by default in shared
  libraries, so if symbols are not unique it can lead to problems with
  symbol lookup.  pysqlite used to crash under Apache when mod_cache
  was enabled because both modules had the symbol cache_init. I fixed
  this by applying the prefix pysqlite_ almost everywhere. Sigh.
2007-01-14 01:43:50 +00:00