Skip to content

Get rid of VerEx() and "from" import #23

Open
@Mahi

Description

@Mahi

I personally dislike the current behavior of:

from verbalexpressions import VerEx

foo = VerEx().find(...).anything_but(...)

As opposed to an arguably more Pythonic way:

import verbalexpressions as verex

foo = verex.find(...).anything_but(...)

I would like to contribute and implement the functionality in question, but I need to know first that it would be a welcome change -- else I'd be just wasting everyone's time.

What do you guys think, would it be cleaner to implement it to support module scope function calls? Obviously each call to these module scope functions would still create a new VerEx object internally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions