Ilias Lazaridis wrote:
> Where can I find practical coding examples for real life coding problems?
Probably in real life code ?-)
> Something like a categorized solution guide?
Look for the Python cookbook (google is your friend).
> -
>
> My current problem:
>
> * create a folder
> * seems to be: os.mkdir(path)
I wouldn't even count this as a coding problem, except perhaps for a
total CS newbie.
> * obtain the path of a python package
import package
print package.__file__
> * copy the content of the package folder to the created folder
import shutil
help(shutil.copytree)
(snip)
> I've looked in the Python 2.4 documentation, but the resulting
> possibilities are too much.
???
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@')])"
--
http://mail.python.org/mailman/listinfo/python-list