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
0answers
3 views
Xdotool : need to modify ( WID=`xdotool search “Mozilla Firefox” | head -1` ) so it's more specific
This code will find a firefox window and then refresh it.
WID=`xdotool search "Mozilla Firefox" | head -1`
xdotool windowactivate --sync $WID key --clearmodifiers ctrl+r
What i need is to make it ...
1
vote
0answers
6 views
Django - best practice for getting ID from querystring into edit view
I'm wondering what the acceptable best practice is for pulling an id from a url for use in the edit view. Most example code I see uses slugs, which I don't need to deal with because SEO is not a ...
-1
votes
0answers
8 views
XPath Scrapy Result issues - OR statement?
I am trying to scrape the "Team Batting" table on this: http://www.baseball-reference.com/teams/BOS/2013.shtml web page. I am having two issues.
I am only getting player rank up to 34, not the ...
0
votes
0answers
5 views
In Matplotlib what is the Polar equivalent of get_xdata?
I found the following example of selecting data with the mouse but when I use the onpick function with a polar plot I get the following error:
xdata = thisline.get_xdata()
AttributeError: ...
0
votes
0answers
6 views
Installing new modules in Python on Windows
I'm new to Python and I'm having a very difficult time adding a new module in so I can use it. I am using a Windows system with Python 3.2.5.1.
The module I would like to use is UniCurses 1.2, but ...
0
votes
2answers
8 views
Time filtering in django model
I wish to perform an operation in the django model where i extract the last 10 minutes of entries and do some data processing on it and return a single value.
I have tried the following code bellow ...
0
votes
2answers
17 views
increase insertion speed in python
I have a script in django which i am running on terminal to update the field values in database ,
there is about 3000 records to be updated , it updated but it takes so much time.
Here is the code:
...
1
vote
2answers
11 views
python accessing the value of the raw_input as parameter
Here is the example of the problem i am having it gives a duplicate of what i have entered for raw_input how do i access the value of raw_input and use it as a parameter of the function any one can ...
0
votes
0answers
7 views
Google App Engine shows notice to Upgrade Python to 2.7
I hope this posting is in the right location.
I am very new to Google App Engine, in fact its part of a iOS Application that I purchased from another developer, so bear with me please.
The iOS ...
0
votes
0answers
5 views
What is meant by OpenERP fields.reference?
I saw this code segment in subscription.py class. It gives selection and many2one fields together for users. I found in openerp documentation and another modules also but i never found any details or ...
-2
votes
0answers
22 views
CSRF Token Being Set Occassionally
When I access my site, the CSRF token is being set (and written to the cookie) only occasionally. Seemingly with no consistency, document.cookie is either full (with the CSRF written) or empty, and I ...
-2
votes
0answers
9 views
Running Secure State Termineter in Windows 7
I am newbie in Python. I came across secure state Termineter application for reading ANSI Meters through optical port. And I followed guidelines provided. But I am not able to run this.
I went to ...
0
votes
0answers
11 views
Can I Pre compile PyCrypto for the various Mac OS versions?
I'm distributing a python application that installs on MacOS. This application is pure python and has a dependency on Paramiko. Paramiko pulls in PyCrypto which needs to be built on the target ...
-2
votes
2answers
24 views
Trying to take the average of strings in a list and compare there counts in list to input file
My list is currently
['AA11','AA11','AA22','AA33','AA44','AA44']
These are values of mine that through functions I returned and they work, I have a (count) for len of my original data file(AA** 10 ...
3
votes
1answer
22 views
Exporting Python List into csv
So I am trying to create a truth table that I can export out into either a csv or excel format. I am a newbie to Python, so please bear with me if my code is horrible.
I started with this as my code ...