Sun, 30 Aug 2009

Why does my iPhone know how to spell Cthulhu?


Very odd. I mean, it's nice to have my prayers spell-checked and all, but really, Apple? Cthulhu?

Also, jinja2 rocks. I think I'll be teaching it as a templating language this term...

And finally, people interested in using sqlite3 for shelve-like storage in Python 2.x can take a look at issue 52 in pygr's issue tracker; I've taken the code from bugs.python.org/issue3783 and "backported" it to Python 2.x. Since bsddb is no longer going to be part of the Python stdlib, we're planning to switch to using sqlite3 for scalable data storage.

--titus

posted at: 10:58 | path: /aug-09 | 10 comments

Tags: ,


Comments:

Posted by LE at Sun Aug 30 13:29:54 2009:
sqlite3, scalable data storage? What.

Posted by Titus Brown at Sun Aug 30 16:39:34 2009:
Well, better than other-shelve like options, yes?  What do you suggest?  It needs to be in the Python stdlib, OR pure Python and easy-to-install, or it becomes a significant burden for our users.

We already support MySQL etc for power users.

Also see

http://ivory.idyll.org/blog/jan-09/lazyweb-worm-options-in-python

Posted by Catherine Devlin at Sun Aug 30 20:10:59 2009:
That's cool, but does it also know "fhtagn"?  I always have to Google it.

Posted by Erich Schwarz at Sun Aug 30 23:05:10 2009:
There once was a time when I didn't have to use Google to remember:

"Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn"

but that was in the long-lost Elder Days, when dinosaurs and Ronald Reagan ruled the Earth.

Now, if your iPhone can spell-check that, I'd start worrying.

Posted by Gael Varoquaux at Mon Aug 31 04:10:20 2009:
I am really worried by the loss of shelve (or rather the only reasonable backend to it). Sure, it is not scalable and fragile, but it provided very useful functionality in the standard library.

I see that in pygr you have decided to use sqlite3 to replace it. Is there a consensus that this is how it will happen in the standard library? I have tried following this discussion, but got lost as it spread over too many threads.

Posted by j_king at Mon Aug 31 06:00:58 2009:
Ditching bsddb? Ouch.

I'm currently using shelve as the storage backend for a small desktop application of mine. Works great. Don't see why it needs to be removed.

Is the discussion on this one over?

As for the "Cthulu" thing, I noticed this too and thought it was funny.

Posted by Titus Brown at Mon Aug 31 06:52:55 2009:
j_king, yes, it's gone.  The decision was made back in ... January?  I'll see if I can track down the python-dev thread.

Gael, there's no official solution.  Python-dev hasn't discussed it much if at all, and the patch to add shelve/sqlite3 functionality into python 3.x has been abandoned.

--titus

Posted by alex dante at Tue Sep 1 00:24:43 2009:
Has the 3rd party shove module been considered as a replacment for shelve?

"shove is a object storage frontend inspired by the standard library's shelve module. It features a dictionary-style API, automatic object storage (with pickle) with in-storage compression (with zlib), and multiple storage and caching backends."

http://pypi.python.org/pypi/shove

Hmm, it's only for 2.x at present, but I'd personally feel a lot happier about updated existing code being added to the stdlib than an entirely new module.

Posted by Ian L at Tue Sep 1 15:46:48 2009:
Well chrome's autospell doesn't know how to fix it. Perhaps that's because google's motto is "don't be evil" which makes me wonder what apple really means when they say "think different" ;)

Posted by Titus Brown at Tue Sep 8 19:28:11 2009:
I know about shove, but I haven't heard anyone proposing it for the stdlib.  Is it widely used?

Post a new comment:

Name:


E-mail:


URL:


Comment:


Note that comments must be manually approved; e-mail titus@idyll.org if your comment doesn't show up quickly.