Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
About Me

student

Favorite Tags
Member Avatar for i_saw_some

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 …

Member Avatar for annu7uch
0
2K
Member Avatar for i_saw_some

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 …

0
19
Member Avatar for i_saw_some

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] …

Member Avatar for Ene Uran
0
112
Member Avatar for i_saw_some

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 …

0
62
Member Avatar for i_saw_some

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] …

Member Avatar for i_saw_some
0
84