remram44/pyjava — pull request #16 by remram44 (2013-05-24 22:37:17+00:00)
Title: Implicitly converts ASCII bytestrings to unicode

I'm not sure about this. #python advised me against it.

In any case, if the str object is not decodable using ASCII, the overload will be ignored, so if nothing else matches NoMatchingOverload will be raised (instead of UnicodeDecodeError).

```
18:20 < Yhg1s> IF the user got it wrong, tell them. Don't try to cover it up for them.
18:20 < Remram> it's what I'm doing right now
18:20 < Remram> but really this should accept str literals
18:20 < Remram> I think
18:20 < Yhg1s> Remram: no, it really shouldn't.
18:21 < Remram> right now String(u'smthg') works and String('smthg') raises NoMatchingOverload
18:21 < Yhg1s> Remram: Java strings are unicode. Do yourself a favour and don't try to convert silently from bytestrings.
18:21 < Remram> do you think I shouldn't try to fix it?
18:21 < o11c> Remram: good
18:21 < Yhg1s> Remram: you may want to make the errormessage clearer, but I don't recommend trying to make it work, no.
```