[Idle-dev] [ idlefork-Bugs-676398 ] A problem with exceptions and the client-server mechanism

SourceForge.net noreply@sourceforge.net
Tue, 28 Jan 2003 14:45:06 -0800


Bugs item #676398, was opened at 2003-01-28 17:11
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=676398&group_id=9579

Category: None
Group: None
Status: Open
>Resolution: Accepted
Priority: 5
Submitted By: Noam Raphael (noamr)
>Assigned to: Kurt B. Kaiser (kbk)
Summary: A problem with exceptions and the client-server mechanism

Initial Comment:
open IDLEfork.
then type in the shell window:
import re
re.compile("[a-+]")

The shell window writes:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in -toplevel-
    re.compile("[a-+]")
  File "/usr/lib/python2.2/sre.py", line 178, in compile
    return _compile(pattern, flags)
  File "/usr/lib/python2.2/sre.py", line 228, in _compile
    raise error, v # invalid expression

and then gets stuck. In the xterm, this is written:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.2/lib-tk/Tkinter.py", line
1292, in __call__
    return apply(self.func, args)
  File "/usr/lib/python2.2/lib-tk/Tkinter.py", line
436, in callit
    apply(func, args)
  File "./PyShell.py", line 421, in poll_subprocess
    etype = eval(mod + '.' + name)
  File "<string>", line 0, in ?
NameError: name 'sre_constants' is not defined

I'm using Python 2.2.1 on Debian woody.

----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2003-01-28 17:45

Message:
Logged In: YES 
user_id=149084

The expected response is:

Python 2.3a0 (#8, Dec 14 2002, 17:52:42)
[GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import re
>>> re.compile('[a-+]')
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.3a0/sre.py", line 179, in compile
    return _compile(pattern, flags)
  File "/usr/local/lib/python2.3a0/sre.py", line 229, in _compile
    raise error, v # invalid expression
sre_constants.error: bad character range

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109579&aid=676398&group_id=9579