-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
POC cythonizing of actions and util.
- Loading branch information
Showing
4 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
*.py[cod] | ||
*.py[co] | ||
|
||
# C extensions | ||
*.so | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# from .util cimport rudimentary_repr | ||
|
||
cdef class Action(object): | ||
cdef class Debugger(Action): | ||
cdef class Manhole(Action): | ||
cdef class ColorStreamAction(Action): | ||
cpdef str _safe_repr(self, object obj) | ||
cdef class CodePrinter(ColorStreamAction): | ||
cpdef str _safe_source(self, event) | ||
cpdef str _format_filename(self, event) | ||
cdef class CallPrinter(CodePrinter): | ||
cdef class VarsPrinter(ColorStreamAction): | ||
cpdef _iter_symbols(code) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cpdef str rudimentary_repr(object obj, int maxdepth=3) |