Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-29 Thread Mark H Harris
On 3/29/14 6:59 AM, Marko Rauhamaa wrote: I hate localization. You get a error message in Finnish from "make" or "grep" and then you try to google it. So mine is en_US, but I know people who do fi_FI. ... this is my point precisely. -- https://mail.python.org/mailman/listinfo/python-list

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-29 Thread Mark H Harris
On 3/29/14 12:53 PM, Steven D'Aprano wrote: People have had localised code pages, and localised keyboards to enter characters in those code pages, for up to 30 years, if not longer. Nobody is arguing otherwise, Steven. Having a code page for a local language is not the same thing as having

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-29 Thread Mark H Harris
On 3/30/14 1:31 AM, Steven D'Aprano wrote: I'm not sure what point you are trying to make. We have people here from all over the earth, and enough illegal immigrants speaking Spanish to account for a population about the size of Ohio. *raises eyebrow* Did you intend to imply that it is only il

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Mark H Harris
On 3/30/14 5:35 AM, Steven D'Aprano wrote: On Sun, 30 Mar 2014 01:48:27 -0500, Mark H Harris wrote: Don't be silly, Steven, it doesn't become you. Given the sorts of patronising, condescending things you insist are true about non-Americans, such as their supposed inability

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Mark H Harris
On 3/30/14 5:35 AM, Steven D'Aprano wrote: Approximately 5% of the US population either do not speak English at all, or speak it poorly. That includes approximately half a million ASL speakers (American Sign Language, which is not a manual representation of English but an independent language in

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Mark H Harris
On 3/30/14 1:31 AM, Steven D'Aprano wrote: The most recent US census found there are 38.5 million people in the US who primarily speak Spanish, and 45 million who speak it as their first or second language. In comparison, there are only an estimated 11 million illegal immigrants (of which only 7

Re: OFF TOPIC Spanish in the USA [was Re: Explanation of this Python language feature?]

2014-03-30 Thread Mark H Harris
On 3/31/14 12:05 AM, Chris Angelico wrote: What say you? We all type in our own language, and everyone else gets to read it in their own language. Its kinda like the day of Pentecost (except that its print instead of audio). And Pentecost required direct intervention of the all-powerful God o

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-03-30 Thread Mark H Harris
On 3/30/14 10:22 AM, Steven D'Aprano wrote: In 1991, there was no wireless, no mobile computing, hardly any public Internet outside of the universities. It was before the Eternal September, and only a few years after the Great Renaming. I was using arpanet since the late 1970s. Python had

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-01 Thread Mark H Harris
On 3/31/14 3:46 PM, Rhodri James wrote: I was using arpanet since the late 1970s. I was using JANet since the early 80s, and I'm by no means the oldest person here. I should stop playing that card if I were you. My point (which you missed) is not how old I am, rather, for some of us 1

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-01 Thread Mark H Harris
On 4/1/14 4:49 PM, Chris Angelico wrote: On Wed, Apr 2, 2014 at 8:26 AM, Mark H Harris wrote: Python3 finally started getting unicode right. The fact that it 'existed' in some form prior to (3) is not meaningful, nor helpful. When I said, "python has only really used i

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-03 Thread Mark H Harris
On 4/1/14 5:33 PM, Terry Reedy wrote: hi Terry, hope you are well today, despite gmane difficulties; If you narrowly meant "The python interpreter only starting using unicode as the default text class in 3.0", then you are, in that narrow sense, correct. Yes. When I speak of 'python' I

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-03 Thread Mark H Harris
On 4/3/14 12:14 PM, Marko Rauhamaa wrote: Mark H Harris : So, python(3)'s use of unicode is exciting, not only as a step forward for the python interpreter, but also as a leadership step forward in computer science around the world. Big words. I don't think computer science has e

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-03 Thread Mark H Harris
On 4/3/14 5:43 PM, Chris Angelico wrote: So your definition of "useful" for the Decimal module is "fast" and your definition of "useful" for Unicode is "mandated into use". No. I did not define 'useful'. I placed 'useful' on a continuum whereby 'useful' is non definitive & relative. Go re

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-03 Thread Mark H Harris
On 4/3/14 9:07 PM, alex23 wrote: On 4/04/2014 2:38 AM, Mark H Harris wrote: If I speak of the python community, and I rarely do Maybe you speak "of" them rarely but you claim to speak "for" them fairly often. I am sorry, and I do apologize (genuinely). I knowingly

Re: converting strings to hex

2014-04-03 Thread Mark H Harris
On 4/3/14 9:10 PM, dave em wrote: I am taking a cryptography class and am having a tough time with an assignment similar to this. hi Dave, if your instructor wanted you to work on this with other people she would have made it a group project and ordered pizza for everyone. I'll give you so

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-03 Thread Mark H Harris
On 4/3/14 2:43 PM, Marko Rauhamaa wrote: What does computer science have to show of late? A better mutual exclusion algorithm? Dancing trees? Ok, cryptography has been pretty exciting. The back and forth between feasibility and unfeasibility. The ongoing cat and mouse. Computer science i

Re: converting strings to hex

2014-04-03 Thread Mark H Harris
On 4/3/14 10:10 PM, dave em wrote: Thanks, got it. Sometimes the simple things can be difficult. Dave You haven't seen nothing yet, wait till M.L. catches you on the flip side for using gg. {running for cover} marcus -- https://mail.python.org/mailman/listinfo/python-list

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 3:20 AM, Mark Lawrence wrote: On 04/04/2014 03:29, Mark H Harris wrote: Now, about Python2. It has not died. It appears to be 'useful'. {snip} For a lot of people, if it ain't broke, don't fix it. hi Mark, yes that's my point. I have heard rum

Re: converting strings to hex

2014-04-04 Thread Mark H Harris
On 4/4/14 1:16 AM, James Harris wrote: YMMV but I thought the OP had done a good job before asking for help and then asked about only a tiny bit of it. Some just post a question! Indeed they do. Its a little like negotiating with terrorists. As soon as you negotiate with the first one, you

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 4:50 PM, Mark Lawrence wrote: You could answer all of the above for yourself if you were to use your favourite search engine. hi Mark, yeah, condescending as that is, been there done that. See this link as just one example: http://blog.startifact.com/posts/python28-discussion

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 5:39 PM, Chris Angelico wrote: Yes, because python-list responses are *so* much more reliable than official statements on python.org, {/sarcasm off} ... from some responders. The discussion following such posts is also *much* more valuable, too. IMHO Python.org is the political p

Re: converting strings to hex

2014-04-04 Thread Mark H Harris
On 4/4/14 5:36 PM, Chris Angelico wrote: If someone is asking for a hint, it's because s/he is trying to learn. I'm always willing to help someone learn, regardless of whether they're going through a course or currently employed or whatever. Sometimes a small hint can be obtained from the interpr

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 6:16 PM, Mark Lawrence wrote: Fear/panic of a fork, where did that come from? It's certainly the first I've ever heard of it. hi Mark, it came from Ian; or, my interpretation of Ian. It comes out on the net too (from various places). Here is Ian's quote,

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 10:04 PM, Terry Reedy wrote: I am a core developer and I am 99.99% sure that the core developers will not produce a CPython 2.8. For one thing we will likely do instead, see http://legacy.python.org/dev/peps/pep-0466/ Thanks Terry. The back-port sounds great; I find the "Rejected al

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 7:00 PM, Steven D'Aprano wrote: Berp, Brython, CLPython, CPython, CapPython, ChinesePython, Compyler, Copperhead, Cython, HoPe, HotPy, IronPython, Jython, Kivy, Mypy, Mython, Nuitka, Numba, Parakeet, Parallel Python, Perthon, Pippy, Psyco, Py4A, PyMite, PyMT, PyPad, PyPy, PyQNX, PyVM,

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 10:42 PM, Rustom Mody wrote: Computer-hobbyists and computer-professionals are quite different sets of people. I know its just a gut feel, and I know there are a lot of lurkers here too, but it seems that there are *way* more folks from the professional camp on comp.lang.python

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 11:40 PM, Chris Angelico wrote: If it's too much work to make the changes to move something from Python 2.7 to Python 3.3, it's *definitely* too much work to rewrite it in a different language. Totally, no doubt. There would have to be some strong other reason for shifting, espec

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/4/14 11:49 PM, Chris Angelico wrote: On Sat, Apr 5, 2014 at 3:31 PM, Mark H Harris wrote: Its has always seemed to me that Java or C++ would be better suited to creating python. I wonder will C always be the standard canonical PSF python interpreter base language? Has the C python

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/5/14 12:02 AM, Ian Kelly wrote: A fork is undesirable because it fragments the community. I don't think "fear" or "panic" are the right words for it. Yes. I get that. I think what is desired (just thinking out loud from my own vantage point) is a unified community, but also a foundat

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-04 Thread Mark H Harris
On 4/5/14 1:01 AM, Ben Finney wrote: Mark H Harris writes: On 4/5/14 12:02 AM, Ian Kelly wrote: A fork is undesirable because it fragments the community. I don't think "fear" or "panic" are the right words for it. Yes. I get that. So, you get that “fear

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-06 Thread Mark H Harris
On 4/4/14 4:53 AM, Steven D'Aprano wrote: Python is not a computer-science-ey language. Every programming language is interesting from a comp sci standpoint. Some are more useful for research; python is one of those. For what reasons do you disagree? marcus -- https://mail.python.org/mail

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-06 Thread Mark H Harris
On 4/4/14 4:53 AM, Steven D'Aprano wrote: Python is not a computer-science-ey language. Really ? It is of little or no interest to computer scientists involved in the mathematics of computation, ... you mean no one except me, then ? or compiler-theory, or type-theory, or any of the

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-06 Thread Mark H Harris
On 4/4/14 4:53 AM, Steven D'Aprano wrote: > Python is not a computer-science-ey language. Really ? > It is of little or no > interest to computer scientists involved in the mathematics of > computation, ... you mean no one except me, then ? > or compiler-theory, or type-theory, or any o

Re: Explanation of this Python language feature? [x for x in x for x in x] (to flatten a nested list)

2014-04-07 Thread Mark H Harris
On 4/6/14 12:31 PM, Rustom Mody wrote: I think python wins because it (usually) lets people do their thing (includes but not limited to CS-research) and gets out of the way. To say therefore that it is irrelevant to the research is a strange inversion of its advantages. I think so too. I f

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread Mark H Harris
On 4/8/14 2:07 AM, James Brewer wrote: I don't think that I have anything to learn from my co-workers, which saddens me because I really like to learn and I know that I have a lot of learning to do. Give it time. The first thing that must happen is relationship building. Initially its about

Re: "Latching" variables in function

2014-04-09 Thread Mark H Harris
On 4/8/14 3:09 PM, Grawburg wrote: I have a N/O pushbutton that I want to "latch" a value to a variable when it's been pressed. I need button_value to become '1' when the button is pressed and to remain '1' until ... What do I use to 'latch' button_value? Philosophically speaking buttons

Re: threading

2014-04-10 Thread Mark H Harris
On 4/9/14 12:52 PM, Chris Angelico wrote: People with a fear of threaded programming almost certainly never grew up on OS/2. :) I learned about GUI programming thus: Write your synchronous message handler to guarantee that it will return in an absolute maximum of 0.1s, preferably a lot less. If

Re: Teaching python to non-programmers

2014-04-11 Thread Mark H Harris
On 4/10/14 3:52 PM, [email protected] wrote: Do you get paid to be a jerk, or is it just for yuks? If the latter, you're not funny. Mark is the c.l.python resident margin police. Think of him as a welcome committee with an attitude. :) -- https://mail.python.org/mailman/lis

Re: Teaching python to non-programmers

2014-04-11 Thread Mark H Harris
On 4/10/14 10:54 AM, Lalitha Prasad K wrote: Dear List Recently I was requested to teach python to a group of students of GIS (Geographic Information Systems). Adults? ... what age ranges? Their knowledge of programming is zero. The objective is to enable them to write plug-ins for GIS s

Re: python obfuscate

2014-04-11 Thread Mark H Harris
On 4/10/14 8:29 PM, Wesley wrote: Does python has any good obfuscate? Others have answered this well, but I thought I would give you another opinion, perhaps more direct. Obfuscation (hiding) of your source is *bad*, usually done for one of the following reasons: 1) Boss is pa

Re: Language summit notes

2014-04-11 Thread Mark H Harris
On 4/11/14 11:02 AM, Chris Angelico wrote: It's almost now debatable whether you were metabaiting Steven into telling you off for trolling the resident troll... QOTW -- https://mail.python.org/mailman/listinfo/python-list

Re: Martijn Faassen: The Call of Python 2.8

2014-04-15 Thread Mark H Harris
On 4/14/14 2:32 PM, Phil Dobbin wrote: On a related note, Guido announced today that there will be no 2.8 & that the eol for 2.7 will be 2020. Can you site the announcement? Thanks -- https://mail.python.org/mailman/listinfo/python-list

Re: Martijn Faassen: The Call of Python 2.8

2014-04-15 Thread Mark H Harris
On 4/15/14 2:37 PM, Novocastrian_Nomad wrote: On Tuesday, April 15, 2014 12:32:14 PM UTC-6, Mark H. Harris wrote: Can you site the announcement? Thanks http://hg.python.org/peps/rev/76d43e52d978?utm_content=buffer55d59&utm_medium=social&utm_source=facebook.com&utm_campaign=buff

Re: Martijn Faassen: The Call of Python 2.8

2014-04-15 Thread Mark H Harris
On 4/15/14 4:02 PM, Terry Reedy wrote: https://python3wos.appspot.com/ That's what I thought. Its really about getting the super-power wall fixed up; everything else will fall in place. I do think that Guido might be positioning himself as an enabler, of sorts. I can see extending through

Re: networking question: 2-way messaging w/o wireless modem config?

2014-04-17 Thread Mark H Harris
On 4/17/14 11:20 AM, [email protected] wrote: I have a Raspberry Pi board with a wireless usb modem on it. I wish to be able to message 2-way with the board from across the internet, without having to open ports on the wireless modem. Is there a way to do this? I have been looking at udp

Re: Soap list and soap users on this list

2014-04-17 Thread Mark H Harris
On 4/17/14 12:58 PM, Joseph L. Casale wrote: Seems the soap list is a little quiet and the moderator is mia regardless. Are there many soap users on this list familiar with Spyne or does anyone know the most optimal place to post such questions? Read first. You can try : > http://spyne.io/

Re: App segmentation fault (CentOS 6.5)

2014-04-23 Thread Mark H Harris
On 4/23/14 1:08 PM, Reginaldo wrote: I have a GUI app that is written using wx. When I run it on CentOS 6.5, the following error messages are displayed and the app closes: Only fails on CentOS ? I use an idle thread in my application. Is your CentOS launching idle with -n switch ?

Re: how to build and install multiple micro-level major.minor versions of Python

2014-04-29 Thread Mark H Harris
On 4/29/14 1:53 PM, Brent S. Elmer Ph.D. wrote: Yes, I already use --prefix to build to a different path. I guess that is what I need to do but I would rather have a way to have the build and install process install to the micro level. example only, Use --prefix /usr/local/2.7.6/ Use --prefi

Re: how to build and install multiple micro-level major.minor versions of Python

2014-04-29 Thread Mark H Harris
On 4/29/14 1:53 PM, Brent S. Elmer Ph.D. wrote: I would rather have a way to have the build and install process install to the micro level. I agree. On the other hand, is there really a special need to thoroughly test against a micro level. I have the latest 2.6, 2.7, 3.2, 3.3, 3.4 ... the

Re: Significant digits in a float?

2014-04-29 Thread Mark H Harris
On 4/29/14 3:16 PM, Adam Funk wrote: "A man pitches his tent, walks 1 km south, walks 1 km east, kills a bear, & walks 1 km north, where he's back at his tent. What color is the bear?" ;-) Who manufactured the tent? marcus -- https://mail.python.org/mailman/listinfo/python-list

Re: Designing a network in Python

2014-04-30 Thread Mark H Harris
On 4/30/14 9:57 AM, [email protected] wrote: I don't know how to do that stuff in python. Always a good time to learn. Let the database do the work for you; try not to re-invent the relational database wheel. Access the database via python-sql: https://pypi.python.org/pypi/python-sql

Re: First attempt at a Python prog (Chess)

2014-04-30 Thread Mark H Harris
On 4/30/14 8:28 AM, Chris Hinsley wrote: On 2013-02-15 05:05:27 +, Rick Johnson said: First of all your naming conventions suck. You've used the "interface" style for every function in this game so i can't /easily/ eyeball parse the /real/ interface functions from the helper functions -- an

Re: Slightly OT - using PyUIC from Eclipse

2014-04-30 Thread Mark H Harris
On 4/30/14 8:50 PM, Steven D'Aprano wrote: On Thu, 01 May 2014 01:49:25 +0100, Steve Simmons wrote: On 30/04/2014 23:49, Fabio Zadrozny wrote: And that's about where I stopped reading. Post as quote: I'm trying to set up a new dev environme

Re: Significant digits in a float?

2014-04-30 Thread Mark H Harris
On 4/30/14 7:02 PM, Dennis Lee Bieber wrote: Sterling? Snort. K&E was the way to go. Absolutely, snort. I still have my K&E (Keuffel & Esser Co. N.Y.); made of wood... (when ships were wood, and men were steel, and sheep ran scared) ... to get to the S L T scales I have to pull the slid

Re: Significant digits in a float?

2014-04-30 Thread Mark H Harris
On 4/30/14 10:56 PM, Paul Rubin wrote: There is a nice Javascript simulation of the N4-ES here: http://www.antiquark.com/sliderule/sim/n4es/virtual-n4es.html Thank you! The N4-ES and the N4-T (mine) are essentially the same rule. The N4-ES on the site is yellow (mine is white) and the site

Re: Running scripts from shell / IDLE in windows

2014-05-01 Thread Mark H Harris
On 5/1/14 10:34 AM, s71murfy wrote: I am trying to run the simple helloworld script from the IDLE shell. I want to pass it arguments. Please can you give me the syntax to do it? There are several ways to do this, depending on your preferences and goals. Is the helloworld script the tk ver

Re: Running scripts from shell / IDLE in windows

2014-05-01 Thread Mark H Harris
On 5/1/14 11:02 AM, Mark H Harris wrote: file hello.py=== def Hello(parms list): whatever whatever From IDLE: import hello hello.Hello([1, 2, 3, 4]) Sorry, almost forgot, if you 'run' the module hello.py (with the IDLE run dropdown) then

Re: Significant digits in a float?

2014-05-06 Thread Mark H Harris
On 5/1/14 9:06 PM, Dennis Lee Bieber wrote: The N4-ES and the N4-T (mine) are essentially the same rule. The N4-ES on the site is yellow (mine is white) and the site rule indicates Picket & Eckel Inc. (that's where the E comes from) Also the the ES states Chicage Ill USA where the T states Made

Re: Significant digits in a float?

2014-05-06 Thread Mark H Harris
On 5/1/14 8:47 PM, Dennis Lee Bieber wrote: On Wed, 30 Apr 2014 22:54:21 -0500, Mark H Harris declaimed the following: My high school '74 was the last class to learn the slide-rule using the Sterling (we paid a deposit to use the school's). Since calculators had

Re: Significant digits in a float?

2014-05-06 Thread Mark H Harris
On 5/1/14 10:53 AM, William Ray Wing wrote: I’m surprised no one has jumped in to defend/tout the Dietzgen slide rules (which I always thought were the ultimate). Mine (their Vector Log Log) is one of their Microglide series that had teflon rails inserted in the body and is still totally stick-f

Re: (question) How to use python get access to google search without query quota limit

2014-05-06 Thread Mark H Harris
On 5/6/14 2:27 PM, Mark Lawrence wrote: will u please send me the code that you write. actually i'm trying to learn use of google search api but i'm not getting so please mail me the code. Sure but it's USD 1,000 cash or cheque made payable to the Python Software Foundatio

Re: Pass variable by reference

2014-05-06 Thread Mark H Harris
On 5/6/14 3:31 PM, Ned Batchelder wrote: On 5/6/14 12:42 AM, Gary Herron wrote: This gets confusing, but in fact the most accurate answer is that Python does not have "variables", so there is no such thing as passing "variables" by reference or any other method. Python *does* have names bound t

idle glitch while building python 3.4 from sources

2014-05-07 Thread Mark H Harris
hi folks, I got bit again trying to build python3.4 from sources (mea culpa, of course). The symptom is everything (except ensure pip) builds, installs, and runs fine with the small baby problem that IDLE will not run (-tkinter isn't even there) even though tcl/tk 8.5 is loaded and running.

Re: Pass variable by reference

2014-05-07 Thread Mark H Harris
come up False? This is just one of a dozen 'different' kinds of examples. And the answer is the same, Python does not have variables, Python has names bound to objects. The cleanest clearest explanation of Python's (name-->object) model is 'the beautiful heart of python&#x

Re: The “does Python have variables?” debate

2014-05-07 Thread Mark H Harris
On 5/7/14 10:48 AM, Jerry Hill wrote: I think it's rather silly for someone to insist that python doesn't have variables. On the other hand, I think it can be useful to point out that python variable aren't like C variables, and that thinking of python variables as having two parts -- names and

Re: idle glitch while building python 3.4 from sources

2014-05-07 Thread Mark H Harris
On 5/7/14 1:19 PM, Ned Deily wrote: If the Python build (the "make sharedmods" build step) can't successfully build the _tkinter extension module (because, for example, it couldn't find the Tk headers or libraries), the build step already reports that it could not build _tkinter. hi Ned, wher

right click cut copy past context menu in IDLE in 3.4

2014-05-07 Thread Mark H Harris
Greetings, thanks to the folks who worked on the right click context menu in IDLE for python 3.4! Nice job. marcus -- https://mail.python.org/mailman/listinfo/python-list

Re: The “does Python have variables?” debate

2014-05-07 Thread Mark H Harris
On 5/7/14 4:15 PM, Marko Rauhamaa wrote: That's why I always try to say “Python doesn't have variables the way you might know from many other languages”, Please elaborate. To me, Python variables are like variables in all programming languages I know. Python currently does not allow me to obtai

Re: Values and objects [was Re: Pass variable by reference]

2014-05-09 Thread Mark H Harris
On 5/7/14 8:08 PM, Steven D'Aprano wrote: In Python, all values *are* objects. It isn't a matter of choosing one or the other. The value 1 is an object, not a native (low-level, unboxed) 32 or 64 bit int. Unlike C# or Java, there is no direct language facility to box native values into objects o

Re: Pass variable by reference

2014-05-09 Thread Mark H Harris
On 5/7/14 8:31 PM, Chris Angelico wrote: On Thu, May 8, 2014 at 4:11 AM, Mark H Harris wrote: And we must never forget that CPython's underpinnings, uhm C, uses variables, C ones... (never mind) Be careful of this one. It's utterly irrelevant to your point, and may be distractin

Re: The “does Python have variables?” debate

2014-05-09 Thread Mark H Harris
On 5/7/14 8:27 PM, Steven D'Aprano wrote: In almost every other language you know A and B each "contain" by reference (and almost always by static type) macTruck. But NOT python. Nor Javascript, Ruby, Perl, PHP, Lua, or (I think) Lisp or Java. To mention only a few. I think it is easy to exagg

Re: Abstractions [was Re: Pass variable by reference]

2014-05-09 Thread Mark H Harris
On 5/9/14 7:58 PM, Steven D'Aprano wrote: {snip} at which point we're now talking about a concrete, physical description of the process, not an abstraction. There really is a bottom-most turtle that holds up all the rest.) hi Steven, heh... yup, there really is a bottom-most turtle (and who c

Re: The � debate

2014-05-09 Thread Mark H Harris
On 5/9/14 8:34 PM, Steven D'Aprano wrote: Nobody seems to complain about using the term "assigment" in relation to Python, despite it meaning something a bit different from what it means in some other languages, so I don't see anything wrong with using the term "variable" with the above definitio

Re: Values and objects

2014-05-09 Thread Mark H Harris
On 5/9/14 10:05 PM, Rustom Mody wrote: Likewise python's name-spaces go almost all the way to first-classing variables but not quite as Marko discovered when locals() looks like a dict, waddles like a dict but does not quack like a dict. QOTWeekEnd -- https://mail.python.org/mailman/listinfo/p

Re: NumPy, SciPy, & Python 3X Installation/compatibility issues

2014-05-10 Thread Mark H Harris
On 5/10/14 12:07 PM, [email protected] wrote: 4. In the long run, would it be better to use UNIX instead of Windows, if I were to use Python for all of my research? I concur with Chris and Stefan. The *nix model is faster, cleaner, and more secure. I prefer gnu/linux, but mac os/x is al

Re: Free vs proprietary (was Re: NumPy, SciPy, & Python 3X Installation/compatibility issues)

2014-05-10 Thread Mark H Harris
On 5/10/14 11:16 PM, Nelson Crosby wrote: I also believe in this more 'BSD-like' view, but from a business point of view. No one is going to invest in a business that can't guarantee against piracy, and such a business is much less likely to receive profit (see Ardour). Don't get me wrong - I lo

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-10 Thread Mark H Harris
On 5/10/14 8:42 AM, Roy Smith wrote: Ars Technica article a couple of days ago, about Fortran, and what is likely to replace it: http://tinyurl.com/mr54p96 uhm, yeeah! 'Julia' is going to give everyone a not so small run for competition; justifiably so, not just against FORTRAN. Julia is

Re: Free vs proprietary (was Re: NumPy, SciPy, & Python 3X Installation/compatibility issues)

2014-05-10 Thread Mark H Harris
On 5/10/14 6:35 PM, Chris Angelico wrote: Instead, what we have is a world in which Python can be used to write closed-source software, LibreOffice Writer will happily open a Microsoft Word document, Samba communicates with Windows computers, libc can be linked to non-free binaries, etc, etc, et

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-11 Thread Mark H Harris
On 5/11/14 12:05 PM, Alain Ketterlin wrote: Julia is Matlab and R, Python, Lisp, Scheme; all rolled together on steroids. Its amazing as a dynamic language, and its fast, like lightning fast as well as multiprocessing (parallel processing) at its core. Its astounding, really. Hmmm... Its num

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-11 Thread Mark H Harris
On 5/11/14 1:59 PM, Chris Angelico wrote: julia> prec=524288 524288 julia> with_bigfloat_precision(prec) do println(atan(BigFloat(1)/5)*16 - atan(BigFloat(1)/239)*4) end Would it be quicker (and no less accurate) to represent pi as atan(BigFloat(1))*4 instead? That's how I or

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-11 Thread Mark H Harris
On 5/11/14 10:10 PM, Dave Angel wrote: On 05/11/2014 02:54 PM, Mark H Harris wrote: >julia> sin(BigFloat(π/4)) > 7.0710678118654750275194295621751674626154323953749278952436611913748 > 20215180412e-01 with 256 bits of precision That answer doesn't seem to come anywhere

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-11 Thread Mark H Harris
On 5/11/14 11:10 PM, Mark H Harris wrote: On 5/11/14 10:10 PM, Dave Angel wrote: On 05/11/2014 02:54 PM, Mark H Harris wrote: >julia> sin(BigFloat(π/4)) > 7.0710678118654750275194295621751674626154323953749278952436611913748 > 20215180412e-01 with 256 bits of precision

Re: Everything you did not want to know about Unicode in Python 3

2014-05-12 Thread Mark H Harris
On 5/12/14 8:18 PM, Steven D'Aprano wrote: Unicode is hard, not because Unicode is hard, but because of legacy problems. Yes. To put a finer point on that, Unicode (which is only a specification constantly being improved upon) is harder to implement when it hasn't been on the design board fr

Re: a better way to operate svn with python(better than pysvn)?

2014-05-12 Thread Mark H Harris
On 5/12/14 10:16 AM, [email protected] wrote: > {nothing} huh? -- https://mail.python.org/mailman/listinfo/python-list

Simple Function Decorator Sample Snippet

2014-05-12 Thread Mark H Harris
hi folks, I've come up with a simple snippet that intends to explain the concept of decorations without an article (for on app help), while being succinct and concise, while not being overly complicated. Does this work? I have another one coming for args, similar, if this works... comments

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-12 Thread Mark H Harris
On 5/12/14 3:44 AM, Alain Ketterlin wrote: multiple-dispatch (i.e., dynamically testing types, converting to a common type, and selecting the version of sqrt to use). That's probably more than the time it takes to actually perform the computation, a bit like what happens with x+y on integers with

Re: Everything you did not want to know about Unicode in Python 3

2014-05-12 Thread Mark H Harris
On 5/13/14 12:10 AM, Rustom Mody wrote: I think the most helpful way forward is to accept two things: a. Unicode is a headache b. No-unicode is a non-option QOTW(so far...) -- https://mail.python.org/mailman/listinfo/python-list

Re: Fortran (Was: The "does Python have variables?" debate)

2014-05-12 Thread Mark H Harris
On 5/13/14 12:48 AM, Steven D'Aprano wrote: On Tue, 13 May 2014 00:33:47 -0500, Mark H Harris wrote: there has to be a value add for scientists to move away from R or Matlab, or from FORTRAN. Why go to the trouble? FORTRAN works well (its fast too), and there are zillions of lines of

Re: Simple Function Decorator Sample Snippet

2014-05-12 Thread Mark H Harris
On 5/13/14 12:54 AM, Steven D'Aprano wrote: I don't think that this idea is original to you :-) I'm pretty sure many people have come up with the idea of a decorator that just announces when it runs and when it is called. I know I have :-) oh, absolutely... every piece of that thing comes f

Re: Everything you did not want to know about Unicode in Python 3

2014-05-12 Thread Mark H Harris
On 5/13/14 1:18 AM, Chris Angelico wrote: instead of yelling "LALALALALA America is everything" and pretending that ASCII, or Latin-1, or something, is all you need. ... it isn't? LALALALALALALALALA :)) -- https://mail.python.org/mailman/listinfo/python-list

Re: Bug in Decimal??

2014-05-15 Thread Mark H Harris
On 5/15/14 3:45 PM, [email protected] wrote: Please take a deeper look at my second post. Try the same but this time set the precision to 4000, 8000 or whatever you need to convince yourself there's no error propagation, yet there's a 4 in the middle that shouldn't be there. See for yours

Re: All-numeric script names and import

2014-05-21 Thread Mark H Harris
On 5/21/14 8:46 AM, Chris Angelico wrote: # from 1 import app as application # Doesn't work with a numeric name application = __import__("1").app Is there a way to tell Python that, syntactically, this thing that looks like a number is really a name? Or am I just being dumb? (Don't hold back on

Re: daemon.DaemonContext and logging

2014-05-22 Thread Mark H Harris
On 5/22/14 10:28 AM, [email protected] wrote: On Saturday, April 10, 2010 11:52:41 PM UTC-4, Ben Finney wrote: pid = daemon.pidlockfile.TimeoutPIDLockFile( "/tmp/dizazzo-daemontest.pid", 10) Has pidlockfile been removed? (1.6) -brian "Have you released the inertial dampener?

Re: Python is horribly slow compared to bash!!

2014-05-22 Thread Mark H Harris
On 5/22/14 5:54 AM, Chris Angelico wrote: Figure some of you folks might enjoy this. Look how horrible Python performance is! http://thedailywtf.com/Articles/Best-of-Email-Brains,-Security,-Robots,-and-a-Risky-Click.aspx > From TDWTF: Most of the interesting physics analysis code here is bas

Re: Advice for choosing correct architecture/tech for a hobby project

2014-05-22 Thread Mark H Harris
On 5/22/14 1:54 PM, Aseem Bansal wrote: I am working on a hobby project - a Bookmarker{snip} hi, no django is not really the correct tool-set. Django is for server-side content management, but who knows, you might come up with a great hack (I don't want to discourage you). But, a straight p

Re: IDE for python

2014-05-28 Thread Mark H Harris
On 5/28/14 5:43 AM, Sameer Rathoud wrote: I am currently using python 3.3 With python I got IDLE, but I am not very comfortable with this. Please suggest, if we have any free ide for python development. I tend to agree with Chris & Steven on this... a good gnu/linux desktop is the best IDE (d

Re: How to run script from interpreter?

2014-05-28 Thread Mark H Harris
On 5/28/14 2:44 AM, [email protected] wrote: On Friday, January 19, 2001 1:22:23 AM UTC+5:30, Rolander, Dan wrote: What is the best way to run a python script from within the interpreter? What command should I use? try using execfile(filename) What type of script? python? bash? tcl?

Re: need help with this code please fix it or at least tell me what im doing wrong

2014-05-28 Thread Mark H Harris
On 5/28/14 12:32 PM, funky wrote: import pygame <== a very good place to start import random import time import sys http://www.pygame.org/wiki/tutorials My hourly rate is $295.00 /hour, w/2hour minimum, happy to send you a contract of engagement and a copy of my document of unde

Re: IDE for python

2014-05-29 Thread Mark H Harris
On 5/29/14 11:44 AM, Paul Rudin wrote: Terry Reedy writes: I am curious how many of the editors people have been recommending have all of the following Idle features, that I use constantly. 1. Run code in the editor with a single keypress. 2. Display output and traceback in a window that lets

Re: How to run script from interpreter?

2014-05-29 Thread Mark H Harris
On 5/28/14 10:22 PM, Steven D'Aprano wrote: If you want to use python as a shell-glue you can try using system. >>> from os import system >>> def ([parms]) >>> blah blah >>> rc = system(" os.system is cool for quick and dirty calls to an external command. But for serious work

<    52   53   54   55   56   57   58   59   >