Message278522
> Should we file a separate issue regarding the similarly vague error message from hasattr() itself?
+1 from me. It would be good to show users a user friendly message :)
> BytesWarning: Comparison between bytes and string
How about raising a TypeError if ``all(isinstance(l, str) for l in fromlist)`` is False? That would make the exception message less clearer since we can't include the "[...] not 'bytes'" part though. |
|
Date |
User |
Action |
Args |
2016-10-12 09:53:42 | berker.peksag | set | recipients:
+ berker.peksag, brett.cannon, rhettinger, ncoghlan, ezio.melotti, bignose, eric.snow, serhiy.storchaka, Julian.Gindi, davidszotten@gmail.com, Tim.Graham |
2016-10-12 09:53:42 | berker.peksag | set | messageid: <1476266022.79.0.312830417372.issue21720@psf.upfronthosting.co.za> |
2016-10-12 09:53:42 | berker.peksag | link | issue21720 messages |
2016-10-12 09:53:42 | berker.peksag | create | |
|