summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* posix_fildes(): New helper: run a function that takes a file descriptorFred Drake2002-04-151-52/+71
| | | | | | | | | | | | | | | | | | and returns None. This allows any object that supports the fileno() method to be passed as a file descriptor, not just an integer. posix_fchdir(): New exposed function: implements posix.fchdir(). This closes SF feature #536796. posix_fsync(), posix_fdatasync(): Convert to use posix_fildes() instead of posix_int(). This also changes them from METH_VARARGS to METH_O functions. setup_confname_table(): Remove unused variable. Change to take a module rather than a dict to save the resulting table into. setup_confname_tables(): Change to take a module instead of a dict to pass to setup_confname_table().
* Generate the right annotations in the index entries.Fred Drake2002-04-151-2/+2
| | | | Thanks to Thomas Heller for the sharp eye.
* Add a test for fchdir().Fred Drake2002-04-153-3/+7
| | | | This is part of SF feature #536796.
* Integrated more text from Guido.Fred Drake2002-04-151-2/+359
|
* Move the listing of the type structure, since both the C API reference andFred Drake2002-04-151-0/+0
| | | | the Extending & Embedding manual use it.
* Return the orginal string only if it's a real str or unicodeWalter Dörwald2002-04-152-4/+18
| | | | instance, otherwise make a copy.
* Clean up the application of style to verbatim text.Fred Drake2002-04-153-8/+10
| | | | | | | This moves styling to the stylesheet; the use of <dl> structures to control style sometimes produced improper indentation of subsequent text in many browsers when the text was already part of the <dl> structure (as in a function or class description).
* Add support for \cmemberline and the cmemberdesc environment.Fred Drake2002-04-151-0/+24
|
* Remove unused variable reported by Walter DörwaldNeal Norwitz2002-04-151-1/+1
|
* Add itemAndrew M. Kuchling2002-04-151-0/+2
|
* Remove 'const' from local variable declaration in string_zfill() -- itGuido van Rossum2002-04-151-71/+80
| | | | | | | | isn't constant, so why bother. Folded long lines. Whitespace normalization.
* Apply the second version of SF patch http://www.python.org/sf/536241Walter Dörwald2002-04-158-13/+83
| | | | | | | | | | Add a method zfill to str, unicode and UserString and change Lib/string.py accordingly. This activates the zfill version in unicodeobject.c that was commented out and implements the same in stringobject.c. It also adds the test for unicode support in Lib/string.py back in and uses repr() instead() of str() (as it was before Lib/string.py 1.62)
* posix.mknod() and {}.pop() were addedNeal Norwitz2002-04-151-1/+2
|
* Deprecate % as well. The message for deprecation of //, % and divmodGuido van Rossum2002-04-151-1/+6
| | | | is the same in all three cases (mostly because // calls divmod :-).
* Add news about deprecated complex ops.Guido van Rossum2002-04-151-0/+4
|
* update build infrastructure for pymalloc and bool changesAndrew MacIntyre2002-04-152-5/+18
|
* Add itemsAndrew M. Kuchling2002-04-151-0/+20
|
* SF bug #543387.Guido van Rossum2002-04-151-0/+5
| | | | | | | | | Complex numbers implement divmod() and //, neither of which makes one lick of sense. Unfortunately this is documented, so I'm adding a deprecation warning now, so we can delete this silliness, oh, around 2005 or so. Bugfix candidate (At least for 2.2.2, I think.)
* Four more names for the hall of fame.Guido van Rossum2002-04-151-0/+4
|
* SF bug #541883 (Vincent Fiack).Guido van Rossum2002-04-152-0/+11
| | | | | | | A stupid bug in object_set_class(): didn't check for value==NULL before checking its type. Bugfix candidate.
* Add exit as alias for quit, as the easiest way to address SF bugGuido van Rossum2002-04-151-1/+4
| | | | | | #543674. Bugfix candidate.
* SF bug #543318 (Frank J. Tobin).Guido van Rossum2002-04-151-1/+1
| | | | | | | In DatagramRequestHandler.setup(), the wfile initialization should be StringIO.StringIO(), not StringIO.StringIO(slf.packet). Bugfix candidate (all the way back to Python 1.5.2 :-).
* Fix from SF bug #541980 (Jacques A. Vidrine).Guido van Rossum2002-04-151-1/+4
| | | | | | | When os.stat() for a file raises OSError, turn it into IOError per documentation. Bugfix candidate.
* Provisional fix for writefile() [SF bug # 541730].Guido van Rossum2002-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | The problem was that an exception can occur in the text.get() call or in the write() call, when the text buffer contains non-ASCII characters. This causes the previous contents of the file to be lost. The provisional fix is to call str(self.text.get(...)) *before* opening the file, so that if the exception occurs, we never open the file. Two orthogonal better solutions have to wait for policy decisions: 1. We could try to encode the data as Latin-1 or as UTF-8; but that would require IDLE to grow a notion of file encoding which requires more thought. 2. We could make backups before overwriting a file. This requires more thought because it needs to be fast and cross-platform and configurable.
* Enable universal newline support for MacPython.Jack Jansen2002-04-141-0/+3
|
* SF bug 543840: complex(string) accepts strings with \0Tim Peters2002-04-142-1/+14
| | | | | | | complex_subtype_from_string(): this stopped parsing at the first 0 byte, as if that were the end of the input string. Bugfix candidate.
* Test suite for universal newline support.Jack Jansen2002-04-141-0/+114
|
* Mass checkin of universal newline support.Jack Jansen2002-04-1415-35/+390
| | | | | | | | Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details.
* Patch #540583: Open MS Help Docs if available.Martin v. Löwis2002-04-141-3/+12
|
* Patch #542569: tp_print tp_repr tp_str in test_bool.py.Martin v. Löwis2002-04-141-1/+18
|
* Patch #543447: Add posix.mknod.Martin v. Löwis2002-04-146-7/+60
|
* Patch #542659: Eliminate duplicate check for NULL of freevars/cellvars.Martin v. Löwis2002-04-141-4/+0
|
* initpwd(): Clean up initialization, avoid PyModule_GetDict().Fred Drake2002-04-131-4/+4
|
* BDFL agreed with Tim: rehabilitate randint().Neal Norwitz2002-04-131-2/+0
|
* Fold long lines. (Walter, please take note! :-)Guido van Rossum2002-04-131-9/+18
|
* Add pop() to UserDict.Guido van Rossum2002-04-131-0/+2
|
* _PyObject_DebugDumpStats: renamed to _PyObject_DebugMallocStats.Tim Peters2002-04-133-5/+14
| | | | | | Added code to call this when PYMALLOC_DEBUG is enabled, and envar PYTHONMALLOCSTATS is set, whenever a new arena is obtained and once late in the Python shutdown process.
* SF bug 543148: Memory leak with stackframes + inspect.Tim Peters2002-04-131-2/+17
| | | | | | | | Put a bound on the number of frameobjects that can live in the frameobject free_list. Am also backporting to 2.2. I don't intend to backport to 2.1 (too much work -- lots of cyclic structures leak there, and the GC API).
* Document the optional argument to the .strip(), .rstrip(), .strip() stringFred Drake2002-04-131-8/+20
| | | | | methods. Part of SF feature #444708.
* News for strip methods.Guido van Rossum2002-04-131-0/+4
|
* Partially implement SF feature request 444708.Guido van Rossum2002-04-133-18/+101
| | | | | | | | | | | | | Add optional arg to string methods strip(), lstrip(), rstrip(). The optional arg specifies characters to delete. Also for UserString. Still to do: - Misc/NEWS - LaTeX docs (I did the docstrings though) - Unicode methods, and Unicode support in the string methods.
* Add news about memory managent APIs changing.Neil Schemenauer2002-04-121-0/+5
|
* Additional support for describing C structure members.Fred Drake2002-04-121-0/+11
|
* Integrate a bunch of new text from Guido.Fred Drake2002-04-121-6/+262
|
* AddrlistClass -> AddressListBarry Warsaw2002-04-121-2/+2
|
* AddrlistClass -> AddressListBarry Warsaw2002-04-121-2/+2
|
* Small anal correctness tweaks:Tim Peters2002-04-121-2/+2
| | | | | | | | | | _PyObject_DebugMalloc: explicitly cast PyObject_Malloc's result to the target pointer type. _PyObject_DebugDumpStats: change decl of arena_alignment from unsigned int to unsigned long. This is for the 2.3 release only (it's new code).
* BDFL agreed with Tim: rehabilitate randint().Fred Drake2002-04-121-1/+0
|
* Update the type of the tp_free slot.Fred Drake2002-04-121-1/+1
|
* Warn people away from PyModule_GetDict(), but not too strongly.Fred Drake2002-04-121-0/+3
| | | | | | | (The real issue is whether modules can benefit from an alternate implementation strategy rather than using a dictionary. We should migrate away from direct dictionary manipulation to allow more room for Jeremy to flex the implementation with changes in globals lookup.)