Tim Peters
077a11dd00
arraymodule: Fix SF bug 113960.
...
reverse() didn't work at all due to bad arg check.
Fixed that.
Added Brad Chapman to ACKS file, as the proud new owner of two
implicitly copyrighted lines of Python source code <wink>.
Repaired buffer_info's total lack of arg-checking.
Replaced memmove by memcpy in reverse() guts, as memmove is
often slower and the memory areas are guaranteed disjoint.
Replaced poke-and-hope unchecked decl of tmp buffer size by
assert-checked larger tmp buffer.
Got rid of inconsistent spaces before open paren in docstrings.
Added reverse() sanity tests to test_array.py.
2000-09-16 22:31:29 +00:00
Barry Warsaw
64850efa39
Allow this script to act like a module by only calling main() if
...
__name__ == '__main__'. Closes SF bug #110844 .
2000-09-16 22:09:51 +00:00
Fred Drake
1cca9e29f9
Make the <body> tag match those of the generated HTML; rely on the style
...
sheet instead of encoding anything there.
2000-09-16 21:31:33 +00:00
Fred Drake
7be440da1a
Document \cfuncdesc, \ctypedesc, and \cvardesc.
2000-09-16 21:23:25 +00:00
Guido van Rossum
57d51f2f1d
Improve the test output a bit.
2000-09-16 21:16:01 +00:00
Fred Drake
1681627ebf
Push more of the display control into the style sheet.
2000-09-16 20:40:44 +00:00
Greg Ward
acff0b3f3b
Changed so lines that are all comment (or just whitespace + comment)
...
are completely skipped, rather than being treated as blank lines
(and then subject to the 'skip_blanks' flag). This allows us
to process old-style Setup files, which rely on
hello \\
# boo!
there
coming out as "hello there".
2000-09-16 18:33:36 +00:00
Greg Ward
3d05c16003
Andrew Kuchling:
...
Fixed precendence bug that meant setting skip_blanks to false didn't work
under some circumstances.
2000-09-16 18:09:22 +00:00
Greg Ward
f11296bdea
[change from 2000/08/11, propagating now to distutils copy]
...
Factored the guts of 'warn()' out to 'gen_error()', and added the
'error()' method (trivial thanks to the refactoring).
2000-09-16 18:06:31 +00:00
Greg Ward
60cd2864fe
[change from 2000/04/17, propagating now to distutils copy]
...
Dropped the 'collapse_ws' option and replaced it with 'collapse_join' --
it's *much* faster (no 're.sub()') and this is the reason I really added
'collapse_ws', ie. to remove leading whitespace from a line being joined
to the previous line.
2000-09-16 18:04:55 +00:00
Guido van Rossum
174efc9cdb
Use PyOS_setsig() instead of directly calling signal() or sigaction().
...
This fixes the first half of bug #110611 : the immediate exit when ^C
is hit when readline and threads are configured.
Also added a new module variable, readline.library_version.
2000-09-16 16:37:53 +00:00
Guido van Rossum
d2cd7adf6f
Use typedef PyOS_sighandler_t and APIs PyOS_getsig() and
...
PyOS_setsig(), instead of directly calling signal() or sigaction().
This fixes the second half of bug #110611 : the mysterious ignoring of
the first ^C when readline isn't used.
2000-09-16 16:35:28 +00:00
Guido van Rossum
6f25618be5
Add PyOS_getsig() and PyOS_setsig() -- wrappers around signal() or
...
sigaction() (if HAVE_SIGACTION is defined).
2000-09-16 16:32:19 +00:00
Guido van Rossum
c7247ce269
Add typedef PyOS_sighandler_t and prototypes for PyOS_getsig() and
...
PyOS_setsig().
2000-09-16 16:31:31 +00:00
Guido van Rossum
c96ec6ef2b
Document new APIs PyOS_getsig() and PyOS_setsig().
...
(Is there no macro to document a typedef?)
Fred, please check my latex!
2000-09-16 16:30:48 +00:00
Greg Ward
beb6d72f31
Rene Liebscher: if we have to run the same sub-command multiple times
...
(eg. "bdist_dumb", to generate both ZIP and tar archives in the same
run), tell all but the last run to keep temp files -- this just gets
rid of the need to pseudo-install the same files multiple times.
2000-09-16 16:04:59 +00:00
Greg Ward
3bfc8c8068
Renamed --keep-tree to --keep-temp.
2000-09-16 15:56:32 +00:00
Greg Ward
8099f0e5fc
Renamed --clean to --no-keep-temp and --noclean to --keep-temp.
2000-09-16 15:54:18 +00:00
Greg Ward
8429036496
Renamed --keep-tree option to --keep-temp.
2000-09-16 15:53:41 +00:00
Greg Ward
24511d2a6e
Ensure sub-commands of "install" are reinitialized too.
...
Run "install" the right way, by calling 'run_command()'.
2000-09-16 15:30:47 +00:00
Greg Ward
47ec20757d
Remove some debugging output from the last change.
2000-09-16 15:27:17 +00:00
Greg Ward
ecce14522c
In 'reinitialize_subcommand()', pass 'reinit_subcommands' flag on to the
...
real implementation in Distribution.
2000-09-16 15:25:55 +00:00
Greg Ward
f449ea51aa
Generalized 'reinitialize_command()' so it can optionally reinitialize
...
the command's sub-commands as well (off by default). This is essential if
we want to be be able to run (eg.) "install" twice in one run, as happens
when generating multiple built distributions in one run.
2000-09-16 15:23:28 +00:00
Greg Ward
b3e0ad9804
Added the "sub-command" machinery to formalize the notion of "command
...
families" -- eg. install and its brood, build and its brood, and so forth.
Specifically: added the 'sub_commands' class attribute (empty list, sub-
classes must override it) and a comment describing it, and the
'get_sub_commands()' method.
2000-09-16 15:09:17 +00:00
Greg Ward
fadefedb89
Factored the "sub-command" machinery out to Command. Mainly, this
...
meant removing 'get_sub_commands()', and moving the 'sub_commands' class
attribute to the end and restructuring it to conform to the new regime.
2000-09-16 15:06:57 +00:00
Fred Drake
634fc574e1
Use a really ugly hack that depends on output processing by LaTeX2HTML.
...
This replaces the tilde character with the string ";SPMtilde;", which
LaTeX2HTML converts to a tilde on output.
2000-09-16 14:16:57 +00:00
Fred Drake
6e1fecc28a
Update URL to unicode.org's FTP site using an HTTP URL to the same
...
document.
2000-09-16 13:46:42 +00:00
Fred Drake
315b9e0ac1
Update *both* uses of the URL to the zlib home page, and use the version
...
advertised as the canonical form.
2000-09-16 06:18:26 +00:00
Fred Drake
ab2f9f766f
Update link to the zlib homepage.
2000-09-16 05:07:03 +00:00
Fred Drake
f29107447a
Update the link to Andrew Kuchling's crypto code.
2000-09-16 05:02:24 +00:00
Fred Drake
91fc9319fa
Update link to the FIPS PUB 180-1 (PDF is available, but not PostScript).
2000-09-16 04:59:33 +00:00
Fred Drake
630d0f0974
Update some stale links.
2000-09-16 04:21:22 +00:00
Tim Peters
c1d65c34cf
Repair senseless random.seed docstring (reported on c.l.py).
2000-09-16 04:02:48 +00:00
Tim Peters
78fc0b57df
Fixed legit gripe from c.l.py that math.fmod docs aren't confusing enough.
...
FRED, please check my monkey-see-monkey-do Tex fiddling!
2000-09-16 03:54:24 +00:00
Greg Ward
53db8154e6
Tweaked the build temp dir names again.
2000-09-16 02:06:45 +00:00
Greg Ward
e918b6fdb5
Typo fix.
2000-09-16 01:59:06 +00:00
Greg Ward
42900941b8
Include the Python version in the platform-specific build directories:
...
with the recent change in 'get_platform()', we now have directory names
like "build/lib-1.5-linux-i586". Idea and original patch by
Rene Liebscher.
2000-09-16 01:54:46 +00:00
Greg Ward
9ae7c3c9a5
Document the directory separatory for include dir and library dir lists.
2000-09-16 01:44:45 +00:00
Jack Jansen
76167fecc1
This will eventually evolve into a package that creates CodeWarrior projects from templates (for distutils, and possibly the standard extensions too). For now it generates a correct xml file based on sources/output/expfile, but that is about all.
2000-09-15 22:44:08 +00:00
Neil Schemenauer
a53cf79275
- add a new test
...
- document some of the tricky tests (hopefully correctly :)
2000-09-15 22:32:29 +00:00
Fred Drake
6a547c7878
Fix a link -- there is no starship.python.org!
2000-09-15 22:11:24 +00:00
Fred Drake
1ac526d7cc
Add a constant "library" to the module which names the library used,
...
based on the available headers.
Update comments on the filename extensions used to reflect library
differences.
Added get() and setdefault() methods to the dbm object.
Added docstrings, convert all methods to PyArg_ParseTuple() so that
error messages will have the method names.
2000-09-15 21:35:14 +00:00
Fred Drake
7c25f3df85
Add some comments on the available implementations that this module can
...
use.
Change the list of flag values for open() to a table.
Markup consistency nits.
2000-09-15 21:31:31 +00:00
Jeremy Hylton
afde7e24b6
fix bug #110661 (PR#356) -- accept either & or ; as separator for CGI
...
query string
also some doc string reformatting and use of string methods instead of
older string.splitfields
2000-09-15 20:06:57 +00:00
Neil Schemenauer
ce20967c2c
Don't remove instance objects from the GC container set until we are
...
they are dead. Fixes bug #113812 .
2000-09-15 18:57:21 +00:00
Fred Drake
e64572bccb
Some systems need -lucb to compile the mmap module. Add a comment to
...
this effect.
This address one aspect of SourceForge bug #113797 .
2000-09-15 18:55:58 +00:00
Barry Warsaw
3b2aedbdc5
Py_Main(), usage(), usage_mid: Add -h and -V flags to print the usage
...
message and Python version number and exit immediately. Closes patch
#101496 .
2000-09-15 18:40:42 +00:00
Barry Warsaw
645693783c
Describe the -h and -V flags. Closes patch #101496
2000-09-15 18:39:09 +00:00
Paul Prescod
5c6bd31319
Fixed some typos. Removed one obsolete comment.
2000-09-15 18:38:47 +00:00
Skip Montanaro
6634b14f3b
add cross reference to mimetools module
2000-09-15 18:20:20 +00:00