First  |  Prev |  Next  |  Last
Pages: 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
Unable to install numpy
Hi all, I just download Numpy, and tried to install it using "numpy-1.4.0- win32-superpack-python2.6.exe" I get an error: "Python version 2.6 required, which was not found in the Registry" However, I am using Python 2.6 every day. I'm running Windows 7. What can I do? ... 2 Feb 2010 15:04
using super
class SubClass(Base): colour = "Red" def parrot(self): """docstring for Subclass""" return super(Subclass, self).parrot() I'm not a big fan of super, but I'm still wondering if return super(self.__class__, self).parrot() would have made it. What if Subcla... 19 Jan 2010 07:55
enhancing 'list'
Consider this a wish list. I know I'm unlikely to get any of these in time for for my birthday, but still I felt the need to toss it out and see what happens. Lately, I've slinging around a lot of lists, and there are some simple things I'd like to do that just aren't there. s.count(x[, cmp[, key]]) - return... 19 Jan 2010 16:54
A simple-to-use sound file writer
Alf P. Steinbach wrote: * Steve Holden: [...] With the goal of just a rough approximation you can go about it like this: 1. Divide a full cycle of the sine wave into n intervals. With sine wave frequency f this corresponds to n*f sample rate for digital representation. 2. Each i... 25 Jan 2010 10:31
dict's as dict's key.
I have a type of objects that have complicated enough properties to warrant a special class for its type. The class has built in dictionary for all the properties. Something along the line of a = ctype({"poker":True}) b = ctype({"footbal":True, "gender":"m"}) c = ctype({"chess":True, "residence":"Amsterdam"}) ... 17 Jan 2010 12:46
BeautifulSoup
Hi, I am new to Python. I'd like to extract "a" tag from a website by using "beautifulsoup" module. but it doesnt work! //sample.py from BeautifulSoup import BeautifulSoup as bs import urllib url="http://www.d-addicts.com/forum/torrents.php" doc=urllib.urlopen(url).read() soup=bs(doc) result=soup.findAll(... 15 Jan 2010 19:25
Undo/Redo in PyQt
Hey! I am trying to implement the undo and redo facility in pyqt. I have gone through some sites and was wondering whether iyou always need to create subclasses and their definitions for the undo/redo action. My program currently has a single window in which the user enters information which is used to update a ... 13 Jan 2010 18:53
Is python not good enough?
I'm a little confused. Is python not good enough? for google, enhance python performance is the good way better then choose build Go language? Go language try to merge low level, hight level and browser language. Those I'd like to see it on python.. ... 25 Jan 2010 12:46
decode(..., errors='ignore') has no effect
Hi, I try to decode a string,e.g. u'M\xfcnchen, pronounced [\u02c8m\u028fn\xe7\u0259n]'.decode('cp1252', 'ignore') but even thoug I use errors='ignore' I get UnicodeEncodeError: 'charmap' codec can't encode character u'\u02c8' in position 21: character maps to <undefined> How come? Thanks, Jens ... 12 Jan 2010 11:47
problem with multiprocessing and defaultdict
I'm using a class to read some data from files: import multiprocessing from collections import defaultdict def SingleContainer(): return list() class Container(defaultdict): """ this class store odd line in self["odd"] and even line in self["even"]. It is stupid, but it's only an example... 12 Jan 2010 08:00
First  |  Prev |  Next  |  Last
Pages: 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225