py3 tkinter acceps bytes. why?

Martin v. Loewis martin at v.loewis.de
Thu May 6 19:38:13 EDT 2010


> If I don't want bytes to get passed to tkinter
> I just have to raise an exception in AsObj, no?
> Or is it even sufficient to just remove the bytes case?

But why would you want that? There are commands which legitimately
return bytes, e.g. the file and network io libraries of Tcl (not that
you would usually want to use them in Python, but Tkinter is actually
Tclinter, and should support all Tcl commands).

Regards,
Martin



More information about the Python-list mailing list