- 24 Oct, 1998 6 commits
-
-
Guido van Rossum authored
unlink() or fdopen() fail, close the file descriptor and re-raise the exception.
-
Guido van Rossum authored
-
Guido van Rossum authored
values (4.7.1) should return l, not a. Reported by Axel Boldt.
-
Guido van Rossum authored
-
Guido van Rossum authored
filenames generated are easily predictable, it is possible to trick an unsuspecting program into overwriting another file by creating a symbolic link with the predicted name. Fix this by using the low-level os.open() function with the O_EXCL flag and mode 0700. On non-Unix platforms, presumably there are no symbolic links so the problem doesn't exist. The explicit test for Unix (posix, actually) makes it possible to change the non-Unix logic to work without a try-except clause. The mktemp() file is as unsafe as ever.
-
Guido van Rossum authored
-
- 22 Oct, 1998 15 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
own version.
-
Guido van Rossum authored
""" I've attached a long overdue patch to pickle.py to bring it to format 1.3, which is the same as 1.2 except that the binary float format is supported. This is done using the new platform-indepent format features of struct. This patch also gets rid of the undocumented obsolete Pickler dump_special method. """
-
Barry Warsaw authored
Added a To Do list.
-
Barry Warsaw authored
show(): added color keyword here so that the selected color can be chosen on each invocation of askcolor(). Also fixed this class, and askcolor() so that the same Chooser instance can be re-used instead of creating a new one on each invocation of askcolor(). Added a module function save() which can be used to explicitly save the option database in ~/.pynche. This does not happen automatically when used as a modal.
-
Barry Warsaw authored
-
Barry Warsaw authored
canceled() takes an optional flag so that the canceled flag can be cleared.
-
Barry Warsaw authored
deiconify(): New method
-
Barry Warsaw authored
main() so that run-as-modal doesn't automatically save database.
-
Guido van Rossum authored
-
Guido van Rossum authored
""" I had originally not realized that PyEval_GetGlobals did not INCREF it's return value. The fix is to add the INCREF, as shown below. """
-
Jack Jansen authored
-
Barry Warsaw authored
-
Barry Warsaw authored
tkColorChooser.askcolor() interface (i.e. don't return a color name even if there is an exact match).
-
Barry Warsaw authored
run either as a standalone application (by running pynche or pynche.pyw), or as a modal dialog inside another application. This can be done by importing pyColorChooser and running askcolor(). The API for this is the same as the tkColorChooser.askcolor() API, namely: When `Okay' is hit, askcolor() returns ((r, g, b), "name"). When `Cancel' is hit, askcolor() returns (None, None). Note the following differences: 1. pyColorChooser.askcolor() takes an optional keyword `master' which if set tells Pynche to run as a modal dialog. `master' is a Tkinter parent window. Without the `master' keyword Pynche runs standalone. 2. in pyColorChooser.askcolor() will return a Tk/X11 color name as "name" if there is an exact match, otherwise it will return a color spec, e.g. "#rrggbb". tkColorChooser can't return a color name. There are also some UI differences when running standalone vs. modal. When modal, there is no "File" menu, but instead there are "Okay" and "Cancel" buttons. The implementation of all this is a bit of a hack, but it seems to work moderately well. I'm not guaranteeing the pyColorChooser.Chooser class has the same semantics as the tkColorChooser.Chooser class.
-
- 21 Oct, 1998 12 commits
-
-
Guido van Rossum authored
""" Jochen Hayek has reported a problem with some versions of IMAP4 servers that choose to mix the case in their CAPABILITIES response. The patch below fixes the problem. """
-
Guido van Rossum authored
(The GLHACK variable isn't really needed since the change to glmodule.c, but I'm too busy to remove it. It's harmless.)
-
Guido van Rossum authored
solves the conflict with curses over the 'clear' entry point much nicer. (Jack had checked in the changes to cstubs eons ago, but I never regenrated glmodule.c :-( )
-
Guido van Rossum authored
Noted by Fredrik Lundh. (Note -- this module is pretty silly.)
-
Guido van Rossum authored
the compilation flags for the gl, fl and fm modules. This avoids a name conflict with the curses module (both gl and curses have an entry point called 'clear').
-
Fred Drake authored
-
Fred Drake authored
-
Fred Drake authored
-
Jack Jansen authored
-
Fred Drake authored
the latest latex2html beta.
-
Fred Drake authored
the latest latex2html beta.
-
Fred Drake authored
with the latest latex2html.
-
- 20 Oct, 1998 5 commits
-
-
Barry Warsaw authored
-
Fred Drake authored
based on email from Ross Moore <ross@mpce.mq.edu.au>. Set $HTML_VERSION to 4.0, since that's what we really generate (well, 4.0 "transitional").
-
Guido van Rossum authored
""" the NEWS file of Python 1.5.2a2 inspired me to look at Tools/scripts/untabify.py. I wonder why it accepts a -t argument but ignores it. The following patch tries to make it somewhat useful (i.e., to override the tabsize=8 setting). Is that agreeable? """
-
Guido van Rossum authored
-
Guido van Rossum authored
""" The FieldStorage constructor calls the read_multi method. The read_multi method creates new FieldStorage objects, re-invoking the constructor (on the new objects). The problem is that the 'environ', 'keep_blank_values', and 'strict_parsing' arguments originally passed to the constructor are not propigated to the new object constructors. This causes os.environ to be used, leading to a miss-handling of the parts. I fixed this by passing these arguments to read_multi and then on to the constructor. See the context diff below. """
-
- 19 Oct, 1998 2 commits
-
-
Fred Drake authored
-
Fred Drake authored
-