define class over 2 files

Ben Finney ben+python at benfinney.id.au
Tue Aug 18 09:13:17 CEST 2009


naveen <naveen.garg at gmail.com> writes:

> I guess I will just preprocess the script:
> <class.sh>
> cat partA.py > class.py
> cat partB >> class.py
> python class.py
> </class.sh>

This, to me, is a programming smell; not necessarily bad, but an
indicator of bad practice. What is the problem you're trying to solve?
I'll wager there are better ways to address it.

-- 
 \           “Laugh and the world laughs with you; snore and you sleep |
  `\                                                alone.” —anonymous |
_o__)                                                                  |
Ben Finney



More information about the Python-list mailing list