| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Comments:
<0> >>> True and False or 2 #==> 2 <1> >>> a = "\n" == "\n" and 99 or 2 #==> 99 <1> I'm going to have to dig in the language reference to find the difference here I think <2> RandolphCarter: the py compiler checks for literal duplicates i think <0> ionel_mc: hes using == not is <2> ah <2> well... <0> ionel_mc: (But not a bad thought on your part. I explained it a few lines ago.) <3> how do i use multi-dimentional lists? like a[][] <4> list of lists or a dict with coordinate tuples <0> hippi: Install numarray or numpy is often the way to go. <5> hippi: mylist = [[1,2,3], ["a","b", "c"]] <5> mylist[1] is ["a","b", "c"] <5> mylist[1][0] is "a" <5> clear? :) <0> >>> import numarray as nay; a = nay.array(xrange(2*5), shape=(2,5)); a
<0> array([[0, 1, 2, 3, 4], <0> [5, 6, 7, 8, 9]]) <0> >>> a[1,-2] #==> 8 <6> hello. if i'm walking through a message and one part in the walk has the type "multipart/mixed", how do i go through the various attachments in that one mixed part? <5> topher: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/86676 <6> ajaksu: thank you <0> topher: There's a complete example in the documentation. <6> Pythy: yea, ive been reading through and i can break up emails into multiple parts but i guess a multipart/mixed can be embedded inside yet another multipart/mixed or something? im not entirely familiar with the way mime email works <7> can i completely disable escaped characters in a """...""" string? <0> r""" ... """ <8> /quit is left. <0> What's right? <9> Ha, i saw that. wonder how many people actually typed it. <8> I typed it, but I'm sneaky <9> That doesn't count. ;-) <8> says who? <9> ...me... :P <8> and who are you to decide? :-P <10> /quit i'm so dumb... <9> I am kieran <10> maybe, my irc uses /exit :P <8> let's all type /quit <8> to be popular. <11> heh :) <8> /quit <12> /quit <10> /quit <8> you are now! <12> wohoo! <4> how do you... <12> ha ha ha!!! <3> Pythy: thanks <9> 2:15Am, time for coffee i thinks. <3> ajaksu: thanks <8> ironfroggy_LT, ? <12> hmm, why are there two ironfroggys? Must be spawning season. <4> i a***ually reproduce <0> One folds, the other irons. <4> finally, i can reap the benefits of pair-coding all by myself. <9> this is bolloks. <0> (Iron II really should be named FerrousFroggy, anyway.) <4> what is bolloks, KieranDOA? <9> Reading the back of a cd case. <4> dont like your musical selections? <9> My musical selections are fine. <9> 'Unauthorised copying, hiring, *LENDING*, public performance etc etc blah..... is prohibited' <9> Its just the lending part that gets me <9> Does that mean i cant lend the cd to a friend <9> :-S <4> they can say "unautorized X is prohibited" where X is anything they want. thats only telling you not to do things that arent authorized, but it doesnt actually tell what is authorized. scare tactic. <4> under certain limitations and conditions, copying and public performances are allowed, for example. <9> I was just thinking, I mean, fair enough everyone needs to get paid, but hell if im paying for a cd then not being able to give it to a friend for a few days <4> british? (the bollocks should have given it away) then i cant be sure. i dont know UK copyright law as well, but i think its mostly on par with ours. <9> Yeah im british. <4> still i'm pretty sure lending out CDs is within your fair use rights <9> Fair enough <9> Its still pretty funny though <9> its not even a new cd, Its a bloody Smiths cd. <9> Anyway, before i start ranting lol.
<4> old CDs are worth more to the record companies. once its shown its worth, they make more selling it after its done being a new release. <6> using email's walk, how does one "descend" into a multipart/mixed and parse it? the last url given was just a tutorial for walk <9> Hmm, i suppose. <9> Man its amazing how simple the DAAP protocol is. <13> hi - what's the best way to incorporate manpages in distutils setup.py scripts? <6> email walking. i have a part that is multipart/mixed, and get_params() returns nothing as does get_payload(decode=1) ... how do i parse a multipart/mixed to extract the data from it? <14> topher: dunno, my guess is that not many people here have parsed email themselves. <6> ironfroggy: hrm. ok, thanks. do you know if there's a mailing list or something where i might have better luck? <14> its not a common thing to do to have to parse the multipart/mixed portion of a raw email. <14> probably should look at the mailing list of whatever library you're using to parse the mail. <6> alright. thanks ironfroggy <15> Hi, I'm compliling a program linking to python, however I <15> Hi, I'm compliling a program linking to python, however I'm having this error: <15> /usr/lib/python2.4/config/libpython2.4.a(posixmodule.o): In function `posix_openpty': <15> posixmodule.c:(.text+0x34f7): undefined reference to `openpty' <14> how are you compiling, and one what OS? <15> gentoo gnu/linux, and what do you mean by "how am I compiling" <16> argh. bittornado's threading is terrible. >:( <14> threading is terrible <14> Rednaxela: so why are you doing this anyway? <15> ironfroggy, Compiling vim with python interperator support <14> are you compiling yourself or just emerging it? <15> compiling myself <15> but python was emerged <14> hmm... try not doing it yourself? <15> Well, I'm trying vim 7.0 which isn't in portage yet <14> yes it is <15> Ah, masked then I'm guessing <14> try looking next time you decide to go compiling stuff you dont understand <14> just some friendly advice <14> you also might be interested in the vimpython package <15> ironfroggy: I often do, but I tend to often get annoyed at missing use flags for things and such, though it looks pretty good for vim <14> so make sure you always emerge -av and know what you're including and excluding from every package. <16> sounds like an actual bug though <14> hows that a bug? <16> how is a compiling error not a bug? <9> Good luck with that :D <14> why would you do that <14> you kids are crazy these days. <17> im weird <17> :) <14> im coming to understand that, but weird doesnt explain that kind of action. <9> Last time i tried was in school <9> i got banned from using the computers for about a month. <17> lol ???????? <15> KieranDOA, Your computers or theirs? <16> "Get outta DOS! damn youngins!" <18> is anybody aware of a module that can "easily" report the hosts processor speed in mhz? ;p <18> hehe. <9> In school: Theirs, It was a live cd. <18> KieranDOA, hey! <9> In college it'll be my own laptop <18> I was in dos once at school. <19> hi all <18> i was actually running Folding@home,... but whatever... <9> hey. <15> KieranDOA, I suspect, that because it will be your own laptop, they shouldn't care so long as you can get things done :P <9> Problem is, ill be wanting to use their network. <9> And... In school i was accused of 'hacking' as soon as they saw anything other than windows <18> And the guy comes over and he's like... "What were you doing in dos." "uhh..." "I'm serious, what in the world would you be doing in DOS?" And he's all like freaking out. "Are you editing your own html is that it???? Wait, this isn't html,, get rid of this!!" so I closed it and he's like "Don't be in dos if you don't know what you are doing..." I was scared.. <18> lol <18> you can't really do anything in dos anyways... <16> Most collages should be fine or even supportive when it comes to linux <9> Lol <18> what is there... like 3 commands? Ping, and killthesystemforever. <18> forgot the last and only command. <9> Seriously, i went to the course induction, looked at the pc's <18> I'll be back.. <9> Its all commercial stuff <18> mm <9> Adobe suite, some macromedia stuff, and the office suite.
Return to
#python or Go to some related
logs:
how to check whether datas in two tables are same or different using MYSQL query #gcc checkinstall won't accept certain characters #oe Class::DBIX Contextualfetch Class::DBI error #math mysql delete inner join* xgl twinview xinerama hot-to install skype ubuntu ftp_put hangs
|
|