A Unicode problem -HELP
I am writing a program to translate a list of ascii letters into a different language that requires unicode encoding. This is what I have done so far: 1. I have # -*- coding: UTF-8 -*- as my first line. 2. In Wing IDE I have set Default Encoding to UTF-8 3. I have imported codecs and opened and written my fil... 17 May 2006 18:41
MinGW and Python
Is there any specific reason for not using MinGW to build the official distribution of Python for Win32? A quick Google search did not reveal the answer to my question. If a link is available, please post it. Best Regards, Srijit ... 29 Apr 2006 05:00
multiline comments
At the risk of flogging a dead horse, I'm wondering why Python doesn't have any multiline comments. One can abuse triple-quotes for that purpose, but that's obviously not what it's for and doesn't nest properly. ML has a very elegant system for nested comments with (* and *). Using an editor to throw #s in f... 20 Apr 2006 15:10
urllib2.ProxyHandler
I'm trying to hide my IP with the following code: import urllib2 proxy=[urllib2.ProxyHandler({'http':'24.232.167.22:80'})] opener=urllib2.build_opener(proxy) f=opener.open('http://www.whatismyipaddress.com') print f.read() But that didn't work - my real IP showed up. Then I made the following replacement: ... 20 Apr 2006 16:46
Python2CPP ?
Hello: One topic that has always interested me are the Language translators. Are there any that convert between Python and C++ or Python and Java? I remember seeing one that converts from Python to or from Perl but couldn't find it on a quick google search. I did find a Python2C http://sourceforge.net/project... 13 Apr 2006 08:55
MySQLdb module generating errors
I installed MySQLdb module on bsd and when I import I get the following error... Traceback (most recent call last): File "<stdin>", line 1, in ? File "MySQLdb/__init__.py", line 27, in ? import _mysql ImportError: /usr/local/lib/liblthread.so.2: Undefined symbol "_sched_yield" Is any module missing ... 11 Apr 2006 09:29
python cgi permision error
Hi I have python cgi script, but when I call it I got server internal error. The log in my apache is [Sat Mar 18 04:17:14 2006] [error] [client 127.0.0.1] (13)Permission denied: exec of '/srv/www/cgi-bin/helo.cgi' failed [Sat Mar 18 04:17:14 2006] [error] [client 127.0.0.1] Premature end of script headers: he... 19 Mar 2006 14:20
Python and C
I was a C Programmer for a while. Lately started to learn Python for one small project at school. I joined a small company where they use C++ for development. Can we use Python and C together ? I mean create some classes in Python and some number crunching algorithms coded in C (for speed) and integreate both of... 11 Mar 2006 14:14
sending a text message via webpage button
Can anyone help me in coding a script that can send a text message typed to the script like. sendmessage 6318019564 "test message" What I want to do is fill up this information on this webpage http://www.cingularme.com/do/public/send;jsessionid=aKDwXM1S0Reh and click the submit button using the python scr... 8 Mar 2006 16:05
linux clipboard?
how can i copy text to the linux clipboard? I've seen a number of posts explain how to do it with tk.... is this the only way? (i'm not using tk as my gui tool kit.) many thanks! ... 9 Mar 2006 18:39