Re: Python 2.3 and booleans

Yannick Gingras <[email protected]> Fri, 16 Apr 2004 12:43:14 -0400
Newsgroups gmane.comp.python.modeling
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On April 16, 2004 08:25 am, Sebastien Bigaret wrote:
>     def _setMyAttribute(self, value):
>         self.value=bool(value)
>
> (this is in fact the very same technique exposed here:
>  http://modeling.sourceforge.net/UserGuide/attribute-custom-type.html)
>
>
>     If it's not what you need, could you also give a little example?

Thats exactly what I need (except that I want an int instead of a bool) !

Thanks !

 : )

>   and I'll have a look at Arch when I find time ;)  Any idea on whether
>   it wirks on sf?

What is nice about Arch is that is does not need any support on the
server side.  Any remote file storage method will work, FTP, SFTP,
WebDav, NFS...

There is a ViewArch script to give the same functionality as ViewCVS.
You can also have free hosting on sourcecontrol.net as long as your
archive contain only free software.  Sourcecontrol.net offers some
more Arch centric support like remote branch searching and they are in
the process to add website and release hosting too.

The Emacs vc-arch mode also made it's way in the Emacs CVS so we can
expect to see it in the next release.

Compared to Subversion, the other likely replacement for CVS, Arch
standout because it does not require special action on the server, it
already support symlinks and you have GPG signature of commits which
is quite an important feature with all the recent development server
compromises.  Both support renaming and moving but Arch can detect it
without notifications without breaking history if you use tag-lines.
Thats quite a nice feature if you come up with the new name one of
these days...

 ; )

Get more information here:

  http://wiki.gnuarch.org/

- -- 
Yannick Gingras     "Let's say the docs present a simplified view of reality"
Coder for OBB : Obliquely Berserk Bookstore                     -- Larry Wall
http://OpenBeatBox.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAgA0jZJ8/OobqizMRAoacAJ9TmW9EFYfoIpwW6S9Xth+3jmm8WACgg7ZP
9W8GP89mmfusGsJhpL2jXUA=
=chOf
-----END PGP SIGNATURE-----



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click