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

First bunch of fixes to make debug-toolbar work with Python 3 #365

Closed
wants to merge 1 commit into from
Closed

Conversation

bkabrda
Copy link

@bkabrda bkabrda commented Mar 22, 2013

Hi,
I made these initial fixes to start porting debug-toolbar to Python 3. These are the "easy" ones.
The big problem will be the replace_call decorator from utils.tracking, cause you can no longer get the defining class from method (although you can get its name by qualname). So I'd advise changing the signature of replace_call to replace_call(klass, func), where klass will be the defining class(/module) itself and func will be string name of function. I'll do the work, but I want to make sure you'd accept such a change.

Thanks!

@jezdez
Copy link
Member

jezdez commented Mar 25, 2013

So, yeah. please use six (https://pypi.python.org/pypi/six) as the compatibility layer. Although it's included in Django we can't rely on it since we want to support the last Django versions, too.

@bkabrda
Copy link
Author

bkabrda commented Mar 27, 2013

Turns out someone was faster than me, see PR #366 (although that one utilizes six from django...). Still, the problem with replace_call isn't solved there. Any objections against my proposal above?

@jezdez
Copy link
Member

jezdez commented Apr 23, 2013

Sorry again, but I'm closing this in favor of #373.

@jezdez jezdez closed this Apr 23, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants