Could not import external source folder in Pydev
Env info: Python version: '2.6.5 (r265:79063, Apr 16 2010, 13:57:41) \n[GCC 4.4.3]' Eclipse version: Version: 3.5.2 Build id: M20100211-1343 PyDev version: PyDev for Eclipse 220.127.116.110050621 org.python.pydev.feature.feature.group OS: Ubuntu 10.04 Problem: I am trying to develop a module using web2py's DAL c... 17 Jun 2010 07:51
List of lists surprising behaviour
Let's the following code : t=[*2]*3 t [[0, 0], [0, 0], [0, 0]] t=1 t [[1, 0], [1, 0], [1, 0]] Rather surprising, isn't it ? So I suppose all the subarrays ref�rence the same array : id(t), id(t), id(t) (3077445996L, 3077445996L, 3077445996L) So what... 18 Jun 2010 11:18
Communicating with a program using subprocess
I have a file called increment.py as follows: #!/usr/bin/python n = 0 while True: n = int(raw_input(n)) + 1 This is easy to understand, but I want to pipe it's input/output by another python program. (I will show what I am doing on... 18 Jun 2010 21:16
Python 2.4.4 Tkinter GUI Example for Modeless Dialog with Menu,Edit, List, Buttons, File Save etc.
On 06/16/2010 04:05 PM, My Python wrote: I would like to see some substantial example of an App written for a Modeless Dialog (fixed size, non resizable window) (If you have used WIndows MFC or Visual Basic you all know how elegant it is) What is elegant about a fixed-size, non-re-sizable window? (Actuall... 17 Jun 2010 03:31
Upgrading from Python 2.6.5 w.r.t. matplotlib/numpy?
I'm like to go direct to Python 3.1 if possible, but if necessary I'll happily use Python 2.7 as an interim measure. However I'm uncertain as to the status of matplotlib and its dependency on numpy. I've tried googling their development mailing lists but don't really understand what the current situation is. ... 17 Jun 2010 13:23
A daemon to call a function with configurable interval
2010/6/16 Vishal Rana <ranavishal(a)gmail.com>: I am working in a django web application. A function 'xyx' need to be called every 2 minutes. I want one http request should start the daemon and keep calling xyz (every 2 minutes) until I send another http request to stop it. Appreciate your ideas. Hello ... 16 Jun 2010 18:48
Python 2.4.4 Tkinter GUI Example for Modeless Dialog with Menu, Edit, List, Buttons, File Save etc.
I would like to see some substantial example of an App written for a Modeless Dialog (fixed size, non resizable window) (If you have used WIndows MFC or Visual Basic you all know how elegant it is) with Buttons, menus, edit boxes, list boxes, file save as dialogs popping from the button action (this one is easy, bu... 17 Jun 2010 01:22
JBR ,Lower Market price ,Sea View and Marina View AED800per/sqft ,050-8320722
JBR Lower market price AED800per/sqft 5 unit (3Bed + Maid)(packet) (1800sqft to 3000sqft) +Transfer Fee 2 % + Broker Fee 2% JBR Apartments Located near to Dubai Marina and lying in a beach front location comprises the area of JBR or Jumeirah Beach Residences, Comprising clusters of 6 tower covering 6 areas M... 16 Jun 2010 17:42
Writing to open subprocess pipes.
All, I have researched this both in the python documentation, and via google. Neither subprocess nor os.popen* will do what I need. First, I would instanshiate an ongoing shell, that would remain active throughout the life of the socket connection. I am trying to take commands, coming in from a standard python so... 16 Jun 2010 21:01
exceptions and unicode
I am having a problem with exceptions and unicode. try: open ('file.txt') except IOError, e: pass str (e) => "[Errno 2] No such file or directory: 'file.txt'" which is fine but... try: open (u'フィイル.txt') except IOError, e: pass str (e) => "[Errno 2] No such file or directory: u'\\u30d5\\u... 19 Jun 2010 18:54