interfacing with x86_64 assembler

2012-08-31 Thread lipska the kat
Worryingly I was hacking away at some x86_64 assembler today when I found myself obsessively indenting my code by EXACTLY 4 spaces or (multiples thereof) Who'd have thought it. lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http

Re: Is Python a commercial proposition ?

2012-08-24 Thread lipska the kat
any metric you want, a simple KLOC, function point or cost analysis will be fine. This is a genuine enquiry and not designed to 'diss' Python in any way. Many thanks lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman

Re: Objects in Python

2012-08-23 Thread lipska the kat
On 23/08/12 02:19, Walter Hurry wrote: On Wed, 22 Aug 2012 18:46:43 +0100, lipska the kat wrote: Well I'm a beginner Then maybe you should read more and write less. Really ? I read all the responses to my posts and learn more from them in less time than I ever have from reading

Re: Objects in Python

2012-08-23 Thread lipska the kat
On 23/08/12 05:14, Steven D'Aprano wrote: On Thu, 23 Aug 2012 01:19:49 +, Walter Hurry wrote: On Wed, 22 Aug 2012 18:46:43 +0100, lipska the kat wrote: Well I'm a beginner Then maybe you should read more and write less. I think that's uncalled for. Lipska isn't trolling. He's making

Re: Objects in Python

2012-08-23 Thread lipska the kat
On 22/08/12 22:31, Evan Driscoll wrote: On 08/22/2012 02:45 PM, lipska the kat wrote: On 22/08/12 20:03, Evan Driscoll wrote: Second, this concept isn't *so* unfamiliar to you. If I give you the following Java code: void foo(Object o) { ... } looking at this method declaration I can see

Re: Objects in Python

2012-08-23 Thread lipska the kat
this 'it's not all about you' meaningless nonsense. It's pointless and wastes mine and no doubt others time. If you want to carry this on please contact me off list. lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo

Re: Objects in Python

2012-08-23 Thread lipska the kat
On 23/08/12 17:44, Evan Driscoll wrote: On 08/23/2012 04:19 AM, lipska the kat wrote: Well we don't want to turn this into a language comparison thread do we, that might upset too many people but I can't remember ever writing a method that took an Object as argument, you just can't do that much

Re: Objects in Python

2012-08-22 Thread lipska the kat
Unicode :-) I like it, give it a chance and you will probably like it too. lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: Objects in Python

2012-08-22 Thread lipska the kat
On 22/08/12 16:58, MRAB wrote: On 22/08/2012 15:59, lipska the kat wrote: On 22/08/12 15:13, shaun wrote: [snip] Im very new to python and the object orientated feature doesnt seem to be as well put together as Java. Can anyone help with this problem? From one Java head to another I

Re: Objects in Python

2012-08-22 Thread lipska the kat
On 22/08/12 17:30, Mark Lawrence wrote: On 22/08/2012 17:10, lipska the kat wrote: On 22/08/12 16:58, MRAB wrote: On 22/08/2012 15:59, lipska the kat wrote: On 22/08/12 15:13, shaun wrote: [snip] Im very new to python and the object orientated feature doesnt seem to be as well put together

Re: Objects in Python

2012-08-22 Thread lipska the kat
On 22/08/12 18:01, Terry Reedy wrote: On 8/22/2012 10:59 AM, lipska the kat wrote: There is no real enforced concept of information hiding, no binding of type to variable in fact no concept of typing at all as far as I can see. Given that type(valid_name) always returns a type(class

Re: Objects in Python

2012-08-22 Thread lipska the kat
On 22/08/12 19:15, Ian Kelly wrote: On Wed, Aug 22, 2012 at 11:46 AM, lipska the kat lipskathe...@yahoo.co.uk wrote: If, in a language, I find I am able to say a = 1 [snip] You're conflating strong typing with static typing. Strong typing does not refer to restrictions on what type

Re: Objects in Python

2012-08-22 Thread lipska the kat
On 22/08/12 19:07, Mark Lawrence wrote: On 22/08/2012 18:06, lipska the kat wrote: On 22/08/12 17:30, Mark Lawrence wrote: On 22/08/2012 17:10, lipska the kat wrote: On 22/08/12 16:58, MRAB wrote: On 22/08/2012 15:59, lipska the kat wrote: On 22/08/12 15:13, shaun wrote: [snip] Maybe

Re: Objects in Python

2012-08-22 Thread lipska the kat
On 22/08/12 20:03, Evan Driscoll wrote: On 08/22/2012 12:46 PM, lipska the kat wrote: If you can show me a 'type' that cannot be assigned to a in the same scope then I would be most interested to know, I haven't found one yet. [snip] Second, this concept isn't *so* unfamiliar to you

Re: How to convert base 10 to base 2?

2012-08-20 Thread lipska the kat
On 20/08/12 08:50, gianpy...@gmail.com wrote: Hi, as you can argue from the subject, i'm really,really new to python. What is the best way to achieve that with python? Because the syntax int('30',2) doesn't seem to work x = bin(30)[2:] x '0' int(x, 2) 30 lipska -- Lipska the Kat

Re: How do I display unicode value stored in a string variable using ord()

2012-08-19 Thread lipska the kat
information. s = chr(0x + 1) a, b = s a '\ud800' b '\udc00' The date stamp is different but the Python version is the same No idea why this is happening, I just thought it was interesting lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http

Re: How do I display unicode value stored in a string variable using ord()

2012-08-19 Thread lipska the kat
On 19/08/12 11:19, Chris Angelico wrote: On Sun, Aug 19, 2012 at 8:13 PM, lipska the kat lipskathe...@yahoo.co.uk wrote: The date stamp is different but the Python version is the same Check out what 'sys.maxunicode' is in each of those Pythons. It's possible that one is a wide build

Re: Encapsulation, inheritance and polymorphism

2012-08-19 Thread lipska the kat
be ... lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: socketserver.BaseRequestHandler and socketserver.StreamRequestServer docs

2012-08-10 Thread lipska the kat
On 09/08/12 20:45, Terry Reedy wrote: On 8/9/2012 1:39 PM, Dennis Lee Bieber wrote: On Thu, 09 Aug 2012 16:15:33 +0100, lipska the kat lipskathe...@yahoo.co.uk declaimed the following in gmane.comp.python.general: in the examples in this chapter we see usage examples

Re: Looking for a good introduction to object oriented programming with Python

2012-08-09 Thread lipska the kat
On 09/08/12 03:59, Dennis Lee Bieber wrote: On Wed, 08 Aug 2012 20:31:57 +0100, lipska the kat lipskathe...@yahoo.co.uk declaimed the following in gmane.comp.python.general: [snip] If a node is a father or mother, and it takes one of each to produce a leaf, your tree has just

socketserver.BaseRequestHandler and socketserver.StreamRequestServer docs

2012-08-09 Thread lipska the kat
, how many other potentially useful classes are lurking undocumented in the library This is NOT intended as a criticism but it is frustrating. many thanks lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python

Re: socketserver.BaseRequestHandler and socketserver.StreamRequestServer docs

2012-08-09 Thread lipska the kat
On 09/08/12 18:39, Dennis Lee Bieber wrote: On Thu, 09 Aug 2012 16:15:33 +0100, lipska the kat lipskathe...@yahoo.co.uk declaimed the following in gmane.comp.python.general: in the examples in this chapter we see usage examples for socketserver.BaseRequestHandler So far as I can

Re: socketserver.BaseRequestHandler and socketserver.StreamRequestServer docs

2012-08-09 Thread lipska the kat
On 09/08/12 18:39, Dennis Lee Bieber wrote: On Thu, 09 Aug 2012 16:15:33 +0100, lipska the kat lipskathe...@yahoo.co.uk declaimed the following in gmane.comp.python.general: in the examples in this chapter we see usage examples for socketserver.BaseRequestHandler So far as I can

Re: socketserver.BaseRequestHandler and socketserver.StreamRequestServer docs

2012-08-09 Thread lipska the kat
On 09/08/12 19:55, Mark Lawrence wrote: On 09/08/2012 19:37, lipska the kat wrote: On 09/08/12 18:39, Dennis Lee Bieber wrote: On Thu, 09 Aug 2012 16:15:33 +0100, lipska the kat lipskathe...@yahoo.co.uk declaimed the following in gmane.comp.python.general: in the examples in this chapter we

Re: socketserver.BaseRequestHandler and socketserver.StreamRequestServer docs

2012-08-09 Thread lipska the kat
On 09/08/12 20:07, Peter Otten wrote: lipska the kat wrote: If there isn't how does one go about contributing to the documentation. http://docs.python.org/dev/py3k/bugs.html A similar link should be right there in the footer of the socketserver documentation. It is indeed, thank you

Re: Looking for a good introduction to object oriented programming with Python

2012-08-08 Thread lipska the kat
with this but thank you for contributing lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle file and send via socket

2012-08-08 Thread lipska the kat
comments but I will be working on this more to help me understand exactly what is going on http://pastebin.com/iFzK7fuk SpaceTravellers.py http://pastebin.com/TdqPwMGi NetworkPickler.py http://pastebin.com/DF5DtYRZ NetworkUnpickler.py lipska -- Lipska the Kat: Troll hunter, sandbox destroyer

Re: Pickle file and send via socket

2012-08-08 Thread lipska the kat
On 08/08/12 14:50, S.B wrote: On Wednesday, August 8, 2012 3:48:43 PM UTC+3, lipska the kat wrote: On 06/08/12 14:32, S.B wrote: [snip] Thank you so much ! The examples are very helpful. What happens if I have a regular text file I want to send via the network. Do I need to read the file

Re: Looking for a good introduction to object oriented programming with Python

2012-08-08 Thread lipska the kat
On 08/08/12 17:42, Dennis Lee Bieber wrote: On Wed, 08 Aug 2012 10:51:45 +0100, lipska the kat lipskathe...@yahoo.co.uk declaimed the following in gmane.comp.python.general: The point I'm obviously struggling to make is that words convey concepts The word Person conveys a whole lifetime

Re: [newbie] Looking for a good introduction to object oriented programming with Python

2012-08-07 Thread lipska the kat
On 07/08/12 06:35, Steven D'Aprano wrote: On Mon, 06 Aug 2012 10:24:10 +0100, lipska the kat wrote: er, the point I was trying to make is that when you say 'interface' it could mean so many things. If you say 'facade' everyone knows exactly what you are talking about. And that is EXACTLY

Re: [newbie] Looking for a good introduction to object oriented programming with Python

2012-08-07 Thread lipska the kat
On 07/08/12 06:19, Steven D'Aprano wrote: On Mon, 06 Aug 2012 09:55:24 +0100, lipska the kat wrote: On 06/08/12 01:22, Steven D'Aprano wrote: On Sun, 05 Aug 2012 20:46:23 +0100, lipska the kat wrote: [snip] The clue is in the name 'Object Oriented' ... anything else is (or should

Re: OT probably but still relevant (was Re: Looking for a good introduction to object oriented programming with Python)

2012-08-07 Thread lipska the kat
On 07/08/12 10:44, Steven D'Aprano wrote: On Mon, 06 Aug 2012 17:23:19 +0100, lipska the kat wrote: On 06/08/12 13:19, rusi wrote: I suggest this http://steve-yegge.blogspot.in/2006/03/execution-in-kingdom-of- nouns.html http://bpfurtado.livejournal.com/2006/10/21/ Unfortunately

Re: Pickle file and send via socket

2012-08-07 Thread lipska the kat
On 07/08/12 12:21, S.B wrote: Can anyone provide a simple code example of the client and server sides? Working on it lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: [newbie] Looking for a good introduction to object oriented programming with Python

2012-08-07 Thread lipska the kat
have to 'remove' a Person from my designs as they never get through the door in the first place. The only time I have ever had to agree that a Person belongs in a computer is when I saw Tron. lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http

Re: [newbie] Looking for a good introduction to object oriented programming with Python

2012-08-07 Thread lipska the kat
On 07/08/12 15:14, Steven D'Aprano wrote: On Tue, 07 Aug 2012 10:19:31 +0100, lipska the kat wrote: On 07/08/12 06:19, Steven D'Aprano wrote: [...] But what *really* gets me is not the existence of poor terminology. I couldn't care less what terminology Java programmers use among themselves

Re: Looking for a good introduction to object oriented programming with Python

2012-08-07 Thread lipska the kat
include such a Class. Person however is an entirely different matter and will never appear in my systems in any way shape or form ...this is not dogma, it's a fact. lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman

Re: Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread lipska the kat
jeez lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread lipska the kat
. It does take a bit of application though. lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: [newbie] Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread lipska the kat
On 06/08/12 01:22, Steven D'Aprano wrote: On Sun, 05 Aug 2012 20:46:23 +0100, lipska the kat wrote: rant Object Oriented programming is a mindset, a way of looking at that particular part of our world that you are trying to encapsulate in computer language. The language you use is (should

Re: [newbie] Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread lipska the kat
On 06/08/12 09:55, lipska the kat wrote: On 06/08/12 01:22, Steven D'Aprano wrote: On Sun, 05 Aug 2012 20:46:23 +0100, lipska the kat wrote: rant snip Well as you seem to be so concerned with terminology I'd have to disagree with you here. An interface (in computing) has any number

Re: Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread lipska the kat
://steve-yegge.blogspot.in/2006/03/execution-in-kingdom-of-nouns.html Particularly useful if you are a bit drunk on snake-oil You take out the garbage. I've got automatic garbage collection lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http

OT probably but still relevant (was Re: Looking for a good introduction to object oriented programming with Python)

2012-08-06 Thread lipska the kat
-in-kingdom-of-nouns.html http://bpfurtado.livejournal.com/2006/10/21/ lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: [newbie] Looking for a good introduction to object oriented programming with Python

2012-08-05 Thread lipska the kat
haven't tried that yet Learn Python by all means, the interactive mode is particularly fun,just try and get a good idea of what OO is all about before you start. Just my opinion lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http

Re: Eclipse and the Python plugin

2012-08-04 Thread lipska the kat
On 04/08/12 00:29, Cousin Stanley wrote: lipska the kat wrote: I can now create, debug and test a simple IRC server written in Java and an IRC Bot that I am attempting to build in Python For a bit of inspiration python-irc-bot-wise you might look at supybot Yep, it's

Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
written in Java and an IRC Bot that I am attempting to build in Python side by side in the same IDE simply by switching profiles (click one button). Astonishing. You might like to try it Just FYI so please don't tell me off (again). lipska -- Lipska the Kat: Troll hunter, sandbox destroyer

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 13:10, Mark Lawrence wrote: On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, snip My opinion of Eclipse is unchanged by your words, it's like trying to run a legless carthorse in the Grand National

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 13:40, Mark Lawrence wrote: On 03/08/2012 13:23, lipska the kat wrote: On 03/08/12 13:10, Mark Lawrence wrote: On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, snip it's like trying to run a legless

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
doesn't get excited) If I try that in Java the sky falls in. Of course I'm about as far away from being a Python expert as it's possible to be. Anyway, if and when I find out more I'll let you know. It will be a while though. lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 17:40, Steven D'Aprano wrote: On Fri, 03 Aug 2012 16:51:26 +0100, lipska the kat wrote: I can write a Python class and call it Foo and save it in a file called Bar and it's no big deal (at least Eclipse doesn't get excited) If I try that in Java the sky falls in. :) Correct

Re: Is Python a commercial proposition ?

2012-08-02 Thread lipska the kat
you an ignoramus (it's a funny word though isn't it, makes me smile anyway). lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python a commercial proposition ?

2012-08-01 Thread lipska the kat
On 01/08/12 09:06, Mark Lawrence wrote: On 01/08/2012 00:31, David wrote: On 01/08/2012, lipska the kat lip...@yahoo.co.uk wrote: On 31/07/12 14:52, David wrote: [1] as in beer [2] for research purposes There's one (as in 1 above) in the pump for you. Great, more beer = better research

Re: Is Python a commercial proposition ?

2012-07-31 Thread lipska the kat
) in the pump for you. lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python a commercial proposition ?

2012-07-30 Thread lipska the kat
what we spend 80% of our developer time writing. snip We are very sorry to say that due to licensing constraints we cannot allow access to Songza for listeners located outside of the United States. Arse :-( Lipska -- Lipska the Kat: Troll hunter, sandbox destroyer and farscape dreamer

Is Python a commercial proposition ?

2012-07-29 Thread lipska the kat
are ... How is python used in the real world. What sized projects are people involved with Are applications generally written entirely in python or is it more often used for a subset of functionality. I hope this is an acceptable question for this group Many thanks Lipska -- Lipska the Kat

Re: My first ever Python program, comments welcome

2012-07-24 Thread Lipska the Kat
everything I want to. JavaAnt everyday Cmake a while back python well I sort of got sidetracked by python ... and then I got sidetracked by git !!! Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http://mail.python.org/mailman/listinfo/python

python package confusion

2012-07-23 Thread Lipska the Kat
are not being added to sys.path I also have an empty file __init__.py in the mods directory Not sure what I'm doing wrong here Any help much appreciated. Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http://mail.python.org/mailman/listinfo/python-list

Re: python package confusion

2012-07-23 Thread Lipska the Kat
On 23/07/12 11:19, Dave Angel wrote: On 07/23/2012 06:02 AM, Lipska the Kat wrote: Hello again pythoners snip That line isn't the way you showed it in the source. You showed us source as fibo.fib(1000), and the error message shows it as fib(1000) So you're either cutting pasting wrong

Re: python package confusion

2012-07-23 Thread Lipska the Kat
, I'll read again Thanks for taking the time to reply It all works now Lipska slinks away to hide -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http://mail.python.org/mailman/listinfo/python-list

Re: python package confusion

2012-07-23 Thread Lipska the Kat
. I've sent you message Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http://mail.python.org/mailman/listinfo/python-list

Re: My first ever Python program, comments welcome

2012-07-22 Thread Lipska the Kat
On 21/07/12 21:10, Dave Angel wrote: On 07/21/2012 03:08 PM, Lipska the Kat wrote: Greetings Pythoners A short while back I posted a message that described a task I had set myself. I wanted to implement the following bash shell script in Python snip A totally off-the-wall query

Re: My first ever Python program, comments welcome

2012-07-22 Thread Lipska the Kat
way' again. I'm going to do 'proper OO' version of the shell script to learn about wiring different modules together ... I find the official documentation hard to navigate though. Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http

Re: My first ever Python program, comments welcome

2012-07-22 Thread Lipska the Kat
On 22/07/12 11:17, Chris Angelico wrote: On Sun, Jul 22, 2012 at 6:49 PM, Andrew Bergbahamutzero8...@gmail.com wrote: On 7/22/2012 3:37 AM, Lipska the Kat wrote: Many in the Linux world seem to use git. snip Use source control now; you'll reap the benefits later! from sudo apt-get

Re: Looking for good tutorials after reading Byte of Python

2012-07-22 Thread Lipska the Kat
://www.tutorialspoint.com/python/index.htm that looks like it could be worth reading Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http://mail.python.org/mailman/listinfo/python-list

Re: My first ever Python program, comments welcome

2012-07-22 Thread Lipska the Kat
-learning make. Enough already; but if there's a python plugin I guess I'll get around to it eventually Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http://mail.python.org/mailman/listinfo/python-list

My first ever Python program, comments welcome

2012-07-21 Thread Lipska the Kat
: #just catch the error and continue None for c in range(lineCount): t=l[c] print(t[0], t[1], sep='\t', end='') Thanks Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http

Re: Encapsulation, inheritance and polymorphism

2012-07-19 Thread Lipska the Kat
On 19/07/12 07:09, rusi wrote: On Jul 19, 6:34 am, Steven D'Apranosteve +comp.lang.pyt...@pearwood.info wrote: On Wed, 18 Jul 2012 15:40:00 +0100, Lipska the Kat wrote: Object Oriented programming is all about encapsulating human concepts in a way that makes sense to human beings. Make

Re: Encapsulation, inheritance and polymorphism

2012-07-18 Thread Lipska the Kat
On 18/07/12 01:46, Andrew Cooper wrote: On 17/07/2012 19:36, Lipska the Kat wrote: On 17/07/12 19:18, Mark Lawrence wrote: On 17/07/2012 18:29, Ethan Furman wrote: Terry Reedy wrote: On 7/17/2012 10:23 AM, Lipska the Kat wrote: snip Take for example a Linux system call handler

Re: Encapsulation, inheritance and polymorphism

2012-07-18 Thread Lipska the Kat
looks like an interesting language and I will certainly spend time getting to know it but at the moment it seems to me that calling it an Object Oriented language is just plain misleading. There, I've said it, trolls and flamers beware, I take no prisoners. Lipska -- Lipska the Kat: Troll

Re: Encapsulation, inheritance and polymorphism

2012-07-18 Thread Lipska the Kat
-- well, we don't talk about them in polite company. -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encapsulation, inheritance and polymorphism

2012-07-18 Thread Lipska the Kat
On 18/07/12 16:09, Chris Angelico wrote: On Thu, Jul 19, 2012 at 12:48 AM, Lipska the Kat lip...@lipskathekat.com wrote: hmm, I've been using tabs ... snip We must meet half way, you know. Seems reasonable to me, I'll let you suggest it ;-) As to tab vs spaces: I'm a fan of tabs

Re: Encapsulation, inheritance and polymorphism

2012-07-18 Thread Lipska the Kat
On 18/07/12 16:32, Ethan Furman wrote: Lipska the Kat wrote: On 18/07/12 14:05, Steven D'Aprano wrote: Even with a break, why bother continuing through the body of the function when you already have the result? When your calculation is done, it's done, just return for goodness sake. You

Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
. Is there a previous discussion in the group that I could read. Many thanks Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer. -- http://mail.python.org/mailman/listinfo/python-list

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 10:30, Ulrich Eckhardt wrote: Welcome! Am 17.07.2012 10:45, schrieb Lipska the Kat: I was expecting (hoping) to see in depth documentation relating to Class construction, extension mechanisms and runtime polymorphism. In addition to this forum for direct help and discussion, two

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
background. more reading I guess. snip -- Devin Thanks for your time and I'll try to do a bit better with the reading thing before asking more questions... not sure about this obsession with code indentation though :-| -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 12:37, Andrew Berg wrote: On 7/17/2012 6:01 AM, Lipska the Kat wrote: Anyway, I'm looking at Python as a rapid prototyping language. snip Pythonic is (or at least should be) a word you encounter frequently in discussions of Python code. Learn what is considered Pythonic

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 09:45, Lipska the Kat wrote: Pythoners Python 2.7.3 Ubuntu Linux 12.04 LTS I've been taking a brief look at Python. snip Well I've set myself a task. I have a text file containing a list of stock items each line contains the number in stock followed by a tab followed

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 12:37, Andrew Berg wrote: On 7/17/2012 6:01 AM, Lipska the Kat wrote: snip On a side note, I would highly recommend learning Python 3 (3.2 is the latest stable version) unless you have an explicit need for Python 2 (some major 3rd-party libraries have not been ported yet). Python

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
i'm sure there are interpreted languages that allow pre-execution type checking ... aren't there ? Oh yes, there's one called Java :-) Still, I'm sure you're only kidding around with me :-) Lipska -- Lipska the Kat: Troll hunter, Sandbox destroyer and Farscape dreamer of Aeryn Sun. -- http

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 15:16, Andrew Berg wrote: On 7/17/2012 9:01 AM, Lipska the Kat wrote: Wow, that was a blast from the past Just downloaded, unzipped, untarred, configured, made and installed python 3.2.3 ... it's YEARS since I've done this, makes me feel young again. Most Linux distributions should

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 17:26, Mark Lawrence wrote: On 17/07/2012 15:23, Lipska the Kat wrote: On 17/07/12 14:52, Roy Smith wrote: snip Still, I'm sure you're only kidding around with me :-) Kidding around on a Python mailing list, never, how dare you Sir, simply wouldn't be cricket

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 18:24, Terry Reedy wrote: On 7/17/2012 8:01 AM, Lipska the Kat wrote: On 17/07/12 09:45, Lipska the Kat wrote: Pythoners Python 2.7.3 Ubuntu Linux 12.04 LTS I've been taking a brief look at Python. snip Well I've set myself a task. I have a text file containing a list

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 19:18, Mark Lawrence wrote: On 17/07/2012 18:29, Ethan Furman wrote: Terry Reedy wrote: On 7/17/2012 10:23 AM, Lipska the Kat wrote: Well 'type-bondage' is a strange way of thinking about compile time type checking and making code easier to read (and therefor debug 'type

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 18:07, Terry Reedy wrote: On 7/17/2012 10:23 AM, Lipska the Kat wrote: Well 'type-bondage' is a strange way of thinking about compile time type checking and making code easier to read (and therefor debug snip How easy was it to write max, or a universal sort in Java? Well

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 20:39, Mark Lawrence wrote: On 17/07/2012 20:29, Lipska the Kat wrote: On 17/07/12 18:07, Terry Reedy wrote: On 7/17/2012 10:23 AM, Lipska the Kat wrote: snip How easy was it to write max, or a universal sort in Java? Well java.lang.Math.max() (or min() depending on what you