Python 2 to 3 Conversion

Chris Angelico rosuav at gmail.com
Mon Feb 19 13:39:15 EST 2018


On Tue, Feb 20, 2018 at 3:53 AM, Wildman via Python-list
<python-list at python.org> wrote:
> On Tue, 20 Feb 2018 02:26:19 +1100, Chris Angelico wrote:
>
>> * Opaque IOCTLs
>
> Would you mind to elaborate a little about your
> concerns?

Look at your original code: it's impossible to figure out what it's
doing or whether it's doing it correctly. "Opaque" in this context
means that you can't grok the code without external help. This is a
code smell, and a strong indication that you're "fiddling" in stuff
way lower level than you normally want to be working with. It's
usable, but it's dirty and leaves everything up to you (do you know
for sure, for instance, if this is backward compatible?
Cross-platform?), and that makes it comparable to depending on an
external program.

ChrisA



More information about the Python-list mailing list