FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
MagicPython/test/strings/format7.py at master · MagicStack/MagicPython · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
MagicStack
/
MagicPython
Public
Notifications
You must be signed in to change notification settings
Fork
98
Star
1.4k
Code
Issues
65
Pull requests
5
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
MagicPython
/
test
/
strings
/
format7.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (31 loc) · 2.22 KB
Breadcrumbs
MagicPython
/
test
/
strings
/
format7.py
Copy path
File metadata and controls
34 lines (31 loc) · 2.22 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# XXX we have to highlight '% o' here, as it is a valid python
# format spec. Otherwise, it would be hard to spot an error in
# the code below.
a
=
'12% of %s'
%
(
'name'
,)
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
:
comment
.
line
.
number
-
sign
.
python
,
source
.
python
XXX
:
comment
.
line
.
number
-
sign
.
python
,
keyword
.
codetag
.
notation
.
python
,
source
.
python
we
have
to
highlight
'% o'
here
,
as
it
is
a
valid
python
:
comment
.
line
.
number
-
sign
.
python
,
source
.
python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
format
spec
.
Otherwise
,
it
would
be
hard
to
spot
an
error
in
:
comment
.
line
.
number
-
sign
.
python
,
source
.
python
# : comment.line.number-sign.python, punctuation.definition.comment.python, source.python
the
code
below
. :
comment
.
line
.
number
-
sign
.
python
,
source
.
python
a
:
source
.
python
:
source
.
python
=
:
keyword
.
operator
.
assignment
.
python
,
source
.
python
:
source
.
python
' :
punctuation
.
definition
.
string
.
begin
.
python
,
source
.
python
,
string
.
quoted
.
single
.
python
12
:
source
.
python
,
string
.
quoted
.
single
.
python
%
o
:
constant
.
character
.
format
.
placeholder
.
other
.
python
,
meta
.
format
.
percent
.
python
,
source
.
python
,
string
.
quoted
.
single
.
python
f
:
source
.
python
,
string
.
quoted
.
single
.
python
%
s
:
constant
.
character
.
format
.
placeholder
.
other
.
python
,
meta
.
format
.
percent
.
python
,
source
.
python
,
string
.
quoted
.
single
.
python
' :
punctuation
.
definition
.
string
.
end
.
python
,
source
.
python
,
string
.
quoted
.
single
.
python
:
source
.
python
%
:
keyword
.
operator
.
arithmetic
.
python
,
source
.
python
:
source
.
python
( :
punctuation
.
parenthesis
.
begin
.
python
,
source
.
python
' :
punctuation
.
definition
.
string
.
begin
.
python
,
source
.
python
,
string
.
quoted
.
single
.
python
name
:
source
.
python
,
string
.
quoted
.
single
.
python
' :
punctuation
.
definition
.
string
.
end
.
python
,
source
.
python
,
string
.
quoted
.
single
.
python
, :
punctuation
.
separator
.
element
.
python
,
source
.
python
) :
punctuation
.
parenthesis
.
end
.
python
,
source
.
python
Back
|
FazBrowse Home
|
New Git URL