[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu

Popa Claudiu pcmantic...@gmail.com added the comment:

Hello. This happens with this version of IDLE too: 

Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on 
win32. 
I could write a patch if I knew where to start.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu

Popa Claudiu pcmantic...@gmail.com added the comment:

I found the culprit. I wrote b\x in IDLE and the window immediatly 
disappeared. Then, to traceback the problem, I started a python shell and typed 
the following lines. It seems that in showsyntaxerror, value is different that 
what was expected. 

C:\python
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on 
win32
Type help, copyright, credits or license for more information.
 import idlelib.PyShell
 idlelib.PyShell.main()
Exception in Tkinter callback
Traceback (most recent call last):
  File C:\Python32\lib\code.py, line 63, in runsource
code = self.compile(source, filename, symbol)
  File C:\Python32\lib\codeop.py, line 168, in __call__
return _maybe_compile(self.compiler, source, filename, symbol)
  File C:\Python32\lib\codeop.py, line 82, in _maybe_compile
code = compiler(source, filename, symbol)
  File C:\Python32\lib\codeop.py, line 133, in __call__
codeob = compile(source, filename, symbol, self.flags, 1)
ValueError: invalid \x escape

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File C:\Python32\lib\tkinter\__init__.py, line 1399, in __call__
return self.func(*args)
  File C:\Python32\lib\idlelib\MultiCall.py, line 166, in handler
r = l[i](event)
  File C:\Python32\lib\idlelib\PyShell.py, line 1126, in enter_callback
self.runit()
  File C:\Python32\lib\idlelib\PyShell.py, line 1167, in runit
more = self.interp.runsource(line)
  File C:\Python32\lib\idlelib\PyShell.py, line 617, in runsource
return InteractiveInterpreter.runsource(self, source, filename)
  File C:\Python32\lib\code.py, line 66, in runsource
self.showsyntaxerror(filename)
  File C:\Python32\lib\idlelib\PyShell.py, line 654, in showsyntaxerror
msg = value.msg or no detail available
AttributeError: 'ValueError' object has no attribute 'msg'


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu

Popa Claudiu pcmantic...@gmail.com added the comment:

I've attached a patch, hope it is ok.

--
keywords: +patch
Added file: http://bugs.python.org/file23151/idle.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu

Changes by Popa Claudiu pcmantic...@gmail.com:


Removed file: http://bugs.python.org/file23151/idle.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu

Popa Claudiu pcmantic...@gmail.com added the comment:

Wrong patch.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu

Changes by Popa Claudiu pcmantic...@gmail.com:


Added file: http://bugs.python.org/file23152/idle.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9871] IDLE dies when using some regex

2011-09-14 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset e74860883a9c by Ned Deily in branch '3.2':
Issue #9871: Prevent IDLE 3 crash when given byte stings
http://hg.python.org/cpython/rev/e74860883a9c

New changeset fe6c7771c25c by Ned Deily in branch 'default':
Issue #9871: Prevent IDLE 3 crash when given byte stings
http://hg.python.org/cpython/rev/fe6c7771c25c

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9871] IDLE dies when using some regex

2010-09-17 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Verified as IDLE specific on WinXP, 3.1.2

With interpreter, I get
 import re; re.findall(b\x.{2}, bsdds\xd8)
ValueError: invalid \x escape

In an IDLE Shell window, the window immediately disappears when I hit return 
and the taskbar button disappears about a third of a second later.

--
nosy: +terry.reedy
stage:  - unit test needed
versions: +Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9871] IDLE dies when using some regex

2010-09-16 Thread Popa Claudiu

New submission from Popa Claudiu pcmantic...@gmail.com:

Hello.

While trying to find a way for extracting strange characters in an ascii file, 
I stumbled upon some strange behaviour of IDLE, which exits without warning 
after running the following regex:

re.findall(b\x.{2}, bsdds\xd8)

In Python 2.6, this won't happen. This is my version of Python 3.1:
Python 3.1 (r31:73574, Jun 26 2009, 20:21:35).

--
components: IDLE
messages: 116516
nosy: Popa.Claudiu
priority: normal
severity: normal
status: open
title: IDLE dies when using some regex
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9871
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com