Moving from PHP to Python. Part Two

2009-12-14 Thread Sancar Saran
Hello Again. I hope, I don't bug too much. First of all. I want to Thank to everyone who respond my messages. I was able to do some of my needs and stuck some others. So ? I need help again. And here my progress.. Following was my globalized registry solution # -*- coding: utf-8 -*- class

Re: Moving from PHP to Python. Is it Possible

2009-12-13 Thread Sancar Saran
On Monday 14 December 2009 02:10:16 am Diez B. Roggisch wrote: > >> 1) PHP does some really nasty things in how it treats globals, and you > >> will have to break yourself of those sorts of habits -- Python offers > >> much cleaner alternatives, like grouping similar functionality into > >> modules

Re: Problems with debugging Lists

2009-12-12 Thread Sancar Saran
On Saturday 12 December 2009 04:52:26 am Gabriel Genellina wrote: > En Fri, 11 Dec 2009 19:11:38 -0300, Sancar Saran > > escribió: > > In php we had print_r function to see entire array structure. After some > > search I found some equal module named pprint. > > > &

Problems with debugging Lists

2009-12-11 Thread Sancar Saran
Hello again. I wrote small class for generating and accessing globalized Dictionary. And of course I want to add some kind of debug ability to check what is inside... In php we had print_r function to see entire array structure. After some search I found some equal module named pprint. And so

Re: Moving from PHP to Python. Is it Possible

2009-12-11 Thread Sancar Saran
On Friday 11 December 2009 05:11:12 pm zeph wrote: > Hi Sancar, Hi zeph, Thanks for reply. And here my needs about those 2 two programming technique. > 1) PHP does some really nasty things in how it treats globals, and you > will have to break yourself of those sorts of habits -- Python offers

Moving from PHP to Python. Is it Possible

2009-12-11 Thread Sancar Saran
Greetings. I'm 35 yrs old self learner and who do daily PHP coding for food more than a decade. After ten years of PHP coding I'm getting bored and give try for learning new things. After 3 days of crawling google, diving in python and cursing, now I can show something on my linux/apache/mo