Re: Something is rotten in Denmark...

2011-06-02 Thread harrismh777
Steven D'Aprano wrote: funcs = [(lambda x, i=j: x+i) for j in range(10)] Now the reader is no longer distracted by the "i=i" ugliness. That's a good idea, in fact, change made! The problem with Do What I Mean is that it so rarely Does What You Mean. At best it Does What Some Other Guy Ima

Re: Something is rotten in Denmark...

2011-06-02 Thread harrismh777
Steven D'Aprano wrote: What do you expect this code to do? a = 42 funcs = [(lambda x: x+a) for i in range(10)] funcs[0](1) I do see your point with this... truly... but it did get me to think about what I *do* expect... and that is that 'a' (for the lambda) will be whatever 'a' is (now) a

Re: Something is rotten in Denmark...

2011-06-02 Thread harrismh777
Terry Reedy wrote: Oh the irony of this proposal. You scolded us for breaking code with 2 to 3 changes, and here you propose a change more radical than anything done in Python 3, and certain to break code, introduce bugs, complicate the language, and reduce its functionality. Most of Guido's desi

Re: Something is rotten in Denmark...

2011-06-03 Thread harrismh777
Alain Ketterlin wrote: The reason why we have the kind of lambdas we have in python (and scheme, and javascript, etc.) is just that it is way easier to implement. That's all I've said. And people have gotten used to it, without ever realizing they are using something completely different from wha

Re: Lambda question

2011-06-06 Thread harrismh777
Steven D'Aprano wrote: For any non-trivial function, I usually start by writing the documentation (a docstring and doctests) first. How else do you know what the function is supposed to do if you don't have it documented? Yes. In my early years I was no different than any other hacker in terms

Re: Validating string for FDQN

2011-06-06 Thread harrismh777
Eric wrote: Is there a library or regex that can determine if a string is a fqdn (fully qualified domain name)? I'm writing a script that needs to add a defined domain to the end of a hostname if it isn't already a fqdn and doesn't contain the defined domain. You might try the os module and the

Re: Dynamic Zero Padding.

2011-06-07 Thread harrismh777
Friedrich Clausen wrote: I would be much obliged if someone can give me some tips on how to achieve a variably pad a number. b='04' a="testing %"+b+"i" print(a % 1) testing 0001 kind regards, m harris -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic Zero Padding.

2011-06-07 Thread harrismh777
Ethan Furman wrote: --> print("Testing %0*i" % (width, 1)) The '*' acts as a place holder for the width argument. very nice... -- http://mail.python.org/mailman/listinfo/python-list

test_popen

2011-06-08 Thread harrismh777
hi folks, I've installed 3.2 and 2.7.1 on a second development notebook from sources. 3.2 was smooth, and 2.7.1 make test failed test_popen. All other tests either passed or were skipped for valid reasons. I do not remember 3.2 failing popen... so I'm wondering about 2.7? I'm assuming (witho

test_popen

2011-06-08 Thread harrismh777
Looks like my 2.7 test_popen failure is an open issue7671... since Jan 2010. Looks like it really does function ok. At any rate, I was able to test Popen myself today, and it ran fine. I needed to write a script that will disable the touch pad on this HP g series, because there is no way to do

Re: Python 2.6 OR 3.2

2011-06-09 Thread harrismh777
Terry Reedy wrote: A couple of years ago, users were people who were already programming with 2.x. That is changing now. ... big time ! :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 OR 3.2

2011-06-09 Thread harrismh777
Andrew Berg wrote: AFAICT, there are three reasons to learn Python 2: ... there is a fourth reason. The linux distro you are using currently was customized with python 2.x I ran into this problem this week in fact... on my HP g6 ubuntu notebook running 10.04 lucid. It ships with the 2.6.5

Re: Only Bytecode, No .py Files

2011-07-26 Thread harrismh777
Christian Heimes wrote: The first four bytes of a pyc file contain the magic header. It must match the magic of the current Python version. The next four bytes contain the pyc_mtime. It must match the mtime of the corresponding .py files as returned by fstat().st_mtime. If the magic doesn't match

Re: Only Bytecode, No .py Files

2011-07-27 Thread harrismh777
Christian Heimes wrote: Now the test.py has the same mtime as test.pyc and Python won't recompile the .pyc file from the .py file as long as the magic header (168686339) is correct. ~very cool. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: PEP8: A cauldron of inconsistencies.

2011-07-27 Thread harrismh777
harris FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm -- http://mail.python.org/mailman/listinfo/python-list

Programming Python for Absolute Beginners

2011-07-27 Thread harrismh777
- m harris FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming Python for Absolute Beginners

2011-07-27 Thread harrismh777
Billy Mays wrote: No one cares and don't spam the list. ... ouch, now I feel really bad... has someone not had their coffee this morning? kind regards, -- m harris FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm -- http://mail.pytho

Re: PyWart: PEP8: a seething cauldron of inconsistencies.

2011-07-28 Thread harrismh777
ut of our code... NO I say, NO ! ... just saying, probably don't really mean it. :) -- m harris FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: os.path needs immediate attention!

2011-07-29 Thread harrismh777
ysical drives "C:\"). The forward slash actually makes some philosophical sense, and of course is more aesthetically pleasing. So, let's put our behinds in the past and slash forward ! -- m harris FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinu

Re: What is xrange?

2011-07-29 Thread harrismh777
m harris FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: What's in a name?

2011-07-29 Thread harrismh777
/ http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: Spam

2011-08-01 Thread harrismh777
se I am interested in the same issue as your OP complaint. But, I am absolutely sure that others will view your note, and mine, as spam... see the problem? -- m harris FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm -- http://mail.python.org/mailman/listinfo/python-list

range() vs xrange() Python2|3 issues for performance

2011-08-02 Thread harrismh777
ded to work in C for most of my integer stuff... like perfects. But now that it sparked my interest, I'm wondering if there might be some focus placed on range() performance in Python3 for the future, PEP? kind regards, -- m harris FSF ...free as in freedom/ http://webpages.charter.net/

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread harrismh777
is FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinux/gnulinux.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: pythonw.exe

2011-08-14 Thread harrismh777
had her open a terminal for some magic... and it took her exactly 1.03 seconds to say, "Oh, the iMac has DOS installed in the utilities folder!" :-O ... blondes... :-} (she tries hard, and actually has been learning, so, we keep trying...) -- m harris FSF ...free as i

Re: is there any principle when writing python function

2011-08-27 Thread harrismh777
the python interpreter import this: import this ... study carefully. If you're not Dutch, don't worry if some of it confuses you. ... apply liberally to your function praxis. kind regards, -- m harris FSF ...free as in freedom/ http://webpages.charter.net/harrismh777/gnulinux/g

Re: Directly Executable Files in Python

2011-03-28 Thread harrismh777
Chris Rebert wrote: Yes. py2exe is a tool which generates such Windows executables: http://www.py2exe.org/ Interesting... but it can't possibly be creating .exe files (compiling)... I don't buy it... it has to be reproducing the byte code interpreter in the code segment and the byte code in t

Python3 Tkinter difficulty

2011-03-29 Thread harrismh777
Greetings folks, I am very new to this usenet forum, and I am brand new to Python3... so be gentle The source tarball for Python3 compiled and installed (local install for first experiments $HOME/local/) and runs very well in my terminal. I am not able to run IDLE because the compile b

Re: Python3 Tkinter difficulty

2011-03-29 Thread harrismh777
Peter Otten wrote: We don't eat children above the age of three;) geez... that's good news :) > work... but, I'm at a bit of a loss to know exactly what its looking > for... libs, or libs and devel headers? or other? Most likely the development headers. Try installing tk-dev.

Re: Fun python 3.2 one-liner

2011-03-29 Thread harrismh777
Raymond Hettinger wrote: almost-normally-yours, Raymond thanks ... interesting Seriously, these little one liners teach me more about the python language in less time than *all* of the books I'm trying to digest right now. The toughest part of learning python is learning about what's avai

Re: Python3 Tkinter difficulty

2011-03-29 Thread harrismh777
Terry Reedy wrote: [python] 3.2 (which you should definitely be starting with) should, I think, be looking for [dev-tk] 8.5, which I believe is years old now and required, I also believe, for the tkinter.ttk module. Thanks everyone for your patience, and certainly for your help. I pulled down

Bring out yer dead Bring out yer dead

2011-03-30 Thread harrismh777
2.6.2 2.5.1 == (___) \--- ( 3.2 ) Cartman: Bring out yer dead,.. bring out yer dead... Devlpr: Here' one... (Python27) Cartman: ... nine pence! Python27: I'm not dead! Cartman: What? Devlpr: Nothing, here's your nine pence. Pyt

Re: FBI wants public help solving encrypted notes from murder mystery

2011-03-30 Thread harrismh777
Fons Adriaensen wrote: [LINK] ??? http://www.net-security.org/secworld.php?id=10823 -- http://mail.python.org/mailman/listinfo/python-list

running Python2 Python3 parallel concurrent

2011-03-30 Thread harrismh777
Greetings, The purpose of this communique is to document a process for installing python2.7.1 in parallel with python3.2 on a concurrent desktop with independent idle and python path structure. Each version (python2, python3) will be installed in a separate python shell (idle) run on

Re: Guido rethinking removal of cmp from sort method

2011-03-30 Thread harrismh777
Antoon Pardon wrote: On Sun, Mar 13, 2011 at 12:59:55PM +, Steven D'Aprano wrote: The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. If anyone

Re: Guido rethinking removal of cmp from sort method

2011-03-31 Thread harrismh777
Steven D'Aprano wrote: The difference between implementation and interface is not specific to object-oriented code -- When I speak of implementation vs interface I am speaking from a strictly object oriented philosophy, as pedigree, from Grady Booch, whom I consider to be the father of Ob

Re: Guido rethinking removal of cmp from sort method

2011-03-31 Thread harrismh777
Terry Reedy wrote: Python 3 was announced and as a mildly code breaking version at least 5 years before it came out. I appreciate the spirit of your arguments overall, and I do not necessarily disagree with much of what you are saying. I would like to challenge you to see this from a litt

Re: Guido rethinking removal of cmp from sort method

2011-04-01 Thread harrismh777
Terry Reedy wrote: When I speak of implementation vs interface I am speaking from a strictly object oriented philosophy, as pedigree, from Grady Booch, whom I consider to be the father of Object Oriented Analysis and Design (Booch, OO A&D with apps, 1994). Python is object based but not objec

Re: Guido rethinking removal of cmp from sort method

2011-04-01 Thread harrismh777
Terry Reedy wrote: So why is there a problem with cmp? Because there are people who want most of the changes that break your rules, but not this particular one. Sadly, Terry, there may be some truth in there. Often folks whine about this or that, and they have absolutely no reason (or konwle

Re: Guido rethinking removal of cmp from sort method

2011-04-01 Thread harrismh777
Chris Angelico wrote: Why this lengthy discussion on whether Python is object-oriented or not? What difference does it make? Great question... glad you asked...! But bad things sometimes have to happen. And that's why things are versioned. You didn't read the post... cmp removal i

Re: Guido rethinking removal of cmp from sort method

2011-04-02 Thread harrismh777
Chris Angelico wrote: I've been a C++ programmer for nearly twenty years. I think I know a few things about OOP. Actually, I've done OOP in non-OO languages; most notably, plain old C. The OS/2 Presentation Manager class hierarchy (SOM) is primarily implemented in C, for instance. My point is tha

Re: Guido rethinking removal of cmp from sort method

2011-04-02 Thread harrismh777
Steven D'Aprano wrote: > It cannot be denied that we are talking exclusively about OOP. End of > story. Yes it can be denied. All data structures and primitives in Python are objects, but the language is not exclusively object-oriented. Yeah, I know, Steven. The discussion, from which my q

Re: Guido rethinking removal of cmp from sort method

2011-04-02 Thread harrismh777
Terry Reedy wrote: In other words, does the PSF have a responsibility to maintain the L.sort(cmp= key= reverse=) interface for strictly *philosophical* principle based on established norms for *any* OOP language? No. I say this based on the philosophical principle that obligations are recipr

Re: Guido rethinking removal of cmp from sort method

2011-04-02 Thread harrismh777
Brian Quinlan wrote: I suspect that this debate is a sink hole that I won't be able to escape from alive but... ... live long and prosper my friend. Something to consider is that OOP philosophy is technically one of the most aesthetic concepts in all of computer science--- with pure function

Re: Guido rethinking removal of cmp from sort method

2011-04-03 Thread harrismh777
geremy condra wrote: Something to consider is that OOP philosophy is technically one of the most > aesthetic concepts in all of computer science--- with pure functional > programming (haskel, erlang) as a close second... I like how you inserted the word 'technically' in there to give this tota

Re: running Python2 Python3 parallel concurrent

2011-04-04 Thread harrismh777
John Roth wrote: You might want to look at PEP 394, which is tentatively scheduled for Python 3.3 and the next maintenance release of 2.7. As far as I can tell, this pretty much solves the problem for Unixoid and MacOS systems. Thanks John. I finally read PEP 394 and 397. Yes, these handle the

Re: Guido rethinking removal of cmp from sort method

2011-04-04 Thread harrismh777
rantingrick wrote: Yes and whilst that was a brilliant display of bombastic arrogance your statements miss the point completely. And what about the large steaming pile of elephant dung in the room your nose seems to be unable to smell? As we all know Python has experienced an explosion of u

Re: Guido rethinking removal of cmp from sort method

2011-04-04 Thread harrismh777
Steven D'Aprano wrote: I prefer to consider Python 2.7 and Python 3.x as different dialects of the same language. There are a very few handful of incompatibilities, most of which can be automatically resolved by the 2to3 fixers. Yes, I am actually finding this to be consistent with my experienc

Re: running Python2 Python3 parallel concurrent

2011-04-05 Thread harrismh777
rusi wrote: Not sure if this is relevant... python-mode (emacs mode for python development) is broken for python 3 I submitted a 1-line patch which makes python-mode work for 2.x and 3.x Its relevant to Mac OSX, but not so much for what I'm doing in Linux, here. On the other hand, I can't see

Re: Suggest some exercises on Python

2011-04-05 Thread harrismh777
neil harper wrote: I'm a new bie. I have just started learning Python (3.0), finished with official tutorial. I would like to have your opinion on some Opinions around here are pretty much like elbows and knee caps... everybody has them, and yours are really the only ones that matter to

Re: Python benefits over Cobra

2011-04-06 Thread harrismh777
Brendan Simon wrote: >> >> Any other arguments where Python has benefits over Cobra ?? >> Python is built from C, Cobra is built from Cobra... Python does not require Microsoft .NET, nor MONO framework, Python has better community support, has a larger install base and developer communit

Re: [OT] Free software versus software idea patents

2011-04-06 Thread harrismh777
Ben Finney wrote: It's difficult to take a claim of “free” seriously for a technology (Mono) that knowingly implements techniques (the “C#” language, the “.NET” platform, etc.) covered by specific idea patents held by an entity that demonstrates every intention of wielding them to restrict the fr

Re: Python benefits over Cobra

2011-04-06 Thread harrismh777
Chris Angelico wrote: there's a lot of risk in tying yourself to a non-free framework, especially such a heavy one as .NET. You're completely at the mercy of the provider, in this case Microsoft, and if they make an incompatible change in the framework, you're forever stuck. Yes, lock-in is the

Re: who moved reload?

2011-04-06 Thread harrismh777
You guys want one more...? ... we can't import tkconstants any longer nope. import tkinter.tkconstants (oh, and watch that first t on Tkinter, its doozy) nice. (ask me how long it took to find that... nah, wait till I'm not so grumpy... couple days from now) regards, m harris

Re: who moved reload?

2011-04-06 Thread harrismh777
harrismh777 wrote: You guys want one more...? ... we can't import tkconstants any longer nope. import tkinter.tkconstants oops... so upset I finger-checked... long day... This works: import tkinter from tkinter.constants import * This used to work: import Tkinter from Tkcons

who moved reload?

2011-04-07 Thread harrismh777
All right... somebody is sacked (er, fired) ! Who moved reload()? This kinda stuff is driving me bonkers... there was no need to move reload() anyplace... ... so for those of you who haven't found out yet, if you want to reload a module in 3.x you have to import reload() first from module '

Re: fighting game made with python

2011-04-07 Thread harrismh777
neil harper wrote: is there any fighting games(street fighter, mortal kombat, etc) made in python? yep, if somebody moves one more thing. there's going to be a fight... :) -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Free software versus software idea patents

2011-04-07 Thread harrismh777
Steven D'Aprano wrote: Let's reword your concern slightly: It's difficult to take a claim of “free” seriously for technologies (including, but not limited to, HTML, CSS, C++, XML, Public Key Cryptography, packet-based multimedia, IPv6) that knowingly or unknowingly [the late

Re: [OT] Free software versus software idea patents

2011-04-07 Thread harrismh777
Steven D'Aprano wrote: In my view, Mono encourages .NET; and that's bad. Idea patents and particularly idea patents covering mathematics Do you have an example of a patent covering mathematics that applies to .NET? Therein lies *the* problem. The point that gets missed over and over is

Re: fighting game made with python

2011-04-07 Thread harrismh777
Littlefield, Tyler wrote: >yep, if somebody moves one more thing. there's going to be a fight... bitch in your own thread, please? We've already heard you complain plenty, no need to take it to other threads too. uh, that was humor... like, get a sense of... lighten up... sometimes we'r

Re: [OT] Free software versus software idea patents

2011-04-07 Thread harrismh777
Adam Tauno Williams wrote: Please read If you still do not understand why this is a bogus issue then just go away. Good blog--- off the point, but a nice rant none-the-less. = block quote With all this in mind, you

Re: [OT] Free software versus software idea patents

2011-04-07 Thread harrismh777
Steven D'Aprano wrote: The reason Mono gets hit (from others besides me) is that they are in > partnership and collaboration with Microsoft, consciously and > unconsciously. This must be punished. Just like Python, Apache, and the Linux kernel. What are you going to do to punish them? What d

Re: [OT] Free software versus software idea patents

2011-04-07 Thread harrismh777
Steven D'Aprano wrote: Just like Python, Apache, and the Linux kernel. What are you going to do to punish them? What do you mean 'just like"?They are nothing alike. (which is why the community is upset by sone, but not the others: hint) The punishment? ... withdraw support and use of

Re: [OT] Free software versus software idea patents

2011-04-10 Thread harrismh777
Steven D'Aprano wrote: > What do you mean 'just like"?They are nothing alike. All three of Python, Apache and Linux have accepted donations from Microsoft. Microsoft is a corporate sponsor of the PSF. Microsoft is not in the business of donating money and time to competitors out of the

Re: [OT] Free software versus software idea patents

2011-04-10 Thread harrismh777
Chris Angelico wrote: Not so fast there, Steve. If they [Microsoft] are paying anything > (unsubstantiated, unknowable) to Python, Apache, or (Linux, whatever you > mean by that term...) there are only two motives: http://www.python.org/psf/ - Microsoft is listed. http://www.apache.o

Re: [OT] Free software versus software idea patents

2011-04-10 Thread harrismh777
Chris Angelico wrote: > All software can be expressed as lambda calculus. The point being, all > software is mathematics... With enough software, you can simulate anything. That means that the entire universe can be expressed as lambda calculus. Does that mean that nothing can ever be pa

Re: Free software versus software idea patents

2011-04-12 Thread harrismh777
wisecrac...@tesco.net wrote: Do I have your permission to quote your reply intact in threads where the patent, etc, issues arise, and they often do on other sites. TIA... Feel free, the more folks we have dialoging about this issue, the better for everyone who values freedom. -- http://m

Re: [OT] Free software versus software idea patents

2011-04-12 Thread harrismh777
geremy condra wrote: Software is another sort of animal entirely. Because software is not just > based on mathematics--- IT IS mathematics. I am extremely skeptical of this argument. ... as are a great number of other people; corporations, lawyers, venture capitalists, SPAM SPAM S

Re: Free software versus software idea patents

2011-04-12 Thread harrismh777
rusi wrote: From http://www.cse.uconn.edu/~dqg/papers/cie05.pdf may be of interest (and also other papers of Peter Wegner questioning the universality of Turing machines lambda calculus etc) This is very interesting indeed. see: http://en.wikipedia.org/wiki/

Re: [OT] Free software versus software idea patents

2011-04-12 Thread harrismh777
Ian Kelly wrote: > The desktop > is all that is left... and that is dying... rapidly. Their lockin is well > entrenched (like Borg implants ) but the number of mom& pops ( like my > entire extended family, for instance) who are moving to Ubuntu (themselves) > is astounding! It will not be l

Re: [OT] Free software versus software idea patents

2011-04-13 Thread harrismh777
geremy condra wrote: I'm familiar with the case, and agree with Knuth (and you) that math should not be patentable. I'd also agree that algorithms are mathematics. Critically, algorithms*are not* software. it isn't clear to me that software and computation are synonymous. Lambda calculus on

Re: Free software versus software idea patents

2011-04-13 Thread harrismh777
Westley Martínez wrote: I don't even know one person who has Win7 installed, running, and likes it... > >> not even one. > > > > Hi, m harris, nice to meet you. Now you do. > > > > To the online community: Is there a name for trolling for A by > > advocating for not-A in a way tha

Re: [OT] Free software versus software idea patents

2011-04-13 Thread harrismh777
Ian Kelly wrote: There is at least one method of measuring it without resorting to sales figures: logging user-agent data from web browsers. Is it perfectly accurate? Of course not. But there are a number of different organizations that do this, sampling hundreds of thousands of different webs

Re: [OT] Free software versus software idea patents

2011-04-14 Thread harrismh777
geremy condra wrote: Having said that, I have a greater respect for mathematics than I do for my own economic views, and I don't like seeing it become a political football. If you can prove something,*prove it*. If you cannot- no matter how close you might feel you are- don't claim that math says

Re: Free software versus software idea patents

2011-04-14 Thread harrismh777
geremy condra wrote: > But on a serious note, I did wonder who would be the first jouster to offer > the argumentum ad hominem? ... ah, sticks and stones... > My major professor once told me, "You know you've won the argument when they > start calling you names!" I think your professor

Re: PYTHONPATH

2011-04-15 Thread harrismh777
Algis Kabaila wrote: Is PYTHONPATH a system variable that sets the path for several sessions and if so, where in the system is it? Do I need to create one for setting python path for several sessions? It can be, and there are lots of ways to accomplish what you want, some of which depends on t

Re: Free software versus software idea patents

2011-04-15 Thread harrismh777
CM wrote: What was criticized was your approach, which seemed counter-productive, and so much so that it seemed like you are "really" advocating FOR software patents by discrediting the position against them. Oh, the "thou protesteth too much" argument... ... well, I can only say that none of

Re: [OT] Free software versus software idea patents

2011-04-15 Thread harrismh777
geremy condra wrote: > http://www.groklaw.net/articlebasic.php?story=2009151305785 > This is not a proof. This is an argument. There's a very big difference. To be clear, this article makes basically the same mistake you do- you assume that a program is exactly equivalent to its comp

Re: Python IDE/text-editor

2011-04-15 Thread harrismh777
Alec Taylor wrote: Please continue your recommendations. IDLE? (works for me) 3.2 is working much better for me this week... :) (thanks) kind regards, m harris -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONPATH

2011-04-16 Thread harrismh777
jmfauth wrote: I belong to those who are very happy with the Python installations on Windows platform . . . I do not see any mess here. Sorry, I was speaking of a technical mess, not a user's mess. What I was alluding to specifically is explained very well in PEP 394. The technical reasoning

Re: PYTHONPATH

2011-04-17 Thread harrismh777
Steven D'Aprano wrote: In my opinion, a better explanation for the difficulty faced by Windows users is that this is a side-effect of Windows starting life as a single-user operating system. Yes, that is my opinion as well. Windows for better or worse is plagued by "cruft" that dates back to t

Re: [Q] ipython: Multiple commands on the same line and newlines

2011-04-17 Thread harrismh777
Terry Reedy wrote: You can write multiple *simple* statements using ';'. All compound statements, like while, must start on own line. E.g. I want: "x = 0; This is one statement while x< 10: x = x + 1; Lutz has a very nice write-up entitled "Why Indentation Syntax?" Lutz, Mark

Re: [OT] Free software versus software idea patents

2011-04-17 Thread harrismh777
Steven D'Aprano wrote: software*is* mathematics No it isn't. Yes, it is. (If the machine is particularly simple -- you might be able to exactly simulate a lever in pure mathematics, but simulating, say, a nuclear bomb or a dialysis machine in mathematics is more of a challenge...)

Re: An unusual question...

2011-04-18 Thread harrismh777
Steven D'Aprano wrote: > I'm pretty sure I wrote "standard Python" install in one of my replies. IronPython*is* standard Python. As are Jython, PyPy and CPython. This brings up a question I have had for a while; when is PSF going to forward PythonX on over to a formal standards committ

Re: Python IDE/text-editor

2011-04-18 Thread harrismh777
Terry Reedy wrote: IDLE loses syntax highlighting annoyingly often Could you exlain? When does it do that with a file labelled .py? ... never seen this behavior in IDLE with a .py file; not even once. I take that back... there was the time I tried to run IDLE on the mac mini with Apple bu

Re: Python IDE/text-editor

2011-04-18 Thread harrismh777
Jorgen Grahn wrote: Based on the comments here, it seems that emacs would have to be the editor-in-chief for programmers. I currently use SciTE at work; is it reasonable to, effectively, bill my employer for the time it'll take me to learn emacs? Editor-in-chief is a bit strong... but many

IDLE bug

2011-04-18 Thread harrismh777
Are bug reports wanted here, or just in issue tracker? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE bug

2011-04-19 Thread harrismh777
Terry Reedy wrote: If one is new to Python and perhaps not sure, or should not be sure, then I prefer that one ask here for a second opinion. Thanks Terry. I am not new to Python, but I am new to Python3, and I'm also relatively new to IDLE. Typically I edit with vi, test on the terminal, and

Re: Teaching Python

2011-04-19 Thread harrismh777
Passiday wrote: I am planning to teach Python to a group of high school students, who have in-depth interest in programming, hacking etc. I am looking for some good material, what I could use as a basic guide when preparing the classes plan for the course - website or book, what would roll ou

Re: Teaching Python

2011-04-19 Thread harrismh777
Passiday wrote: I think Python is a very important language to learn - both easy and advanced, with very wide support in different platforms, with loads of great applications that can be scripted by it, and great community support. Yes. In my opinion, Python is the new BASIC. I date back to

Re: Teaching Python

2011-04-20 Thread harrismh777
Chris Angelico wrote: Hacking?? 1) Tinkering, programming, building furniture with an axe. 2) Breaking and entering in the electronic world. Not so much. In the comp.lang.python community hacking is most easily identified with the many one-liners that show up... that is the underlying spiri

Re: IDLE bug

2011-04-20 Thread harrismh777
Terry Reedy wrote: Go ahead and report, noting which Linux distribution, and include my negative report. Add me as nosy. Done. 11896 created. msg(s) 134194 134195 thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Hello Sweet Friends

2011-04-20 Thread harrismh777
Ashraf Ali wrote: Friends . What are you looking for? Just visit the folowing link and find what you want I don't like SPAM with my eggs and ham... just eggs and ham... no SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM. SSSPPPAAAMMM SSSPPPAAAMMM SSSPPPAAAMMM SSPPAAMM SPAM ! ... on

Re: learnpython.org - an online interactive Python tutorial

2011-04-21 Thread harrismh777
Algis Kabaila wrote: [quote] Python is completely object oriented, and not "strongly typed" [/quote] False: Python IS strongly typed, without doubt (though the variables are not explicitly declared.) Playing the advocate for a moment here, this is something that I was confused about early o

Re: Teaching Python

2011-04-21 Thread harrismh777
MRAB wrote: That's a cowboy coder. A cowboy coder is someone who's bad at coding, a hacker is someone who's good at it. A hacker is someone who loves to code and doesn't really care whether anyone else thinks they're really at it or not... although, yes, they generally are *very* good at it

Re: Teaching Python

2011-04-21 Thread harrismh777
MRAB wrote: A computer hacker doesn't write the requirements of the software or draw Jackson Structured Programming diagrams, etc, but just thinks about what's needed and starts writing the code. Very close... ... hackers don't necessarily care what something was designed to do, only what ca

Re: Teaching Python

2011-04-21 Thread harrismh777
Westley Martínez wrote: But really, hack >has always been a negative term. It's original definition is chopping, >breaking down, kind of like chopping down the security on someone elses >computer. Now I don't know where the term originally came from, but the >definition the media uses is q

Input() in Python3

2011-04-21 Thread harrismh777
My interactive scripts are giving errors on the input(). I discovered another fairly significant change in Python3, as discussed in PEP 3111. I was a little flabbergasted to discover that input() was proposed to be removed 'totally' from 3000. Of course I agree with PEP 3111 and am thankful th

Re: learnpython.org - an online interactive Python tutorial

2011-04-21 Thread harrismh777
Heiko Wundram wrote: The difference between strong typing and weak typing is best described by: Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01) [GCC 4.3.4 20090804 (release) 1] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> 1+'2' Traceback (most recent c

Re: learnpython.org - an online interactive Python tutorial

2011-04-23 Thread harrismh777
Chris Angelico wrote: Wow, someone else who knows REXX and OS/2! REXX was the first bignum language I met, and it was really cool after working in BASIC and 80x86 assembly to suddenly be able to work with arbitrary-precision numbers! Yes, my "big num" research stuff was initially done in REXX,

  1   2   3   >