Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
0a94dfca
Kaydet (Commit)
0a94dfca
authored
Agu 20, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Erase all memory of the access statement
üst
25b361fc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
76 deletions
+2
-76
ref2.tex
Doc/ref/ref2.tex
+1
-1
ref6.tex
Doc/ref/ref6.tex
+0
-37
ref2.tex
Doc/ref2.tex
+1
-1
ref6.tex
Doc/ref6.tex
+0
-37
No files found.
Doc/ref/ref2.tex
Dosyayı görüntüle @
0a94dfca
...
@@ -181,12 +181,12 @@ identifiers. They must be spelled exactly as written here:
...
@@ -181,12 +181,12 @@ identifiers. They must be spelled exactly as written here:
\index
{
reserved word
}
\index
{
reserved word
}
\begin{verbatim}
\begin{verbatim}
access del from lambda return
and elif global not try
and elif global not try
break else if or while
break else if or while
class except import pass
class except import pass
continue finally in print
continue finally in print
def for is raise
def for is raise
del from lambda return
\end{verbatim}
\end{verbatim}
% When adding keywords, pipe it through keywords.py for reformatting
% When adding keywords, pipe it through keywords.py for reformatting
...
...
Doc/ref/ref6.tex
Dosyayı görüntüle @
0a94dfca
...
@@ -17,7 +17,6 @@ simple_stmt: expression_stmt
...
@@ -17,7 +17,6 @@ simple_stmt: expression_stmt
| continue
_
stmt
| continue
_
stmt
| import
_
stmt
| import
_
stmt
| global
_
stmt
| global
_
stmt
| access
_
stmt
| exec
_
stmt
| exec
_
stmt
\end{verbatim}
\end{verbatim}
...
@@ -511,39 +510,3 @@ containing the \verb@exec@ statement. The same applies to the
...
@@ -511,39 +510,3 @@ containing the \verb@exec@ statement. The same applies to the
\ttindex
{
eval
}
\ttindex
{
eval
}
\ttindex
{
execfile
}
\ttindex
{
execfile
}
\ttindex
{
compile
}
\ttindex
{
compile
}
\section
{
The
{
\tt
access
}
statement
}
\label
{
access
}
\stindex
{
access
}
\begin{verbatim}
access
_
stmt: "access" ...
\end{verbatim}
This statement is obsolete. It no longer generates any code; in the
future,
\verb
@
access
@
will no longer be a reserved word.
\section
{
The
{
\tt
exec
}
statement
}
\label
{
exec
}
\stindex
{
exec
}
\begin{verbatim}
exec
_
stmt: "exec" expression ["in" expression ["," expression]]
\end{verbatim}
This statement supports dynamic execution of Python code. The first
expression should evaluate to either a string, an open file object, or
a code object. If it is a string, the string is parsed as a suite of
Python statements which is then executed (unless a syntax error
occurs). If it is an open file, the file is parsed until EOF and
executed. If it is a code object, it is simply executed.
In all cases, if the optional parts are omitted, the code is executed
in the current scope. If only the first expression after
\verb
@
in
@
is
specified, it should be a dictionary, which will be used for both the
global and the local variables. If two expressions are given, both
must be dictionaries and they are used for the global and local
variables, respectively.
Hints: dynamic evaluation of expressions is supported by the built-in
function
\verb
@
eval()
@
. The built-in functions
\verb
@
globals()
@
and
\verb
@
locals()
@
return the current global and local dictionary,
respectively, which may be useful to pass around for use by
\verb
@
exec
@
.
Doc/ref2.tex
Dosyayı görüntüle @
0a94dfca
...
@@ -181,12 +181,12 @@ identifiers. They must be spelled exactly as written here:
...
@@ -181,12 +181,12 @@ identifiers. They must be spelled exactly as written here:
\index
{
reserved word
}
\index
{
reserved word
}
\begin{verbatim}
\begin{verbatim}
access del from lambda return
and elif global not try
and elif global not try
break else if or while
break else if or while
class except import pass
class except import pass
continue finally in print
continue finally in print
def for is raise
def for is raise
del from lambda return
\end{verbatim}
\end{verbatim}
% When adding keywords, pipe it through keywords.py for reformatting
% When adding keywords, pipe it through keywords.py for reformatting
...
...
Doc/ref6.tex
Dosyayı görüntüle @
0a94dfca
...
@@ -17,7 +17,6 @@ simple_stmt: expression_stmt
...
@@ -17,7 +17,6 @@ simple_stmt: expression_stmt
| continue
_
stmt
| continue
_
stmt
| import
_
stmt
| import
_
stmt
| global
_
stmt
| global
_
stmt
| access
_
stmt
| exec
_
stmt
| exec
_
stmt
\end{verbatim}
\end{verbatim}
...
@@ -511,39 +510,3 @@ containing the \verb@exec@ statement. The same applies to the
...
@@ -511,39 +510,3 @@ containing the \verb@exec@ statement. The same applies to the
\ttindex
{
eval
}
\ttindex
{
eval
}
\ttindex
{
execfile
}
\ttindex
{
execfile
}
\ttindex
{
compile
}
\ttindex
{
compile
}
\section
{
The
{
\tt
access
}
statement
}
\label
{
access
}
\stindex
{
access
}
\begin{verbatim}
access
_
stmt: "access" ...
\end{verbatim}
This statement is obsolete. It no longer generates any code; in the
future,
\verb
@
access
@
will no longer be a reserved word.
\section
{
The
{
\tt
exec
}
statement
}
\label
{
exec
}
\stindex
{
exec
}
\begin{verbatim}
exec
_
stmt: "exec" expression ["in" expression ["," expression]]
\end{verbatim}
This statement supports dynamic execution of Python code. The first
expression should evaluate to either a string, an open file object, or
a code object. If it is a string, the string is parsed as a suite of
Python statements which is then executed (unless a syntax error
occurs). If it is an open file, the file is parsed until EOF and
executed. If it is a code object, it is simply executed.
In all cases, if the optional parts are omitted, the code is executed
in the current scope. If only the first expression after
\verb
@
in
@
is
specified, it should be a dictionary, which will be used for both the
global and the local variables. If two expressions are given, both
must be dictionaries and they are used for the global and local
variables, respectively.
Hints: dynamic evaluation of expressions is supported by the built-in
function
\verb
@
eval()
@
. The built-in functions
\verb
@
globals()
@
and
\verb
@
locals()
@
return the current global and local dictionary,
respectively, which may be useful to pass around for use by
\verb
@
exec
@
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment