Re: Re-using copyrighted code

2013-06-09 Thread Mark Janssen
> (Digression follows.) ...(by Gilbert and > Sullivan - one of my other loves), and according to US law at the > time, the publication (in this case, public performance, along with > the public sale of libretti (books of the words) and some sheet music) > of the work voided the authors' claim to ow

Re: Re-using copyrighted code

2013-06-09 Thread Mark Janssen
> Mark, ever watched TV? Or gone to the movies? Or walked into a bookshop? > Listened to the radio? All these things publish copyrighted work. It is > utter nonsense that merely publishing something in public gives up the > monopoly privileges granted by copyright. That's not

Re: Re-using copyrighted code

2013-06-09 Thread Mark Janssen
> The fact that a work is non commercial is one of several factors that > is taken into account when determining fair use. It is not an > automatic fair use for non-commercial works. I have no idea where your > understanding of copyright law came from, but here is the relevant > section of the US l

Re: Re-using copyrighted code

2013-06-09 Thread Mark Janssen
> What is clear is the mandate that sets up the framework in the first > place: > > "To promote the Progress of Science and useful Arts, by securing > for limited Times to Authors and Inventors the exclusive Right to > their respective Writings and Discoveries" > -- USC Articl

Re: Re-using copyrighted code

2013-06-09 Thread Mark Janssen
> Granted, IANAL, but the scholarly article I linked to above refers to > several of the same issues. I don't know about publication revoking > *all rights*, but there was definitely an understanding by the court > that publication meant a reduction of copyright claim. Again, I don't think I said

Re: Re-using copyrighted code

2013-06-10 Thread Mark Janssen
>>> Can you provide any citations for your interpretation? Besides "that's >>> what the law should be", I mean. >> >> I don't think I even have to: the legal code you're citing above is >> not very clear, consistent, or well-defined at all. As such, it shows >> that this area remains an area that

Re: Re-using copyrighted code

2013-06-10 Thread Mark Janssen
> Weird Al can be a complex case, because sometimes his songs are true > parodies, and sometimes they're more satires. Parody has a pretty firm > history of being protected under fair use, and Weird Al's MJ-inspired songs > ("Fat" and "Eat It") are clearly parodies. (As is his more recent Lady

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-10 Thread Mark Janssen
>> list = [] >> Reading further, one sees that the function works with two lists, a list of >> file names, unfortunately called 'list', > > That is very good advice in general: never choose a variable name > that is a keyword. Btw, shouldn't it be illegal anyway? Most compilers don't le

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-10 Thread Mark Janssen
> There's a subtle difference between a keyword and a built-in. Good > Python style generally avoids masking built-ins but allows it: Right, thank you for reminding me. My C-mind put them in the same category. -- MarkJ Tacoma, Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-11 Thread Mark Lawrence
and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGame tutorial?

2013-06-11 Thread Mark Lawrence
leasantly surprised. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: A certainl part of an if() structure never gets executed.

2013-06-11 Thread Mark Lawrence
s that you can't possibly have made a coding error I'd say this is a Python bug which should be reported here bugs.python.org. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-12 Thread Mark Janssen
> list = [] > Reading further, one sees that the function works with two lists, a list of > file names, unfortunately called 'list', That is very good advice in general: never choose a variable name that is a keyword. -- MarkJ Tacoma, Washington -- http://mail.python.org/mailman/listinf

Re: Re-using copyrighted code

2013-06-12 Thread Mark Janssen
>> At least partially, my confusion seems to be caused by the dichotomy of >> the concepts of copyright and license. How do these relate to each other? > > A license emerges out of the commercial domain is purely about > commercial protections. I should clarify, that "commercial protections" here

Re: A certainl part of an if() structure never gets executed.

2013-06-12 Thread Mark Lawrence
pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Turnign greek-iso filenames => utf-8 iso

2013-06-12 Thread Mark Lawrence
g in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-12 Thread Mark Janssen
On Wed, Jun 12, 2013 at 7:24 AM, Grant Edwards wrote: > On 2013-06-11, Mark Janssen wrote: >>> list = [] >>> Reading further, one sees that the function works with two lists, a list of >>> file names, unfortunately called 'list', >> >>

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-12 Thread Mark Janssen
>> You're right. I was being sloppy. > > ['ArithmeticError', 'AssertionError', 'AttributeError', > 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', > 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', > 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetE

Re: Version Control Software

2013-06-12 Thread Mark Janssen
> I am looking for an appropriate version control software for python > development, and need professionals' help to make a good decision. Currently > I am considering four software: git, SVN, CVS, and Mercurial. I'm not real experienced, but I understand that SVN is good if your hosting your ow

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-12 Thread Mark Janssen
>> This has caused more trouble than it has solved. > > I take it you have never programmed in a programming language with a > single, flat, global namespace? :-) Hey, the purpose a programming language (i.e. a language which has a consistent lexical specification), is to provide some modicum of s

Re: "Don't rebind built-in names*" - it confuses readers

2013-06-12 Thread Mark Janssen
> The builtins don't need to be imported, but they're identifiers like > anything else. They're a namespace that gets searched after > module-globals. Yes, I understand, though for clarity and separability, it seems that having them in a namespace that gets explicitly pulled into the global space

Re: Wrong website loaded when other requested

2013-06-13 Thread Mark Lawrence
superhost dot greece should be able to sort all this out? -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mai

Re: My son wants me to teach him Python

2013-06-13 Thread Mark Janssen
> Despite not want to RTFM as you say, you might set him in front of > VPython, type I totally forgot PyGame -- another likely source of self-motivated learning for a teen programmer. -- MarkJ Tacoma, Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrong website loaded when other requested

2013-06-14 Thread Mark Lawrence
Python's Matching Tie and Handerchief, the record's stuck, the record's stuck, the record's stuck... -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Wh

Re: Don't feed the troll...

2013-06-14 Thread Mark Lawrence
tutor mailing list, or have you been there already? -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't feed the troll...

2013-06-14 Thread Mark Lawrence
going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrong website loaded when other requested

2013-06-14 Thread Mark Lawrence
ing in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrong website loaded when other requested

2013-06-14 Thread Mark Lawrence
On 14/06/2013 17:46, Mark Lawrence wrote: Sure, just give me your password. He actually offered to do just this!!! How stupid can you get? I'm so fed up with his behaviour that I've emailed the Greek Embassy in London pointing out what he's up to. I've requested t

Re: Pattern Search Regular Expression

2013-06-15 Thread Mark Lawrence
y be handled by converting the string to list and then index of list. But I am thinking if I can use regular expression in Python. If any one of the esteemed members can help. Thanking you in Advance, Regards, Subhabrata I tend to reach for string methods rather than an RE so will something

Re: Pattern Search Regular Expression

2013-06-15 Thread Mark Lawrence
0],words[-1]] Traceback (most recent call last): File "", line 1, in TypeError: list indices must be integers, not tuple So why would the OP want a TypeError? Or has caffeine deprivation affected your typing skills? :) -- "Steve is going for the pink ball - and

Re: Pattern Search Regular Expression

2013-06-15 Thread Mark Lawrence
e watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Pattern Search Regular Expression

2013-06-15 Thread Mark Lawrence
/moin/GoogleGroupsPython , thanks. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Scripting Calligra Sheets with Python

2013-06-15 Thread Mark Lawrence
#x27;Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Pattern Search Regular Expression

2013-06-15 Thread Mark Lawrence
known that you learn more if you try something yourself, rather than be spoon fed it. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence --

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-15 Thread Mark Lawrence
iburn.nl/topposting.html How much of a bastard can you be? A classic example of the pot calling the kettle black. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering&#x

Re: Don't feed the troll...

2013-06-15 Thread Mark Lawrence
g up writing comedy instead of anything involving computing. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: RFD: rename comp.lang.python to comp.support.superhost

2013-06-15 Thread Mark Lawrence
On 15/06/2013 18:51, Steven D'Aprano wrote: On Sat, 15 Jun 2013 18:43:42 +0100, Mark Lawrence wrote: A classic example of the pot calling the kettle black. If you're going to continue making unproductive, off-topic, inflammatory posts that prolong these already excessively lar

Re: Pattern Search Regular Expression

2013-06-15 Thread Mark Lawrence
On 15/06/2013 22:03, Joshua Landau wrote: On 15 June 2013 11:18, Mark Lawrence wrote: I tend to reach for string methods rather than an RE so will something like this suit you? c:\Users\Mark\MyPython>type a.py for s in ("In the ocean", "On the ocean",

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Mark Lawrence
#x27;t you simply bugger off. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Fatal Python error: Py_Initialize: can't initialize sys standard streams

2013-06-15 Thread Mark Lawrence
mally expect to see it in the site packages directory. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't feed the troll...

2013-06-15 Thread Mark Lawrence
le who will repeatedly do his job for him, which I guess makes you the current god of his cargo cult. So, uh, well done? +1 -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whi

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-15 Thread Mark Lawrence
On 16/06/2013 02:03, Nick the Gr33k wrote: On 16/6/2013 12:29 πμ, Mark Lawrence wrote: On 15/06/2013 20:38, Nick the Gr33k wrote: Thank you and please whoever does not feel like helping, please at least not spam the thread. Your arrogance clearly has no bounds. Your spamming to my

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread Mark Lawrence
on't understand the words "googled" and "internet". Could you please explain them? -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Greek mailing list [was Re: Why 'files.py' does not print the filenames into a table format?]

2013-06-16 Thread Mark Lawrence
ve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: A certainl part of an if() structure never gets executed.

2013-06-16 Thread Mark Lawrence
t; Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling vs interpreting [was Re: A certainl part of an if() structure never gets executed.]

2013-06-16 Thread Mark Janssen
>>> Whats the difference of "interpreting " to "compiling" ? >> >> OK, I give up! > > Actually, that's a more subtle question than most people think. Python, > for example, is a compiled language. (What did you think the "c" in > ".pyc" files stood for? and the compile() function>?) Careful there.

Re: Why 'files.py' does not print the filenames into a table format?

2013-06-16 Thread Mark Lawrence
ig Brother is watching *YOU* :) -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't feed the troll...

2013-06-17 Thread Mark Lawrence
-- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: dynamic if statement

2013-06-18 Thread Mark Lawrence
-tkc -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Why is regex so slow?

2013-06-18 Thread Mark Lawrence
nd for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Error running xmlrpc Client and server under different Python versions

2013-06-20 Thread Mark Lawrence
en." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: A few questiosn about encoding

2013-06-20 Thread Mark Lawrence
eve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Default Value

2013-06-22 Thread Mark Lawrence
;Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: n00b question on spacing

2013-06-22 Thread Mark Lawrence
ider=spider) I'm sticking with C style formatting, which thankfully isn't going away, .format indeed. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: n00b question on spacing

2013-06-22 Thread Mark Janssen
> Also remember when entering long lines of text that strings concatenate > within parenthesis. > So, > ("a, b, c" > "d, e, f" > "g, h, i") > > Is the same as ("a, b, cd, e, fg, h, i") There was a recent discussion about this (under "implicit string concatenation"). It seems this is a part of the

Re: How can i fix this?

2013-06-22 Thread Mark Lawrence
int "error" -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Mark Janssen
>> Mostly I'm saying that super() is badly named. > > What else would you call a function that does lookups on the current > object's superclasses? ^. You make a symbol for it. ^__init__(foo, bar) -- MarkJ Tacoma, Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this PEP-able? fwhile

2013-06-24 Thread Mark Lawrence
pes import breaking_out_of_nested_loops_to_top_level -tkc Doesn't the goto module http://entrian.com/goto/ fix this? :) -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering'

Re: n00b question on spacing

2013-06-24 Thread Mark Janssen
On Mon, Jun 24, 2013 at 4:48 PM, alex23 wrote: > On 23/06/2013 3:43 AM, Mark Janssen wrote: >> >> There was a recent discussion about this (under "implicit string >> concatenation"). It seems this is a part of the python language >> specification that was sim

Re: Unable to import NHunspell.dll using ctypes in Python

2013-06-25 Thread Mark Lawrence
looks as if you need:- hunspell = cdll.LoadLibrary('Hunspellx64.dll') -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the semantics meaning of 'object'?

2013-06-25 Thread Mark Janssen
> This bothers me as well. If you look at Raymond Hettinger's "super() > considered super" article, he includes the (correct) advice that > super() needs to be used at every level of the call chain. At the end > of the article, he offers this example to show how "easy" multiple > inheritance can

Re: What is the semantics meaning of 'object'?

2013-06-25 Thread Mark Janssen
> So instead of super(), you would have sub()? It's an interesting > concept, but I don't think it changes anything. You still have to > design your classes cooperatively if you expect to use them with > multiple inheritance. Yes, and let new instances of the child classes automatically ensure t

Re: What is the semantics meaning of 'object'?

2013-06-25 Thread Mark Janssen
ta structuring, and then everything else becomes little mini-apps making a DataEcosystem. --mark -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the semantics meaning of 'object'?

2013-06-25 Thread Mark Janssen
Sorry my last message got sent prematurely. Retrying... > So instead of super(), you would have sub()? It's an interesting > concept, but I don't think it changes anything. You still have to > design your classes cooperatively if you expect to use them with > multiple inheritance. Yes, and let

Re: What is the semantics meaning of 'object'?

2013-06-25 Thread Mark Janssen
>> Combining integers with sets I can make >> a Rational class and have infinite-precision arithmetic, for example. > > Combining two integers lets you make a Rational. Ah, but what is going to group them together? You see you've already gotten seduced. Python already uses a set to group them to

Re: What is the semantics meaning of 'object'?

2013-06-25 Thread Mark Janssen
>> Here's how it *should* be made: the most superest, most badassed >> object should take care of its children. New instances should >> automatically call up the super chain (and not leave it up to the >> subclasses), so that the parent classes can take care of the chil'en. >> When something goe

Re: What is the semantics meaning of 'object'?

2013-06-25 Thread Mark Janssen
>>> Combining two integers lets you make a Rational. >> >> Ah, but what is going to group them together? You see you've already >> gotten seduced. Python already uses a set to group them together -- >> it's called a Dict and it's in every Class object. > > When you inherit a "set" to make a Ratio

Re: What is the semantics meaning of 'object'?

2013-06-29 Thread Mark Janssen
> On 26/06/2013 9:19 AM, Mark Janssen wrote: >> >> Did you ever hear of the Glass Bead Game? > > Which was Hesse's condemnation of the > pure-academic-understanding-unbound-by-pragmatic-use approach as mental > masturbation, It was not. He was conflicted. On the

Re: indexerror: list index out of range??

2013-06-29 Thread Mark Lawrence
"Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: Closures in leu of pointers?

2013-06-29 Thread Mark Lawrence
od they are are at raising white flags wherever and whenever it suits them. -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark Lawrence -- http://mail.python.org/mailman/listinfo/python-list

Re: python adds an extra half space when reading from a string or list

2013-06-29 Thread Mark Lawrence
Why this when the approach to Nick the Incompetant Greek has been to roll out the red carpet? -- "Steve is going for the pink ball - and for those of you who are watching in black and white, the pink is next to the green." Snooker commentator 'Whispering' Ted Lowe. Mark L

Re: how to calculate reputation

2013-07-02 Thread Mark Janssen
> Hi all, this seems to be quite stupid question but I am "confused".. > We set the initial value to 0, +1 for up-vote and -1 for down-vote! nice. > > I have a list of bool values True, False (True for up vote, False for > down-vote).. submitted by users. > > should I take True = +1, False=0 [or]

Re: Documenting builtin methods

2013-07-10 Thread Mark Janssen
> I have this innocent and simple code: > > from collections import deque > exhaust_iter = deque(maxlen=0).extend > exhaust_iter.__doc__ = "Exhaust an iterator efficiently without > caching any of its yielded values." > > Obviously it does not work. Is there a way to get it to work simply > and wit

Casting classes WAS: Documenting builtin methods

2013-07-11 Thread Mark Janssen
A user was wondering why they can't change a docstring in a module's class. This made me think: why not have a casting operator ("reciprocal"?) to transform a bonafide class into a mere carcass of a class which can then modified and reanimated back into its own type with the type function? Such t

Re: Python equivalent to the "A" or "a" output conversions in C

2012-06-19 Thread Mark Lawrence
On 19/06/2012 17:23, Edward C. Jones wrote: Consider the following line in C: printf('%a\n', x); where x is a float or double. This outputs a hexadecimal representation of x. Can I do this in Python? See this http://docs.python.org/library/string.html#format-examples -- Che

Re: bdist_wininst [was: Custom build of Python]

2012-06-21 Thread Mark Hammond
anted somewhere else, so long as a couple of registry entries are created. So you could do something like creating an inno installer script that takes your built tree and generates a custom installer for your build. Mark But... I follow all of the instructions for building Python on W

Re: How can i call array_length to get the length of array object?

2012-06-24 Thread Mark Lawrence
On 24/06/2012 09:15, gmspro wrote: Why __len__() where the original name if array_length? Why is method names like __NAME__ ? Why are you too bloody lazy to do any research before you post questions? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: How can i call array_length to get the length of array object?

2012-06-25 Thread Mark Lawrence
On 25/06/2012 02:17, Ben Finney wrote: Mark Lawrence writes: On 24/06/2012 09:15, gmspro wrote: Why __len__() where the original name if array_length? Why is method names like __NAME__ ? These are questions answered by getting a thorough grounding in the fundamentals of Python. Please

Re: Executing Python Scripts on Mac using Python Launcher

2012-06-26 Thread Mark Lawrence
On 26/06/2012 23:35, Dennis Lee Bieber wrote: (And, on Windows at least, #! lines don't do anything) New for Python 3.3 http://www.python.org/dev/peps/pep-0397/ -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: XPlatform ToolKit

2012-06-27 Thread Mark Lawrence
On 27/06/2012 20:12, php...@gmail.com wrote: EnTK (batteries included) http://stk.phpyjs.com/ntk.zip EsTK (pilas incluidas) http://stk.phpyjs.com/stk.zip Reverse Engineer This sihT -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: XPlatform ToolKit

2012-06-27 Thread Mark Lawrence
On 27/06/2012 23:26, Temia Eszteri wrote: On Wed, 27 Jun 2012 23:14:13 +0100, Mark Lawrence wrote: On 27/06/2012 20:12, php...@gmail.com wrote: EnTK (batteries included) http://stk.phpyjs.com/ntk.zip EsTK (pilas incluidas) http://stk.phpyjs.com/stk.zip Reverse Engineer This sihT No no

Re: I can't send images to this mail-list

2012-06-29 Thread Mark Lawrence
y; please keep this a text-only forum. +1000 I also entirely agree with this policy, but I've told you a trillion times not to exaggerate :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: changes made to my python coded com servers are not taking effect

2012-07-01 Thread Mark Hammond
On 1/07/2012 7:13 PM, Panceisto wrote: I assume the old code keeps running in some process somewhere. How to fix this? The client of your server still has a reference to the old server. The simplest solution is to restart those clients. Mark -- http://mail.python.org/mailman/listinfo

Re: code review

2012-07-03 Thread Mark Lawrence
athoms at all. John I weigh 13st 8lb - does this make me redundant? -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: code review

2012-07-03 Thread Mark Lawrence
hour. From the "Explanatory Supplement to the Astronomical Almanac" [1992 University Science Books], Table 15.15, the speed of light is 1.80261750E12 furlongs/fortnight +1 most useless piece of information garnered this week. -- Cheers. Mark Lawrence. -- http://

Re: code review

2012-07-03 Thread Mark Lawrence
On 03/07/2012 16:53, Chris Angelico wrote: On Wed, Jul 4, 2012 at 1:50 AM, Mark Lawrence wrote: On 03/07/2012 03:25, John O'Hagan wrote: On Tue, 3 Jul 2012 11:22:55 +1000 I agree to some extent, but as a counter-example, when I was a child there a subject called "Weights and Measu

Re: exe made by py2exe do not run certain computer

2012-07-03 Thread Mark Hammond
om the OS, which you are packaging and installing. So check your distribution for *all* .dll files - most Python extension modules are .pyd, so the actual number of .dll files needed should be quite small and relatively stable across different py2exe invocations. Mark -- http://mail.python.

Re: a problem about "print"

2012-07-04 Thread Mark Lawrence
able objects. Here's something that I found that might explain it a bit better. http://henry.precheur.org/python/copy_list -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: code review

2012-07-04 Thread Mark Lawrence
On 03/07/2012 22:54, Chris Angelico wrote: On Wed, Jul 4, 2012 at 6:13 AM, Dave Angel wrote: On 07/03/2012 12:05 PM, Mark Lawrence wrote: If I go to the moon I will weigh 2st 10lb (if my sums are correct :) but the equivalent Frenchman will still be 86kg. I hereby put this forward as proof

Re: code review

2012-07-04 Thread Mark Lawrence
On 04/07/2012 10:29, Paul Rudin wrote: Mark Lawrence writes: On 03/07/2012 03:25, John O'Hagan wrote: On Tue, 3 Jul 2012 11:22:55 +1000 I agree to some extent, but as a counter-example, when I was a child there a subject called "Weights and Measures" which is now redundant

Re: 2 + 2 = 5

2012-07-04 Thread Mark Lawrence
[five.contents[:].index(5)] = 4 print(2 + 2 == 5) # True (must be sufficiently large values of 2 there...) Heh. The author is apparently anonymous, I guess for good reason. The author got confused trying to switch from imperial to metric numbers or vice versa? -- Cheers. Mark Lawrence. -- http

Re: simpler increment of time values?

2012-07-04 Thread Mark Lawrence
input of datetime? Is it possible to get one-digit hours formatted without the leading zero? Thanks in advance for any suggestions or remarks; regards, Vlastimil Brom from dateutil.relativedelta import relativedelta should simplify things for you google and ye shall find :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Which way is best to execute a Python script in Excel?

2012-07-05 Thread Mark Shroyer
On Thu, Jul 05, 2012 at 03:22:01AM -0400, Maurizio Spadaccino wrote: > Hi all > > I'm new to Python but soon after a few days of studying its features I > find it my favourite mean of programming scripts to allow for data > storing and mining. My idea would be to inplement python scripts from > in

Re: Apology for OT posts

2012-07-06 Thread Mark Lawrence
groups that have a policy of "if it's not in the standard, we won't discuss it". The set of languages that start with the third letter of the English language springs instantly to my mind. Agreed that the subject line should be changed. -- Cheers. Mark Lawrence. --

migrating from python 2.4 to python 2.6

2012-07-09 Thread Mark Devine
Hi I have a large code base that was written in python 2.4. I want to migrate to python 2.6. Are there any tools that will aid me in this migration? Thanks A -- http://mail.python.org/mailman/listinfo/python-list

Re: migrating from python 2.4 to python 2.6

2012-07-09 Thread Mark Lawrence
On 09/07/2012 10:37, Mark Devine wrote: Hi I have a large code base that was written in python 2.4. I want to migrate to python 2.6. Are there any tools that will aid me in this migration? Thanks A Check the what's new for python 2.6. If, and I doubt that there are, any compata

Re: Python Interview Questions

2012-07-09 Thread Mark Lawrence
u are unable to shut off mentally. Gardening is great hobbies for a developer. You need to be patient, reliable and provide constantly good work to grow your own vegetables. Christian I guess that's why I detest gardening :-) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Interview Questions

2012-07-10 Thread Mark Lawrence
o get into the interview, i.e. pass the first thirty seconds test. I recall reading in a book in the local library of a manager that wouldn't employ people unless they were wearing a new pair of shoes. Guess they didn't take many people on. -- Cheers. Mark Lawrence. -- http:

Re: Python Interview Questions

2012-07-10 Thread Mark Lawrence
40cm * 40cm box of soil. I even have a calabash plant that grows like crazy. See? :) Christian Big 'ead :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: what's the effect of cmp here?

2012-07-10 Thread Mark Lawrence
On 10/07/2012 16:01, levi nie wrote: aList=[3,2,5,4] bList=aList[:] bList.sort() print "bList is",bList cList=aList[:] cList.sort(cmp) print "cList is",cList Why don't you tell us, you have the same documentatation avaialable as everybody else. -- Cheers.

<    1   2   3   4   5   6   7   8   9   10   >