Python 2.2.1 DLL extension causes "abnormal program termination"

2005-09-01 Thread Hugh
Hello, Apologies if this has already been answered in here and I can't find it, but can anyone help with this problem? I hope the example code and comments state clearly enough what is happening, but if not, please ask me for further information. Thank in advance for any help. :-) Hugh #

Re: Python 2.2.1 DLL extension causes "abnormal program termination"

2005-09-01 Thread Hugh
Thank you very much. -- http://mail.python.org/mailman/listinfo/python-list

add without carry

2006-09-15 Thread Hugh
I would like to perform an addition without carrying of two integers... I've got no idea how to do this in python, although I've been using it for web/cgi/db work for a few years now. Any help would be great. Hugh -- http://mail.python.org/mailman/listinfo/python-list

Re: add without carry

2006-09-15 Thread Hugh
Sorry, here's an example... 5+7=12 added without carrying, 5+7=2 i.e the result is always less than 10 I've been thinking some more about this and my brain is starting to work something out... I just wondered if there was a function in python math to do this automatically... Hugh

Re: add without carry

2006-09-15 Thread Hugh
Thankyou everyone this gives me something to work with. Hugh -- http://mail.python.org/mailman/listinfo/python-list

Re: add without carry

2006-09-15 Thread Hugh
Peter, That was what I was thinking along the lines of, It's been two years since I finished my CS degree and working in mechanical engineering means I've nearly forgotten it all! :( Thanks, I'll write a function in my app to handle this... Hugh > >>> (5 + 7) %

PyGUI - Couple of questions - TextField callbacks and drop down list....

2008-10-20 Thread Hugh
is would be much appreciated! For the kind of thing that I'm doing, it's very appreciated that there's something that's very straightforward to install. Hugh Macdonald -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGUI - Couple of questions - TextField callbacks and drop down list....

2008-10-21 Thread Hugh
On Oct 21, 2:46 am, greg <[EMAIL PROTECTED]> wrote: > Hugh wrote: > > TextField callbacks... I want to be able to generate a callback when a > > textfield is modified. It doesn't appear to have an "action" member... > > I haven't got around to addi

asyncio, transports, protocols, etc.

2019-07-22 Thread Hugh Sasse
ake things more confusing for others, or even if it might have helped me. At the moment, I think it might be in the right direction, though. Thank you, Hugh -- -- Dr. Hugh Sasse, BSc(Hons), PhD Computer Systems Electronic Engineer School of Engineering and Sustainable Development DE MONTFORT UNIVERSITY -- https://mail.python.org/mailman/listinfo/python-list

asyncio, transports, protocols, etc.

2019-08-05 Thread Hugh Sasse
the echo server should really be closing the connection, given RFC 862 seems to suggest it should stay open. Original message below. Thank you, Hugh Hello, I'm trying to get my head around asyncio, and I think I'm mostly there now, (but expect to be proved wrong :-)!). It appe

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread Hugh Sasse
olsky. https://www.copilot.com/About If this is the wrong answer, it may at least help define the negative space around what you want. Hugh -- https://mail.python.org/mailman/listinfo/python-list

Re: Remote/Pair-Programming in-the-cloud

2019-08-06 Thread Hugh Sasse
On 05/08/2019 21:28, DL Neil wrote: On 6/08/19 1:43 AM, Hugh Sasse wrote: I might not have followed this thread closely enough.  I remembered there is a thing called Copilot. It connects two machines so that two people can work together. https://www.copilot.com/About If this is the wrong

Can't install Python

2020-09-27 Thread Hugh Pittman
is what I am now doing. I can't think of what else I could try. Any suggestions? Cheers, Hugh -- https://mail.python.org/mailman/listinfo/python-list

C API : Creating a Py_Method object from a C function.

2005-07-11 Thread Hugh Macdonald
allow me to do this... Thanks for any advice! -- Hugh Macdonald -- http://mail.python.org/mailman/listinfo/python-list

Re: C API : Creating a Py_Method object from a C function.

2005-07-12 Thread Hugh Macdonald
Thanks Martin - that worked wonderfully For the record (and for anyone searching for this in future), here's the code that worked (with names changed to protect my job...) myPython is the C++/Python interface class containing static methods which pass on calls to the underlying python modul

Reading in external file - error checking and line numbers...

2005-09-07 Thread Hugh Macdonald
to flag it accurately to the user Hope this made sense - let me know if I've confused you at all. -- Hugh Macdonald -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading in external file - error checking and line numbers...

2005-09-07 Thread Hugh Macdonald
dependency to non frame-based node' Unfortunately, I don't know how many 'ripple' stack items there will be... This is why I'd much rather, if I can, do this without exceptions and just be able to print out my own error message with the problem line number marked Or am I asking too much? ;) -- Hugh Macdonald -- http://mail.python.org/mailman/listinfo/python-list

Hacking the scope to pieces

2005-05-24 Thread Hugh Macdonald
os.getenv("MODULE_VERSION"), globals()) import moduleLoader moduleLoader.loadModule("myModule", os.getenv("MODULE_VERSION")) from moduleLoader import myModule What I'm after is a way of moduleLoader.loadModule working back up the scope and placing the imported module in the main global scope. Any idea how to do this? -- Hugh Macdonald -- http://mail.python.org/mailman/listinfo/python-list

Re: Hacking the scope to pieces

2005-05-24 Thread Hugh Macdonald
I will take a look! Thanks Skip -- Hugh -- http://mail.python.org/mailman/listinfo/python-list

Re: Hacking the scope to pieces

2005-05-24 Thread Hugh Macdonald
myModule", os.getenv("MODULE_VERSION")) I've also switched over to using 'inp' for this, rather than creating a compiler string - much nicer Anyway, thanks Skip -- Hugh -- http://mail.python.org/mailman/listinfo/python-list

Horace Lives!

2007-08-31 Thread Hugh Jampton
http://horace-vitreouschina.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: palindrome function

2008-07-11 Thread Hugh M
7;t this suffer the same problem- spam.reverse() would return None, so None==eggs test would return false? I think you meant to say: spam = ['a', 'n', 'n', 'a'] eggs = spam[:] spam.reverse() if spam == eggs: print "Palindrome" -Hugh > -- > Denis Kasak > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

Pythong CGI scrips on Windows Server 2003

2006-03-09 Thread Hugh Beyer
or next? Anyone seen this before? Hugh -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythong CGI scrips on Windows Server 2003

2006-03-17 Thread Hugh Beyer
Tim Roberts <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hugh Beyer <[EMAIL PROTECTED]> wrote: >> >>We are moving to a new server running Windows Server 2003 from existing >>servers runing Windows Server 2002 and IIS is giving us fits. > > D

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-20 Thread Hugh Aguilar
On Aug 18, 6:23 pm, Standish P wrote: > On Aug 17, 6:38 pm, John Passaniti wrote: > > > You asked if Forth "borrowed" lists from Lisp.  It did not.  In Lisp, > > lists are constructed with pair of pointers called a "cons cell". > > That is the most primitive component that makes up a list.  Forth

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-20 Thread Hugh Aguilar
On Aug 18, 6:13 pm, Standish P wrote: > > Mostly it had a "snowball's chance" because it was never picked up by > > the CS gurus who, AFAIK, never really took a serious look at it. > > Its quite possible that the criticism is unfair, but dont you think > that in part some responsibility must be bo

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-21 Thread Hugh Aguilar
n ungrammatical mish-mash --- and defends the overuse of the return stack for holding temporary data as being readable(?!): http://groups.google.com/group/comp.lang.forth/browse_thread/thread/4b9f67406c6852dd/0218831f02564410 On Jul 23, 4:43 pm, Alex McDonald wrote: > Whereas yours con

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-23 Thread Hugh Aguilar
On Aug 21, 12:32 pm, Alex McDonald wrote: > "Scintilla" gets about 2,080,000 results on google; "blather" gets > about 876,000 results. O Hugh, you pseudo-intellectual you! > > > with gutter language such as > > "turd" > > About 5,910,0

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-23 Thread Hugh Aguilar
On Aug 22, 3:40 pm, 1001nuits <1001nu...@gmail.com> wrote: > Another thing you learn in studying in University is the fact that you can   > be wrong, which is quite difficult to accept for self taught people. Yet another thing you learn in studying in University, is the art of apple polishing! LOL

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread Hugh Aguilar
On Aug 21, 12:18 pm, ehr...@dk3uz.ampr.org (Edmund H. Ramm) wrote: > In <2d59bfaa-2aa5-4396-bd03-22200df8c...@x21g2000yqa.googlegroups.com> Hugh > Aguilar writes: > > > [...] > > I really recommend that people spend a lot more time writing code, > > and a lot

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread Hugh Aguilar
On Aug 22, 11:12 am, John Bokma wrote: > And my > experience is that a formal study in CS can't compare to home study > unless you're really good and have the time and drive to read formal > books written on CS. And my experience is that most self-educaters don't > have that time. I've read a lo

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread Hugh Aguilar
On Aug 24, 9:24 am, David Kastrup wrote: > Anybody worth his salt in his profession has a trail of broken things in > his history. When I was employed as a Forth programmer, I worked for two brothers. The younger one told me a funny story about when he was 13 or 14 years old. He bought a radio at

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread Hugh Aguilar
On Aug 24, 4:17 pm, Richard Owlett wrote: > Hugh Aguilar wrote: > > [SNIP ;] > > > The real problem here is that C, Forth and C++ lack automatic garbage > > collection. If I have a program in which I have to worry about memory > > leaks (as described above), I w

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread Hugh Aguilar
On Aug 24, 5:16 pm, Paul Rubin wrote: > Anyway, as someone else once said, studying a subject like CS isn't done > by reading.  It's done by writing out answers to problem after problem. > Unless you've been doing that, you haven't been studying. What about using what I learned to write programs

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-24 Thread Hugh Aguilar
On Aug 21, 10:57 pm, Steven D'Aprano wrote: > Anyway, I'm looking forward to hear why overuse of the return stack is a > big reason why people use GCC rather than Forth. (Why GCC? What about > other C compilers?) Me, in my ignorance, I thought it was because C was > invented and popularised by the