beeware / bugjar

A interactive graphical debugger for Python code.
BSD 3-Clause "New" or "Revised" License
249 stars 31 forks source link

Bugjar support for Python 2.6 #9

Open freakboy3742 opened 10 years ago

freakboy3742 commented 10 years ago

Via @beatthem on #8, Bugjar apparently doesn't run on Python 2.6 due to changes in the Bdb API - specifically the 'skip' parameter.

beatthem commented 10 years ago

also I have Tcl error "Unmatched braces" (http://bugs.python.org/issue15861) in python 2.6 Because of not escaping braces in tcl code

for example bugjar path/to/autopep8.py script_name.py

freakboy3742 commented 10 years ago

Are you able to narrow down what Tcl identifier has the unmatched braces? It sounds like we're going to need to include some manual escaping somewhere (since this won't ever be fixed in 2.6)

beatthem commented 10 years ago

As I see, Bugjar breaks on inspecting this variable from autopep8.py

SHORTEN_OPERATOR_GROUPS = frozenset([
    frozenset([',']),
    frozenset(['%']),
    frozenset([',', '(', '[', '{']),
    frozenset([',', '(', '[', '{', '%', '+', '-', '*', '/', '//']),
])