This is definitely a bug. The implementation on both platforms seems to be
a hack – a more correct implementation would be a great contribution. It
should also be possible to map arbitrary user names to user IDs and user
IDs to user metadata.

On Thu, Oct 9, 2014 at 1:00 PM, Sean Marshallsay <srm.1...@gmail.com> wrote:

> I noticed the other day that calling expanduser on an empty string throws
> a BoundsError when using a UNIX platform. Whether this is a bug or a
> feature will probably depend entirely on who you ask. More importantly
> though, in my eyes, doing the same thing on Windows returns an empty string
> instead. This inconsistency definitely seems like a bug to me.
>
> In my eyes the UNIX implementation should be changed to check for a empty
> string and return it but I was wondering what other people thought of this?
>

Reply via email to