Re: Spam

2011-07-31 Thread Gregory Ewing
Chris Rebert wrote: On Sun, Jul 31, 2011 at 9:56 PM, Ghodmode wrote: I'm wondering how the list is managed. Can anyone post, or only members? Since we're gatewayed to USENET's comp.lang.python anyway, I'd strongly suspect the former. You may get a better experience by reading the usenet g

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Gregory Ewing
Andrew Berg wrote: I have a method that writes the data to disk, but at this point, I don't see any problems with just pickling the class instance. Just keep in mind that if you're not careful, pickles can end up being tied more closely that you would like to various internal details of your p

Re: What's in a name?

2011-07-31 Thread Gregory Ewing
Andrew Berg wrote: Well of course. All the good names are taken. :P I even came up with cavelib and it was taken ( http://www.mechdyne.com/cavelib.aspx ). A couple of ideas that don't seem to turn up anything software-related: Flummux Flavius -- Greg -- http://mail.python.org/mailman/listinf

Re: Spam

2011-07-31 Thread Chris Rebert
On Sun, Jul 31, 2011 at 9:56 PM, Ghodmode wrote: > I've noticed that python-list gets significantly more spam than the > other lists I subscribe to.  There's an example below. > > I'm wondering how the list is managed.  Can anyone post, or only > members? Since we're gatewayed to USENET's comp.la

Re: Quick question about threads and interpreters.

2011-07-31 Thread Chris Angelico
On Mon, Aug 1, 2011 at 6:04 AM, Ira Gray wrote: > I come along, write a .DLL and throw it into the program. My .dll has its > own thread (right?), Not unless you actually create one. A DLL is simply a puddle of code; the application calls your code, you do whatever you do, you return. At no time

Re: Spam

2011-07-31 Thread Chris Angelico
On Mon, Aug 1, 2011 at 5:56 AM, Ghodmode wrote: > I'm willing, but probably not qualified.  I've been lurking on the > list for a while, but I don't contribute much because I'm not very > proficient with Python. > I don't see Python proficiency as a prerequisite for recognizing spammers :) If you

Quick question about threads and interpreters.

2011-07-31 Thread Ira Gray
Lets say I have a program that is running a python interpreter in the main thread. I come along, write a .DLL and throw it into the program. My .dll has its own thread (right?), separate from the main thread, and then makes a pyrun_simplestring call to the pythonxx.dll. The pyrun_simplestring call

Spam

2011-07-31 Thread Ghodmode
I've noticed that python-list gets significantly more spam than the other lists I subscribe to. There's an example below. I'm wondering how the list is managed. Can anyone post, or only members? I've picked the email addresses of the list managers out of the list info page, but I wonder if you

how to solve it?

2011-07-31 Thread 守株待兔
from matplotlib.matlab import * Traceback (most recent call last): File "", line 1, in ImportError: No module named matlab-- http://mail.python.org/mailman/listinfo/python-list

Re: What's in a name?

2011-07-31 Thread Andrew Berg
On 2011.07.31 09:15 PM, Ben Finney wrote: > Maven is already a well-established name for an existing free-software > work http://maven.apache.org/>. Well of course. All the good names are taken. :P I even came up with cavelib and it was taken ( http://www.mechdyne.com/cavelib.aspx ). Maybe I'll jus

[ANN] PySAL 1.2

2011-07-31 Thread Serge Rey
On behalf of the PySAL development team, I'm happy to announce the official release of PySAL 1.2. PySAL is a library of tools for spatial data analysis and geocomputation written in Python. PySAL 1.2, the third official release of PySAL, brings a number of new features: - Directional (Space-T

Hello My Sweet Friends.

2011-07-31 Thread Ashraf Ali
Hello Friends. How are you all? Please Visit the following link if you know about Pakistan and what happening in the world. http://bollywoodactresseshotpictures.blogspot.com/ http://jobopportunitiesinpakistan.blogspot.com/ http://hotfemaletennisplayershotphotos.blogspot.com/ http://watchonlineindi

Re: What's in a name?

2011-07-31 Thread Ben Finney
Andrew Berg writes: > I think I'll stick with Maven for the module, but the two others really > need names, and I have nothing. Maven is already a well-established name for an existing free-software work http://maven.apache.org/>. I recommend choosing a name which isn't already taken by any wel

Re: What's in a name?

2011-07-31 Thread Andrew Berg
I think I'll stick with Maven for the module, but the two others really need names, and I have nothing. -- CPython 3.2.1 | Windows NT 6.1.7601.17592 | Thunderbird 5.0 PGP/GPG Public Key ID: 0xF88E034060A78FCB -- http://mail.python.org/mailman/listinfo/python-list

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Andrew Berg
On 2011.07.31 03:53 PM, Philip Semanchuk wrote: > To the OP -- if you're looking to write this to disk, I recommend XML or > SQLite. I have a method that writes the data to disk, but at this point, I don't see any problems with just pickling the class instance. XML might be a good way to provide

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Philip Semanchuk
On Jul 31, 2011, at 4:04 PM, Thorsten Kampe wrote: > * Andrew Berg (Sun, 31 Jul 2011 13:36:43 -0500) >> On 2011.07.31 02:41 AM, Thorsten Kampe wrote: >>> Another approach would be named tuples instead of dictionaries or >>> flat SQL tables. >> What would the advantage of that be? > > QueueItem.x

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Andrew Berg
On 2011.07.31 02:51 PM, Chris Rebert wrote: > Less punctuation noise: > QueueItem.x264.avs.filter.fft3d.ffte > vs. > QueueItem.x264['avs']['filter']['fft3d']['ffte'] > > It would also make clear that your sets of "keys" are static (unlike > typical dictionary usage). I see what Thorsten meant by "

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Thorsten Kampe
* Andrew Berg (Sun, 31 Jul 2011 13:36:43 -0500) > On 2011.07.31 02:41 AM, Thorsten Kampe wrote: > > Another approach would be named tuples instead of dictionaries or > > flat SQL tables. > What would the advantage of that be? QueueItem.x264['avs']['filter']['fft3d']['ffte'] would be QueueItem.x26

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Chris Rebert
On Sun, Jul 31, 2011 at 11:36 AM, Andrew Berg wrote: > On 2011.07.31 02:41 AM, Thorsten Kampe wrote: >> Another approach would be named tuples instead of dictionaries or flat >> SQL tables. > What would the advantage of that be? Less punctuation noise: QueueItem.x264.avs.filter.fft3d.ffte vs. Qu

Re: Hostmonster : Installing MySQLdb at a specific location

2011-07-31 Thread Tim Johnson
* Tim Johnson [110731 11:01]: > I've using MySQLdb for years, but always on servers where I had > system-wide access. > > I have an account on Hostmonster and would like to do some > development there, but although python2.6 is available, MySQLdb is > not installed. I do not believe there is a sy

Hostmonster : Installing MySQLdb at a specific location

2011-07-31 Thread Tim Johnson
I've using MySQLdb for years, but always on servers where I had system-wide access. I have an account on Hostmonster and would like to do some development there, but although python2.6 is available, MySQLdb is not installed. I do not believe there is a system-wide access, nor do I expect sysadmins

Re: /lib-tk/Tkinter.py", for Tk/python2.7/lib-dynload/_tkinter.so, hon2.

2011-07-31 Thread Ned Deily
In article <201173191847use...@terrranews.com>, Joel Godin wrote: > Also happens with python3.1 and OSX 10.6.8 > > import tkinter #yields: > > > Traceback (most recent call last): > File "imptk.py", line 1, in > import tkinter > File > "/Library/Frameworks/Python.framework/Version

Re: What Programing Language are the Largest Website Written In?

2011-07-31 Thread gavino
On Jul 13, 1:04 pm, ccc31807 wrote: > On Jul 12, 7:54 am, Xah Lee wrote: > > > maybe this will be of interest. > > > 〈What Programing Language Are the Largest Website Written > > In?〉http://xahlee.org/comp/website_lang_popularity.html > > About five years ago, I did some pretty extensive researc

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Andrew Berg
On 2011.07.31 02:41 AM, Thorsten Kampe wrote: > The "QueueItem.x264['avs']['filter']['fft3d']['ffte'])" example does not > look right. Especially the mix of "." and "[]" references. Actually, > dictionaries in a dictionary don't look right to me either. QueueItem is the class; x264 is a dictionar

[ANN] IPython 0.11 is officially out

2011-07-31 Thread Fernando Perez
Hi all, on behalf of the IPython development team, I'm thrilled to announce, after more than two years of development work, the official release of IPython 0.11. This release brings a long list of improvements and new features (along with hopefully few new bugs). We have completely refactored IP

Re: How to avoid confusion with method names between layers of a package

2011-07-31 Thread Ian Kelly
> So far so good. The problem is that a CubeGrid instance is also a wx.Grid instance. However, different naming conventions apply there. All method names in wxPython are coming from C++. They use CamelCase method names. There is a naming conflict. What should I do? > > Solution #1: Mix CamelCase an

Re: /lib-tk/Tkinter.py", for Tk/python2.7/lib-dynload/_tkinter.so, hon2.

2011-07-31 Thread Joel Godin
Also happens with python3.1 and OSX 10.6.8 import tkinter #yields: Traceback (most recent call last): File "imptk.py", line 1, in import tkinter File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/tkinter/__init__.py", line 39, in import _tkinter # If this fail

How to avoid confusion with method names between layers of a package

2011-07-31 Thread Laszlo Nagy
Hi All, I have a package with more layers of code. Bottom layer contains classes and methods for dealing with tabular data. Second layer works with multi-dimensional data. It provides a data model with unified API for accessing multi dimensional databases. Top layer is responsible for disp

Re: eval, exec and execfile dilemma

2011-07-31 Thread Laszlo Nagy
100 functions/second installed to global namespace doesn't sound well. What on earth are you doing needing to use exec to create hundreds of functions?? :-) Have you considered not using exec at all, and using a good old-fashioned factory function and closures? def factory(x): def i

Re: Not able to store data to dictionary because of memory limitation

2011-07-31 Thread Chris Angelico
On Sun, Jul 31, 2011 at 9:38 AM, Rama Rao Polneni wrote: > Earlier I had many duplicate strings in different rows retrieved from > database. > I created a list to have unique strings and their indexes are used in > actual computations. So lot of space is saved by having integers > instead of stri

Re: Not able to store data to dictionary because of memory limitation

2011-07-31 Thread Rama Rao Polneni
Hi Ulrich, Thanks for your idea. I resolved the issue by making use of integers instead of strings. Earlier I had many duplicate strings in different rows retrieved from database. I created a list to have unique strings and their indexes are used in actual computations. So lot of space is saved by

Re: PEP 8 and extraneous whitespace

2011-07-31 Thread Ben Finney
"OKB (not okblacke)" writes: > Yeah, what I'm suggesting as the cleanest way is to simply make it > all one long string literal, which is wrapped by the editor to the > proper indentation point. I can't show this in a newgroup post, but > it'd be like: > > def somefunc(): > if som

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Thorsten Kampe
* Andrew Berg (Sat, 30 Jul 2011 22:10:43 -0500) > I'm looking for pointers on design. I'm inexperienced but cautious and > am mostly wondering if there's an easier way to "format" this data or > if this approach will lead to problems. The "QueueItem.x264['avs']['filter']['fft3d']['ffte'])" example