code logs -> 2011 -> Sun, 11 Dec 2011< code.20111210.log - code.20111212.log >
--- Log opened Sun Dec 11 00:00:03 2011
00:13 You're now known as TheWatcher[T-2]
00:17 You're now known as TheWatcher[zZzZ]
00:53
< McMartin>
Hm. If I want to proceed on this silly project, I need to do boring bookkeeping stuff.
00:55
< McMartin>
... also, I am officially a Crazy Functional Person now.
00:55 * gnolam hands McMartin a veil and a smoker.
00:55
< gnolam>
... oh, bookkeeping.
00:55
< McMartin>
"Sure, this is a sequence of transformers. This one, for instance, transforms a string into another string which is the contents of the file with that name."
01:07 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has quit [[NS] Quit: Into the hole again, we hurried along our way, into a once-glorious garden now seeped in dark decay.]
01:35
< McMartin>
There we go.
01:37
< McMartin>
All my compiler-like programs have ludicrous numbers of passes. -_-
01:58 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
02:12 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
02:18
< McMartin>
One of the annoying bits of this, though, is that I can't really post this stuff
02:18
< McMartin>
Since it's, in effect, homework assignments for a standard course.
02:19 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has quit [[NS] Quit: Z?]
02:20 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
02:36 Kindamoody[zZz] is now known as Kindamoody
02:47 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
03:00 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
03:17 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
03:30 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
06:04 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
06:04 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
06:10 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
06:11 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
07:18 Derakon is now known as Derakon[AFK]
07:52 AnnoDomini [annodomini@Nightstar-f7eedefa.80-203-17.nextgentel.com] has joined #code
08:41 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
09:01 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
09:01 AnnoDomini [annodomini@Nightstar-f7eedefa.80-203-17.nextgentel.com] has quit [[NS] Quit: leaving]
09:07 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
09:11 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has joined #code
09:21 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
09:23 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has joined #code
09:48 You're now known as TheWatcher
09:53 Kindamoody is now known as Kindamoody|out
09:56 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
09:56 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
10:08 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
10:35 gnolam [lenin@Nightstar-202a5047.priv.bahnhof.se] has joined #code
10:37 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
10:38 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
10:39 Attilla_ [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
10:40 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [NickServ (GHOST command used by Attilla_)]
10:40 Attilla_ is now known as Attilla
10:52 Attilla_ [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
10:53 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
11:00 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
11:26 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
11:27 Attilla_ [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
11:30 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
11:31 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
11:40 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
11:41 Thaqui [Thaqui@27B34E.D54D49.F53FA1.6A113C] has quit [Connection closed]
11:41 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
11:46 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
11:51 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
12:00 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
12:13 Stalker [Z@Nightstar-3602cf5a.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
12:38 AnnoDomini [annodomini@Nightstar-4ea39ceb.212.getinternet.no] has joined #code
13:01 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
13:10 Attilla_ [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
13:11 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
13:14 Attilla_ [Obsolete@Nightstar-b8e915be.as43234.net] has quit [Ping timeout: 121 seconds]
13:15 Attilla [Obsolete@Nightstar-b8e915be.as43234.net] has joined #code
13:37 Stalker [Z@Nightstar-5aa18eaf.balk.dk] has joined #code
13:42 Kindamoody|out is now known as Kindamoody
14:24 Kindamoody is now known as Kindamoody|out
15:14 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
15:16 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
15:24 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
15:30 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
15:46 celticminstrel [celticminst@Nightstar-5d22ab1d.cable.rogers.com] has joined #code
16:41 cpux is now known as cpux[Skyrim]
17:57 Derakon[AFK] is now known as Derakon
18:29 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has quit [Ping timeout: 121 seconds]
18:42 Eri [Eri@Nightstar-3e5deec3.gv.shawcable.net] has joined #code
19:41 Kindamoody|out is now known as Kindamoody
19:44 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has quit [Connection closed]
19:44 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has joined #code
20:01 Kindamoody is now known as Kindamoody[zZz]
20:21 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has quit [Connection closed]
20:21 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has joined #code
21:10 iospace is now known as io|PACKERS
21:18
<@Tarinaky>
I'm having issue with inheritance and super in python.
21:19
<@Tarinaky>
I have a class whose constructor initialises an attribute and has a method to use that attribute.
21:20
<@Tarinaky>
I have a specialisation that needs to overload the constructor.
21:20
<@Tarinaky>
The constructor calls super(baseclass,self).__init__
21:20
<@Tarinaky>
But when I come to use the method that uses the attribute initialised in the base class' constructor it gives me a type error.
21:21
<@Tarinaky>
self.polyList.extend(polyList)
21:21
<@Tarinaky>
AttributeError: 'Hemisphere' object has no attribute 'polyList'
21:21
<@Tarinaky>
Where that line of code is in the Shape class Hemisphere inherits from.
21:27
<@Tarinaky>
I have a test case to help show my problem.
21:27 cpux[Skyrim] is now known as cpux
21:27
<@Tarinaky>
http://pastebin.com/xsi9N2Uz
21:36
<@Tarinaky>
I've successfully identified that super(BaseClass,self).__init__() isn't calling the base class' constructor.
21:36
<@Tarinaky>
What?
21:41 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [[NS] Quit: ]
21:52
< gnolam>
def __init__(self):
21:52
< gnolam>
BaseClass.__init__(self)
21:52
< gnolam>
?
21:53
< gnolam>
Or do you have to use super()?
21:56 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has quit [Connection closed]
21:56 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has joined #code
22:04
<@Tarinaky>
I thought super was the correct way of doing it.
22:05
<@Tarinaky>
Also: I got it working.
22:05
<@Tarinaky>
Turns out that it needed to be super(Specialisation,self)
22:05
<@Tarinaky>
Which... makes no sense to me but okay.
22:30
< McMartin>
"super" only makes sense if your langauge is single-inheritance; Python isn't so you have to say which one.
22:42
< gnolam>
... any reason why tar would refuse to include my actual executable? What's in there is 0 bytes.
22:50
< gnolam>
... ah, it's some kind of symlink.
22:55 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has quit [Ping timeout: 121 seconds]
22:56 Alek [omegaboot@Nightstar-10752b3e.il.comcast.net] has joined #code
22:58
<@Tarinaky>
McMartin: But which one what?
22:59
< McMartin>
Which superclass you mean when you say "super"
22:59
<@Tarinaky>
But super(Specialisation,self) doesn't.
22:59
<@Tarinaky>
super(BaseClass,self) specifies what BaseClass I mean.
23:00
<@Tarinaky>
Specialisation isn't a base class. I know that this is a Specialisation object because this is the constructor for a Specialisation object.
23:00
<@Tarinaky>
Hence: This makes no sense.
23:01 * Tarinaky is currently swearing at his inability to perform matrix math.
23:14 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
23:26 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
23:29
< celticminstrel>
Super doesn't even necessarily return the superclass; it just returns the next class in the method resolution order.
23:31 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
23:32 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has quit [Ping timeout: 121 seconds]
23:32 Syloqs_AFH is now known as Syloqs-AFH
23:33 Reiver [orthianz@3CF3A5.E1CD01.C6689C.33956A] has joined #code
23:36
<@Tarinaky>
celticminstrel: Yeah, but if they're daisychained nicely then the behavior reflects C++; if they're not daisy chained nicely then there's probably a reason why not.
23:47
< gnolam>
So. Binary distribution of Python programs on Linux. Anything that actually works?
23:51
<@Namegduf>
Why binary?
23:51
<@Namegduf>
Obfustication?
23:53
<@Namegduf>
And what do you mean by binary? Enough to run without Python, or bytecode?
23:53
< Derakon>
I suspect he means "I don't have to compile it myself".
23:54
<@Namegduf>
But there's no separate compile step when running Python anyway.
23:54
< Derakon>
"it" == "the interpreter".
23:54
<@Namegduf>
Ah. Yeah, you tell them to install it from package management, virtually everyone will already have it anyway.
23:55
< gnolam>
"Enough to run without Python"
23:55
<@Namegduf>
Don't think you can and you absolutely shouldn't; you'd have to embed your own copy of Python, pretty much.
23:56
<@Tarinaky>
Bundle it with an interpretter.
23:56
<@Namegduf>
There's talk of adding Python to the Linux Standard Base.
23:56
<@Namegduf>
It's *that* commonplace.
23:58
< celticminstrel>
It's not already standard?
23:58
<@Namegduf>
It might be.
23:58
<@Namegduf>
The thing I read said it was going into 3.2, and 3.2 is the current version of the LSB.
23:58
<@Tarinaky>
It's not part of Arch Linux's core yet.
23:59
<@Namegduf>
Nevertheless, I think trying to pack everything into one blob download is not very... idiomatic on Linux. Particularly interpreters.
23:59 PinkFreud [WhyNot@NetworkAdministrator.Nightstar.Net] has joined #code
--- Log closed Mon Dec 12 00:00:12 2011
code logs -> 2011 -> Sun, 11 Dec 2011< code.20111210.log - code.20111212.log >

[ Latest log file ]