Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
grumpy
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
grumpy
Commits
34d8ed8e
Commit
34d8ed8e
authored
May 10, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X pystone: Manually print traceback (grumpy only prints exception without traceback)
parent
45635ded
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
422 additions
and
379 deletions
+422
-379
pystone
pystone
+3
-0
pystone.go
pystone.go
+414
-378
pystone.py
pystone.py
+5
-1
No files found.
pystone
0 → 100755
View file @
34d8ed8e
#!/bin/sh -e
grumpc pystone.py
>
pystone.go
&&
go run pystone.go
pystone.go
View file @
34d8ed8e
This diff is collapsed.
Click to expand it.
pystone.py
View file @
34d8ed8e
...
@@ -37,6 +37,7 @@ LOOPS = 50000
...
@@ -37,6 +37,7 @@ LOOPS = 50000
#from time import clock
#from time import clock
import
time
import
time
clock
=
time
.
clock
clock
=
time
.
clock
import
traceback
__version__
=
"1.1"
__version__
=
"1.1"
...
@@ -269,4 +270,7 @@ if __name__ == '__main__':
...
@@ -269,4 +270,7 @@ if __name__ == '__main__':
error
(
"Invalid argument %r;"
%
sys
.
argv
[
1
])
error
(
"Invalid argument %r;"
%
sys
.
argv
[
1
])
else
:
else
:
loops
=
LOOPS
loops
=
LOOPS
main
(
loops
)
try
:
main
(
loops
)
except
:
traceback
.
print_exc
()
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