Re: Retry: Question about FutureWarning

2007-08-20 Thread Gabriel Genellina
En Tue, 14 Aug 2007 22:44:17 -0300, Steven W. Orr <[EMAIL PROTECTED]> escribi�: > The shell compile command I use to generate both the .pyc and the .pyo > files is: > > python=/usr/bin/python2.3 > i_python () > { > $python -c "import $1" > $python -O -c "import $1" > } This is irrel

Re: Retry: Question about FutureWarning

2007-08-15 Thread Peter Otten
Steven W. Orr wrote: > I'm trying again, since no response indicates that I'm not providing > enough info. No, you were providing too much irrelevant information. It would have been better to put it that way: > Thanks guys, but that's not my question. The question is this: Why does > the call t

Re: Retry: Question about FutureWarning

2007-08-15 Thread Steven W. Orr
Thanks guys, but that's not my question. The question is this: Why does the call to filterwarnings not work if it's placed inside the M1 module? Why do I have to place the call in M4 to make it work? This is more a question about how import works than it is about what the value of -1 is. ;-) O

Re: Retry: Question about FutureWarning

2007-08-15 Thread A.T.Hofkamp
On 2007-08-15, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Aug 14, 8:49 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote: > > So if by '0x' you meant -1, then change this line to use -1. > Otherwise, if you really meant 4294967295L, leave it at 0x and > move on. A third option is to

Re: Retry: Question about FutureWarning

2007-08-15 Thread Paul McGuire
On Aug 14, 8:49 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote: > Steven W. Orr wrote: > > M1.py:268: FutureWarning: hex/oct constants > sys.maxint will > > return positive values in Python 2.4 and up > >StartTime = safe_dict_get ( dic, 'starttime', 0x ) > ... > > import warni

Re: Retry: Question about FutureWarning

2007-08-14 Thread Erik Max Francis
Steven W. Orr wrote: > M1.py:268: FutureWarning: hex/oct constants > sys.maxint will > return positive values in Python 2.4 and up >StartTime = safe_dict_get ( dic, 'starttime', 0x ) ... > import warnings > warnings.filterwarnings('ignore', category=FutureWarning) > > My que

Retry: Question about FutureWarning

2007-08-14 Thread Steven W. Orr
I'm trying again, since no response indicates that I'm not providing enough info. I have module M1 which has the following line in it: StartTime = safe_dict_get ( dic, 'starttime', 0x ) It gets imported by modules M2 and M3. And finally, M4 imports both M2 and M3. So the idea is t

Question about FutureWarning

2007-08-14 Thread Steven W. Orr
I have module M1 which has the following line in it: StartTime = safe_dict_get ( dic, 'starttime', 0x ) It gets imported by modules M2 and M3. And finally, M4 imports both M2 and M3. M4 |\M3 | |\M1 |\M2 | |\M1 I'm building a .deb file which means I have to compile the modu