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.

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

0
votes
2answers
19 views

Assigning variables in a loop in Python

I have a Wordnet text entry that i am trying to assign variables to. I have assigned any variable that only occurs once but in some text lines there might be multiple words. this leads to a problem as ...
0
votes
1answer
3 views

PyQt Clear the menubar

Is there a quick way to clear the menu bar i.e. Remove all menus in PyQt. The reason I ask is that I am developing a modular application. Each module provides it's own menus and gives a weighting to ...
0
votes
1answer
12 views

how to embed a code editor in a page?

Problem I want to create a page with a code editor embedded in it.I looked up codemirror but i am having problems using it as i am new to java script. So I am looking for an easy way to embed a ...
0
votes
4answers
54 views

Python Brute forcing (Very basic)

I've just started learning python and i'm trying to create a small brute force program that will ask for an input from the user (password), brute force it then check if it matches. My problem: I am ...
0
votes
2answers
26 views

Python: Split a list into nested list if an item is greater than a define length

I would like to split a list at points where an item is over a certain length. a simplified version of my data is: li = [1,2,3,4000,5,6,7,8,9000,10,11,12,1300] the outcome I am trying to achieve ...
0
votes
0answers
10 views

Django Multiple Authentication Backend for one project, HOW?

Need serious help here. I have an application written in django/python and I have to extend it and include some other solution as an "app" in this application. For example my app to be integrated is ...
0
votes
2answers
18 views

Compiling trivial python program to javascript using cython and emscripten on mac

I am trying to generate javascript from python using cython and emscripten. hello.py: print 'Hello world.' Then I compile this to c using cython >>> cython --embed hello.py -v This ...
0
votes
0answers
30 views

Select arrays for mapping in python

I have two different np.arrays with the same shape (89,36) From the first one I get local maxima that allow me to select the rows, I know there's like a 2D local maxima posted around, but I need to ...
0
votes
0answers
9 views

Non breaking spaces in RstDocument in Kivy

Is there any chance to perform non breaking spaces in RstDocument? I need move one letter words to next line if this word is on the end of line. I tried define Substitution: .. |nbsp| unicode:: ...
0
votes
1answer
29 views

string split() in python 2.6

I'm facing a very simple situation while using string split() in python 2.6 issue is I have a line in a file that reads bacarat,baccarat and then calling split(",") on it. which is resulting ...
1
vote
3answers
35 views

python replace fileinput with seek

I have got a file which terminates with </END> there are chances the file may contains blank lines after </END>. I do not care about blank lines. But the last non blank word is ...
1
vote
1answer
12 views

Convolution and Deconvolution in Python using scipy.signal

I am trying to do some (de)convolution with audio samples. I have one sample s and the same sample with some filters added on top of it s_f. Both samples are represented as numpy arrays. I want to ...
0
votes
2answers
28 views

Python strings and str() method encoding and decoding

I see that the Python manual mentions .encode() and .decode() string methods. Playing around on the Python CLI I see that I can create unicode strings u'hello' with a different datatype than a ...
1
vote
1answer
17 views

Reading an Excel file in python using pandas

I am trying to read an excel file this way : newFile = pd.ExcelFile(PATH\FileName.xlsx) ParsedData = pd.io.parsers.ExcelFile.parse(newFile) which throws an error that says two arguments expected, I ...
1
vote
2answers
18 views

error in django called module not found

I made one project called mysite and I created using startapp called books.I made the admin site and it worked successfully. But when I tried to add models to my admin site the error occurred ...

1 2 3 4 5 13010
15 30 50 per page