Re: Job opportunity in France

2006-05-05 Thread Alexandre Fayolle
Le 05-05-2006, Rony <[EMAIL PROTECTED]> nous disait: > We have a vacancy for a python programmer for a 6 months assignement. Hi Rony, You may find interested people on fr.comp.lang.python and on the python-fr mailing list (python at aful dot org), if you post your announce (in French) on these fo

Re: __init__.py, __path__ and packaging

2006-05-05 Thread Sandro Dentella
> Now, why you couldn't do "dbg.DBG = ..."? Very simple... "from > module import *" doesn't give you a dbg /module/, it only gives you > references to each piece inside the module. really the reason why I wanted that should probably be solved in other ways. I just wanted to split my dbg

Re: Tuple assignment and generators?

2006-05-05 Thread Erik Max Francis
vdrab wrote: > what the...? > does anybody else get mighty uncomfortable about this? No. Why should you ever care about whether two integers representing values are the same object? Your tests should be with `==`, not `is`. -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com

Re: Tuple assignment and generators?

2006-05-05 Thread vdrab
Wow, so, to see if I understand correctly: >>> r = 0 >>> s = 0 >>> t = 11 >>> u = 11 >>> r == s True >>> t == u True >>> r is s True >>> t is u False >>> ... ? what the...? does anybody else get mighty uncomfortable about this? s. -- http://mail.python.org/mailman/listinfo/python-list

Job opportunity in France

2006-05-05 Thread Rony Steelandt
We have a vacancy for a python programmer for a 6 months assignement. If interested, please visit www.bucodi.com And don't worry we speak english :) R_ -- --- Rony Steelandt BuCodi rony dot steelandt (at) bucodi dot com Visit the python blog at http://360.yahoo.com/bucodi -- http://mail.py

Embedding Python: How to run compiled(*.pyc/*.pyo) files using Python C API?

2006-05-05 Thread Shankar
Hello, I am trying to run compiled Python files (*.pyc and *.pyo) using Python C API. I am using the method PyRun_FileFlags() for this purpose. The code snippet is as follows:- PyCompilerFlags myFlags; myFlags.cf_flags=1; // I tried all values 0, 1 and 2 PyRun_FileFlags(script, file, Py_file_in

Re: Tuple assignment and generators?

2006-05-05 Thread Michele Simionato
Carl Banks wrote: >>> q = 0 > >>> r = 0 > >>> s = 0 > >>> id(q) > 134536636 > >>> id(r) > 134536636 > >>> id(s) > 134536636 > > It is okay with constant object, really. No: >>> r=11 >>> s=11 >>> t=11 >>> id(r) 135620508 >>> id(s) 135620532 >>> id(t) 135104688 It worked with the num

Re: Possible constant assignment operators ":=" and "::=" for Python

2006-05-05 Thread Michele Simionato
Edward Elliott wrote: > Michele Simionato wrote: > >> >>> A = [] # let's declare a "constant" here > >> >>> b = A # and let's assign the constant here > >> >>> b.append('1') # OOPS! > > > > But it makes no sense to use a mutable object for a constant! > > The user should use a tuple, > > Sure.

<    1   2   3