Guido van Rossum
72297bb71e
Fix memory leak in add_subclass() found by NealN with valgrind.
...
Will backport.
2002-10-18 13:41:47 +00:00
Martin v. Löwis
e4913c9987
Patch #624936 : Implement __contains__.
2002-10-18 08:58:14 +00:00
Neal Norwitz
d7bc0fec38
Try to fix the broken links caused by multiple \ref on the same line.
...
SF bug #217195 .
Not sure if chomp() is correct, but chop() definitely has problems.
This change seems to have no ill effects.
Backport candidate if Fred agrees.
2002-10-18 02:05:47 +00:00
Neal Norwitz
d8407a7031
Add new encoding for Ukrainian Cyrillic
2002-10-17 22:15:33 +00:00
Fred Drake
1e146e7876
Continue to work even though the test can be named test.test_regex
...
these days.
2002-10-17 22:13:28 +00:00
Fred Drake
7633d2393f
Don't call warnings.resetwarnings(); that does bad things that cause
...
other tests to generate warning when they didn't before. In
particular, this cancels not only filters set by -W, but also from
test.regrtest.
2002-10-17 22:09:03 +00:00
Guido van Rossum
154c08894b
Refactor cmd_view(): move line formatting to a helper method.
2002-10-17 21:43:47 +00:00
Guido van Rossum
9c3848b39b
In cmd_create(), use a redirect directive instead of viewing the page;
...
this avoids resubmitting POST data.
Remove redundant 'Page' from label passed from cmd_new().
2002-10-17 21:41:42 +00:00
Fred Drake
8ed0204bc9
If we have a filename and __main__.__file__ hasn't already been set,
...
set it.
Closes SF issue #624729 .
2002-10-17 21:24:58 +00:00
Fred Drake
5134a54df9
Fix minor whitespace nit, for consistency with Python's C style rules.
2002-10-17 20:37:50 +00:00
Fred Drake
de4742b87f
Remove spurious cruft from the output.
2002-10-17 20:36:08 +00:00
Fred Drake
330f72c6df
Clean up some whitespace to be consistent with Python's C style.
2002-10-17 19:48:27 +00:00
Guido van Rossum
3296dcc65d
Remove redundant load() call.
2002-10-17 19:30:39 +00:00
Fred Drake
5f2c1d27b9
Typo(!): "normal" -> "number"
2002-10-17 19:23:43 +00:00
Guido van Rossum
a55dda6773
Grammar repair in comment.
2002-10-17 16:33:40 +00:00
Guido van Rossum
c9776bd8dd
Use tempfile.gettempdir() to get the temp directory rather than
...
hardcoding "/tmp".
2002-10-17 16:26:45 +00:00
Guido van Rossum
b390315872
Must catch TypeError from int(length).
2002-10-17 16:21:35 +00:00
Guido van Rossum
f66cccf506
Restructure: move all wiki code into a separate module.
2002-10-17 15:53:02 +00:00
Guido van Rossum
26a1ac462c
Add trailing newline when saving.
2002-10-17 13:34:01 +00:00
Guido van Rossum
48123b266c
Security fixes: reject non-wiki-word page names; set homedir to /tmp.
...
Show errors returned by store().
A few nits.
2002-10-17 11:45:54 +00:00
Fred Drake
f606e8d705
Added missing entries to __all__.
2002-10-16 21:21:39 +00:00
Fred Drake
707056580f
Make sure we test urlsplit() / urlunsplit() directly, rather than
...
guessing that urlparse() / urlunparse() use them.
Add tests of urldefrag().
2002-10-16 21:02:36 +00:00
Guido van Rossum
68077210c2
Some really simple cgi examples. cgi3 is a MiniWiki.
2002-10-16 21:01:27 +00:00
Martin v. Löwis
60a5d72908
Patch #623780 : Replace obsolete struct macros.
2002-10-16 20:28:25 +00:00
Fred Drake
98ef20d5e4
Document urldefrag().
2002-10-16 20:07:54 +00:00
Martin v. Löwis
ceaa77cf85
Add n_unnamed_fields into the type.
2002-10-16 19:10:03 +00:00
Martin v. Löwis
a19bfe07e0
Correct stat_result float time stamps entry.
2002-10-16 18:28:36 +00:00
Martin v. Löwis
f607bdaa77
Add PyStructSequence_UnnamedField. Add stat_float_times.
...
Use integers in stat tuple, optionally floats in named fields.
2002-10-16 18:27:39 +00:00
Thomas Heller
5b1614d568
Recreated after source changes.
2002-10-16 17:51:38 +00:00
Guido van Rossum
1e700d24e9
posix_execve(): add missing argument for "et" format in PyArg_Parse()
...
call. This caused mysterious crashes (hard to debug because it was
happening in a child process).
2002-10-16 16:52:11 +00:00
Fred Drake
2314a0470f
Use string methods. Re-organize imports to Python Normal Form.
2002-10-16 16:06:07 +00:00
Fred Drake
27c4e09a62
Only reset _is_empty if needed.
2002-10-16 16:02:08 +00:00
Fred Drake
df85f0b09f
Modernization: Use string methods, use str instead of
...
types.StringType, inherit from list instead of
UserList.
2002-10-16 16:00:42 +00:00
Fred Drake
071972e426
Use string methods.
2002-10-16 15:30:17 +00:00
Fred Drake
06912b7702
Use string methods. Organize the imports in Python Normal Form.
2002-10-16 15:29:07 +00:00
Fred Drake
4fe904d3d6
Use string methods; minor code cleanup.
2002-10-16 14:59:02 +00:00
Thomas Heller
0cf4269862
Recreated after source changes.
2002-10-15 19:45:25 +00:00
Martin v. Löwis
77ac429eff
Patch #572628 : Optional timeouts for put and get.
2002-10-15 15:11:13 +00:00
Thomas Heller
d98d25e22d
Revert the previous checkin - it didn't work anyway.
2002-10-15 14:51:58 +00:00
Guido van Rossum
6e5680fc83
For some reason (probably cut and paste), __ipow__ for new-style
...
classes was called with three arguments. This makes no sense, there's
no way to pass in the "modulo" 3rd argument as for __pow__, and
classic classes don't do this. [SF bug 620179]
I don't want to backport this to 2.2.2, because it could break
existing code that has developed a work-around. Code in 2.2.2 that
wants to use __ipow__ and wants to be forward compatible with 2.3
should be written like this:
def __ipow__(self, exponent, modulo=None):
...
2002-10-15 01:01:53 +00:00
Martin v. Löwis
13b1a5cc99
Don't drop old slots if _unicode_to_string did not change anything.
2002-10-14 21:11:34 +00:00
Martin v. Löwis
d919a59ab5
Allow Unicode strings in __slots__, converting them to byte strings.
2002-10-14 21:07:28 +00:00
Martin v. Löwis
ff9284bc2e
Allow Unicode strings as message and module name.
2002-10-14 21:06:02 +00:00
Guido van Rossum
e0fea6c4ed
[SF bug 620364]
...
In build_extensions(), don't proceed if srcdir is None. Probably
somebody who tried this on Windows. :-)
2002-10-14 20:48:09 +00:00
Martin v. Löwis
5357c6511d
Convert empty string literal to string. Speed up creation of idmap.
2002-10-14 20:03:40 +00:00
Guido van Rossum
bbc0568a5c
Fix for 1.33: urlsplit() should only add '//' if scheme != ''.
...
Will add test and backport.
2002-10-14 19:59:54 +00:00
Barry Warsaw
6e75364cbe
I'd forgotten that tcsh was the default for 10.1, but SF's 10.1 system
...
uses bash and so does my 10.2 system. "limit stacksize 2048" is the
right invocation for tcsh/csh.
2002-10-14 18:15:35 +00:00
Barry Warsaw
6a8557da36
There was a typo in the MacOSX section regarding the stacksize issue.
...
There's no limit command near as I can tell. Should be the bash
builtin ulimit command.
2002-10-14 18:04:39 +00:00
Barry Warsaw
67f8f2fe2a
append(): Fixing the test for convertability after consultation with
...
Ben. If s is a byte string, make sure it can be converted to unicode
with the input codec, and from unicode with the output codec, or raise
a UnicodeError exception early. Skip this test (and the unicode->byte
string conversion) when the charset is our faux 8bit raw charset.
2002-10-14 16:52:41 +00:00
Fred Drake
816aebdf94
Use the same shade of blue as the site navigation areas.
2002-10-14 15:45:11 +00:00