/usr/share/doc/texlive-doc/generic/c-pascal/prog/fib.py is in texlive-generic-extra 2013.20140215-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # Just a little test program
from sys import stderr
class FibSeries:
"""Returns all the elements of Fibonacci series up to a given number.
Requires one parameter (the number we're going up to)."""
def __init__(self,number):
self.series=[1,1]
a,b=1,1
while b<number:
a,b=b,a+b
if b<number: self.series.append(b)
def writeout(self):
cnt=0
while cnt<len(self.series):
stderr.write(str(self.series[cnt])+" ")
cnt+=1
stderr.write("\n")
meine = FibSeries(115)
meine.writeout()
|