Comments (8)
Original comment by pyscripter
on 3 Apr 2007 at 1:18
- Changed state: Accepted
from pyscripter.
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.
Original comment by pyscripter
on 8 Apr 2007 at 11:17
- Changed state: Accepted
from pyscripter.
This seems to be fixed in 1.8.5.
Original comment by [email protected]
on 24 Apr 2007 at 4:35
from pyscripter.
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.
Resolution. Use remote debugger. Cannot fix.
Original comment by pyscripter
on 3 May 2007 at 7:13
- Changed state: Wont-do
from pyscripter.
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.
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)
- python 3.4 not compatable HOT 2
- Please add a zip file for registry-free installation for the 64-bit version HOT 1
- Is there a way to replace particular characters in a text file with a user input? HOT 1
- Support HOT 1
- Python version support HOT 1
- Not able to run PyScripter HOT 3
- UI and editor stuttering HOT 6
- Pyscripter becomes "Not responding" during running of a script HOT 1
- Evertime you run PyScripter, a new shortuct is created and the version increases by 1 HOT 1
- single # comment (the green font comments) OR user editor macro ability HOT 1
- Access Violation HOT 2
- Google Code is dying HOT 1
- PyScripter 2.5.3.0 DLL Hijacking HOT 5
- Code Explorer shows incorrect globals
- ImportError: No module named Tkinter
- Google Code is dying
- Please add support to a diff utility
- PyScripter 2.5.3 (64bit) not working with Python 3.4.3 (64bit) on Win10 Preview HOT 1
- Doesn't work with Python 3.4
- set $[SelectedDir] as working directory of external tool,does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyscripter.