Commit graph

14364 commits

Author SHA1 Message Date
Marc-André Lemburg
6ef68b5b01 Fix to bug [ Bug #111860 ] file.writelines() crashes.
file.writelines() now tries to emulate the behaviour of file.write()
as closely as possible. Due to the problems with releasing the
interpreter lock the solution isn't exactly optimal, but still better
than not supporting the file.write() semantics at all.
2000-08-25 22:39:50 +00:00
Marc-André Lemburg
4ea8d6e52e Output of the new test 2000-08-25 22:37:51 +00:00
Marc-André Lemburg
fa44d794bd New test suite for file objects by Jeremy Hilton. This will need
to be extended somewhat -- right now it only tests the .writelines()
method.
2000-08-25 22:37:31 +00:00
Jack Jansen
ab0280d252 How-to document for using Python for CGI scripting. Not complete and untested, but I'm checking it in so it won't get lost. 2000-08-25 22:36:13 +00:00
Jack Jansen
be80fa2f5d Last set of CW Pro 5 projects (probably) 2000-08-25 22:33:27 +00:00
Jack Jansen
3e98501f76 Include xx project, exclude all the others. 2000-08-25 22:30:24 +00:00
Jack Jansen
7a1b6fe020 Added prototype for DlgObj_ConvertToWindow(). 2000-08-25 22:28:08 +00:00
Jack Jansen
b8c4c7b37e Added routine DlgObj_ConvertToWindow().
GetDialogWindow() returns an existing window.
Added a comment that the methodchain Dialogs->Windows is suspect under Carbon/MacOSX, but we need it under Carbon. No solution yet:-(
2000-08-25 22:25:54 +00:00
Jack Jansen
8748a0b654 Added a prototype for mstats(). 2000-08-25 22:18:20 +00:00
Jack Jansen
0aee0e61f8 Window objects now also have an AutoDispose funcpointer (set for our windows, cleared for foreign windows). Needed mainly for Carbon (where we don't know about the windows belonging to our dialogs).
Fixed a few calls that return an ExistingWindow.
2000-08-25 22:17:51 +00:00
Jack Jansen
0c1836f13b Call GetDialogWindow to convert dialogs to windows. 2000-08-25 22:06:19 +00:00
Jack Jansen
d8b382dc47 HMGetBalloonWindow should try to return an existing window. 2000-08-25 22:04:24 +00:00
Jack Jansen
cdb3483744 - Added pyexpat.
- Renamed socket to _socket.
2000-08-25 22:03:34 +00:00
Jack Jansen
e4cd2f28c6 Don't use our own malloc any more. It made test_longexp crash due to its optimization to lock blocks into a specific size malloc requests. This loses 15% performance, but that we'll have to live with:-( 2000-08-25 22:02:44 +00:00
Jack Jansen
a9f56e5c54 Don't redefine ERSCH, EINTR and ENODEV if we're using GUSI2. 2000-08-25 22:00:22 +00:00
Jack Jansen
6be3480083 Removed debug output. 2000-08-25 21:58:00 +00:00
Jack Jansen
14a9171cff Cheaper implementation of PyOS_CheckStack: only call StackSpace once and keep a sentinel in a static variable. 2000-08-25 21:57:23 +00:00
Moshe Zadka
a1a4b5916b Closing patch #101120 -- After everyone agreed. 2000-08-25 21:47:56 +00:00
Marc-André Lemburg
dc3d606bd9 Fix to [ Bug #111165 ] doc-string removal masked by PYTHONOPTIMIZE 2000-08-25 21:00:46 +00:00
Barry Warsaw
fa488ec2a0 _expand_lang(), _find(): Added support for unaliasing and expanded the
language found in the environment variable, contributed by James
Henstridge.
2000-08-25 20:26:43 +00:00
Barry Warsaw
1dce09da61 Group consensus is that supporting alternative locale categories is
useless.  So the test of the dcgettext() function is removed.
2000-08-25 19:53:51 +00:00
Barry Warsaw
84314b72d6 Group consensus is that supporting alternative locale categories is
useless.  So the category argument on _find() is removed, as is the
dcgettext() function.
2000-08-25 19:53:17 +00:00
Barry Warsaw
ff6d813657 Set this test up so that we don't have to create xx/LC_MESSAGES in the
cvs tree.  It creates the directory and gettext.mo file on the fly,
from the base64 encode binary data.
2000-08-25 19:50:38 +00:00
Barry Warsaw
e332c1f415 updated test output 2000-08-25 19:49:28 +00:00
Barry Warsaw
dd46cb38ce output from test_gettext.py test suite 2000-08-25 19:15:00 +00:00
Barry Warsaw
9e03592149 Test suite for new gettext.py module. 2000-08-25 19:14:25 +00:00
Barry Warsaw
95be23dc86 Initial revision of gettext support for Python. This will undergo
some changes.
2000-08-25 19:13:37 +00:00
Fred Drake
6f9876212d initpyexpat(): Code cleanup; makes it more robust and reduces warnings.
Added prototype to remove yet another warning.

Make a number of the handlers and helpers "static" since they are not
used in other C source files.  This also reduces the number of warnings.

Make a lot of the code "more Python".  (Need to get the style guide done!)
2000-08-25 18:03:30 +00:00
Fred Drake
0308ff8652 Add reference to RFC 2396 in "See also" section.
Minor cleanups.
2000-08-25 17:29:35 +00:00
Fred Drake
21801de6dc Jeremy missed a bind() call when updating these demos. ;) 2000-08-25 16:03:27 +00:00
Jeremy Hylton
a8d30d5d66 update demo scripts to use addr tuples for bind and connect
closes bug #111928
2000-08-25 15:38:41 +00:00
Sjoerd Mullender
239f836c10 Not every OS that support poll seems to support POLLMSG. 2000-08-25 13:59:18 +00:00
Sjoerd Mullender
d7b86f0056 Pass data on to retrieve method.
Don't people *test* their changes?
2000-08-25 11:23:36 +00:00
Thomas Wouters
1de2a79a48 Call PyErr_Clear() to clear the AttributeError raised by GetAttr. 2000-08-25 10:47:46 +00:00
Tim Peters
aff1284ed1 In readme.txt, make what's needed to build the "optional" subprojects
much more explicit.  Also document that we're moving to Tcl/Tk 8.3.2.
Simplify .dsp files by getting rid of useless include paths.
.wse file changed to reflect that my setup is different than Guido's:
if you *build* a Python distro using python20.wse, beware!
2000-08-25 06:52:44 +00:00
Thomas Wouters
b59290f5b2 Fix allowable node-types for assignment, need to add 'listmaker'.
(This fix is a bit broken, just as the test already was: the test for
testlist and listmaker are done always, whereas the test for exprlist and
the actual abort() are only done if Py_DEBUG is defined. Suggestions
welcome, I guess ;)
2000-08-25 05:41:11 +00:00
Fred Drake
dfca4dc503 Revised documentation relevant to SourceForge patch #100837
(simplify making HTTP POST requests).

Added documentation of URLopener.version and how it can be overridden.
2000-08-25 05:13:42 +00:00
Andrew M. Kuchling
99a3701618 Documentation for poll() interface (SF patch #100852) 2000-08-25 01:21:28 +00:00
Andrew M. Kuchling
3227cc8c09 Test suite for poll() interface (SF patch #100852) 2000-08-25 01:18:45 +00:00
Andrew M. Kuchling
cf96dc800e Add interface to poll() system call (SF patch #100852) 2000-08-25 01:15:33 +00:00
Andrew M. Kuchling
5821b77782 Add configure tests for poll() (SF patch #100852) 2000-08-25 01:14:08 +00:00
Thomas Wouters
65f39adfb3 Adjust the name for the socket module in the SSL line. 2000-08-24 22:54:53 +00:00
Thomas Wouters
6af3b37021 Add missing opcodes. Thanx to jeremy for reminding me ;) 2000-08-24 22:44:53 +00:00
Fred Drake
6d63adfbb7 Improve the exceptions raised by PyErr_BadInternalCall(); adding the
filename and line number of the call site to allow esier debugging.

This closes SourceForge patch #101214.
2000-08-24 22:38:39 +00:00
Fred Drake
9ed49e979f Fix the evil booboos. ;( Causes discussed with Jeremy offline. 2000-08-24 22:27:02 +00:00
Fred Drake
c23b5239ae Remove the Py_FatalError() from initpyexpat(); the Guido has decreed
that this is not appropriate.

Made somewhat more robust in the face of reload() (exception is not
rebuilt, etc.).

Made the exception a class exception.
2000-08-24 21:57:43 +00:00
Peter Schneider-Kamp
fa12e13ae7 simple typo that makes regression test test_userstring fail 2000-08-24 21:47:34 +00:00
Thomas Wouters
e1519a1b4d Update for augmented assignment, tested & approved by Guido. 2000-08-24 21:44:52 +00:00
Thomas Wouters
34052622c9 Update for augmented assignment. 2000-08-24 21:08:39 +00:00
Thomas Wouters
104a7bcc28 Support for augmented assignment in the UserList, UserDict, UserString and
rfc822 (Addresslist) modules. Also a preliminary testcase for augmented
assignment, which should actually be merged with the test_class testcase I
added last week.
2000-08-24 20:14:10 +00:00