Python is a dynamic and strongly typed programming language designed to emphasize usability. Two similar but incompatible versions of Python are in widespread use (2 and 3). If you have a version-specific Python question consider using the python-2.7 or python-3.x tags in addition to the python tag.

learn more… | top users | synonyms (3) | python jobs

0
votes
0answers
2 views

Applying regex to different parameters - Python

I'm always aware of asking regex questions, but this one is really interesting: I have a URL and a file name, for example: filename = "foobar.png" url = "https://foo.com/files/foobar_[thumbnail ...
0
votes
0answers
2 views

applying function to all columns in an numpy array

I am extremely new to numpy. Just wondering why does this not work. print items['description'] Yields 0 Продам Камаз 6520 20 тонн 1 ...
0
votes
0answers
9 views

Python Consistently Crashes after ~2 minutes of running

I've been working on OpenCV for gesture detection, and a few days ago python just randomly started crashing. It happens about 2 minutes after I start running the app, and I don't really know why. Can ...
0
votes
0answers
8 views

Python: Tokenization and evaluation of math expressions

PREFACE: I want to do this without any libraries like sympy and built-in functions like eval() because I want to do this to understand how CAS's work. I've been working on a simple Computer Algebra ...
0
votes
0answers
2 views

Removing QLineEdit proxy widget from QGraphicsScene on returnPressed

What I would like to do is have a QLineEdit appear in my QGraphicsView when a QGraphicsTextItem is added to the scene. The line edit is only being used to set the text of the QGraphicsItem when ...
0
votes
4answers
32 views

Function is printing multiple times

I've written a function that takes as input a positive integer n and recursively returns a list of factorial values 1!, 2!, . . . , n!. However, I can't get it to print the list just a single time. ...
0
votes
0answers
9 views

Is there a way to open more then one program at a time in python.

I want to write a python program that with one click I can open several different files, gmail and I.E. to a particular web address at work. I know the following will open calculator but once it ...
0
votes
0answers
6 views

Improve speed of spark app

This is part of my python-spark code which parts of it run too slow for my needs. Especially this part of the code, which I would really like to improve it's speed but don't know how to. It currently ...
0
votes
0answers
2 views

using devstack install tacker got sqlalchemy.exc.InternalError

when i install tacker using devstack i got this err http://docs.openstack.org/developer/tacker/install/devstack.html Install from master 2016-06-12 10:32:57.827 | INFO [alembic.runtime.migration] ...
-1
votes
1answer
14 views

make multiple lists based on pattern python

I have a .txt file with info on just about each line. I'd like to create a list of everything, and have each list item be a list with each line of info separated by a br. visually, im given this: 234 ...
1
vote
0answers
6 views

How can I tell between these two buttons in Selenium? (Picture of HTML inside)

I'm running Selenium on Python and I can't figure out how to tell these buttons apart so that I can click one with Selenium. I need to click option 1. I can't figure out how to get any important data ...
0
votes
2answers
19 views

List comprehension - Iterating over nested lists

I am trying to write a function that searches nested lists in their entirety to return all lists that contain a certain word, but this only returns None word = "what song?" def searchSong(mp3_list, ...
0
votes
0answers
11 views

Using NLP to Extract Information from check-ins and Comments

We're CS students and we're working on a recommendation system for our GP. Our data set contains users and the places they have visited, we want to use NLP to translate those places into activities. ...
0
votes
0answers
3 views

Operation timed out error in Cassandra cluster

My cluster size is 6 machines and I often times receive this error message and I don't really know how to solve this: code=1100 [Coordinator node timed out waiting for replica nodes' responses] ...
0
votes
0answers
7 views

how to Add custom sizes to order items in Cartridge

I am learning Mezzanine+Cartridge as I am trying to make a shop site for men custom suits. I've been looking into Cartridge shop source code and trying to figure out how to allow customers to add ...

15 30 50 per page