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
be0a8a60
Kaydet (Commit)
be0a8a60
authored
Eyl 10, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added bastion and (dummy) rexec docs
üst
c05797dd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
89 additions
and
1 deletion
+89
-1
Makefile
Doc/Makefile
+1
-1
lib.tex
Doc/lib.tex
+2
-0
lib.tex
Doc/lib/lib.tex
+2
-0
libbastion.tex
Doc/lib/libbastion.tex
+37
-0
librexec.tex
Doc/lib/librexec.tex
+5
-0
libbastion.tex
Doc/libbastion.tex
+37
-0
librexec.tex
Doc/librexec.tex
+5
-0
No files found.
Doc/Makefile
Dosyayı görüntüle @
be0a8a60
...
@@ -127,7 +127,7 @@ LIBFILES = lib.tex \
...
@@ -127,7 +127,7 @@ LIBFILES = lib.tex \
libmacfs.tex libmacos.tex libmacostools.tex libmactcp.tex
\
libmacfs.tex libmacos.tex libmacostools.tex libmactcp.tex
\
libmacspeech.tex libmacui.tex libstdwin.tex libsgi.tex libal.tex
\
libmacspeech.tex libmacui.tex libstdwin.tex libsgi.tex libal.tex
\
libcd.tex libfl.tex libfm.tex libgl.tex libimgfile.tex libsun.tex
\
libcd.tex libfl.tex libfm.tex libgl.tex libimgfile.tex libsun.tex
\
libxdrlib.tex libimghdr.tex
libxdrlib.tex libimghdr.tex
librexec.tex libbastion.tex
# Library document
# Library document
lib.dvi
:
$(LIBFILES)
lib.dvi
:
$(LIBFILES)
...
...
Doc/lib.tex
Dosyayı görüntüle @
be0a8a60
...
@@ -83,6 +83,8 @@ to Python and how to embed it in other applications.
...
@@ -83,6 +83,8 @@ to Python and how to embed it in other applications.
\input
{
libcopy
}
\input
{
libcopy
}
\input
{
libmarshal
}
\input
{
libmarshal
}
\input
{
libimp
}
\input
{
libimp
}
\input
{
librexec
}
\input
{
libbastion
}
\input
{
libparser
}
\input
{
libparser
}
\input
{
libbltin
}
% really __builtin__
\input
{
libbltin
}
% really __builtin__
\input
{
libmain
}
% really __main__
\input
{
libmain
}
% really __main__
...
...
Doc/lib/lib.tex
Dosyayı görüntüle @
be0a8a60
...
@@ -83,6 +83,8 @@ to Python and how to embed it in other applications.
...
@@ -83,6 +83,8 @@ to Python and how to embed it in other applications.
\input
{
libcopy
}
\input
{
libcopy
}
\input
{
libmarshal
}
\input
{
libmarshal
}
\input
{
libimp
}
\input
{
libimp
}
\input
{
librexec
}
\input
{
libbastion
}
\input
{
libparser
}
\input
{
libparser
}
\input
{
libbltin
}
% really __builtin__
\input
{
libbltin
}
% really __builtin__
\input
{
libmain
}
% really __main__
\input
{
libmain
}
% really __main__
...
...
Doc/lib/libbastion.tex
0 → 100644
Dosyayı görüntüle @
be0a8a60
\section
{
Standard Module
\sectcode
{
Bastion
}}
\stmodindex
{
Bastion
}
\renewcommand
{
\indexsubitem
}{
(in module Bastion)
}
% I'm concerned that the word 'bastion' won't be understood by people
% for whom English is a second language, making the module name
% somewhat mysterious. Thus, the brief definition... --amk
According to the dictionary, a bastion is ``a fortified area or
position'', or ``something that is considered a stronghold.'' It's a
suitable name for this module, which provides a way to forbid access
to certain attributes of an object. It must always be used with the
\code
{
rexec
}
module, in order to allow restricted-mode programs access
to certain safe attributes of an object, while denying access to
other, unsafe attributes.
% I've punted on the issue of documenting keyword arguments for now.
\begin{funcdesc}
{
Bastion
}{
object
\optional
{
\,
filter
\,
name
\,
class
}}
Protect the class instance
\var
{
object
}
, returning a bastion for the
object. Any attempt to access one of the object's attributes will
have to be approved by the
\var
{
filter
}
function; if the access is
denied an AttributeError exception will be raised.
If present,
\var
{
filter
}
must be a function that accepts a string
containing an attribute name, and returns true if access to that
attribute will be permitted; if
\var
{
filter
}
returns false, the access
is denied. The default filter denies access to any function beginning
with an underscore (
\code
{_}
). The bastion's string representation
will be
\code
{
<Bastion for
\var
{
name
}
>
}
if a value for
\var
{
name
}
is provided; otherwise,
\code
{
repr(
\var
{
object
}
)
}
will be used.
\var
{
class
}
, if present, would be a subclass of
\code
{
BastionClass
}
;
see the code in
\file
{
bastion.py
}
for the details. Overriding the
default
\code
{
BastionClass
}
will rarely be required.
\end{funcdesc}
Doc/lib/librexec.tex
0 → 100644
Dosyayı görüntüle @
be0a8a60
\section
{
Standard Module
\sectcode
{
rexec
}}
\stmodindex
{
rexec
}
\renewcommand
{
\indexsubitem
}{
(in module rexec)
}
XXX To be provided.
Doc/libbastion.tex
0 → 100644
Dosyayı görüntüle @
be0a8a60
\section
{
Standard Module
\sectcode
{
Bastion
}}
\stmodindex
{
Bastion
}
\renewcommand
{
\indexsubitem
}{
(in module Bastion)
}
% I'm concerned that the word 'bastion' won't be understood by people
% for whom English is a second language, making the module name
% somewhat mysterious. Thus, the brief definition... --amk
According to the dictionary, a bastion is ``a fortified area or
position'', or ``something that is considered a stronghold.'' It's a
suitable name for this module, which provides a way to forbid access
to certain attributes of an object. It must always be used with the
\code
{
rexec
}
module, in order to allow restricted-mode programs access
to certain safe attributes of an object, while denying access to
other, unsafe attributes.
% I've punted on the issue of documenting keyword arguments for now.
\begin{funcdesc}
{
Bastion
}{
object
\optional
{
\,
filter
\,
name
\,
class
}}
Protect the class instance
\var
{
object
}
, returning a bastion for the
object. Any attempt to access one of the object's attributes will
have to be approved by the
\var
{
filter
}
function; if the access is
denied an AttributeError exception will be raised.
If present,
\var
{
filter
}
must be a function that accepts a string
containing an attribute name, and returns true if access to that
attribute will be permitted; if
\var
{
filter
}
returns false, the access
is denied. The default filter denies access to any function beginning
with an underscore (
\code
{_}
). The bastion's string representation
will be
\code
{
<Bastion for
\var
{
name
}
>
}
if a value for
\var
{
name
}
is provided; otherwise,
\code
{
repr(
\var
{
object
}
)
}
will be used.
\var
{
class
}
, if present, would be a subclass of
\code
{
BastionClass
}
;
see the code in
\file
{
bastion.py
}
for the details. Overriding the
default
\code
{
BastionClass
}
will rarely be required.
\end{funcdesc}
Doc/librexec.tex
0 → 100644
Dosyayı görüntüle @
be0a8a60
\section
{
Standard Module
\sectcode
{
rexec
}}
\stmodindex
{
rexec
}
\renewcommand
{
\indexsubitem
}{
(in module rexec)
}
XXX To be provided.
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