No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
5 Posted Topics
Hi, I used SCons to create a shared library (dll) from a c++ file (hello.cpp) below. Then I used Python and it ctypes library to load in the dll and call its functions. I can load the dll and call the main function, but nothing else. I cannot call the … | |
Hi, I am using Django 1.0 and Python 2.5.2 on Ubuntu Hardy Heron. My Python application must load a large amount of data - an object that represents a huge non-hierarchal network. Once this lengthy loading process is completed, calculations can be performed very quickly from then on. In my … | |
Hey, Does anyone know how to pickle classes that have classes within them? I get back the top level attributes, but not the attributes under them. For instance: [code] import pickle class authorObj(): class authors(): pass q = authorObj() q.authors.name = 'somebody' output = open('test.pkl', 'wb') pickle.dump(q, output) output.close() [/code] … | |
Hi, Does anyone know how to perform web queries programmatically from Python with GET and Post requests? I have been trying out my code on this site - [url]http://www.comp.leeds.ac.uk/Perl/Cgi/textareas.html[/url] [code] import urllib, urllib2 link = 'http://www.comp.leeds.ac.uk/Perl/Cgi/textareas.html' urldata = {'review':"test",'method':'GET'} data = urllib.urlencode(urldata) req = urllib2.Request(link, data) response = urllib2.urlopen(req) the_page … | |
does anyone know how to have IDLE or Ipython display a string with line breaks as multiline text in the display rather than a big string wrapped around with '\n's? Instead of [code] return false;\n }\n\n function validPeriod() {\n for (var i = 0; i < periods.length; i++) {\n [/code] … |
The End.