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
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
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
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
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
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
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
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