tags:

views:

73

answers:

2
+1  Q: 

win32api vs Python

What are the Pro's and Con's of using win32api for I/O and other things instead of simply Python, if both have a specific function for it

I mean, using PyWin32 vs Win32Api

+4  A: 

The most obvious thing seems to be losing cross-platform compatibilty. Python runs on a number of different platforms, none of which has a win32 API except MS Windows.

x0n
+5  A: 

con

  • (lack of) portability
  • harder/more error prone

pro

  • performance (potentially, it must be measured, as will depend on more than just the api calls)
BioBuckyBall
Do you have benchmarks that back up your performance claim? (Especially since python now has an I/O implementation in C)
Arafangion
@Arafangion Not specifically for I\O, but he said "I/O and other things". Perf is always something you have to verify in your particular case. I will add detail there.
BioBuckyBall