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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
t make tea.
Thanks,
Nigel
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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(
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
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
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
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
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
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
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
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://
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
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
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
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
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
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
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
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
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
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
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
) 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
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
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
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
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
>>
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
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
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
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
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
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
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
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
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
'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
(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! :-)
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
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
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
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
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
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
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
70 matches
Mail list logo