| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
- Handle <? processing instructions >.
- Allow . and - in entity names.
Also fixed an oversight in the previous fix (in one place, [ \t\r\n]
was used instead of string.whitespace).
|
|
|
|
| |
walks and quacks like a dictionary.
|
|
|
|
| |
Revert to using whrandom so it will work with older versions of Python.
|
|
|
|
| |
sys.maxint and near -sys.maxint-1 work correctly.
|
| |
|
|
|
|
|
| |
platform's line separator. \n on Unix, \r\n on DOS, OS/2 and Windows,
\r on Macs.
|
| |
|
| |
|
|
|
|
| |
versions <= 1.2, >= 1.3.
|
| |
|
|
|
|
| |
# XXX TO DO: make the distribution functions below into methods.
|
|
|
|
| |
be used just as well, so this saves one Python call in many cases!
|
|
|
|
| |
inited, call init().
|
| |
|
|
|
|
| |
to filename extension.
|
|
|
|
| |
inaccuracies in mktime_tz().
|
| |
|
|
|
|
|
|
|
|
|
|
| |
From: Piers Lauder <piers@staff.cs.usyd.edu.au>
To: Python List <python-list@cwi.nl>
Date: Mon, 18 May 1998 09:51:53 +1000
Following is a context diff for imaplib.py in the Python1.5.1 distribution.
It fixes 2 bugs. One to do with argument quoting, and the other to do with
caching of un-tagged responses. Apologies for its size.
|
| |
|
|
|
|
|
|
|
|
|
| |
problem was a couple of bugs in the readline implementation.
1. Include the '\n' in the string returned by readline
2. Bug calculating new buffer size in _unread
Also remove unncessary import of StringIO
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To: python-list@cwi.nl
Date: 13 May 98 18:33:11 GMT
I think I found a bug in CGIHTTPServer.py. (Does anyone care? :-)
I was trying to use it as the web server for uploading files.
Python CGI scripts (using the CGI module) that worked for other
servers (e.g., Netscape Enterprise server) hang when run from
CGIHTTPServer. The problem is that the content type parameters,
in particular the boundary parameter, were not passed through to
the CGI scripts, thus making the MIME parsing code choke.
My simple-minded fix is:
% diff CGIHTTPServer.py /usr/local/lib/python1.5/CGIHTTPServer.py
137,140c136
< if self.headers.typeheader is None:
< env['CONTENT_TYPE'] = self.headers.type
< else:
< env['CONTENT_TYPE'] = self.headers.typeheader
---
> env['CONTENT_TYPE'] = self.headers.type
Conrad
|
| |
|
| |
|
| |
|
|
|
|
|
| |
method='GET', always get the query string from environ['QUERY_STRING']
or sys.argv[1] -- ignore an explicitly passed in fp.
|
|
|
|
|
|
|
|
| |
and the "key" keyword parameter was used to invoke .go(), use the directory
of the selected file as the stored directory to return to when the same key
is used again. This is useful since the user may well entry at least part
of the path in the filename box instead of doing a lot of clicking around in
the listboxes.
|
| |
|
| |
|
|
|
|
|
|
| |
as soon as I change things even just a little bit? :-) Even works
when accessing a password-protected page through the proxy. Prompted
by complaints from, and correct operation verified by, Nigel O'Brian.
|
|
|
|
|
| |
servers support LOGIN but don't advertise it. If it's not supported
the protocol will respond NO. Approved by Piers Lauder.
|
|
|
|
| |
to work reliably (at least I wouldn't know how).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
wm_title(), etc. The old names (title() etc.) are still defined as
aliases.
This brings all methods up to use the same naming convention: whether
the Tcl syntax is
.window.path.name command subcommand [options]
or
command subcommand .window.path.name [optins]
the Python equivalent is always
windowobject.command_subcommand(options)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
calling self.tk.getint() and self.tk.getdouble(), call the globals
getint() and getdouble(), which in turn are just names for the Python
builtins int() and double(). (Making them globals actually save a
dict lookup compared to using the built-in.) The corresponding
methods of class Misc have been changed similarly. (Note that
getboolean() hasn't been changed because there's no Python
equivalent.)
The use of int() and float() has another advantage: if/when Tcl calls
can actually return Tcl objects with other types than string, use of
int() and float() is essential.
|
| |
|
|
|
|
|
|
|
| |
not needed to say apply(self.tk.call, t); self.tk.call(t) has the same
effect. This cuts down tremendously on the number of apply() calls
made. No measurable effect, but at the very least it saves the lookup
of apply() in the globals!
|
|
|
|
| |
repeats the I/O for the failed import on each interpreter creation.
|
|
|
|
| |
and release() instead.
|
|
|
|
| |
(Jack)
|
|
|
|
| |
(Jack)
|
|
|
|
| |
(Jack)
|
| |
|
|
|
|
| |
that wonders what the difference is and explain them properly.
|
|
|
|
|
|
| |
be more intelligent when the database already exists (use the module
for the existing file, according to whichdb). Noted in the doc
strings that there doesn't seem to be a different between 'c' and 'n'.
|
|
|
|
|
|
| |
name is not registered; simply use the string. This happens for
tear-off widgets (e.g. if you've registered enter/leave events for the
menu).
|
|
|
|
|
| |
when splithost() returned no useable host, to avoid calling
splituser() on None.
|
|
|
|
| |
of using re instead of regex.
|
|
|
|
| |
same on 32 and 64 bit machines.
|
|
|
|
|
|
| |
the description of setparams() was wrong.
wave.py: Include the tag of an unknown format in the exception.
|
| |
|
| |
|