]>
granicus.if.org Git - python/log
Fred Drake [Tue, 22 Oct 2002 21:58:06 +0000 (21:58 +0000)]
Moved description of _urlopener adjacent to the related functions.
Added missing import to example code.
Added documentation for pathname2url(), url2pathname().
Closes SF bug #623196.
Fred Drake [Tue, 22 Oct 2002 21:00:44 +0000 (21:00 +0000)]
Describe __path__ along with the rest of the package description.
Closes SF bug #626554.
Fred Drake [Tue, 22 Oct 2002 20:31:22 +0000 (20:31 +0000)]
Modify example to use string methods instead of the string module.
Fred Drake [Tue, 22 Oct 2002 20:20:20 +0000 (20:20 +0000)]
Clarified the error cases and Unicode handling of PyString_AsString(),
PyString_AsStringAndSize(), and PyString_AS_STRING().
Closes SF bug #606463.
Greg Ward [Tue, 22 Oct 2002 18:31:50 +0000 (18:31 +0000)]
Add comment about inability to handle Unicode strings (hopefully a
temporary condition).
Fredrik Lundh [Tue, 22 Oct 2002 18:26:28 +0000 (18:26 +0000)]
terminology
Fredrik Lundh [Tue, 22 Oct 2002 18:23:00 +0000 (18:23 +0000)]
add support for basic authentication, based on patch #624180
by Phillip J. Eby
Fred Drake [Tue, 22 Oct 2002 15:06:49 +0000 (15:06 +0000)]
Clarify what versions of Windows are supported, and add Linux
specifically.
Raymond Hettinger [Tue, 22 Oct 2002 05:15:17 +0000 (05:15 +0000)]
Patches #626105:
Replaces the _center function in the calendar
module with the center method for strings.
For situations with uneven padding, the behavior is
slightly different in that the center method puts the
extra space on the right instead of the left.
Barry Warsaw [Mon, 21 Oct 2002 15:58:29 +0000 (15:58 +0000)]
(py-parse-state-re): Remove the "if" from the regular expression.
This fixes an indentation bug reported by Jeremy when seeing multiple
list comprehensions like so:
[x for x in seq
if blah(x)]
# ...
[y for y in seq
if blah(y)]
The reason this broke is because this regexp caused the "find a safe
parsing start location higher up in the file" test to erroneously find
the if in the listcomp. I think the other keywords in this regexp are
fine and good enough.
After a weekend of testing, I can't find any adverse effects.
Barry Warsaw [Mon, 21 Oct 2002 14:25:24 +0000 (14:25 +0000)]
FILETYPES: Newer XFree86 rgb.txt files use the key Xorg instead of
XConsortium. Now we can recognize these files!
Barry Warsaw [Mon, 21 Oct 2002 14:23:48 +0000 (14:23 +0000)]
Some fixes based on feedback from Hans Petter Langtangen.
build(): Fix the logic here for calculating fallbacks if the dbfile
isn't parseable.
main(): Fix the semantics for -d/--database; this should override any
database value found in the .pynche file.
Update some comments, and author contact info.
Bump to v1.4
Whitespace normalization.
Barry Warsaw [Mon, 21 Oct 2002 14:20:37 +0000 (14:20 +0000)]
Fix a typo, update (only one) style improvement, whitespace
normalization.
Barry Warsaw [Mon, 21 Oct 2002 05:43:58 +0000 (05:43 +0000)]
test_body_encoding(): a new test for Charset.body_encode(), especially
one that tests the obscure bug reported in SF # 625509.
Barry Warsaw [Mon, 21 Oct 2002 05:31:08 +0000 (05:31 +0000)]
test_body_encoding(): a new test
Barry Warsaw [Mon, 21 Oct 2002 05:29:53 +0000 (05:29 +0000)]
body_encode(): Fixed typo reported by Chris Lawrence, closing SF bug
#625509. This isn't a huge problem because at the moment there are no
built-in charsets for which header_encoding is QP but body_encoding is
not.
Raymond Hettinger [Mon, 21 Oct 2002 04:44:11 +0000 (04:44 +0000)]
Explicitly use floor division
Raymond Hettinger [Mon, 21 Oct 2002 03:08:20 +0000 (03:08 +0000)]
Eliminate unused instance variable
Just van Rossum [Sun, 20 Oct 2002 17:14:28 +0000 (17:14 +0000)]
cd to users home dir if no current dir has been set. Fixes bug #625734
Jack Jansen [Sat, 19 Oct 2002 22:02:21 +0000 (22:02 +0000)]
Made MacOS.Error a class style exception (at last!).
Jack Jansen [Sat, 19 Oct 2002 21:36:56 +0000 (21:36 +0000)]
Added a paragraph to explain that SchedParams(0, 0) is usually what
you want.
Fredrik Lundh [Sat, 19 Oct 2002 20:22:56 +0000 (20:22 +0000)]
fixed the mail address in the documentation, too...
Fredrik Lundh [Sat, 19 Oct 2002 20:19:10 +0000 (20:19 +0000)]
point people to the Python bug tracker, rather than to a mail
account I hardly ever use...
Guido van Rossum [Fri, 18 Oct 2002 18:54:22 +0000 (18:54 +0000)]
Remove reference to deleted 'www' directory.
Guido van Rossum [Fri, 18 Oct 2002 18:20:33 +0000 (18:20 +0000)]
Note lack of speedup. Remove Irix reference. Remove silly extra
'/tmp' arg. Change predicate to look for world-writable non-symlink
files.
Fred Drake [Fri, 18 Oct 2002 18:16:19 +0000 (18:16 +0000)]
Fix markup for tilde in URL.
Martin v. Löwis [Fri, 18 Oct 2002 17:34:18 +0000 (17:34 +0000)]
Verify that lower-higher case delta are 16-bit.
Fred Drake [Fri, 18 Oct 2002 16:50:17 +0000 (16:50 +0000)]
Fix reference to the Fetchmail FAQ:
- URL was missing an "m"
- markup for tilde was wrong
- URL was marked as the title
- actual title was omitted
"make webcheck" didn't catch this; not sure why.
Removed some spurious end-of-line whitespace.
Martin v. Löwis [Fri, 18 Oct 2002 16:40:36 +0000 (16:40 +0000)]
Make lower/upper/title work for non-BMP characters.
Fred Drake [Fri, 18 Oct 2002 16:33:30 +0000 (16:33 +0000)]
Fix markup for tilde in URL.
Neal Norwitz [Fri, 18 Oct 2002 16:33:13 +0000 (16:33 +0000)]
Fix SF # 624982, Potential AV in slot_sq_item, by Greg Chapman
Don't crash when getting value of a property raises an exception
Martin v. Löwis [Fri, 18 Oct 2002 16:11:54 +0000 (16:11 +0000)]
Update to Unicode 3.2 database.
Guido van Rossum [Fri, 18 Oct 2002 15:40:13 +0000 (15:40 +0000)]
Update docs. Remove old classes.doc.
Guido van Rossum [Fri, 18 Oct 2002 15:36:31 +0000 (15:36 +0000)]
Add description of the cgi directory.
Guido van Rossum [Fri, 18 Oct 2002 15:35:42 +0000 (15:35 +0000)]
Add description of what's here.
Fred Drake [Fri, 18 Oct 2002 15:20:32 +0000 (15:20 +0000)]
Added cross-references to related material on exceptions.
Closes SF bug #217195.
Make sure section numbers wrap together with the preceeding word
("section").
Fred Drake [Fri, 18 Oct 2002 15:18:18 +0000 (15:18 +0000)]
Added cross-references to related material on exceptions.
Closes SF bug #217195.
Fred Drake [Fri, 18 Oct 2002 15:03:42 +0000 (15:03 +0000)]
Make sure section numbers wrap together with the preceeding word
("section").
Guido van Rossum [Fri, 18 Oct 2002 14:15:33 +0000 (14:15 +0000)]
Fix (real! :-) memory leaks in half_cmp and half_binop.
Perhaps found by NealN and valgrind. Will forward port.
Guido van Rossum [Fri, 18 Oct 2002 13:51:49 +0000 (13:51 +0000)]
Sigh. That wasn't a memory leak, that was Guido committing before
running tests. Withdraw 2.183 and its backport.
Guido van Rossum [Fri, 18 Oct 2002 13:41:47 +0000 (13:41 +0000)]
Fix memory leak in add_subclass() found by NealN with valgrind.
Will backport.
Martin v. Löwis [Fri, 18 Oct 2002 08:58:14 +0000 (08:58 +0000)]
Patch #624936: Implement __contains__.
Neal Norwitz [Fri, 18 Oct 2002 02:05:47 +0000 (02:05 +0000)]
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.
Neal Norwitz [Thu, 17 Oct 2002 22:15:33 +0000 (22:15 +0000)]
Add new encoding for Ukrainian Cyrillic
Fred Drake [Thu, 17 Oct 2002 22:13:28 +0000 (22:13 +0000)]
Continue to work even though the test can be named test.test_regex
these days.
Fred Drake [Thu, 17 Oct 2002 22:09:03 +0000 (22:09 +0000)]
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.
Guido van Rossum [Thu, 17 Oct 2002 21:43:47 +0000 (21:43 +0000)]
Refactor cmd_view(): move line formatting to a helper method.
Guido van Rossum [Thu, 17 Oct 2002 21:41:42 +0000 (21:41 +0000)]
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().
Fred Drake [Thu, 17 Oct 2002 21:24:58 +0000 (21:24 +0000)]
If we have a filename and __main__.__file__ hasn't already been set,
set it.
Closes SF issue #624729.
Fred Drake [Thu, 17 Oct 2002 20:37:50 +0000 (20:37 +0000)]
Fix minor whitespace nit, for consistency with Python's C style rules.
Fred Drake [Thu, 17 Oct 2002 20:36:08 +0000 (20:36 +0000)]
Remove spurious cruft from the output.
Fred Drake [Thu, 17 Oct 2002 19:48:27 +0000 (19:48 +0000)]
Clean up some whitespace to be consistent with Python's C style.
Guido van Rossum [Thu, 17 Oct 2002 19:30:39 +0000 (19:30 +0000)]
Remove redundant load() call.
Fred Drake [Thu, 17 Oct 2002 19:23:43 +0000 (19:23 +0000)]
Typo(!): "normal" -> "number"
Guido van Rossum [Thu, 17 Oct 2002 16:33:40 +0000 (16:33 +0000)]
Grammar repair in comment.
Guido van Rossum [Thu, 17 Oct 2002 16:26:45 +0000 (16:26 +0000)]
Use tempfile.gettempdir() to get the temp directory rather than
hardcoding "/tmp".
Guido van Rossum [Thu, 17 Oct 2002 16:21:35 +0000 (16:21 +0000)]
Must catch TypeError from int(length).
Guido van Rossum [Thu, 17 Oct 2002 15:53:02 +0000 (15:53 +0000)]
Restructure: move all wiki code into a separate module.
Guido van Rossum [Thu, 17 Oct 2002 13:34:01 +0000 (13:34 +0000)]
Add trailing newline when saving.
Guido van Rossum [Thu, 17 Oct 2002 11:45:54 +0000 (11:45 +0000)]
Security fixes: reject non-wiki-word page names; set homedir to /tmp.
Show errors returned by store().
A few nits.
Fred Drake [Wed, 16 Oct 2002 21:21:39 +0000 (21:21 +0000)]
Added missing entries to __all__.
Fred Drake [Wed, 16 Oct 2002 21:02:36 +0000 (21:02 +0000)]
Make sure we test urlsplit() / urlunsplit() directly, rather than
guessing that urlparse() / urlunparse() use them.
Add tests of urldefrag().
Guido van Rossum [Wed, 16 Oct 2002 21:01:27 +0000 (21:01 +0000)]
Some really simple cgi examples. cgi3 is a MiniWiki.
Martin v. Löwis [Wed, 16 Oct 2002 20:28:25 +0000 (20:28 +0000)]
Patch #623780: Replace obsolete struct macros.
Fred Drake [Wed, 16 Oct 2002 20:07:54 +0000 (20:07 +0000)]
Document urldefrag().
Martin v. Löwis [Wed, 16 Oct 2002 19:10:03 +0000 (19:10 +0000)]
Add n_unnamed_fields into the type.
Martin v. Löwis [Wed, 16 Oct 2002 18:28:36 +0000 (18:28 +0000)]
Correct stat_result float time stamps entry.
Martin v. Löwis [Wed, 16 Oct 2002 18:27:39 +0000 (18:27 +0000)]
Add PyStructSequence_UnnamedField. Add stat_float_times.
Use integers in stat tuple, optionally floats in named fields.
Thomas Heller [Wed, 16 Oct 2002 17:51:38 +0000 (17:51 +0000)]
Recreated after source changes.
Guido van Rossum [Wed, 16 Oct 2002 16:52:11 +0000 (16:52 +0000)]
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).
Fred Drake [Wed, 16 Oct 2002 16:06:07 +0000 (16:06 +0000)]
Use string methods. Re-organize imports to Python Normal Form.
Fred Drake [Wed, 16 Oct 2002 16:02:08 +0000 (16:02 +0000)]
Only reset _is_empty if needed.
Fred Drake [Wed, 16 Oct 2002 16:00:42 +0000 (16:00 +0000)]
Modernization: Use string methods, use str instead of
types.StringType, inherit from list instead of
UserList.
Fred Drake [Wed, 16 Oct 2002 15:30:17 +0000 (15:30 +0000)]
Use string methods.
Fred Drake [Wed, 16 Oct 2002 15:29:07 +0000 (15:29 +0000)]
Use string methods. Organize the imports in Python Normal Form.
Fred Drake [Wed, 16 Oct 2002 14:59:02 +0000 (14:59 +0000)]
Use string methods; minor code cleanup.
Thomas Heller [Tue, 15 Oct 2002 19:45:25 +0000 (19:45 +0000)]
Recreated after source changes.
Martin v. Löwis [Tue, 15 Oct 2002 15:11:13 +0000 (15:11 +0000)]
Patch #572628: Optional timeouts for put and get.
Thomas Heller [Tue, 15 Oct 2002 14:51:58 +0000 (14:51 +0000)]
Revert the previous checkin - it didn't work anyway.
Guido van Rossum [Tue, 15 Oct 2002 01:01:53 +0000 (01:01 +0000)]
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):
...
Martin v. Löwis [Mon, 14 Oct 2002 21:11:34 +0000 (21:11 +0000)]
Don't drop old slots if _unicode_to_string did not change anything.
Martin v. Löwis [Mon, 14 Oct 2002 21:07:28 +0000 (21:07 +0000)]
Allow Unicode strings in __slots__, converting them to byte strings.
Martin v. Löwis [Mon, 14 Oct 2002 21:06:02 +0000 (21:06 +0000)]
Allow Unicode strings as message and module name.
Guido van Rossum [Mon, 14 Oct 2002 20:48:09 +0000 (20:48 +0000)]
[SF bug 620364]
In build_extensions(), don't proceed if srcdir is None. Probably
somebody who tried this on Windows. :-)
Martin v. Löwis [Mon, 14 Oct 2002 20:03:40 +0000 (20:03 +0000)]
Convert empty string literal to string. Speed up creation of idmap.
Guido van Rossum [Mon, 14 Oct 2002 19:59:54 +0000 (19:59 +0000)]
Fix for 1.33: urlsplit() should only add '//' if scheme != ''.
Will add test and backport.
Barry Warsaw [Mon, 14 Oct 2002 18:15:35 +0000 (18:15 +0000)]
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.
Barry Warsaw [Mon, 14 Oct 2002 18:04:39 +0000 (18:04 +0000)]
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.
Barry Warsaw [Mon, 14 Oct 2002 16:52:41 +0000 (16:52 +0000)]
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.
Fred Drake [Mon, 14 Oct 2002 15:45:11 +0000 (15:45 +0000)]
Use the same shade of blue as the site navigation areas.
Barry Warsaw [Mon, 14 Oct 2002 15:26:17 +0000 (15:26 +0000)]
Two new tests for splitting (or not splitting) 8-bit header data.
Barry Warsaw [Mon, 14 Oct 2002 15:24:18 +0000 (15:24 +0000)]
Bump the __version__
Barry Warsaw [Mon, 14 Oct 2002 15:13:17 +0000 (15:13 +0000)]
__init__(): Fix an invariant, that the charset item in a chunk tuple
must be a Charset instance, not a string. The bug here was that
self._charset wasn't being converted to a Charset instance so later
.append() calls which used the default charset would break.
_split(): If the charset of the chunk is '8bit', return the chunk
unchanged. We can't safely split it, so this is the avenue of least
harm.
Barry Warsaw [Mon, 14 Oct 2002 15:09:30 +0000 (15:09 +0000)]
_split_header(): If we have a header which is a byte string containing
8-bit data, we cannot split it safely, so return the original string
unchanged.
_is8bitstring(): Helper function which returns True when we have a
byte string that contains non-ascii characters (i.e. mysterious 8-bit
data).
Barry Warsaw [Mon, 14 Oct 2002 15:06:55 +0000 (15:06 +0000)]
CHARSETS: Add faux '8bit' encoding for representing raw 8-bit data for
which we know nothing else.
Fred Drake [Mon, 14 Oct 2002 15:04:33 +0000 (15:04 +0000)]
Minor refactoring to avoid code duplication.
Tim Peters [Mon, 14 Oct 2002 15:01:44 +0000 (15:01 +0000)]
Update list of Windows buildnos for 2.2.2 final.
Guido van Rossum [Mon, 14 Oct 2002 12:22:17 +0000 (12:22 +0000)]
Add finditer to __all__ (when defining it at all).
SF bug 585882. Will forward-port.
Greg Ward [Sun, 13 Oct 2002 19:23:18 +0000 (19:23 +0000)]
Fix copyright date: the core of this code actually dates back to 1999
(rev. 1.4 of distutils/fancy_getopt.py).
Martin v. Löwis [Sun, 13 Oct 2002 13:54:50 +0000 (13:54 +0000)]
Patch #611760: read archives with comments.