python: cross-platform?

Kragen Sitaker kragen at pobox.com
Sat May 25 02:09:42 EDT 2002


"Danyel Fisher" <danyelf at acm.org> writes:
> I was pleased to discover some time back that code written entirely on a
> UNIX machine worked with virtually [*] no changes on a PC. So--assuming you
> aren't doing anything too exotic, you should find that most code you
> generate is largely cross-platform.
> 
> [*] Ok, so the original coder had written something like
>     new Socket( host, port )
> it turns out that PC systems want the input to be a tuple,
>     new socket( (host, port) )

All of my code for my Unix machine runs with no changes on my PC,
because my PC is my Unix machine.  :)

FWIW, your problem was a change between 1.5.2 and 2.x, not a change
between Unix and Microsoft Windows.




More information about the Python-list mailing list