Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Gack. The module doc string is too long for VC++ 5.0. | Guido van Rossum | 1998-08-06 | 1 | -2/+5 |
| | | | | | However two string literals concatenated are fine! Hope this doesn't break other platforms. | ||||
* | Added doc strings. Maybe the doc string for the module itself is a bit | Guido van Rossum | 1998-06-27 | 1 | -7/+102 |
| | | | | long, but it sure helps! | ||||
* | New APIs to write to sys.stdout or sys.stderr using a printf-like interface. | Guido van Rossum | 1998-05-12 | 1 | -0/+90 |
| | | | | | | | | | | | | | | | | | | | | | | | | Adapted from code submitted by Just van Rossum. PySys_WriteStdout(format, ...) PySys_WriteStderr(format, ...) The first function writes to sys.stdout; the second to sys.stderr. When there is a problem, they write to the real (C level) stdout or stderr; no exceptions are raised (but a pending exception may be cleared when a new exception is caught). Both take a printf-style format string as their first argument followed by a variable length argument list determined by the format string. *** WARNING *** The format should limit the total size of the formatted output string to 1000 bytes. In particular, this means that no unrestricted "%s" formats should occur; these should be limited using "%.<N>s where <N> is a decimal number calculated so that <N> plus the maximum size of other formatted text does not exceed 1000 bytes. Also watch out for "%f", which can print hundreds of digits for very large numbers. | ||||
* | Make backup copies of stdin, stdout, stderr as __stdin__, __stdout__, | Guido van Rossum | 1998-02-19 | 1 | -0/+4 |
| | | | | __stderr__. These will be used by the import cleanup. | ||||
* | Get rid of another reference to _PyImport_Inittab (now a static array) | Guido van Rossum | 1997-11-04 | 1 | -2/+2 |
| | | | | | that should be PyImport_Inittab (a new pointer initialized to point to the array). | ||||
* | Get DLL version from a variable. | Guido van Rossum | 1997-09-29 | 1 | -1/+3 |
| | |||||
* | Remove unised variable | Guido van Rossum | 1997-08-07 | 1 | -1/+0 |
| | |||||
* | The last of the mass checkins for separate (sub)interpreters. | Guido van Rossum | 1997-08-02 | 1 | -24/+26 |
| | | | | | | | Everything should now work again. See the comments for the .h files mass checkin (e.g. pystate.h) for more detail. | ||||
* | Removed a bunch of extern declarations of functions that are now | Guido van Rossum | 1997-07-19 | 1 | -7/+0 |
| | | | | properly declared in Python.h. | ||||
* | Set sys.executable to full path of python (from argv[0]). | Guido van Rossum | 1997-05-22 | 1 | -0/+4 |
| | |||||
* | Use #ifdef in stead of #if (Jack) | Guido van Rossum | 1997-05-20 | 1 | -1/+1 |
| | |||||
* | Massive changes for separate thread state management. | Guido van Rossum | 1997-05-05 | 1 | -9/+30 |
| | | | | | All per-thread globals are moved into a struct which is manipulated separately. | ||||
* | Oops, forgot one: inittab. | Guido van Rossum | 1997-04-29 | 1 | -2/+2 |
| | |||||
* | Quickly renamed. | Guido van Rossum | 1997-04-29 | 1 | -143/+147 |
| | |||||
* | Expand one level of symbolic link in sys.argv[0] before inserting its | Guido van Rossum | 1997-04-25 | 1 | -8/+41 |
| | | | | | | | | | | | | | | dirname in sys.path. This means that you can create a symbolic link foo in /usr/local/bin pointing to /usr/yourname/src/foo/foo.py, and then invoking foo will insert /usr/yourname/src/foo in sys.path, not /usr/local/bin. This makes it easier to have multifile programs (before, the program would have to do an os.readlink(sys.argv[0]) itself and insert the resulting directory in sys.path -- Grail does this). Note that the expansion is only used for sys.path; sys.argv[0] is still the original, unadorned filename (/usr/local/bin/foo in the example). | ||||
* | Added optional interface for dynamic execution profile (to be gathered | Guido van Rossum | 1997-01-24 | 1 | -2/+11 |
| | | | | in ceval.c). | ||||
* | Make builtin_module_names a tuple instead of a list. | Guido van Rossum | 1997-01-06 | 1 | -0/+5 |
| | |||||
* | New permission notice, includes CNRI. | Guido van Rossum | 1996-10-25 | 1 | -13/+20 |
| | |||||
* | Rationalized MS ifdefs | Guido van Rossum | 1996-09-11 | 1 | -1/+1 |
| | |||||
* | Changes to setpythonpath(): | Guido van Rossum | 1996-09-10 | 1 | -4/+23 |
| | | | | | Test for / as well as for SEP for MS filenames. Drop trailing separator from sys.path[0] for MS and Unix filenames. | ||||
* | Use MS_DLL_ID as sys.winver | Guido van Rossum | 1996-08-23 | 1 | -2/+2 |
| | |||||
* | Always insert script directory in front of sys.path -- if there's no | Guido van Rossum | 1996-07-30 | 1 | -17/+17 |
| | | | | | sys.argv, insert "". Note that "." is removed as a default component of the path (see changes to getpath.c and Setup.in). | ||||
* | As a side effect of calling PySys_SetArgv (setpythonargv), the | Guido van Rossum | 1996-07-24 | 1 | -0/+18 |
| | | | | | | directory containing argv[0] is inserted in front of sys.path. If argv[0] contains no directory, an empty string is inserted. If argv is empty, nothing happens. | ||||
* | Slightly different Windows ifdefs | Guido van Rossum | 1996-06-28 | 1 | -1/+1 |
| | |||||
* | Define sys.prefix and sys.exec_prefix (see Modules/getpath.c; from Makefile). | Guido van Rossum | 1996-06-17 | 1 | -0/+7 |
| | |||||
* | rename printrefs, getobjects to _Py_ prefix | Guido van Rossum | 1996-05-24 | 1 | -2/+4 |
| | |||||
* | TRACE_REFS -> Py_TRACE_REFS | Guido van Rossum | 1996-05-23 | 1 | -2/+2 |
| | |||||
* | Under NT, define sys.dllhandle and sys.winver (Mark H.). | Guido van Rossum | 1996-04-09 | 1 | -0/+10 |
| | |||||
* | fix args options for setcheckinterval | Guido van Rossum | 1996-01-12 | 1 | -1/+1 |
| | |||||
* | Implemented two new functions in sys: | Sjoerd Mullender | 1995-08-29 | 1 | -0/+34 |
| | | | | | | | | | | | | getcounts() returns a list of counts of allocations and deallocations for all different object types. getobjects(n [, type ]) returns a list of recently allocated and not-yet-freed objects of the given type (all objects if no type given). Only the n most recent (all if n==0) objects are returned. getcounts is only available if compiled with -DCOUNT_ALLOCS, getobjects is only available if compiled with -DTRACE_REFS. Note that everything must be compiled with these options! | ||||
* | added sys.platform | Guido van Rossum | 1995-07-07 | 1 | -0/+3 |
| | |||||
* | init sys_checkinterval to 10 | Guido van Rossum | 1995-03-30 | 1 | -1/+1 |
| | |||||
* | fix comment about exit() | Guido van Rossum | 1995-03-20 | 1 | -1/+1 |
| | |||||
* | add explicit 0 flags for methodlist | Guido van Rossum | 1995-02-21 | 1 | -5/+5 |
| | |||||
* | sys.check_interval=x -> sys.setcheckinterval(x) | Guido van Rossum | 1995-01-09 | 1 | -0/+13 |
| | |||||
* | Added 1995 to copyright message. | Guido van Rossum | 1995-01-04 | 1 | -2/+2 |
| | | | | | | bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error(). | ||||
* | Lots of changes, most minor (fatal() instead of abort(), use of | Guido van Rossum | 1995-01-02 | 1 | -1/+2 |
| | | | | | | err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c. | ||||
* | Merge back to main trunk | Guido van Rossum | 1994-08-30 | 1 | -6/+16 |
| | |||||
* | * Added Fixcprt.py: script to fix copyright message. | Guido van Rossum | 1993-01-26 | 1 | -2/+21 |
| | | | | | | | | | | | * various modules: added 1993 to copyright. * thread.c: added copyright notice. * ceval.c: minor change to error message for "+" * stdwinmodule.c: check for error from wfetchcolor * config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h) * Add declaration of inittab to import.h * sysmodule.c: added sys.builtin_module_names * xxmodule.c, xxobject.c: fix minor errors | ||||
* | Modified most (but not yet all) I/O to always go through sys.stdout or | Guido van Rossum | 1992-09-25 | 1 | -1/+1 |
| | | | | | | sys.stderr or sys.stdin, and to work with any object as long as it has a write() (respectively readline()) methods. Some functions that took a FILE* argument now take an object* argument. | ||||
* | Add an optional interface to turn malloc debugging on and off. | Guido van Rossum | 1992-09-03 | 1 | -0/+21 |
| | |||||
* | sysmodule.c: calling sys.settrace() or sys.setprofile() without | Guido van Rossum | 1992-06-19 | 1 | -2/+2 |
| | | | | | | | | | arguments crashed in INCREF() calls which should be XINCREF() calls. timemodule.c: fix for SEQUENT port (sys/select, struct timezone) by Jaap Vermeulen xxobject.c: include modsupport.h | ||||
* | Fix reference counts of sys_trace and sys_profile | Guido van Rossum | 1992-04-05 | 1 | -3/+7 |
| | |||||
* | Added settrace() and setprofile(). | Guido van Rossum | 1992-03-23 | 1 | -13/+30 |
| | |||||
* | sysset(name, NULL) does nothing if sys.name is undefined | Guido van Rossum | 1992-01-26 | 1 | -2/+6 |
| | |||||
* | Ensure that sys.argv[0] always exists (maybe as empty string). | Guido van Rossum | 1992-01-14 | 1 | -2/+6 |
| | |||||
* | Raise SystemExit instead of calling goaway(). | Guido van Rossum | 1991-12-31 | 1 | -6/+3 |
| | |||||
* | Added sys.version object. | Guido van Rossum | 1991-12-10 | 1 | -1/+5 |
| | |||||
* | Generalize to macintosh. | Guido van Rossum | 1991-06-24 | 1 | -1/+1 |
| | |||||
* | Added fclose to newopenfileobject() calls. | Guido van Rossum | 1991-06-04 | 1 | -4/+4 |
| |