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.
0
votes
0answers
1 views
SSLError with PRAW?
I'm trying to get started with PRAW but I'm having issues using login().
I have the following piece of code:
import praw
r = praw.Reddit('This is a test bot')
r.login('myRedditUsername','password')
...
0
votes
0answers
2 views
Trouble understanding how to use findNextSiblings
I have some html that I am parsing with BeautifulSoup ...
<div class="book-page-sidebar">
<h4>Production details</h4>
<dl class="product-details clearfix">
...
2
votes
0answers
11 views
using Python.h in c++
I have been trying to include Python.h in c++ file.
#include "Python.h"
int main() {
return0;
}
This gives
fatal error: Python.h: No such file or directory
compilation terminated.
upon ...
0
votes
0answers
5 views
Python SOAP Service, A good multithread/multiprocess way
I am using Spyne to implement a SOAP service.
I run this service using built-in wsgi server. Here is the code:
# Logging
import logging
logging.basicConfig(level=logging.DEBUG)
...
0
votes
1answer
9 views
Python Tkinter Sibling windows interacting
Well I am 1000 lines into my first Python / Tkinter Project. Time for some pointers to keep me on the path.
So I want to have the Display Layout button initially disabled (greyed out). After a file is ...
-1
votes
0answers
17 views
Parsing file in Python and make a list or dictionary having specific IP address
I have a text file which look exactly like as shown below. I wanted to have list or dictionary of each IP block which has particular ip ip address like 223.180.66.176.44044 (i.e Line whch starts with ...
-2
votes
2answers
25 views
Regular Expression when containing quotes in python
I have the following line that I scrape directly off an html page. I want to process it to extract information from it:
var quoteDataObj = ...
0
votes
0answers
7 views
django override module class
I am using a module, from which I need to extend a class.
#name.module.py
""" Lots of code """
class TheClassIWantToExtend(object):
"""Class implementation
"""More code"""
so in my django root, ...
0
votes
1answer
14 views
Regular expression to extract filename broken on '++' in filename
I'm working on a utility to assist others in resolving dependency hell. I can extract the UNIX path output by ldd but in one case my regex is not able to handle the presence of 2 +'s in the filename. ...
0
votes
0answers
5 views
Display elapsed time in pygame and countdown. Tabata timer with pygame
I'm trying to create a Tabata or HIIT timer with pygame. Essentially I want to count up and down in seconds and display the time either elapsed or remaining. I modified code I found here ...
2
votes
1answer
10 views
How does one index a numpy array using another numpy array that holds the indices?
This should be simple task but I am ashamed to admit I'm stuck.
I have a numpy array, called X:
X.shape is (10,3)and it looks like
[[ 0. 0. 13. ]
[ 0. 0. 1. ]
[ 0. 4. 16. ]
..., ...
0
votes
0answers
4 views
error using a script that uses tweepy compiled by pyinstaller [errno 185090050]
I compiled a program that streams from tweepy. The .py file works perfectly in the command prompt and in the python interpreter, but when I try to run the .exe file, I get the following error in the ...
0
votes
0answers
8 views
On multiprocessing.Queue.join_thread()
From python docs:
http://docs.python.org/2/library/multiprocessing.html#multiprocessing.Queue
By default if a process is not the creator of the queue then on exit it will attempt to join the queue’s ...
1
vote
1answer
11 views
How do I catch import errors from read_stata function in pandas?
I am trying to write a function that imports data from a Stata .dta file using the pandas read_stata function. I would like to detect any problems with the read process (for example, file doesn't ...
-1
votes
1answer
8 views
Why is BeautifulSoup not finding a specific table class?
I am using Beautiful Soup to try and scrape the Commodities table off of Oil-Price.net. I can find the first div, table, table body, and the rows of the table body. But there is a column in one of ...