Re: Benefit and belief

2011-10-19 Thread rusi
On Oct 17, 7:34 pm, Steven D'Aprano wrote: > That is no more deep and meaningful than the fact that while some people > say "one plus one equals two", others say "eins und eins gleich zwei", > some say "un et un fait deux" and some say "один и один дает два". > Regardless of whether you write two,

fromutc: dt.tzinfo is not self: pytz.timezone('UTC').fromutc(datetime.utcnow())

2011-10-19 Thread aspineux
hi >>> import pytz >>> from datetime import datetime >>> pytz.timezone('GMT0').fromutc(datetime.utcnow()) datetime.datetime(2011, 10, 19, 7, 54, 45, 579125, tzinfo=) >>> pytz.timezone('UTC').fromutc(datetime.utcnow()) Traceback (most recent call last): File "", line 1, in ValueError: fromutc:

Re: fromutc: dt.tzinfo is not self: pytz.timezone('UTC').fromutc(datetime.utcnow())

2011-10-19 Thread Chris Rebert
On Wed, Oct 19, 2011 at 1:06 AM, aspineux wrote: > hi > import pytz from datetime import datetime pytz.timezone('GMT0').fromutc(datetime.utcnow()) > datetime.datetime(2011, 10, 19, 7, 54, 45, 579125, > tzinfo=)  pytz.timezone('UTC').fromutc(datetime.utcnow()) > Traceback (most

Re: Benefit and belief

2011-10-19 Thread Ben Finney
alex23 writes: > On Oct 18, 6:52 am, Ben Finney wrote: > > A belief that doesn't match reality is a delusion. That doesn't change > > when someone thinks it's an epiphany: it's still a delusion. > > Apparently there was some talk about removing delusional as a > classification from the DSM due t

Re: Equal sets with unequal print and str() representations

2011-10-19 Thread rusi
On Oct 17, 7:47 am, Terry Reedy wrote: > On 10/16/2011 9:17 PM, Ian Kelly wrote: > > > On Sun, Oct 16, 2011 at 5:52 PM, Ganesh Gopalakrishnan > >  wrote: > >> This probably is known, but a potential pitfall (was, for me) nevertheless. > >> I suspect it is due to hash collisions between 's3' and '

Re: Benefit and belief

2011-10-19 Thread Ben Finney
rusi writes: > These are classical platonist claims: In short objective reality > exists aside from the subjective perception of it. Yes, that's the simplest explanation for the comparability of our observations: there's one reality and we all inhabit it. > Quantum physics would not exist if a

Re: Benefit and belief

2011-10-19 Thread rusi
On Oct 19, 4:30 pm, Ben Finney wrote: > rusi writes: > > These are classical platonist claims:  In short objective reality > > exists aside from the subjective perception of it. > > Yes, that's the simplest explanation for the comparability of our > observations: there's one reality and we all in

Re: [OT] Re: Benefit and belief

2011-10-19 Thread Curt
On 2011-10-19, Steven D'Aprano wrote: > On Tue, 18 Oct 2011 14:23:49 +, Curt wrote: > >> Most of us say "un et un _font_ deux," in fact, because we know how to >> conjugate as well as perform simple arithmetic. >> >> :-) > > > I blame Google Translate. > I thought you were trying to shine as

tiff/pbm in pyplot (ubuntu)

2011-10-19 Thread Hans Georg Schaathun
Does anyone know how to get support for tiff/pbm in pyplot on Ubuntu (11.04)? This used to work for me, on some system, but when I attempt to regenerate my TIFF files on a new system, it all crashes. The error message is clear; TIFF and PBM are not supported, and the exception occurs in a call t

RE: [NUMPY] "ValueError: total size of new array must be unchanged" just on Windows

2011-10-19 Thread Prasad, Ramit
Redirecting to his question to the list. >I need of a matrix, not of an array. >But is this error due to a numpy bug? I am not an expert on NumPy/SciPy, but I do not believe matrixes are allowed to be 3 dimensional. Google only produced results of 3 dimensional arrays. Ramit Ramit Prasad | JP

Python based silent installer, how to?

2011-10-19 Thread Muhammad Bashir Al-Noimi
Hi All, I'm using many python based packages (ex. bzr-2.4.1-1.win32-py2.6.exe) inside my installer. How can I install them silently in Windows? PS Most installers has arguments for silent installation ex. NSIS based install

Re: fromutc: dt.tzinfo is not self: pytz.timezone('UTC').fromutc(datetime.utcnow())

2011-10-19 Thread Steven D'Aprano
On Wed, 19 Oct 2011 01:06:53 -0700, aspineux wrote: > hi > import pytz from datetime import datetime pytz.timezone('GMT0').fromutc(datetime.utcnow()) > datetime.datetime(2011, 10, 19, 7, 54, 45, 579125, tzinfo= 'GMT0'>) pytz.timezone('UTC').fromutc(datetime.utcnow()) > Traceb

Re: Python based silent installer, how to?

2011-10-19 Thread Steven D'Aprano
On Wed, 19 Oct 2011 20:14:49 +0300, Muhammad Bashir Al-Noimi wrote: > > > > > body p { margin-bottom: 0cm; margin-top: 0pt; > } > >bidimailui-detected-decoding-type="UTF-8" bgcolor="#FF" > text="#00"> > Hi All, > > Please don't send raw HTML

Re: [OT] Re: Benefit and belief

2011-10-19 Thread Steven D'Aprano
On Wed, 19 Oct 2011 13:15:54 +, Curt wrote: > On 2011-10-19, Steven D'Aprano > wrote: >> On Tue, 18 Oct 2011 14:23:49 +, Curt wrote: >> >>> Most of us say "un et un _font_ deux," in fact, because we know how to >>> conjugate as well as perform simple arithmetic. >>> >>> :-) >> >> >> I bl

Threading: Method trigger after thred finished

2011-10-19 Thread markus . mj
Hi, I am looking for help with following problem. I scripted threaded database query, with session open per thread, and queries delivered through queue. Every open DB session must be closed with "abort" or "commit", however on which event should I trigger the DB disconnect? Ideally it would clo

Re: [OT] Re: Benefit and belief

2011-10-19 Thread Westley Martínez
On Wed, Oct 19, 2011 at 09:01:39PM +, Steven D'Aprano wrote: > On Wed, 19 Oct 2011 13:15:54 +, Curt wrote: > > > On 2011-10-19, Steven D'Aprano > > wrote: > >> On Tue, 18 Oct 2011 14:23:49 +, Curt wrote: > >> > >>> Most of us say "un et un _font_ deux," in fact, because we know how to

Re: Benefit and belief

2011-10-19 Thread Ben Finney
rusi writes: > This division (into object and rest of the world) is arbitrary and > historically a direct consequence of our scientific method; the use of > the classical concepts is finally a consequence of the general human > way of thinking. But this is already a reference to ourselves and in

Re: Python based silent installer, how to?

2011-10-19 Thread Alec Taylor
Just download the msi (script is available to regenerate yourself) and run it with the silent swtich, something like: msiexec /x nameofmsi.msi On 10/20/11, Muhammad Bashir Al-Noimi wrote: > Hi All, > > > I'm using many python based packages (ex. bzr-2.4.1-1.win32-py2.6.exe) > inside my installer

Re: Threading: Method trigger after thred finished

2011-10-19 Thread Steven D'Aprano
On Wed, 19 Oct 2011 13:14:21 -0700, markus.mj wrote: > Hi, > > I am looking for help with following problem. I scripted threaded > database query, with session open per thread, and queries delivered > through queue. Every open DB session must be closed with "abort" or > "commit", however on which