ANN: Python Meeting Düsseldorf - 02.07.2014

2014-06-23 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Treffen v

Re: [RELEASE] Nevow 0.11.1

2014-06-23 Thread Jean-Michel Pichavant
- Original Message - > Hello, > > I'm pleased to announce the release of Nevow 0.11.1. > > Nevow is a web application construction kit written in Python and > based > on Twisted. It is designed to allow the programmer to express as much > of > the view logic as desired in Python, and incl

Re: old python

2014-06-23 Thread Steven D'Aprano
On Sun, 22 Jun 2014 13:18:09 -0700, arbautjc wrote: > If anybody is interested... > > I think it's the same as the version unearthed recently [1], but here is > a rather old version of Python on ftp: > > ftp://ftp.uni-duisburg.de/local/systems/unix/old_stuff/ > > > [1] http://legacy.python.org

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread William Ray Wing
On Jun 23, 2014, at 12:26 AM, smur...@gmail.com wrote: > On Sunday, June 22, 2014 3:49:53 PM UTC+2, Roy Smith wrote: > >> Can you give us some more quantitative idea of your requirements? How >> many objects? How much total data is being stored? How many queries >> per second, and what is th

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread Roy Smith
In article , William Ray Wing wrote: > On Jun 23, 2014, at 12:26 AM, smur...@gmail.com wrote: > > > On Sunday, June 22, 2014 3:49:53 PM UTC+2, Roy Smith wrote: > > > >> Can you give us some more quantitative idea of your requirements? How > >> many objects? How much total data is being stor

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread Lie Ryan
On 22/06/14 10:46, smur...@gmail.com wrote: I've been doing this with a "classic" session-based SQLAlchemy ORM, approach, but that ends up way too slow and memory intense, as each thread gets its own copy of every object it needs. I don't want that. If you don't want each thread to have thei

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread Matthias Urlichs
Hi, William Ray Wing: > Are you sure it won’t fit in memory? Default server memory configs these > days tend to start at 128 Gig, and scale to 256 or 384 Gig. > I am not going to buy a new server. I can justify writing a lot of custom code for that kind of money. Besides, the time to actually

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread smurfix
memcache (or redis or ...) would be an option. However, I'm not going to go through the network plus deserialization for every object, that'd be too slow - thus I'd still need a local cache - which needs to be invalidated. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread smurfix
On Monday, June 23, 2014 5:54:38 PM UTC+2, Lie Ryan wrote: > If you don't want each thread to have their own copy of the object, > > Don't use thread-scoped session. Use explicit scope instead. How would that work when multiple threads traverse the in-memory object structure and cause relation

Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread kenakahn
What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3? -- https://mail.python.org/mailman/listinfo/python-list

Re: Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread kenakahn
On Monday, June 23, 2014 4:12:34 PM UTC-4, kena...@gmail.com wrote: > What package do I need to install to get thread support (import thread) for > Python 3 running under ubuntu 3? Found it. The import statement changed to "import _thread" for python3. -- https://mail.python.org/mailman/listinf

Re: Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread Chris Angelico
On Tue, Jun 24, 2014 at 6:34 AM, wrote: > On Monday, June 23, 2014 4:12:34 PM UTC-4, kena...@gmail.com wrote: >> What package do I need to install to get thread support (import thread) for >> Python 3 running under ubuntu 3? > > Found it. The import statement changed to "import _thread" for pyt

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread Lie Ryan
On 23/06/14 19:05, smur...@gmail.com wrote: On Monday, June 23, 2014 5:54:38 PM UTC+2, Lie Ryan wrote: If you don't want each thread to have their own copy of the object, Don't use thread-scoped session. Use explicit scope instead. How would that work when multiple threads traverse the in-me

Re: python 3.44 float addition bug?

2014-06-23 Thread buck
It used to be that the best way to compare floating point numbers while disregarding the inherent epsilon was to use `str(x) == str(y)`. It looks like that workaround doesn't work anymore in 3.4. What's the recommended way to do this now? >>> format(.01 + .01 + .01 + .01 + .01 + .01, 'g') == fo

Off-Topic: The Machine

2014-06-23 Thread Steven D'Aprano
Following up on an earlier thread which started as a discussion on Apple's new language "Swift" and (d)evolved into a discussion about energy efficiency of computers, I came across this announcement of a new type of computer architecture invented by HP: "The Machine". http://www.iflscience.com/

Re: Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread Larry Hudson
On 06/23/2014 01:12 PM, kenak...@gmail.com wrote: What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3? Just curious... Ubuntu 3 -- Are you really running a version that old, or is that a typo? Current version is 14.04 OT and FWIW: I

Re: Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread Chris Angelico
On Tue, Jun 24, 2014 at 12:40 PM, Larry Hudson wrote: > OT and FWIW: I gave up on Ubuntu when they switched to Unity -- I find that > very awkward to use. Just personal opinion, of course, and I know there are > others who like it -- that's fine with me as well. (But I switched to > Mint.) Lik

Re: python 3.44 float addition bug?

2014-06-23 Thread Chris Angelico
On Tue, Jun 24, 2014 at 10:55 AM, buck wrote: > It used to be that the best way to compare floating point numbers while > disregarding the inherent epsilon was to use `str(x) == str(y)`. Who said that? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Ubuntu "3" (was Adding thread module support to Ubuntu 3 for Python3)

2014-06-23 Thread Jason Friedman
>> OT and FWIW: I gave up on Ubuntu when they switched to Unity -- I find that >> very awkward to use. Just personal opinion, of course, and I know there are >> others who like it -- that's fine with me as well. (But I switched to >> Mint.) > > Likewise, though with me it was Debian I went to, w

Re: python 3.44 float addition bug?

2014-06-23 Thread Gregory Ewing
buck wrote: What's the recommended way to do this now? format(.01 + .01 + .01 + .01 + .01 + .01, 'g') == format(.06, 'g') There's no recommended way. What you're asking for can't be done. Whatever trick you come up with, there will be cases where it doesn't work. Why do you think you want to

Re: python 3.44 float addition bug?

2014-06-23 Thread Steven D'Aprano
On Mon, 23 Jun 2014 17:55:50 -0700, buck wrote: > It used to be that the best way to compare floating point numbers while > disregarding the inherent epsilon was to use `str(x) == str(y)`. It > looks like that workaround doesn't work anymore in 3.4. What inherent epsilon? Can you explain what you