Tagged Questions
Python is a dynamically and strongly typed programming language whose design philosophy emphasizes code readability. Two significantly different versions of Python (2 and 3) are in use. Please mention the version that you are using when asking a question about Python.
0
votes
1answer
8 views
termination character of string in python
is there any termination character like '\0' in C for string in python? we can print the string character by character using the following code in C.
while (ch[c] != '\0')
{
putchar(ch[c]);
...
0
votes
0answers
3 views
Sorting a file in Python by columnar patterns
I have the following type of file to deal with via Python:
key1 value1 value3 value5
key2 value2 value6
key3 value1 value5
key4 value4 value6 value5
key5 value4 value5 value6
key6 value3
....
keyN ...
0
votes
0answers
7 views
copy (duplicate) files in python
I want to copy all files from 2 directories to another, but when the files have the same name they get copied once(by one dir. not both) in the destination directory.
Here is the code:
def ...
0
votes
0answers
8 views
How to scrape dynamically generated data in this website?
Here is the website I want to scrape http://www.quickbid.com.tw/
I wish I can get class="timestamp" into a variable in python so that I can parse "timestamp" in the way I like.
I've tried using ...
0
votes
2answers
11 views
What's the fastest way to merge multiple csv files by column?
I have about 50 CSV files with 60,000 rows in each, and a varying number of columns. I want to merge all the CSV files by column. I've tried doing this in MATLAB by transposing each csv file and ...
0
votes
0answers
5 views
Getting “importerror no no module named gnuradio” when trying to execute ./uhd_fft
I have followed instructions out lined here:
http://forums.nuand.com/forums/viewtopic.php?f=9&t=2804
and installed GNU Radio from GIT repo (scroll down to the section that says " Building ...
0
votes
0answers
10 views
AttributeError at /login/ 'bool' object has no attribute 'rindex' - Django login issues
I'm getting the following error in my browser:
Request Method: POST
Request URL: http://127.0.0.1:8000/login/
Django Version: 1.6
Exception Type: AttributeError
Exception Value:
'bool' object ...
0
votes
0answers
14 views
url template tage variable not being parsed django
I am trying to dynamically generate links in my template of the form ..../hub/username/ but am always getting back only ..../hub for some reason. I have read through the docs several times and it ...
0
votes
0answers
9 views
Doing Image transforms inside an UploadHandler and saving it to the Blobstore
I have a page on GAE written in Python that (1)uploads a jpg to the the blobstore. That part works. I need to now do an (2)I'm Feeling Lucky Image transform, then (3)store it as another blob in the ...
0
votes
1answer
28 views
If I use my personal machine as a web server am I putting my local data at risk?
I am considering purchasing an imac with the thought of dual-purposing the machine. I'd like to use it as a home computer, but also host a personal website or two using OSX Server.
By using my ...
0
votes
0answers
14 views
Python : How do GTK buttons work?
Two very similar methods in my code behave differently. This is driving me litterally crazy :
Why can the method this_method_can(self, button) (A click on the button) access the GTK objects in its ...
-1
votes
0answers
25 views
Working with array and function
I am fairly new to this and would like to know if anyone can help me out. I have 2 problems that I need help with.
First one is this one:
Create an array called numbers that has the numbers from ...
0
votes
0answers
14 views
OpenGL ES 1.1 Python: flashing
I've been doing all the programming stuff from a pretty long (or short?) time.. Been fluent with 2D Graphics like PyGame etc... but then decided to learn OpenGL..
Since I have a Symbian S60v5 phone ...
0
votes
1answer
9 views
Using session in flask app
I'm sure there is something that I'm clearly not understanding about session in Flask but I want to save an ID between requests. I haven't been able to get session to work so I tried a simple Flask ...
0
votes
1answer
45 views
How to copy files from list of files in python
I get the output of following program as ['file\new.txt','file\test\test.doc',...]
How can I copy the files from result keeping the same directory structure.
import re
import shutil
allfileaddr = []
...