Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

now works with python3 #13

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pythonfasterway.cf
pythonfasterway.appspot.com
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ Python--Faster-Way

Python: Faster Way

http://pythonfasterway.cf/

http://zokis.github.io/Python--Faster-Way/

https://pythonfasterway.appspot.com/

Creating a new test:
--------------------
Expand All @@ -21,4 +18,4 @@ To generate the Page run:
```
python gen_page.py
```
this process can take
this process can take some time.
8 changes: 4 additions & 4 deletions gen_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
def main():
def gen_tests():
for Tx, group_x_dir in enumerate(test_path.walk(filter=DIRS), 1):
print "Gen Test: %s" % Tx
print("Gen Test: %s" % Tx)
group = []
for tx, test_x_file in enumerate(group_x_dir.walk(filter=FILES), 1):
print " Sub Test: %s" % tx
print(" Sub Test: %s" % tx)
file_content = test_x_file.read_file()

dis_test_content = dis_template % file_content
Expand All @@ -42,10 +42,10 @@ def gen_tests():
code = compile(file_content, '<string>', 'exec')

f = {'number': None}
exec code in f
exec(code, f)
number = f['number'] or NUMBER
group.append({
'dis': out,
'dis': out.decode('utf8'),
'file_content': file_content,
'number': number,
'timeit_min': min(timeit.repeat(f['a'], number=number)),
Expand Down
Loading