Neil Schemenauer
2677512fc1
Adding missing "static" declarations (found by "make smelly").
2001-10-21 22:26:43 +00:00
Tim Peters
89675078cb
Back out trying to use the C values for CO_xxx.
...
__future__.py reverted to 1.9.
newmodule.c reverted to 2.32.
2001-08-24 06:29:12 +00:00
Tim Peters
aa32070f4d
Expose the CO_xxx flags via the "new" module (re-solving a problem "the
...
right way"). Fiddle __future__.py to use them.
Jeremy's pyassem.py may also want to use them (by-hand duplication of
magic numbers is brittle), but leaving that to his judgment.
Beef up __future__'s test to verify the exported feature names appear
correct.
2001-08-18 20:18:49 +00:00
Jeremy Hylton
6fe0a82ecb
move extra arguments to the back of the new.code() arglist
2001-02-01 19:50:29 +00:00
Fred Drake
ceb2bff09e
new_instance(): Use PyInstance_NewRaw() instead of knowing too much
...
about the internal initialization of instance objects. Make the
dict parameter optional, and allow None as equivalent to omission.
2001-01-28 03:55:09 +00:00
Jeremy Hylton
903f654ac9
PEP 227 implementation
...
Track changes to PyFrame_New() and PyFuntion_New().
2001-01-25 20:07:56 +00:00
Guido van Rossum
1bff883ac0
Allow new.function() called with explicit 3rd arg of None, as
...
documented, and as is reasonable (since it is optional, but there's
another argument following it that may require you to specify a
value). This solves SF bug 121887.
2000-11-13 20:29:20 +00:00
Fred Drake
5428c7db41
Fix the docstring for new.function().
...
Based on a comment from Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.
2000-10-10 22:07:18 +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
Andrew M. Kuchling
e365fb8d1f
Use METH_VARARGS instead of numeric constant 1 in method def. tables
2000-08-03 02:06:16 +00:00
Thomas Wouters
f3f33dcf03
Bunch of minor ANSIfications: 'void initfunc()' -> 'void initfunc(void)',
...
and a couple of functions that were missed in the previous batches. Not
terribly tested, but very carefully scrutinized, three times.
All these were found by the little findkrc.py that I posted to python-dev,
which means there might be more lurking. Cases such as this:
long
func(a, b)
long a;
long b; /* flagword */
{
and other cases where the last ; in the argument list isn't followed by a
newline and an opening curly bracket. Regexps to catch all are welcome, of
course ;)
2000-07-21 06:00:07 +00:00
Peter Schneider-Kamp
c4bc0e0895
ANSI-fication
2000-07-10 11:56:03 +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
Jeremy Hylton
c5007aa5c3
final patches from Neil Schemenauer for garbage collection
2000-06-30 05:02:53 +00:00
Guido van Rossum
b18618dab7
Vladimir Marangozov's long-awaited malloc restructuring.
...
For more comments, read the patches@python.org archives.
For documentation read the comments in mymalloc.h and objimpl.h.
(This is not exactly what Vladimir posted to the patches list; I've
made a few changes, and Vladimir sent me a fix in private email for a
problem that only occurs in debug mode. I'm also holding back on his
change to main.c, which seems unnecessary to me.)
2000-05-03 23:44:39 +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
3886bb6997
Add DL_EXPORT() to all modules that could possibly be used
...
on BeOS or Windows.
1998-12-04 18:50:17 +00:00
Guido van Rossum
d076c73cc8
Changes to support other object types besides strings
...
as the code string of code objects, as long as they support
the (readonly) buffer interface. By Greg Stein.
1998-10-07 19:42:25 +00:00
Guido van Rossum
7859f87fdb
Marc-Andre Lemburg's patch to support instance methods with other
...
callable objects than regular Pythonm functions as their im_func.
1998-07-08 14:58:16 +00:00
Guido van Rossum
b88679b2a4
I think there was a tiny bug in new_function() -- the 'defaults'
...
argument was initialized to Py_None, but later checked for NULL.
Consistently use Py_None.
1998-05-22 00:57:31 +00:00
Guido van Rossum
463e55a916
Two more arguments to newcodeobject -- first lineno and lineno table.
1997-01-24 03:58:52 +00:00
Guido van Rossum
e9fd28dae5
Add stacksize argument to new.code().
1997-01-17 21:12:06 +00:00
Barry Warsaw
a6b7c7146c
Renamed.
1996-12-10 16:25:56 +00:00
Guido van Rossum
b916faf66a
Upgraded new.function() contributed by Tommy. Also got rid of #if 0'ed code.
1996-11-21 16:02:12 +00:00
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
1996-10-25 14:44:06 +00:00
Guido van Rossum
26b310a3fd
Added new.instance(class, dict).
1996-06-17 16:56:56 +00:00
Guido van Rossum
b28911cdef
added new.classobj()
1996-01-12 01:38:22 +00:00
Guido van Rossum
896fc7ed4a
re-enable new.code(...) with new args
1995-09-30 17:01:02 +00:00
Guido van Rossum
b158909b45
\temporary 'fix' for brokenness
1995-07-28 16:44:53 +00:00
Guido van Rossum
cd938fc5a1
Made some more things static, and other cleanup for new naming scheme
1995-01-17 16:13:48 +00:00
Guido van Rossum
37431fbbd0
initmodule3 -> initmodule3
1995-01-09 17:49:26 +00:00
Guido van Rossum
f9888eb2fb
totally revamped
1995-01-07 11:50:36 +00:00
Guido van Rossum
5e8e8327f8
don't use backslashes for continuation lines
1994-11-10 22:49:52 +00:00
Guido van Rossum
34162a123a
Added some new modules
1994-05-23 12:37:57 +00:00