Moshe Zadka
f68f2fec7d
Implementation of PEP-0217.
...
This closes the PEP, and patch 103170
2001-01-11 05:41:27 +00:00
Guido van Rossum
23fff911a2
Add definitions for PySys_ResetWarnOptions() and
...
PySys_AddWarnOption().
2000-12-15 22:02:05 +00:00
Barry Warsaw
b6a54d2a2c
_getframe(): New sys module function for getting at the stack frame.
...
Implements and closes SF patch #102106 , with Guido's suggested
documentation changes.
2000-12-06 21:47:46 +00:00
Guido van Rossum
8586991099
REMOVED all CWI, CNRI and BeOpen copyright markings.
...
This should match the situation in the 1.6b1 tree.
2000-09-01 23:29:29 +00:00
Jeremy Hylton
ee5adfbae6
add user-modifiable recursion_limit
...
ceval.c:
define recurion_limit (static), default value is 2500
define Py_GetRecursionLimit and Py_SetRecursionLimit
raise RuntimeError if limit is exceeded
PC/config.h:
remove plat-specific definition
sysmodule.c:
add sys.(get|set)recursionlimit
2000-08-31 19:23:01 +00:00
Fred Drake
592f2d6c85
_PySys_Init(): When setting up sys.version_info, use #if/#elif.../#endif
...
instead of four #if/#endif blocks. This shortens the
code and improves readability.
2000-08-31 15:21:11 +00:00
Barry Warsaw
f2581c97f2
_PySys_Init(): Fix another Insure discovered memory leak; the PyString
...
created from the "big"/"little" constant needs to be decref'd.
2000-08-16 23:03:57 +00:00
Fred Drake
a2b6ad6e27
Guido pointed out that all names in the sys module have no underscore,
2000-08-15 04:24:43 +00:00
Fred Drake
ccede59889
The attempt to protect against MS_WIN16 compilers that do not support long
...
string literals has not been tested on an MS_WIN16 platform; the trailing
";" was inside the #ifndef MS_WIN16, which should cause an error (missing
semi-colon) when compiled with that symbol #defined.
2000-08-14 20:59:57 +00:00
Fred Drake
099325e01b
Add a byte_order value to the sys module. The value is "big" for
...
big-endian machines and "little" for little-endian machines.
2000-08-14 15:47:03 +00:00
Thomas Wouters
1e0c2f4bee
Create a new section of pyport.h to hold all external function declarations
...
for systems that are missing those declarations from system include files.
Start by moving a pointy-haired ones from their previous locations to the
new section.
(The gethostname() one, for instance, breaks on several systems, because
some define it as (char *, size_t) and some as (char *, int).)
I purposely decided not to include the summary of used #defines like Tim did
in the first section of pyport.h. In my opinion, the number of #defines
likedly to be used by this section would make such an overview unwieldy. I
would suggest documenting the non-obvious ones, though.
2000-07-24 16:06:23 +00:00
Thomas Wouters
f70ef4f860
Mass ANSIfication of function definitions. Doesn't cover all 'extern'
...
declarations yet, those come later.
2000-07-22 18:47:25 +00:00
Tim Peters
dbd9ba6a6c
Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
2000-07-09 03:09:57 +00:00
Guido van Rossum
ffcc3813d8
Change copyright notice - 2nd try.
2000-06-30 23:58:06 +00:00
Guido van Rossum
fd71b9e9d4
Change copyright notice.
2000-06-30 23:50:40 +00:00
Guido van Rossum
582acece2e
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
...
tests.
2000-06-28 22:07:35 +00:00
Mark Hammond
440d898230
Added a new debug method sys.gettotalrefcount(), which returns the total number of references on all Python objects. This is only enabled when Py_TRACE_REFS is defined (which includes default debug builds under Windows).
...
Also removed a redundant cast from sys.getrefcount(), as discussed on the patches list.
2000-06-20 08:12:48 +00:00
Marc-André Lemburg
99964b86b2
Marc-Andre Lemburg <mal@lemburg.com>:
...
Changed the API names for setting the default encoding.
These are now in line with the other hooks API names
(no underscores).
2000-06-07 09:13:41 +00:00
Fred Drake
8b4d01d9f9
M.-A. Lemburg <mal@lemburg.com>:
...
Added APIs to allow setting and querying the system's
current string encoding: sys.set_string_encoding()
and sys.get_string_encoding().
2000-05-09 19:57:01 +00:00
Fred Drake
6d27c1eb32
Simplify creation of the version_info value for clarity, per
...
suggestion from Greg Stein.
2000-04-13 20:03:20 +00:00
Fred Drake
93a20bf87c
Capitulate, changing version_info to a 5-tuple:
...
major, minor, micro, level, serial
Values are now monotonically increasing with each new release.
2000-04-13 17:44:51 +00:00
Fred Drake
801c08d700
Define version_info to be a tuple (major, minor, micro, level); level
...
is a string "a2", "b1", "c1", or '' for a final release.
Added version_info and hexversion to the module docstring.
2000-04-13 15:29:10 +00:00
Guido van Rossum
ffc0f4fb36
Use modern PyArg_ParseTuple style, with function names.
...
(Mostly.)
2000-03-31 00:38:29 +00:00
Guido van Rossum
43713e5a28
Massive patch by Skip Montanaro to add ":name" to as many
...
PyArg_ParseTuple() format string arguments as possible.
2000-02-29 13:59:29 +00:00
Guido van Rossum
be2033697f
In PySys_GetObject(), it's possible that tstate->interp->sysdict is
...
NULL. In that case, return NULL rather than dumping core.
This fixes PR#91, submitted by Lele Gaifax.
1999-10-05 22:17:41 +00:00