text
stringlengths
226
34.5k
How to send data generated from python to jquery datatable for rendering Question: **A] Summary of the problem:** Using jquery datatable (<http://www.datatables.net/>) on the html page, Want to send data generated by query from python to javascript, so that it can be printed in the table. If someone can provide a samp...
Pygame screen freezes when I close it Question: The code loads up a pygame screen window, but when I click the X to close it, it becomes unresponsive. I'm running on a 64-bit system, using a 32-bit python and 32-bit pygame. from livewires import games, color games.init(screen_width = 640, screen...
Create dynamic updated graph with Python Question: I need your help to write a script in Python that will take dynamically changed data, the source of data is not matter here, and display graph on the screen. I know how to use matplotlib, but the problem with matplotlib, that I can display graph only once, at the end ...
How to mock a class in Python? Question: I'm new to Python, but I used to work with ruby. I'm trying to do some tests with Python but I can't figure out how I mock a class for my test. Let's say I have this real class: from database import DB class Foo: def do_it(self): x = {'key': 'v...
fitting n variable height images into 3 (similar length) column layout Question: I'm looking to make a 3-column layout similar to that of [piccsy.com](http://piccsy.com/). Given a number of images of the same width but varying height, what is a algorithm to order them so that the difference in column lengths is minimal...
how to run python script to display webpage for auto login on one click Question: I have my python script which I guess is fine. I want to keep the script on the desktop and upon one click I want the script to run and open a browser(IE or firefox or chrome) and perform the script i.e. to log-in to a website. ...
Is it possible to inject shell/python commands from a configuration file? Question: Say you have a some meta data for a custom file format that your python app reads. Something like a csv with variables that can change as the file is manipulated: var1,data1 var2,data2 var3,data3 So if the u...
List of all imports in python 3 Question: How to find out list of all available imports in python 3 via program? I tried this at first, but couldn't understand what it returned import sys sys.modules I think this isn't the way, although this struck my mind first. I searched the web and foun...
Transfer Ipython namespace to ipdb Question: I am in the middle of an ipython session. I've loaded a module `foo` which contains a function `foo.bar`. While working, I notice that `foo.bar` gives some weird output when I feed it some input `x`, where `x` is a variable in my local ipython scope. I would like to investig...
A help in concept and a database query question (Django/Python) Question: I am trying to build a kind of news website for learning purposes. class NewsCategory(models.Model): category = models.CharField(max_length=50) Note: A category can be Soccer, Tennis, business ... User can register to...
Scraping with Python? Question: I'd like to grab all the index words and its definitions from [here](http://pali.hum.ku.dk/cpd/search.html). Is it possible to scrape web content with Python? Firebug exploration shows the following URL returns my desirable contents including both index and its definition as to 'a'. ...
Why does python thread consume so much memory? Question: Why does python thread consumes so much memory? I measured that spawning one thread consumes 8 megs of memory, almost as big as a whole new python process! OS: Ubuntu 10.10 Edit: due to popular demand I'll give some extraneous examples, here it is: ...
array filter in python? Question: For example, I have two lists A = [6, 7, 8, 9, 10, 11, 12] subset_of_A = [6, 9, 12]; # the subset of A the result should be [7, 8, 10, 11]; the remaining elements Is there a built-in function in python to do this? Answer: If the ord...
ContentHandler is undefined Question: I'm trying to learn Python's SAX module from O'Reilly's _[Python and XML](http://oreilly.com/catalog/9780596001285)_. I'm trying to run the following sample code, but I keep getting an error and I can't figure out why. The first file is `handlers.py`: class ArticleH...
Sending progress value to progress bar in python Question: In my game I have two modules, **island.py** which loads the islands into my game and the second module is **gui.py** which handles the gui widgets before game starting. My problem is how to send the progress values from the island.py module to the progress bar...
Capturing/Return the output message of python logging Question: Is there a way of obtaining/returning the message from a call to logging.debug()? Thanks Answer: Yes, providing a mechanism to easily capture and redirect event details without requiring any modification to the code emitting the events is the entire pur...
Twisted XML-RPC error Question: I get an exception on both client and server side when I run the first example at <http://buildbot.twistedmatrix.com/builds/sphinx- html/291-15849/projects/web/howto/xmlrpc.html>. The server code I used is below: from twisted.web import xmlrpc, server class Exampl...
ImportError: No module named BeautifulSoup Question: I have installed BeautifulSoup using easy_install and trying to run following script from BeautifulSoup import BeautifulSoup import re doc = ['<html><head><title>Page title</title></head>', '<body><p id="firstpara" align="center...
How to resolve socket error when connecting to imap.gmail.com via port 993 using imaplib? Question: import imaplib s = imaplib.IMAP4_SSL('imap.gmail.com', 993) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.6/imaplib.py", line 1138, in __init__ ...
Python FTP uploading bar Question: I am uploading a file with FTPLib in python and have a cli loadingbar with [progressbar 2.2.](http://pypi.python.org/pypi/progressbar/2.2) I need to make a loading bar to tell the progress of the upload. Does anyone have any info on the topic? Thanks, giodamelio * * * As Senthil K...
efficient python array to numpy array conversion Question: I get a big array (image with 12 Mpix) in the array format from the python standard lib. Since I want to perform operations on those array, I wish to convert it to a numpy array. I tried the following: import numpy import array from datet...
Pygame, simple physics engine, how to hold points between planes? Question: I'm trying to write [this](http://www.wildbunny.co.uk/blog/2011/04/06/physics- engines-for-dummies/) tutorial in Pygame(Python) and having problems about holding points between planes. My code is: [fiz2.py](https://github.com/osa1/pygame- play...
Using doctests from within unittests Question: I typically write both unittests and doctests in my modules. I'd like to automatically run all of my doctests when running the test suite. I think this is possible, but I'm having a hard time with the syntax. I have the test suite import unittest class ...
python regular expression tag Question: I want to change this string `<p><b> hello world </b></p>. I am playing <b> python </b>` to: `<bold><bold>hello world </bold></bold>, I am playing <bold> python </bold>` I used: import re pattern = re.compile(r'\<p>(.*?)\</p>|\<b>(.*?)\</b>') ...
Python authentication system for a framework with no authentication built in (like web.py)? Question: I'm looking at building a website using Web.py, and there is no built-in authentication system. Having read various things about authentication on websites, a common theme I keep hearing is "Don't roll your own, use so...
Get revisions of a spreadsheet with gdata Python api Question: I'm trying to get the revisions of a spreadsheet using the key, but it just returns "Invalid resource id". from gdata.alt import appengine from gdata.spreadsheet import service from gdata.docs.client import DocsClient self.ss...
How to completely reset Python stdlib logging module in an ipython session? Question: I'd like to make repeated calls to Python scripts using %run in an ipython session, and for each of those scripts to log based on cmdline arguments passed via %run. For example while debugging cmd.py I might over time want to run: ...
Why is an MD5 hash created by Python different from one created using echo and md5sum in the shell? Question: A Python MD5 hash is different than the one created by the md5sum command on the shell. Why? >>> import hashlib >>> h = hashlib.md5() >>> h.update("mystringforhash") >>> print h.hexdi...
Add file name as last column of CSV file Question: I have a Python script which modifies a CSV file to add the filename as the last column: import sys import glob for filename in glob.glob(sys.argv[1]): file = open(filename) data = [line.rstrip() + "," + filename for line in ...
Python networking client, trying to respond to server responses Question: The application is a WxPython client/server setup that has multiple clients connect to the server and engaging in duplex networking protocol. I've had Twisted hooked up with AMP in the past, but it did not fully cut it for the architecture in th...
mysqldb interfaceError Question: I have a very weird problem with mysqldb (mysql module for python). I have a file with queries for inserting records in tables. If I call the functions from the file, it works just fine; but when trying to call one of the functions from another file it throws me a > _mysql_exception.I...
Django upgrade succeeds, then reverts back Question: My django version is 1.1 rgross@fun:~$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import django >>> print django.VERSION ...
python print contents from wx.ListCtrl Question: I have a list created as self.statusListCtrl = wx.ListCtrl(self.panelUpper, -1, style=wx.LC_REPORT|wx.SUNKEN_BORDER) I add data to this list using self.statusListCtrl.Append([datetime.datetime.now(),action,result]) When my proces...
Detecting imported objects Question: Given the source code of a Python file, I would like to detect all imported objects. For example, given this source: import mymod from mymod2 import obj1, obj2, obj3 from mymod3 import aobj I want to get: [('mymod2', 'obj1', 'obj2', 'obj3'...
Move required files where they need to go Question: I'm working on a Python script that unzips a compressed directory and installs some files. When you unzip the compressed file, there could be files like `./usr/bin/package` or `./var/lib/package`. The unzipped directory contains the names of the dirs where they actual...
Simple random name generator in Python Question: I have a text file containing first and last 'syllables', demarcated with [part1] and [part2]: [part1] Ae Di Mo Fam [part2] dar kil glar tres All I want to do is pick a random line, between [part1] and [part2], and...
rpy2 nls initial parameters choice Question: Hi I am running a code in python importing rpy2 robjects and trying to make a fit to some data (with errors that I consider as weights). I am using a non linear regression and the "formula" i am trying to fit is: A/((x/t1)^b+(x/t1)^c) Unfortunately every time I try to run t...
Speed of fetching web pages with Eventlet and Python? Question: I am writing a relatively simple crawler in Python but I want to use asynchronous networking lib in order to fetch multiple pages concurrently.I saw the examples on their page but when I apply the same logic that is shown and works for ~200 web pages for...
How to create a transparent frame with visible borders? Question: I would like to create a transparent frame with visible borders. The code I've written based on hasenj's work of 'shaped-frame' (<http://hasenj.wordpress.com/2009/04/14/making-a-fancy-window-in-wxpython/>) is as follows. But I still have problem making o...
Find and copy files to existing Folders with corresponding names in python Question: i have a large number of files that i need to move to a specific existing folder. the problem is that the number code that relates the file and the folder has text on either side of it as shown below the number code is a071137 in the f...
Simple Log to File example for django 1.3+ Question: The release notes say: > Django 1.3 adds framework-level support for Python’s logging module. That's nice. I'd like to take advantage of that. Unfortunately [the documentation](http://docs.djangoproject.com/en/1.3/topics/logging/) doesn't hand it all to me on a sil...
Printing my Mac's serial number in java using Unix commands Question: I am trying to print my mac's [edit: Apple computer] serial number in a java program. I am familiar with the Unix command ioreg -l | awk '/IOPlatformSerialNumber/ { print $4;}' which accomplishes this task in terminal. When I t...
SwigPyObject and JSON communication inside python code Question: **Intro.** I have a C++ application, I use SWIG to launch `GetObjects` and `PutObjects` methods which are defined in python code. `GetObjects` method opens JSON formated file, takes objects from there and returns back them to C++ application. While the `P...
Taking the results of a bash command and using it in python Question: I am trying to write a code in python that will take some information from top and put it into a file. I want to just write the name of the application and generate the file. The problem i am having is that i can't get the output of the pidof command...
Basic inserting of image? Python Question: I use python on Ubuntu, and I am (as my name suggests) a complete noob at it all. I want to insert a very basic image, I have looked around, copied coding etc, but mothing seems to work. I want to insert an image, nothing else, so it just appears on the screen when I run it in...
python: single-line cartesian product for-loop Question: Did you know you can do this? >>> [(x,y) for x in xrange(2) for y in xrange(5)] [(0, 0), (0, 1), (0, 2), (0, 3), (0, 4), (1, 0), (1, 1), (1, 2), (1, 3), (1, 4)] It's neat. Is there a for loop version or can one only do this for list compr...
Python: Convert email address to HTML link Question: I'm looking for a stand-alone python function that will take in a string and return a string with the email addresses converted to links. Example: >>>s = 'blah blah blah a@at.com blah blah blah' >>>link(s) 'blah blah blah <a href="mailto:a@at....
Django loaddata settings error Question: When trying to use loaddata on my local machine (win/sqlite): python django-admin.py loaddata dumpdata.json I get the following error: raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT...
how to transform a OpenCV cvMat back to ndarray in numpy ? Question: I follow the code in OpenCV cookbook for python interface to transform cvMat to numpy array: mat = cv.CreateMat(3,5,cv.CV_32FC1) cv.Set(mat,7) a = np.asarray(mat) but with OpenCV 2.1 on my PC, it does not work. The result ...
global question (python) Question: I have the code: from Tkinter import * admin = Tk() a = 1 def up(): global a a += 1 def upp(): up() print a print 'its ',a buttton = Button(admin, text='up', command=upp) buttton.pack() mainloop()...
Web Dev. Framework for RAD Web App Dev. in Shortest Time ( Yii vs. Django ) Question: I googled it and found nothing of much interest , right now me & my Team know/partially know ( Codeigniter, Yii) and also Django (Python Framework) , now after working with codeigniter for past 1 year we have noticed that we are not t...
Blender not working with Python Question: I'm trying to run an external script with blender 2.49b and 2.57 I tried with installing Python versions, 2.4, 2.6 and 2.7. I'm getting this error in the console window. Anyone have a clue of what I'm missing? **Traceback (most recent call last): File "", line 1, in File "C:...
SWIG C-to-Python Int Array Question: I am trying to access a C function with the following prototype from python using swig: int cosetCoding(int writtenDataIn, int newData, const int memoryCells, int *cellFailure, int failedCell); Swig creates the .so with no problems and I can import it into pytho...
How do I override PySerial's "__del__" method in Python? Question: I have a simple Python script set up to send Characters to a device on COM3. (This is running on Windows XP) The device receives the Characters fine, but when the script ends, or I call ser.close() #ser is an instance of the `serial`...
Django get() takes exactly 2 arguments (3 given) Question: I am trying to use DetailView generic class in my test app and this is what I have in my view *_updated model *_ from this [example](http://docs.djangoproject.com/en/1.3/topics/class-based-views/#adding-extra-context) class AuthorDetailView(Detai...
How to resample an array in python Question: I am new in python and I have a question about array/matrix. Below is the matrix I got. A = > [[85 77 83 ..., 59 58 59] > > [80 83 80 ..., 57 60 58] > > [75 76 81 ..., 59 58 60]] I want to re-sample(I don't know if this is the right word) the matrix so it becomes B = > ...
python: pointwise list sum Question: Input: two lists (list1, list2) of equal length Output: one list (result) of the same length, such that: result[i] = list1[i] + list2[i] Is there any concise way to do that? Or is this the best: # Python 3 assert len(list1) == len(list2) ...
[] and {} vs list() and dict(), which is better? Question: I understand that they are both essentially the same thing, but in terms of style, which is the better (more Pythonic) one to use to create an empty list or dict? Answer: In terms of speed, it's no competition for empty lists/dicts: >>> from ti...
easy_install with various versions of python installed, mac osx Question: I have various versions of python on a mac OSX 10.6 machine, some of them installed with macports: > python_select -l Available versions: current none python24 python26 python26-apple python27 The default or system ve...
need help with this Kombu error Question: Pardon the copy and paste from the python interpreter but I'm trying to play with Kombu but I can't seem to create a consumer. Please help, I'm utterly in the dark here. >>> from kombu.messaging import Consumer, Producer >>> from kombu.entity import Exchange,...
How to see if file is older than 3 months in Python? Question: I'm curious about manipulating time in Python. I can get the (last modified) age of a file using the `os.path.getmtime()` function as such: import os.path, time os.path.getmtime(oldLoc) I need to run some kind of test to se...
python sqlite "create table if not exists" problem Question: I'm having an issue using sqlite to create a table only if it doesn't exist. Basically, I have a table that I'm dropping and remaking once in a long while. However, if the table already existed (before I drop and remake it), then I get the following error whe...
mysql select in java on a column with accented utf8 string Question: I have encountered a problem when trying to select data from a table in MySQL in Java by a text column that is in utf-8. The interesting thing is that with code in Python it works well, in Java it doesn't. The table looks as follows: C...
python - remote hosts timezone vs local Question: I'm building a web frontend for remote logs monitoring, having to manage about 10 different geographic locations I've bumped into the 3 headed hellhound some of you already have. Is there any way to get from a remote HPUX shell variable the following remote info: ...
is MySql good for large databases? Question: I work for a company and we are always accessing an external site for information. The site was developed by an antiquated software development company who doesn't even have a website. They pretty much have a monopoly in my state since the content provider for the database o...
Python: how to convert from Windows 1251 to Unicode? Question: I'm trying to convert file content from Windows-1251 (Cyrillic) to Unicode with Python. I found this function, but it doesn't work. #!/usr/bin/env python import os import sys import shutil def convert_to_utf8(filenam...
NoReverseMatch for get_absolute_url() newbie question Question: Just started playing around with django and was confused with the get_absolute_url functionality. When I try to access the url for an object I get a NoReverseMatch error. Here is the stack trace $ python manage.py shell Python 2.6.6 (r2...
Fatal Errors and Deferreds in Twisted, stop a deferred Question: I have a problem, with normal try except blocks in python you can just return if there is a fatal error, ex... try: logon() except 404_Error: retry_logon(try = 2) except AuthenticationProblem: error_labe...
Is there a way to specify the build directory for py2exe Question: I can set the final `dist` directory of py2exe using the command line: python setup.py py2exe -d "my/dist/dir" but I can't seem to set the file to use for the interim `build` directory. I've taken a brief look at the source, but unl...
Install Ming on WebFaction Question: I'm trying to install the [Ming](https://github.com/libming/libming) SWF creation library from source on WebFaction. After untarring it, I ran `./configure --prefix=$HOME -enable--python` and then ran `make install`. It seemed to install fine, but when I do a `import ming` from with...
Buildout tries to update system-wide Distribute installation and refuses to run Question: Buildout doesn't like my system-wide Distribute installation and refuses to run: plone@s15447224:~/mybuildout$ python bootstrap.py Creating directory '/home/plone/mybuildout/bin'. Creating directory '/home/...
Python multiprocessing: synchronizing file-like object Question: I'm trying to make a file like object which is meant to be assigned to sys.stdout/sys.stderr during testing to provide deterministic output. It's not meant to be fast, just reliable. What I have so far _almost_ works, but I need some help getting rid of t...
python join equivalent Question: I have a dictionary say.. dict = { 'a' : 'b', 'c' : 'd' } In php I would to something like implode ( ',', $dict ) and get the output 'a,b,c,d' How do I do that in python? Answer: This seems to be easiest way: >>> from itertools i...
Python: parsing help needed! Question: I am trying to retrieve certain fields within a .lua file. Initially I thought I could just split on commas but the second set of curly brackets ruins that. An example: return { { 6163, 0, "tv", false, {1302}, "ESPN Deportes", "ESPN Deportes es el", nil,"tv...
APScheduler not starting? Question: I would like to run a python script during the night and so I was thinking of using APScheduler. I'll start running it at 1am of the following night and it will run once every night my scheduler script looks like this (scheduler.py): from apscheduler.scheduler import ...
Defining a classpath for a Jython virtual environment Question: I have installed [Jython](http://en.wikipedia.org/wiki/Jython), a [virtualenv](http://pypi.python.org/pypi/virtualenv) named "jython-env" and have installed "bottle" for doing some web application development. I have to use some JAR files in this applicati...
Doing something like Python's "import" in Scala Question: Is it possible to use Scala's `import` without specifying a main function in an object, and without using the `package` keyword in the source file with the code you wish to import? Some explanation: In Python, I can define some functions in some file "Lib.py", ...
How to constantly send STDOUT to my python TCP server? Question: 1. i have simple python echo server which uses sockets , and echoes random numbers to clients . 2. i have another program which prints every 2 second values to stdout. If it was just a script i could have redirected like this 'stdout' | python script...
Wordlist Generator. Split file Size. How? Question: I am trying to get this python script to create a new file and continue generating word combinations once a certain file size is reached. f=open('wordlist', 'w') def xselections(items, n): if n==0: yield [] else: for...
Learning pyramid (python) and am struggling with the @view_config decorator. Should it just work out of the box? Question: I am still learning pyramid, and I am at a point where I am trying to learn how to use decorators. Below is a copy of my test view callable. from pyramid.response import Response ...
tic, toc functions analog in Python Question: What is the best analog of MATLAB tic and toc functions ( <http://www.mathworks.com/help/techdoc/ref/tic.html>) in Python? Answer: Apart from `timeit` which ThiefMaster mentioned, a simple way to do it is just (after importing `time`): t = time.time() #...
ı am new at using python pickle and Question: each dictionary has the form: records[name]=[email,telephone] the dictionary is pickled and stored in a file name recordsfile . the big problem after if ı made above... adds new record to the addresbook ? thanks for helping .. Answer: Well, if I understand your questio...
How do i use table data from my sqlite3 database as a python variable Question: My code so far conn = sqlite3.connect('databaserm/database') curs = conn.cursor() curs.execute('SELECT * FROM saves') lvl = curs.fetchone() conn.close() ok maybes its the code i u...
What is wrong with this way of showing the progress of the function? Question: Here is my function def f(task_list): results = [] for task_id in task_list: results.append(work(task_id)) print len(results) # show the progress return results I use execf...
Python multiprocessing with MySQL Question: I've Googled this topic a lot, but cannot find a solution which fits my needs :( I have a MySQL DB with a table containing e-mail adresses (10,000+). I would like to run a batch job on them every 5 minute. So I'll guess Python is a good choice for retrieving the resultset ...
[Python]Encoding and execfile Question: I am trying to do something like that using python 2.4: #!/usr/bin/python # -*- coding: utf-8 -*- afile = unicode('C:\\國立國語院.py', 'UTF-8') execfile(afile.encode("UTF-8",'replace')) And I receive this error: IOError: [Errno 2] N...
Cannot install python packages from source-code Question: I need to install `PIL` (python imaging library) on my Ubunto10.4-32bit (EDIT:64bit) machine on my python2.5.4-32bit. This question is also relevant to any other source package I guess (among those that I need are `RPyC`,`psyco` and `numpy`). I downloaded the s...
How can I disable web security in selenium through Python? Question: Apparently it's common for google-chrome to get this: <http://jira.openqa.org/browse/SRC-740> The key is to start it without security enabled. To disable security, "--disable-web-security", I'm having trouble wondering how to act...
Fast DES for Python Question: i am searching for compiled des implementation for python. M2Crypto don't work for me with error message "ImportError: DLL load failed:". OpenSSLLight installed. Edit: ok, fixed with M2Crypto. For some reasons, if you select during the installation of SSLLight that the libraries should be...
Generating all dates within a given range in python Question: I have two string variables which contain dates in yyyy-mm-dd format as follows : date1 = '2011-05-03' date2 = '2011-05-10' I want to write code that generates all dates in the range date1 to date2. How can this be done in Python? ...
Auto wrap and newlines in wxPython grid Question: I want to implement a grid with the cells that have the following behaviour: 1. cell text should be wrapped if it doesn't fit to the cell 2. newlines (\n) in the cell text should be processed as well i.e. the same behaviour as in table editors like MS Excel, OO C...
translate url with google translate from python script Question: I'm trying to use google translate from a python script: #!/usr/bin/env python from urllib2 import urlopen from urllib import urlencode base_url = "http://www.google.com/translate?" params = (('langpair','en|es'), ('u',...
ImportError when trying to import a custom module in Python Question: _Note that I searched SO for this error and while there were many similar questions, I didn't find one that addressed this particular issue._ I'm working on a Python module that looks like this: /com /company /foo ...
Django form.is_valid always returning true Question: I'm new to Django and python and am trying to learn it from a book. In the code below I'm trying to make sure password1 and password2 are the same but it doesn't seem to run the clean_password2 validation because it always returns true even if they have different val...
play framework error Question: I am getting this error when I am simply trying to run play command from command prompt in windows. C:\Users\naveenreddy>play Traceback (most recent call last): File "E:\andrew\structure\play-1.2\play", line 13, in <module> from play.application import PlayApplic...
HTTPS connection using PEM Certificate Question: I'm trying to POST HTTPS requests using a PEM certificate like following: import httplib CERT_FILE = '/path/certif.pem' conn = httplib.HTTPSConnection('10.10.10.10','443', cert_file =CERT_FILE) conn.request("POST", "/") response = con...
Parsing an ISO datetime in Python Question: > **Possible Duplicate:** > [Converting string to datetime object in > python](http://stackoverflow.com/questions/2609259/converting-string-to- > datetime-object-in-python) Given the below Python import datetime >>> a '2011-05-04 16:20:09 -0700...
Recursive diff of two python dictionaries (keys and values) Question: So I have a python dictionary, call it `d1`, and a version of that dictionary at a later point in time, call it `d2`. I want to find all the changes between `d1` and `d2`. In other words, everything that was added, removed or changed. The tricky bit ...
How can I switch to a new music file while my Python program is running livewires? Question: I load a file and then play it, that works fine. Then if I load another music file neither plays. I need to load one music track, play it, then stop it, then load and play a second track. Is this just not possible? games.music...
MySQLdb installed from pypm doesn't work with 32-bit python on Mac OSX Question: Before proceeding further, here are some details of my Mac and the installed python (ActivePython) and wxpython versions: _**Mac version: 10.6.6 Python version: 2.7.1 (ActiveState Python) wxPython version: wxPython2.8-osx-unicode-py2.7_**...