]> granicus.if.org Git - python/log
python
18 years agoDon't fail if the directory already exists
Neal Norwitz [Sat, 22 Jul 2006 17:00:57 +0000 (17:00 +0000)]
Don't fail if the directory already exists

18 years agoFix more memory allocation issues found with failmalloc.
Neal Norwitz [Sat, 22 Jul 2006 16:20:49 +0000 (16:20 +0000)]
Fix more memory allocation issues found with failmalloc.

18 years agoRemove an XXX marker in a comment.
Brett Cannon [Fri, 21 Jul 2006 22:44:07 +0000 (22:44 +0000)]
Remove an XXX marker in a comment.

18 years agoFix check for empty list (vs. None).
Georg Brandl [Fri, 21 Jul 2006 17:36:31 +0000 (17:36 +0000)]
Fix check for empty list (vs. None).

18 years agoMore RFC 2231 improvements for the email 4.0 package. As Mark Sapiro rightly
Barry Warsaw [Fri, 21 Jul 2006 14:51:07 +0000 (14:51 +0000)]
More RFC 2231 improvements for the email 4.0 package.  As Mark Sapiro rightly
points out there are really two types of continued headers defined in this
RFC (i.e. "encoded" parameters with the form "name*0*=" and unencoded
parameters with the form "name*0="), but we were were handling them both the
same way and that isn't correct.

This patch should be much more RFC compliant in that only encoded params are
%-decoded and the charset/language information is only extract if there are
any encoded params in the segments.  If there are no encoded params then the
RFC says that there will be no charset/language parts.

Note however that this will change the return value for Message.get_param() in
some cases.  For example, whereas before if you had all unencoded param
continuations you would have still gotten a 3-tuple back from this method
(with charset and language == None), you will now get just a string.  I don't
believe this is a backward incompatible change though because the
documentation for this method already indicates that either return value is
possible and that you must do an isinstance(val, tuple) check to discriminate
between the two.  (Yeah that API kind of sucks but we can't change /that/
without breaking code.)

Test cases, some documentation updates, and a NEWS item accompany this patch.

18 years agoHandle more memory allocation failures without crashing.
Neal Norwitz [Fri, 21 Jul 2006 07:59:47 +0000 (07:59 +0000)]
Handle more memory allocation failures without crashing.

18 years agoSpeel initialise write. Tanks Anthony.
Neal Norwitz [Fri, 21 Jul 2006 07:59:02 +0000 (07:59 +0000)]
Speel initialise write.  Tanks Anthony.

18 years agoHandle allocation failures gracefully. Found with failmalloc.
Neal Norwitz [Fri, 21 Jul 2006 05:32:28 +0000 (05:32 +0000)]
Handle allocation failures gracefully.  Found with failmalloc.
Many (all?) of these could be backported.

18 years agoMove the initialization of some pointers earlier. The problem is
Neal Norwitz [Fri, 21 Jul 2006 05:31:02 +0000 (05:31 +0000)]
Move the initialization of some pointers earlier.  The problem is
that if we call Py_DECREF(frame) like we do if allocating locals fails,
frame_dealloc() will try to use these bogus values and crash.

18 years agoAdd some asserts that we got good params passed
Neal Norwitz [Fri, 21 Jul 2006 05:29:58 +0000 (05:29 +0000)]
Add some asserts that we got good params passed

18 years agoAddressed SF#1524081 by using a dictionary to map level names to syslog priority...
Vinay Sajip [Thu, 20 Jul 2006 23:20:12 +0000 (23:20 +0000)]
Addressed SF#1524081 by using a dictionary to map level names to syslog priority names, rather than a string.lower().

18 years agoAvoid occasional failure to detect closing paren properly.
Kurt B. Kaiser [Thu, 20 Jul 2006 22:22:52 +0000 (22:22 +0000)]
Avoid occasional failure to detect closing paren properly.
Patch 1407280 Tal Einat

M    ParenMatch.py
M    NEWS.txt
M    CREDITS.txt

18 years agomarkup fix
Fred Drake [Thu, 20 Jul 2006 20:11:57 +0000 (20:11 +0000)]
markup fix

18 years agoUpdated documentation for TimedRotatingFileHandler relating to how rollover files...
Vinay Sajip [Thu, 20 Jul 2006 16:28:39 +0000 (16:28 +0000)]
Updated documentation for TimedRotatingFileHandler relating to how rollover files are named. The previous documentation was wrongly the same as for RotatingFileHandler.

18 years agoGuard for _active being None in __del__ method.
Georg Brandl [Thu, 20 Jul 2006 16:28:39 +0000 (16:28 +0000)]
Guard for _active being None in __del__ method.

18 years agoFix SF#1516184 (again) and add a test to prevent regression.
Phillip J. Eby [Thu, 20 Jul 2006 15:54:16 +0000 (15:54 +0000)]
Fix SF#1516184 (again) and add a test to prevent regression.
(There was a problem with empty filenames still causing recursion)

18 years agoRevert r50706 (Whitespace normalization) and
Martin v. Löwis [Wed, 19 Jul 2006 17:18:32 +0000 (17:18 +0000)]
Revert r50706 (Whitespace normalization) and
r50697: Comments and docs cleanups, and some little fixes
per recommendation from Raymond Hettinger.

18 years agoMake sure the _ctypes extension can be compiled when WITH_THREAD is
Thomas Heller [Wed, 19 Jul 2006 09:09:32 +0000 (09:09 +0000)]
Make sure the _ctypes extension can be compiled when WITH_THREAD is
not defined on Windows, even if that configuration is probably not
supported at all.

18 years agoSF bug 1524317: configure --without-threads fails to build
Tim Peters [Wed, 19 Jul 2006 00:03:19 +0000 (00:03 +0000)]
SF bug 1524317: configure --without-threads fails to build

Moved the code for _PyThread_CurrentFrames() up, so it's no longer
in a huge "#ifdef WITH_THREAD" block (I didn't realize it /was/ in
one).

Changed test_sys's test_current_frames() so it passes with or without
thread supported compiled in.

Note that test_sys fails when Python is compiled without threads,
but for an unrelated reason (the old test_exit() fails with an
indirect ImportError on the `thread` module).  There are also
other unrelated compilation failures without threads, in extension
modules (like ctypes); at least the core compiles again.

Do we really support --without-threads?  If so, there are several
problems remaining.

18 years agoWhitespace normalization.
Tim Peters [Tue, 18 Jul 2006 21:55:15 +0000 (21:55 +0000)]
Whitespace normalization.

18 years agoPatch #1524429: Use repr instead of backticks again.
Martin v. Löwis [Tue, 18 Jul 2006 17:46:31 +0000 (17:46 +0000)]
Patch #1524429: Use repr instead of backticks again.

18 years agoComments and docs cleanups, and some little fixes, provided by Santiágo Peresón
Facundo Batista [Tue, 18 Jul 2006 12:16:13 +0000 (12:16 +0000)]
Comments and docs cleanups, and some little fixes, provided by Santiágo Peresón

18 years agoFix bug #1520914. Starting in 2.4, time.strftime() began to check the bounds
Brett Cannon [Tue, 18 Jul 2006 04:41:36 +0000 (04:41 +0000)]
Fix bug #1520914.  Starting in 2.4, time.strftime() began to check the bounds
of values in the time tuple passed in.  Unfortunately people came to rely on
undocumented behaviour of setting unneeded values to 0, regardless of if it was
within the valid range.  Now those values force the value internally to the
minimum value when 0 is passed in.

18 years agoRebinding Tab key was inserting 'tab' instead of 'Tab'. Bug 1179168.
Kurt B. Kaiser [Tue, 18 Jul 2006 04:03:16 +0000 (04:03 +0000)]
Rebinding Tab key was inserting 'tab' instead of 'Tab'.  Bug 1179168.

18 years agodecode_rfc2231(): Be more robust against buggy RFC 2231 encodings.
Barry Warsaw [Mon, 17 Jul 2006 23:07:51 +0000 (23:07 +0000)]
decode_rfc2231(): Be more robust against buggy RFC 2231 encodings.
Specifically, instead of raising a ValueError when there is a single tick in
the parameter, simply return that the entire string unquoted, with None for
both the charset and the language.  Also, if there are more than 2 ticks in
the parameter, interpret the first three parts as the standard RFC 2231 parts,
then the rest of the parts as the encoded string.

Test cases added.

Original fewer-than-3-parts fix by Tokio Kikuchi.

Resolves SF bug # 1218081.  I will back port the fix and tests to Python 2.4
(email 3.0) and Python 2.3 (email 2.5).

Also, bump the version number to email 4.0.1, removing the 'alpha' moniker.

18 years agoPatch 1479219 - Tal Einat
Kurt B. Kaiser [Mon, 17 Jul 2006 21:59:27 +0000 (21:59 +0000)]
Patch 1479219 - Tal Einat
1. 'as' highlighted as builtin in comment string on import line
2. Comments such as "#False identity" which start with a keyword immediately
   after the '#' character aren't colored as comments.
3. u or U beginning unicode string not correctly highlighted

Closes bug 1325071

18 years agoAttribute more features
Andrew M. Kuchling [Mon, 17 Jul 2006 16:47:54 +0000 (16:47 +0000)]
Attribute more features

18 years agoAdd missing NEWS item (#1522771)
Georg Brandl [Mon, 17 Jul 2006 13:26:33 +0000 (13:26 +0000)]
Add missing NEWS item (#1522771)

18 years agoRemove usage of sets module (patch #1500609).
Georg Brandl [Mon, 17 Jul 2006 13:23:46 +0000 (13:23 +0000)]
Remove usage of sets module (patch #1500609).

18 years agodocument xmlcore (still minimal; needs mention in each of the xml.* modules)
Fred Drake [Mon, 17 Jul 2006 05:47:52 +0000 (05:47 +0000)]
document xmlcore (still minimal; needs mention in each of the xml.* modules)
SF bug #1504456 (partial)

18 years agoAdd NEWS entry for a bunch of fixes due to warnings produced by Klocworks static...
Neal Norwitz [Mon, 17 Jul 2006 01:00:16 +0000 (01:00 +0000)]
Add NEWS entry for a bunch of fixes due to warnings produced by Klocworks static analysis tool.

18 years agoReported by Klocwork #151.
Neal Norwitz [Mon, 17 Jul 2006 00:59:04 +0000 (00:59 +0000)]
Reported by Klocwork #151.

v2 can be NULL if exception2 is NULL.  I don't think that condition can happen,
but I'm not sure it can't either.  Now the code will protect against either
being NULL.

18 years agootherset is known to be non-NULL based on checks before and DECREF after.
Neal Norwitz [Mon, 17 Jul 2006 00:57:15 +0000 (00:57 +0000)]
otherset is known to be non-NULL based on checks before and DECREF after.
DECREF otherset rather than XDECREF in error conditions too.

Reported by Klockwork #154.

18 years agoStop INCREFing name, then checking if it's NULL. name (f_name) should never
Neal Norwitz [Mon, 17 Jul 2006 00:55:45 +0000 (00:55 +0000)]
Stop INCREFing name, then checking if it's NULL.  name (f_name) should never
be NULL so assert it.  Fix one place where we could have passed NULL.

Reported by Klocwork #66.

18 years agoPyFunction_SetDefaults() is documented as taking None or a tuple.
Neal Norwitz [Sun, 16 Jul 2006 02:35:47 +0000 (02:35 +0000)]
PyFunction_SetDefaults() is documented as taking None or a tuple.
A NULL would crash the PyTuple_Check().  Now make NULL return a SystemError.

Reported by Klocwork #73.

18 years agoHandle a NULL name properly.
Neal Norwitz [Sun, 16 Jul 2006 02:32:03 +0000 (02:32 +0000)]
Handle a NULL name properly.

Reported by Klocwork #67

18 years agoUse sizeof(buffer) instead of duplicating the constants to ensure they won't
Neal Norwitz [Sun, 16 Jul 2006 02:22:30 +0000 (02:22 +0000)]
Use sizeof(buffer) instead of duplicating the constants to ensure they won't
be wrong.

The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1
to strncat.  strncat copies n+1 bytes from src (not dest).

Reported by Klocwork #58.

18 years agoFix memory leak under some conditions.
Neal Norwitz [Sun, 16 Jul 2006 02:17:36 +0000 (02:17 +0000)]
Fix memory leak under some conditions.

Reported by Klocwork, #98.

18 years agoFix memory leaks in some conditions.
Neal Norwitz [Sun, 16 Jul 2006 02:15:27 +0000 (02:15 +0000)]
Fix memory leaks in some conditions.

Reported by Klocwork #152.

18 years agoproto was dereffed above and is known to be good. No need for X.
Neal Norwitz [Sun, 16 Jul 2006 02:05:35 +0000 (02:05 +0000)]
proto was dereffed above and is known to be good.  No need for X.

Reported by Klocwork, #39.

18 years agoself is dereffed (and passed as first arg), so it's known to be good.
Neal Norwitz [Sun, 16 Jul 2006 02:02:57 +0000 (02:02 +0000)]
self is dereffed (and passed as first arg), so it's known to be good.
func is returned from PyArg_ParseTuple and also dereffed.

Reported by Klocwork, #30 (self one at least).

18 years agoa & b were dereffed above, so they are known to be valid pointers.
Neal Norwitz [Sun, 16 Jul 2006 02:00:32 +0000 (02:00 +0000)]
a & b were dereffed above, so they are known to be valid pointers.
z is known to be NULL, nothing to DECREF.

Reported by Klockwork, #107.

18 years agoBug #1512814, Fix incorrect lineno's when code within a function
Neal Norwitz [Sun, 16 Jul 2006 01:50:38 +0000 (01:50 +0000)]
Bug #1512814, Fix incorrect lineno's when code within a function
had more than 255 blank lines.  Byte codes need to go first, line #s second.

18 years agoclean up some link markup
Fred Drake [Sun, 16 Jul 2006 01:21:20 +0000 (01:21 +0000)]
clean up some link markup

18 years agoPatch #1220874: Update the binhex module for Mach-O.
Bob Ippolito [Sat, 15 Jul 2006 16:53:15 +0000 (16:53 +0000)]
Patch #1220874: Update the binhex module for Mach-O.

18 years agoBug #15187702 : ext/win-cookbook.html has a broken link to distutils
George Yoshida [Sat, 15 Jul 2006 16:03:49 +0000 (16:03 +0000)]
Bug #15187702 : ext/win-cookbook.html has a broken link to distutils

18 years agotypo
Fredrik Lundh [Fri, 14 Jul 2006 21:45:48 +0000 (21:45 +0000)]
typo

18 years agoUpdates for the ctypes documentation.
Thomas Heller [Fri, 14 Jul 2006 18:22:50 +0000 (18:22 +0000)]
Updates for the ctypes documentation.

18 years agoPatch #1521817: The index range checking on ctypes arrays containing
Thomas Heller [Fri, 14 Jul 2006 17:51:14 +0000 (17:51 +0000)]
Patch #1521817: The index range checking on ctypes arrays containing
exactly one element is enabled again.

18 years agoMake the prototypes of our private PyUnicode_FromWideChar and
Thomas Heller [Fri, 14 Jul 2006 15:01:05 +0000 (15:01 +0000)]
Make the prototypes of our private PyUnicode_FromWideChar and
PyUnicode_AsWideChar replacement functions compatible to the official
functions by using Py_ssize_t instead of int.

18 years agoBug #1223937: CalledProcessError.errno -> CalledProcessError.returncode.
Peter Astrand [Fri, 14 Jul 2006 14:04:45 +0000 (14:04 +0000)]
Bug #1223937: CalledProcessError.errno -> CalledProcessError.returncode.

18 years agoMention new options
Andrew M. Kuchling [Fri, 14 Jul 2006 13:32:38 +0000 (13:32 +0000)]
Mention new options

18 years agoFix Debug build of _ssl.
Martin v. Löwis [Fri, 14 Jul 2006 12:31:05 +0000 (12:31 +0000)]
Fix Debug build of _ssl.

18 years agoAdd debug output to analyse buildbot failure.
Martin v. Löwis [Fri, 14 Jul 2006 12:10:09 +0000 (12:10 +0000)]
Add debug output to analyse buildbot failure.

18 years agoExtend build_ssl to Win64, using VSExtComp.
Martin v. Löwis [Fri, 14 Jul 2006 09:58:55 +0000 (09:58 +0000)]
Extend build_ssl to Win64, using VSExtComp.

18 years agoTry to improve grammar further.
Neal Norwitz [Fri, 14 Jul 2006 07:20:04 +0000 (07:20 +0000)]
Try to improve grammar further.

18 years agoPatch #1521874: grammar errors in doanddont.tex.
Georg Brandl [Fri, 14 Jul 2006 07:12:54 +0000 (07:12 +0000)]
Patch #1521874: grammar errors in doanddont.tex.

18 years agoTypo fix
Andrew M. Kuchling [Thu, 13 Jul 2006 17:37:26 +0000 (17:37 +0000)]
Typo fix

18 years agoFix misleading words.
Thomas Heller [Thu, 13 Jul 2006 17:05:13 +0000 (17:05 +0000)]
Fix misleading words.

18 years agoFix #1521375. When running with root priviledges, 'gcc -o /dev/null'
Thomas Heller [Thu, 13 Jul 2006 17:01:14 +0000 (17:01 +0000)]
Fix #1521375.  When running with root priviledges, 'gcc -o /dev/null'
did overwrite /dev/null.  Use a temporary file instead of /dev/null.

18 years agoA misspelled preprocessor symbol caused ctypes to be always compiled
Thomas Heller [Thu, 13 Jul 2006 09:53:47 +0000 (09:53 +0000)]
A misspelled preprocessor symbol caused ctypes to be always compiled
without thread support.  Replaced WITH_THREADS with WITH_THREAD.

18 years agoAccept long options "--help" and "--version".
Georg Brandl [Wed, 12 Jul 2006 15:31:17 +0000 (15:31 +0000)]
Accept long options "--help" and "--version".

18 years agoFix the wrong description of LibraryLoader.LoadLibrary, and document
Thomas Heller [Wed, 12 Jul 2006 14:25:18 +0000 (14:25 +0000)]
Fix the wrong description of LibraryLoader.LoadLibrary, and document
the DEFAULT_MODE constant.

18 years agoFix #1467450: ctypes now uses RTLD_GLOBAL by default on OSX 10.3 to
Thomas Heller [Wed, 12 Jul 2006 08:43:47 +0000 (08:43 +0000)]
Fix #1467450: ctypes now uses RTLD_GLOBAL by default on OSX 10.3 to
load shared libraries.

18 years agoActually change the MAGIC #. Create a new section for 2.5c1 and mention the impact...
Neal Norwitz [Wed, 12 Jul 2006 07:28:29 +0000 (07:28 +0000)]
Actually change the MAGIC #.  Create a new section for 2.5c1 and mention the impact of changing the MAGIC #.

18 years agoFix uninitialized memory read reported by Valgrind when running doctest.
Neal Norwitz [Wed, 12 Jul 2006 05:27:46 +0000 (05:27 +0000)]
Fix uninitialized memory read reported by Valgrind when running doctest.
This could happen if size == 0.

18 years agoFix function name in error msg
Neal Norwitz [Wed, 12 Jul 2006 05:26:35 +0000 (05:26 +0000)]
Fix function name in error msg

18 years agoBug #1520864: unpacking singleton tuples in for loop (for x, in) work again.
Neal Norwitz [Wed, 12 Jul 2006 05:26:17 +0000 (05:26 +0000)]
Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again.

18 years agoChange the ctypes version number to 1.0.0.
Thomas Heller [Tue, 11 Jul 2006 18:40:50 +0000 (18:40 +0000)]
Change the ctypes version number to 1.0.0.

18 years agoWhen a foreign function is retrived by calling __getitem__ on a ctypes
Thomas Heller [Tue, 11 Jul 2006 18:28:35 +0000 (18:28 +0000)]
When a foreign function is retrived by calling __getitem__ on a ctypes
library instance, do not set it as attribute.

18 years agoBump version number; add sys._current_frames
Andrew M. Kuchling [Tue, 11 Jul 2006 17:20:16 +0000 (17:20 +0000)]
Bump version number;  add sys._current_frames

18 years agoAdd missing Py_DECREFs.
Thomas Heller [Tue, 11 Jul 2006 16:44:25 +0000 (16:44 +0000)]
Add missing Py_DECREFs.

18 years agoAdd missing Py_DECREF.
Thomas Heller [Tue, 11 Jul 2006 16:42:05 +0000 (16:42 +0000)]
Add missing Py_DECREF.

18 years agoTagging for release of Python 2.5b2
Anthony Baxter [Tue, 11 Jul 2006 03:35:09 +0000 (03:35 +0000)]
Tagging for release of Python 2.5b2

18 years agoWhitespace normalization. v2.5b2
Tim Peters [Tue, 11 Jul 2006 02:17:48 +0000 (02:17 +0000)]
Whitespace normalization.

18 years ago#1494314: Fix a regression with high-numbered sockets in 2.4.3. This
Anthony Baxter [Tue, 11 Jul 2006 02:04:09 +0000 (02:04 +0000)]
#1494314: Fix a regression with high-numbered sockets in 2.4.3. This
means that select() on sockets > FD_SETSIZE (typically 1024) work again.
The patch makes sockets use poll() internally where available.

18 years agoPatch #1519566: Remove unused _tofill member.
Martin v. Löwis [Mon, 10 Jul 2006 22:11:28 +0000 (22:11 +0000)]
Patch #1519566: Remove unused _tofill member.
Make begin_fill idempotent.
Update demo2 to demonstrate filling of concave shapes.

18 years agoWhitespace normalization.
Tim Peters [Mon, 10 Jul 2006 21:11:49 +0000 (21:11 +0000)]
Whitespace normalization.

18 years agoAfter approval from Anthony, merge the tim-current_frames
Tim Peters [Mon, 10 Jul 2006 21:08:24 +0000 (21:08 +0000)]
After approval from Anthony, merge the tim-current_frames
branch into the trunk.  This adds a new sys._current_frames()
function, which returns a dict mapping thread id to topmost
thread stack frame.

18 years agoMake it possible to run test_subprocess.py with Python 2.2, which lacks test_support...
Peter Astrand [Mon, 10 Jul 2006 20:39:49 +0000 (20:39 +0000)]
Make it possible to run test_subprocess.py with Python 2.2, which lacks test_support.reap_children().

18 years agoFix SF#1457312: bad socket error handling in distutils "upload" command.
Phillip J. Eby [Mon, 10 Jul 2006 19:18:35 +0000 (19:18 +0000)]
Fix SF#1457312: bad socket error handling in distutils "upload" command.

18 years agoFix SF#1516184 and add a test to prevent regression.
Phillip J. Eby [Mon, 10 Jul 2006 19:03:29 +0000 (19:03 +0000)]
Fix SF#1516184 and add a test to prevent regression.

18 years agoMoved the ctypes news entries from the 'Library' section into the
Thomas Heller [Mon, 10 Jul 2006 11:17:37 +0000 (11:17 +0000)]
Moved the ctypes news entries from the 'Library' section into the
'Extension Modules' section where they belong, probably.

This destroyes the original order of the news entries, don't know
if that is important or not.

18 years agoAssigning None to pointer type structure fields possible overwrote
Thomas Heller [Mon, 10 Jul 2006 11:11:10 +0000 (11:11 +0000)]
Assigning None to pointer type structure fields possible overwrote
wrong fields.

18 years agoFixed a segfault when ctypes.wintypes were imported on
Thomas Heller [Mon, 10 Jul 2006 09:31:06 +0000 (09:31 +0000)]
Fixed a segfault when ctypes.wintypes were imported on
non-Windows machines.

18 years agoFix bug #1518190: accept any integer or long value in the
Thomas Heller [Mon, 10 Jul 2006 09:10:28 +0000 (09:10 +0000)]
Fix bug #1518190: accept any integer or long value in the
ctypes.c_void_p constructor.

18 years agopreparing for 2.5b2
Anthony Baxter [Mon, 10 Jul 2006 07:41:04 +0000 (07:41 +0000)]
preparing for 2.5b2

18 years agoAdd svn:ignore.
Martin v. Löwis [Mon, 10 Jul 2006 07:29:41 +0000 (07:29 +0000)]
Add svn:ignore.

18 years agoChange error message to indicate that VS2003 is necessary to build extension modules...
Martin v. Löwis [Mon, 10 Jul 2006 07:26:41 +0000 (07:26 +0000)]
Change error message to indicate that VS2003 is necessary to build extension modules, not the .NET SDK.

18 years agoIntroduce DISTUTILS_USE_SDK as a flag to determine whether the
Martin v. Löwis [Mon, 10 Jul 2006 07:23:48 +0000 (07:23 +0000)]
Introduce DISTUTILS_USE_SDK as a flag to determine whether the
SDK environment should be used. Fixes #1508010.

18 years agoPatch #1504046: Add documentation for xml.etree.
Neal Norwitz [Mon, 10 Jul 2006 02:36:41 +0000 (02:36 +0000)]
Patch #1504046: Add documentation for xml.etree.

/F wrote the text docs, Englebert Gruber massaged it to latex and I
did some more massaging to try and improve the consistency and
fix some name mismatches between the declaration and text.

18 years agoPatch #1516912: improve Modules support for OpenVMS.
Neal Norwitz [Mon, 10 Jul 2006 01:18:57 +0000 (01:18 +0000)]
Patch #1516912: improve Modules support for OpenVMS.

18 years agoPart of SF patch #1484695. This removes dead code. The chksum was
Neal Norwitz [Mon, 10 Jul 2006 00:23:17 +0000 (00:23 +0000)]
Part of SF patch #1484695.  This removes dead code.  The chksum was
already verified in .frombuf() on the lines above.  If there was
a problem an exception is raised, so there was no way this condition
could have been true.

18 years agoFix doco. Backport candidate.
Neal Norwitz [Mon, 10 Jul 2006 00:05:34 +0000 (00:05 +0000)]
Fix doco.  Backport candidate.

18 years agoBug #1512814, Fix incorrect lineno's when code at module scope
Neal Norwitz [Mon, 10 Jul 2006 00:04:44 +0000 (00:04 +0000)]
Bug #1512814, Fix incorrect lineno's when code at module scope
started after line 256.

18 years agoOn 64 bit systems, int literals that use less than 64 bits are now ints
Neal Norwitz [Sun, 9 Jul 2006 22:14:42 +0000 (22:14 +0000)]
On 64 bit systems, int literals that use less than 64 bits are now ints
rather than longs.  This also fixes the test for eval(-sys.maxint - 1).

18 years agoFix SF bug 1441486: bad unary minus folding in compiler.
Neil Schemenauer [Sun, 9 Jul 2006 21:19:29 +0000 (21:19 +0000)]
Fix SF bug 1441486: bad unary minus folding in compiler.

18 years agoFix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation.
Neil Schemenauer [Sun, 9 Jul 2006 16:16:34 +0000 (16:16 +0000)]
Fix AST compiler bug #1501934: incorrect LOAD/STORE_GLOBAL generation.

18 years agoWhitespace normalization.
Tim Peters [Sat, 8 Jul 2006 19:55:05 +0000 (19:55 +0000)]
Whitespace normalization.

18 years agoAdd an additional test for bug #1519018.
Georg Brandl [Sat, 8 Jul 2006 12:15:27 +0000 (12:15 +0000)]
Add an additional test for bug #1519018.