#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 
Top Prev 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 Next

#python

<timonator> especially for people who run linuxes, because they come with python (usually)
<deltab> http://www.thescripts.com/forum/thread440546.html
<babbitt> timonator: python is a fairly small download in this day and age of common broadband. If you want to learn, the tutorial is very good, and you can follow it up with the python programming challenge
<deltab> http://www.artima.com/forums/flat.jsp?forum=106&thread=150515&start=60&msRange=15
<Twey> Yeah
<timonator> sorry
<timonator> i wasn't looking for something that teaches me
<evilx> timonator, sure you were.
<timonator> i was looking for something to give to someone who wants to learn
<ironfroggy> what do you want exactly that python and the tutorials dont give?
<timonator> ironfroggy: dunno, i'd have to ask that person
<timonator> probably the interactive tutorial ishness
<timonator> (like for instance vimtutor)
<ironfroggy> i wouldnt reject the idea, but im not convinced its all that great
<timonator> he is, tho
<ironfroggy> hmm.. would be a fun thing to do
<ironfroggy> but, shouldnt think of that too much. i have more ideas than time as it is.
<timonator> :D
<Anusien> You said you thought there was something in stdlin to strip down nested sequences/lists?
<ironfroggy> if you agree with him, write it
<ironfroggy> Anusien: how would it know where to stop?
<ironfroggy> should it simply flatten every iterable at every depth?
<ironfroggy> some iterables are infinite
<Anusien> Mine are guaranteed finite
<Anusien> Since they're made by finitely constructing lists
<ironfroggy> is an arbitrary depth or a known depth?
<Anusien> arbitrary
<Anusien> arkanes: you said you knew of something in stdlib like that? How do I check?
<arkanes> Anusien: I know I've seen one before, and I thought it was in stdlib, but I can't recall
<arkanes> I could be wrong
<masterdriverz> Anusien: try http://www.pkgcore.org/trac/browser/pkgcore/util/lists.py
<masterdriverz> Anusien: native_iflatten_instance
<masterdriverz> Anusien: there's a cpy version too
<ironfroggy> yeah you are wrong. its not a standard thing, because its usually far less easy to define than people expect
<Twey> How does one reference the list currently being constructed in a list comprehension?
<Twey> There's a magic identifier, but I've forgotten it.
<ironfroggy> no, there is not
<ironfroggy> what makes you think the list even exists yet? it probably does, but you cant access it or even expect that it will always exist before completion
<Twey> Hm
<ironfroggy> why do you want one?
<Twey> I'm sure I saw it somewhere.
<masterdriverz> Anusien: any good?
<Twey> Just curious to remember what it was
<arkanes> I saw a hack for it that looked at something magic in the stack frame
<arkanes> was in the cookbook I think
<Anusien> master: not sure
<Anusien> trying it
<ironfroggy> dont rely on magic stack frame hacks
<Anusien> masterdriverz: wait, so that's code someone wrote and GPLed right? not a standard lib?
<masterdriverz> Anusien: yeah it's an external lib licensed gpl

Previous Page  Next Page

Search ircarchive.info