New submission from yoch <[email protected]>:
Hi,
I would like to use backreferences in list comprehensions (or other
comprehensions), such as :
[[elt for elt in lst if elt] for lst in matrix if \{1}]
# \{1} is back reference to [elt for elt in lst if elt]
# to filter the result of the first comprehension
It would be possible to do this ?
Thanks
----------
messages: 144976
nosy: yoch.melka
priority: normal
severity: normal
status: open
title: backreferences in comprehensions
type: feature request
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13112>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com