OT: regular expression matching multiple occurrences of one group

2009-11-09 Thread pinkisntwell
How can I make a regular expression that will match every occurrence
of a group and return each occurrence as a group match? For example,
for a string -c-c-c-c-c, how can I make a regex which will return a
group match for each occurrence of -c?
-- 
http://mail.python.org/mailman/listinfo/python-list


Calling parent constructor with different argument list

2009-08-14 Thread pinkisntwell
class Vertex(tuple):
pass

class Positioned_Vertex(Vertex):

def __init__(self, a, b):
Vertex.__init__(a)

a=Positioned_Vertex((0,0,0), 1)

This gives:

TypeError: tuple() takes at most 1 argument (2 given)

It looks like the explicit call to Vertex.__init__ is never made and
Vertex.__init__ is implicitly called when a Positioned_Vertex is
created. Is there a way to work around this and call the constructor
with the intended argument list?
-- 
http://mail.python.org/mailman/listinfo/python-list


[issue4097] Traceback doesn't run back all the way

2008-10-10 Thread pinkisntwell

New submission from pinkisntwell [EMAIL PROTECTED]:

I just got an exception and the traceback wouldn't go all the 
way to the statement that threw the exception. I found that out 
by using the debugger.

Contrast the traceback:

http://tinyurl.com/5xglde

with the debugger output (notice the arrow pointing to the last 
statement the traceback showed and how the execution went on 
beyond it):

http://tinyurl.com/3fjgrl

--
components: None
messages: 74621
nosy: pinkisntwell
severity: normal
status: open
title: Traceback doesn't run back all the way
type: behavior
versions: Python 2.6

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4097
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com