Git Product home page Git Product logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024

Original comment by pyscripter on 3 Apr 2007 at 1:18

  • Changed state: Accepted

from pyscripter.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Works correctly with remote engines.  Will be fixed for the internal engine.

Original comment by pyscripter on 8 Apr 2007 at 1:55

  • Changed state: Verified

from pyscripter.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024

Original comment by pyscripter on 8 Apr 2007 at 11:17

  • Changed state: Accepted

from pyscripter.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
This seems to be fixed in 1.8.5.

Original comment by [email protected] on 24 Apr 2007 at 4:35

from pyscripter.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
It still happens to me with the internal debugger.  It seems that this a Python 
bdb
issue.  For example PythonWin has the same problem.

Original comment by pyscripter on 3 May 2007 at 7:11

from pyscripter.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Resolution.  Use remote debugger.  Cannot fix.

Original comment by pyscripter on 3 May 2007 at 7:13

  • Changed state: Wont-do

from pyscripter.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
I think this is a fixable problem, because I don't believe it happens in the 
Wingware
Python debugger. In fact, I installed and used Wingware to identify the bug here
since I couldn't debug in PyScripter.

Original comment by [email protected] on 4 May 2007 at 6:06

from pyscripter.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 3, 2024
Why did you have to use Wing since the PyScripter remote engine should do just 
fine?

I did some more investigation and here are the findings:
Interestingly, the following code seems to work well when debugging with the 
internal
engine:
def f():
    a = (a for a in ())
    del a
    print "hey"

f()


Then I tried to use the standard Python Interpeter and pdb.
So I have the following modules in a directory:
a) module2.py
a = (a for a in ())
del a
print "hey"

b) module3.py
def f():
    import module2

I start python.exe from the same directory as the above modules and here is the
commands issued and the results I got:
==============================================================================
C:\Temp>"c:\Program Files\Python25\python"
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import module3
>>> import pdb
>>> pdb.run('module3.f()')
> <string>(1)<module>()
(Pdb) s
--Call--
> c:\temp\module3.py(1)f()
-> def f():
(Pdb) s
> c:\temp\module3.py(2)f()
-> import module2
(Pdb) s
--Call--
> c:\temp\module2.py(1)<module>()
-> a = (a for a in ())
(Pdb) s
> c:\temp\module2.py(1)<module>()
-> a = (a for a in ())
(Pdb) s
> c:\temp\module2.py(2)<module>()
-> del a
(Pdb) s
--Call--
c:\Program Files\Python25\lib\bdb.py:318: RuntimeWarning: tp_compare didn't retu
rn -1 or -2 for exception
  i = max(0, len(stack) - 1)
hey
>>>
================================================================================
=

So the standard Python interpreter and pdb fails on the above script.  This is 
why I
was saying that this is not a PyScripter problem.  Moreover,if you google on
"RuntimeWarning: tp_compare" you will see that this is a recurring problem 
affecting
many python modules.

As a conclusion until this is fixed in Python use the remote Python engine in 
Pyscripter.



Original comment by pyscripter on 5 May 2007 at 12:16

from pyscripter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.