asaf ebgi <asafebgi(a)gmail.com> writes:
> Well, I am actually inspecting code from the tastypie django library -
> -So there is lots of code --But an example is below:
> In the Variables List:
> instance: User
> self: ForeignRelatedObjectsDescriptor
> | .related: RelatedObject
> superclass: <class 'django.db.models.manager.Manager'>
> (self is expanded)
> in the console I type:
> ['__class__', '__delattr__', '__dict__', '__doc__', '__format__',
> '__get__', '__getattribute__', '__hash__', '__init__', '__module__',
> '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__set__',
> '__setattr__', '__sizeof__', '__str__', '__subclasshook__',
> '__weakref__', 'create_manager', 'delete_manager', 'related']
>>>> getattr(self, 'related')
> <RelatedObject: app:profile related to user>
> ('related' appears in the Variables list)
>>>> getattr(self, 'delete_manager')
> <bound method ForeignRelatedObjectsDescriptor.delete_manager of
> object at 0x1bdaed0>>
> ('delete_manager' does not appear in Variables list -- Neither does
Can you try and see if this is fixed in git?
Youssef Barhomi <youssef.barhomi(a)gmail.com> writes:
> I know that while debugging some python code you can switch to the python
> interpreter while typing `!` but it hides pudb and the source code as well.
> Would that be possible to show the pudb interface and iPython at the same
> time (and be able to jump in between them)?
> Thank you very much!!
> PS: I love pudb! I wish I could use it for C/CUDA debugging as well!
First off, thanks for the compliments! We've been thinking off and on
what it would take to be able to execute user code (including stuff you
type at the prompt) while inside the Pudb UI. See this bug:
Having that would make it feasible to bring a Python prompt into
Pudb. IPython on the other hand would be a bit of engineering on top of
that, because all the fancy things that make IPython valuable
(completion etc) would have to work, too. Personally, I think having a
built-in little shell window would already be quite helpful, so if I had
time at the moment, that's probably what I'd shoot for.
I know that while debugging some python code you can switch to the python
interpreter while typing `!` but it hides pudb and the source code as well.
Would that be possible to show the pudb interface and iPython at the same
time (and be able to jump in between them)?
Thank you very much!!
PS: I love pudb! I wish I could use it for C/CUDA debugging as well!
Youssef Barhomi, MSc, MEng.
Research Software Engineer at the CLPS department
T: +1 (617) 797 9929 | GMT -5:00