[Tutor] How to import a few modules when I enter python?

2012-08-06 Thread Santosh Kumar
Hello there, I have a few scripts that I made to experiment with, I have to import them everytime I enter the Python shell. The scripts are in `/home/username/workshop/` (this directory has also some non .py files) directory. Is there a way I can import them as soon as I enter Python? Also I am e

[Tutor] *large* python dictionary with persistence storage for quick look-ups

2012-08-06 Thread Abhishek Pratap
Hey Guys I have asked a question on stackoverflow and thought I would post it here as it has some learning flavor attached to it...atleast I feel that. http://stackoverflow.com/questions/11837229/large-python-dictionary-with-persistence-storage-for-quick-look-ups -Abhi __

Re: [Tutor] Code Review?

2012-08-06 Thread Brian Carpio
Thanks to everyone who has replied! This is some good information for me to go learn with!. I greatly appreciate it. Brian On Mon, Aug 6, 2012 at 9:21 AM, Peter Otten <__pete...@web.de> wrote: > Brian Carpio wrote: > > > Hi, > > > > Hopefully I am allowed to ask this here. I am pretty new to py

Re: [Tutor] Code Review?

2012-08-06 Thread Peter Otten
Brian Carpio wrote: > Hi, > > Hopefully I am allowed to ask this here. I am pretty new to python I've > only been writing code for about 6 months now strictly for system > administration purposes; however I have now decided to write something > "real" that others might benefit from but I am looki

Re: [Tutor] Code Review?

2012-08-06 Thread Mark Lawrence
On 06/08/2012 14:38, Ramchandra Apte wrote: [top posting fixed] On 6 August 2012 18:59, Brian Carpio wrote: Hi, Hopefully I am allowed to ask this here. I am pretty new to python I've only been writing code for about 6 months now strictly for system administration purposes; however I have n

Re: [Tutor] Code Review?

2012-08-06 Thread Tino Dai
On Mon, Aug 6, 2012 at 9:39 AM, Ramchandra Apte wrote: > Another practice is make __license__ = "GPL license..." > and __author__ = "Brian Carpio " > I do so. > > > On 6 August 2012 19:08, Ramchandra Apte wrote: > >> In scripts/add_node.py GPL Licene should be GPL License >> >> >> Brian, I

Re: [Tutor] Code Review?

2012-08-06 Thread Ramchandra Apte
In scripts/add_node.py GPL Licene should be GPL License On 6 August 2012 18:59, Brian Carpio wrote: > Hi, > > Hopefully I am allowed to ask this here. I am pretty new to python I've > only been writing code for about 6 months now strictly for system > administration purposes; however I have now

Re: [Tutor] Code Review?

2012-08-06 Thread Ramchandra Apte
Another practice is make __license__ = "GPL license..." and __author__ = "Brian Carpio " I do so. On 6 August 2012 19:08, Ramchandra Apte wrote: > In scripts/add_node.py GPL Licene should be GPL License > > On 6 August 2012 18:59, Brian Carpio wrote: > >> Hi, >> >> Hopefully I am allowed to ask

[Tutor] Code Review?

2012-08-06 Thread Brian Carpio
Hi, Hopefully I am allowed to ask this here. I am pretty new to python I've only been writing code for about 6 months now strictly for system administration purposes; however I have now decided to write something "real" that others might benefit from but I am looking for someone to take a look at