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
#
Thank you very much.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Thankyou everyone this gives me something to work with.
Hugh
--
http://mail.python.org/mailman/listinfo/python-list
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) %
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
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
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
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
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
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
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
allow me to do this...
Thanks for any advice!
--
Hugh Macdonald
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
I will take a look!
Thanks Skip
--
Hugh
--
http://mail.python.org/mailman/listinfo/python-list
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
http://horace-vitreouschina.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
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
or next? Anyone seen this before?
Hugh
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
35 matches
Mail list logo