| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Comments:
<0> echylo, does your cl*** depend on some api ? <1> asabil: The former didn't do it for me <0> second = first[:] <0> new_list = old_list[:] <2> asabil: as far as I read it, I don't think so <0> echylo, so it's pretty easy <1> It is about a cl*** returning a copy of one of its internal lists <0> top222, the [:] do a shallow copy <1> I am very surprised that after I sort the list that the cl*** has returned, the cl***' internal list is also sorted <0> you need to import copy and use copy.deepcopy <2> asabil: ok, then I got myself a job ;) <0> :) <0> echylo, one thing <1> Ok, but any idea why the shallow copy doesn't work? <1> When I run the interpreter, I know it does work <0> echylo, in python, references are used
<1> And that's where I tried it first <0> does your list contain objects ? <1> Strings <0> i mean some complex objects <0> oh <3> top222: only strings? <0> it must be copied then with [:] <1> Only strings <0> if it's only strings <3> so a shallow copy should work. <0> top222, use id(old_list) <2> asabil: bah, I think It uses 3 extensions, not very familiar to me <0> and id(new_list) <0> echylo, on php it's almost all the time copy <2> but I guess it's way over my head anyway :( <1> http://pastebin.com/659172 <0> top222, generally if you want help, please write your code in english (english is not my mother tongue neither) <2> asabil: ok, but it uses an extension that is pretty important, so I got to see what it is first(GMP \BCMath extension) <2> god <2> I have to read <2> Jrgen Erhard has written a python implementation of AOChat, get it from .... <4> top222: instead of doing pal = 1 pal = 0 etc and then return pal why not just return return 1 return 0 etc in their place? <4> top222: it would just make the code cleaner <0> small is beautiful :) <1> kosh: Does the execution of the method stop at the return statement? <4> yes <4> however that is not a problem in any of your cases that I can seee <1> Ok <0> # <0> def kadut(self): <0> # <0> pal = self.kadut[:] <0> # <0> return pal <0> does this work ? <4> return self.kadut[:] <4> I have no idea what pal means but I at least can see redundant variables <1> Problem seems to be that the cl*** has both a list called kadut and a method called kadut <0> exact <1> And the list takes precedence over the method <0> use a property <1> pal = palautus = Finnish for return <1> kadut = Finnish for streets <4> don't name a method and an attribute the same thing <1> kosh: Ok, I'll fix that <0> def get_kadut(self): return self.__kadut <0> kadut = property( get_kadut, doc = "return a kadut" ) <0> oups <0> <0> def get_kadut(self): return self.__kadut[:] <0> this way, the user will be able to so : r = route() <0> r.kadut <0> and it'll return a copy <0> everytime <1> I'll keep that in mind <1> For now I just renamed the internal list <0> if it's internal prefix it with __ <5> Jews Did WTC!!! http://www.jewsdidwtc.com <1> Does that automatically hide it in Pyhton? <5> Jews Did WTC!!! http://www.jewsdidwtc.com
<1> Silly <5> Jews Did WTC!!! http://www.jewsdidwtc.com <4> would one of our kind pps please solve this problem <5> Jews Did WTC!!! http://www.jewsdidwtc.com <1> gottingen: You give conspiracies a bad name <5> Jews Did WTC!!! http://www.jewsdidwtc.com <0> gottingen, stop it please <5> Jews Did WTC!!! http://www.jewsdidwtc.com <1> There is no clear definition of Jew in that <5> Jews Did WTC!!! http://www.jewsdidwtc.com <6> Hahaha <6> tosser <1> Odd that someone with less intelligence than a script kiddie would be interested in conspiracies <6> top222: Depends on the lameness of the conspiracy <1> Did someone look at it? Is it the return of goatse, or something like that? <4> personally I think it was the butterflies that did it <7> gottingen Jews Did WTC!!! http://www.jewsdidwtc.com <4> they flapped their wings wrong ;) <7> gottingen Jews Did WTC!!! http://www.jewsdidwtc.com <6> Ahhhh <7> gottingen Jews Did WTC!!! http://www.jewsdidwtc.com <0> gothGun, please <8> any op to kick him <0> top222, i looked at it <3> ok, if he persists I unfortunately might have to ban Tor. <9> gottingen Jews Did WTC!!! http://www.jewsdidwtc.com <4> that would be him continuing <9> gottingen Jews Did WTC!!! http://www.jewsdidwtc.com <4> wow he really gives people a bad name <0> top222, it's possible as a theory <6> asabil: Come on, everyone know Cheney did it. ;-) <4> it would be a hypothesis not a theory <10> gottingen Jews Did WTC!!! http://www.jewsdidwtc.com <0> at least i don't believe much in the media version <10> gottingen Jews Did WTC!!! http://www.jewsdidwtc.com <4> MrMeanie: I think the airplanes did it <10> gottingen Jews Did WTC!!! http://www.jewsdidwtc.com <1> asabil: Me neither <6> kosh: :-) <0> top222, and i still don't understand the fact that 4000 people were absent the 11/09 <8> asabil: what is the official american media ver <1> asabil: But the problem is... there are Zionist Jews, anti-Zionist Jews, Torah Jews, Talmud Jews, Zionist non-Jews, international bankers who are or are not Jews <4> however interesting it might be lets keep to python stuff <3> asabil: is that an established fact? <1> asabil: Problem is, what Jew is he referring to :P <0> tirkal, yes <3> asabil: reference? <0> top222, i don't know if there were jews <0> tirkal, wait <0> look at this : http://www.jewsdidwtc.com/proof.php <6> asabil: haha <0> MrMeanie, what again ? <1> Why #python? No other channels that I know have been flooded. <3> asabil: I asked for a credible reference. <0> top222, don't know <0> tirkal, there is none except media stories <4> the source code is pretty good at least <0> the fact is that in US only one version is dominant <0> outside the US, there are many versions <3> asabil: ok, so if the only reference you have is a nutty conspiracy theory site, I'd have to say that claim is unestablished. <0> not the conspriracy site <0> tirkal, the references, i was not able to find the articles <0> (at almanar and aljazeera) <3> asabil: do you view these as credible sources? <0> tirkal, yes
Return to
#python or Go to some related
logs:
#python #mysql #gimp #perl #linux mplayer /dev/fd0 etch Cannot find package task-bootstrap #linuxhelp #perl #css
|
|