First  |  Prev |  Next  |  Last
Pages: 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
How to pretty-print cyclic dictionaries?
Hi, I would like to represent graphs as cyclic dictionaries in Python. The python code for the graphs is generated by some other program (written in lisp) and I wonder what would be the best syntax for writing the cycles in Python? The following works: a = {} a['a'] = a As can be seen here: ... 29 Apr 2010 23:39
using python2.6 on windows without installation
Hey, is there a way to use python2.6 without having used the installation routine? When I install python2.6 and copy over the python-directory (C:\programs \python2.6) to another windows host and trying to execute python.exe there, I get an error that python26.dll could not be found. On the host where I use... 3 May 2010 12:02
matching strings in a large set of strings
Hello. I have approx 83 million strings, all 14 characters long. I need to be able to take another string and find out whether this one is present within the 83 million strings. Now, I have tried storing these strings as a list, a set and a dictionary. I know that finding things in a set and a dictionary is ve... 6 May 2010 13:03
dynamic function add to an instance of a class
Hello, i want to add functions to an instance of a class at runtime. The added function should contain a default parameter value. The function name and function default paramter values should be set dynamical. Kind Regards, Richi ... 29 Apr 2010 05:40
help req installing python 2.6
2010/4/29 sanam singh <sanamsingh(a)hotmail.com>: hi, i am am facing problem in installing python 2.6 on ubuntu 9.04. When i sudo make i get following error : You need to install the necessary development headers/libraries required to build Python from source. eg: $ sudo apt-get install gdbm-dev [ s... 29 Apr 2010 06:45
building python 3 -- _dbm necessary bits
I'm getting an error message about make not being able to find the necessary bits to build modules related to _dbm. Yet I have libgdbm installed installed on my system. Suggestions on how to fix this? - Mark ... 30 Apr 2010 12:49
ooolib, reading writing a spread sheet and keep formatting
Hi, I'm making first attempts to modify a few cells of an openoffice spreadsheet. I thought I'll start with ooolib as it seems rather simple. ( linux / open office 3.1 / ooolib-python-0.0.16 ) My first test was just to open a spread sheet import ooolib doc = ooolib.Calc() doc.load("doc1.ods") # load... 6 May 2010 04:10
CGI python 3 write RAW BINARY
Help! this is driving me crazy lol I want to print raw binary data to display an image file BUT python3 outputs b'<binary data>' instead of <binary data>.... so the browser can't read the image!! f = open("/some/path/%s" % x, 'rb') print(f.read()) any idea? Dorian ... 21 May 2010 06:12
modifying openoffice/xls spreadsheet (without OO /Excel installed)
Hi, Similiar to me previous question I wanted to know who can recommend a good module/library, that allows to modify an Open Office spreadsheet. If it helps I can also convert to .xls format prior to running my script. However in this case I'd like to work on hosts, which don't have open office installed (e.... 28 Apr 2010 18:34
NumPy and vectorize
I'm having problem with the return values of NumPy's vectorize function. When I pass an array of strings in the following simple example, vectorize truncates the strings in the returned list. Any clues of what to do? Yours, Carl import numpy as np def __f(x): return x f = vectorize(__f) s = '20... 28 Apr 2010 16:17
First  |  Prev |  Next  |  Last
Pages: 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141