]> granicus.if.org Git - python/log
python
24 years agoThe list comprehensions patch partly reversed the removal of UNPACK_LIST,
Thomas Wouters [Sat, 12 Aug 2000 22:03:16 +0000 (22:03 +0000)]
The list comprehensions patch partly reversed the removal of UNPACK_LIST,
re-introducing com_assign_list, now unused. Removed it.

24 years agoClean up a warning on Win64. The downcast of the strlen size_t
Trent Mick [Sat, 12 Aug 2000 21:37:39 +0000 (21:37 +0000)]
Clean up a warning on Win64. The downcast of the strlen size_t
return value to int is safe here because it previously checked that
there will be no overflow.

24 years agoClean up a couple of warnings on Win64. The downcast of the strlen size_t
Trent Mick [Sat, 12 Aug 2000 21:35:36 +0000 (21:35 +0000)]
Clean up a couple of warnings on Win64. The downcast of the strlen size_t
return value to int is safe here because in each case it previouls checked that
there will be no overflow.

24 years agoUse safer comparisons (only matters when sizeof(int) != sizeof(size_t)). fread
Trent Mick [Sat, 12 Aug 2000 20:58:11 +0000 (20:58 +0000)]
Use safer comparisons (only matters when sizeof(int) != sizeof(size_t)). fread
and fwrite return size_t, so it is safer to cast up to the largest type for the
comparison. I believe the cast is required at all to remove compiler warnings.

24 years agoBring Tools/compiler almost up to date. Specifically:
Thomas Wouters [Sat, 12 Aug 2000 20:32:46 +0000 (20:32 +0000)]
Bring Tools/compiler almost up to date. Specifically:

- fix tab space issues (SF patch #101167 by Neil Schemenauer)
- fix co_flags for classes to include CO_NEWLOCALS (SF patch #101145 by Neil)
- fix for merger of UNPACK_LIST and UNPACK_TUPLE into UNPACK_SEQUENCE,
  (SF patch #101168 by, well, Neil :)
- Adjust bytecode MAGIC to current bytecode.

TODO: teach compile.py about list comprehensions.

24 years agoFix some markup errors that prevented formatting, and one that didn't.
Fred Drake [Sat, 12 Aug 2000 20:08:04 +0000 (20:08 +0000)]
Fix some markup errors that prevented formatting, and one that didn't.

24 years agoAdd the current Win64 compiler to the list of those that need the
Trent Mick [Sat, 12 Aug 2000 19:37:27 +0000 (19:37 +0000)]
Add the current Win64 compiler to the list of those that need the
huge switch statement broken up. This will probably not be necessary when
the Win64 compiler matures.

24 years agoUpdated this module after the recent grammar changes
Andrew M. Kuchling [Sat, 12 Aug 2000 19:09:14 +0000 (19:09 +0000)]
Updated this module after the recent grammar changes

24 years agoBack out ESR's erroneous commit of a DB-related change
Andrew M. Kuchling [Sat, 12 Aug 2000 18:43:02 +0000 (18:43 +0000)]
Back out ESR's erroneous commit of a DB-related change

24 years agolist comprehensions. see
Skip Montanaro [Sat, 12 Aug 2000 18:09:51 +0000 (18:09 +0000)]
list comprehensions.  see

    http://sourceforge.net/patch/?func=detailpatch&patch_id=100654&group_id=5470

for details.

24 years agoWhoever added the Makefile rule to auto-build the Grammar didn't have
Guido van Rossum [Sat, 12 Aug 2000 14:45:50 +0000 (14:45 +0000)]
Whoever added the Makefile rule to auto-build the Grammar didn't have
his build directory in a different place than his source directory.  I
do, and it is supposed to be supported.  The naive patch caused an
endless recursion in the Make process.  This should take care of that.

24 years agoAdded information for PyEval_EvalCode().
Fred Drake [Sat, 12 Aug 2000 03:39:47 +0000 (03:39 +0000)]
Added information for PyEval_EvalCode().
Fixed a couple of typos (new references are represented by "+1", not "1").

24 years agoAdded Marc-Andre Lemburg's documentation for string methods, with some
Fred Drake [Sat, 12 Aug 2000 03:36:23 +0000 (03:36 +0000)]
Added Marc-Andre Lemburg's documentation for string methods, with some
massaging for markup consistency.  This closes SourceForge patch #101063.

Added Unicode strings and buffer objects to the list of sequence types.

Small markup nits elsewhere.

24 years agoThese files all used to be tagged as binary in CVS. I recently changed this so
Trent Mick [Fri, 11 Aug 2000 23:20:32 +0000 (23:20 +0000)]
These files all used to be tagged as binary in CVS. I recently changed this so
that these files are treated as normal text files (which they are). However,
the files also had to be changed to be stored in CVS internally with UNIX line
terminators (they had DOS line terminators internally before this commit).

24 years ago'make' in Grammar too, so graminit.h and graminit.c get re-build when
Thomas Wouters [Fri, 11 Aug 2000 22:26:35 +0000 (22:26 +0000)]
'make' in Grammar too, so graminit.h and graminit.c get re-build when
necessary. Do Grammar after Parser because Grammar needs Parser, and not the
other way 'round. This patch doesn't bother with dependencies because it's
tricky to get right (for instance for the modules that want graminit.h,
like cPickle) and other dependencies are broken to begin with.

24 years agoMerge UNPACK_LIST and UNPACK_TUPLE into a single UNPACK_SEQUENCE, since they
Thomas Wouters [Fri, 11 Aug 2000 22:15:52 +0000 (22:15 +0000)]
Merge UNPACK_LIST and UNPACK_TUPLE into a single UNPACK_SEQUENCE, since they
did the same anyway.

I'm not sure what to do with Tools/compiler/compiler/* -- that isn't part of
distutils, is it ? Should it try to be compatible with old bytecode version ?

24 years agoPyRun_InteractiveOne(),
Fred Drake [Fri, 11 Aug 2000 20:39:29 +0000 (20:39 +0000)]
PyRun_InteractiveOne(),
PyRun_InteractiveLoop():  Added descriptions.

PyExc_WindowsError:  Added to list of standard exceptions and added note
                     about the right preprocessor symbol to use to protect
                     code that uses it.

24 years agoSome minor clarifications and added some index entries.
Fred Drake [Fri, 11 Aug 2000 20:34:27 +0000 (20:34 +0000)]
Some minor clarifications and added some index entries.

24 years agoO_BINARY: Documented this constant; omission noted by David Ascher.
Fred Drake [Fri, 11 Aug 2000 20:19:51 +0000 (20:19 +0000)]
O_BINARY:  Documented this constant; omission noted by David Ascher.

access():  Corrected availability statement; error pointed out by
           Tim Peters.

24 years agodo_env_cfuncdesc(): Push as much of the generated HTML into one place
Fred Drake [Fri, 11 Aug 2000 20:04:19 +0000 (20:04 +0000)]
do_env_cfuncdesc():  Push as much of the generated HTML into one place
                     as possible for better readability.  Revise a comment.

24 years agogetopt(): revise description of long_options parameter slightly so it will
Fred Drake [Fri, 11 Aug 2000 19:55:06 +0000 (19:55 +0000)]
getopt(): revise description of long_options parameter slightly so it will
be less confusing; add a paragraph separation so that comments about
the options and long_options parameters don't have references that
are easily misinterpreted.

Adjust the interactive examples to not need the string module.

Add an example showing how the module is commonly used in a script.

24 years agoAdd largefile support for Linux64 and WIn64. Add test_largefile and some minor
Trent Mick [Fri, 11 Aug 2000 19:02:59 +0000 (19:02 +0000)]
Add largefile support for Linux64 and WIn64. Add test_largefile and some minor
change to regrtest.py to allow optional running of test_largefile ('cause it's
slow on Win64).

This closes patches:
http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=100510&group_id=5470
and
http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=100511&group_id=5470

24 years agoAdded material about documenting packages, so that the use of module
Fred Drake [Fri, 11 Aug 2000 17:37:33 +0000 (17:37 +0000)]
Added material about documenting packages, so that the use of module
markup for packages is clear.

24 years agoInclude the document dependencies earlier so that documents are rebuilt
Fred Drake [Fri, 11 Aug 2000 17:36:21 +0000 (17:36 +0000)]
Include the document dependencies earlier so that documents are rebuilt
when they need to be.

24 years agoMarkup errors: \cfuntion -> \cfunction
Fred Drake [Fri, 11 Aug 2000 17:09:23 +0000 (17:09 +0000)]
Markup errors:  \cfuntion -> \cfunction

24 years agoANY becomes void, to reflect the requirement for ANSI C.
Fred Drake [Fri, 11 Aug 2000 17:07:32 +0000 (17:07 +0000)]
ANY becomes void, to reflect the requirement for ANSI C.

24 years agoAdd support for FreeBSD --rpath linker option; this is equivalent to
Fred Drake [Fri, 11 Aug 2000 13:58:37 +0000 (13:58 +0000)]
Add support for FreeBSD --rpath linker option; this is equivalent to
-R on Solaris and -rpath on IRIX.

This closes SourceForge bug #110613 (Jitterbug PR#202), reported by
<aa8vb@yahoo.com>.

24 years ago#include reordering so that extern "C" does not interfere with
Vladimir Marangozov [Fri, 11 Aug 2000 11:48:33 +0000 (11:48 +0000)]
#include reordering so that extern "C" does not interfere with
standard C++ specific includes.

Closes patch 101061.

24 years agoAdded #fndef's to avoid compiler errors.
Marc-André Lemburg [Fri, 11 Aug 2000 11:43:10 +0000 (11:43 +0000)]
Added #fndef's to avoid compiler errors.

24 years agoUse built in function filter instead of doing it laboriously by hand.
Sjoerd Mullender [Fri, 11 Aug 2000 07:48:36 +0000 (07:48 +0000)]
Use built in function filter instead of doing it laboriously by hand.

24 years agoFix missing decrements of the recursive counter in PyObject_Compare().
Vladimir Marangozov [Fri, 11 Aug 2000 00:14:26 +0000 (00:14 +0000)]
Fix missing decrements of the recursive counter in PyObject_Compare().

Closes Patch #101065.

24 years agoClean up compiler warning exposed by GCC's -Wall option: make sure
Fred Drake [Thu, 10 Aug 2000 21:41:08 +0000 (21:41 +0000)]
Clean up compiler warning exposed by GCC's -Wall option: make sure
Python.h is included before standard headers since we set _GNU_SOURCE
there.  This ensures that strdup() is prototyped.

24 years agoadd better algorithm to get fully qualified domain name for localhost
Peter Schneider-Kamp [Thu, 10 Aug 2000 14:02:23 +0000 (14:02 +0000)]
add better algorithm to get fully qualified domain name for localhost
in smtplib.ehlo() and smtplib.helo().

closes patch #101103
closes bug   #110935

24 years agoremove all occurence of math.rint() from the sources
Peter Schneider-Kamp [Thu, 10 Aug 2000 04:23:30 +0000 (04:23 +0000)]
remove all occurence of math.rint() from the sources

(and yes, "Currintly" also counts <0.5 wink>)

24 years agoImprove MHMailbox: messages are now sorted in numerical order.
Guido van Rossum [Thu, 10 Aug 2000 03:05:26 +0000 (03:05 +0000)]
Improve MHMailbox: messages are now sorted in numerical order.
Also don't allow leading zeros in message numbers.

24 years agoMore on noutrefresh.
Eric S. Raymond [Wed, 9 Aug 2000 21:49:31 +0000 (21:49 +0000)]
More on noutrefresh.

24 years agoTweak curses.wrapper so it initializes colors if they are available.
Eric S. Raymond [Wed, 9 Aug 2000 21:11:07 +0000 (21:11 +0000)]
Tweak curses.wrapper so it initializes colors if they are available.

24 years ago-- added a couple of missing Tkinter constants (canvas item styles,
Fredrik Lundh [Wed, 9 Aug 2000 19:37:16 +0000 (19:37 +0000)]
-- added a couple of missing Tkinter constants (canvas item styles,
   place bordermode, etc)

24 years ago-- don't mess up in winfo_visualsavailable if the system only
Fredrik Lundh [Wed, 9 Aug 2000 19:26:47 +0000 (19:26 +0000)]
-- don't mess up in winfo_visualsavailable if the system only
   supports a single visual (closes bug #110603)

24 years ago-- added optional newstate argument to Wm.state. The newstate arg
Fredrik Lundh [Wed, 9 Aug 2000 19:11:59 +0000 (19:11 +0000)]
-- added optional newstate argument to Wm.state.  The newstate arg
   was added in Tk 8.3 (this fixes the first part of Bug #110605)

24 years ago-- use explicit conversion instead of u-string literal in the test
Fredrik Lundh [Wed, 9 Aug 2000 18:51:01 +0000 (18:51 +0000)]
-- use explicit conversion instead of u-string literal in the test
   code, to make the new Tkinter.py run under 1.5.2
-- changed Text.yview argument name (for consistency with xview)

24 years ago-- added xview_moveto, xview_scroll, yview_moveto, yview_scroll
Fredrik Lundh [Wed, 9 Aug 2000 18:29:51 +0000 (18:29 +0000)]
-- added xview_moveto, xview_scroll, yview_moveto, yview_scroll
   to the Text method (closes Bug #110605)

24 years ago-- untabification (use "diff -b" to verify)
Fredrik Lundh [Wed, 9 Aug 2000 18:03:12 +0000 (18:03 +0000)]
-- untabification (use "diff -b" to verify)

24 years agoCorrect markup error.
Fred Drake [Wed, 9 Aug 2000 14:37:05 +0000 (14:37 +0000)]
Correct markup error.

24 years agoCorrect version number at which the curses.ascii module was introduced.
Fred Drake [Wed, 9 Aug 2000 14:36:11 +0000 (14:36 +0000)]
Correct version number at which the curses.ascii module was introduced.

24 years agoFix a few markup errors and lots of small consistency issues.
Fred Drake [Wed, 9 Aug 2000 14:34:48 +0000 (14:34 +0000)]
Fix a few markup errors and lots of small consistency issues.

Add "See also" link to curses.wrapper module from curses module.

24 years agofix_font(): Handle one more case for the magical first column of tables.
Fred Drake [Wed, 9 Aug 2000 13:45:04 +0000 (13:45 +0000)]
fix_font():  Handle one more case for the magical first column of tables.

24 years ago-- changed findall to return empty strings instead of None
Fredrik Lundh [Wed, 9 Aug 2000 09:14:35 +0000 (09:14 +0000)]
-- changed findall to return empty strings instead of None
   for undefined groups

24 years ago-- enabled some temporarily disabled RE tests
Fredrik Lundh [Tue, 8 Aug 2000 17:06:53 +0000 (17:06 +0000)]
-- enabled some temporarily disabled RE tests
-- added basic unicode tests to test_re
-- added test case for Sjoerd's xmllib problem to re_tests

24 years ago-- whitespace cleanup (real changes coming in next checkin)
Fredrik Lundh [Tue, 8 Aug 2000 16:52:51 +0000 (16:52 +0000)]
-- whitespace cleanup (real changes coming in next checkin)

24 years ago-- whitespace cleanup (more tests to be added in the next commit)
Fredrik Lundh [Tue, 8 Aug 2000 16:47:42 +0000 (16:47 +0000)]
-- whitespace cleanup (more tests to be added in the next commit)

24 years agoBarry's patch to document the new setdefault() method. Slightly
Guido van Rossum [Tue, 8 Aug 2000 16:15:49 +0000 (16:15 +0000)]
Barry's patch to document the new setdefault() method.  Slightly
clarified the summary for default() in the table to indicate the side
effect.

24 years agoBarry's patch to test the new setdefault() method.
Guido van Rossum [Tue, 8 Aug 2000 16:13:23 +0000 (16:13 +0000)]
Barry's patch to test the new setdefault() method.

24 years agoBarry's patch to implement the new setdefault() method.
Guido van Rossum [Tue, 8 Aug 2000 16:12:54 +0000 (16:12 +0000)]
Barry's patch to implement the new setdefault() method.

24 years agoFix so 'split_quoted()' handles any whitespace delimiter (not just space).
Greg Ward [Tue, 8 Aug 2000 14:38:13 +0000 (14:38 +0000)]
Fix so 'split_quoted()' handles any whitespace delimiter (not just space).

24 years agoRemoving UTF-16 aware Unicode comparison code. This kind of compare
Marc-André Lemburg [Tue, 8 Aug 2000 08:04:29 +0000 (08:04 +0000)]
Removing UTF-16 aware Unicode comparison code. This kind of compare
function (together with other locale aware ones) should into a new collation
support module. See python-dev for a discussion of this removal.

Note: This patch should also be applied to the 1.6 branch.

24 years agoMoved PyOS_StackCheck prototype to pythonrun.h
Jack Jansen [Mon, 7 Aug 2000 21:03:33 +0000 (21:03 +0000)]
Moved PyOS_StackCheck prototype to pythonrun.h

24 years agoAdded a missing } in the USE_STACKCHECK code.
Jack Jansen [Mon, 7 Aug 2000 21:02:50 +0000 (21:02 +0000)]
Added a missing } in the USE_STACKCHECK code.

24 years agoAdded a prototype for PyOS_CheckStack (within #ifdef USE_STACKCHECK).
Jack Jansen [Mon, 7 Aug 2000 21:00:42 +0000 (21:00 +0000)]
Added a prototype for PyOS_CheckStack (within #ifdef USE_STACKCHECK).

24 years ago-- reset marks if repeat_one tail doesn't match
Fredrik Lundh [Mon, 7 Aug 2000 20:59:04 +0000 (20:59 +0000)]
-- reset marks if repeat_one tail doesn't match
   (this should fix Sjoerd's xmllib problem)
-- added skip field to INFO header
-- changed compiler to generate charset INFO header
-- changed trace messages to support post-mortem analysis

24 years ago-- from Trent Mick: [Patch #101010] replace use of INT_PTR
Fredrik Lundh [Mon, 7 Aug 2000 20:16:28 +0000 (20:16 +0000)]
-- from Trent Mick: [Patch #101010] replace use of INT_PTR
   with uintptr_t (fix MSVC 5.0 build)

24 years agoWhen returning an error from jcompile() (which is passed through by
Guido van Rossum [Mon, 7 Aug 2000 19:22:43 +0000 (19:22 +0000)]
When returning an error from jcompile() (which is passed through by
PyNode_Compile()), make sure that an exception is actually set --
otherwise someone stomped on our error.  [2.0 checkin of this fix.]

24 years agoAvoid dumping core when PyErr_NormalizeException() is called without
Guido van Rossum [Mon, 7 Aug 2000 19:18:27 +0000 (19:18 +0000)]
Avoid dumping core when PyErr_NormalizeException() is called without
an exception set.  This shouldn't happen, but we see it at times...

24 years ago+ if USE_STACKCHECK is defined, use PyOS_CheckStack to look
Fredrik Lundh [Mon, 7 Aug 2000 17:33:38 +0000 (17:33 +0000)]
+ if USE_STACKCHECK is defined, use PyOS_CheckStack to look
  for excessive recursion.

24 years agoInitialized opcode and oparg to silence a gcc -Wall warning.
Moshe Zadka [Mon, 7 Aug 2000 06:34:45 +0000 (06:34 +0000)]
Initialized opcode and oparg to silence a gcc -Wall warning.

24 years agoFix so the 'install_libbase' directory -- where .pth files are installed --
Greg Ward [Mon, 7 Aug 2000 00:48:04 +0000 (00:48 +0000)]
Fix so the 'install_libbase' directory -- where .pth files are installed --
participates in the "--root" hack, ie. it also has a new root directory
hacked on at the very last minute (essential if the .pth file is to be
included in an RPM or other smart installer!).

24 years agoFix so we clear or reinitialize various data structures before populating
Greg Ward [Mon, 7 Aug 2000 00:45:51 +0000 (00:45 +0000)]
Fix so we clear or reinitialize various data structures before populating
(allows the same FancyGetopt object to be used multiple times with different
option tables).

24 years agoNeil Schemenauer: GC enable(), disable(), isenabled() interface.
Vladimir Marangozov [Sun, 6 Aug 2000 22:45:31 +0000 (22:45 +0000)]
Neil Schemenauer: GC enable(), disable(), isenabled() interface.

Small stylistic changes by VM:
- is_enabled() -> isenabled()
- static ... Py_<func> -> static ... gc_<func>

24 years agoProject for pyexpat module.
Jack Jansen [Sun, 6 Aug 2000 21:55:43 +0000 (21:55 +0000)]
Project for pyexpat module.

24 years agoRewrite of normpath() by Corran Webster, so trailing :s are removed
Jack Jansen [Sun, 6 Aug 2000 21:18:35 +0000 (21:18 +0000)]
Rewrite of normpath() by Corran Webster, so trailing :s are removed
(except for : and volume:, where they are needed).

24 years agoWrote the "Describing extension modules" section.
Greg Ward [Sun, 6 Aug 2000 20:37:24 +0000 (20:37 +0000)]
Wrote the "Describing extension modules" section.

24 years agoCleanup configure.in. Specifically:
Thomas Wouters [Sat, 5 Aug 2000 23:28:51 +0000 (23:28 +0000)]
Cleanup configure.in. Specifically:

- Don't call both AC_CHECK_FUNCS and AC_REPLACE_FUNC for 'hypot', as the
latter already does everything the former does (because it's implemented as
a call to the former.)

- Don't call AC_CHECK_FUNC() without any 'action' clauses or with an action
clause that just defines HAVE_<function>. Instead, call AC_CHECK_FUNCS,
which defines 'HAVE_<function>' of itself, possibly with aditional 'action'
clauses.

No checks are removed by this patch, only moved around, and some duplicates
are removed.

24 years agoFix some strange indentation and grammar that have been bugging me for
Thomas Wouters [Sat, 5 Aug 2000 21:37:50 +0000 (21:37 +0000)]
Fix some strange indentation and grammar that have been bugging me for
weeks.

24 years agoChanged H specifier to mean "bitfield", i.e. any value from
Jack Jansen [Sat, 5 Aug 2000 21:29:58 +0000 (21:29 +0000)]
Changed H specifier to mean "bitfield", i.e. any value from
-32768..65535 is acceptable. Added B specifier (with values from
-128..255). No L added (which would have completed the set) because l
already accepts any value (and the letter L is taken for quadwords).

24 years agoFixed imports from '*util' modules to not just import everything from util.
Greg Ward [Sat, 5 Aug 2000 01:31:54 +0000 (01:31 +0000)]
Fixed imports from '*util' modules to not just import everything from util.

24 years agoDrop the 'extend()' function -- old 1.5.1 compatibility hack that
Greg Ward [Sat, 5 Aug 2000 01:25:24 +0000 (01:25 +0000)]
Drop the 'extend()' function -- old 1.5.1 compatibility hack that
  wasn't actually used anywhere.
Drop the "from xxx_util import*" backwards compability hacks.

24 years agoPragmas that instruct the linker to link against python20.lib (or
Greg Ward [Sat, 5 Aug 2000 00:58:14 +0000 (00:58 +0000)]
Pragmas that instruct the linker to link against python20.lib (or
python20_d.lib) only active on MSVC++; different library formats needed
for different compilers, and it's handled by the Distutils anyways.

24 years agoA bundle of wording improvements, corrections, clarifications, updates,
Greg Ward [Sat, 5 Aug 2000 00:43:11 +0000 (00:43 +0000)]
A bundle of wording improvements, corrections, clarifications, updates,
and so forth.

24 years agoRemoved unnecessary local variable -- gave warning on gcc -Wall
Moshe Zadka [Fri, 4 Aug 2000 22:31:42 +0000 (22:31 +0000)]
Removed unnecessary local variable -- gave warning on gcc -Wall

24 years agoRemoving warnings by gcc -Wall -- cast ugly || to void.
Moshe Zadka [Fri, 4 Aug 2000 21:27:47 +0000 (21:27 +0000)]
Removing warnings by gcc -Wall -- cast ugly || to void.

24 years agoadd note about compiler directory
Jeremy Hylton [Fri, 4 Aug 2000 17:03:58 +0000 (17:03 +0000)]
add note about compiler directory
(is bgen still "still under development"?)

24 years agoreplace most calls to emit 'SET_LINENO' will call to method set_lineno
Jeremy Hylton [Fri, 4 Aug 2000 16:56:51 +0000 (16:56 +0000)]
replace most calls to emit 'SET_LINENO' will call to method set_lineno
based on bug report by Neil Schemenauer

24 years agoupdate my email address
Jeremy Hylton [Fri, 4 Aug 2000 16:54:54 +0000 (16:54 +0000)]
update my email address
fix com_call_function to cope with trailing comma in "f(a, b,)"

24 years agoRemoving warnings discovered by gcc -Wall
Moshe Zadka [Fri, 4 Aug 2000 15:53:06 +0000 (15:53 +0000)]
Removing warnings discovered by gcc -Wall

24 years agoRemoving warnings found by gcc -Wall
Moshe Zadka [Fri, 4 Aug 2000 15:36:13 +0000 (15:36 +0000)]
Removing warnings found by gcc -Wall

24 years agoOooopsss.....tab and space mismatch corrected.
Moshe Zadka [Fri, 4 Aug 2000 15:25:58 +0000 (15:25 +0000)]
Oooopsss.....tab and space mismatch corrected.

24 years agoAdd a test that Py_IsInitialized() in Py_InitModule4(). See
Guido van Rossum [Fri, 4 Aug 2000 14:00:14 +0000 (14:00 +0000)]
Add a test that Py_IsInitialized() in Py_InitModule4().  See
python-dev discussion.

This should catch future version incompatibilities on Windows.  Alas,
this doesn't help for 1.5 vs. 1.6; but it will help for 1.6 vs. 2.0.

24 years agoRaise 'TestSkipped' (from the test_support) module rather than 'ImportError'
Thomas Wouters [Fri, 4 Aug 2000 13:34:43 +0000 (13:34 +0000)]
Raise 'TestSkipped' (from the test_support) module rather than 'ImportError'
to signify a test that should be marked as 'skipped' rather than 'failed'.
Also 'document' it, in README.

24 years agoRaise TestSkipped, not ImportError.
Moshe Zadka [Fri, 4 Aug 2000 13:26:03 +0000 (13:26 +0000)]
Raise TestSkipped, not ImportError.
Honesty's the best policy.

24 years agoMake test_support.TestSkipped errors work the same way as ImportErrors:
Thomas Wouters [Fri, 4 Aug 2000 13:17:51 +0000 (13:17 +0000)]
Make test_support.TestSkipped errors work the same way as ImportErrors:
mark the test as 'skipped', rather than 'failed'.

24 years agoIn case the user isn't allowed to access /dev/dsp or /dev/dsp isn't there
Moshe Zadka [Fri, 4 Aug 2000 12:59:40 +0000 (12:59 +0000)]
In case the user isn't allowed to access /dev/dsp or /dev/dsp isn't there
at all (my computer doesn't have a Sound Blaster), this doesn't mean
there's a bug in linuxaudiodev. The only error the test suite skips
is currently ImportError -- so that's what we raise. If you see a problem
with this patch, say so and I'll retract. If you think raising an ImportError
sucks, you're right -- but I ain't gonna buy a SB and I sure ain't gonna
let the test-suite fail on my machine.

24 years agoMention Include/my*.h cleanup
Andrew M. Kuchling [Fri, 4 Aug 2000 12:40:35 +0000 (12:40 +0000)]
Mention Include/my*.h cleanup

24 years agoAdded zip() builtin
Andrew M. Kuchling [Fri, 4 Aug 2000 12:35:23 +0000 (12:35 +0000)]
Added zip() builtin

24 years agoAdd missing 'try:'. Patch by Rob W. W. Hooft, #101071 (closed.)
Thomas Wouters [Fri, 4 Aug 2000 08:46:59 +0000 (08:46 +0000)]
Add missing 'try:'. Patch by Rob W. W. Hooft, #101071 (closed.)

24 years agoDocumented curses.wrapper and curses.textpad.
Eric S. Raymond [Fri, 4 Aug 2000 07:35:41 +0000 (07:35 +0000)]
Documented curses.wrapper and curses.textpad.

24 years agoCorrected a bug in handling of ^N and ^P with stripspaces on.
Eric S. Raymond [Fri, 4 Aug 2000 07:33:18 +0000 (07:33 +0000)]
Corrected a bug in handling of ^N and ^P with stripspaces on.

24 years agoRemove the outer test for __name__; not necessary.
Fred Drake [Fri, 4 Aug 2000 03:14:55 +0000 (03:14 +0000)]
Remove the outer test for __name__; not necessary.

24 years agoBoost buffer sizes in the absence of snprintf on Windows.
Tim Peters [Fri, 4 Aug 2000 03:05:40 +0000 (03:05 +0000)]
Boost buffer sizes in the absence of snprintf on Windows.
Ensure that # of args to sprintf always matches # of format specifiers.

24 years agosnprintf() is not portable, so continue to use sprintf() until a portable
Fred Drake [Fri, 4 Aug 2000 02:34:41 +0000 (02:34 +0000)]
snprintf() is not portable, so continue to use sprintf() until a portable
snprintf() is available.

24 years agoAdded 'debug_print()'.
Greg Ward [Fri, 4 Aug 2000 01:31:13 +0000 (01:31 +0000)]
Added 'debug_print()'.