micro python and Jaltek systems pyboard

2015-04-23 Thread Mark H Harris
Greetings, anyone using micro python or Jaltek System's pyboard designed to run it? http://micropython.org/ Cheers, marcus :) -- https://mail.python.org/mailman/listinfo/python-list

Re: trying idle

2014-10-10 Thread Mark H Harris
On 10/9/14 7:47 AM, random...@fastmail.us wrote: I believe control-click, but Macs users could say better. Control-click was the canonical way to do it when right click menus were introduced in Mac OS itself. Some programs (notably Netscape) supported them via click-hold before that. And it's

Re: trying idle

2014-10-10 Thread Mark H Harris
On 10/9/14 7:21 AM, wxjmfa...@gmail.com wrote: My audience consists of people having linux and windows and macbooks. Does Idle run on all these? --- No. Huh? -- https://mail.python.org/mailman/listinfo/python-list

Re: trying idle

2014-10-10 Thread Mark H Harris
On 10/9/14 1:52 AM, Rustom Mody wrote: Been using emacs for over 20 years and teaching python for 10. And getting fed up that my audience looks at me like Rip van Winkle each time I start up emacs... (sigh) So trying out Idle... Good for you! ... and even better for your students.

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/11/14 10:12 PM, hito koto wrote: i want to change this is code: def foo(x): y = [] while x !=[]: y.append(x.pop()) return y Consider this generator (all kinds of permutations on the idea): L1 [1, 2, 3, 4, 5, 6, 7] def poplist(L): while True:

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/11/14 10:12 PM, hito koto wrote: def foo(x): y = [] while x !=[]: y.append(x.pop()) return y Consider this generator variation: def poplist(L): done = False while done==False: yield L[::-1][:1:] L =

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/12/14 11:55 AM, Marko Rauhamaa wrote: while not done: Better Python and not bad English, either. ... and taking Marko's good advice, what I think you really wanted: def poplist(L): done = False while not done: yield L[::-1][:1:] L =

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/12/14 11:57 AM, Chris Angelico wrote: On Fri, Jun 13, 2014 at 2:49 AM, Mark H Harris harrismh...@gmail.com wrote: Consider this generator variation: def poplist(L): done = False while done==False: yield L[::-1][:1:] L = L[::-1][1

Re: About python while statement and pop()

2014-06-12 Thread Mark H Harris
On 6/12/14 11:57 AM, Chris Angelico wrote: def poplist(L): done = False while done==False: yield L[::-1][:1:] L = L[::-1][1::][::-1] if len(L)==0: done=True Why not just while L? OK, here it is with Chris' excellent

Re: Python's re module and genealogy problem

2014-06-11 Thread Mark H Harris
On 6/11/14 8:26 AM, Robert Kern wrote: Anyways, to your new problem, yes it's possible. Search for regular expression intersection for possible approaches. I agree, I would not use a decision (decision tree) but would consider a set of filters from most specific to least specific. marcus

Re: First time I looked at Python was(...)

2014-06-10 Thread Mark H Harris
On 6/9/14 3:54 PM, Carlos Anselmo Dias wrote: Hi ... I'm finishing my messages with this ... The first time I looked into Python was +- 10 years ago ... and in the last 10 years I did not spent more than 30 minutes looking at ... but I like it ... it's easy to read ... even if I'm not familiar

Re: First time I looked at Python was(...)

2014-06-10 Thread Mark H Harris
On 6/10/14 3:41 PM, leo kirotawa wrote: Guys I'm from Brazil too, and I'm ashamed for this troll. Don't feed the troll bot. OTOH, it might be fun to feed it some weird subject|predicate phrases to see what it does with them. Bots eat bananas because bouncing on berries becomes beenie baby

Re: Unicode and Python - how often do you index strings?

2014-06-05 Thread Mark H Harris
On 6/5/14 10:39 AM, alister wrote: {snipped all the mess} And you have may time been given a link explaining the problems with posting g=from google groups but deliberately choose to not make your replys readable. The problem is that thing look fine in google groups. What helps is getting

Re: OT: This Swift thing

2014-06-05 Thread Mark H Harris
On 6/5/14 12:18 PM, Michael Torrie wrote: No they won't be used in the same niche. Objective C is certainly not used in the same niche as Python, so why would Swift? I don't expect to see any major OS X app written completely in Python, nor would I expect and of the core frameworks to be

Re: OT: This Swift thing

2014-06-04 Thread Mark H Harris
On 6/3/14 11:54 PM, Steven D'Aprano wrote: I've been passing code snippets by email and Usenet for 15 years or more, and I've never had a problem with indentation. Of course, I've had problems with *other people's code*, because they use broken tools that break the text they send. Me

Re: OT: This Swift thing

2014-06-04 Thread Mark H Harris
On 6/4/14 9:24 AM, Skip Montanaro wrote: Surely your local colleagues realize that Python has been around for 20-odd years now, that indentation-based block structure has been there since Day One, and that it's not going to change, right? Yup. Its the primary argument on the side for

Re: immutable vs mutable

2014-06-04 Thread Mark H Harris
On 6/3/14 8:24 PM, Ethan Furman wrote: Deb, do yourself a favor and just trash-can anything from Mark Harris. Ouch, that hurt. Did someone not get their coffee this morning? :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: immutable vs mutable

2014-06-04 Thread Mark H Harris
On 6/3/14 8:14 PM, Deb Wyatt wrote: Well, I'm glad you find this concept straight-forward. I guess I'm not as smart as you. Not at all. I think you misunderstood me. I read the article and I reviewed it (although brief, I stand by what I said). To expand a bit, the article is poorly

Re: OT: This Swift thing

2014-06-04 Thread Mark H Harris
On 6/4/14 5:18 PM, Terry Reedy wrote: On 6/4/2014 10:53 AM, Mark H Harris wrote: The primary paradigm on this topic locally is that indents are bad because malformed or mangled code cannot be reformatted easily (if at all). Begin solution:':' as the end of a line means 'begin block; indent

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry Please help me sort out this problem

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry Please help me sort out this problem ... also this one; --

Re: Error while installing PIL

2014-06-04 Thread Mark H Harris
On 6/4/14 10:02 PM, Sanjay Madhikarmi wrote: I have already install python 2.7 64bit in my windows 8 machine but while installing PIL 1.1.7 for python 2.7 it says that Python 2.7 required which was not found in the registry ... oops, sorry, also this one:

Re: immutable vs mutable

2014-06-03 Thread Mark H Harris
On 6/3/14 12:29 PM, Deb Wyatt wrote: http://www.spontaneoussymmetry.com/blog/archives/438 Deb in WA, USA The article is bogged down in unnecessary complications with regard to mutability (or not) and pass-by reference|value stuff. The author risks confusing her audience (those who are

Re: OT: This Swift thing

2014-06-03 Thread Mark H Harris
On 6/3/14 1:26 PM, Skip Montanaro wrote: From Apple's perspective, there's always platform lock-in. That's good for them, so it must be good for you, right? :-) http://www.theregister.co.uk/2014/06/02/apple_aims_to_speed_up_secure_coding_with_swift_programming_language/ The key to this

Re: OT: This Swift thing

2014-06-03 Thread Mark H Harris
On 6/3/14 3:43 PM, Sturla Molden wrote: Nicholas Cole nicholas.c...@gmail.com wrote: {snip} Unfortunately they retained the curly brackets from JS... The curly braces come from C, and before that B and A/. (I think others used them too before that, but it escapes me now and I'm too lazy

Re: IDE for python

2014-05-29 Thread Mark H Harris
On 5/29/14 11:44 AM, Paul Rudin wrote: Terry Reedy tjre...@udel.edu 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

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 function_name([parms]) blah blah rc = system(your_script_name) os.system is cool for quick and dirty calls to an external command.

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

Re: How to run script from interpreter?

2014-05-28 Thread Mark H Harris
On 5/28/14 2:44 AM, onlyvin...@gmail.com 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?

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

Re: daemon.DaemonContext and logging

2014-05-22 Thread Mark H Harris
On 5/22/14 10:28 AM, wo...@4amlunch.net 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

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

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: Bug in Decimal??

2014-05-15 Thread Mark H Harris
On 5/15/14 3:45 PM, pleasedonts...@isp.com 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

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

2014-05-13 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 code

Re: Simple Function Decorator Sample Snippet

2014-05-13 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

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

2014-05-13 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: 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

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, xs.nep...@gmail.com 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

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

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

2014-05-11 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,

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

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

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 near 256 bits

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 That answer doesn't

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

2014-05-10 Thread Mark H Harris
On 5/10/14 12:07 PM, esaw...@gmail.com 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

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

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

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 harrismh...@gmail.com 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

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

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

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

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

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
On 5/6/14 6:46 PM, Chris Angelico wrote: Is there really a fundamental difference between languages in which that is equally valid syntax and does exactly the same thing? No. And from that standpoint, python has variables. I know, because I thought about python's 'variables' as variables

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

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

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 harrismh...@gmail.com 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

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

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 Foundation, backed up by

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 to

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

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 the 'hello

Re: Designing a network in Python

2014-04-30 Thread Mark H Harris
On 4/30/14 9:57 AM, varun...@gmail.com 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:

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

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: html head meta content=text/html; charset=UTF-8 http-equiv=Content-Type /head body bgcolor=#FF text=#00 br div class=moz-cite-prefixOn 30/04/2014 23:49, Fabio

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. KE was the way to go. Absolutely, snort. I still have my KE (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 slide

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

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

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

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: 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: networking question: 2-way messaging w/o wireless modem config?

2014-04-17 Thread Mark H Harris
On 4/17/14 11:20 AM, haiticare2...@gmail.com 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

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 :

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=buffer55d59utm_medium=socialutm_source=facebook.comutm_campaign=buffer Thanks

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: Teaching python to non-programmers

2014-04-11 Thread Mark H Harris
On 4/10/14 3:52 PM, pete.bee@gmail.com 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. :) --

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

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

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

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

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

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

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

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

2014-04-05 Thread Mark H Harris
On 4/5/14 1:01 AM, Ben Finney wrote: Mark H Harris harrismh...@gmail.com 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” and “panic

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 rumors of python2.8? At some

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:

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

  1   2   3   >