Re: need help with list/variables

2008-12-30 Thread 5lvqbwl02
On Dec 30, 11:31 am, wx1...@gmail.com wrote: I have a list and would like to parse the list appending each list item to the end of a variable on a new line. for instance mylist = ['something\n', 'another something\n', 'something again\n'] then parse mylist to make it appear in my variable

embedding python in wxpython

2008-12-30 Thread 5lvqbwl02
Hi, I've looked around for a way to allow a python console from within a wxPython application, but have only found stuff on embedded/ extending python with C/C++ or wxWidgets in C++, but not wxPython. Is this easy to do? Can someone point me in the right direction? Also, typically when you

Understanding search queries, semantics, and Meaning ...aren't we all looking for meaning?

2008-12-30 Thread 5lvqbwl02
I have Section 4.4.1 of SICP rattling around in my head (database queries), and I'm trying to come up with a simple dictionary-based database in Python to represent circuit diagrams. My main confusion isn't one of implementation, but a matter of big thinking, fundamentally, about the problem.

Re: Understanding search queries, semantics, and Meaning ...aren't we all looking for meaning?

2008-12-30 Thread 5lvqbwl02
library, as I'm looking to learn to fish, so to speak, and to learn a bit about the biology of fish. I'm going to break rule #1 of your requirements but in an unexpected way. Rather than studying PostgreSQL, MySQL, or Oracle, why don't you crack open the topic of relational database theory

Re: Doing set operation on non-hashable objects

2008-12-28 Thread 5lvqbwl02
... db is a dict, where the values are also dicts. A function searches through db and returns a list of values, each of which is a dict as described above. I need to perform set operations on these lists (intersection and union) However the objects themselves are not hashable, and

Re: Doing set operation on non-hashable objects

2008-12-28 Thread 5lvqbwl02
On Dec 24, 12:21 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 24 Dec 2008 17:16:59 -0200, 5lvqbw...@sneakemail.com escribió: I'm writing an application which is structured roughly as follows: db is a dict, where the values are also dicts. A function searches through db and

Re: Doing set operation on non-hashable objects

2008-12-26 Thread 5lvqbwl02
On Dec 24, 12:52 pm, Carl Banks pavlovevide...@gmail.com wrote: On Dec 24, 1:16 pm, 5lvqbw...@sneakemail.com wrote: Hi, I'm writing an application which is structured roughly as follows: db is a dict, where the values are also dicts. A function searches through db and returns a

Doing set operation on non-hashable objects

2008-12-24 Thread 5lvqbwl02
Hi, I'm writing an application which is structured roughly as follows: db is a dict, where the values are also dicts. A function searches through db and returns a list of values, each of which is a dict as described above. I need to perform set operations on these lists (intersection and union)

Brain going crazy with recursive functions

2008-12-06 Thread 5lvqbwl02
I'm trying to solve the 9-tile puzzle using as functional an approach as possible. I've recently finished reading SICP and am deliberately avoiding easy python-isms for the more convoluted scheme/functional methods. The following function is trivial to do with for loops and directly accessing

Brain going crazy with recursive functions

2008-12-06 Thread 5lvqbwl02
I'm trying to solve the 9-tile puzzle using as functional an approach as possible. I've recently finished reading SICP and am deliberately avoiding easy python-isms for the more convoluted scheme/functional methods. The following function is trivial to do with for loops and directly accessing

Re: static variables in Python?

2008-07-30 Thread 5lvqbwl02
kj wrote: Yet another noob question... Is there a way to mimic C's static variables in Python? Or something like it? The idea is to equip a given function with a set of constants that belong only to it, so as not to clutter the global namespace with variables that are not needed

wx.Timer not working

2008-07-26 Thread 5lvqbwl02
Windows XP SP3 Python 2.5 wx.version() = '2.8.1.1 (msw-unicode)' -- I have written the following *simplest* implementation of wx.timer I can think of. No workie. I want an exception, a print statement, or something. The wxpython demos all work, but for some reason this isn't. The demos

Re: wx.Timer not working

2008-07-26 Thread 5lvqbwl02
On Jul 26, 3:13 pm, Mike Driscoll [EMAIL PROTECTED] wrote: On Jul 26, 2:33 pm, [EMAIL PROTECTED] wrote: Windows XP SP3 Python 2.5 wx.version() = '2.8.1.1 (msw-unicode)' -- I have written the following *simplest* implementation of wx.timer I can think of.  No workie.   I want an