]> granicus.if.org Git - python/log
python
24 years agoANSI-fication of the sources.
Fred Drake [Sun, 9 Jul 2000 15:16:51 +0000 (15:16 +0000)]
ANSI-fication of the sources.

24 years ago- ANSI-fication
Fredrik Lundh [Sun, 9 Jul 2000 15:14:52 +0000 (15:14 +0000)]
- ANSI-fication
  (patch #100784 by Peter Schneider-Kamp)

24 years ago- ANSI-ification
Fredrik Lundh [Sun, 9 Jul 2000 15:09:56 +0000 (15:09 +0000)]
- ANSI-ification
  (patch #100770 by Peter Schneider-Kamp)

24 years agoDocument addition of webbrowser.py
Andrew M. Kuchling [Sun, 9 Jul 2000 15:05:15 +0000 (15:05 +0000)]
Document addition of webbrowser.py
Mention the ANSIfication of the source.

24 years ago- improved os.popen support for windows, based on win32pipe
Fredrik Lundh [Sun, 9 Jul 2000 14:49:51 +0000 (14:49 +0000)]
- improved os.popen support for windows, based on win32pipe
  by Bill Tutt.

  note: to run this on Windows 95/98, you need to have the
  w9xpopen.exe helper in the same directory as the python DLL.

24 years agoRemove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
Fred Drake [Sun, 9 Jul 2000 14:39:29 +0000 (14:39 +0000)]
Remove setup of HAVE_OLD_CPP; it is no longer used in the Python sources.
The actual test for it is only commented out in configure.in, so it can
be re-enabled if we ever run across the need for it again.

24 years agoRemove use of HAVE_OLD_CPP to support non-ANSI preprocessors.
Fred Drake [Sun, 9 Jul 2000 14:36:13 +0000 (14:36 +0000)]
Remove use of HAVE_OLD_CPP to support non-ANSI preprocessors.

24 years agoPatch from Peter Schneider-Kamp: convert curses module to ANSI prototypes,
Andrew M. Kuchling [Sun, 9 Jul 2000 14:35:00 +0000 (14:35 +0000)]
Patch from Peter Schneider-Kamp: convert curses module to ANSI prototypes,
and substitute the conventional "args" instead of "arg".

24 years agoRemove legacy use of __SC__; no longer needed now that ANSI source is
Fred Drake [Sun, 9 Jul 2000 14:22:08 +0000 (14:22 +0000)]
Remove legacy use of __SC__; no longer needed now that ANSI source is
the standard for Python implementation.

24 years ago- added (long) casts to a couple of Py_BuildValue calls,
Fredrik Lundh [Sun, 9 Jul 2000 13:16:13 +0000 (13:16 +0000)]
- added (long) casts to a couple of Py_BuildValue calls,
  just for the sake of it.

  note that this only covers the unlikely case that size_t
  is smaller than a long; it's probably more likely that
  there are platforms out there where size_t is *larger*
  than a long, and mmapmodule cannot really deal with that
  today.

24 years ago- fixed pointer size test in spawn functions. also added
Fredrik Lundh [Sun, 9 Jul 2000 13:10:40 +0000 (13:10 +0000)]
- fixed pointer size test in spawn functions.  also added
  cast to make sure Py_BuildValue gets the right thing.

  this change eliminates bogus return codes from successful
  spawn calls (e.g. 2167387144924954624 instead of 0).

24 years ago- win95/98 helper for new os.popen code
Fredrik Lundh [Sun, 9 Jul 2000 11:35:36 +0000 (11:35 +0000)]
- win95/98 helper for new os.popen code

  this should be built as a console application (link with
  USER32.LIB), and installed in the same directory as the
  Python DLL.

24 years agoSomebody started playing with const, so of course the outcome
Tim Peters [Sun, 9 Jul 2000 08:02:21 +0000 (08:02 +0000)]
Somebody started playing with const, so of course the outcome
was cascades of warnings about mismatching const decls.  Overall,
I think const creates lots of headaches and solves almost
nothing.  Added enough consts to shut up the warnings, but
this did require casting away const in one spot too (another
usual outcome of starting down this path):  the function
mymemreplace can't return const char*, but sometimes wants to
return its first argument as-is, which latter must be declared
const char* in order to avoid const warnings at mymemreplace's
call sites.  So, in the case the function wants to return the
first arg, that arg's declared constness must be subverted.

24 years agoANSI-fication of the sources.
Fred Drake [Sun, 9 Jul 2000 07:04:36 +0000 (07:04 +0000)]
ANSI-fication of the sources.

24 years agoANSI-fication of the sources.
Fred Drake [Sun, 9 Jul 2000 06:21:27 +0000 (06:21 +0000)]
ANSI-fication of the sources.

24 years agoANSI-fication of the sources.
Fred Drake [Sun, 9 Jul 2000 06:03:25 +0000 (06:03 +0000)]
ANSI-fication of the sources.

24 years agoANSI-fication of the sources.
Fred Drake [Sun, 9 Jul 2000 05:40:56 +0000 (05:40 +0000)]
ANSI-fication of the sources.

24 years agoRemove legacy use of __SC__; no longer needed now that ANSI source is
Fred Drake [Sun, 9 Jul 2000 05:31:24 +0000 (05:31 +0000)]
Remove legacy use of __SC__; no longer needed now that ANSI source is
the standard for Python implementation.

24 years agoANSI-fication of the sources.
Fred Drake [Sun, 9 Jul 2000 05:02:18 +0000 (05:02 +0000)]
ANSI-fication of the sources.

24 years agoEnvironmentError__init__(): The two case clauses were missing
Barry Warsaw [Sun, 9 Jul 2000 04:56:25 +0000 (04:56 +0000)]
EnvironmentError__init__(): The two case clauses were missing
`break's.  This first missing break caused a memory leak when case 3
fell through case 2 in the following example:

import os
os.chmod('/missing', 0600)

24 years agoANSI-fication of the sources.
Fred Drake [Sun, 9 Jul 2000 04:36:04 +0000 (04:36 +0000)]
ANSI-fication of the sources.

24 years agotype_error(): Added "const" to signature to eliminate warning with -Wall.
Fred Drake [Sun, 9 Jul 2000 04:34:13 +0000 (04:34 +0000)]
type_error():  Added "const" to signature to eliminate warning with -Wall.

24 years agoANSI-fication of the source.
Fred Drake [Sun, 9 Jul 2000 04:14:42 +0000 (04:14 +0000)]
ANSI-fication of the source.
Make the indentation and brace placement internally consistent.

24 years agoANSI-fication of the sources.
Fred Drake [Sun, 9 Jul 2000 04:06:11 +0000 (04:06 +0000)]
ANSI-fication of the sources.

24 years agoRemove the only Py_PROTO in the docs.
Fred Drake [Sun, 9 Jul 2000 03:35:10 +0000 (03:35 +0000)]
Remove the only Py_PROTO in the docs.

24 years agoNuke all remaining occurrences of Py_PROTO and Py_FPROTO.
Tim Peters [Sun, 9 Jul 2000 03:09:57 +0000 (03:09 +0000)]
Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.

24 years agoGet rid of unused vars in builtin_unicode (they were causing
Tim Peters [Sun, 9 Jul 2000 02:11:18 +0000 (02:11 +0000)]
Get rid of unused vars in builtin_unicode (they were causing
legit warnings).

24 years agoANSI-fication and Py_PROTO extermination.
Fred Drake [Sun, 9 Jul 2000 00:55:06 +0000 (00:55 +0000)]
ANSI-fication and Py_PROTO extermination.

24 years agoANSI-fication and Py_PROTO extermination.
Fred Drake [Sun, 9 Jul 2000 00:20:36 +0000 (00:20 +0000)]
ANSI-fication and Py_PROTO extermination.

24 years agoANSI-fication and Py_PROTO extermination.
Fred Drake [Sat, 8 Jul 2000 23:37:28 +0000 (23:37 +0000)]
ANSI-fication and Py_PROTO extermination.

24 years agothis one's a bit risky, but I've spent some considerable time
Fredrik Lundh [Sat, 8 Jul 2000 22:48:53 +0000 (22:48 +0000)]
this one's a bit risky, but I've spent some considerable time
staring at the diffs before checking this one in.  let me know
asap if it breaks things on your platform.

-- ANSI-fying
   (patch #100763 by Peter Schneider-Kamp, minus the
    indentation changes and minus the changes the broke
    the windows build)

24 years ago-- ANSI-fying, names
Fredrik Lundh [Sat, 8 Jul 2000 22:05:01 +0000 (22:05 +0000)]
-- ANSI-fying, names
   (patch #100762 by Peter Schneider-Kamp, minus the
    indentation changes)

-- added INT_PTR workaround to make it build under VC 5.0

24 years ago- removed barry's workaround, to make room for
Fredrik Lundh [Sat, 8 Jul 2000 20:49:58 +0000 (20:49 +0000)]
- removed barry's workaround, to make room for
  bill's more complete solution.

24 years ago- _getdefaultlocale shouldn't accept arguments
Fredrik Lundh [Sat, 8 Jul 2000 20:07:24 +0000 (20:07 +0000)]
- _getdefaultlocale shouldn't accept arguments

- some more spacification...

24 years ago- added _getdefaultlocale implementation for WIN32
Fredrik Lundh [Sat, 8 Jul 2000 19:57:37 +0000 (19:57 +0000)]
- added _getdefaultlocale implementation for WIN32

- ansified, reindentified, spacified, nullified

24 years ago- this is a tentative checkin of the #100764 patch (by
Fredrik Lundh [Sat, 8 Jul 2000 18:06:41 +0000 (18:06 +0000)]
- this is a tentative checkin of the #100764 patch (by
  Barry Scott).  it appears to solve the problem on NT
  and 2000, but not on Windows 95.

  in other words, it's better than before, but not per-
  fect.  I'll leave the patch open for now.

24 years ago- changed __repr__ to use "unicode escape" encoding for unicode
Fredrik Lundh [Sat, 8 Jul 2000 17:43:32 +0000 (17:43 +0000)]
- changed __repr__ to use "unicode escape" encoding for unicode
  strings, instead of the default encoding.
  (see "minidom" thread for discussion, and also patch #100706)

24 years agoANSI-fication of the sources -- remove Py_PROTO!
Fred Drake [Sat, 8 Jul 2000 17:25:55 +0000 (17:25 +0000)]
ANSI-fication of the sources -- remove Py_PROTO!

24 years agoMinor revisions similar to some information in the new docstrings.
Fred Drake [Sat, 8 Jul 2000 16:59:03 +0000 (16:59 +0000)]
Minor revisions similar to some information in the new docstrings.

24 years agoANSI-fication of the sources, convert to 4-space indents.
Fred Drake [Sat, 8 Jul 2000 16:56:26 +0000 (16:56 +0000)]
ANSI-fication of the sources, convert to 4-space indents.
Use PyArg_ParseTuple() to get better error messages.
Add docstrings all around.

24 years agodelete unused local variable from _PyTrash_deposit_object
Skip Montanaro [Sat, 8 Jul 2000 12:06:36 +0000 (12:06 +0000)]
delete unused local variable from _PyTrash_deposit_object

24 years agoRearrange order of sections
Andrew M. Kuchling [Sat, 8 Jul 2000 12:06:31 +0000 (12:06 +0000)]
Rearrange order of sections
Fix some incorrect module names

24 years ago_Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd
Skip Montanaro [Sat, 8 Jul 2000 12:04:57 +0000 (12:04 +0000)]
_Py_RefTotal should only be declared here when Py_TRACE_REFS are #define'd

24 years agoANSI-fied sources, converted to four-space indentation.
Fred Drake [Sat, 8 Jul 2000 06:41:03 +0000 (06:41 +0000)]
ANSI-fied sources, converted to four-space indentation.
Converted to PyArg_ParseTuple() with method names to get better error
messages.

24 years agoANSI-fied sources, converted to four-space indentation.
Fred Drake [Sat, 8 Jul 2000 06:16:37 +0000 (06:16 +0000)]
ANSI-fied sources, converted to four-space indentation.

24 years agoAdd method names to PyArg_ParseTuple() calls for better error messages.
Fred Drake [Sat, 8 Jul 2000 06:05:58 +0000 (06:05 +0000)]
Add method names to PyArg_ParseTuple() calls for better error messages.
Convert to four-space indents.

24 years agoMarkup improvements in sections relating to interactive behavior.
Fred Drake [Sat, 8 Jul 2000 05:18:54 +0000 (05:18 +0000)]
Markup improvements in sections relating to interactive behavior.
Clarify some of the details of readline-related configuration.

24 years agoANSI-fy the sources.
Fred Drake [Sat, 8 Jul 2000 05:00:07 +0000 (05:00 +0000)]
ANSI-fy the sources.
Convert to using PyArg_ParseTuple() as appropriate to allow method names
in error messages.
Re-indent to four-space indentation.

24 years agoPretensions of the 20th century... remove old-style preprocessor
Fred Drake [Sat, 8 Jul 2000 04:53:48 +0000 (04:53 +0000)]
Pretensions of the 20th century... remove old-style preprocessor
hackery (/**/), leaving only new-style preprocessor hackery (##).

24 years agoCray J90 fixes for long ints.
Tim Peters [Sat, 8 Jul 2000 04:17:21 +0000 (04:17 +0000)]
Cray J90 fixes for long ints.
This was a convenient excuse to create the pyport.h file recently
discussed!
Please use new Py_ARITHMETIC_RIGHT_SHIFT when right-shifting a
signed int and you *need* sign-extension.  This is #define'd in
pyport.h, keying off new config symbol SIGNED_RIGHT_SHIFT_ZERO_FILLS.
If you're running on a platform that needs that symbol #define'd,
the std tests never would have worked for you (in particular,
at least test_long would have failed).
The autoconfig stuff got added to Python after my Unix days, so
I don't know how that works.  Would someone please look into doing
& testing an auto-config of the SIGNED_RIGHT_SHIFT_ZERO_FILLS
symbol?  It needs to be defined if & only if, e.g., (-1) >> 3 is
not -1.

24 years agoANSI-fy the sources.
Fred Drake [Sat, 8 Jul 2000 04:12:08 +0000 (04:12 +0000)]
ANSI-fy the sources.

24 years agoRemoved Py_PROTO, ANSI-fied sources.
Fred Drake [Sat, 8 Jul 2000 04:04:38 +0000 (04:04 +0000)]
Removed Py_PROTO, ANSI-fied sources.

24 years agoThe tail end of x_sub implicitly assumed that an unsigned short
Tim Peters [Sat, 8 Jul 2000 02:26:47 +0000 (02:26 +0000)]
The tail end of x_sub implicitly assumed that an unsigned short
contains 16 bits.  Not true on Cray J90.

24 years agoOne of the new prototypes was missing the "void" args.
Greg Stein [Sat, 8 Jul 2000 00:46:19 +0000 (00:46 +0000)]
One of the new prototypes was missing the "void" args.

24 years agoGot RID of redundant coercions in longobject.c (as spotted by Greg
Tim Peters [Sat, 8 Jul 2000 00:32:04 +0000 (00:32 +0000)]
Got RID of redundant coercions in longobject.c (as spotted by Greg
Stein -- thanks!).  Incidentally removed all the Py_PROTO macros
from object.h, as they prevented my editor from magically finding
the definitions of the "coercion", "cmpfunc" and "reprfunc"
typedefs that were being redundantly applied in longobject.c.

24 years agodelete bogus file
Guido van Rossum [Fri, 7 Jul 2000 21:57:20 +0000 (21:57 +0000)]
delete bogus file

24 years agoDeleted bogus file.
Guido van Rossum [Fri, 7 Jul 2000 21:35:04 +0000 (21:35 +0000)]
Deleted bogus file.

24 years agofix inconsistent use of tabs and spaces
Jeremy Hylton [Fri, 7 Jul 2000 21:02:22 +0000 (21:02 +0000)]
fix inconsistent use of tabs and spaces
convert semicolons to newlines

24 years agofix inconsistent use of tabs and spaces
Jeremy Hylton [Fri, 7 Jul 2000 21:02:00 +0000 (21:02 +0000)]
fix inconsistent use of tabs and spaces

24 years agofix inconsistent use of tabs and spaces
Jeremy Hylton [Fri, 7 Jul 2000 20:45:21 +0000 (20:45 +0000)]
fix inconsistent use of tabs and spaces

24 years agoFix to use Py_UCS4. By Bill Tutt.
Marc-André Lemburg [Fri, 7 Jul 2000 17:53:54 +0000 (17:53 +0000)]
Fix to use Py_UCS4. By Bill Tutt.

24 years agoNew surrogate support in the UTF-8 codec. By Bill Tutt.
Marc-André Lemburg [Fri, 7 Jul 2000 17:51:08 +0000 (17:51 +0000)]
New surrogate support in the UTF-8 codec. By Bill Tutt.

24 years agoTests for new surrogate support in the UTF-8 codec. By Bill Tutt.
Marc-André Lemburg [Fri, 7 Jul 2000 17:48:52 +0000 (17:48 +0000)]
Tests for new surrogate support in the UTF-8 codec. By Bill Tutt.

24 years agoFix to use Py_UCS4
Marc-André Lemburg [Fri, 7 Jul 2000 17:45:37 +0000 (17:45 +0000)]
Fix to use Py_UCS4

24 years agoAdd an entry for the KDE File Manager support from Peter Funk.
Fred Drake [Fri, 7 Jul 2000 17:08:40 +0000 (17:08 +0000)]
Add an entry for the KDE File Manager support from Peter Funk.

24 years agoThomas Wouters <thomas@xs4all.net>:
Fred Drake [Fri, 7 Jul 2000 16:21:31 +0000 (16:21 +0000)]
Thomas Wouters <thomas@xs4all.net>:
Allow -f* parameters to be passed to the compiler from Setup files.

24 years agoSome cleanup of longs in prepartion for Cray J90 fixes: got
Tim Peters [Fri, 7 Jul 2000 15:53:28 +0000 (15:53 +0000)]
Some cleanup of longs in prepartion for Cray J90 fixes:  got
rid of Py_PROTO, switched to ANSI function decls, and did some
minor fiddling.

24 years agoAdded new APIs and fixed some other Unicode ones (missing * or
Marc-André Lemburg [Fri, 7 Jul 2000 15:48:54 +0000 (15:48 +0000)]
Added new APIs and fixed some other Unicode ones (missing * or
extra ' ').

24 years agoAdded docs for the new Unicode and string APIs.
Marc-André Lemburg [Fri, 7 Jul 2000 15:47:06 +0000 (15:47 +0000)]
Added docs for the new Unicode and string APIs.

24 years agoRemoved a prototype which is not used in socketmodule.c
Marc-André Lemburg [Fri, 7 Jul 2000 14:13:29 +0000 (14:13 +0000)]
Removed a prototype which is not used in socketmodule.c

Patch by T. Wouters.

24 years agoFixed unicode() to use the new API PyUnicode_FromEncodedObject().
Marc-André Lemburg [Fri, 7 Jul 2000 13:48:25 +0000 (13:48 +0000)]
Fixed unicode() to use the new API PyUnicode_FromEncodedObject().
This adds support for instance to the constructor (instances
have to define __str__ and can return Unicode objects via that
hook; string return values are decoded into Unicode using the
current default encoding).

24 years agoAdded new API PyUnicode_FromEncodedObject() which supports decoding
Marc-André Lemburg [Fri, 7 Jul 2000 13:46:42 +0000 (13:46 +0000)]
Added new API PyUnicode_FromEncodedObject() which supports decoding
objects including instance objects.

The old API PyUnicode_FromObject() is still available as shortcut.

24 years agoTests for new instance support in unicode().
Marc-André Lemburg [Fri, 7 Jul 2000 13:46:19 +0000 (13:46 +0000)]
Tests for new instance support in unicode().

24 years agoSo many things have changed over the last few weeks that it's probably a good idea...
Jack Jansen [Fri, 7 Jul 2000 13:15:36 +0000 (13:15 +0000)]
So many things have changed over the last few weeks that it's probably a good idea to check the project files in again.

24 years agoChanged all (hopefully) uses of unsigned 16 bit value to use H format specifier,...
Jack Jansen [Fri, 7 Jul 2000 13:09:35 +0000 (13:09 +0000)]
Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only.

24 years agoAdded the unchash module.
Jack Jansen [Fri, 7 Jul 2000 13:08:09 +0000 (13:08 +0000)]
Added the unchash module.

24 years agoFix to bug #393 (UTF16 codec didn't like empty strings) and
Marc-André Lemburg [Fri, 7 Jul 2000 11:27:45 +0000 (11:27 +0000)]
Fix to bug #393 (UTF16 codec didn't like empty strings) and
corrected some usage of 'unsigned long' where Py_UNICODE
should have been used.

24 years agoDefunct the _XOPEN_SOURCE define for now. Suggested by Fredrik
Marc-André Lemburg [Fri, 7 Jul 2000 11:24:49 +0000 (11:24 +0000)]
Defunct the _XOPEN_SOURCE define for now. Suggested by Fredrik
Lundh as response to bug reports on True64 and IRIX.

24 years agoTwo more places where long should be used instead of int. Especially
Sjoerd Mullender [Fri, 7 Jul 2000 09:47:24 +0000 (09:47 +0000)]
Two more places where long should be used instead of int.  Especially
true after revision 2.36 was checked in...

24 years agoBill Tutt: Added Py_UCS4 typedef to hold UCS4 values (these need
Marc-André Lemburg [Fri, 7 Jul 2000 09:01:41 +0000 (09:01 +0000)]
Bill Tutt: Added Py_UCS4 typedef to hold UCS4 values (these need
at least 32 bits as opposed to Py_UNICODE which rely on having
16 bits).

24 years agoNew module webbrowser. Easy-to-use controller objects to make using a
Fred Drake [Fri, 7 Jul 2000 03:36:12 +0000 (03:36 +0000)]
New module webbrowser.  Easy-to-use controller objects to make using a
Web browser as a help/information browser easy across platforms.

24 years agoFixed some code that used 'short' to use 'long' instead.
Marc-André Lemburg [Thu, 6 Jul 2000 20:13:23 +0000 (20:13 +0000)]
Fixed some code that used 'short' to use 'long' instead.

24 years agoFixed a couple of places where 'int' was used where 'long'
Marc-André Lemburg [Thu, 6 Jul 2000 19:43:31 +0000 (19:43 +0000)]
Fixed a couple of places where 'int' was used where 'long'
should have been used.

24 years agoFix bug #392, reported by Jonathan Giddy <jon@dstc.edu.au>:
Fred Drake [Thu, 6 Jul 2000 19:42:19 +0000 (19:42 +0000)]
Fix bug #392, reported by Jonathan Giddy <jon@dstc.edu.au>:
In posixmodule.c:posix_fork, the function PyOS_AfterFork is called for
both the parent and the child, despite the docs stating that it should
be called in the new (child) process.

This causes problems in the parent since the forking thread becomes the
main thread according to the signal module.

Calling PyOS_AfterFork() only in the child fixes this.  Changed for both
fork() and forkpty().

24 years agoPython 2.0 is not supposed to use string exceptions in the standard library
Fred Drake [Thu, 6 Jul 2000 19:38:49 +0000 (19:38 +0000)]
Python 2.0 is not supposed to use string exceptions in the standard library
& extensions, so create exceptions in extension modules using the
PyErr_NewException() API.

24 years agoadded read_history_file and write_history_file
Skip Montanaro [Thu, 6 Jul 2000 18:55:12 +0000 (18:55 +0000)]
added read_history_file and write_history_file
XXX should perhaps support history truncation as well

24 years agoClean up markup to be more like recommended practice; only small changes
Fred Drake [Thu, 6 Jul 2000 18:37:08 +0000 (18:37 +0000)]
Clean up markup to be more like recommended practice; only small changes
needed.

24 years agoRemoved unused variables.
Andrew M. Kuchling [Thu, 6 Jul 2000 18:14:03 +0000 (18:14 +0000)]
Removed unused variables.
Added two functions that were left out of the method definition table.

24 years agoCorrect a markup nit that caused a space to be dropped from the HTML
Fred Drake [Thu, 6 Jul 2000 18:09:02 +0000 (18:09 +0000)]
Correct a markup nit that caused a space to be dropped from the HTML
version (actually a LaTeX2HTML bug), and clarified a sentence in the
mktime() description based entirely on comments from Grant Griffin
<grant.griffin@honeywell.com>.

24 years agodon't prepend "$(srcdir)/" to paths beginning with "$" since they are likely
Skip Montanaro [Thu, 6 Jul 2000 17:58:06 +0000 (17:58 +0000)]
don't prepend "$(srcdir)/" to paths beginning with "$" since they are likely
to be absolute.

24 years agoMinor changes. Explain that for class exceptions, use excdesc but do not
Fred Drake [Thu, 6 Jul 2000 16:12:47 +0000 (16:12 +0000)]
Minor changes.  Explain that for class exceptions, use excdesc but do not
document the constructor parameters.  Need a better way, but this will do
for now.

24 years agoMake a distinction between shorts and unsigned shorts.
Jack Jansen [Thu, 6 Jul 2000 15:17:52 +0000 (15:17 +0000)]
Make a distinction between shorts and unsigned shorts.

24 years agoConditionally (currently on ifdef macintosh) break the large switch up
Jack Jansen [Thu, 6 Jul 2000 13:57:38 +0000 (13:57 +0000)]
Conditionally (currently on ifdef macintosh) break the large switch up
into 1000-case smaller ones.

24 years agomodified template to demonstrate subsection for examples.
Skip Montanaro [Thu, 6 Jul 2000 13:43:37 +0000 (13:43 +0000)]
modified template to demonstrate subsection for examples.

24 years agoAdded support for H (unsigned short) specifier in PyArg_ParseTuple and
Jack Jansen [Thu, 6 Jul 2000 12:22:00 +0000 (12:22 +0000)]
Added support for H (unsigned short) specifier in PyArg_ParseTuple and
Py_BuildValue.

24 years agoAdded new codec APIs and a new interface method .encode() which
Marc-André Lemburg [Thu, 6 Jul 2000 11:29:01 +0000 (11:29 +0000)]
Added new codec APIs and a new interface method .encode() which
works just like the Unicode one. The C APIs match the ones in the Unicode
implementation, but were extended to be able to reuse the existing
Unicode codecs for string purposes too.

Conversions from string to Unicode and back are done using the
default encoding.

24 years agoAdded prototypes for the new codec APIs for strings. These APIs
Marc-André Lemburg [Thu, 6 Jul 2000 11:25:40 +0000 (11:25 +0000)]
Added prototypes for the new codec APIs for strings. These APIs
match the ones in the Unicode implementation, but were extended
to be able to reuse the existing Unicode codecs for string
purposes too.

Conversion from string to Unicode and back are done using the
default encoding.

24 years agoChange whitespace in two places to silence tabnanny.
Guido van Rossum [Thu, 6 Jul 2000 05:34:14 +0000 (05:34 +0000)]
Change whitespace in two places to silence tabnanny.
Also fix spelling tupel -> tuple.

24 years agoAdded some further description to the usage of the seealso environment.
Fred Drake [Thu, 6 Jul 2000 05:24:41 +0000 (05:24 +0000)]
Added some further description to the usage of the seealso environment.

Documented the \seerfc and \seeurl macros used in that environment as well.

24 years agoSeveral small changes, mostly to the markup, to improve consistency and
Fred Drake [Thu, 6 Jul 2000 04:51:04 +0000 (04:51 +0000)]
Several small changes, mostly to the markup, to improve consistency and
internal hyperlinking.  Move some things around, also for consistency
with other modules ("See also" stuff tends to live at the \section level,
before sub-sections, etc.).