porimol / countryinfo

A python module for returning data about countries, ISO info and states/provinces within them.
MIT License
146 stars 46 forks source link

Not giving a country name returns Eritrea #42

Open voidus opened 2 years ago

voidus commented 2 years ago
> CountryInfo().name()
'eritrea'

Question is, what is good behaviour here? I'd argue that since a CountryInfo object represents information about a specific country, a constructor argument should be mandatory.

Probably easier to do #41 first, since right now, accessing .all() requires constructing an object.