]> granicus.if.org Git - python/log
python
19 years agoSF #1297059, doc incorrect return type for search() method. (There is a description...
Neal Norwitz [Fri, 23 Sep 2005 04:26:24 +0000 (04:26 +0000)]
SF #1297059, doc incorrect return type for search() method.  (There is a description of returned values at the top, so just remove the sentance and correct an example.)

19 years agoupdate URL into the Python wiki
Fred Drake [Thu, 22 Sep 2005 19:37:52 +0000 (19:37 +0000)]
update URL into the Python wiki
(forward port revision 1.10.4.1)

19 years agoPatches #1298449 and #1298499: Add some missing checks for error
Michael W. Hudson [Thu, 22 Sep 2005 09:19:01 +0000 (09:19 +0000)]
Patches #1298449 and #1298499: Add some missing checks for error
returns in cStringIO.c.  Thanks to Andrew Bennetts.

This must be a backport candidate.

19 years agoMacOSX 10.4 apparently does not allow the creation time to be set to later
Jack Jansen [Wed, 21 Sep 2005 20:52:11 +0000 (20:52 +0000)]
MacOSX 10.4 apparently does not allow the creation time to be set to later
than the modification time. Changed the SetDates test to accomodate.

Backport candidate.

19 years agoSF Patch #1297028, cjkcodecs does not initialize type pointer
Neal Norwitz [Wed, 21 Sep 2005 06:44:25 +0000 (06:44 +0000)]
SF Patch #1297028, cjkcodecs does not initialize type pointer

Fix segfault.  I tried to write a test, but it wouldn't crash
when running regrtest.  This really should have some sort of test.

Should definitely be backported.

19 years agoAdded a class MallocHeapOutputBufferType for types that are passed
Jack Jansen [Tue, 20 Sep 2005 21:11:19 +0000 (21:11 +0000)]
Added a class MallocHeapOutputBufferType for types that are passed
as &buffer, &size and allocated by the called function.

19 years agoUpdate 64-bit AIX and HP-UX build instructions (forward port).
Guido van Rossum [Tue, 20 Sep 2005 19:06:23 +0000 (19:06 +0000)]
Update 64-bit AIX and HP-UX build instructions (forward port).

19 years agoC89 compliance.
Armin Rigo [Tue, 20 Sep 2005 19:04:02 +0000 (19:04 +0000)]
C89 compliance.

19 years agotest and fix for buggy handling of exceptions raised by C functions,
Armin Rigo [Tue, 20 Sep 2005 18:50:13 +0000 (18:50 +0000)]
test and fix for buggy handling of exceptions raised by C functions,
causing the profiler to crash on an AssertionError if the same Python
function catches multiple exceptions from C functions.

19 years ago- On 64-bit platforms, when __len__() returns a value that cannot be
Guido van Rossum [Tue, 20 Sep 2005 18:49:54 +0000 (18:49 +0000)]
- On 64-bit platforms, when __len__() returns a value that cannot be
  represented as a C int, raise OverflowError.

(Forward port from 2.4.2; the patch to classobject.c was already in
but needed a correction in the error message text.)

19 years agoclean-up tracing of C functions. In particular, don't call the trace func
Armin Rigo [Tue, 20 Sep 2005 18:34:01 +0000 (18:34 +0000)]
clean-up tracing of C functions.  In particular, don't call the trace func
with an exception currently set!

19 years agoRemoved a check "if (args != NULL)" which is always True and makes no sense.
Armin Rigo [Tue, 20 Sep 2005 18:13:03 +0000 (18:13 +0000)]
Removed a check "if (args != NULL)" which is always True and makes no sense.

19 years agoDon't call memset() before checking that the ptr is not NULL.
Armin Rigo [Tue, 20 Sep 2005 18:07:47 +0000 (18:07 +0000)]
Don't call memset() before checking that the ptr is not NULL.

19 years agoAdded support for (optionally) bracketing calls with
Jack Jansen [Tue, 20 Sep 2005 15:13:53 +0000 (15:13 +0000)]
Added support for (optionally) bracketing calls with
Py_{BEGIN,END}_ALLOW_THREADS.

19 years ago- Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
Matthias Klose [Tue, 20 Sep 2005 07:02:49 +0000 (07:02 +0000)]
- Patch #1166948: locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
  to get the correct encoding.

- Patch #1166938: locale.py: Parse LANGUAGE as a colon separated list of
  languages.

19 years agoA minor fix for 64-bit platforms: when __len__() returns Python int
Guido van Rossum [Mon, 19 Sep 2005 22:42:41 +0000 (22:42 +0000)]
A minor fix for 64-bit platforms: when __len__() returns Python int
containing a value that doesn't fit in a C int, raise OverflowError
rather than truncating silently (and having 50% chance of hitting the
"it should be >= 0" error).

19 years agoReverted revision 1.83, which introduced a bug and subtle incompatibility
Armin Rigo [Mon, 19 Sep 2005 09:11:04 +0000 (09:11 +0000)]
Reverted revision 1.83, which introduced a bug and subtle incompatibility
issues.  See bug #1112856.

19 years agoNote fix of memory leak.
Neal Norwitz [Mon, 19 Sep 2005 06:49:27 +0000 (06:49 +0000)]
Note fix of memory leak.

19 years agoRemove unnecessary/extra parens when returning a value.
Neal Norwitz [Mon, 19 Sep 2005 06:45:53 +0000 (06:45 +0000)]
Remove unnecessary/extra parens when returning a value.

19 years agoForward port fixes for problems reported by valgrind
Neal Norwitz [Mon, 19 Sep 2005 06:43:44 +0000 (06:43 +0000)]
Forward port fixes for problems reported by valgrind

19 years agoskip _locale test if OS X < 10.4
Skip Montanaro [Mon, 19 Sep 2005 03:54:46 +0000 (03:54 +0000)]
skip _locale test if OS X < 10.4

19 years agoPatch #1268314: Cache lines in StreamReader.readlines for performance.
Martin v. Löwis [Sun, 18 Sep 2005 08:34:39 +0000 (08:34 +0000)]
Patch #1268314: Cache lines in StreamReader.readlines for performance.
Will backport to Python 2.4.

19 years agoPatch #1213831: Fix typo in unicodedata._getcode.
Martin v. Löwis [Sun, 18 Sep 2005 08:17:56 +0000 (08:17 +0000)]
Patch #1213831: Fix typo in unicodedata._getcode.
Will backport to Python 2.4.

19 years agoTest case for latest complexobject fix.
Georg Brandl [Sat, 17 Sep 2005 07:51:15 +0000 (07:51 +0000)]
Test case for latest complexobject fix.

19 years agoAdded lock acquisition around handler removal from logger
Vinay Sajip [Fri, 16 Sep 2005 10:33:40 +0000 (10:33 +0000)]
Added lock acquisition around handler removal from logger

19 years agoNo longer ignore exceptions raised by comparisons during key lookup.
Raymond Hettinger [Fri, 16 Sep 2005 07:14:21 +0000 (07:14 +0000)]
No longer ignore exceptions raised by comparisons during key lookup.
Inspired by Armin Rigo's suggestion to do the same with dictionaries.

19 years agopatch [ 1118729 ] Error in representation of complex numbers(again)
Georg Brandl [Fri, 16 Sep 2005 06:42:26 +0000 (06:42 +0000)]
patch [ 1118729 ] Error in representation of complex numbers(again)

19 years agoChange type on variable to silence gcc 4 warning. Call signature was found at
Brett Cannon [Fri, 16 Sep 2005 02:43:35 +0000 (02:43 +0000)]
Change type on variable to silence gcc 4 warning.  Call signature was found at
http://darwinsource.opendarwin.org/10.4.2/dyld-43.1/src/dyldAPIs.cpp .

19 years agopatch [ 1277677 ] tkinter hello world example bug
Georg Brandl [Thu, 15 Sep 2005 16:02:13 +0000 (16:02 +0000)]
patch [ 1277677 ] tkinter hello world example bug

19 years agopatch [ 1119423 ] python -c readlink()s and stat()s '-c'
Georg Brandl [Thu, 15 Sep 2005 13:00:34 +0000 (13:00 +0000)]
patch [ 1119423 ] python -c readlink()s and stat()s '-c'

19 years agofix typo
Georg Brandl [Thu, 15 Sep 2005 11:16:28 +0000 (11:16 +0000)]
fix typo

19 years agobug [ 868706 ] Calling builtin function 'eval' from C causes seg fault.
Georg Brandl [Thu, 15 Sep 2005 10:46:13 +0000 (10:46 +0000)]
bug [ 868706 ] Calling builtin function 'eval' from C causes seg fault.

19 years agoClear out the regex cache when the TimeRE cache is invalidated by a locale
Brett Cannon [Thu, 15 Sep 2005 02:34:56 +0000 (02:34 +0000)]
Clear out the regex cache when the TimeRE cache is invalidated by a locale
change.

Fixes bug #1290505.

19 years ago*** empty log message ***
Georg Brandl [Wed, 14 Sep 2005 20:53:32 +0000 (20:53 +0000)]
*** empty log message ***

19 years agobug [ 1007046 ] os.startfile() doesn't accept Unicode filenames
Georg Brandl [Wed, 14 Sep 2005 20:51:40 +0000 (20:51 +0000)]
bug [ 1007046 ] os.startfile() doesn't accept Unicode filenames

19 years agobug [ 1274828 ] splitunc not documented
Georg Brandl [Wed, 14 Sep 2005 20:42:00 +0000 (20:42 +0000)]
bug [ 1274828 ] splitunc not documented

19 years agoComplete format code support in getargs.c::skipitem(), which is called when
Georg Brandl [Wed, 14 Sep 2005 19:38:29 +0000 (19:38 +0000)]
Complete format code support in getargs.c::skipitem(), which is called when
evaluating keyword arguments.

CVS: ----------------------------------------------------------------------
CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS:  Python/getargs.c
CVS: ----------------------------------------------------------------------

19 years agoComplete format code support in getargs.c::skipitem(), which is called when
Georg Brandl [Wed, 14 Sep 2005 19:29:53 +0000 (19:29 +0000)]
Complete format code support in getargs.c::skipitem(), which is called when
evaluating keyword arguments.

19 years ago- Changes donated by Elemental Security to make it work on AIX 5.3
Guido van Rossum [Wed, 14 Sep 2005 18:09:42 +0000 (18:09 +0000)]
- Changes donated by Elemental Security to make it work on AIX 5.3
  with IBM's 64-bit compiler (SF patch #1284289).  This also closes SF
  bug #105470: test_pwd fails on 64bit system (Opteron).

19 years ago- Changes donated by Elemental Security to make it work on HP-UX 11 on
Guido van Rossum [Wed, 14 Sep 2005 17:49:54 +0000 (17:49 +0000)]
- Changes donated by Elemental Security to make it work on HP-UX 11 on
  Itanium2 with HP's 64-bit compiler (SF patch #1225212).

19 years agocomma nit
Georg Brandl [Wed, 14 Sep 2005 17:25:02 +0000 (17:25 +0000)]
comma nit

19 years agoBug #1202493: Fixing SRE parser to handle '{}' as perl does, rather than
Gustavo Niemeyer [Wed, 14 Sep 2005 08:54:39 +0000 (08:54 +0000)]
Bug #1202493: Fixing SRE parser to handle '{}' as perl does, rather than
considering it exactly like a '*'.

19 years agoPatch #1290454: Fix reload() error message when parent module is not in
Georg Brandl [Wed, 14 Sep 2005 06:56:20 +0000 (06:56 +0000)]
Patch #1290454: Fix reload() error message when parent module is not in
sys.modules.

19 years agoAdd more links to the 'What Next?' section; rewrite to be briefer
Andrew M. Kuchling [Tue, 13 Sep 2005 19:56:06 +0000 (19:56 +0000)]
Add more links to the 'What Next?' section; rewrite to be briefer

19 years agoSpeed-up escape()
Raymond Hettinger [Mon, 12 Sep 2005 22:50:37 +0000 (22:50 +0000)]
Speed-up escape()

19 years agoBetter wording for integer ref entry.
Georg Brandl [Mon, 12 Sep 2005 12:49:38 +0000 (12:49 +0000)]
Better wording for integer ref entry.

19 years agoShorten run-on sentence
Andrew M. Kuchling [Mon, 12 Sep 2005 12:45:37 +0000 (12:45 +0000)]
Shorten run-on sentence

19 years agoUpdate link
Andrew M. Kuchling [Mon, 12 Sep 2005 12:44:20 +0000 (12:44 +0000)]
Update link

19 years agoUpdate link
Andrew M. Kuchling [Mon, 12 Sep 2005 12:43:57 +0000 (12:43 +0000)]
Update link

19 years agoAdd FAQ entry regarding non-expoential representation.
Raymond Hettinger [Sun, 11 Sep 2005 18:21:52 +0000 (18:21 +0000)]
Add FAQ entry regarding non-expoential representation.

19 years agoMinor cleanup.
Raymond Hettinger [Sun, 11 Sep 2005 16:34:05 +0000 (16:34 +0000)]
Minor cleanup.

19 years agoCorrected version of 1.170
Raymond Hettinger [Sat, 10 Sep 2005 18:17:54 +0000 (18:17 +0000)]
Corrected version of 1.170

19 years agoRevert 1.170. Add tests.
Raymond Hettinger [Sat, 10 Sep 2005 14:30:09 +0000 (14:30 +0000)]
Revert 1.170.  Add tests.

19 years agoSimplify and speed-up unquote().
Raymond Hettinger [Sat, 10 Sep 2005 06:49:04 +0000 (06:49 +0000)]
Simplify and speed-up unquote().

19 years agoSimplify and speed-up quote_plus().
Raymond Hettinger [Sat, 10 Sep 2005 02:27:41 +0000 (02:27 +0000)]
Simplify and speed-up quote_plus().

19 years agoSF #1285086: urllib.quote is too slow
Raymond Hettinger [Fri, 9 Sep 2005 22:27:13 +0000 (22:27 +0000)]
SF #1285086:  urllib.quote is too slow

Simplify and speed-up quote() function.

19 years agoAdded _handlerList to allow shutdown to flush and close handlers in reverse order...
Vinay Sajip [Thu, 8 Sep 2005 18:14:16 +0000 (18:14 +0000)]
Added _handlerList to allow shutdown to flush and close handlers in reverse order of creation (see SF# 1282539)

19 years agoQuote docstring with r"" to keep '\r\n' in example code.
Hye-Shik Chang [Wed, 7 Sep 2005 07:40:05 +0000 (07:40 +0000)]
Quote docstring with r"" to keep '\r\n' in example code.

19 years agonote that the return and yield statements cannot be used at the top level in
Fred Drake [Wed, 7 Sep 2005 05:17:07 +0000 (05:17 +0000)]
note that the return and yield statements cannot be used at the top level in
exec statements; people coming from certain other languages seem to be
confused by this on a regular basis

19 years ago- fix typo report by email, only 1.5 years late
Fred Drake [Wed, 7 Sep 2005 04:57:56 +0000 (04:57 +0000)]
- fix typo report by email, only 1.5 years late
- fix several consistency nits relating to \method{...()}

19 years agobreak sets a breakpoint rather than stopping the loop.
Neal Norwitz [Mon, 5 Sep 2005 16:16:49 +0000 (16:16 +0000)]
break sets a breakpoint rather than stopping the loop.
It *appears* a flag is necessary instead.
This was tested in gdb 6.0.

Backport candidate

19 years agoClarify what is meant with "whole numbers".
Georg Brandl [Sun, 4 Sep 2005 18:30:19 +0000 (18:30 +0000)]
Clarify what is meant with "whole numbers".

19 years agobug [ 1274069 ] bz2module.c compiler warning
Georg Brandl [Sat, 3 Sep 2005 07:49:53 +0000 (07:49 +0000)]
bug [ 1274069 ] bz2module.c compiler warning

19 years ago- Correct PyBool_FromLong's return type and its description.
Georg Brandl [Sat, 3 Sep 2005 07:27:26 +0000 (07:27 +0000)]
- Correct PyBool_FromLong's return type and its description.
- Unify function description mode ("Return X" vs "Returns X")

19 years agoChanged _srcfile determination to support py2exe.
Vinay Sajip [Fri, 2 Sep 2005 11:20:33 +0000 (11:20 +0000)]
Changed _srcfile determination to support py2exe.

19 years agoRemove statement about meaning of constants; arguably it's incorrect
Andrew M. Kuchling [Thu, 1 Sep 2005 14:08:38 +0000 (14:08 +0000)]
Remove statement about meaning of constants; arguably it's incorrect

19 years agoFix rest markup and typos.
Walter Dörwald [Thu, 1 Sep 2005 12:04:29 +0000 (12:04 +0000)]
Fix rest markup and typos.

19 years agoSF bug #1235646: codecs.StreamRecoder.next() now reencodes the data it reads
Walter Dörwald [Thu, 1 Sep 2005 11:56:53 +0000 (11:56 +0000)]
SF bug #1235646: codecs.StreamRecoder.next() now reencodes the data it reads
from the input stream, so that the output is a byte string in the correct
encoding instead of a unicode string.

19 years agoReverting previous checkin. This breaks too much of HTMLParser to be applied
Georg Brandl [Thu, 1 Sep 2005 06:25:34 +0000 (06:25 +0000)]
Reverting previous checkin. This breaks too much of HTMLParser to be applied
without thought. Anyway, such malformed HTML is better handled by something
like BeautifulSoup.

19 years agoNo need to import exceptions, they are builtins
Neal Norwitz [Thu, 1 Sep 2005 00:45:28 +0000 (00:45 +0000)]
No need to import exceptions, they are builtins

19 years agoRemove unused import
Neal Norwitz [Thu, 1 Sep 2005 00:39:02 +0000 (00:39 +0000)]
Remove unused import

19 years agoFix bug in last checkin (2.231). To match previous behavior, unicode
Neil Schemenauer [Wed, 31 Aug 2005 23:02:05 +0000 (23:02 +0000)]
Fix bug in last checkin (2.231).  To match previous behavior, unicode
subclasses should be substituted as-is and not have tp_str called on
them.

19 years agopatch [ 1242454 ] shutil.copytree() quits too soon after an error.
Georg Brandl [Wed, 31 Aug 2005 22:48:45 +0000 (22:48 +0000)]
patch [ 1242454 ] shutil.copytree() quits too soon after an error.

19 years agoWhitespace normalization.
Georg Brandl [Wed, 31 Aug 2005 22:21:15 +0000 (22:21 +0000)]
Whitespace normalization.

19 years agobug [ 761452 ] HTMLParser chokes on my.yahoo.com output
Georg Brandl [Wed, 31 Aug 2005 22:08:45 +0000 (22:08 +0000)]
bug [ 761452 ] HTMLParser chokes on my.yahoo.com output

19 years agoTypo fix
Andrew M. Kuchling [Wed, 31 Aug 2005 17:49:38 +0000 (17:49 +0000)]
Typo fix

19 years agoFrom c.l.py comments: link to zlib manual, and disclaim completeness
Andrew M. Kuchling [Wed, 31 Aug 2005 16:52:40 +0000 (16:52 +0000)]
From c.l.py comments: link to zlib manual, and disclaim completeness

19 years agoUpdate URLs
Andrew M. Kuchling [Wed, 31 Aug 2005 14:43:10 +0000 (14:43 +0000)]
Update URLs

19 years agoExplain what file descriptors are; this change has been sitting in my tree for a...
Andrew M. Kuchling [Wed, 31 Aug 2005 13:50:17 +0000 (13:50 +0000)]
Explain what file descriptors are; this change has been sitting in my tree for a while

19 years agoSF bug #1277016: Turn sentence fragment into a complete sentence.
Walter Dörwald [Wed, 31 Aug 2005 11:03:12 +0000 (11:03 +0000)]
SF bug #1277016: Turn sentence fragment into a complete sentence.

19 years agoupdated __version__
Piers Lauder [Wed, 31 Aug 2005 10:50:03 +0000 (10:50 +0000)]
updated __version__

19 years agochanged select() so readonly flag is treated as a boolean
Piers Lauder [Wed, 31 Aug 2005 10:46:29 +0000 (10:46 +0000)]
changed select() so readonly flag is treated as a boolean

19 years agoSF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain
Walter Dörwald [Tue, 30 Aug 2005 10:23:14 +0000 (10:23 +0000)]
SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain
about illegal code points. The codec now supports PEP 293 style error handlers.
(This is a variant of the Nik Haldimann's patch that detects truncated data)

19 years agoSF #1275796, fix distutils typo "sortcut" -> "shortcut"
Neal Norwitz [Tue, 30 Aug 2005 03:34:46 +0000 (03:34 +0000)]
SF #1275796, fix distutils typo "sortcut" -> "shortcut"

19 years agoAdd to-do list
Andrew M. Kuchling [Tue, 30 Aug 2005 01:28:15 +0000 (01:28 +0000)]
Add to-do list

19 years agoRemove rexec howto; it's kind of pointless now
Andrew M. Kuchling [Tue, 30 Aug 2005 01:27:40 +0000 (01:27 +0000)]
Remove rexec howto; it's kind of pointless now

19 years agoCommit the howto source to the main Python repository, with Fred's approval
Andrew M. Kuchling [Tue, 30 Aug 2005 01:25:05 +0000 (01:25 +0000)]
Commit the howto source to the main Python repository, with Fred's approval

19 years agoFix logic error introduced in last commit. Also add a comment to explain what
Brett Cannon [Mon, 29 Aug 2005 18:25:55 +0000 (18:25 +0000)]
Fix logic error introduced in last commit.  Also add a comment to explain what
the code is doing.

19 years agoAdd missing \end, noted by George Yoshida
Andrew M. Kuchling [Mon, 29 Aug 2005 13:30:12 +0000 (13:30 +0000)]
Add missing \end, noted by George Yoshida

19 years agofix bug where str.find() was being misused where __contains__ should have been
Brett Cannon [Sat, 27 Aug 2005 19:25:59 +0000 (19:25 +0000)]
fix bug where str.find() was being misused where __contains__ should have been
used.

19 years agoWrite section on PEP 342
Andrew M. Kuchling [Sat, 27 Aug 2005 18:45:47 +0000 (18:45 +0000)]
Write section on PEP 342

19 years agopatch [ 1274550 ] libtarfile.tex: external URL changed
Georg Brandl [Sat, 27 Aug 2005 17:10:35 +0000 (17:10 +0000)]
patch [ 1274550 ] libtarfile.tex: external URL changed

19 years agopatch [ 1274630 ] documentation fixes
Georg Brandl [Sat, 27 Aug 2005 17:04:58 +0000 (17:04 +0000)]
patch [ 1274630 ] documentation fixes

19 years agopatch [ 1274630 ] documentation fixes
Georg Brandl [Sat, 27 Aug 2005 17:04:58 +0000 (17:04 +0000)]
patch [ 1274630 ] documentation fixes

19 years agoPatch #1168594: set sizes of non-regular files to zero. Fixes #1167128.
Martin v. Löwis [Sat, 27 Aug 2005 10:07:56 +0000 (10:07 +0000)]
Patch #1168594: set sizes of non-regular files to zero. Fixes #1167128.
Will backport to 2.4.

19 years agoWhitespace normalization (via reindent.py).
Tim Peters [Fri, 26 Aug 2005 15:20:46 +0000 (15:20 +0000)]
Whitespace normalization (via reindent.py).

19 years agotestSeekBackwardsFromEnd(): Repair obvious syntax error.
Tim Peters [Fri, 26 Aug 2005 14:33:57 +0000 (14:33 +0000)]
testSeekBackwardsFromEnd():  Repair obvious syntax error.

19 years agoAdd list() around xreadlines()
Georg Brandl [Fri, 26 Aug 2005 13:23:54 +0000 (13:23 +0000)]
Add list() around xreadlines()

19 years ago*** empty log message ***
Georg Brandl [Fri, 26 Aug 2005 13:21:50 +0000 (13:21 +0000)]
*** empty log message ***

19 years ago__new__ is a static method
Georg Brandl [Fri, 26 Aug 2005 12:56:22 +0000 (12:56 +0000)]
__new__ is a static method