reingart / pyfiscalprinter_googlecode

Automatically exported from code.google.com/p/pyfiscalprinter
GNU Lesser General Public License v3.0
1 stars 2 forks source link

isdigit en vez de lambda #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
250 @ hasarPrinter.py
si no me equivoco esto:
filter(lambda x: x not in string.digits, doc):
es lo mismo que esto
!doc.isdigit()

>>> help("".isdigit)
Help on built-in function isdigit:

isdigit(...)
    S.isdigit() -> bool

    Return True if all characters in S are digits
    and there is at least one character in S, False otherwise.

Original issue reported on code.google.com by jerobarr...@gmail.com on 24 Aug 2012 at 10:41