Re: [Tutor] is gotchas?

2007-01-08 Thread Hugo González Monteverde
> Hmmm! Hmmm! > Lookee here: > ## console session > >>> a=[1,2] > >>> b=[1,2] > >>> a is b > False > >>> c='1' ## one byte > >>> d='1' ## one byte > >>> c is d > True > >>> c='1,2' > >>> d='1,2' > >>> c is d > False > >

[Tutor] 'root' dir of a package from within the package ?

2007-01-08 Thread Dave S
Hi all, I have written a python package, which works fine, the 'root' directory is 'my_app' with sub directories within in, complete with there __init__.py files. I need to work out the path to the root directory from within the app, os.path gives me pythons path! - oh and its in XP. Any sugg

[Tutor] Apologies...

2007-01-08 Thread Tim Golden
... my many apologies to the readers of the tutor list. I went away for a week without suspending delivery just as my company changed name - and decided to send an irritating response to anything directed at the old name. The list admin has very properly unsubscribed the old address (otherwise you'

Re: [Tutor] import glob.glob('*.py')

2007-01-08 Thread Kent Johnson
János Juhász wrote: > I plan to make a python script, that collect all the projectfiles from > that folder and render them as a report summary. > I planned to import these files as modules like > > for filename in glob.glob('*.py'): > if '_' in filename: continue > import filename >

[Tutor] import glob.glob('*.py')

2007-01-08 Thread János Juhász
Hi All, I am playing with reportlab and I would like to make a directory where I can place all of my projects as ___.py files. A project file should be like this: test.py title="Test project" duedate = '2007-02-28' description = "description _" detailed=""" detaileddetaileddetaile

Re: [Tutor] Need help with rewriting script to use Decimal module

2007-01-08 Thread Dick Moores
At 06:32 PM 1/7/2007, Terry Carroll wrote: >I may add this algorithm to the cookbook. You should. Dick ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor