[Python-de] Shell Wildcard Matching in purem Python (ohne re)?

Christopher Arndt chris at chrisarndt.de
Fr Nov 27 08:02:05 EST 2015


Hi allerseits,

kennt jemand eine Implementierung für Shell Wildcard Matching in purem
Python, also auch ohne das re-Modul zu benutzen (wie es fnmatch tut)?

Einsatzzweck: OSC Address Pattern Matching [1] unter Micropython [2],
also potentiell auf Microprozessoren und ohne Zugriff auf irgendwelche
C-Libraries.

Unterstützung von '{a,b}' Pattern wäre schön, lässt sich aber bestimmt
ggf. leicht nachrüsten.


Chris

[1] OSC Address Spaces and OSC Addresses,
http://opensoundcontrol.org/spec-1_0
[2] http://docs.micropython.org/en/latest/

-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 979 bytes
Beschreibung: OpenPGP digital signature
URL         : <http://mail.python.org/pipermail/python-de/attachments/20151127/7d97ac8a/attachment.sig>


Mehr Informationen über die Mailingliste python-de