Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
649e8c1f
Commit
649e8c1f
authored
Oct 19, 1998
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ArabictoRoman(): Removed, since it wasn't used anywhere.
parent
f61618c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
Doc/perl/python.perl
Doc/perl/python.perl
+0
-23
No files found.
Doc/perl/python.perl
View file @
649e8c1f
...
...
@@ -32,29 +32,6 @@ sub swallow_newline{
s/[\n]?//o
;
}
sub
ArabictoRoman
{
# Written by Robert Donohue <donahue@cfassp48.harvard.edu>,
# fixed by Fred Drake <fdrake@acm.org>,
# kept around in case it becomes useful.
my
$a
=
@_
;
my
(
$b
,
@c
,
$i
);
my
(
@D0
,
@D1
,
@D2
);
@D0
=
("",
"
I
",
"
II
",
"
III
",
"
IV
",
"
V
",
"
VI
",
"
VII
",
"
VIII
",
"
IX
");
@D1
=
("",
"
X
",
"
XX
",
"
XXX
",
"
XL
",
"
L
",
"
LX
",
"
LXX
",
"
LXXX
",
"
XC
");
@D2
=
("",
"
C
",
"
CC
",
"
CCC
",
"
CD
",
"
D
",
"
DC
",
"
DCC
",
"
DCCC
",
"
CM
");
$b
=
$a
;
$i
=
0
;
while
(
$b
>
0
)
{
$c
[
$i
]
=
(
$b
%
10
);
$b
-=
(
$b
%
10
);
$b
/=
10
;
$i
++
;
}
return
$D2
[
$c
[
2
]]
.
$D1
[
$c
[
1
]]
.
$D0
[
$c
[
0
]];
}
# This is a fairly simple hack; it supports \let when it is used to create
# (or redefine) a macro to exactly be some other macro: \let\newname=\oldname.
...
...
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