Martin v. Löwis
b8fc972100
Fix typo. Thanks to Jack Jansen for spotting it.
2001-10-24 17:35:46 +00:00
Martin v. Löwis
eb9b103296
Check for HP/UX curses problems. Define _XOPEN_SOURCE_EXTENDED and
...
STRICT_SYSV_CURSES when compiling curses module on HP/UX. Generalize
access to _flags on systems where WINDOW is opaque. Fixes bugs
#432497, #422265, and the curses parts of #467145 and #473150.
2001-10-24 17:10:49 +00:00
Martin v. Löwis
861a65bc2f
Include netdb.h to detect getaddrinfo. Work around problem with getaddrinfo
...
not properly processing numeric IPv4 addresses. Fixes V5.1 part of #472675.
2001-10-24 14:36:00 +00:00
Jack Jansen
6bc55c435a
Oops, undo previous change, which wasn't supposed to escape from my
...
machine. Luckily everyone is asleep, so I didn't have to use the time
machine.
2001-10-24 08:49:59 +00:00
Jack Jansen
72af01aac6
Added missing cast.
2001-10-23 22:29:06 +00:00
Jack Jansen
e54968a11a
Some escaped newlines had spaces between the backslash and the newline. Also slightly changed the comment on xstat().
2001-10-23 22:28:23 +00:00
Jack Jansen
9ca14ec7cc
New URL for Joe Strouts example page.
2001-10-23 22:27:17 +00:00
Jack Jansen
963659af29
Got this to work in MacPython. The code is #ifdef macintosh style (to match the existing #ifdef MS_WINDOWS), but eventually ifdeffing on configure features is probably better.
2001-10-23 22:26:16 +00:00
Jack Jansen
6f1da007b9
Added _hotshot.
2001-10-23 22:23:44 +00:00
Jack Jansen
a43ad368ba
quit() wasn't included in the suite. This is a quick manual patch to add it.
2001-10-23 22:23:02 +00:00
Jack Jansen
5d528b787e
Tweaks for MacPython 2.2b1
2001-10-23 22:22:09 +00:00
Jack Jansen
8626aeb1ce
Tweaks for MacPython 2.2b1.
2001-10-23 22:18:10 +00:00
Guido van Rossum
83c3281826
Apply the first chunk of the second patch from SF bug #471720:
...
ThreadingMixIn/TCPServer forgets close (Max Neunhöffer).
This ensures that handle_error() and close_request() are called when
an error occurs in the thread.
(I am not applying the second chunk of the patch, which moved the
finish() call into the finally clause in BaseRequestHandler's __init__
method; that would be a semantic change that I cannot accept at this
point - the data would be sent even if the handler raised an
exception.)
2001-10-23 21:42:45 +00:00
Guido van Rossum
00ebd46dfc
SF patch #474175 (Jay T Miller): file.readinto arg parsing bug
...
The C-code in fileobject.readinto(buffer) which parses
the arguments assumes that size_t is interchangeable
with int:
size_t ntodo, ndone, nnow;
if (f->f_fp == NULL)
return err_closed();
if (!PyArg_Parse(args, "w#", &ptr, &ntodo))
return NULL;
This causes a problem on Alpha / Tru64 / OSF1 v5.1
where size_t is a long and sizeof(long) != sizeof(int).
The patch I'm proposing declares ntodo as an int. An
alternative might be to redefine w# to expect size_t.
[We can't change w# because there are probably third party modules
relying on it. GvR]
2001-10-23 21:25:24 +00:00
Fred Drake
0d429e8cdd
Convert the ref() and proxy() implementations to use the new
...
PyArg_UnpackTuple() function (serves as an example and test case).
2001-10-23 21:12:47 +00:00
Fred Drake
c84f2c5068
Documentation for the new PyArg_UnpackTuple() function.
2001-10-23 21:10:18 +00:00
Fred Drake
e4616e6752
PyArg_UnpackTuple(): New argument unpacking function suggested by Jim
...
Fulton, based on code Jim supplied.
2001-10-23 21:09:29 +00:00
Andrew M. Kuchling
4855b02554
Fill out section on how to write a new-style class
2001-10-23 20:26:16 +00:00
Guido van Rossum
f66dacdb01
test_curses is an expected skip on Linux too.
2001-10-23 15:10:55 +00:00
Fred Drake
563dfc2f73
Style conformance: function name begins a new line *consistently*.
...
Make convertbuffer() static like the prototype says. Not used elsewhere.
2001-10-23 14:41:08 +00:00
Steven M. Gava
429a86af5b
font/tabs config dialog page now reads its data from the config file
2001-10-23 10:42:12 +00:00
Tim Peters
c77db34575
SF bug [#473864] doctest expects spurios space.
...
Repair unlikely surprise due to magical softspace attr and the use of
print with a trailing comma in doctest examples.
Bugfix candidate.
2001-10-23 02:21:52 +00:00
Neil Schemenauer
90b689076a
Add function attributes that allow GCC to check the arguments of printf-like
...
functions.
2001-10-23 02:21:22 +00:00
Neil Schemenauer
156910851e
Hide GCC attributes fom compilers that don't support them.
2001-10-23 02:20:37 +00:00
Tim Peters
98791affc8
Doc and NEWS changes due to Jeremy adding traceback objects to gc.
2001-10-23 01:59:54 +00:00
Jeremy Hylton
fd14d8e187
Make traceback objects collectable.
...
This should eliminate the traceback returned by sys.exc_info() as a
common source of memory leaks.
2001-10-22 22:17:41 +00:00
Tim Peters
d703057752
Record that test_curses doesn't run on win32.
2001-10-22 22:06:08 +00:00
Fred Drake
4bf018b138
Fixed denial-of-weak-ref-support test; Jeremy changed the error message
...
used by the weakref code since he didn't like the word "referencable".
Is it really necessary to be more specific than to test for TypeError here,
though?
2001-10-22 21:45:25 +00:00
Fredrik Lundh
6de22ef677
another major speedup: let sre.sub/subn check for escapes in the
...
template string, and don't call the template compiler if we can
avoid it.
2001-10-22 21:18:08 +00:00
Barry Warsaw
d05e051aa7
Fixed an example in the use of email.Utils.getaddresses(). The
...
failobj has to be a list or the `+' can fail.
2001-10-22 20:53:45 +00:00
Tim Peters
d7c3652aa7
Removed two pointless and obfuscating macros.
2001-10-22 19:34:09 +00:00
Fred Drake
cb7a6b5bf7
Added two very tardy notes about the 2.2b1 release, fixed a typo.
2001-10-22 18:41:51 +00:00
Jeremy Hylton
efef5dae94
A few formatting nits:
...
Don't put paren in column 0 (to please font-lock mode).
Put space after comma in argument list.
2001-10-22 18:14:15 +00:00
Fred Drake
a219b411af
Add better support for Mozilla's use of <link> elements.
2001-10-22 16:57:49 +00:00
Andrew M. Kuchling
15e0353715
Add curses-related news items
2001-10-22 16:37:10 +00:00
Jeremy Hylton
996fad315c
Referencable is not a word, so don't use it in an error message <wink>.
2001-10-22 16:31:40 +00:00
Jeremy Hylton
39a362d9f4
cleanup indentation
2001-10-22 16:30:36 +00:00
Andrew M. Kuchling
32e3232a55
Update bug/patch counts
2001-10-22 15:32:05 +00:00
Andrew M. Kuchling
2158df0b4d
Patch #473187: Add a test script that exercises most of the functions in
...
the curses module. It's not run automatically; '-u curses' must be
specified as an argument to regrtest
2001-10-22 15:26:09 +00:00
Fred Drake
f10584cb11
Do a little bit more to try and add <link> elements to the header, not that
...
Mozilla 0.9.5 can make intelligent use of them. Specifically, this causes
the "Acknowledgements" and "Global Module Index" pages to acquire "up"
links in the Mozilla "Site Navigation Bar".
This partially responds to SF bug #469772.
2001-10-22 15:07:16 +00:00
Fred Drake
5d9a6b575c
Clarify that the resource module does not attempt to mask platform
...
differences by defining symbols not defined on particular platforms.
This closes SF bug #473433.
2001-10-22 14:18:23 +00:00
Andrew M. Kuchling
beb385568c
Add correction from /F about SRE
...
\filename{} should be \file{}
2001-10-22 14:11:06 +00:00
Fredrik Lundh
f864aa8fd9
sre.split should return the last segment, even if empty
...
(sorry, barry)
2001-10-22 06:01:56 +00:00
Guido van Rossum
5c66a26dee
Make the error message for unsupported operand types cleaner, in
...
response to a message by Laura Creighton on c.l.py. E.g.
>>> 0+''
TypeError: unsupported operand types for +: 'int' and 'str'
(previously this did not mention the operand types)
>>> ''+0
TypeError: cannot concatenate 'str' and 'int' objects
2001-10-22 04:12:44 +00:00
Andrew M. Kuchling
279e744573
Partly fill out the PEP 252 section
2001-10-22 02:03:40 +00:00
Andrew M. Kuchling
8b42f01667
A bunch of minor rewordings
2001-10-22 02:00:11 +00:00
Guido van Rossum
56ff387a7e
Fix for SF bug #472940: can't getattr() attribute shown by dir()
...
There really isn't a good reason for instance method objects to have
their own __dict__, __doc__ and __name__ properties that just delegate
the request to the function (callable); the default attribute behavior
already does this.
The test suite had to be fixed because the error changes from
TypeError to AttributeError.
2001-10-22 02:00:09 +00:00
Andrew M. Kuchling
51c18166bb
Fix some typos
2001-10-22 01:47:26 +00:00
Guido van Rossum
c8e5645f15
Methods of built-in types now properly check for keyword arguments
...
(formerly these were silently ignored). The only built-in methods
that take keyword arguments are __call__, __init__ and __new__.
2001-10-22 00:43:43 +00:00
Guido van Rossum
d6bebce5e5
Make tabnanny happy. (Piers, please run the test suite before
...
checking in changes. The test suite requires consistent use of spaces
and tabs.)
2001-10-22 00:42:26 +00:00