Re: Pass data from Python to C++

2008-05-15 Thread Russell E. Owen
n I have no idea if it's even possible. (For plain C I would start with ctypes, but that doesn't cover this case. There are many other options including boost and Pyrex, but I've not used those.) -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: like py2exe, but on a mac

2008-07-29 Thread Russell E. Owen
stem python. So if your application needs any 3rd party packages then including python with the app will allow it work with more versions of MacOS X. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: like py2exe, but on a mac

2008-07-29 Thread Russell E. Owen
7;s an interesting application, but... I tried it to bundle a script that puts up a standard Tkinter file save dialog box and I found that the dialog box was not in front -- I had to switch applications to get to it. Still, it looks useful for fully faceless applications; unlike py2applet the text to stdout shows up in a log window. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Could someone please review patch 799428: fix Tkinter tk_focusNext?

2008-08-01 Thread Russell E. Owen
of getting an object back in less-than-ancient versions of tcl/tk. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Can't seem to build python against custom tcl/tk

2008-08-13 Thread Russell E. Owen
h path in the text I added to Setup.local) Is there some way to convince configure to use my tcl/tk (that would potentially be simpler than editing Modules/Setup.local). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveState Python v2.5 doesn't come with Tkinter or Tk installed.

2008-08-14 Thread Russell E. Owen
ctiveState puts out a very nice Tcl/Tk installer that includes many useful extra packages. But I've never seen the point to ActiveState's Python installer. When I last tried it, their Python was missing readline and did not add any useful packages to the standard python.org versi

Simple unicode-safe version of str(exception)?

2008-04-28 Thread Russell E. Owen
e(s) for s in f.args]) self.setState(self.Failed, errStr) Is there a simpler solution that works in Python 2.3-2.5? -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
self.Failed, errStr) (where e is an Exception of some kind) Notice that I'm iterating over the args. But again, this is far messier than: self.setState(self.Failed, str(e) So...to repeat the original question, is there any simpler unicode-safe replacement for str(exception)? -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
: > return str(a) > except: > return repr(a) Yes. That is a more flexible alternative to what I've adopted: def exStr(ex): return ",".join([unicode(s) for s in f.args]) the latter gives better output for the case I'm interest

Re: Simple unicode-safe version of str(exception)?

2008-04-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Hallöchen! > > Russell E. Owen writes: > > > [...] > > > > So...to repeat the original question, is there any simpler > > unicode-safe replacement for str(exception)? &

Re: Tkinter event loop question

2008-08-28 Thread Russell E. Owen
ent loop. Those two actions should be done once by the main script that launches your application. As to where to go from here...it would help to know more about what you are trying to do. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter event loop question

2008-08-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, gordon <[EMAIL PROTECTED]> wrote: > On Aug 29, 4:45 am, "Russell E. Owen" <[EMAIL PROTECTED]> wrote: > >your Controller object should not create root nor should > > it call mainloop to start the event loop. > >

Re: Problem w/Tkinter on 2.5 (Panther)

2006-03-29 Thread Russell E. Owen
ay still have to join the mailing list to post -- I'm not sure -- but if so, you can disable mail delivery). -- Russell In article <[EMAIL PROTECTED]>, "w chun" <[EMAIL PROTECTED]> wrote: > i've built a Python 2.5a0 interpreter on my iBook using gcc 3.3-1666 > us

Re: Tkinter problem on Mac OS X

2006-04-10 Thread Russell E. Owen
ous if there are multiple scripts each trying to run their own mainloop. But if only one runs at a time, and cleans up after itself, you're probably OK. If that's not the case, you may want to start a Tk main loop yourself and ask users to use that loop. Again, though--it'll take time, and it'll only help those users who use Tkinter in their scripts. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Scheme as a virtual machine?

2010-11-26 Thread Benjamin L. Russell
ment. However, the odds of this happening are less likely in a single thread. The odds of this happening are even less likely for three people in the thread. The odds of this happening are even less likely for three *new* people in the same thread at the same time.... -- Benjamin L. Russell --

Re: Scheme as a virtual machine?

2010-11-26 Thread Benjamin L. Russell
dekudekup...@yahoo.com (Benjamin L. Russell) writes: > When I was a student at my college, one of the students once told me a > secret about how a computer program ran by a professor for a course in > introduction to systems programming checked to ensure that the students > who wer

Re: Google AI challenge: planet war. Lisp won.

2010-12-04 Thread Benjamin L. Russell
t; games <- > pornography > adulteries > sex Yeah, riiight. So it's a crime to have any fun in life, right? Go get a life. -- Benjamin L. Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Ann: New Python curses book

2021-04-10 Thread Russell via Python-list
I believe this is it: https://www.amazon.com/dp/B091CL3DTK/ref=cm_sw_su_dp But for some reason the ASIN is different. William Ray Wing wrote: > I???ve ordered the book (physical volume). It will fulfill a need I???ve had > for some time. Unfortunately, it is only available in the UK store, so

Re: all versions of python fail to indent after conditional statement

2021-04-10 Thread Russell via Python-list
I would recommend reading a book that introduces and explains Python rather than just diving in. I'm been enjoying "Introducing Python: Modern Computing in Simple Packages" which can be found at https://amzn.com/1492051365. It started from the beginning and would answer the questions/difficulties y

Re: [ANN] Free Python tutorial with exercises, cscx.org

2021-04-13 Thread Russell via Python-list
Jach Feng wrote: > Is there any reason a student/beginner learn Python now start from Python2? > > --Jach Only if you want a job porting python2 to python3. Python 2.x is officially End Of Life. -- rust 0x68caecc97f6a90122e51c0692c88d9cb6b58a3dc -- https://mail.python.org/mailman/listinfo/p

Re: Start Python programming

2021-04-30 Thread Russell via Python-list
Gazoo wrote: > > > I'd like to start learning Python programming. What sites/tutorials > could you recommend for beginner, please. > I liked the book found at https://automatetheboringstuff.com/ You can read the whole book online. I think you used to be able to download a copy too. It has lot

Error

2016-02-03 Thread Russell McCune via Python-list
i installed it incorrectly or what. What am I doing wrong?? Thank you Russell McCune -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3