]> granicus.if.org Git - python/log
python
22 years agoIntegrate updates to the GNU info conversion.
Fred Drake [Wed, 13 Nov 2002 19:31:04 +0000 (19:31 +0000)]
Integrate updates to the GNU info conversion.
This includes SF patch #590352 and additional support for more of the custom
markup.

22 years ago- Committing the modified signature lines I've been using for a long
Fred Drake [Wed, 13 Nov 2002 19:16:37 +0000 (19:16 +0000)]
- Committing the modified signature lines I've been using for a long
  time in http://www.python.org/dev/doc/.  There have been no bug
  reports on these for a long time now.
- Remove local "use" statement that duplicates a top-level "use".

22 years agoDocument struct_time and the field names.
Fred Drake [Wed, 13 Nov 2002 19:05:01 +0000 (19:05 +0000)]
Document struct_time and the field names.

22 years agoAdd \funcline, \funclineni, and \methodlineni to the list of functions
Fred Drake [Wed, 13 Nov 2002 17:55:17 +0000 (17:55 +0000)]
Add \funcline, \funclineni, and \methodlineni to the list of functions
that are processed before their arguments.
Closes SF bug #637807.

22 years agoFix broken markup.
Fred Drake [Wed, 13 Nov 2002 17:48:15 +0000 (17:48 +0000)]
Fix broken markup.
Closes SF bug #637807.

22 years agoRemove some test code.
Jeremy Hylton [Wed, 13 Nov 2002 17:30:32 +0000 (17:30 +0000)]
Remove some test code.

The buggy yahoo server was fixed, and the opalgroup test files are
gone.

22 years agoFix SF bug #637789: Handle Proxy-Connection header.
Jeremy Hylton [Wed, 13 Nov 2002 17:27:43 +0000 (17:27 +0000)]
Fix SF bug #637789: Handle Proxy-Connection header.

Also, remove unused local variable noted by pychecker.

22 years agoBack out part of rev. 1.53, restoring the use of the string module.
Andrew M. Kuchling [Wed, 13 Nov 2002 17:03:05 +0000 (17:03 +0000)]
Back out part of rev. 1.53, restoring the use of the string module.
The two long lines have been reflowed differently; hopefully someone on
BeOS can test them.  Rev. 1.53 also converted string.atoi() to int(); I've
left that alone.

22 years agoNews about the logging module.
Guido van Rossum [Wed, 13 Nov 2002 16:29:18 +0000 (16:29 +0000)]
News about the logging module.

22 years agoGet rid of #! lines, references to usage as __main__, README.txt, and
Guido van Rossum [Wed, 13 Nov 2002 16:18:29 +0000 (16:18 +0000)]
Get rid of #! lines, references to usage as __main__, README.txt, and
http://www.red-dove.com/python_logging.html.

22 years agoAdding Vinay Sajip's logging package.
Guido van Rossum [Wed, 13 Nov 2002 16:15:58 +0000 (16:15 +0000)]
Adding Vinay Sajip's logging package.

22 years agoTypo: it's --> its
Fred Drake [Wed, 13 Nov 2002 15:56:13 +0000 (15:56 +0000)]
Typo: it's --> its
Closes SF bug #637810.

22 years agoUpdate: Older versions of Python crashed when calling repr()
Fred Drake [Wed, 13 Nov 2002 15:32:34 +0000 (15:32 +0000)]
Update:  Older versions of Python crashed when calling repr()
(including the implied call using back-ticks) of a recursive object,
but this is no longer the case.
Reported by Manus Hand via email.

22 years agoImproved clarity and thoroughness of docstring.
Raymond Hettinger [Wed, 13 Nov 2002 15:26:37 +0000 (15:26 +0000)]
Improved clarity and thoroughness of docstring.
Added design notes in comments.
Used better variable names.
Eliminated the unsavory "pool[-k:]" which was an aspiring bug (for k==0).
Used if/else to show the two algorithms in parallel style.
Added one more test assertion.

22 years agoClarify that PyImport_AddModule() and PyImport_ExecCodeModule() don't
Fred Drake [Wed, 13 Nov 2002 15:13:38 +0000 (15:13 +0000)]
Clarify that PyImport_AddModule() and PyImport_ExecCodeModule() don't
add any package support structure even if a dotted-name is passed for
the module.
Closes SF bug #424106.

22 years agoNormalize whitespace.
Fred Drake [Wed, 13 Nov 2002 14:59:06 +0000 (14:59 +0000)]
Normalize whitespace.
Fix a number of markup consistency buglets.

22 years agoFix typo in comment.
Fred Drake [Wed, 13 Nov 2002 14:38:17 +0000 (14:38 +0000)]
Fix typo in comment.

22 years agoUpdate file
Andrew M. Kuchling [Wed, 13 Nov 2002 13:26:59 +0000 (13:26 +0000)]
Update file

22 years agoDocstring typo fix
Andrew M. Kuchling [Wed, 13 Nov 2002 13:25:46 +0000 (13:25 +0000)]
Docstring typo fix

22 years agoFill out the 'Porting' section
Andrew M. Kuchling [Wed, 13 Nov 2002 13:24:41 +0000 (13:24 +0000)]
Fill out the 'Porting' section
Add random.sample()

22 years agoThe libsocket/libnsl problem is specific to IRIX 4. Confirmed by Tim Rice.
Martin v. Löwis [Wed, 13 Nov 2002 08:51:19 +0000 (08:51 +0000)]
The libsocket/libnsl problem is specific to IRIX 4. Confirmed by Tim Rice.

22 years agoFix SF # 464405, freeze doesn't like DOS files on Linux
Neal Norwitz [Tue, 12 Nov 2002 23:21:15 +0000 (23:21 +0000)]
Fix SF # 464405, freeze doesn't like DOS files on Linux

Use universal newline support when opening a file for freezing.

22 years agoClarified meaning of \w and \W with respect to the UNICODE and LOCALE flags.
Fred Drake [Tue, 12 Nov 2002 23:12:54 +0000 (23:12 +0000)]
Clarified meaning of \w and \W with respect to the UNICODE and LOCALE flags.
Closes SF bug #635595.

22 years agoSF # 627900, Bytecode copy bug in freeze
Neal Norwitz [Tue, 12 Nov 2002 23:09:12 +0000 (23:09 +0000)]
SF # 627900, Bytecode copy bug in freeze

Pass co_freevars and co_cellvars to new.code().
Will backport.

22 years agoFix SF # 635969, No error "not all arguments converted"
Neal Norwitz [Tue, 12 Nov 2002 23:01:12 +0000 (23:01 +0000)]
Fix SF # 635969, No error "not all arguments converted"

When mwh added extended slicing, strings and unicode became mappings.
Thus, dict was set which prevented an error when doing:
newstr = 'format without a percent' % string_value

This fix raises an exception again when there are no formats
and % with a string value.

22 years agoHandle the Content-Type header a little more appropriately: if it
Fred Drake [Tue, 12 Nov 2002 22:19:34 +0000 (22:19 +0000)]
Handle the Content-Type header a little more appropriately:  if it
contains options, drop them to get the major/minor content type.
Modified from the supplied patch to support more whitespace variation.
Closes SF patch #613605.

22 years agoSF patch 637176: list.sort crasher
Tim Peters [Tue, 12 Nov 2002 22:08:10 +0000 (22:08 +0000)]
SF patch 637176: list.sort crasher

Armin Rigo's Draconian but effective fix for

SF bug 453523: list.sort crasher

slightly fiddled to catch more cases of list mutation.  The dreaded
internal "immutable list type" is gone!  OTOH, if you look at a list
*while* it's being sorted now, it will appear to be empty.  Better
than a core dump.

22 years agoClarified documentation of tempnam().
Fred Drake [Tue, 12 Nov 2002 22:07:11 +0000 (22:07 +0000)]
Clarified documentation of tempnam().
Closes SF bug #635656.

22 years agoUpdate text to refer to 2.2.2
Andrew M. Kuchling [Tue, 12 Nov 2002 18:59:20 +0000 (18:59 +0000)]
Update text to refer to 2.2.2
Remove an XXX item: I'm not going to write a section on the email package
    at this point

22 years agoRemove extra word
Andrew M. Kuchling [Tue, 12 Nov 2002 18:45:46 +0000 (18:45 +0000)]
Remove extra word

22 years agoSF patch 629637: Add sample(population, k) method to the random module.
Raymond Hettinger [Tue, 12 Nov 2002 17:41:57 +0000 (17:41 +0000)]
SF patch 629637:  Add sample(population, k) method to the random module.
Used for random sampling without replacement.

22 years agodelete reference to building on Minix, which will be unsupported in 2.3
Skip Montanaro [Tue, 12 Nov 2002 16:53:36 +0000 (16:53 +0000)]
delete reference to building on Minix, which will be unsupported in 2.3

22 years agoUse PyInt_AsLong instead of PyInt_AS_LONG after the call to
Walter Dörwald [Tue, 12 Nov 2002 11:42:20 +0000 (11:42 +0000)]
Use PyInt_AsLong instead of PyInt_AS_LONG after the call to
PyNumber_Int, because now PyNumber_Int might return a long,
and PyInt_AsLong can handle that, whereas PyInt_AS_LONG can't.

This closes SF bug #629989.

22 years agoDon't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.
Martin v. Löwis [Tue, 12 Nov 2002 06:04:39 +0000 (06:04 +0000)]
Don't define _XOPEN_SOURCE and _POSIX_C_SOURCE on FreeBSD 5.0. Fixes #636318.

22 years agoForgot a paren in the MSVC + 64-bit + Intel case.
Tim Peters [Mon, 11 Nov 2002 20:21:06 +0000 (20:21 +0000)]
Forgot a paren in the MSVC + 64-bit + Intel case.

22 years agoAdded a blurb about the change to sys.version under MSVC.
Tim Peters [Mon, 11 Nov 2002 19:51:33 +0000 (19:51 +0000)]
Added a blurb about the change to sys.version under MSVC.

22 years agoSome help for SF 614770: MSVC 7.0 compiler support
Tim Peters [Mon, 11 Nov 2002 19:44:39 +0000 (19:44 +0000)]
Some help for SF 614770:  MSVC 7.0 compiler support

This changes sys.version under Microsoft builds to include the MS compiler
version number (_MSC_VER).  Since VC 6 and VC 7 are apparently
incompatible, and both can be installed on a single box, distutils needs
some way to figure out which version of MSVC a given Python was compiled
under.

As also suggested by MvL, got rid of #ifdef'ery for the defunct _M_ALPHA
target.

Bugfix candidate?  Hard to say.  As far as I'm concerned, VC 7 wasn't
a supported platform in the 2.2 line.  If somebody thinks it should be,
they can do the work.

22 years agoUse new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Martin v. Löwis [Mon, 11 Nov 2002 14:58:44 +0000 (14:58 +0000)]
Use new-style CHECK_TYPE to avoid modifying confdefs.h. Include sys/types.h
Fixes #636431.

22 years agoProtect pyconfig.h from multiple inclusions.
Martin v. Löwis [Mon, 11 Nov 2002 13:37:28 +0000 (13:37 +0000)]
Protect pyconfig.h from multiple inclusions.

22 years agoDo not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034
Martin v. Löwis [Mon, 11 Nov 2002 13:26:51 +0000 (13:26 +0000)]
Do not define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012]. Fixes #635034

22 years agoDon't define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012].
Martin v. Löwis [Mon, 11 Nov 2002 13:26:51 +0000 (13:26 +0000)]
Don't define _XOPEN_SOURCE on OpenBSD 2.x and 3.[012].

22 years agoCheck whether we can take the address of chown, link, and symlink.
Martin v. Löwis [Mon, 11 Nov 2002 13:23:45 +0000 (13:23 +0000)]
Check whether we can take the address of chown, link, and symlink.

22 years ago- Use imp to find appletrawmain.py in stead of hand-crafting the path
Jack Jansen [Mon, 11 Nov 2002 00:06:14 +0000 (00:06 +0000)]
- Use imp to find appletrawmain.py in stead of hand-crafting the path
  to it.
- Allow for symlinks in the applet template.

22 years ago- Building IDE is optional on waste being available, similar to building
Jack Jansen [Mon, 11 Nov 2002 00:05:00 +0000 (00:05 +0000)]
- Building IDE is optional on waste being available, similar to building
  IDLE (it was a fatal error before)
- Shuffled a few things around to facilitate the experimental building
  of MacPython for Jaguar's pre-installed python.

22 years agoMake private functions static so we don't pollute the namespace
Neal Norwitz [Sun, 10 Nov 2002 14:33:26 +0000 (14:33 +0000)]
Make private functions static so we don't pollute the namespace

22 years agoAllow both string and Unicode objects in levels.
Martin v. Löwis [Sat, 9 Nov 2002 20:19:12 +0000 (20:19 +0000)]
Allow both string and Unicode objects in levels.

22 years agoDon't try to convert the test filename to Unicode with -U.
Martin v. Löwis [Sat, 9 Nov 2002 19:57:26 +0000 (19:57 +0000)]
Don't try to convert the test filename to Unicode with -U.

22 years agoFix typo.
Martin v. Löwis [Sat, 9 Nov 2002 19:54:06 +0000 (19:54 +0000)]
Fix typo.

22 years agoLook in db4 directories when checking for db4.
Martin v. Löwis [Sat, 9 Nov 2002 19:53:04 +0000 (19:53 +0000)]
Look in db4 directories when checking for db4.

22 years agoSearch for tix subdirectories. Fixes #564729. Will backport to 2.2.
Martin v. Löwis [Sat, 9 Nov 2002 19:01:44 +0000 (19:01 +0000)]
Search for tix subdirectories. Fixes #564729. Will backport to 2.2.

22 years agoRestore to ANSI C.
Michael W. Hudson [Sat, 9 Nov 2002 14:47:18 +0000 (14:47 +0000)]
Restore to ANSI C.

22 years agoInstall the bz2 DLL on Windows.
Tim Peters [Sat, 9 Nov 2002 08:24:58 +0000 (08:24 +0000)]
Install the bz2 DLL on Windows.

22 years agoI already forgot what I changed -- it wasn't important <wink>.
Tim Peters [Sat, 9 Nov 2002 06:51:30 +0000 (06:51 +0000)]
I already forgot what I changed -- it wasn't important <wink>.

22 years agoOK -- all tests pass on Windows now. The rest were due to 3 more
Tim Peters [Sat, 9 Nov 2002 06:49:43 +0000 (06:49 +0000)]
OK -- all tests pass on Windows now.  The rest were due to 3 more
binary-vs-text-mode screwups.

22 years agoMore tests run on Windows now. Something is still wrong here, but no
Tim Peters [Sat, 9 Nov 2002 06:45:31 +0000 (06:45 +0000)]
More tests run on Windows now.  Something is still wrong here, but no
idea what.  Added liberal XXX explanations for the next guy.

22 years agoMany changes to get this to pass on Windows, and to make it easier to
Tim Peters [Sat, 9 Nov 2002 06:31:56 +0000 (06:31 +0000)]
Many changes to get this to pass on Windows, and to make it easier to
figure out what the code was doing.  The fixes were a combination of
closing open files before deletion, opening files in binary mode, and
plain skipping things that can't work on Windows (BaseTest.decompress
uses a process gimmick that doesn't exist on Windows, and, even if it
did, assumes a "bunzip2" executable is on PATH).

22 years agoWhitespace normalization.
Tim Peters [Sat, 9 Nov 2002 05:26:15 +0000 (05:26 +0000)]
Whitespace normalization.

22 years agoComment out the test docstrings so we can at least tell which tests are
Tim Peters [Sat, 9 Nov 2002 05:22:41 +0000 (05:22 +0000)]
Comment out the test docstrings so we can at least tell which tests are
failing.

22 years agoWhitespace normalization.
Tim Peters [Sat, 9 Nov 2002 05:08:07 +0000 (05:08 +0000)]
Whitespace normalization.

22 years agoStart building the bz2 module on Windows.
Tim Peters [Sat, 9 Nov 2002 04:48:58 +0000 (04:48 +0000)]
Start building the bz2 module on Windows.

CAUTION:  The Python test still has many failures, but I'm out of time
for this now (already took much longer than hoped to get this far).
The base bz2 library does pass its own tests (see next).

CAUTION:  People building on Windows have to download and build tne
bz2 compression libraries now.  See PCbuild\readme.txt for complete
instructions.

22 years agoOpen at least one binary file in binary mode. This allows a few of the
Tim Peters [Sat, 9 Nov 2002 04:44:30 +0000 (04:44 +0000)]
Open at least one binary file in binary mode.  This allows a few of the
bz2 tests to pass on Windows; most are still failing.

22 years agobz2_compress/bz2_decompress: more casting away LONG_LONG for
Tim Peters [Sat, 9 Nov 2002 04:33:36 +0000 (04:33 +0000)]
bz2_compress/bz2_decompress:  more casting away LONG_LONG for
_PyString_Resize calls.

22 years agoBZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.
Tim Peters [Sat, 9 Nov 2002 04:31:38 +0000 (04:31 +0000)]
BZ2Decomp_decompress():  Fixed more long vs LONG_LONG confusions.

22 years agoBZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.
Tim Peters [Sat, 9 Nov 2002 04:30:08 +0000 (04:30 +0000)]
BZ2Comp_flush():  Fixed more int vs LONG_LONG confusions.

22 years agoBZ2Comp_compress(): Explicitly cast the LONG_LONG size argument to
Tim Peters [Sat, 9 Nov 2002 04:28:17 +0000 (04:28 +0000)]
BZ2Comp_compress():  Explicitly cast the LONG_LONG size argument to
_PyString_Resize to int.

22 years agoBZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it's
Tim Peters [Sat, 9 Nov 2002 04:26:02 +0000 (04:26 +0000)]
BZ2Comp_compress():  changed decl of totalout to LONG_LONG, since it's
solely used to hold LONG_LONG values, and the compiler rightfully warns
about potential data loss otherwise.

22 years agoRepaired signed-vs-unsigned mismatch.
Tim Peters [Sat, 9 Nov 2002 04:23:31 +0000 (04:23 +0000)]
Repaired signed-vs-unsigned mismatch.

22 years agoThis couldn't compile on WIndows, due to hardcoded "long long". Repaired.
Tim Peters [Sat, 9 Nov 2002 04:21:44 +0000 (04:21 +0000)]
This couldn't compile on WIndows, due to hardcoded "long long".  Repaired.

22 years agoAnother attempt at making the set constructor both safe and fast. [SF
Guido van Rossum [Fri, 8 Nov 2002 17:03:36 +0000 (17:03 +0000)]
Another attempt at making the set constructor both safe and fast.  [SF
bug 628246]

22 years ago[Bug #233259] Ugly traceback for DistutilsPlatformError
Andrew M. Kuchling [Fri, 8 Nov 2002 16:18:24 +0000 (16:18 +0000)]
[Bug #233259] Ugly traceback for DistutilsPlatformError
  Fixed by catching all exceptions that are subclasses of DistutilsError,
  so only the error message will be printed.  You can still get the
  whole traceback by enabling the Distutils debugging mode.

22 years agoFix comment typo
Andrew M. Kuchling [Fri, 8 Nov 2002 15:11:42 +0000 (15:11 +0000)]
Fix comment typo

22 years ago* Modules/bz2module.c
Gustavo Niemeyer [Fri, 8 Nov 2002 14:31:49 +0000 (14:31 +0000)]
* Modules/bz2module.c
  (BZ2File_dealloc): Call Util_DropReadAhead().
  (*): Included aesthetic changes by Neal Norwitz.

22 years agoSimply delete the fpectl module, instead of leaving it commented out;
Andrew M. Kuchling [Fri, 8 Nov 2002 13:11:50 +0000 (13:11 +0000)]
Simply delete the fpectl module, instead of leaving it commented out;
    if people want to compile it, they should edit Modules/Setup, not setup.py

22 years agoRichie Hindle
Michael W. Hudson [Fri, 8 Nov 2002 13:09:39 +0000 (13:09 +0000)]
Richie Hindle

22 years agoThis is Richie Hindle's patch:
Michael W. Hudson [Fri, 8 Nov 2002 13:08:46 +0000 (13:08 +0000)]
This is Richie Hindle's patch:

[ 631276 ] Exceptions raised by line trace function

It conflicted with the patches from Armin I just checked it, so I had
to so some bits by hand.

22 years agoAssorted patches from Armin Rigo:
Michael W. Hudson [Fri, 8 Nov 2002 12:53:11 +0000 (12:53 +0000)]
Assorted patches from Armin Rigo:

[ 617309 ] getframe hook (Psyco #1)
[ 617311 ] Tiny profiling info (Psyco #2)
[ 617312 ] debugger-controlled jumps (Psyco #3)

These are forward ports from 2.2.2.

22 years agoMake strip behave as documented. Will backport to 2.2.3.
Martin v. Löwis [Fri, 8 Nov 2002 12:09:59 +0000 (12:09 +0000)]
Make strip behave as documented. Will backport to 2.2.3.

22 years agoClarify the meaning of "requires Python 1.5.2".
Raymond Hettinger [Fri, 8 Nov 2002 05:49:47 +0000 (05:49 +0000)]
Clarify the meaning of "requires Python 1.5.2".

22 years agoCloses SF bug #634069 reporting the docs on the ** operator were out
Raymond Hettinger [Fri, 8 Nov 2002 05:30:23 +0000 (05:30 +0000)]
Closes SF bug #634069 reporting the docs on the ** operator were out
of date and did not reflect the current CPython implementation.

22 years ago_update(): Commented the new obscurity. Materialized into a tuple
Tim Peters [Fri, 8 Nov 2002 05:26:52 +0000 (05:26 +0000)]
_update():  Commented the new obscurity.  Materialized into a tuple
instead of into a list for a bit of speed/space savings.  Reopened the
bug report too (628246), as I'm unclear on why we don't sort out the
cause of the TypeError instead.

22 years agoCloses SF bug #628246.
Raymond Hettinger [Fri, 8 Nov 2002 05:03:21 +0000 (05:03 +0000)]
Closes SF bug #628246.

The _update method detected mutable elements by trapping TypeErrors.
Unfortunately, this masked useful TypeErrors raised by the iterable
itself.  For cases where it is possible for an iterable to raise
a TypeError, the iterable is pre-converted to a list outside the
try/except so that any TypeErrors propagate through.

22 years agoGot rid of the python.rsrc resource file. The error message strings and
Jack Jansen [Thu, 7 Nov 2002 23:07:05 +0000 (23:07 +0000)]
Got rid of the python.rsrc resource file. The error message strings and
dialogs are now stored in Mac/Lib, and loaded on demand through macresource.
Not only does this simplify a MacPython based on Apple's Python, but
it also makes Mac error codes come out symbolically when running command
line python (if you have Mac/Lib in your path).

The resource files are copied from Mac/Resources. The old ones will disappear
after the OS9 build procedure has been adjusted.

22 years agoAdd documentation for the PEP 293 functionality:
Walter Dörwald [Thu, 7 Nov 2002 22:33:17 +0000 (22:33 +0000)]
Add documentation for the PEP 293 functionality:

The errors attribute can be changed after the reader/writer
is created.

For encoding there are two additional errors values:
"xmlcharrefreplace" and "backslashreplace".

These values can be extended via register_error().

22 years agoMinor markup adjustments.
Fred Drake [Thu, 7 Nov 2002 17:13:03 +0000 (17:13 +0000)]
Minor markup adjustments.

22 years agoRestore attribute access so that the following work again:
Raymond Hettinger [Thu, 7 Nov 2002 16:55:54 +0000 (16:55 +0000)]
Restore attribute access so that the following work again:

   dir(xrange(10))
   xrange(10).__getitem__(4)

22 years agoUse dynamic linking for the SHGetSpecialFolderPath function, it is not
Thomas Heller [Thu, 7 Nov 2002 16:46:19 +0000 (16:46 +0000)]
Use dynamic linking for the SHGetSpecialFolderPath function, it is not
always available on Windows NT. When the function cannot be loaded,
get_special_folder_path raises OSError, "function not available".

Compiled the exe, and rebuilt bdist_wininst.py.

22 years agoFix a small bug when sys.argv[0] has an absolute path.
Thomas Heller [Thu, 7 Nov 2002 16:41:38 +0000 (16:41 +0000)]
Fix a small bug when sys.argv[0] has an absolute path.
See http://mail.python.org/pipermail/distutils-sig/2002-November/003039.html

22 years agoDocument the changed fdopen behaviour.
Thomas Heller [Thu, 7 Nov 2002 16:33:44 +0000 (16:33 +0000)]
Document the changed fdopen behaviour.
(Hope the markup is ok).

22 years agoNEWS entry for the changed fdopen function.
Thomas Heller [Thu, 7 Nov 2002 16:23:55 +0000 (16:23 +0000)]
NEWS entry for the changed fdopen function.

22 years agoEnforce valid filemode. Fixes SF Bug #623464.
Thomas Heller [Thu, 7 Nov 2002 16:00:59 +0000 (16:00 +0000)]
Enforce valid filemode. Fixes SF Bug #623464.

22 years agoTry linking the major/minor test program. Fixes #634444.
Martin v. Löwis [Thu, 7 Nov 2002 07:42:30 +0000 (07:42 +0000)]
Try linking the major/minor test program. Fixes #634444.

22 years agoFixed sre bug "[#581080] Provoking infinite scanner loops".
Gustavo Niemeyer [Thu, 7 Nov 2002 03:28:56 +0000 (03:28 +0000)]
Fixed sre bug "[#581080] Provoking infinite scanner loops".

This bug happened because: 1) the scanner_search and scanner_match methods
were not checking the buffer limits before increasing the current pointer;
and 2) SRE_SEARCH was using "if (ptr == end)" as a loop break, instead of
"if (ptr >= end)".

* Modules/_sre.c
  (SRE_SEARCH): Check for "ptr >= end" to break loops, so that we don't
  hang forever if a pointer passing the buffer limit is used.
  (scanner_search,scanner_match): Don't increment the current pointer
  if we're going to pass the buffer limit.

* Misc/NEWS
  Mention the fix.

22 years agoScript to create .app bundles. Largely untested.
Jack Jansen [Wed, 6 Nov 2002 23:15:51 +0000 (23:15 +0000)]
Script to create .app bundles. Largely untested.

22 years agoAdd --check-tkinter to setup.py. Install IDLE. Fixes #634078.
Martin v. Löwis [Wed, 6 Nov 2002 21:59:33 +0000 (21:59 +0000)]
Add --check-tkinter to setup.py. Install IDLE. Fixes #634078.

22 years agoUse column= rather than col=; with Tk 8.4 col= no longer works.
Guido van Rossum [Wed, 6 Nov 2002 19:00:30 +0000 (19:00 +0000)]
Use column= rather than col=; with Tk 8.4 col= no longer works.
[SF patch 634250 -- that was an IDLEFORK patch.]

22 years agoFixed bug "[#466200] ability to specify a 'verify' script".
Gustavo Niemeyer [Wed, 6 Nov 2002 18:44:26 +0000 (18:44 +0000)]
Fixed bug "[#466200] ability to specify a 'verify' script".

* Lib/distutils/command/bdist_rpm.py
  (bdist_rpm.initialize_options): Included verify_script attribute.
  (bdist_rpm.finalize_package_data): Ensure that verify_script is a filename.
  (bdist_rpm._make_spec_file): Included verify_script in script_options
  tuple.

* Misc/NEWS
  Mention change.

22 years agoAdd next() and __iter__() methods to StreamReader, StreamReaderWriter
Walter Dörwald [Wed, 6 Nov 2002 16:53:44 +0000 (16:53 +0000)]
Add next() and __iter__() methods to StreamReader, StreamReaderWriter
and StreamRecoder.

This closes SF bug #634246.

22 years agoMake int("...") return a long if an int would overflow.
Walter Dörwald [Wed, 6 Nov 2002 16:15:14 +0000 (16:15 +0000)]
Make int("...") return a long if an int would overflow.

Also remove the 512 character limitation for int(u"...") and long(u"...").

This closes SF bug #629989.

22 years agoFix NameError exception ('name' undefined)
Andrew M. Kuchling [Wed, 6 Nov 2002 15:40:05 +0000 (15:40 +0000)]
Fix NameError exception ('name' undefined)

22 years agoHandle really big steps in extended slices.
Michael W. Hudson [Wed, 6 Nov 2002 15:17:32 +0000 (15:17 +0000)]
Handle really big steps in extended slices.

Fixes a test failure on 64 bit platforms (I hope).