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
0answers
3 views

Python tkinter exception handling using tkinter callwrapper

I want to catch all the exceptions from tkinter application and dump them in a text file. I am using tkinter callwrapper method for the same but it doesn't seems to work. In the belowcode NameError ...
-1
votes
0answers
20 views

is there a v8 like engine for python language?

I would like to know if there is a high-performance engine for Python that could be embedded in c++ the same way as v8 engine is used for javascripts. P.s: I have already used boost::python to ...
-1
votes
0answers
12 views

connecting python code from rdesktop full screen

I have a python code running in my linux machine. Through that code i am connecting to a remote desktop using rdesktop. I am using pygtk. I have key event in the python code. But that is not working ...
-4
votes
1answer
30 views

Python Game and libraries [on hold]

I have a very general question about an upcoming assignment in Python. I need to write a game in python. it will involve upload an image to the screen, move with ASWD, mouse click to shoot and space ...
2
votes
2answers
27 views

Is there any thread dump method with Python like Java thread dump?

Currently I want to find any Python tool can let me monitor another Python process' threads status. I know there is already a similar question But the solution does not work in my case as it only ...
-1
votes
2answers
33 views

Using numbers in a text file, in an equation

So here is my dilemma, I need to use a file that contains: 0.01 0.005 0.0001 0.1 I need to pull these numbers out, assign them to separate variables and then use those in an equation. Could ...
1
vote
4answers
16 views

Merging PDF's with python pypdf and deleting merged files

I'm trying to write a program in python that takes a PDF file and appends to it first any pdf which includes the name of a fruit to it(Mango, Orange or Apple), then appends the pdf's with the names of ...
0
votes
0answers
7 views

Changing Advanced Video settings when uploading with the Youtube API

I have successfully been able to upload videos to my channel using the Youtube API v3 in Python. I can set the basic settings such as title, tags, description, etc. However, I was wondering if there ...
1
vote
1answer
16 views

how to invoke super keyword with argument in the child class in python?

I have the following code. In the sublcass C, I have commented out a line that works fine. I want to know how to use super keyword that takes parameters. The one I have below does not work, which is ...
-4
votes
4answers
31 views

having trouble multiplying lists in python

I'm having trouble with multiplying two lists by each other, with one being a known list and another being one that changes. thelist = [1,10,2,54,32,12,3] lists i'm trying to multiply thelist by: ...
4
votes
3answers
31 views

Why does the child class does not inherit the method from parent class in python in this example?

I have the following code. class Foo(object): def __init__(self): self.__baz = 40 def foo(self): print self.__baz class Bar(Foo): def __init__(self): ...
1
vote
1answer
19 views

Python CSV Module Issue With JSON

I am using the python csv module to create a csv where some of the values are json strings. However the csv module's quoting is totally breaking the json: import csv import json writer = ...
1
vote
3answers
26 views

How to get frequency of specific character in a list?

I am very new to Python. I have a stored a list of names (first and last) as strings from my text file into a list in python. What I'm trying to figure out how to get the frequency of the second ...
2
votes
2answers
33 views

Python 3: Comparing tuples in a master list?

Alright, this has been the source of a major headache for me. I have a list, and each element in the list is a tuple, and each tuple contains exactly two elements (a string, and a dictionary). Here ...
1
vote
2answers
25 views

How to apply self in method parameter in Python

Actually , I want to write def w_cell(self, r, c, val, style=XLS.get_cell_stlye(self)) But it cannot, and show me the error NameError: name 'self' is not defined How could I set the default ...

15 30 50 per page