Re: why i cannot import djang?

2011-08-16 Thread Gennadiy Zlobin
import sys print sys.path # All directories where Python looks for packages - Gennadiy On Tue, Aug 16, 2011 at 11:12 PM, John Gordon wrote: > In smith jack < > thinke...@gmail.com> writes: > > > this package is already in the site-packages directory, but i cannot > > import it , it's really

Re: where the function has problem? n = 900 is OK , but n = 1000 is ERROR

2011-08-01 Thread Gennadiy Zlobin
The maximum depth of the Python interpreter stack is limited to 1000 calls by default. You can get it by import sys; sys.getrecursionlimit() and set a new value to sys.setrecursionlimit(new_value) - Gennadiy On Mon, Aug 1, 2011 at 4:11 PM, jc wrote: > # Get Fibonacci Value > #Fibonacci(N

Re: Get Path of current Script

2011-03-14 Thread Gennadiy Zlobin
I tested my solution on python 2.5, 2.8 and 3.1 and everything seems working well - Gennadiy On Mon, Mar 14, 2011 at 4:29 PM, Duncan Booth wrote: > Steven D'Aprano wrote: > > > On Mon, 14 Mar 2011 02:25:46 -0700, Alexander Schatten wrote: > > > >> is there an easy way (API) to get the direc

Re: Get Path of current Script

2011-03-14 Thread Gennadiy Zlobin
To get the directory of the current running script try: import os.path path = os.path.dirname(__file__) - Gennadiy On Mon, Mar 14, 2011 at 3:25 PM, Alexander Schatten wrote: > Hi, > > could someone help me with a small problem? I wrote a Python script > that does some RegEx... transformatio

Re: IDLE doesn't start

2011-03-14 Thread Gennadiy Zlobin
Hi Ceonn, Well it is obvious that these environment variables are pointing to your old Python 2.2 installation that is located in the C:\IBMTOOLS\Python22\tcl\tcl8.4 First, try to delete these variables and find out are they necessary to run IDLE. Type in console set TCL_LIBRARY = set TK_LIBRARY

Re: IDLE doesn't start

2011-03-11 Thread Gennadiy Zlobin
It seems that you have already had Python 2.2 installed in the directory C:/IBMTOOLS/Python22 Can you open the console and type there next commands and provide the output? echo %TCL_LIBRARY% echo %TK_LIBRARY% echo %PYTHONPATH% You can unset environment variable in 'my computer' properties, more d

Re: How to get python class serializable and well parsed by JSON

2011-03-11 Thread Gennadiy Zlobin
I can not open your link. Are you sure you provided the correct link? - Gennadiy On Fri, Mar 11, 2011 at 10:36 PM, Arthur Mc Coy <1984docmc...@gmail.com>wrote: > Currently trying to pick up my ava > http://en.gravatar.com/christinasanders21 > for StackOverflow, which site I found very good fo