Python-spe-users digest, Vol 1 #51 - 4 msgs

python-spe-users-request-tdrK/[email protected] Wed, 28 Dec 2005 12:00:33 +0100
Newsgroups gmane.comp.python.spe.user
Message-ID <[email protected]>
Send Python-spe-users mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.berlios.de/mailman/listinfo/python-spe-users
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-spe-users digest..."


_______________________________________________
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html
http://pythonide.stani.be/blog/sm_donate _______________________________________________


Today's Topics:

   1. SPE 0.8.1c - congratulations and tracebacks (Fuzzyman)
   2. Weird Problem with Shift-Ctrl-E (Fuzzyman)
   3. Indentaion Issue (Fuzzyman)
   4. Backwards-and-Forwards (Fuzzyman)

--__--__--

Message: 1
Date: Wed, 28 Dec 2005 09:45:40 +0000
From: Fuzzyman <[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: [spe-users] SPE 0.8.1c - congratulations and tracebacks
Reply-To: [email protected]

Hello Stani,

First off, congratulations on 0.8.1c. I very much like the new look and
the error highlighting. *Very* nice.

Secondly - I've had a few tracebacks. I'm reporting them here in case
they are helpful. I can't tell you exactly what I was doing to cause
them I'm afraid - they appeared in the shell, during 'normal operations'.


Seen several times :

Traceback (most recent call last):
  File "C:\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_core.py",
line 13266, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "C:\Python24\Lib\site-packages\_spe\sm\wxp\stc.py", line 590, in
markError
    self.StartStyling(self.PositionFromLine(lineno-1),
wx_stc.STC_INDICS_MASK)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'


Seen once:

Traceback (most recent call last):
  File "C:\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_core.py",
line 13266, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "C:\Python24\Lib\site-packages\_spe\sm\wxp\stc.py", line 590, in
markError
    self.StartStyling(self.PositionFromLine(lineno-1),
wx_stc.STC_INDICS_MASK)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'

  File "<input>", line 1
    Tkinter.CENTERTraceback (most recent call last):


Traceback (most recent call last):
  File "C:\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_core.py",
line 13266, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
  File "C:\Python24\Lib\site-packages\_spe\sm\wxp\stc.py", line 590, in
markError
    self.StartStyling(self.PositionFromLine(lineno-1),
wx_stc.STC_INDICS_MASK)
TypeError: unsupported operand type(s) for -: 'NoneType' and 'int'
WARNING: Stream <cin> looks suspicious: it lacks a 'fileno' attribute.
WARNING: Stream <cin> looks suspicious: it lacks a 'mode' attribute.
WARNING: Stream <cout> looks suspicious: it lacks a 'fileno' attribute.
WARNING: Stream <cout> looks suspicious: it lacks a 'mode' attribute.
WARNING: Stream <cerr> looks suspicious: it lacks a 'fileno' attribute.
WARNING: Stream <cerr> looks suspicious: it lacks a 'mode' attribute.


ERROR: Invalid Notebook Page In IsPageEnabled: (4)
Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\_spe\sm\wxp\NotebookCtrl.py", line
1814, in OnMouseMotion
    if self.IsPageEnabled(insidetab):
  File "C:\Python24\Lib\site-packages\_spe\sm\wxp\NotebookCtrl.py", line
1107, in IsPageEnabled
    raise "\nERROR: Invalid Notebook Page In IsPageEnabled: (" +
str(nPage) + ")"

ERROR: Invalid Notebook Page In IsPageEnabled: (4)


Same error repeated 4 times :

Traceback (most recent call last):
  File "C:\Python24\Lib\site-packages\_spe\sm\wxp\NotebookCtrl.py", line
1779, in OnMouseMotion
    dx = abs(pt.x - self._dragstartpos.x)
AttributeError: 'TabCtrl' object has no attribute '_dragstartpos'


All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml


--__--__--

Message: 2
Date: Wed, 28 Dec 2005 09:59:56 +0000
From: Fuzzyman <[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: [spe-users] Weird Problem with Shift-Ctrl-E
Reply-To: [email protected]

Hello Stani,

I was experimenting with a particular block of code - and trying to run
it with Shift-Ctrl-E. It consistently failed to run (including when run
with F9). If I loaded it into IDLE it worked fine ???

(By the way - if you hit 'Shift-Ctrl-E and the last line doesn't end
with a carriage return, it doesn't execute and you have to hit enter :-)

Example code follows :

from traceback import print_exc


try:
    raise SystemExit
except Exception:
    print_exc()

"""
Result on the shell :

>>> from traceback import print_exc
...
...
>>> try:
...     raise Exception
...
...     except Exception:
...     print_exc()
  File "<input>", line 5
    except Exception:
         ^
SyntaxError: invalid syntax

"""

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

--__--__--

Message: 3
Date: Wed, 28 Dec 2005 10:18:50 +0000
From: Fuzzyman <[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: [spe-users] Indentaion Issue
Reply-To: [email protected]

Hello Stani,

(Sorry - I would post this as a feature request, but I don't have open
access to the internet).

I'm not sure if you consider this an issue or not. In order to break
long lines of code I split them over several lines. I indent them to
show that they are not just a new line of code.

When I hit return, SPE continues the next line at the *new* indentation
position, rather than jumping back to the correct one.

Here's an example :

            for entry, text in [('f', 'Run in Script Dir:'),
                                ('i', 'Inspect After Run:'),
                                ('p', 'Psyco On:'),
                                ('u', 'Unbuffered'),
                                ('b', 'Pause After Script'),
                                ('k', 'Console for Movpyw'),
                                ('koff', 'No Console for Movpy'),
                                ('die', 'GUI Die on Run'),
                                ('IPOFF', 'IPython Off:'),
                                ('x', 'Skip First Line:'),
                                ]:
                               
                                # SPE now indents to here
                # rather than here !

It may be too much to expect SPE to suss this - but I thought I'd flag
it up.

All the best,


Fuzzyman
http://www.voidspace.org.uk/python/index.shtml

--__--__--

Message: 4
Date: Wed, 28 Dec 2005 10:58:13 +0000
From: Fuzzyman <[email protected]>
To: python-spe-users-tdrK/[email protected]
Subject: [spe-users] Backwards-and-Forwards
Reply-To: [email protected]

Hello Stani,

Another email that ought to be a feature request.

One really cool feature that I miss from Ultraedit (my favourite windoze
text editor) is the ability to jump backwards and forwards between
positions in the code.

It means you can edit some code, scroll up to check something, and then
hit 'move back' to jump back to where you were. I don't know how they've
implemented it (how they decide when to mark a position) - but it's
*very* useful.

No more requests today - hopefully ;-)

All the best,

Fuzzyman
http://www.voidspace.org.uk/python/index.shtml


--__--__--

_______________________________________________
Python-spe-users mailing list
[email protected]
http://lists.berlios.de/mailman/listinfo/python-spe-users


End of Python-spe-users Digest