Where is the parser documentation?

I want to know what these (and other) methods do:

parser.compile_filter ()

+3
source share
1 answer

Only official documents that I am sure you have found here .

Other good places to search are user group , developer group , source code, and source code history ,

Relatively compile_filter. Source (with docstring) says.

def compile_filter(self, token):
    "Convenient wrapper for FilterExpression"
    return FilterExpression(token, self)

And FilterExpression is documented here as:

( ) . :

>>> token = 'variable|default:"Default value"|date:"Y-m-d"'
>>> p = Parser('')
>>> fe = FilterExpression(token, p)
>>> len(fe.filters)
2
>>> fe.var
'variable'
+12

Source: https://habr.com/ru/post/1743464/


All Articles