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
31f3db39
Kaydet (Commit)
31f3db39
authored
Agu 06, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix the markup so it doesn't break formatting.
üst
2d702465
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ref2.tex
Doc/ref/ref2.tex
+4
-4
No files found.
Doc/ref/ref2.tex
Dosyayı görüntüle @
31f3db39
...
@@ -75,7 +75,7 @@ Comments are ignored by the syntax; they are not tokens.
...
@@ -75,7 +75,7 @@ Comments are ignored by the syntax; they are not tokens.
\subsection
{
Encoding declarations
\label
{
encodings
}}
\subsection
{
Encoding declarations
\label
{
encodings
}}
If a comment in the first or second line of the Python script matches
If a comment in the first or second line of the Python script matches
the regular expression
"coding[=:]
\s*
([
\w
-
_
.]+)"
, this comment is
the regular expression
\regexp
{
coding[=:]
\e
s*([
\e
w-
_
.]+)
}
, this comment is
processed as an encoding declaration; the first group of this
processed as an encoding declaration; the first group of this
expression names the encoding of the source code file. The recommended
expression names the encoding of the source code file. The recommended
forms of this expression are
forms of this expression are
...
@@ -91,9 +91,9 @@ which is recognized also by GNU Emacs, and
...
@@ -91,9 +91,9 @@ which is recognized also by GNU Emacs, and
\end{verbatim}
\end{verbatim}
which is recognized by Bram Moolenar's VIM. In addition, if the first
which is recognized by Bram Moolenar's VIM. In addition, if the first
bytes of the file are the UTF-8
signature (
$
'
\xef\xbb\xbf
'
$
), the
bytes of the file are the UTF-8
byte-order mark
declared file encoding is UTF-8 (this is supported, among others, by
(
\code
{
'
\e
xef
\e
xbb
\e
xbf'
}
), the declared file encoding is UTF-8
Microsoft's notepad.exe
).
(this is supported, among others, by Microsoft's
\program
{
notepad
}
).
If an encoding is declared, the encoding name must be recognized by
If an encoding is declared, the encoding name must be recognized by
Python.
% XXX there should be a list of supported encodings.
Python.
% XXX there should be a list of supported encodings.
...
...
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