Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mymemreplace(), strop_replace(): Add support for optional 4th argument | Barry Warsaw | 1997-11-29 | 1 | -4/+12 |
| | | | | | | | | maxsplit which is implemented in string.py but wasn't here. The reference manual doesn't define what happens when maxsplit is negative or larger than the number of occurrences, but in either case, I implemented this as all get replaced. Default value is zero which replaces all occurrences. | ||||
* | os2 patch by Jeff Rush | Guido van Rossum | 1997-11-22 | 5 | -21/+399 |
| | |||||
* | Redone the _tkinter configuration section with support for popular packages. | Guido van Rossum | 1997-11-22 | 1 | -15/+41 |
| | |||||
* | New tkappinit supporting several popular packages. | Guido van Rossum | 1997-11-22 | 1 | -15/+36 |
| | |||||
* | PySocketSock_methods: Added "connect_ex" so the method can actually be | Barry Warsaw | 1997-11-20 | 1 | -0/+1 |
| | | | | called! | ||||
* | Add support for _locale. | Guido van Rossum | 1997-11-19 | 1 | -0/+2 |
| | |||||
* | Add s.connect_ex() which returns errno instead of raising an exception. | Guido van Rossum | 1997-11-19 | 1 | -0/+20 |
| | |||||
* | Add optional support fort Tix and BLT. | Guido van Rossum | 1997-11-19 | 1 | -0/+19 |
| | |||||
* | Martin von Loewis' _locale module (locale.py follows tomorrow). | Guido van Rossum | 1997-11-18 | 1 | -0/+355 |
| | |||||
* | This fix (across 4 files in 3 directories) solves a subtle problem with | Guido van Rossum | 1997-11-14 | 2 | -0/+10 |
| | | | | | | | | | | | | | | | signal handlers in a fork()ed child process when Python is compiled with thread support. The bug was reported by Scott <scott@chronis.icgroup.com>. What happens is that after a fork(), the variables used by the signal module to determine whether this is the main thread or not are bogus, and it decides that no thread is the main thread, so no signals will be delivered. The solution is the addition of PyOS_AfterFork(), which fixes the signal module's variables. A dummy version of the function is present in the intrcheck.c source file which is linked when the signal module is not used. | ||||
* | Got rid of the errorstr dictionary, which is redundant now that | Guido van Rossum | 1997-11-04 | 1 | -21/+9 |
| | | | | there's os.strerror() -- also, it would form a locale liability. | ||||
* | Fix due to Bill Noon for problem discovered by Ken Manheimer: packing | Guido van Rossum | 1997-11-04 | 1 | -2/+2 |
| | | | | 0.0 as float or double would yield the representation for 1.0! | ||||
* | Move the Py_{{BEGIN,END}_ALLOW,BLOCK}_THREADS macros in time_sleep() | Guido van Rossum | 1997-11-03 | 1 | -7/+15 |
| | | | | | | to inside floatsleep(). This is necessary because floatsleep() does the error handling and it must have grabbed the interpreter lock and thread state before it can do so. | ||||
* | Change the signal finialization so that it also resets the signal | Guido van Rossum | 1997-11-03 | 1 | -1/+7 |
| | | | | | handlers. After this has been called, our signal handlers are no longer active! | ||||
* | Add cast to realloc/malloc call to shut up AIX compiler. (Vladimir Marangozov) | Guido van Rossum | 1997-10-31 | 1 | -2/+2 |
| | |||||
* | Take out the setlocale() call. It affects atof() and will break | Guido van Rossum | 1997-10-31 | 1 | -8/+0 |
| | | | | floating point literals. Need to do this differently... | ||||
* | Add #include "mytime.h", needed for SunOS 4.1 (Matthias Klose). | Guido van Rossum | 1997-10-31 | 1 | -0/+1 |
| | |||||
* | Forgot to add .cxx and .cpp to the second case statement. | Guido van Rossum | 1997-10-21 | 1 | -0/+2 |
| | | | | Thanks to Daniel Larsson. | ||||
* | Some patches to Lee Busby's fpectl mods that accidentally didn't make it | Guido van Rossum | 1997-10-20 | 1 | -3/+2 |
| | | | | into 1.5a4. | ||||
* | Add getintarg(), getlongarg(), getstrarg() to macros since these no | Guido van Rossum | 1997-10-20 | 1 | -0/+3 |
| | | | | longer exist in the general headers. | ||||
* | Add proper (getattrfunc) cast in Pcre_Type. | Guido van Rossum | 1997-10-20 | 1 | -1/+1 |
| | |||||
* | Change sharedmodules to lib-dynload. | Guido van Rossum | 1997-10-20 | 2 | -7/+7 |
| | | | | ### If you still have sharedmodules in your Modules/Setup file, remove it! ### | ||||
* | Darn. When thread support is disabled, the BEGIN/END macros don't | Guido van Rossum | 1997-10-10 | 2 | -4/+8 |
| | | | | | | save and restore the tstate, but explicitly calling PyEval_SaveThread() does reset it! While I think about how to fix this for real, here's a fix that avoids getting a fatal error. | ||||
* | Don Beaudry's changes to support SGI_ABI on Irix 6.x. | Guido van Rossum | 1997-10-09 | 1 | -0/+2 |
| | |||||
* | Remove requirement for strdup() since it causes so many troubles for too many | Fred Drake | 1997-10-09 | 1 | -4/+4 |
| | | | | platforms. Argh! | ||||
* | Add call to setlocale(LC_ALL, ""). | Guido van Rossum | 1997-10-08 | 1 | -1/+8 |
| | |||||
* | Put back the extern declaration for strdup(), between #ifndef MS_WINDOWS. | Guido van Rossum | 1997-10-08 | 1 | -0/+3 |
| | | | | | This should make everybody happy, especially since we don't say what the argument type is (there is disagreement on that, too :-( ). | ||||
* | timezone support for macintosh (Jack) | Guido van Rossum | 1997-10-08 | 1 | -0/+36 |
| | |||||
* | Include macbuildno.h here (mac only) (Jack) | Guido van Rossum | 1997-10-08 | 1 | -0/+4 |
| | |||||
* | lots of "goto error" replaced by "return" (Jack) | Guido van Rossum | 1997-10-08 | 1 | -264/+264 |
| | |||||
* | Converted to new exception style (Jack) | Guido van Rossum | 1997-10-08 | 1 | -6/+2 |
| | |||||
* | Mac does support createfilehandler now (Jack) | Guido van Rossum | 1997-10-08 | 1 | -1/+1 |
| | |||||
* | Checking in AMK's latest installement. | Guido van Rossum | 1997-10-08 | 2 | -130/+68 |
| | | | | (Two small changes to shup up gcc added.) | ||||
* | initparser(): Use PyErr_NewException() to create the exception. | Fred Drake | 1997-10-07 | 1 | -1/+1 |
| | |||||
* | Fix EventHook (the trick to make widgets appear when using GNU | Guido van Rossum | 1997-10-07 | 1 | -3/+19 |
| | | | | | readline) to create and use a new thread state object -- otherwise it would dump core! | ||||
* | Add the Setup line for the pcre module. | Guido van Rossum | 1997-10-07 | 1 | -1/+2 |
| | |||||
* | Add get_line_buffer() and insert_text(), suggested by Michael McLay. | Guido van Rossum | 1997-10-07 | 1 | -0/+40 |
| | |||||
* | New "re" regular expression support. | Guido van Rossum | 1997-10-06 | 4 | -0/+5135 |
| | | | | | This code is written by Philip Hazel and Andrew Kuchling. It requires a new "re.py" module, too. | ||||
* | Oops, forgot one. | Guido van Rossum | 1997-10-01 | 1 | -1/+1 |
| | |||||
* | Apply two changes, systematically: | Guido van Rossum | 1997-10-01 | 27 | -166/+78 |
| | | | | | | | | | | | | | | | | | (1) Use PyErr_NewException("module.class", NULL, NULL) to create the exception object. (2) Remove all calls to Py_FatalError(); instead, return or ignore the errors -- the import code now checks PyErr_Occurred() after calling a module's init function, so it's no longer a fatal error for the initialization to fail. Also did some small cleanups, e.g. removed unnecessary test for "already initialized" from initfpectl(), and unified initposix()/initnt(). I haven't checked this very thoroughly, so while the changes are pretty trivial -- beware of untested code! | ||||
* | Removed extern declaration of strdup(). Doesn't appear to be important and | Fred Drake | 1997-09-30 | 1 | -10/+0 |
| | | | | causes ugly noises under Windows. | ||||
* | Add an optional hack for threads in Tkinter. | Guido van Rossum | 1997-09-28 | 3 | -2/+1005 |
| | | | | | | | | | | | | | | | | This one works! However it requires using a modified version of tclNotify.c (provided), which requires access to the Tcl source to compile it. In order to enable this hack, add the following to the Setup line for _tkinter: tclNotify.c -DHAVE_PYTCL_WAITUNTILEVENT -I$(TCL)/generic where TCL points to the source tree of Tcl 8.0. Other versions of Tcl are not supported. The tclNotify.c file is copyrighted by Sun Microsystems; the licensing terms are in the file license.terms. According to this file, no further permission to distribute this is required, provided the file license.terms is included. Hence, I am checking that in, too. | ||||
* | Add plat- prefix to MACHDEPPATH, now that it's been removed from MACHDEP. | Guido van Rossum | 1997-09-28 | 1 | -1/+1 |
| | |||||
* | Changes submitted by Marc-Andre Lemburg to add two tables: errorcode | Guido van Rossum | 1997-09-28 | 1 | -368/+622 |
| | | | | | | maps errno numbers to errno names (e.g. EINTR), and errorcode maps them to message strings. (The latter is redundant because the new call posix.strerror() now does the same, but alla...) | ||||
* | In whichmodule(), use __module__ if set. | Guido van Rossum | 1997-09-28 | 1 | -0/+4 |
| | |||||
* | Set the completer's word break characters appropriate for Python. | Guido van Rossum | 1997-09-26 | 1 | -0/+4 |
| | |||||
* | Reordered and reformatted, and added some cool new features: | Guido van Rossum | 1997-09-26 | 1 | -62/+183 |
| | | | | | | | | | | set_completer(function) parse_and_bind(string) read_init_file(filename) The first is the most exciting feature: with an appropriate Python completer function, it can do dynamic completion based on the contents of your namespace! | ||||
* | Fix by Sjoerd: don't want to resize to zero length. | Guido van Rossum | 1997-09-22 | 1 | -2/+7 |
| | |||||
* | Move the "import readline" to an earlier place so it is also done when | Guido van Rossum | 1997-09-16 | 1 | -8/+10 |
| | | | | | "-i" is given. (Yes, I know, giving in to Marc Lemburg who wanted this :-) | ||||
* | Add strerror() interface. | Guido van Rossum | 1997-09-15 | 1 | -2/+30 |
| |