#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10 11 12 13 
Top Prev 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 Next

#python

<evilx_> 1.10 is smaller then 1.2
<ehird> Habbie: oh, crap.
<ehird> yes. :P
<koollman> ehird: sounds like famous last words ...
<evilx_> 1.10 - 1.2 = -0.1
<ehird> YEARS_SINCE_PROJECT_CREATION.MONTHS_SINCE_PROJECT_CREATION
<ehird> so, it'll never get a third digit
<koollman> ehird: so ... 1.01 or 1.1 ? :)
<evilx_> 1.1 is bigger then 1.01
<ehird> koollman: 1.1
<ehird> 1.0-1.12
<koollman> and what about 1.10 ?
<ehird> er
<ehird> .11
<ehird> then it wraps over to the next digit, 2.0
<koollman> is it smaller than 1.1 ? :)
<evilx_> Tenth,Hundredth,Thousandths,Ten Thousandth,Hundred Thousands. example 0.12345
<ehird> nope. :(
<Juhaz> split by period, turn to int, compare tuples?
<SpComb> evilx_: so is that 500000.1234?
<evilx_> i dont know what going on, i just need something to think about
<koollman> Juhaz: sounds correct
<evilx_> now that goes to ten thousandths place
<sarefo> hi, is there an easy way to convert a string from all caps to only first letter caps?
<Juhaz> first letter of the string, or of each word?
<sarefo> of the string
<sarefo> it's only one word.
<Juhaz> string.capitalize()
<sarefo> k, thanks :)
<Bracki> how do you set up your module for testing? i'd like to execute some methods and then be able to play around on the commandline.
<pjd> Bracki: if __name__ == '__main__' ?
<Jafet> import, put in REPL mode and start generally playing around with things?
<Bracki> so you do python -m mymodule?
<ehird> actually, i think i'll adobt a simpler db versioning system
<ehird> Being, increase number each change, starting at 1
<Jafet> why not store the version as a tuple and join when needed?
<ehird> because i don't really need all that complexity for a db version :p
<Jafet> the compare function would be relatively simple
<Jafet> a simple number won't carry enough information
<ehird> that's your opinion
<Jafet> people won't be able to tell any difference between versions 45 and 46, say, as opposed to, say, 1.0.6 and 1.0.7
<Habbie> for a -data format revision-, 45/46 is as good as 1.0.6 vs 1.0.7
<ehird> any db change is inheriently incompatible
<ehird> IMO
<Habbie> yes
<Habbie> if it was compatible, you wouldn't be changing the number
<ehird> it's not worth guessing and maybe losing functionality/messing the db up
<ehird> precicely
<Bracki> Jafet: whats REPL mode?
<ehird> *precisely

Previous Page  Next Page

Search ircarchive.info