Skip to content

fromString returning false in case of error is not pythonic  #26

Open
@allan-simon

Description

@allan-simon

Which break the principle of "least surprise"

i.e most python libraries raise exception instead (ask for forgiveness not permission) so one could choose to not handle them , or handle them at a higher level

also it breaks static analysis tool that will say that

fromstring(DIFF).apply(dir)

is not valid because false has no apply methods

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions