Marc-André Lemburg
4707320566
Added new APIs and fixed some other Unicode ones (missing * or
...
extra ' ').
2000-07-07 15:48:54 +00:00
Marc-André Lemburg
5a20b21fb1
Added docs for the new Unicode and string APIs.
2000-07-07 15:47:06 +00:00
Marc-André Lemburg
71f36983b9
Removed a prototype which is not used in socketmodule.c
...
Patch by T. Wouters.
2000-07-07 14:13:29 +00:00
Marc-André Lemburg
1b1bcc9935
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).
2000-07-07 13:48:25 +00:00
Marc-André Lemburg
5a5c81a0e9
Added new API PyUnicode_FromEncodedObject() which supports decoding
...
objects including instance objects.
The old API PyUnicode_FromObject() is still available as shortcut.
2000-07-07 13:46:42 +00:00
Marc-André Lemburg
b6d78fcd9c
Tests for new instance support in unicode().
2000-07-07 13:46:19 +00:00
Jack Jansen
3d476d73a9
So many things have changed over the last few weeks that it's probably a good idea to check the project files in again.
2000-07-07 13:15:36 +00:00
Jack Jansen
0b13e7c153
Changed all (hopefully) uses of unsigned 16 bit value to use H format specifier, now that h is signed-only.
2000-07-07 13:09:35 +00:00
Jack Jansen
89d017d072
Added the unchash module.
2000-07-07 13:08:09 +00:00
Marc-André Lemburg
063e0cb4c6
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.
2000-07-07 11:27:45 +00:00
Marc-André Lemburg
295b1bbca1
Defunct the _XOPEN_SOURCE define for now. Suggested by Fredrik
...
Lundh as response to bug reports on True64 and IRIX.
2000-07-07 11:24:49 +00:00
Sjoerd Mullender
2629bd5a33
Two more places where long should be used instead of int. Especially
...
true after revision 2.36 was checked in...
2000-07-07 09:47:24 +00:00
Marc-André Lemburg
43279100f4
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).
2000-07-07 09:01:41 +00:00
Fred Drake
e4dbb86ab8
New module webbrowser. Easy-to-use controller objects to make using a
...
Web browser as a help/information browser easy across platforms.
2000-07-07 03:36:12 +00:00
Marc-André Lemburg
449c325303
Fixed some code that used 'short' to use 'long' instead.
2000-07-06 20:13:23 +00:00
Marc-André Lemburg
85cc4d8940
Fixed a couple of places where 'int' was used where 'long'
...
should have been used.
2000-07-06 19:43:31 +00:00
Fred Drake
49b0c3bafe
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().
2000-07-06 19:42:19 +00:00
Fred Drake
589c35bcc7
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.
2000-07-06 19:38:49 +00:00
Skip Montanaro
28067821e2
added read_history_file and write_history_file
...
XXX should perhaps support history truncation as well
2000-07-06 18:55:12 +00:00
Fred Drake
aa7524cf1f
Clean up markup to be more like recommended practice; only small changes
...
needed.
2000-07-06 18:37:08 +00:00
Andrew M. Kuchling
1a10400692
Removed unused variables.
...
Added two functions that were left out of the method definition table.
2000-07-06 18:14:03 +00:00
Fred Drake
29fa30ea6b
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>.
2000-07-06 18:09:02 +00:00
Skip Montanaro
fd022672a0
don't prepend "$(srcdir)/" to paths beginning with "$" since they are likely
...
to be absolute.
2000-07-06 17:58:06 +00:00
Fred Drake
e1a85f5e4a
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.
2000-07-06 16:12:47 +00:00
Jack Jansen
e3889da076
Make a distinction between shorts and unsigned shorts.
2000-07-06 15:17:52 +00:00
Jack Jansen
56cdce3070
Conditionally (currently on ifdef macintosh) break the large switch up
...
into 1000-case smaller ones.
2000-07-06 13:57:38 +00:00
Skip Montanaro
8968a8292f
modified template to demonstrate subsection for examples.
2000-07-06 13:43:37 +00:00
Jack Jansen
d50338fbd9
Added support for H (unsigned short) specifier in PyArg_ParseTuple and
...
Py_BuildValue.
2000-07-06 12:22:00 +00:00
Marc-André Lemburg
63f3d17418
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.
2000-07-06 11:29:01 +00:00
Marc-André Lemburg
3d1a1d7f0c
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.
2000-07-06 11:25:40 +00:00
Guido van Rossum
0a3f7978c4
Change whitespace in two places to silence tabnanny.
...
Also fix spelling tupel -> tuple.
2000-07-06 05:34:14 +00:00
Fred Drake
5802e48033
Added some further description to the usage of the seealso environment.
...
Documented the \seerfc and \seeurl macros used in that environment as well.
2000-07-06 05:24:41 +00:00
Fred Drake
3c62d9e656
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.).
2000-07-06 04:51:04 +00:00
Fred Drake
14ea85f325
Add entry for readline documentation.
2000-07-06 04:47:25 +00:00
Fred Drake
011028cf74
Sjoerd Mullender <sjoerd@oratrix.nl>:
...
Updates for recent changes in xmllib.
2000-07-06 04:45:14 +00:00
Fred Drake
d14423abe2
Correct typo in description of the machine name parameter to the
...
ConnectRegistry() function; there is no trailing period!
2000-07-06 04:38:37 +00:00
Skip Montanaro
63099f911f
added seealso pointing reader at readline example which uses atexit.
2000-07-06 03:26:39 +00:00
Skip Montanaro
510ca1d338
simple-minded readline section doc based upon module's doc strings.
2000-07-06 03:25:26 +00:00
Skip Montanaro
f9059ebede
fixed indentation in several places
2000-07-06 03:01:40 +00:00
Skip Montanaro
26a7983f08
fix indentation in one docstring
2000-07-06 02:56:36 +00:00
Skip Montanaro
a2dccfbc09
fix indentation in three docstrings
2000-07-06 02:55:41 +00:00
Fred Drake
191a28218f
Typo: "This table table" -> "This table is"
...
Noted by Nicholas Spies <ns11@voicenet.com>.
2000-07-06 00:50:42 +00:00
Skip Montanaro
0915165096
added warning about incompatibility with other codes' use of sys.exitfunc.
2000-07-05 23:11:26 +00:00
Tim Peters
54925f98d3
Add more "volatile" decls to stop gcc -Wall warnings.
...
Somebody w/ gcc please check that the wngs are gone!
There are cheaper (at runtime) ways to prevent the wngs, but
they're obscure and delicate. I'm going for the easy Big
Hammer here under the theory that PCRE will be replaced by
SRE anyway.
2000-07-05 22:56:52 +00:00
Fredrik Lundh
2855290b84
maintenance release:
...
- reorganized some code to get rid of -Wall and -W4
warnings
- fixed default argument handling for sub/subn/split
methods (reported by Peter Schneider-Kamp).
2000-07-05 21:14:16 +00:00
Marc-André Lemburg
1f46860a29
Fix to bug #389 :
...
Full_Name: Bastian Kleineidam
Version: 2.0b1 CVS 5.7.2000
OS: Debian Linux 2.2
Submission from: earth.cs.uni-sb.de (134.96.252.92)
2000-07-05 15:32:40 +00:00
Andrew M. Kuchling
da13f89fee
Remove definition of _GNU_SOURCE, since Python.h now does it for us
2000-07-05 12:22:14 +00:00
Marc-André Lemburg
5f0e29eb45
Modified the encode interfaces of all builtin codecs to accept
...
any object which can be converted to Unicode by means of
PyUnicode_FromObject().
2000-07-05 11:24:13 +00:00
Greg Stein
adf63d6c24
check for Pth *after* the standard system threading libraries. Pth should
...
not override those.
Submitted by: flight@users.sourceforge.net
2000-07-05 10:38:09 +00:00
Marc-André Lemburg
a7acf425f6
Added new .isalpha() and .isalnum() methods which provide interfaces
...
to the new alphabetic lookup APIs in unicodectype.c.
2000-07-05 09:49:44 +00:00