First  |  Prev |  Next  |  Last
Pages: 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
How to run python without python
Is there a way to developing a script on linux and give it to someone on microsoft, so that they could run it on microsoft without installing python? Wayne ... 3 Apr 2010 09:17
C-style static variables in Python?
When coding C I have often found static local variables useful for doing once-only run-time initializations. For example: int foo(int x, int y, int z) { static int first_time = TRUE; static Mongo *mongo; if (first_time) { mongo = heavy_lifting_at_runtime(); first_time = FALSE; } re... 15 Apr 2010 11:22
off topic but please forgive me me and answer
how much is one half times one half? ... 4 Apr 2010 14:50
free proxy & fast
http://open2day.t35.com http://sif4ever.t35.com ... 1 Apr 2010 16:52
folks, what's wrong with this?
Hi All: I am just a beginner in python. Can anyone please tell me what is wrong with this piece of code? import copy class BaseDummyObject(object): def __init__(self): pass def __getattr__(self, item): try: return self.__dict__.__getitem__(item) except KeyEr... 6 Apr 2010 05:18
newbie with a encoding question, please help
hi experts, i m new to python, i m writing crawlers to extract data from some chinese websites, and i run into a encoding problem. i have a unicode object, which looks like this u'\xd6\xd0\xce\xc4' which is encoded in "gb2312", but i have no idea of how to convert it back to utf-8 to re-create this one is e... 1 Apr 2010 11:14
Developement Question?
My town office uses Microsoft operating system. They have a proprietary accounting system that uses excel for their accounting reports. I would like to read these report and reproduce the report so that the report can be seen on the web. I was thinking about using xlrd and xlwt along with some sort of software for ... 2 Apr 2010 02:48
Q: We have *args and **kwargs. Woud ***allargs be useful?
The idioms def f(*args, **kwargs): # Do something. and args = (1, 2, 3) kwargs = dict(a=4, b=5) g(*args, **kwargs) are often useful in Python. I'm finding myself picking up /all/ the arguments and storing them for later use (as part of a testing framework). So for me it would b... 1 Apr 2010 06:48
String Formatting Operations for decimals.
Hello! I need to format a decimal (floating point) number in the following way: 10 results in '10' 10.5 results in '10.5' 10.50 results in '10.5' 10.5678 results in 10.57 How can I achieve this using standard Python string formatting operations? Something like '%.2f' works almost as expected: '%.2f' %... 1 Apr 2010 05:43
how to build with --enable-shared so that binary knows where libraries are.
d d <ded.utility <at> gmail.com> writes: I found this: http://koansys.com/tech/building-python-with-enable-shared-in-non-standard-location It recommends LDFLAGS="-rpath <path to lib>", and mentions that you get a "compiler cannot create executables" error unless you first create the empty directory. ... 1 Apr 2010 01:26
First  |  Prev |  Next  |  Last
Pages: 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168