Re: [Tutor] div_t

2006-01-12 Thread Kent Johnson
Burge Kurt wrote: >>divmod(...) >>divmod(x, y) -> (div, mod) > > > What is the easiest way to use div and mod seperately as an attribute like: > > if a = divmod(x,y) > > a.div or a.mod The result of calling divmod() is a two-element tuple. You access the elements by indexing: >>> a

Re: [Tutor] div_t

2006-01-11 Thread Kent Johnson
Burge Kurt wrote: > Hi, > > What is the usage of div_t in python? > > I have some unsigned integer variables and want to use ; > > div_t div_T; > div_t div_N; > div_t div_B; I guess this is more C code. It doesn't have any Python equivalent - Python doesn't declare variables and doesn't hav

Re: [Tutor] div_t

2006-01-11 Thread bob
At 02:59 PM 1/11/2006, Burge Kurt wrote: >Hi, > >What is the usage of div_t in python? > >I have some unsigned integer variables and want to use ; > >div_t div_T; >div_t div_N; >div_t div_B; Your question is meaningless to me! Please clarify. div_t is not a Python constant or built_in. div_t div