| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
New function: PyErr_SetFromErrnoWithFilename(PyObject* char*)
|
| |
|
|
|
|
|
|
|
| |
Change the argument name for quote() and quote_plus() to safe (which
matches the implementation).
Add doc for the *new* function urlencode().
|
|
|
|
|
|
|
|
| |
Fix the implementation of quote_plus(). (It wouldn't treat '+' in the
original data right.)
Add urlencode(dict) which is handy to create the data for sending a
POST request with urlopen().
|
|
|
|
|
| |
with a null movie (giving time to all active movies)
- Made the graphics world parameter to SetMovieGWorld optional.
|
|
|
|
| |
open MPEG files, etc.
|
|
|
|
| |
filename may be omitted.
|
| |
|
|
|
|
|
|
| |
before calling it. This check was there when the objects were of the
same type *before* coercion, but not if they initially differed but
became the same *after* coercion.
|
|
|
|
| |
slightly different way to test for the existence of unread.
|
| |
|
| |
|
|
|
|
| |
(which is not very relevant when you're in the debugger :-).
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
according to an idea by Harri Pasanen (but with different syntax).
This affects the 'break' and 'clear' commands and their help
functions. Also added a helper method lookupmodule().
Also:
- Try to import readline (important when pdb is used from/as a script).
- Get rid of reference to ancient __privileged__ magic variable.
- Moved all import out of functions to the top.
- When used as a script, check that the script file exists.
|
|
|
|
|
| |
onecmd(line) must return the value returned by emptyline() or
default(line).
|
|
|
|
| |
you need to edit four files in order to add one section to the manual?)
|
| |
|
| |
|
|
|
|
|
|
|
| |
fp.tell() -- that won't work on Windows.
(A patch for rfc822 is still needed for one case where it finds a bad
header line and wants to back up.)
|
| |
|
|
|
|
| |
with LaTeX markup added, and some small rewrites to improve the prose.
|
| |
|
|
|
|
| |
to core dump if the first argument did not have a "group" attribute.
|
|
|
|
|
|
|
|
| |
not calling self.search(); instead, call self.code.match() directly
and interpret the list of registers it returns directly. This saves
the overhead of instantiating a MatchObject for each hit, basically
inlining search() as well as group(). When a MatchObject is still
needed, one is allocated and reused for the duration of the scan.
|
|
|
|
|
| |
Added test for m.groups() with default.
Added a few prints announcing various tests in verbose mode.
|
| |
|
|
|
|
|
| |
O_getattr(): Added read-only access to the closed attribute, based on comment
from Michael Scharf <Michael.Scharf@Rhein-Neckar.de>.
|
| |
|
|
|
|
| |
before JPython 1.0 came out.)
|
|
|
|
|
|
|
| |
Sparc Solaris 2.6 (fully patched!) that I don't want to dig into, but
which I suspect is a bug in the multithreaded malloc library that only
shows up when run on a multiprocessor. (The program wasn't using
threads, it was just using the multithreaded C library.)
|
|
|
|
|
|
|
|
|
|
| |
In the bbox method of Group (Canvas.py file), you should read
return self.canvas._getints(self._do('bbox'))
instead of
return self._getints(self._do('bbox'))
|
| |
|
|
|
|
|
| |
extensions, and include the "." in ".pyc". Still need to get
_tkinter.c:Tkapp_New() to use baseName....
|
|
|
|
|
|
|
|
|
| |
low-level Python exit handler. This can attempt to call Python code
at a point that the interpreter and thread state have already been
destroyed, causing a Bus Error. Given the intended use of
Py_AtExit(), I'm not convinced that it's a good idea to call it
earlier during Python's finalization sequence... (Although this is
the only use for it in the entire distribution.)
|
|
|
|
| |
by Carey Evans <c.evans@clear.net.nz>, for picky mail servers.
|
|
|
|
|
| |
can be deleted, but that's good enough for things like a "Windows"
menu with the dynamic list of open windows at the end of the menu.
|
|
|
|
| |
(which was missing, for some reason).
|
|
|
|
|
|
| |
create the preferences file. This is so that frozen programs don't
interfere with an existing Python installation, or leave turds in the
Preferences folder.
|
|
|
|
|
|
|
|
|
| |
There's also new support for importing code fragments: if a file on
sys.path contains a PYD resource with resourcename equal to the name
of the module to be imported this PYD resource should contain a
(pascal) string with the name of a code fragment to load. This allows
freezing Python programs without access to source or a development
environment.
|
| |
|
|
|
|
| |
don't try to open/create the preferences file.
|
|
|
|
|
|
| |
faster (using PyList_GetSlice()). Also added a test for a NULL
argument, as with PySequence_Tuple(). (Hmm... Better names for these
two would be PyList_FromSequence() and PyTuple_FromSequence(). Oh well.)
|
|
|
|
|
|
|
| |
(1) If a sequence S is shorter than len(S) indicated, don't fail --
just use the shorter size. (I.e, len(S) is just a hint.)
(2) Implement the special case map(None, S) as list(S) -- it's faster.
|
|
|
|
|
|
|
|
|
| |
"indefinite length" sequences. These should still have a length, but
the length is only used as a hint -- the actual length of the sequence
is determined by the item that raises IndexError, which may be either
smaller or larger than what len() returns. (This is a novelty; map(),
filter() and reduce() only allow the actual length to be larger than
what len() returns, not shorter. I'll fix that shortly.)
|
|
|
|
|
|
| |
item) as parameter and returns a handle suitable for passing to
SetDialogItem as a user-item redraw routine. Note that you can
only make one of these, for now.
|
| |
|
|
|
|
| |
macros for more efficient access to the fields.
|
|
|
|
| |
to the .h file and add macros there for inlined access to the fields.
|
|
|
|
|
|
|
| |
(2) Made the test script a bit fancier -- you can now use it to run
arbitrary scripts in restricted mode, and it will do the right thing.
(The interactive mode is still pretty lame; should integrate this with
code.interact().)
|
| |
|