Donate Share

Python parsing module

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Parsing biblatex commands

You are viewing a single message from this topic. View all messages.

  1. 2009-05-13 17:06:45 UTC
    Perhaps my confusion is because results from following [1], where if I don't ask for asList(), I get each item with an empty dict:

    In [23]: formula.parseString( 'C6H5OH' ).asList()
    Out[23]: [['C', '6'], ['H', '5'], ['O'], ['H']]


    In [24]: formula.parseString( 'C6H5OH' )
    Out[24]: ([(['C', '6'], {}), (['H', '5'], {}), (['O'], {}), (['H'], {})], {})

    Is this the result in a change of versions?

    [1]:http://www.onlamp.com/lpt/a/6435
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.