[Pkg-isocodes-devel] [pkg-isocodes-Bugs][315796] XK country code for alpha_2 does not correctly return 'Kosovo'

pkg-isocodes-bugs at alioth.debian.org pkg-isocodes-bugs at alioth.debian.org
Sun Sep 17 14:21:10 UTC 2017


pkg-isocodes-Bugs item #315796 was changed at 2017-09-17 16:21 by Tobias Quathamer
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413077&aid=315796&group_id=30316

>Status: Closed
Priority: 3
Submitted By: Nathan Nye (nathann-guest)
>Assigned to: Tobias Quathamer (toddy)
Summary: XK country code for alpha_2 does not correctly return 'Kosovo' 
Part: General


Initial Comment:
Hi,

Thank you for your time and effort on this open source project. I use pycountry, which is a wrapper for pkg-isocodes. If XK could be correctly added as an alpha_2 code to pkg-isocodes, this library would function perfectly.

pycountry.countries.get(alpha_2="XK").name

Expected: Kosovo

Result: <type 'exceptions.KeyError'> 'XK'

Citations: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Decoding_table https://countrycode.org/kosovo https://geonames.wordpress.com/2010/03/08/xk-country-code-for-kosovo/

More information: https://bitbucket.org/flyingcircus/pycountry/issues/13382/xk-country-code-for-alpha2-does-not

Let me know if you need any more information.

Nathan

----------------------------------------------------------------------

>Comment By: Tobias Quathamer (toddy)
Date: 2017-09-17 16:21

Message:
Hi,

thanks for submitting this bug.

However, I will not include this code in the iso-codes package. The codes XA-XZ (among others) can be freely assigned by anyone who needs them.

I can see that "XK" is used for Kosovo by several big organizations and might be seen as a "quasi-standard", but that's just it -- not part of the ISO 3166 standard.

If you need that user-assigned code, I suggest that you handle this special case in your program.

Regards,
Tobias

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413077&aid=315796&group_id=30316



More information about the Pkg-isocodes-devel mailing list