|
First
|
Prev |
Next
|
Last
Pages: 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435
trouble with replace I have a string (xdata) and theres a newline after every 17 characters of the string. I was wondering how I can replace multiple substrings multiple times within a string? To put it another way, this is what i want to do. Substring to find ("abcdef") replace it with ("highway") search again, substring to find ("... 13 Aug 2006 05:47
iterator wrapper Hi, I have a following task: let's say I do have an iterator returning the some objects: i=<iterator> i.next() 1 i.next() 'abgfdgdfg' i.next() <some object> For some reason I need to wrap thos objects with a list. I thought I could have a smart lamda or simple function class yielding fo... 12 Aug 2006 14:02
Tab delimited file > However as far as I know Python does not allow you to easily change a specific line in a text file. You have to place the whole file to memory, change what you need to and then write the file back after deleting the previous information. Assuming this is true, how do i find where the tabs are in the ... 11 Aug 2006 19:36
hide python code ! hi can we hide a python code ? if i want to write a commercial software can i hide my source code from users access ? we can conver it to pyc but this file can decompiled ... so ...!! do you have any idea about this ...? --------------------------------------- First Iranian Open Source Community : www.python.i... 24 Aug 2006 10:25
PIL Image transform Okay, so here is the situation. I have need to do some on-the-fly image creation. I have everything working great except for the last part of it, applying a perspective type transform to the image. The transform will take a rectangular 2D image and transform it to a 3D representation in 2D. Please see the l... 12 Aug 2006 05:01
ImportError: math.so: undefined symbol PyFPE_jbuf Hello! I'm trying to install the web application written with Python, and have the trouble with module math.so: # lwp-request http://localhost/site/code/edit.py Mod_python error: "PythonHandler edit::handler" Traceback (most recent call last): File "/usr/local/lib/python2.3/site-packages/... 8 Aug 2006 13:42
Question on try/except While perusing sre.py in the standard library, I came upon this snippet of code in the _compile() function definition: try: p = sre_compile.compile(pattern, flags) except error, v: raise error, v # invalid expression Is there some particular use in catching an exception and immedi... 8 Aug 2006 01:23
distutils setup.py I'm having trouble getting the data_files argument of my setup.py to work with "python setup.py sdist" under Windows XP. Here is the data_files argument that I pass to setup(). data_files = [\ ('res','app.ico'), ('', 'preferences.xml'), ('res', glob.glob(os.path.join(... 7 Aug 2006 16:50
Snake is eating itself Diez B. Roggisch wrote: Kay Schluehr wrote: Tomi Lindberg wrote: Hi, With the following function definition, is it possible to create an instance of class C outside the function f (and if it is, how)? def f(): class C(object): def __init__(se... 2 Aug 2006 10:53
Math package I want to write a program which would have a 2 dimensional array of 1 billion by 1 billion. This is for computational purposes and evaluating a mathematical concept similar to Erdos number. Which is the best package for such programs (that would be fast enough). Every help is appreciated. Thanks ... 29 Jul 2006 18:55 |