Movatterモバイル変換
[0]ホーム
[Python-Dev] SRE: regex.set_syntax
Fredrik LundhFredrik Lundh" <effbot@telia.com
Sun, 2 Apr 2000 10:37:11 +0200
one of my side projects for SRE is to create a regex-compatiblefrontend. since both engines have NFA semantics, this mostlyinvolves writing an alternate parser.however, when I started playing with that, I completely forgotabout the regex.set_syntax() function. supporting one extrasyntax isn't that much work, but a whole bunch of them?so what should we do?1. completely get rid of regex (bjorn would love that, don't you think?)2. remove regex.set_syntax(), and tell people who've used it that they're SOL.3. add all the necessary flags to the new parser...4. keep regex around as before, and live with the extra code bloat.comments?</F>
[8]ページ先頭