User Activity

  • Posted a comment on discussion Help/Open Discussion on Python parsing module

    this is my idea https://github.com/aleivag/pyparsing/pull/1/commits/6e3e704f46ef2b7b0126380c8d0957a5188a087d

  • Modified a comment on discussion Help/Open Discussion on Python parsing module

    I think this is a bug, but it may be intended behaivure, just dont seems right o me (by the way love pyparsing!!!). concider opt1 and opt2, defined as follow: from pyparsing import Literal, pyparsing_common ipv6 = (Literal('[') + pyparsing_common.ipv6_address + Literal(']')) ipv4 = pyparsing_common.ipv4_address opt1 = ipv6.setResultsName('ip') opt2 = (ipv4 | ipv6).setResultsName('ip') print(opt1.parseString('[::1]').get('ip')) print(opt2.parseString('[::1]').get('ip')) Both cases should print the...

  • Posted a comment on discussion Help/Open Discussion on Python parsing module

    I think this is a bug, but it may be intended behaivure, just dont seems right o me (by the way love pyparsing!!!). concider opt1 and opt2, defined as follow: from pyparsing import Literal, pyparsing_common ipv6 = (Literal('[') + pyparsing_common.ipv6_address + Literal(']')) ipv4 = pyparsing_common.ipv4_address opt1 = ipv6.setResultsName('ip') opt2 = (ipv4 | ipv6).setResultsName('ip') print(opt1.parseString('[::1]').get('ip')) print(opt2.parseString('[::1]').get('ip')) Both cases should print the...

View All

Personal Data

Username:
aleivag
Joined:
2008-07-12 16:48:36

Projects

This is a list of open source software projects that Alvaro Leiva is associated with:

  • rumpi   Last Updated:

Personal Tools