verilog like class w/ bitslicing & int/long classtype
John Machin
sjmachin at lexicon.net
Thu Jan 29 18:01:21 EST 2009
On Jan 30, 9:55 am, Stef Mientki <stef.mien... at gmail.com> wrote:
> def __repr__ ( self ) :
> line = hex ( self.Value )
> line = line [:2] + line [2:].upper()
> return line
>
> btw, I'm a hardware guy too, and therefor I've never understood why the
> hex function returns lowercase ;-)
0xFF?? *Real* hardware guys prefer FFh or 377 :-)
More information about the Python-list
mailing list