RE: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Nigel Palmer
Hi The python process only goes to around 4.8 MB before it dies and the machine has 4GB of RAM so I do not think it’s a memory issue. Thanks, Nigel -Original Message- From: INADA Naoki [mailto:songofaca...@gmail.com] Sent: 11 July 2017 02:57 To: Nigel Palmer Cc: python-list

RE: Compiling Python 3.6.1 on macOS 10.12.5

2017-07-11 Thread Nigel Palmer
Hi Chris I am planning on embedding Python into a C++ application and I wanted to have my own build of Python to do that. I know that eventually I will need to use --enable-shared or --enable-framework but for now I am trying to get a the simpler static build to compile first. Thanks, Nigel

Compiling Python 3.6.1 on macOS 10.12.5

2017-07-10 Thread Nigel Palmer
and build python are: brew install openssl xz CPPFLAGS="-I$(brew --prefix openssl)/include" LDFLAGS="-L$(brew --prefix openssl)/lib" ./configure --prefix=`pwd`/../build make Any ideas on what I am doing wrong? Many Thanks Nigel -- https://mail.python.org/mailman/listinfo/python-list

Re: help need to write a python spell checker

2010-05-18 Thread Nigel Rowe
On Fri, 14 May 2010 18:19, harry k wrote in comp.lang.python <>: > Write a spell checking tool that will identify all misspelled word in a text file using a provided dictionary. > > > > Extend the spell-checking tool so that the program will also print out a list of possible correct spellings f

Re: A different take on finding primes

2009-11-18 Thread Nigel Rowe
numbers 2) see "Prime numbers list" in the results (number 3 in the results) 3) click link that leads to www.prime-numbers.org I found 455042511 prime numbers in approx 15 seconds. Is that what you wanted? -- Nigel Rowe A pox upon the spammers that make me write my

Re: The future of Python immutability

2009-09-03 Thread Nigel Rantor
Stefan Behnel wrote: Nigel Rantor wrote: John Nagle wrote: Immutability is interesting for threaded programs, because immutable objects can be shared without risk. Consider a programming model where objects shared between threads must be either immutable or "synchronized" in

Re: The future of Python immutability

2009-09-03 Thread Nigel Rantor
ce conditions I would say the following: That is not the challenge, that's the easy part. The challenge is getting useful information out of a system that has only been fed immutable objects. Regards, Nigel -- http://mail.python.org/mailman/listinfo/python-list

Re: evolution [was Re: An assessment of the Unicode standard]

2009-09-02 Thread Nigel Rantor
r wrote: I'd like to present a bug report to evolution, obviously the garbage collector is malfunctioning. I think most people think that when they read the drivel that you generate. I'm done with your threads and posts. *plonk* -- http://mail.python.org/mailman/listinfo/python-list

Re: An assessment of the Unicode standard

2009-08-31 Thread Nigel Rantor
Hendrik van Rooyen wrote: On Sunday 30 August 2009 22:46:49 Dennis Lee Bieber wrote: Rather elitist viewpoint... Why don't we just drop nukes on some 60% of populated landmasses that don't have a "western" culture and avoid the whole problem? Now yer talking, boyo! It will surely hel

Re: Need help with Python scoping rules

2009-08-26 Thread Nigel Rantor
kj wrote: > > Needless to say, I'm pretty beat by this point. Any help would be > appreciated. > > Thanks, Based on your statement above, and the fact that multiple people have now explained *exactly* why your attempt at recursion hasn't worked, it might be a good idea to step back, accept the a

Re: zip codes

2009-08-17 Thread Nigel Rantor
MRAB wrote: Sjoerd Mullender wrote: Martin P. Hellwig wrote: Shailen wrote: Is there any Python module that helps with US and foreign zip-code lookups? I'm thinking of something that provides basic mappings of zip to cities, city to zips, etc. Since this kind of information is so often used fo

Re: callable virtual method

2009-08-14 Thread Nigel Rantor
Jean-Michel Pichavant wrote: Nigel Rantor wrote: Jean-Michel Pichavant wrote: Your solution will work, for sure. The problem is that it will dumb down the Base class interface, multiplying the number of methods by 2. This would not be an issue in many cases, in mine there's already

Re: callable virtual method

2009-08-14 Thread Nigel Rantor
Jean-Michel Pichavant wrote: Your solution will work, for sure. The problem is that it will dumb down the Base class interface, multiplying the number of methods by 2. This would not be an issue in many cases, in mine there's already too much meaningful methods in my class for me to add artif

Re: cross platform method Re: How to get the total size of a local hard disk?

2009-06-16 Thread Nigel Rantor
Tim Harig wrote: > > This is a joke. Do not take it seriously. I do not actually suggest > anybody use this method to measure the size of their drive. I do not take any > responsibility for any damages incurred by using this method. I will laugh > at you if you do. Offer not valid in AK, HI,

Re: Connection tester

2009-06-10 Thread Nigel Rantor
Sparky wrote: > Hey! I am developing a small application that tests multiple websites > and compares their "response time". Some of these sites do not respond > to a ping and, for the measurement to be standardized, all sites must > have the same action preformed upon them. Another problem is that

Re: Winter Madness - Passing Python objects as Strings

2009-06-05 Thread Nigel Rantor
Hendrik van Rooyen wrote: > "Nigel Rantor" wrote: > >> It just smells to me that you've created this elaborate and brittle hack >> to work around the fact that you couldn't think of any other way of >> getting the thread to change it's behaviou

Re: Winter Madness - Passing Python objects as Strings

2009-06-04 Thread Nigel Rantor
Hendrik van Rooyen wrote: It is not something that would find common use - in fact, I have never, until I started struggling with my current problem, ever even considered the possibility of converting a pointer to a string and back to a pointer again, and I would be surprised if anybody else on

Re: Winter Madness - Passing Python objects as Strings

2009-06-04 Thread Nigel Rantor
Hendrik van Rooyen wrote: > "Nigel Rantor" wrote: > >> Hendrik van Rooyen wrote: >>> If you have any interest, contact me and I will >>> send you the source. >> Maybe you could tell people what the point is... > > Well its a long story, but yo

Re: Winter Madness - Passing Python objects as Strings

2009-06-04 Thread Nigel Rantor
Hendrik van Rooyen wrote: > > If you have any interest, contact me and I will > send you the source. Maybe you could tell people what the point is... n -- http://mail.python.org/mailman/listinfo/python-list

Re: binary file compare...

2009-04-17 Thread Nigel Rantor
t make tea. Thanks, Nigel -- http://mail.python.org/mailman/listinfo/python-list

Re: binary file compare...

2009-04-17 Thread Nigel Rantor
Adam Olsen wrote: On Apr 16, 4:27 pm, "Rhodri James" wrote: On Thu, 16 Apr 2009 10:44:06 +0100, Adam Olsen wrote: On Apr 16, 3:16 am, Nigel Rantor wrote: Okay, before I tell you about the empirical, real-world evidence I have could you please accept that hashes collide and that

Re: binary file compare...

2009-04-16 Thread Nigel Rantor
Adam Olsen wrote: On Apr 16, 3:16 am, Nigel Rantor wrote: Adam Olsen wrote: On Apr 15, 12:56 pm, Nigel Rantor wrote: Adam Olsen wrote: The chance of *accidentally* producing a collision, although technically possible, is so extraordinarily rare that it's completely overshadowed by the

Re: binary file compare...

2009-04-16 Thread Nigel Rantor
Adam Olsen wrote: On Apr 15, 12:56 pm, Nigel Rantor wrote: Adam Olsen wrote: The chance of *accidentally* producing a collision, although technically possible, is so extraordinarily rare that it's completely overshadowed by the risk of a hardware or software failure producing an inco

Re: binary file compare...

2009-04-15 Thread Nigel Rantor
Adam Olsen wrote: The chance of *accidentally* producing a collision, although technically possible, is so extraordinarily rare that it's completely overshadowed by the risk of a hardware or software failure producing an incorrect result. Not when you're using them to compare lots of files. Tr

Re: binary file compare...

2009-04-15 Thread Nigel Rantor
Grant Edwards wrote: We all rail against premature optimization, but using a checksum instead of a direct comparison is premature unoptimization. ;) And more than that, will provide false positives for some inputs. So, basically it's a worse-than-useless approach for determining if two files

Re: binary file compare...

2009-04-15 Thread Nigel Rantor
Martin wrote: On Wed, Apr 15, 2009 at 11:03 AM, Steven D'Aprano wrote: The checksum does look at every byte in each file. Checksumming isn't a way to avoid looking at each byte of the two files, it is a way of mapping all the bytes to a single number. My understanding of the original question

Re: Ordered Sets

2009-03-20 Thread Nigel Rantor
Aahz wrote: In article <9a5d59e1-2798-4864-a938-9b39792c5...@s9g2000prg.googlegroups.com>, Raymond Hettinger wrote: Here's a new, fun recipe for you guys: http://code.activestate.com/recipes/576694/ That is *sick* and perverted. I'm not sure why. Would it be less sick if it had been call

Re: file locking...

2009-03-01 Thread Nigel Rantor
zugnush wrote: You could do something like this so that every process will know if the file "belongs" to it without prior coordination, it means a lot of redundant hashing though. In [36]: import md5 In [37]: pool = 11 In [38]: process = 5 In [39]: [f for f in glob.glob('*') if int(md5.md5(

Re: file locking...

2009-03-01 Thread Nigel Rantor
Hi Bruce, Excuse me if I'm a little blunt below. I'm ill grumpy... bruce wrote: hi nigel... using any kind of file locking process requires that i essentially have a gatekeeper, allowing a single process to enter, access the files at a time... I don't beleive this is a nece

Re: file locking...

2009-03-01 Thread Nigel Rantor
koranthala wrote: On Mar 1, 2:28 pm, Nigel Rantor wrote: bruce wrote: Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is go

Re: file locking...

2009-03-01 Thread Nigel Rantor
bruce wrote: Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is going to access a number of files in a dir. Each process accesses a unique group o

Re: code challenge: generate minimal expressions using only digits 1,2,3

2009-02-20 Thread Nigel Rantor
Trip Technician wrote: yes n^n^n would be fine. agree it is connected to factorisation. building a tree of possible expressions is my next angle. I think building trees of the possible expressions as a couple of other people have suggested is simply a more structured way of doing what you're

Re: code challenge: generate minimal expressions using only digits 1,2,3

2009-02-20 Thread Nigel Rantor
interest, and particularly a recursive one. i find that the development of a piece of recursion usually comes as an 'aha', and since i hadn't had such a moment, i thought i'd turn the problem loose on the public. also i found no online reference to this problem

Re: code challenge: generate minimal expressions using only digits 1,2,3

2009-02-20 Thread Nigel Rantor
Trip Technician wrote: anyone interested in looking at the following problem. if you can give me a good reason why this is not homework I'd love to hear it...I just don't see how this is a real problem. we are trying to express numbers as minimal expressions using only the digits one two an

Re: To Troll or Not To Troll (aka: "as" keyword woes)

2008-12-10 Thread Nigel Rantor
James Stroud wrote: Andreas Waldenburger wrote: Is it me, or has c.l.p. developed a slightly harsher tone recently? (Haven't been following for a while.) Yep. I can only post here for about a week or two until someone blows a cylinder and gets ugly because they interpreted something I said as

Re: Exhaustive Unit Testing

2008-11-28 Thread Nigel Rantor
Roy Smith wrote: There's a well known theory in studies of the human brain which says people are capable of processing about 7 +/- 2 pieces of information at once. It's not about processing multiple taks, it's about the amount of things that can be held in working memory. n -- http://

Re: You advice please

2008-08-13 Thread Nigel Rantor
Calvin Spealman wrote: God forbid I try to make a joke. Ah, sorry, sense of humour failure for me today obviously. n -- http://mail.python.org/mailman/listinfo/python-list

Re: You advice please

2008-08-13 Thread Nigel Rantor
Fredrik Lundh wrote: Nigel Rantor wrote: Throwaway comments like yours that are pithy, emotional and devoid of any factual content are just the kind of thing that makes lists such as this less useful than they could be. Oh, please. It's a fact that Python advocacy is a lot more lo

Re: You advice please

2008-08-13 Thread Nigel Rantor
Calvin Spealman wrote: Ruby (on Rails) people love to talk about Ruby (on Rails). Python people are too busy getting things done to talk as loudly. Have you read this list? I would suggest your comment indicates not. Throwaway comments like yours that are pithy, emotional and devoid of any

Re: How to best explain a "subtle" difference between Python and Perl ?

2008-08-13 Thread Nigel Rantor
Jonathan Gardner wrote: [...eloquent and interesting discussion of variable system snipped...] > Is Python's variable system better than perl's? It depends on which way you prefer. As for me, being a long-time veteran of perl and Python, I don't think having a complicated variable system such as

Re: How to best explain a "subtle" difference between Python and Perl ?

2008-08-12 Thread Nigel Rantor
Palindrom wrote: ### Python ### liste = [1,2,3] def foo( my_list ): my_list = [] The above points the my_list reference at a different object. In this case a newly created list. It does not modify the liste object, it points my_list to a completely different object. ### Perl ### @ls

Re: Terminate a python script from linux shell / bash script

2008-07-31 Thread Nigel Rantor
Gros Bedo wrote: Thank you guys for your help. My problem is that I project to use this command to terminate a script when uninstalling the software, so I can't store the PID. This command will be integrated in the spec file of the RPM package. Here's the script I'll use, it may help someone e

Re: new style class

2007-11-02 Thread Nigel Rantor
gert wrote: > Could not one of you just say "@staticmethod" for once damnit :) > why were you asking if you knew the answer? yeesh -- http://mail.python.org/mailman/listinfo/python-list

Re: new style class

2007-11-02 Thread Nigel Rantor
gert wrote: > On Nov 2, 12:27 pm, Boris Borcic <[EMAIL PROTECTED]> wrote: >> gert wrote: >>> class Test(object): >>> def execute(self,v): >>> return v >>> def escape(v): >>> return v >>> if __name__ == '__main__': >>> gert = Test() >>> print gert.m1('1') >>> pri

Re: hello! I am a spammer

2007-10-02 Thread Nigel Rowe
On Wed, 3 Oct 2007 11:17, panguohua wrote in comp.lang.python > more information for making money with your blog Wow! Truth in advertising! -- Nigel Rowe A pox upon the spammers that make me write my address like.. rho (snail) fisheggs (stop) name -- h

Re: Python "with"

2007-09-17 Thread Nigel Rowe
d latin speaking perl programmers use Lingua::Romana::Perligata <http://www.csse.monash.edu.au/~damian/papers/HTML/Perligata.html> Totaly insane. Oh, wait, they're perl programmers. -- Nigel Rowe A pox upon the spammers that make me write my address like.. rho (snail) fisheggs (stop) name -- http://mail.python.org/mailman/listinfo/python-list

Re: Do other Python GUI toolkits require this?

2007-04-19 Thread Nigel Rowe
fort" and (x-axis) "Knowledge" (or "skill" or ). Which means that something with a 'steep learning curve' requires a lot of effort to achieve a small amount of knowledge (or skill or ...). -- Nigel Rowe A pox upon the spammers that ma

Re: On Java's Interface (the meaning of interface in computer programing)

2007-03-22 Thread Nigel Wade
) the cross-posting c) the advocacy of the contents > > I have absolutely no reason to rate the OP as a troll or their post as trollish. > In time you will learn... It wasn't even a good troll. To be a good troll the message actually needs to be interesting enough to get peop

Re: modules and generated code

2006-11-15 Thread Nigel Rantor
J. Clifford Dyer wrote: > > Maybe I'm missing something obvious, but it sounds like you are > over-complicating the idea of inheritance. Do you just want to create a > subclass of the other class? Nope, that isn't my problem. I have an IDL file that is used to generate a set of stub and skele

Re: modules and generated code

2006-11-14 Thread Nigel Rantor
Peter Otten wrote: > Nigel Rantor wrote: > >> Peter Otten wrote: >>> Nigel Rantor wrote: > >>>> So, if I have a tool that generates python code for me (in my case, >>>> CORBA stubs/skels) in a particular package is there a way of placing my >&g

modules and generated code

2006-11-14 Thread Nigel Rantor
Hi all, Python newbie here with what I hope is a blindingly obvious question that I simply can't find the answer for in the documentation. So, if I have a tool that generates python code for me (in my case, CORBA stubs/skels) in a particular package is there a way of placing my own code under

Re: modules and generated code

2006-11-14 Thread Nigel Rantor
Peter Otten wrote: > Nigel Rantor wrote: > >> So, if I have a tool that generates python code for me (in my case, >> CORBA stubs/skels) in a particular package is there a way of placing my >> own code under the same package hierarchy without all the code living in >>

python-list@python.org

2006-09-24 Thread Nigel
from Tkinter import * import pyTTS Hi i am trying to get a button so that when i click on it i hear a voice say "Hi Molly" this is my code so far.Can any one shed any light on this for please. Thanks Nige. class MyApp: def __init__(self, parent): self.myContainer1 = Frame(p

Re: wx Browser-objekt for python on Linux

2006-07-08 Thread Nigel Rowe
me?? > > Bye, > > Spooky http://wxmozilla.sourceforge.net/ exists to embed mozilla in wxwindows, but I have no idea how well it does it, nor its current status. -- Nigel Rowe A pox upon the spammers that make me write my address like.. rho (snail) swiftdsl (stop) com

interactive programme (voice)

2006-05-30 Thread nigel
hi i have wrote an interactive programme,this is a small section of it. #This is my first programme writing in python s = raw_input ("hello what's your name? ") if s=='carmel': print "Ahh the boss's wife" if s=='melvyn': print "your the boss's dad" if s=='rebecca': print "you must be the

Re: Calling python functions from C

2006-05-12 Thread Nigel Rowe
e and custom, to pass transparently between the two languages. -- Nigel Rowe A pox upon the spammers that make me write my address like.. rho (snail) swiftdsl (stop) com (stop) au -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: Criticism vs Constructive Criticism

2006-04-26 Thread Nigel Rowe
Ari Johnson wrote: > "Xah Lee" <[EMAIL PROTECTED]> writes: >> >>Xah >>[EMAIL PROTECTED] >> ? http://xahlee.org/ > > (This isn't constructive criticism, but just a question:) Are you the > sum of your web page? Yes he is, the t

interactive programme (add a new line in Tk)

2006-03-26 Thread nigel
somebody recently showed me how to create a new line using \n which was great.The thing is when i am creating the programme the text i wish to add is quite long.and it ends up stretching the width of several pages,which i think looks quite messy.Would it be possible for some one to show me how

Re:using "else: interactive programme

2006-03-26 Thread nigel
Hello i will show you a short example of my programme. s = raw_input ("ok lets see about doing some mathematics would you like to try some?") if s=='no': print "Well you aint no fun sling your hook" print "END OF PROGRAMME" print "Go on sling your hook" print "Now let some one els

adding a new line of text in Tk

2006-03-25 Thread nigel
Hello i have been working on an interactive programme,i wish to use a small amount of Tk.Which i have taken from a tutorial. from Tkinter import * root = Tk() w =Label(root, text="Congratulations you have made it this far,just a few more questions then i will be asking you some") w.pack() root.ma

Re: define loop statement?

2006-02-18 Thread Nigel Rowe
print "OK" > > Looks rather ugly but requires one less line ;-). > Doesn't work. You get a NEW Loop(10) instance on each pass through the 'while'. This is just an expensive way to make an endless loop. -- Nigel Rowe A pox upon the spammers that ma

Re: Straight line detection

2005-10-14 Thread Nigel Rowe
's > pretty easy to do that just be checking all of the possibilities. > > But what if your array is: > > [[1,1,1,1,1], > [1,1,1,1,1], > [1,1,1,1,1], > [1,1,1,1,1], > [1,1,1,1,1]] > > Would you say there were 12 lines there? Actually I'd say 24. 5 verti

Re: Python based unacceptable language filter

2005-10-02 Thread Nigel Rowe
(not to mention those for whom english is a second language) relying on automated filters to enforce 'good' language seems a trifle extreme. This post for example would probably not pass. Cheers, Nigel PS. For the humour impaired, this g*d d*mm post was a f*cking joke, OK! :-)

Re: Database of non standard library modules...

2005-08-19 Thread Nigel Rowe
hon Package Index", it just happens to be stored on a machine called cheeseshop. -- Nigel Rowe A pox upon the spammers that make me write my address like.. rho (snail) swiftdsl (stop) com (stop) au -- http://mail.python.org/mailman/listinfo/python-list

Re: Thaughts from an (almost) Lurker.

2005-07-31 Thread Nigel Rowe
bait etc - not for the usual reasons, but to track the dynamics >> af the replies. > > "Never attribute to malice that which can be adequately explained by > stupidity." > -- > Benji York And its corollary, "sufficiently advanced cluelessness is indistinguisha

New tapos test area for wxWindows 2.6.1

2005-07-01 Thread Nigel Rowberry
There is a new winbin for testing upgraded tapos - and it does need testing \\Blackbox\public\tapos\newwinbin-wx2.6.1 -- http://mail.python.org/mailman/listinfo/python-list

Re: sudoku dictionary attack

2005-06-22 Thread Nigel Greenwood
Nick Atty wrote: > On-line canal route planner: http://www.canalplan.org.uk So the Travelling Salesman goes by narrow boat these days, does he? Nigel -- ScriptMaster language resources (Chinese/Modern & Classical Greek/IPA/Persian/Russian/Turkish): http://www.elgin.free-onlin

Re: unittest vs py.test?

2005-03-31 Thread Nigel Rowe
esting.blogspot.com/2005/01/python-unit-testing-part-1-unittest.html http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-2-doctest.html http://agiletesting.blogspot.com/2005/01/python-unit-testing-part-3-pytest-tool.html -- Nigel Rowe A pox upon the spammers that make

Re: Persistent objects

2004-12-12 Thread Nigel Rowe
red memory. Objects in shared memory can be accessed transparently, and most types of objects, including instances of user-defined classes, can be shared. POSH allows concurrent processes to communicate simply by assigning objects to shared container objects. -- Nigel Rowe A pox

Re: from vb6 to Python

2004-12-12 Thread Nigel Rowe
MarcoL wrote: > MarcoL wrote: <> > Can anybody tell me anything about the IDE Spe? > > Thanks > > Marco http://projects.blender.org/projects/spe/ and http://projects.blender.org/mailman/listinfo/spe-user should cover most questions -- Nigel Rowe