summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* In 'install_misc' class:Gregory P. Smith2000-05-121-10/+7
| | | | | | - renamed '_copydata()' to 'copy_files()' - changed it to record complete output filenames - dropped '_outputdata()' in favour of much simpler 'get_outputs()'
* Doc patch from Bastein Kleineidam: start to describe the 'install' commandGregory P. Smith2000-05-121-0/+16
| | | | family, including the new 'install_scripts' and 'install_data' commands.
* Patch from Bastien Kleineidam:Gregory P. Smith2000-05-126-1/+68
| | | | | | adds the 'install_data' and 'install_scripts' commands; these two are trivial thanks to the 'install_misc' base class in cmd.py. (Minor tweaks and commentary by me; the code is untested so far.)
* Call 'parse_config_files()' at the appropriate point.Gregory P. Smith2000-05-121-7/+7
| | | | Tweaked error-generating code.
* Preliminary support for config files:Gregory P. Smith2000-05-121-12/+82
| | | | | | - added 'find_config_files()' and 'parse_config_files()' methods - added 'command_options' attribute Comment/docstring updates.
* Made 'check_environ()' "public" by stripping the leading underscore;Gregory P. Smith2000-05-121-2/+9
| | | | | added a global '_environ_checked' so we know if it's already been called.
* Fix from Lyle Johnson: add the '--compiler' option.Gregory P. Smith2000-05-121-2/+11
| | | | | | Also added creation of 'implib_dir', a temporary directory specific to MSVC++ -- but I checked in two ways of fixing it (Lyle's and mine), because I'm not sure which is right.
* Fix from Lyle Johnson: add the '--compiler' option.Gregory P. Smith2000-05-122-3/+12
|
* The addition of rint() (by Peter Schneider-Kamp; I forgot to mentionGuido van Rossum2000-05-112-0/+5
| | | | | | that before) in the previous patch has one problem; rint() is not in the C math library on all platforms (e.g. not for VC++). Make it conditional on HAVE_RINT.
* Add check for rint() in math library.Guido van Rossum2000-05-113-21/+90
|
* Remove stdwin referencesGuido van Rossum2000-05-111-7/+0
|
* Removing junkGuido van Rossum2000-05-1118-3046/+0
|
* removing more stdwin usersGuido van Rossum2000-05-1114-2894/+0
|
* Added a few new names...Guido van Rossum2000-05-111-0/+3
|
* Added math.rint() -- round according to current IEEE754 modeGuido van Rossum2000-05-115-0/+16
|
* removing more stdwin usersGuido van Rossum2000-05-1137-6107/+0
|
* Bill Tutt:Guido van Rossum2000-05-111-1/+24
| | | | | Calling Sleep(0) for a spinlock can cause a priority inversion, adding comments to explain what's going on.
* Oops, better also note that the module initialization function must beFred Drake2000-05-101-0/+2
| | | | extern "C" for C++.
* Section "The Module's Method Table and Initialization Function":Fred Drake2000-05-101-7/+10
| | | | | | Explain that the name of the initialization function must be init<module>(). Omission noted by Daniel Kozan <crum@dev-group.com>.
* At Bob Kahn's request, add CNRI to the copyright string (but not toGuido van Rossum2000-05-101-1/+5
| | | | the notice yet).
* Rename the "browser" module to "BrowserControl", since Guido did notFred Drake2000-05-102-2/+2
| | | | like the short, ambiguous name.
* EditorWindow.python_docs():Fred Drake2000-05-101-5/+8
| | | | | | | Instead of using Netscape through os.system(), use the new browser.open() function to load the documentation on the default browser. On Windows, this will use the installed documentation if it exists, instead of hitting python.org.
* Collection of classes and convenience functions to control externalFred Drake2000-05-101-0/+157
| | | | Web browsers.
* GUSI 2.0.5 has a non-functional getsockname() if you use Open Transport. For ↵Jack Jansen2000-05-101-1/+2
| | | | now the workaround is to only enable MacTCP sockets.
* Trent Mick:Guido van Rossum2000-05-101-1/+4
| | | | | | | | | | | | | | Use "win32" for sys.platform on Win64 instead of "win32" because: 1. While it may be confusing to the Python scriptor on Win64 that he has to check for win*32*, that is something that he will learn the first time. It is better than the alternative of the scriptor happily using "win64" and then that code not running on Win32 for no good reason. 2. The main question is: is Win64 so much more like Win32 than different from it that the common-case general Python programmer should not ever have to make the differentiation in his Python code. Or, at least, enough so that such differentiation by the Python scriptor is rare enough that some other provided mechanism is sufficient (even preferable). Currently the answer is yes. Hopefully MS will not change this answer.
* Trent Mick <trentm@activestate.com>:Fred Drake2000-05-091-12/+12
| | | | | | Limit the 'b' formatter of PyArg_ParseTuple to valid values of an unsigned char, i.e. [0,UCHAR_MAX]. It is expected that this is the common usage of 'b'. An OverflowError is raised if the parsed value is outside this range.
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-1/+4
| | | | | Added a useful link to Markus Kuhn's Unicode and UTF-8 FAQ.
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-0/+6
| | | | | Added another test for string formatting (the one that produced the core dump now fixed in unicodeobject.c).
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-0/+37
| | | | | | Added APIs to allow setting and querying the system's current string encoding: sys.set_string_encoding() and sys.get_string_encoding().
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-9/+5
| | | | | | | Moved some docs to the include file. Added a NULL check to _PyCodec_Lookup() to make it core dump safe.
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-2/+2
| | | | | Fixed docs according to the new behaviour (the Unicode encoding is no longer fixed to UTF-8).
* Minimal change so I can add the rest of MAL's checkin message:Fred Drake2000-05-091-1/+1
| | | | | M.-A. Lemburg <mal@lemburg.com>: Fixed a core dump in PyUnicode_Format().
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-20/+71
| | | | | | | Added support for user settable default encodings. The current implementation uses a per-process global which defines the value of the encoding parameter in case it is set to NULL (meaning: use the default encoding).
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-1/+4
| | | | | Fixed a bug due to a /* inside /*...*/. GCC doesn't like this and bombs.
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-4/+26
| | | | | Added PyUnicode_GetDefaultEncoding() and PyUnicode_GetDefaultEncoding() APIs.
* M.-A. Lemburg <mal@lemburg.com>:Fred Drake2000-05-091-7/+75
| | | | Added documentation and the missing PyCodec_StreamWriter API.
* New version from Jim Fulton to fix a problem that Eric Raymond ranGuido van Rossum2000-05-091-6/+20
| | | | | | | | | | | | | | | | | | | | | | into. Jim writes: The core dump was due to a C decrement operation in a macro invocation in load_pop. (BAD) I fixed this by moving the decrement outside the macro call. I added a comment to load_pop and load_mark to document the fact that cPickle separates the unpickling stack into two separate stacks, one for objects and one for marks. I also moved some increments out of some macro calls (PyTuple_SET_ITEM and PyList_SET_ITEM). This wasn't necessary, but made me feel better. :) I tested these changes in *my* cPickle, which doesn't have the new Unicode stuff.
* Fix references to the built-in compile() that don't include theFred Drake2000-05-091-10/+10
| | | | filename parameter. Noted by Randall Hopper <aa8vb@yahoo.com>.
* Skip Montanaro <skip@mojam.com>:Fred Drake2000-05-091-3/+8
| | | | | | | | | The intent is that this diff adds a link to the rfc822 module doc and an index reference to this module under the rfc822 heading. Fred, based on a suggestion from Grant Griffin <grant.griffin@honeywell.com>: Added link to the MIME FAQ, so people can more easily get more information about the subject of the module.
* Define \seeurl in the seealso environment. Two parameters: url, why.Fred Drake2000-05-091-0/+9
|
* do_cmd_seeurl(): New function.Fred Drake2000-05-091-0/+11
|
* read() method: clarify that strings are accepted and interpretedFred Drake2000-05-091-1/+9
| | | | | | reasonably. readfp() method: added documentation.
* Add a simple directory listing function.Guido van Rossum2000-05-091-9/+38
|
* Set HTTPServer class variable allow_reuse_address to 1, so restartingGuido van Rossum2000-05-091-0/+2
| | | | the server after it died doesn't require a wait period.
* Add class variable allow_reuse_address in TCPServer -- if nonzero, theGuido van Rossum2000-05-091-0/+5
| | | | server_bind() method calls setsockopt(SOL_SOCKET, SO_REUSEADDR, 1).
* ConfigParser.read():Fred Drake2000-05-091-1/+1
| | | | | Instead of wrapping 'filenames' value in a list if it's a string, wrap it if it's a string or unicode string.
* Minor edit of leading comments: 'the the' --> 'the', quoted 'enable'Fred Drake2000-05-091-2/+2
| | | | option name for clarity.
* Replace PyErr_BadArgument() error in PyInt_AsLong() with "an integerGuido van Rossum2000-05-091-1/+1
| | | | | is required" (we can't say more because we don't know in which context it is called).
* Trent Mick:Guido van Rossum2000-05-091-7/+14
| | | | | | | | | | | Fix the string methods that implement slice-like semantics with optional args (count, find, endswith, etc.) to properly handle indeces outside [INT_MIN, INT_MAX]. Previously the "i" formatter for PyArg_ParseTuple was used to get the indices. These could overflow. This patch changes the string methods to use the "O&" formatter with the slice_index() function from ceval.c which is used to do the same job for Python code slices (e.g. 'abcabcabc'[0:1000000000L]).
* Caolan McNamara: properly undo the byte-stuffing of lines startingGuido van Rossum2000-05-091-0/+3
| | | | with a dot. [GvR change: only unstuff when line starts with two dots.]