Tagged Questions

Python is a dynamic and strongly typed programming language that is designed to emphasize usability. Two similar but incompatible versions of Python are in widespread use (2 and 3). Please consider mentioning the version and implementation that you are using when asking a question about Python.

When debugging my Python code, I run a script through ipdb from the commandline, and set a number of breakpoints. Then I make some changes in one or more modules, and rerun. However, if I simply use ...

This function is supposed to take in a point parameter which will be used to find the closest point to it that lies on the line object. It doesn't make much sense to me because of the tests that are ...

I'm currently looking for a django plugin, that allows me to design API models right from an UI. Something like StrongLoop Arc. I checked out django-rest-framework docs and django-packages, but found ...

Given a document, I've to identify an emotion (among joy, sadness, love, fear, anger, surprise) in various parts of the document using method of synonym hops. i.e. by finding distance between words in ...

The problem:
I want a long running operation on the server which will get score updates from a web service every 90 seconds and save them to the database - if any changes in the scores have occurred. ...

I've been working on creating a store in Python. I would like to print out the dictionary I made that stores the items for the store, but by using a format I created by redefining __str__. Is there a ...

I'm currently using Python 2.7 and the requests module to upload files via HTTP POST requests in a little script of mine.
All things considered, the script is doing its job but sometimes the servers ...

I am trying to make a call to the SugarCRM v10 api to get the output of a report without having to log into the web interface and click the export button. I would like to get this report as data that ...

at the moment i am using the IDLE of python, but I am really missing the "basic" IDE features like Code Cempletion and Suggestion of used variables. IS there an IDE that supports these and works with ...

How would i refer to the first, second and third element in a list that is assigned to a key in a dictionary form? The dictionary is a students name with a list assigned to it with their scores in. ...

I am building an application with PyQt4 and Python3 that is using a QTreeWidget to give users a way to select what portions of their data that they want interact with after it has been loaded into the ...

I am trying to execute a Python script that uses Python For .Net (http://pythonnet.sourceforge.net/) to load a C# library called "Kratos_3.dll" which is in the same folder as the script but the file ...

I really don't know what I'm doing. I'm trying to run a bioinformatics program that I know is written in python, which I have one class worth of experience in a while ago. It requires installing a few ...

I'm having issues getting a python script to run through PHP. I can run my python script manually with no problems, but cannot run it through PHP. I am calling the PHP script from a web page that I ...

I'm 14 and doing Python (3) in GCSE Computer Science, and in the Controlled Assessment, one of the tasks is to score a pupil's name and test scores into a file, which I've done, but for each pupil, ...

I have used python 3 to write a forking server which will accept many clients (I have not set a limit of number of clients). Each client will be assigned an index value in the server in order of their ...

I'm using numpy to work with a time series that has a number of bad_values=-9999.0 . For example:
vals = [3., 352., -32.0e-3, -9999.0, 35., -9999.0]
I have a number of different conditions that the ...

I'm a QA tester who is new to python, trying to create a script to create multiple XML files from a CSV file containing various fields. I feel I am close to creating this program. Unfortunately,I have ...

I have a list in python that contains strings like['abc','defg',xyz','lmnopqrst']. I need to iterate through the list and extract elements in the 2nd and 3rd position and create another list with just ...

The following is a piece of code that I have been working on for awhile. I've been able to compile and run the code without error. However, I am having a difficult time with passing a variable from ...