Jeremy Hylton
6492bf71da
SF patch 103589: Fix handling of cell vars that are either * or ** parameters.
...
(Nick Mathewson)
Remove to XXX comments
2001-02-09 22:55:26 +00:00
Jeremy Hylton
cb17ae8b19
Relax the rules for using 'from ... import *' and exec in the presence
...
of nested functions. Either is allowed in a function if it contains
no defs or lambdas or the defs and lambdas it contains have no free
variables. If a function is itself nested and has free variables,
either is illegal.
Revise the symtable to use a PySymtableEntryObject, which holds all
the revelent information for a scope, rather than using a bunch of
st_cur_XXX pointers in the symtable struct. The changes simplify the
internal management of the current symtable scope and of the stack.
Added new C source file: Python/symtable.c. (Does the Windows build
process need to be updated?)
As part of these changes, the initial _symtable module interface
introduced in 2.1a2 is replaced. A dictionary of
PySymtableEntryObjects are returned.
2001-02-09 22:22:18 +00:00
Tim Peters
670fa52698
Whitespace normalization.
2001-02-09 21:23:21 +00:00
Tim Peters
6b6b39e8b6
Nuke accurate but confusing and unhelpful comments about split vs splitfields.
2001-02-09 20:18:41 +00:00
Tim Peters
10fb386399
Whitespace normalization.
2001-02-09 20:17:14 +00:00
Tim Peters
658cba6706
Whitespace normalization.
2001-02-09 20:06:00 +00:00
Marc-André Lemburg
3c61c3525f
This modified version of a patch by Thomas Heller allows __import__
...
hooks to take over the Python import machinery at a very early stage
in the Python startup phase.
If there are still places in the Python interpreter which need to
bypass the __import__ hook, these places must now use
PyImport_ImportModuleEx() instead. So far no other places than in
the import mechanism itself have been identified.
2001-02-09 19:40:15 +00:00
Eric S. Raymond
dbbbaf2696
joinfields -> join.
2001-02-09 17:05:53 +00:00
Eric S. Raymond
e37340edf2
String method conversion.
2001-02-09 16:56:44 +00:00
Eric S. Raymond
dcd3a875a5
String method conversion.
2001-02-09 16:45:10 +00:00
Sjoerd Mullender
62f1a23ade
Fixed syntax error.
2001-02-09 16:34:24 +00:00
Eric S. Raymond
13b3ba4df3
splitfields -> split
2001-02-09 16:25:20 +00:00
Jack Jansen
add58f95cc
Added prototype for DlgObj_WhichDialog()
2001-02-09 15:59:18 +00:00
Jack Jansen
7e31f68bf1
Replaced touched(), which no longer seems to work under os9, with something using an appleevent to the finder. More expensive, but at least it works:-)
2001-02-09 15:58:34 +00:00
Jack Jansen
34f83b3f56
Added a few constants.
2001-02-09 15:57:53 +00:00
Jack Jansen
784c611053
Dialogs and there windows were still confused in some spots. Fixed.
2001-02-09 15:57:01 +00:00
Jack Jansen
def0d8da5a
Get rid of from ... import *
2001-02-09 15:56:19 +00:00
Guido van Rossum
cd90c20b62
Reindent a function that was somehow indented by 7 spaces. Also did a
...
spaces->tab conversion for fields added to struct compiling.
2001-02-09 15:06:42 +00:00
Marc-André Lemburg
85d6edfc83
Remove silly EMPTYSTRING global. Saves a global lookup.
2001-02-09 13:37:37 +00:00
Eric S. Raymond
b3acd3e4d3
String method conversion.
2001-02-09 12:20:51 +00:00
Eric S. Raymond
7e642e82d3
Eliminate use of string.whitespace and a string import with it.
...
Some of the characters (form feed, vertical tab) are not
legal continuation characters anyway, so this was wrong as
well as annoying.
2001-02-09 12:10:26 +00:00
Eric S. Raymond
83ff749827
String method conversion.
2001-02-09 12:03:45 +00:00
Eric S. Raymond
2846b0ab41
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 12:00:47 +00:00
Eric S. Raymond
fc170b1fd5
String method conversion.
2001-02-09 11:51:27 +00:00
Eric S. Raymond
d8c628bd59
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 11:46:37 +00:00
Eric S. Raymond
8b3cf58fa5
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 11:14:08 +00:00
Eric S. Raymond
b08b2d3166
String method conversion.
2001-02-09 11:10:16 +00:00
Eric S. Raymond
be9b507bdd
String method conversion.
2001-02-09 10:48:30 +00:00
Eric S. Raymond
be18552874
String method conversion.
2001-02-09 10:30:23 +00:00
Eric S. Raymond
c9838f9fcb
Test with an actual mbox caught a trivial error.
2001-02-09 10:28:34 +00:00
Eric S. Raymond
304b6a3225
Correction after translation test.
2001-02-09 10:26:06 +00:00
Eric S. Raymond
0c03cc203f
String method conversion.
2001-02-09 10:23:55 +00:00
Eric S. Raymond
bf97c9d87b
String method conversion.
2001-02-09 10:18:37 +00:00
Eric S. Raymond
8d87603e3e
Aha. We can remove he string import after all by using ValueError.
2001-02-09 10:14:53 +00:00
Eric S. Raymond
18af564bef
Use ValueError instead of string.atoi.error, since we've switched to
...
int().
2001-02-09 10:12:19 +00:00
Eric S. Raymond
19e6d6218e
String method conversion.
...
(This one was trivial -- no actual string. references in it!)
2001-02-09 10:10:02 +00:00
Eric S. Raymond
c95bf69fce
String method conversion.
2001-02-09 10:06:47 +00:00
Eric S. Raymond
7e9b4f58b6
String method conversion.
2001-02-09 09:59:10 +00:00
Marc-André Lemburg
9f8cdf58a2
Patches for AIX. Checked by Benjamin Collar.
2001-02-09 09:59:06 +00:00
Eric S. Raymond
db5ebc7bc9
String method conversion.
2001-02-09 09:48:45 +00:00
Eric S. Raymond
51cc3bcd1c
String method conversion. Added a trivial main to test it with.
2001-02-09 09:44:47 +00:00
Eric S. Raymond
ec3bbdef94
String method conversion.
2001-02-09 09:39:08 +00:00
Eric S. Raymond
92852ad9a4
Oops...that will teach me to hit ^C^C too fast. Test passed.
2001-02-09 09:21:01 +00:00
Eric S. Raymond
66d9919cab
String method conversion.
2001-02-09 09:19:27 +00:00
Eric S. Raymond
ee5e61d3bc
String method conversion.
2001-02-09 09:10:35 +00:00
Eric S. Raymond
6b71e747b1
String method conversion.
2001-02-09 08:56:30 +00:00
Eric S. Raymond
141971f22a
String method conversion.
2001-02-09 08:40:40 +00:00
Eric S. Raymond
630e69cd89
String method conversion.
2001-02-09 08:33:43 +00:00
Eric S. Raymond
373c55e510
String method conversion.
2001-02-09 08:25:29 +00:00
Eric S. Raymond
9b93c5f248
String method conversion.
2001-02-09 07:58:53 +00:00