Staging
v0.5.1
https://github.com/python/cpython
Revision aca53fc9383d707d50e79618dff09d3b840e851b authored by Raymond Hettinger on 05 October 2002, 06:12:08 UTC, committed by Raymond Hettinger on 05 October 2002, 06:12:08 UTC

Try to improve the explanation of the "raise" statement and how its arguments
are interpreted.
This closes SF bug #532467.


Fix Typo.


Reword explanation of global statement since an undeclared global is a
free variable and is subject to those rules.


Note the sole case in which the ban on "from ... import *" within a
function is enforced.


Remove the following restriction:
    Names bound by import statements may not occur in global
    statements in the same scope.
Why not?



Note that it is illegal to delete a cell variable.
Note that deleteing an unbound local will raise a NameError.
1 parent 66d8b27
History
Tip revision: aca53fc9383d707d50e79618dff09d3b840e851b authored by Raymond Hettinger on 05 October 2002, 06:12:08 UTC
Backport 1.54 1.53 1.52 1.51 1.50 and 1.49:
Tip revision: aca53fc
File Mode Size
.cvsignore -rw-r--r-- 17 bytes
atof.c -rw-r--r-- 815 bytes
bltinmodule.c -rw-r--r-- 46.8 KB
ceval.c -rw-r--r-- 83.5 KB
codecs.c -rw-r--r-- 10.2 KB
compile.c -rw-r--r-- 126.5 KB
dup2.c -rw-r--r-- 685 bytes
dynload_aix.c -rw-r--r-- 5.3 KB
dynload_beos.c -rw-r--r-- 6.3 KB
dynload_dl.c -rw-r--r-- 561 bytes
dynload_hpux.c -rw-r--r-- 1.3 KB
dynload_mac.c -rw-r--r-- 3.3 KB
dynload_next.c -rw-r--r-- 4.5 KB
dynload_os2.c -rw-r--r-- 1020 bytes
dynload_shlib.c -rw-r--r-- 2.1 KB
dynload_stub.c -rw-r--r-- 202 bytes
dynload_win.c -rw-r--r-- 7.5 KB
errors.c -rw-r--r-- 14.7 KB
exceptions.c -rw-r--r-- 30.0 KB
fmod.c -rw-r--r-- 435 bytes
frozen.c -rw-r--r-- 1.2 KB
frozenmain.c -rw-r--r-- 1.3 KB
future.c -rw-r--r-- 6.0 KB
getargs.c -rw-r--r-- 32.9 KB
getcompiler.c -rw-r--r-- 366 bytes
getcopyright.c -rw-r--r-- 504 bytes
getcwd.c -rw-r--r-- 1.3 KB
getmtime.c -rw-r--r-- 318 bytes
getopt.c -rw-r--r-- 2.3 KB
getplatform.c -rw-r--r-- 130 bytes
getversion.c -rw-r--r-- 290 bytes
graminit.c -rw-r--r-- 29.5 KB
hypot.c -rw-r--r-- 282 bytes
import.c -rw-r--r-- 60.7 KB
importdl.c -rw-r--r-- 2.0 KB
importdl.h -rw-r--r-- 951 bytes
mactoolboxglue.c -rw-r--r-- 13.9 KB
marshal.c -rw-r--r-- 17.9 KB
memmove.c -rw-r--r-- 439 bytes
modsupport.c -rw-r--r-- 10.0 KB
mysnprintf.c -rw-r--r-- 2.6 KB
mystrtoul.c -rw-r--r-- 3.1 KB
pyfpe.c -rw-r--r-- 623 bytes
pystate.c -rw-r--r-- 6.1 KB
pythonrun.c -rw-r--r-- 33.8 KB
sigcheck.c -rw-r--r-- 529 bytes
strdup.c -rw-r--r-- 256 bytes
strerror.c -rw-r--r-- 485 bytes
strtod.c -rw-r--r-- 5.1 KB
structmember.c -rw-r--r-- 5.5 KB
symtable.c -rw-r--r-- 4.4 KB
sysmodule.c -rw-r--r-- 28.0 KB
thread.c -rw-r--r-- 2.3 KB
thread_beos.h -rw-r--r-- 7.5 KB
thread_cthread.h -rw-r--r-- 3.6 KB
thread_foobar.h -rw-r--r-- 2.5 KB
thread_lwp.h -rw-r--r-- 3.8 KB
thread_nt.h -rw-r--r-- 9.6 KB
thread_os2.h -rw-r--r-- 4.5 KB
thread_pth.h -rw-r--r-- 7.1 KB
thread_pthread.h -rw-r--r-- 12.3 KB
thread_sgi.h -rw-r--r-- 11.8 KB
thread_solaris.h -rw-r--r-- 4.3 KB
thread_wince.h -rw-r--r-- 4.0 KB
traceback.c -rw-r--r-- 6.5 KB

back to top