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
2 views
Connect SSL error in APNs with python
I need to start python server for apple notification system. I trying to use diffrent libs from this link: https://pypi.python.org/pypi?%3Aaction=search&term=apns&submit=search
For example, ...
0
votes
0answers
4 views
cant download files uploaded tree.io
All the files I upload to the tree.io tickets, projects, etc cannot be downloaded,
I am getting a 404 error.
I am running tree.io in a cantos 6 box.
any ideas to get this working please ?
0
votes
2answers
15 views
Adding Loop in the File Command Python
ı wanna create a file which as :
X values:
1
2
3
4
5
.
.
.
999
to do that ı wrote that command but ;
error like :argument 1 must be string or read-only character buffer, not float,,
from numpy ...
0
votes
0answers
5 views
share variables and instances when using mod_wsgi
When using Apache/mod_wsgi, what is the right way or syntax to share some instances of an object and others global variables modules among all the process created?
does anyone have a piece of ...
0
votes
0answers
6 views
executing left slick on screen coordinates using Python
I have run a MATLAB program which detects the coordinates of the computer screen where a LASER light is falling. I have saved this data in a text file and a python program reads this file. Now I want ...
0
votes
0answers
4 views
Import error in IPython notebook only with coopr.pyomo
I'm using the mathematical modelling package coopr.pyomo successfully in both script files and interactively on the ipython console. However, if I try a simple import coopr.pyomo in an IPython ...
0
votes
0answers
6 views
Accessing android class through python code
I am working on a project where, I created an android app, when this app is running, a python script running in the background using sl4a, should be able to access a class of the app every few minutes ...
0
votes
0answers
7 views
Automating a website using Python webdriver. Retrieve IP value of a virtual machine using ifconfig command
We are automating a website using Python web driver. In that website we have to create a virtual machine and access the canvas of that virtual machine. We have to check the IP address of that virtual ...
0
votes
2answers
34 views
Testing a vector without scanning it
For a series of algorithms I'm implementing I need to simulate things like sets of coins being weighed or pooled blood samples. I'm currently implementing this as a binary vector. By a vector I mean ...
0
votes
1answer
15 views
how to delete a key in a list of dicts?
def get_all_cust_info():
"""function displays data as a list of dict of base data"""
reader = csv.DictReader(open("base data.csv", "rb"))
all_rows = list()
for row in reader:
...
-3
votes
0answers
20 views
Mysql import from script
I am using csv parsing for import csv files in my sql. I have few tables in Mysql. I wnat to import csv file in all table once. so i have use the below script. In that country is able to import but ...
1
vote
0answers
8 views
How to build a flask application around an already existing database?
I already have an existing Database that has a lot of tables and a lot of data in MySQL. I intend to create a flask app and use sqlalchemy along with it. Now I asked out on irc and looked around on ...
2
votes
2answers
24 views
Python - Creating a dictionary from external text file
So my file looks like this:
0 1
0 2
0 34
0 67
1 98
1 67
1 87
2 23
2 45
2 98
...
and so on. My question is, how can I make a dictionary from this text file that would look like this:
dict = ...
1
vote
1answer
25 views
Django contains None (or reversed contain)
I'm wondering if there's a non-customized (so no custom method) way to invert the results of __contain in the Django Admin URL getter.
Two ways I wish I could check
The value is equal to None
The ...
2
votes
2answers
62 views
How do I override the [] operator as in list[1:10]? [duplicate]
How can I implement a customized list so that I can override the implementation of list[a:b]?
Thanks in advance!