Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Added documentation on the ErrorHandler interface. | Fred Drake | 2000-12-19 | 1 | -0/+40 |
| | | | | This closes bug #126034. | ||||
* | Oops. The value "0 or +1" for the category argument of PyErr_Warn() | Guido van Rossum | 2000-12-19 | 1 | -1/+1 |
| | | | | | | doesn't work. Make it 0. (Although it really *should* be 0 or +1 -- the refcount is incremented when it is raised as an exception, but not otherwise.) | ||||
* | Document Pyerr_Warn(). | Guido van Rossum | 2000-12-19 | 1 | -0/+11 |
| | | | | | Add an XXX comment at the beginning expressing disappointment over the confusing way refcount behavior of arguments is documented. | ||||
* | Document Pyerr_Warn(). | Guido van Rossum | 2000-12-19 | 1 | -0/+34 |
| | |||||
* | Document the -W option as best as I can. | Guido van Rossum | 2000-12-19 | 1 | -7/+70 |
| | | | | Get rid of BeOpen references. | ||||
* | Improve error messages for invalid warning arguments; don't raise | Guido van Rossum | 2000-12-19 | 1 | -4/+10 |
| | | | | exceptions but always print a warning message. | ||||
* | Make string.translate(s, table) work for Unicode s. Two things are | Guido van Rossum | 2000-12-19 | 1 | -4/+11 |
| | | | | | | | | | | | required to work around restrictions on the arguments of u.translate(): 1) don't pass the deletions argument if it's empty; 2) convert table to Unicode if s is Unicode. This fixes SF bug #124060. | ||||
* | Fix off-by-one error in split_substring(). Fixes SF bug #122162. | Guido van Rossum | 2000-12-19 | 1 | -1/+1 |
| | |||||
* | Test more split argument combinations: | Guido van Rossum | 2000-12-19 | 1 | -0/+7 |
| | | | | | | 1) multi-char separator 2) multi-char separator that only occurs at last position 3) all of the above with mixed Unicode and 8-bit-string arguments | ||||
* | Minimal fix for the complaints about pickling Unicode objects. (SF | Guido van Rossum | 2000-12-19 | 1 | -2/+48 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | bugs #126161 and 123634). The solution doesn't use the unicode-escape encoding; that has other problems (it seems not 100% reversible). Rather, it transforms the input Unicode object slightly before encoding it using raw-unicode-escape, so that the decoding will reconstruct the original string: backslash and newline characters are translated into their \uXXXX counterparts. This is backwards incompatible for strings containing backslashes, but for some of those strings, the pickling was already broken. Note that SF bug #123634 complains specifically that cPickle fails to unpickle the pickle for u'' (the empty Unicode string) correctly. This was an off-by-one error in load_unicode(). XXX Ugliness: in order to do the modified raw-unicode-escape, I've cut-and-pasted a copy of PyUnicode_EncodeRawUnicodeEscape() into this file that also encodes '\\' and '\n'. It might be nice to migrate this into the Unicode implementation and give this encoding a new name ('half-raw-unicode-escape'? 'pickle-unicode-escape'?); that would help pickle.py too. But right now I can't be bothered with the necessary infrastructural changes. | ||||
* | Test some Unicode pickling endcases. | Guido van Rossum | 2000-12-19 | 1 | -0/+12 |
| | |||||
* | Minimal fix for the complaints about pickling Unicode objects. (SF | Guido van Rossum | 2000-12-19 | 1 | -0/+2 |
| | | | | | | | | | | | | | | bugs #126161 and 123634). The solution doesn't use the unicode-escape encoding; that has other problems (it seems not 100% reversible). Rather, it transforms the input Unicode object slightly before encoding it using raw-unicode-escape, so that the decoding will reconstruct the original string: backslash and newline characters are translated into their \uXXXX counterparts. This is backwards incompatible for strings containing backslashes, but for some of those strings, the pickling was already broken. | ||||
* | Adapted from a patch by Barry Scott, SF patch #102875 and SF bug | Guido van Rossum | 2000-12-18 | 1 | -3/+4 |
| | | | | #125981: closing sockets was not thread-safe. | ||||
* | gdbm.open() no longer accepts garbage in the flags string. Fix the tests. | Neil Schemenauer | 2000-12-18 | 1 | -2/+7 |
| | |||||
* | Do not talk about "real" numbers; talk about "floats" or "floating point | Fred Drake | 2000-12-18 | 1 | -4/+4 |
| | | | | | | | numbers" instead; we have not described "reals" anywhere else in the documentation, and this is not the place to change the story! Reported by Keith Briggs <keith.briggs@bt.com>. | ||||
* | Add support for gdbm2 open flags ('s' and 'u'). Add module constant | Neil Schemenauer | 2000-12-17 | 2 | -18/+69 |
| | | | | | open_flags which contains the flags supported by gdbm. Closes patch #102802. | ||||
* | Add returns_unicode to the __members__ list. | Fred Drake | 2000-12-16 | 1 | -1/+2 |
| | | | | Fix a small style consistency nit. | ||||
* | Do not assume that types.UnicodeType exists; we might be running in an old | Fred Drake | 2000-12-16 | 1 | -1/+5 |
| | | | | version of Python. ;-( | ||||
* | Use the string module instead of string methods; this should still work | Fred Drake | 2000-12-16 | 1 | -1/+3 |
| | | | | with Python 1.5.2 for now. | ||||
* | urlretrieve() description included explanation of "data" parameter, but | Fred Drake | 2000-12-15 | 1 | -4/+5 |
| | | | | | | did not include it in the signature. Fixed some markup nits. | ||||
* | Typo caught by /F -- thanks! | Fred Drake | 2000-12-15 | 1 | -1/+1 |
| | |||||
* | Add definitions for PySys_ResetWarnOptions() and | Guido van Rossum | 2000-12-15 | 1 | -0/+39 |
| | | | | PySys_AddWarnOption(). | ||||
* | Add declarations for PySys_ResetWarnOptions() and | Guido van Rossum | 2000-12-15 | 1 | -0/+3 |
| | | | | PySys_AddWarnOption(). | ||||
* | Add the -W option. | Guido van Rossum | 2000-12-15 | 1 | -1/+8 |
| | |||||
* | Python part of the warnings subsystem. | Guido van Rossum | 2000-12-15 | 1 | -0/+227 |
| | |||||
* | Add PyErr_Warn(). | Guido van Rossum | 2000-12-15 | 1 | -0/+34 |
| | |||||
* | Add definitions for standard warning category classes (PyExc_Warning | Guido van Rossum | 2000-12-15 | 1 | -0/+36 |
| | | | | etc.). | ||||
* | Add declarations for standard warning category classes (PyExc_Warning | Guido van Rossum | 2000-12-15 | 1 | -0/+10 |
| | | | | etc.) and the PyErr_Warn() function. | ||||
* | Before calling traceback.print_exc(), call sys.stdout.flush(). This makes | Fred Drake | 2000-12-15 | 1 | -0/+1 |
| | | | | it much easier to see where things went wrong. | ||||
* | DOMException.__init__(): Remember to pass self to Exception.__init__(). | Fred Drake | 2000-12-15 | 1 | -1/+1 |
| | |||||
* | Comment out a debugging print statement that triggered a complaint in | Guido van Rossum | 2000-12-15 | 1 | -1/+1 |
| | | | | c.l.py. | ||||
* | Added documentation for random.shuffle(). | Fred Drake | 2000-12-15 | 1 | -0/+17 |
| | |||||
* | Get rid of string functions. | Guido van Rossum | 2000-12-15 | 1 | -15/+14 |
| | |||||
* | Get rid of string functions. References to string.whitespace, | Guido van Rossum | 2000-12-15 | 1 | -63/+57 |
| | | | | string.digits are left. | ||||
* | Get rid of string functions. | Guido van Rossum | 2000-12-15 | 1 | -14/+12 |
| | | | | | There should really be a little tool to help with this -- it's rather tedious and there are lots of special cases! | ||||
* | Get rid of string functions, except maketrans() (which is *not* | Guido van Rossum | 2000-12-15 | 1 | -42/+45 |
| | | | | | | | | | obsolete!). Fix a bug in ftpwrapper.retrfile() where somehow ftplib.error_perm was assumed to be a string. (The fix applies str().) Also break some long lines and change the output from test() slightly. | ||||
* | Add test case for error message raised by bad % format character | Andrew M. Kuchling | 2000-12-15 | 1 | -0/+25 |
| | | | | (Oh, look, it adds another little utility function for testing) | ||||
* | [ Patch #102852 ] Make % error a bit more informative by indicates the | Andrew M. Kuchling | 2000-12-15 | 2 | -4/+6 |
| | | | | index at which an unknown %-escape was found | ||||
* | Grant Griffin <grant.griffin@honeywell.com>: | Fred Drake | 2000-12-15 | 1 | -2/+3 |
| | | | | Clarify that invert() is a *bitwise* operation. | ||||
* | Fix typo | Andrew M. Kuchling | 2000-12-15 | 1 | -1/+1 |
| | |||||
* | Document napms() | Andrew M. Kuchling | 2000-12-15 | 1 | -0/+5 |
| | | | | Add reference to demo directory | ||||
* | [Patch #102827] Fix for PR#119558, avoiding core dumps by checking for | Andrew M. Kuchling | 2000-12-15 | 1 | -7/+16 |
| | | | | malloc() returning NULL | ||||
* | Wrapper for napms() function, contributed by Thomas Gellekum <tg@FreeBSD.org> | Andrew M. Kuchling | 2000-12-15 | 1 | -1/+50 |
| | |||||
* | Curses demos contributed by Thomas Gellekum <tg@FreeBSD.org>. | Andrew M. Kuchling | 2000-12-15 | 4 | -1/+541 |
| | | | | ncurses.py requires panel support, and therefore doesn't work yet. | ||||
* | Various tweaks. It now returns the exact same files as Matthias' tool 95% of ↵ | Jack Jansen | 2000-12-14 | 1 | -28/+55 |
| | | | | the time. | ||||
* | Oops, interaction() returned a single value in stead of a tuple (I thought ↵ | Jack Jansen | 2000-12-14 | 1 | -3/+2 |
| | | | | that bug was loooong fixed??!?). | ||||
* | First stab at a script that mimicks Matthias Neerachers tool used to build GUSI. | Jack Jansen | 2000-12-14 | 1 | -0/+164 |
| | |||||
* | Set autodispose only if RefCon isn't set yet on the window. This way we ↵ | Jack Jansen | 2000-12-14 | 2 | -6/+117 |
| | | | | don't accidentally dispose of windows that are actually dialogs-in-disguise. | ||||
* | Fix bit rot: use sock.connect((host, port)) and allow 2nd cmd line | Guido van Rossum | 2000-12-14 | 1 | -3/+3 |
| | | | | arg. | ||||
* | For the title page, insert the package version number before the date. | Fred Drake | 2000-12-14 | 1 | -3/+3 |
| | | | | | This makes the title area more like the title are of the top-level index, and puts the information more people are interested in first. |