View Single Post
Old Jul 20th, 2006, 5:15 PM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by titaniumdecoy
If it's possible to do this in just a few lines of BASIC code, it doesn't make sense to me that it should require an entire module (eg, PySerial) to do the same thing in Python.
The functionality is obviously built into that version of BASIC, both because BASIC was a language that had a lot of built in functionality, and because serial ports were a commonly used interface when the language was developed.

Python came along much later, when it became fashionable to have libraries and modules, rather than inbuilt functionality, and when serial ports had become more or less obsolete.

Just because functionality is inbuilt into a language, doesn't mean it doesn't have overhead. At least when something is an external module you have a choice whether to use it or not.
Arevos is offline   Reply With Quote