Now What? :o)
Jeff Bauer
jbauer at rubic.com
Thu Jan 6 20:31:33 EST 2000
More information about the Python-list mailing list
Thu Jan 6 20:31:33 EST 2000
- Previous message (by thread): Now What? :o)
- Next message (by thread): Now What? :o)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I'll be working with the language on NT and LINUX boxes; > Are there any issues with writing code to run on both > platforms that I should be aware of? James, Python Unix/Win32 portability works pretty well for many kinds of projects. The Library Reference is your best guide for portability issues. Here are a couple of "gotchas" I've noticed when trying to use other people's code on mixed platforms: 1. Use os.sep rather than slashes or backslashes for your path separators. 2. Open binary files in binary mode. Unix programmers often neglect to use the binary switch since all Unix files *are* binary. It's often helpful to test portions of your code on both platforms as the code is being developed, rather than wait to test it when the code is completed. If you have portability issues, it's easier to isolate them early in the development process. Jeff Bauer Rubicon Research
- Previous message (by thread): Now What? :o)
- Next message (by thread): Now What? :o)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list