Guido van Rossum
795ba583f2
Removed some redundant header includes.
...
dir(object) now returns object.__dict__.keys() even if __dict__ is not
a dictionary.
1996-05-23 22:49:07 +00:00
Guido van Rossum
7f3f2c1819
TRACE_REFS -> Py_TRACE_REFS
1996-05-23 22:45:41 +00:00
Guido van Rossum
aae0d32f66
Use new names for debug macros. Don't include pythonrun.h.
1996-05-22 16:35:33 +00:00
Guido van Rossum
9c9a07c9c9
Remember source filename as <module>.__file__.
1996-05-16 20:43:40 +00:00
Guido van Rossum
d17057745c
Add list() method, analogous to tuple().
1996-04-09 02:41:06 +00:00
Guido van Rossum
a5a3db70d4
Under NT, interface to mysterious module registry. (Mark H.)
1996-04-09 02:39:59 +00:00
Guido van Rossum
e71a947f8e
Under NT, change "long" sharedlib extension to ".dll". (Mark H.)
1996-04-09 02:39:15 +00:00
Guido van Rossum
c606fe186f
Under NT, define sys.dllhandle and sys.winver (Mark H.).
1996-04-09 02:37:57 +00:00
Guido van Rossum
4f1c59b818
Add'l change for NT (Mark H.).
1996-04-09 02:37:03 +00:00
Guido van Rossum
25e852985f
__FreeBSD__ shared libraries
1996-02-25 05:02:29 +00:00
Guido van Rossum
be1a6e29e3
Change Mac creator from 'PYTH' to 'Pyth' -- 'PYTH' was already taken
...
by someone else, 'Pyth' is now officially registered by the PSA.
1996-02-21 15:29:20 +00:00
Guido van Rossum
15ad9a6e52
only use 'j' for imaginary constants
1996-01-26 20:53:56 +00:00
Guido van Rossum
c96ef6ab9e
properly initialize optional arguments to apply()
1996-01-26 20:44:30 +00:00
Jack Jansen
1e7b2aa5d6
Removed unused var
1996-01-25 16:11:19 +00:00
Sjoerd Mullender
996e6dc959
Corrected format string in api_version_warning.
1996-01-23 16:07:29 +00:00
Guido van Rossum
ff4af06735
__hpux -> hpux equivalence
1996-01-12 01:17:50 +00:00
Guido van Rossum
b0352fa3fc
fix args options for setcheckinterval
1996-01-12 01:15:01 +00:00
Guido van Rossum
beeda8a7ba
changes for power (**) operator
1996-01-12 01:13:38 +00:00
Guido van Rossum
50564e8dae
changes for complex and power (**) operator
1996-01-12 01:13:16 +00:00
Guido van Rossum
8a5c5d277e
changes for complex numbers
1996-01-12 01:09:56 +00:00
Guido van Rossum
72b56e831f
don't return from main loop when error occurs
1995-12-10 04:57:42 +00:00
Jack Jansen
66a8977b0e
Moved mac-specific exit handling to macmain.c
1995-10-27 13:22:14 +00:00
Jack Jansen
9513f2c95a
Made a bit more robust against out-of-memory situations
1995-10-27 13:21:28 +00:00
Jack Jansen
0a72e8d4d2
Added missing include for <Aliases.h>
1995-10-23 13:54:01 +00:00
Guido van Rossum
6c066885f1
set date to oct 13
1995-10-12 00:48:18 +00:00
Guido van Rossum
53f4524a92
disable code generation for access statement
1995-10-08 00:42:46 +00:00
Guido van Rossum
1c45ca310b
keep exitfunc alive while calling it
1995-10-07 19:14:01 +00:00
Jack Jansen
95ffa23597
Removed unused variables
1995-10-03 14:38:41 +00:00
Guido van Rossum
a1e7e62893
fix bug with missing default for last arg (discovered by Tommy Burnette)
1995-09-18 21:44:04 +00:00
Guido van Rossum
befa14f1b9
#undef argument, for the Mac
1995-09-18 21:42:42 +00:00
Guido van Rossum
020dfe7f2e
include Python.h
1995-09-18 21:40:19 +00:00
Guido van Rossum
650ae0ab06
remove unwanted fatal() from err_badcall()
1995-09-18 21:31:16 +00:00
Guido van Rossum
9d78d8d2fb
spell TraceBack with capital B
1995-09-18 21:29:36 +00:00
Sjoerd Mullender
6ec3c653da
Implemented two new functions in sys:
...
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!
1995-08-29 09:18:14 +00:00
Guido van Rossum
05870115fc
rd_object() with exception is fatal error
1995-08-28 02:56:20 +00:00
Guido van Rossum
69f6ee6a9d
err_badcall() is fatal error
1995-08-28 02:55:48 +00:00
Guido van Rossum
667d704997
Initial revision
1995-08-04 04:20:48 +00:00
Guido van Rossum
e3e61c1642
empty kw dict is ok for builtins
1995-08-04 04:14:47 +00:00
Guido van Rossum
a1633cd993
split cofnfig.c in 1000 little files :-)
1995-08-04 04:13:00 +00:00
Guido van Rossum
47ad5e7d81
moved stuff around to resemble main.c
1995-08-04 04:10:43 +00:00
Guido van Rossum
6ec1efb645
add imp.get_frozen_object()
1995-08-04 04:08:57 +00:00
Guido van Rossum
b7b45627e8
avoid resize of 0-length tuple
1995-08-04 04:07:45 +00:00
Jack Jansen
21eb0b56a8
mac CW-only fix for messy windows upon exit
1995-07-29 13:55:06 +00:00
Jack Jansen
b7d0df4a91
Allow mac user to set "command line flags" by option-starting python.
1995-07-29 13:53:59 +00:00
Guido van Rossum
0db1ef96ac
fix bogus DECREF in finally clause
1995-07-28 23:06:00 +00:00
Jack Jansen
614cf81606
Undef 'argument' before including mac headers
1995-07-28 11:28:14 +00:00
Guido van Rossum
ff8b494cf0
changes for keyword args to built-in functions and classes
1995-07-26 18:16:42 +00:00
Guido van Rossum
ce0a6ded4d
never close the file in imp.load_...
1995-07-26 18:13:27 +00:00
Guido van Rossum
53bb7fff11
be more suspicious of getlocals()
1995-07-26 16:26:31 +00:00
Guido van Rossum
681d79aaf3
keyword arguments and faster calls
1995-07-18 14:51:37 +00:00
Guido van Rossum
11a3f0c2bc
NT specific change for nicer error message (Mark H)
1995-07-18 14:40:09 +00:00
Guido van Rossum
32120311ed
rename arglist to alist (conflict with new grammar symbol)
1995-07-10 13:52:21 +00:00
Guido van Rossum
f10570b9eb
3rd arg for raise; INCOMPLETE keyword parameter passing (currently f(kw=value) is seen as f('kw', value))
1995-07-07 22:53:21 +00:00
Guido van Rossum
7faeab3103
new MAGIC; some changes to default files for imp.load_... functions
1995-07-07 22:50:36 +00:00
Guido van Rossum
e78c5d0a16
ignore control-l (parallelling change to tokenizer.c)
1995-07-07 22:45:41 +00:00
Guido van Rossum
aaf18390ee
added sys.platform
1995-07-07 22:45:02 +00:00
Guido van Rossum
e40bddc3ef
new grammar
1995-07-07 22:44:10 +00:00
Guido van Rossum
872537cc86
added locals() and globals(); [raw_]input() uses readline()
1995-07-07 22:43:42 +00:00
Jack Jansen
eceb3e3f0a
Porting to CW CFM68K
1995-06-27 13:15:15 +00:00
Jack Jansen
ae12e19409
Added PY_RESOURCE (mac only) to imp module
1995-06-18 20:06:44 +00:00
Guido van Rossum
75f288de71
re-enabled NeXT dynamic linking (#ifdef NeXT)
1995-06-14 22:07:26 +00:00
Jack Jansen
5d9acb6b9e
Mac dynloading is now enabled by USE_MAC_DYNAMIC_LOADING.
...
Mac dynloading changed to allow multiple modules to live in with each
other in the same file.
1995-06-14 14:54:25 +00:00
Sjoerd Mullender
fbe6d33ffd
Check if we've already loaded a dynamic module under a different name.
1995-06-12 15:51:34 +00:00
Guido van Rossum
6233293ce5
OS/2 thread support
1995-04-10 11:36:14 +00:00
Guido van Rossum
4e2e0f9225
renaming phase 3
1995-03-31 10:27:23 +00:00
Guido van Rossum
9a1f388676
init sys_checkinterval to 10
1995-03-30 11:01:58 +00:00
Guido van Rossum
527c2643d1
flush stdout before writing to stderr in print_error()
1995-03-30 11:01:44 +00:00
Guido van Rossum
6f9e433ab3
fix dusty debugging macros
1995-03-29 16:57:48 +00:00
Guido van Rossum
684ed9891b
remove unused code for tp_call
1995-03-22 10:09:02 +00:00
Guido van Rossum
cc8914fb22
fix comment about exit()
1995-03-20 15:09:40 +00:00
Guido van Rossum
a44823b776
In NT, write fatal() msg to debugging device
1995-03-14 15:01:17 +00:00
Guido van Rossum
8d617a60b1
various tuple related optimizations; remove unused b/w compat code from ceval.c
1995-03-09 12:12:11 +00:00
Guido van Rossum
53e8d44eec
changes in NT tests
1995-03-09 12:11:31 +00:00
Guido van Rossum
59461c7052
use PROTO macro around fn prototype
1995-03-09 12:10:50 +00:00
Guido van Rossum
0fbec64c56
for BorlandC
1995-02-27 10:15:36 +00:00
Guido van Rossum
464a0a100f
for MPW __SC__
1995-02-27 10:15:10 +00:00
Guido van Rossum
4f508cc806
add explicit 0 flags for methodlist
1995-02-21 21:03:24 +00:00
Guido van Rossum
3097c3a87e
change ifdefs and fix "%#s" format
1995-02-21 21:02:46 +00:00
Guido van Rossum
2b7e04a9d9
for __SC__
1995-02-19 15:54:36 +00:00
Guido van Rossum
c388068431
magic number changes of CR/LF are swapped
1995-02-19 15:54:18 +00:00
Guido van Rossum
e9fbc0992c
rename macstrerror to PyMac_StrError; no EINTR test in CW
1995-02-18 14:52:19 +00:00
Guido van Rossum
8a1e8eb62f
fix bogus test for negative float
1995-02-18 14:51:32 +00:00
Guido van Rossum
6a75d26622
ported to 68K Mac; changed suffix to .slb
1995-02-18 14:51:15 +00:00
Guido van Rossum
3a205f7ea0
hope to fix DEC Alpha gcc problems by declaring ints instead of longs
1995-02-17 15:10:07 +00:00
Guido van Rossum
d9dfaf5a3b
fix typo (== for =) in assignment
1995-02-17 15:04:57 +00:00
Guido van Rossum
1d339e8c35
fix bug in try-finally with class exceptions; declare different func pointers for different uses
1995-02-17 15:04:21 +00:00
Jack Jansen
9c96a923fb
Added hooks to support importing pyc code from a resource on the mac.
1995-02-15 22:57:06 +00:00
Guido van Rossum
24c137432c
call __import__() with 4 args instead of 1
1995-02-14 09:42:43 +00:00
Jack Jansen
4e04373073
Added code to import dynamic modules using mac CFM.
1995-02-13 22:42:34 +00:00
Jack Jansen
bd06e96217
mac changes:
...
- Assume files of types 'PYC ' and 'APPL' are compiled python code
- For mwerks, show status line when program has terminated while
keeping window open.
1995-02-13 11:44:56 +00:00
Guido van Rossum
7f7f274839
use Py_CHARMASK
1995-02-10 17:01:56 +00:00
Guido van Rossum
2165158ab3
test for float to the float power here
1995-02-10 16:57:16 +00:00
Guido van Rossum
6b6e0aafe5
DECREF result of run_string
1995-02-07 15:36:56 +00:00
Guido van Rossum
0b3449010e
init_frozen non-static, frozenmain.c not in Makefile any more
1995-02-07 15:35:27 +00:00
Guido van Rossum
262e124107
print class name for exceptions that are classes
1995-02-07 15:30:45 +00:00
Jack Jansen
08e767bdc5
Under CodeWarrior, make the window go away on exit(0)
1995-02-02 14:30:20 +00:00
Guido van Rossum
a715299a14
remove unused variable
1995-01-30 12:53:21 +00:00
Guido van Rossum
90f0e07a5b
fix glaring bug in get_magic
1995-01-30 12:53:06 +00:00
Guido van Rossum
42a5124101
Think C mod to suppress pausing at normal exit
1995-01-30 12:52:46 +00:00
Guido van Rossum
c2ed415a1b
removed frozenmain.o from objects added to library
1995-01-26 23:05:49 +00:00
Guido van Rossum
0de81bfec9
don't dictclear deleted modules in doneimport
1995-01-26 00:41:28 +00:00
Guido van Rossum
8bf7c484c1
allow classes as exceptions
1995-01-26 00:41:04 +00:00
Guido van Rossum
8ae87c0489
make call_pyc_file static
1995-01-26 00:40:38 +00:00
Guido van Rossum
164d4ff0e5
added missing case to get_docstring
1995-01-26 00:40:09 +00:00
Guido van Rossum
a6f6050229
moved callable() to object.c
1995-01-26 00:39:50 +00:00
Guido van Rossum
64fc649095
don't overwrite error already set (e.g. from O&)
1995-01-21 14:09:37 +00:00
Guido van Rossum
40b261966a
removed getopt.o from OBJS
1995-01-20 16:57:52 +00:00
Guido van Rossum
3952cb0725
fix mem leak (localmap in optimize)
1995-01-20 16:56:41 +00:00
Guido van Rossum
d1b9393ba5
support "O&" taking an object constructor a void*
1995-01-20 16:56:02 +00:00
Guido van Rossum
1919ca7b28
add missing INCREF in RAISE_EXCEPTION
1995-01-20 16:55:14 +00:00
Guido van Rossum
10bb1c46f1
don't use function prototypes
1995-01-20 16:54:36 +00:00
Guido van Rossum
46c76a6c66
added changes for NetBSD dynamic linking; removed shared linking for NeXT
1995-01-20 16:53:54 +00:00
Guido van Rossum
7f9fa97ca2
fix import related leaks
1995-01-20 16:53:12 +00:00
Jack Jansen
5ef86d55b5
Undef strerror on the mac before redefining it
1995-01-19 12:16:44 +00:00
Guido van Rossum
97d68c03bc
added getopt.c to object, permanently
1995-01-17 16:51:35 +00:00
Guido van Rossum
5c2306c44f
include rename2.h
1995-01-17 16:31:21 +00:00
Guido van Rossum
2ac3bc2c05
rename method arg because of typedef conflict
1995-01-17 16:31:01 +00:00
Guido van Rossum
0865dd9ce9
fix Alpha bug in (x)range; different __builtins__ initialization
1995-01-17 16:30:22 +00:00
Guido van Rossum
c3f82b6b8a
nt thread support
1995-01-17 16:29:31 +00:00
Guido van Rossum
b4e7e25fe6
different init for __builtins__
1995-01-17 16:27:25 +00:00
Guido van Rossum
087579ea51
added $& to $(LIB) target for Sequent
1995-01-17 16:11:29 +00:00
Guido van Rossum
94390ec2a6
use getbuiltins() everywhere, it defaults to getbuiltidict()
1995-01-12 11:37:57 +00:00
Guido van Rossum
922d8ff803
Include rename2.h
1995-01-12 11:31:04 +00:00
Guido van Rossum
58b6873f6b
fix subtle refcount big in filter() -- Tim MacKenzie
1995-01-10 17:40:55 +00:00
Guido van Rossum
5524a59b09
move coerce() from bltinmodule.c to object.c and implement builtin_coerce() differently
1995-01-10 15:26:20 +00:00
Guido van Rossum
84eaa8396e
fix globals/locals defaults for eval/execfile
1995-01-10 10:47:05 +00:00
Guido van Rossum
6135a87f2b
__builtins__ mods (and sys_checkinterval for ceval.c)
1995-01-09 17:53:26 +00:00
Guido van Rossum
2565bff40a
Alpha OSF/1 fix
1995-01-09 17:50:47 +00:00
Guido van Rossum
970a0a20b8
api version checking
1995-01-09 17:47:20 +00:00
Guido van Rossum
6da5bfad0f
remove nogus reload check
1995-01-09 17:46:45 +00:00
Guido van Rossum
a0d7a23398
sys.check_interval=x -> sys.setcheckinterval(x)
1995-01-09 17:46:13 +00:00
Guido van Rossum
50620fa9b8
New newmethodobject() interface takes struct methodlist pointer
...
instead of individual components; initmodule3() now has doc string
argument as well
1995-01-07 12:43:18 +00:00
Guido van Rossum
1f4fa50176
Two independent chages:
...
(a) support import NAME.NAME...NAME;
(b) support doc strings in modules, classes and function definitions
1995-01-07 12:41:23 +00:00
Guido van Rossum
06186519e5
Use new instancebinop interface
1995-01-07 12:40:10 +00:00
Guido van Rossum
6a00cd8b89
* Python/bltinmodule.c: restructured coerce(), divmod(), pow() to
...
use new instancebinop interface
1995-01-07 12:39:01 +00:00
Guido van Rossum
a10f512dba
Grammar changed
1995-01-07 12:36:29 +00:00
Guido van Rossum
5fb1da76ff
NT dlls have .pyd extension instead of .dll
1995-01-07 12:36:02 +00:00
Guido van Rossum
6d023c98b0
Added 1995 to copyright message.
...
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().
1995-01-04 19:12:13 +00:00
Guido van Rossum
1ae940a587
Lots of changes, most minor (fatal() instead of abort(), use of
...
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.
1995-01-02 19:04:15 +00:00
Sjoerd Mullender
06fe7e5c2c
Added comment symbols around word after #endif.
1994-12-14 15:30:04 +00:00
Jack Jansen
599f0d1c2c
- Added ability to get at strings embedded in the struct
...
- For the mac, added ability to get at pascal-style strings
1994-12-14 13:04:05 +00:00
Jack Jansen
e00637bdcf
Removed extraneous fclose() in case of .pyc file argument
1994-12-14 12:58:37 +00:00
Jack Jansen
8fd2d94e37
Added hook for better mac error messages.
1994-12-14 12:54:54 +00:00
Guido van Rossum
69d9eb9f56
replace abort() calls by fatal()
1994-11-10 22:41:15 +00:00
Guido van Rossum
363ac7d5b6
set name to <lambda> instead of None for lambdas
1994-11-10 22:40:34 +00:00
Guido van Rossum
13d0ed13c3
prevent core dump for old getargs() with NULL arg
1994-11-10 22:35:48 +00:00
Guido van Rossum
c054a663eb
call err_clear in err_setval
1994-11-10 22:34:33 +00:00
Guido van Rossum
030ae17582
fix pow() core dump
1994-11-10 22:33:19 +00:00
Guido van Rossum
42a24ef2d7
add getargs.o:getargs.c rule
1994-10-11 15:08:39 +00:00
Guido van Rossum
a44031031c
Plug memory leak for code objects
1994-10-05 12:24:16 +00:00
Guido van Rossum
180d7b4d55
* Python/ceval.c, Include/ceval.h: promote MakePendingCalls to
...
global: Py_MakePendingCalls. Also guard against recursive calls
* Include/classobject.h, Objects/classobject.c,
Python/{ceval.c,bltinmodule.c}: entirely redone operator
overloading. The rules for class instances are now much more
relaxed than for other built-in types
(whose coerce must still return two objects of the same type)
1994-09-29 09:45:57 +00:00
Guido van Rossum
fe3f1a256b
* Python/{modsupport.c,getargs.c,Makefile.in},
...
Include/modsupport.h: moved getargs() to its own file and
re-implemented it entirely to support optional arguments, multiple
arguments without surrounding parentheses
(when called as newgetargs()), and better error messages
1994-09-29 09:42:55 +00:00
Guido van Rossum
6989e54ebf
* Python/errors.c (err_clear): clear interpreter stack trace
1994-09-29 09:39:39 +00:00
Guido van Rossum
83dd6c319e
* Python/pythonrun.c: add string "Python" to fatal error message
1994-09-29 09:38:33 +00:00
Guido van Rossum
a66e25dfa3
* Python/pythonmain.c: fatal error if can't alloc mem for -c
...
string
1994-09-29 09:38:18 +00:00
Guido van Rossum
bfd5d755a0
* Python/traceback.c: security fix -- check for buffer oveflow
...
before concatenating sys.path item and module name
1994-09-29 09:38:04 +00:00
Guido van Rossum
6c849697fd
Fix various potential buffer overrun problems.
1994-09-26 15:47:17 +00:00
Guido van Rossum
798199d8a6
* Python/pythonrun.c (print_error): print only last line of
...
multi-line source line
1994-09-19 08:08:50 +00:00
Guido van Rossum
a96720907a
* Python/ceval.c (eval_code): added registry of pending functions
...
(to be used by functions that are called asynchronously, like
UNIX signal handlers or Mac I/O completion routines)
1994-09-14 13:31:22 +00:00
Guido van Rossum
fdef271550
* Import/pythonrun.h, Python/{import,pythonrun}.c,
...
mac/macsetfiletype.c: changes by Jack to execute .pyc file passed
as command line argument. On the Mac .pyc files are given a
special type so they can be double-clicked
1994-09-14 13:31:04 +00:00
Guido van Rossum
ae311bd503
Mods for HP-UX dynamic loading.
1994-09-12 10:39:56 +00:00
Guido van Rossum
1662dd5a3d
added Py_AtExit() -- register cleanup functions for C modules
1994-09-07 14:38:28 +00:00
Guido van Rossum
e4ab6475f1
* Python/getmtime.c: Remove mac specifics (Mac subdirectory has
...
its own version now)
* Python/bltinmodule.c (builtin_tuple): use pre-existing
listtuple(v) for lists
1994-08-30 12:38:05 +00:00
Guido van Rossum
9717991b78
Merge back to main trunk
1994-08-30 09:33:45 +00:00
Guido van Rossum
1d5735e846
Merge back to main trunk
1994-08-30 08:27:36 +00:00
Guido van Rossum
e59214ed91
call_object: print message before abort()
1994-08-30 08:01:59 +00:00
Guido van Rossum
74e6a118ca
* Python/import.c: support *.o/*.so as alternative for
...
*module.o/*module.so
* Python/import.c: if initializing a module did not enter the
module into sys.modules, it may have raised an exception -- don't
override this exception.
Merged NT changes
* Python/import.c: add lost NT-specific code back in
Fixed NT changes
1994-08-29 12:54:38 +00:00
Guido van Rossum
14144fcdfd
Added delattr()
1994-08-29 12:53:40 +00:00
Guido van Rossum
cae027b298
* Python/bltinmodule.c: added tuple() builtin
1994-08-29 12:53:11 +00:00
Guido van Rossum
df05ac6dfb
Python/bltinmodule.c: mods by Andrew Kuchling to implement
...
pow(x,y,z) == pow(x,y)%z, but without incurring overflow
1994-08-29 12:52:37 +00:00
Guido van Rossum
2d9518585c
* Python/bltinmodule.c (builtin_vars): correct typo in error msg
1994-08-29 12:52:16 +00:00
Guido van Rossum
a110aa658b
* Python/pythonrun.c (print_error): added INCREF/DECREF pair --
...
the exception returned by a syntax error (when reported) would
contain an object with refcnt zero!
MPW changes
1994-08-29 12:50:44 +00:00
Guido van Rossum
4ca6c9db81
* Python/compile.c (com_argdefs, com_arglist): avoid referencing
...
CHILD(n,i) for i >= NCH(n)
1994-08-29 12:16:12 +00:00
Guido van Rossum
3a24181837
err_clear: clear interpreter stack trace
1994-08-29 12:14:12 +00:00
Guido van Rossum
13836d9e6d
add function name to traceback info
...
MPW fixes
1994-08-29 12:09:58 +00:00
Guido van Rossum
ba941eba67
MPW changes
1994-08-29 10:43:12 +00:00
Guido van Rossum
24f4850377
errors.c: clear traceback too.
...
Makefile.in: remove lib*.a before creating new one.
1994-08-19 15:37:11 +00:00
Guido van Rossum
14aa5da824
version.c is no longer...
1994-08-18 16:03:36 +00:00
Guido van Rossum
b6775db241
Merge alpha100 branch back to main trunk
1994-08-01 11:34:53 +00:00
Guido van Rossum
abe173a225
Replace intrcheck() by sigcheck() in many places.
...
In Pythonrun, tirn off SIGPIPE and move signal handlers elsewhere.
In ceval.c, also move locals_2_fast/ fast_2_locals to frameobject.c,
replaced local variable trace by f->f_trace, got rid of unused
mergelocals() and unneeded calls to fast_2_locals, return the variable
name on "fast variable not found", AND use "__call__" method if it
exists to call an inmstance. Whew!
1994-06-03 15:58:29 +00:00
Guido van Rossum
6f5f8ddeaf
Fix waiting for children -- save ppid in pidlist as well.
1994-05-30 13:39:05 +00:00
Guido van Rossum
e944da8916
ceval.c: dict of local mapping is now a tuple
...
compile.c: lists and dictionary in code objects become tuples
import.c: bump MAGIC
thread*.[ch]: added thread_ident() function
version.c: added '++' to version number and bumped date
1994-05-23 12:43:41 +00:00
Guido van Rossum
b98b1b3deb
Tim's changes; removed some remaining non-functional ifdefs
1994-05-11 08:42:04 +00:00
Guido van Rossum
2c8cb9f3d2
Split thread.c into a number of system-specific files.
...
Added Tim Peters' pthread version.
1994-05-09 15:12:46 +00:00
Guido van Rossum
871b805a04
New version handles -o<string> same as -o <string>
1994-04-28 12:33:58 +00:00
Guido van Rossum
2508ade19e
A getopt.c for your amusement
1994-04-14 14:08:22 +00:00
Guido van Rossum
8e454f3858
Misc changes.
1993-12-24 10:32:14 +00:00
Guido van Rossum
be0e9420a1
New files.
1993-12-24 10:32:00 +00:00
Guido van Rossum
7d6aa51b56
* rangeobject.[ch], bltinmodule.c: incorporate new version of range
...
object (unchanged from source except "range" -> "xrange").
1993-12-21 22:50:31 +00:00
Guido van Rossum
b898bd29b0
New file
1993-12-20 10:43:53 +00:00
Guido van Rossum
67a5fdbcc2
* mpzmodule.c: cast some methods to the proper type.
...
* traceback.c (tb_print): use sys.tracebacklimit as a maximum number of
traceback entries to print (default 1000).
* ceval.c (printtraceback): Don't print stack trace header -- this is now
done by tb_print().
1993-12-17 12:09:14 +00:00
Sjoerd Mullender
66bca326cb
Port to Solaris 2.3.
1993-12-03 16:54:45 +00:00
Guido van Rossum
57531fea90
change syntactical position of lambdef (was an atom, now is a test)
1993-11-30 14:57:42 +00:00
Guido van Rossum
590baa4a7a
* import.c (get_module): pass .py filename to parse_file, not .pyc filename!
...
* funcobject.c (func_repr): don't call getstringvalue(None) for anonymous
functions.
* bltinmodule.c: removed lambda (which is now a built-in function);
removed implied lambda for string arg to filter/map/reduce.
* Grammar, graminit.[ch], compile.[ch]: replaced lambda as built-in
function by lambda as grammar entity: instead of "lambda('x: x+1')" you
write "lambda x: x+1".
* Xtmodule.c (checkargdict): return 0, not NULL, for error.
1993-11-30 13:40:46 +00:00
Guido van Rossum
b376a4ad18
* timemodule.c: Add hack for Solaris 2.
...
* posixmodule.c: don't prototype getcwd() -- it's not portable...
* mappingobject.c: double-check validity of last_name_char in
dict{lookup,insert,remove}.
* arraymodule.c: need memmove only for non-STDC Suns.
* Makefile: comment out HTML_LIBS and XT_USE by default
* pythonmain.c: don't prototype getopt() -- it's not standardized
* socketmodule.c: cast flags arg to {get,set}sockopt() and addrbuf arg to
recvfrom() to (ANY*).
* pythonrun.c (initsigs): fix prototype, make it static
* intobject.c (LONG_BIT): only #define it if not already defined
* classobject.[ch]: remove all references to unused instance_convert()
* mappingobject.c (getmappingsize): Don't return NULL in int function.
1993-11-23 17:53:17 +00:00
Guido van Rossum
c45611d0e3
* import.c (get_module): total rewrite, to ensure proper search order: for
...
each dir in sys.path, try each possible extension. (Note: C extensions
are loaded before Python modules in the same directory, to allow having
a C version used when dynamic loading is supported and a Python version
as a back-up.)
* import.c (reload_module): test for error from getmodulename()
* moduleobject.c: implement module name as dict entry '__name__' instead
of special-casing it in module_getattr(); this way a module (or
function!) can access its own module name, and programs that know what
they are doing can rename modules.
* stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
1993-11-17 22:58:56 +00:00
Guido van Rossum
a3d78fb268
* posixmodule.c: added set{uid,gid}.
...
* {tuple,list,mapping,array}object.c: call printobject with 0 for flags
* compile.c (parsestr): use quote instead of '\'' at one crucial point
* arraymodule.c (array_getattr): Added __members__ attribute
1993-11-10 09:23:53 +00:00
Guido van Rossum
c600411755
* mpzmodule.c: removed redundant mpz_print function.
...
* object.[ch], bltinmodule.c, fileobject.c: changed str() to call
strobject() which calls an object's __str__ method if it has one.
strobject() is also called by writeobject() when PRINT_RAW is passed.
* ceval.c: rationalize code for PRINT_ITEM (no change in function!)
* funcobject.c, codeobject.c: added compare and hash functionality.
Functions with identical code objects and the same global dictionary are
equal. Code objects are equal when their code, constants list and names
list are identical (i.e. the filename and code name don't count).
(hash doesn't work yet since the constants are in a list and lists can't
be hashed -- suppose this should really be done with a tuple now we have
resizetuple!)
1993-11-05 10:22:19 +00:00
Guido van Rossum
2e8f8a398e
Added compare operations for functions and code objects.
...
(Also hash, but it doesn't work yet.)
1993-11-05 10:20:10 +00:00
Guido van Rossum
094885b0f0
Must initialize 'inspect' flag
1993-11-05 10:16:09 +00:00