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 --

Re: Is Python a commercial proposition ?

2012-08-24 Thread lipska the kat
ing What is the largest Python project you have experience of, you can use 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,

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'

Re: Objects in Python

2012-08-23 Thread lipska the kat
On 23/08/12 14:59, Ben Finney wrote: lipska the kat writes: On 23/08/12 05:14, Steven D'Aprano wrote: I think that's uncalled for. […] Excellent advice as usual, but I'm more than capable of looking after myself thank you. As is usual, it's not all about you; Ste

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 ca

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 t

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 readin

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* u

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 19:15, Ian Kelly wrote: On Wed, Aug 22, 2012 at 11:46 AM, lipska the kat 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 t

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), that

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 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
pport here and on the mailing list ... and it supports 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: How to convert base 10 to base 2?

2012-08-20 Thread lipska the kat
10' >>> int(x, 2) 30 >>> lipska -- 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-08-19 Thread lipska the kat
[ Surely the first check is your filing system to make sure that you've paid the utilties bills so you've got gas and or electricity to apply the heat. Either that or you hire Ray Mears to produce the spark needed to light the fire :) I was wondering how long it would be ... lipsk

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 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 and the oth

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

2012-08-19 Thread lipska the kat
u ~]$ python3.2 Python 3.2.3 (default, Jul 17 2012, 14:23:10) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> s = chr(0x + 1) >>> a, b = s >>> a '\ud800' >>> b

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 declaimed the following in gmane.comp.python.general: in the examples in this chapter we see usage examples for socketserver.BaseRequestHandler [snip

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, than

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 declaimed the following in gmane.comp.python.general: in the examples in this chapter we see usage examples for

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 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 tell, all RequestHandler

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 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 tell, all RequestHandler

socketserver.BaseRequestHandler and socketserver.StreamRequestServer docs

2012-08-09 Thread lipska the kat
the case and anyway, 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/mai

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 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&qu

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 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 of experience of Peopl

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: Pickle file and send via socket

2012-08-08 Thread lipska the kat
nstructive 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 des

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

2012-08-08 Thread lipska the kat
On 07/08/12 22:57, Chris Angelico wrote: On Wed, Aug 8, 2012 at 3:00 AM, lipska the kat wrote: I'm still undecided over the whole 'User' thing actually, [snip] This makes little sense to my mind. If you can have a "class User:", why can you not have a "clas

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

2012-08-07 Thread lipska the kat
On 07/08/12 16:04, rusi wrote: On Aug 7, 7:34 pm, lipska the kat wrote: Never thought so for a moment, good to know you can be reasonable as well as misguided ;-) Well Lipska I must say that I find something resonant about the 'no- person' thing, though I am not sure what. You

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 a

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

2012-08-07 Thread lipska the kat
On 07/08/12 14:12, Ben Finney wrote: lipska the kat writes: The ONLY concept that you should never try to encapsulate is/are human beings or their aliases. You stated this in absolute, dogmatic terms. I thought at first you were being hyperbolic for effect, but the situation that you

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: 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/ Unfortunatel

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 e

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

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
On 06/08/12 13:19, rusi wrote: On Aug 6, 12:46 am, lipska the kat wrote: On 04/08/12 16:49, Jean Dubois wrote: I'm looking for a good introduction to object oriented programming with Python. snip I suggest this http://steve-yegge.blogspot.in/2006/03/execution-in-kingdom-of-nouns

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

2012-08-06 Thread lipska the kat
On 06/08/12 13:19, rusi wrote: On Aug 6, 12:46 am, lipska the kat wrote: On 04/08/12 16:49, Jean Dubois wrote: I'm looking for a good introduction to object oriented programming with Python. Object Oriented programming is a mindset, a way of looking at that particular part of our

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: 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

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: 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 (shou

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

2012-08-06 Thread lipska the kat
ere you will gain enlightenment. 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: Looking for a good introduction to object oriented programming with Python

2012-08-06 Thread lipska the kat
t piece of documentation in the entire software project jeez 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
ould be able to implement the patterns in Python although I must admit I 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

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&#

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

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 14:54, rusi wrote: On Aug 3, 4:34 pm, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin. Thanks Lipska for reporting

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 le

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 o

Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
mple IRC server 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, s

Re: Is Python a commercial proposition ?

2012-08-02 Thread lipska the kat
(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 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 => \o

Re: Is Python a commercial proposition ?

2012-07-31 Thread lipska the kat
On 31/07/12 14:52, David wrote: On 30/07/2012, lipska the kat wrote: On 30/07/12 14:06, Roy Smith wrote: These days, I'm working on a fairly large web application (songza.com). "We are very sorry to say that due to licensing constraints we cannot allow access to Songza for

Re: Is Python a commercial proposition ?

2012-07-30 Thread lipska the kat
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 of Aeryn Sun -- http://mail.python.org/mailman/listinfo/python-list

Is Python a commercial proposition ?

2012-07-29 Thread lipska the kat
to say it's growing on me. The questions I have 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

Re: My first ever Python program, comments welcome

2012-07-24 Thread Lipska the Kat
On 24/07/12 06:13, rusi wrote: On Jul 22, 10:23 pm, Lipska the Kat wrote: Heh heh, Nothing to do with Eclipse, just another thing to get my head around. For work and Java IMHO you can't beat eclipse... at the moment I'm getting my head around git, Bumped into this yesterday. Se

Re: python package confusion

2012-07-23 Thread Lipska the Kat
On 23/07/12 12:16, David wrote: On 23/07/2012, Lipska the Kat wrote: Hello again pythoners [snip] > Any help much appreciated. Hi Lipska Glad you got it sorted. In case you are not aware of this: Tutor maillist - tu...@python.org http://mail.python.org/mailman/listinfo/tu

Re: python package confusion

2012-07-23 Thread Lipska the Kat
On 23/07/12 11:22, Devin Jeanpierre wrote: On Mon, Jul 23, 2012 at 6:02 AM, Lipska the Kat wrote: The PYTHONPATH ev is set to /home/lipska/python/dev/mods:. in .bashrc Did you export it? Show us your .bashrc, or the relevant line in it exactly. (And make sure that it isn't defined mul

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&

python package confusion

2012-07-23 Thread Lipska the Kat
script (or the current directory). PYTHONPATH (a list of directory names, with the same syntax as the shell variable PATH). But apparently the additional locations I specify in .bashrc are not being added to sys.path I also have an empty file __init__.py in the mods directory Not sure

Re: My first ever Python program, comments welcome

2012-07-22 Thread Lipska the Kat
On 22/07/12 17:18, rusi wrote: On Jul 22, 2:20 pm, Lipska the Kat wrote: Well I have to say that I've used Eclipse with the myEclipse plugin for a number of years now and although it has it's moments it has earned me LOADS of MONEY so I can't really criticise it. Ive probab

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
On 22/07/12 11:17, Chris Angelico wrote: On Sun, Jul 22, 2012 at 6:49 PM, Andrew Berg 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 install git to git add

Re: My first ever Python program, comments welcome

2012-07-22 Thread Lipska the Kat
x27;old fashioned 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

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. Are

My first ever Python program, comments welcome

2012-07-21 Thread Lipska the Kat
lineCount = inCount except IndexError: #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: Trol

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'Aprano 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 no mistake, it is NEVER the case t

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

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 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, mysel

Re: Encapsulation, inheritance and polymorphism

2012-07-18 Thread Lipska the Kat
On 18/07/12 15:34, Grant Edwards wrote: On 2012-07-17, Lipska the Kat wrote: and what's this obsession with 'correct' indentation of code ??? If you can explain to us Java's obsession with 'correct' placemnt of curly-braces, then you've explained inden

Re: Encapsulation, inheritance and polymorphism

2012-07-18 Thread Lipska the Kat
footprint then there is a case for conciseness over readability but even then it has to be maintainable Python 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 m

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. The

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

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 J

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 deb

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 cont

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 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 distributi

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 14:52, Roy Smith wrote: In article<-8sdnvrxgqie25jnnz2dnuvz7qkdn...@bt.com>, Lipska the Kat wrote: I'm not used to using variables without declaring their type If you truly wanted to recreate this type-bondage style of programming in Python, it's easy enou

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
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 follo

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 consider

Re: Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
On 17/07/12 11:03, Devin Jeanpierre wrote: On Tue, Jul 17, 2012 at 4:45 AM, Lipska the Kat wrote: Is Python truly OO or is it just one way to use the language. I see some documentation relating to classes but nothing on instantiation .. in fact the documentation appears to say that classes are

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

Encapsulation, inheritance and polymorphism

2012-07-17 Thread Lipska the Kat
ced. 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