| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
| |
(write, read, ...), based on feedback from GvR.
- added tuple-swapping code to popen2.py
- fixed some runaway indentation in posixmodule.c
|
| |
|
|
|
|
|
| |
(the PYTHONHOMEHELP define)
- ANSI-fication
(patch #100794 by Peter Schneider-Kamp)
|
| |
|
|
| |
(patch #100805 by Peter Schneider-Kamp)
|
| |
|
|
|
|
|
|
|
|
|
|
| |
windows.
- added optional mode argument to popen2/popen3
for unix; if the second argument is an integer,
it's assumed to be the buffer size.
- changed nt.popen2/popen3/popen4 return values
to match the popen2 module (stdout first, not
stdin).
|
| |
|
|
|
| |
for the moment, this argument must be left out or set
to -1 (only the default bufsize is supported, that is)
|
| |
|
|
| |
(patch #100784 by Peter Schneider-Kamp)
|
| |
|
|
| |
(patch #100770 by Peter Schneider-Kamp)
|
| |
|
|
|
|
|
| |
by Bill Tutt.
note: to run this on Windows 95/98, you need to have the
w9xpopen.exe helper in the same directory as the python DLL.
|
| | |
|
| |
|
|
| |
and substitute the conventional "args" instead of "arg".
|
| |
|
|
|
|
|
|
|
|
| |
just for the sake of it.
note that this only covers the unlikely case that size_t
is smaller than a long; it's probably more likely that
there are platforms out there where size_t is *larger*
than a long, and mmapmodule cannot really deal with that
today.
|
| |
|
|
|
|
|
| |
cast to make sure Py_BuildValue gets the right thing.
this change eliminates bogus return codes from successful
spawn calls (e.g. 2167387144924954624 instead of 0).
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
staring at the diffs before checking this one in. let me know
asap if it breaks things on your platform.
-- ANSI-fying
(patch #100763 by Peter Schneider-Kamp, minus the
indentation changes and minus the changes the broke
the windows build)
|
| |
|
|
|
|
|
| |
(patch #100762 by Peter Schneider-Kamp, minus the
indentation changes)
-- added INT_PTR workaround to make it build under VC 5.0
|
| |
|
|
| |
- some more spacification...
|
| |
|
|
| |
- ansified, reindentified, spacified, nullified
|
| |
|
|
|
| |
Use PyArg_ParseTuple() to get better error messages.
Add docstrings all around.
|
| |
|
|
|
| |
Converted to PyArg_ParseTuple() with method names to get better error
messages.
|
| | |
|
| |
|
|
| |
Convert to four-space indents.
|
| |
|
|
|
|
| |
Convert to using PyArg_ParseTuple() as appropriate to allow method names
in error messages.
Re-indent to four-space indentation.
|
| |
|
|
| |
hackery (/**/), leaving only new-style preprocessor hackery (##).
|
| | |
|
| | |
|
| |
|
|
| |
Allow -f* parameters to be passed to the compiler from Setup files.
|
| |
|
|
| |
Patch by T. Wouters.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
In posixmodule.c:posix_fork, the function PyOS_AfterFork is called for
both the parent and the child, despite the docs stating that it should
be called in the new (child) process.
This causes problems in the parent since the forking thread becomes the
main thread according to the signal module.
Calling PyOS_AfterFork() only in the child fixes this. Changed for both
fork() and forkpty().
|
| |
|
|
|
| |
& extensions, so create exceptions in extension modules using the
PyErr_NewException() API.
|
| |
|
|
| |
XXX should perhaps support history truncation as well
|
| |
|
|
| |
Added two functions that were left out of the method definition table.
|
| |
|
|
| |
to be absolute.
|
| |
|
|
|
|
|
|
| |
Somebody w/ gcc please check that the wngs are gone!
There are cheaper (at runtime) ways to prevent the wngs, but
they're obscure and delicate. I'm going for the easy Big
Hammer here under the theory that PCRE will be replaced by
SRE anyway.
|
| |
|
|
|
|
|
|
| |
- reorganized some code to get rid of -Wall and -W4
warnings
- fixed default argument handling for sub/subn/split
methods (reported by Peter Schneider-Kamp).
|
| | |
|
| |
|
|
|
| |
any object which can be converted to Unicode by means of
PyUnicode_FromObject().
|
| |
|
|
|
|
|
|
|
| |
It gets initialized when pyexpat is imported, and is only accessible as an
attribute of pyexpat; it cannot be imported itself. This allows it to at
least be importable after pyexpat itself has been imported by adding it
to sys.modules, so it is not quite as strange.
This arrangement needs to be better thought out.
|
| |
|
|
| |
noted by Marc-Andre Lemburg <mal@lemburg.com>.
|
| | |
|
| |
|
|
|
|
|
| |
which some C libs define (e.g. glibc).
Added a fallback default value for NSIG which hopefully provides
enough room for signal slots.
|
| | |
|
| |
|
|
| |
>= 2.0.5. One still is:-(
|
| |
|
|
| |
- changed "group" operator to "groupref"
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the pattern must have a fixed width.
- got rid of array-module dependencies; the match pro-
gram is now stored inside the pattern object, rather
than in an extra string buffer.
- cleaned up a various of potential leaks, api abuses,
and other minors in the engine module.
- use mal's new isalnum macro, rather than my own work-
around.
- untabified test_sre.py. seems like I removed a couple
of trailing spaces in the process...
|
| |
|
|
|
|
|
| |
Revise math_1(), math_2(), stub-generating macros, and function tables to
use PyArg_ParseTuple() and properly provide the function name for error
message generation.
Fix pow() docstring for MPW 3.1; had said "power" instead of "pow".
|
| |
|
|
| |
Typo in string literal: execpt --> except
|
| |
|
|
|
|
|
|
| |
"lastgroup" is the name of the last matched capturing group,
"lastindex" is the index of the same group. if no group was
matched, both attributes are set to None.
the (?P#) feature will be removed in the next relase.
|
| |
|
|
| |
Reported on c.l.py by Kirill Simonov.
|
| |
|
|
|
|
|
|
|
|
| |
used by the code generator)
- changed max repeat value in engine (to match earlier array fix)
- added experimental "which part matched?" mechanism to sre; see
http://hem.passagen.se/eff/2000_07_01_bot-archive.htm#416954
or python-dev for details.
|