Fred Drake
b112481f12
Ignore the posixfile deprecation warning for the test suite.
2001-10-25 18:11:10 +00:00
Guido van Rossum
70e3688364
complex_subtype_from_string(): move the declaration of s_buffer[] out
...
of the if block where it was before. The name is only used inside
that if block, but the storage is referenced outside it via the 's'
variable.
(This patch was part of SF patch #474590 -- RISC OS support.)
2001-10-25 18:07:22 +00:00
Fred Drake
847c51a181
Slightly better conformance to the Python C style guide.
2001-10-25 15:53:44 +00:00
Fred Drake
af876d77e0
One more LaTeX-ism that we'd rather ignore.
2001-10-25 15:14:57 +00:00
Fred Drake
a281665972
No need to run make twice here.
2001-10-25 15:13:30 +00:00
Fred Drake
0099d8f8fb
Update the rules so that changes to the HTML stylesheet cause appropriate
...
work to be done, but do not require the HTML to be re-built.
2001-10-25 15:12:31 +00:00
Martin v. Löwis
7c4b5faa93
After discussion with itojun, it was clarified that Tru64 is in error,
...
and that the work-around should be restricted to that system.
2001-10-25 09:04:03 +00:00
Fredrik Lundh
703ce8122c
(experimental) "finditer" method/function. this works pretty much
...
like findall, but returns an iterator (which returns match objects)
instead of a list of strings/tuples.
2001-10-24 22:16:30 +00:00
Fred Drake
9242a4af17
Add a warning to the posixfile module stating that it will go away.
2001-10-24 22:03:35 +00:00
Fred Drake
bc006af3d0
Make the deprecation notice use the same form as other such notices.
...
This has sat around in a deprecated state for a *long* time!
2001-10-24 21:56:59 +00:00
Fred Drake
0559d95fd6
Minor revision of the text.
2001-10-24 21:10:52 +00:00
Guido van Rossum
491921467c
Note updated RISCOS port. Remove reference in the 2.1 release notes
...
to os.extsep -- that variable actually didn't exist in that release!
2001-10-24 20:51:44 +00:00
Fred Drake
a768882b00
Convert getrefcount() to METH_O, and sys_excepthook() to use
...
PyArg_UnpackTuple().
2001-10-24 20:47:48 +00:00
Guido van Rossum
e2ae77b8b8
SF patch #474590 -- RISC OS support
2001-10-24 20:42:55 +00:00
Tim Peters
c6ac8a78f6
SF bug #473525 pyclbr broken
...
As the comments in the module implied, pyclbr was easily confused by
"strange stuff" inside single- (but not triple-) quoted strings. It
isn't anymore. Its behavior remains flaky in the presence of nested
functions and classes, though.
Bugfix candidate.
2001-10-24 20:22:40 +00:00
Guido van Rossum
e877f8ba33
SF patch #474590 -- RISC OS support
2001-10-24 20:13:15 +00:00
Guido van Rossum
622cc03f0b
SF patch #474590 -- RISC OS support
2001-10-24 20:04:51 +00:00
Fred Drake
08fd51509c
When describing "import *", add a level of indirection between "*" and the
...
set of names imported (the "public names"), adding a definition of "public
names" that describes the use of __all__.
This closes SF bug #473986 .
Flesh out the vague reference to __import__().
2001-10-24 19:50:31 +00:00
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