Re: Is crawling the stack "bad"? Why?

2008-02-28 Thread Russell Warren
> OK, if you crawl the stack I will seek you out and hit you with a big > stick. Does that affect your decision-making? How big a stick? :) > Seriously, crawling the stack introduces the potential for disaster in > your program, since there is no guarantee that the calling code will > provide the

2 very interesting python projects - Financial industry

2009-02-18 Thread David Russell
Rate - Negotiable This is an urgent requirement please contact me or send me your cv as soon as possible. Contact: David Russell - Account manager email: david.russ...@fdmgroup.com Tel: +49 (0) 69 756 0050 Web: www.fdmgroup

Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-16 Thread Russell Owen
ve been wanting some of the bug fixes in 8.5 anyway. -- Russell On Apr 16, 2009, at 5:35 AM, Ronald Oussoren wrote: On 15 Apr, 2009, at 22:47, Russell E. Owen wrote: Thank you for 2.6.2. I see the Mac binary installer isn't out yet (at least it is not listed on the downloads page)

Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-17 Thread Russell Owen
On Apr 16, 2009, at 11:17 PM, Ronald Oussoren wrote: On 16 Apr, 2009, at 20:58, Russell Owen wrote: I installed the Mac binary on my Intel 10.5.6 system and it works, except it still uses Apple's system Tcl/Tk 8.4.7 instead of my ActiveState 8.4.19 (which is in /Library/Frameworks

Re: How do I make a copy of my class object?

2008-05-22 Thread Russell Blau
"Marlin Rowley" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a class object which has the usual data members and functions. > I'm trying to make a copy of this class (which includes wx.Bitmap objects) > but deepcopy() doesn't seem to work. How would I do this? Are you try

Re: re

2008-06-04 Thread Russell Blau
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > David C. Ullrich schrieb: >> Say I want to replace 'disc' with 'disk', but only >> when 'disc' is a complete word (don't want to change >> 'discuss' to 'diskuss'.) The following seems almost >> right: >> >> [^a-zA-Z

Re: How to find the first space?

2008-06-09 Thread Russell Blau
"Johny" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How can I find the first space using regex? > > For example I have text > Text=' This is a sample ' Why do you need to use a regex? text = text.replace(" ", "") Russ -- http://mail.python.org/mailman/listinfo/python-list

Re: variable question

2008-07-09 Thread Russell Blau
"Support Desk" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to assign a variable using an if / else statement like so: > If condition1: > Variable = something > If condition2: > Variable = something else > Do stuff with variable. > > But the v

Re: 'if name is not None:' v. 'if name:'

2008-07-15 Thread Russell Blau
"Victor Noagbodji" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Well that's exactly why I'm asking. Since None returns False in if > statements. Why do people use if name is not None: instead of simply > writing if not name? > Because '' is a string value that is treated as fal

Re: Regular expression help

2008-07-18 Thread Russell Blau
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am new to Python, with a background in scientific computing. I'm > trying to write a script that will take a file with lines like > > c afrac=.7 mmom=0 sev=-9.56646 erep=0 etot=-11.020107 emad=-3.597647 > 3pv=0 > > extract the values

"proper"/best way to hack SimpleXmlRpcServer to support datetime?

2008-07-18 Thread Russell Warren
I'm running python 2.5.1 and it seems that SimpleXmlRpcServer is not setup to support the base datetime module in the same way xmlrpclib has been with "use_datetime". I see that someone (Virgil Dupras) has recently submitted a fix to address this, but I don't want to patch my python distro. I wan

Re: Tkinter- Possibly a basic question

2008-07-30 Thread Russell Blau
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I hate to do this, but I've thoroughly exhausted google search. Yes, > it's that pesky root window and I have tried withdraw to no avail. I'm > assuming this is because of the methods I'm using. I guess my question > is two-fold. > 1) Ho

Reusing IDLE file editor

2008-05-09 Thread Russell Blau
I have a need for some simple text-editing capabilities in a Tkinter program, and it occurred to me that IDLE is a Tkinter app that already has what I need in its file editor windows. I thought it would be nice if I could just use one of those windows as a widget in my application, in place of

Re: simple question about Python list

2008-05-09 Thread Russell Blau
On May 9, 6:25 am, dmitrey <[EMAIL PROTECTED]> wrote: > Ok, I use Python 2.5 but I try my code to remain Python 2.4 and > (preferable) 2.3 compatible. > Are there other solutions? > D. > > On 9 ôÒÁ, 13:17, Paul Hankin <[EMAIL PROTECTED]> wrote: > > > On May 9, 11:04šam, dmitrey <[EMAIL PROTECTED]>

Seems like I want a pre-processor, but...

2006-03-28 Thread Russell Warren
After some digging it seems that python does not have any equivalent to C's #if directives, and I don't get it... For example, I've got a bit of python 2.3 code that uses collections.deque.pop(0) in order to pop the leftmost item. In python 2.4 this is no longer valid - there is no argument on po

Re: Seems like I want a pre-processor, but...

2006-03-28 Thread Russell Warren
> the collections module was added in 2.4 Ah... sorry about that. I should have checked my example more closely. What I'm actually doing is rebinding some Queue.Queue behaviour in a "safe" location like this: def _get(self): ret = self.queue.popleft() DoSomethingSimple() return ret And se

Re: Seems like I want a pre-processor, but...

2006-03-28 Thread Russell Warren
Thanks guys - all great responses that answered my question in a few different ways with the addition of some other useful tidbits! This is a nice summary: > In general the idea is to move the test from 'every time I need to do > something' to 'once when some name is defined'. Gotta love the resp

Re: Seems like I want a pre-processor, but...

2006-03-29 Thread Russell Warren
Yes, I definitely should have done that for that case. I'm not entirely sure why I didn't. If I had, though, I may not have been prompted to ask the question and get all the other great little tidbits! -- http://mail.python.org/mailman/listinfo/python-list

* for generic unpacking and not just for arguments?

2009-11-29 Thread Russell Warren
Is there a reason that this is fine: >>> def f(a,b,c): ... return a+b+c ... >>> f(1, *(2,3)) 6 but the code below is not? >>> x = (3, 4) >>> (1, 2, *x) == (1, 2, 3, 4) Traceback (most recent call last): File "", line 1, in invalid syntax: , line 1, pos 8 Why does it only work when unpackin

Re: * for generic unpacking and not just for arguments?

2009-11-29 Thread Russell Warren
On Nov 29, 11:09 am, Christian Heimes wrote: > The feature is available in Python 3.x: > > >>> a, b, *c = 1, 2, 3, 4, 5 > >>> a, b, c > (1, 2, [3, 4, 5]) > >>> a, *b, c = 1, 2, 3, 4, 5 > >>> a, b, c > > (1, [2, 3, 4], 5) Interesting... especially the recognition of how both ends work with the "a,

Fwd: Converting a script to Python 3 - having trouble.

2009-09-15 Thread Russell Jackson
Hi, I have the following code that works fine in Python 2.x, but I can't seem to get it to work in Python 3 with Popen. Can you please tell me how to get the same functionality out of Python 3? The gist of what I doing is in the setpassword function. I have tried numerous ways to get this to work,

Re: Fwd: Converting a script to Python 3 - having trouble.

2009-09-15 Thread Russell Jackson
saw in the docs, and the fact that it didn't complain about that part, but I'll try the close(): Thanks, Rusty On Tue, Sep 15, 2009 at 4:24 PM, Rhodri James wrote: > On Wed, 16 Sep 2009 00:01:17 +0100, Russell Jackson < > ru...@rcjacksonconsulting.com> wrote: > > H

Re: Converting a script to Python 3 - having trouble.

2009-09-15 Thread Russell Jackson
hris Rebert wrote: > On Tue, Sep 15, 2009 at 5:07 PM, Chris Rebert wrote: > > On Tue, Sep 15, 2009 at 4:01 PM, Russell Jackson > > wrote: > > > >> Attempted code in Python 3: (Doesn't work either) > > > >> cmd = ' passwd {0}'

Re: Fwd: Converting a script to Python 3 - having trouble.

2009-09-15 Thread Russell Jackson
log("ERROR", "Password reset failed.\n{0}{1} generated the following error: {2}".format(p4, cmd, stderr)) except OSError as err: log("ERROR", "Execution failed: {0}".format(err)) Thanks, Rusty On Tue, Sep 15, 2009 at 6:37 PM, Chris Rebert

Confused about nested scopes and when names get added to namespaces

2010-09-08 Thread Russell Warren
I'm having trouble understanding when variables are added to namespaces. I thought I understood it, but my nested function examples below have me very confused. In each test function below I have an x variable (so "x" is in the namespace of each test function). I also have a nested function in e

Re: Confused about nested scopes and when names get added to namespaces

2010-09-08 Thread Russell Warren
My tests were run in python 2.6.5. -- http://mail.python.org/mailman/listinfo/python-list

Re: What's wrong with this code?

2012-07-23 Thread Russell E. Owen
pass around references to the container and read or modify the value(s) stored in it when you need them. Here is a simple example: class Container(object): def __init__(self, value): self.value = value c = Container(5) d = Container(6) x = [c, d] e, f = x c.value = None d.value = "hello" print e.value, f.value None "hello" -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter bug in Entry widgets on OS X

2012-09-13 Thread Russell E. Owen
eys are pressed. The default behavior of the Entry widget is unfortunate. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Keeping a Tkinter GUI alive during a long running process

2012-12-26 Thread Russell E. Owen
t in lieu of a way to asynchronously read the stdout pipe, I don't know what else to do that's safe. Another option to consider is to use Twisted framework, which has its own support for running tasks. However, if you are not using Twisted already, it's a big addition. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Generator problem: parent class not seen

2012-02-01 Thread Russell E. Owen
t of inspect.getclasstree. Any ideas on what might be wrong and how to track it down (and why it would be so intermittent)? -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-05 Thread Russell E. Owen
instead? So remove the > self.pack line and add a line to the bottom: > > > root = tk.Tk() > > app = Application(master=root) > > app.pack() # <-- added this line > > app.mainloop() I agree. Application is simply another widget, like Entry or Canvas. its contents sh

pickle question: sequencing of operations

2012-05-04 Thread Russell E. Owen
objects. What I'd like to do is basically just pickle the constructor parameters and then use those to reconstruct the object on unpickle, but I'm not sure how to go about this. Or an example if anyone has one. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: pickle question: sequencing of operations

2012-05-08 Thread Russell E. Owen
In article , "Russell E. Owen" wrote: > What is the sequence of calls when unpickling a class with __setstate__? > > >From experimentation I see that __setstate__ is called and __init__ is > not, but I think I need more info. > > I'm trying to pickle an in

Re: pickle question: sequencing of operations

2012-05-09 Thread Russell E. Owen
In article , Ian Kelly wrote: > On Tue, May 8, 2012 at 1:19 PM, Russell E. Owen wrote: > > In article , > >  "Russell E. Owen" wrote: > > > >> What is the sequence of calls when unpickling a class with __setstate__? > > I believe it jus

Re: Tkinter or Python issue?

2005-10-19 Thread Russell E. Owen
even if other tkFont instances exist that map the same named font. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

[Ann] RO package 2005-10-31

2005-10-31 Thread Russell E. Owen
ry see: <http://www.astro.washington.edu/rowen/ROVersionHistory.html> -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-08 Thread Russell E. Owen
e, you'll have to learn to do without (as you would when switching to almost any other language). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

directory bug on linux; workaround?

2005-01-13 Thread Russell E. Owen
ercase. The directory was created, but using lowercase. I'm not yet sure the version of python. The workaround for now is to not use fat file partitions. But I was wondering if anyone had a better option? -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Configuring Python for Tk on Mac

2005-01-24 Thread Russell E. Owen
;s fink python, install the version that includes Tkinter support, but this runs on X11 instead of Aqua). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter socket client ?

2005-01-24 Thread Russell E. Owen
of info on the first two options (including a link to the RO package that includes a python interface to tcl sockets) here: <http://www.astro.washington.edu/rowen/TkinterSummary.html#FileHandlers> -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter socket client ?

2005-01-25 Thread Russell E. Owen
elf.text.insert("end", astr, (category,)) else: self.text.insert("end", astr) extraLines = int(float(self.text.index("end")) - self.maxLineIndex) if extraLines > 0: self.text.delete("1.0", str(extraLines) + ".0") if doAutoScroll: self.text.see("end") -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: continuous plotting with Tkinter

2005-02-03 Thread Russell E. Owen
ch you poll for new values. Another option is to use a Tk-compatible file or socket of some kind which triggers a callback when data comes in. See <http://www.astro.washington.edu/rowen/TkinterSummary.html#FileHandlers> some ideas on this. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Reinstall python 2.3 on OSX 10.3.5?

2005-02-03 Thread Russell E. Owen
usr/bin/pythonw point somewhere useful. But...archive and install is really the safest and it's a chance to clean up a bit of cruft. (But it messes with /usr/local and your web site, so back all that up first). -- Russell P.S. I installed a separate unix/x11 Python 2.4 in /usr/local with n

How to get a unique id for bound methods?

2005-08-19 Thread Russell E. Owen
id" in the code above. Is it stable and unique? The documentation talks about "objects" again, which given the behavior of id makes me pretty nervous. Any advice would be much appreciated. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get a unique id for bound methods?

2005-08-19 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Benji York <[EMAIL PROTECTED]> wrote: >Russell E. Owen wrote: >> The id of two different methods of the same object seems to be the >> same, and it may not be stable either. > >Two facts you're (apparently) unaware of are con

Re: How to get a unique id for bound methods?

2005-08-22 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Bengt Richter) wrote: >On Fri, 19 Aug 2005 16:33:22 -0700, "Russell E. Owen" <[EMAIL PROTECTED]> >wrote: >[...] >> >>The current issue is associated with Tkinter. I'm trying to create a tk &

Re: High Level FTP library

2005-08-23 Thread Russell E. Owen
well regarded. If you plan to do a lot with networking you should definitely check it out. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get a unique id for bound methods?

2005-08-23 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Russell E. Owen wrote: > >>>>The current issue is associated with Tkinter. I'm trying to create a tk >>>>callback function that calls a python "function&quo

Re: How to get a unique id for bound methods?

2005-08-23 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Russell E. Owen wrote: > >>>>The current issue is associated with Tkinter. I'm trying to create a tk >>>>callback function that calls a python "function&quo

Re: Sorta noob question - file vs. open?

2005-08-23 Thread Russell E. Owen
File.txt", "w") >MyFile.write("This is a test.") >MyFile.close() This should work in a sufficiently recent version of python (I'm hedging because I don't recall when file was introduced -- python 2.2? 2.3?). What version are you using? What error do you see? -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get a unique id for bound methods?

2005-08-24 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Russell E. Owen wrote: > >> Having looked at it again, it is familiar. I copied it when I wrote my >> own code. I avoided using at the time both because the initial >> un

Re: How to define a window's position (Tkinter)

2005-02-28 Thread Russell E. Owen
he position >of the window without actually setting the size? You were almost there, but you need an initial "+": root.geometry("+200+200"). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter shell problem

2004-11-29 Thread Russell E. Owen
er) raise exceptions that inherit from Exception, not StandardError. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: PHP vs. Python

2004-12-22 Thread Russell E. Owen
t language than PHP. (Unfortunately, that initial hurdle can be a big one; I am still using PHP on my server because I never cleared it.) -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Russell E. Owen
then go to Nutshell if I'm still lost or if I remember it has a good section on the topic of interest. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Alex Martelli) wrote: >Russell E. Owen <[EMAIL PROTECTED]> wrote: > >> In article <[EMAIL PROTECTED]>, >> [EMAIL PROTECTED] (Alex Martelli) wrote: >> >> >I'm considering proposing to O&

Fast plotting?

2005-04-26 Thread Russell E. Owen
it is just too slow -- at least when driving plots integrated with the Tkinter app. (It is getting faster and so are computers, so at some point this will be a great way to go. But for now...) Any suggestions? -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Running python's own unit tests?

2013-11-14 Thread Russell E. Owen
ng a python distribution). Any hints? -- Russell -- https://mail.python.org/mailman/listinfo/python-list

Re: Running python's own unit tests?

2013-11-15 Thread Russell E. Owen
e is a nice resource. -- Russell -- https://mail.python.org/mailman/listinfo/python-list

Suggested GUI framework for Mac and unix?

2014-01-06 Thread Russell E. Owen
Tkinter's Canvas widget for this. - Compatible with a sound library for playing sound cues. I presently use pygame for this and have been considering switching to PySDL. - Compatible with Twisted Framework. - Prediction is hard, but indications of a long-term future would be a definite bonus.

Re: Mac python py2app problem

2014-07-17 Thread Russell E. Owen
Disk Image from Folder. Or...open Disk Utility and drop the app onto its dock icon. -- Russell -- https://mail.python.org/mailman/listinfo/python-list

redirect stderr to syslog?

2014-08-15 Thread Russell E. Owen
We are using the syslog module for logging, and would like to redirect stderr to our log. Is there a practical way to do it? I realize the logging module supports this and has a syslog writer, so that's a fallback. But we were hoping to use the syslog module for performance. -- Ru

Decorator question: prefer class, but only function works

2011-11-10 Thread Russell E. Owen
is a member? I was very disappointed it was not available when timeMethod was called/instantiated. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorator question: prefer class, but only function works

2011-11-14 Thread Russell E. Owen
In article , Ian Kelly wrote: > On Thu, Nov 10, 2011 at 2:52 PM, Russell E. Owen wrote: > > I am trying to write a decorator that times an instance method and > > writes the results to a class member variable. For example: > > > > def timeMethod(func): >

Re: Why is Ruby on Rails more popular than Django?

2013-03-07 Thread Russell E. Owen
uted. Years ago when I had some simple web programming to do I looked at the choices, gave up and used PHP (which I hated, but got the job done). If RoR had been available I would have been much happier using that. In my opinion the plethora of Python web frameworks is a serious detriment to t

Re: Which Python web framework is most like Ruby on Rails?

2005-12-19 Thread Russell E. Owen
ragments the community. Anyway, thanks for holding this discussion. Django and TurboGears were both new to me. I hope something finally gets popular enough to be worth betting on. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Which Python web framework is most like Ruby on Rails?

2005-12-19 Thread Russell E. Owen
d really help (more folks using it, more folks who can help folks learning it, better documentation, more focused development). Something better might come along, and then it'd be easier to evaluate and more appreciated. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Which Python web framework is most like Ruby on Rails?

2005-12-20 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Benji York <[EMAIL PROTECTED]> wrote: >Russell E. Owen wrote: >> I disagree. Once you've picked a database (not trivial in itself, of >> course), you typically only have a few options for talking to in in >> Python. > >

Re: Any wing2.0 users here?

2006-01-03 Thread Russell E. Owen
e (especially if your work is buying it for you). I qualified for a free license, but would certainly have had my job pay for it otherwise. I was tempted to buy it anyway, but felt it would be unethical to my employer. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I test if an argument is a sequence or a scalar?

2006-01-11 Thread Russell E. Owen
lse returns [item]. """ if isSequence(item): return item else: return [item] I then use asSequence on each argument that can either be one item or a sequence of items (so I can always work on a sequence). -- Russell P.S. this code is from RO.SeqUtil <http://www.astro.washington.edu/rowen/ROPython.html> -- http://mail.python.org/mailman/listinfo/python-list

Re: Python/Tkinter crash.

2006-10-04 Thread Russell E. Owen
r posting. Do you have multiple threads talking to Tkinter? If so, try recoding to avoid this (e.g. by having the background threads communicate with the main thread via Queues). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: setting up wxPython on a Mac

2006-11-03 Thread Russell E. Owen
or python itself, I recommend using the Mac installer available from the standard python web site (rather than the package available from <http://pythonmac.org/packages/>). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Database access through python using GUI(Tkinter)

2006-06-29 Thread Russell E. Owen
kind of file? If you mean a command-line executable, see the subprocess module (new in python 2.4 but backwards compatible with 2.3 and worth using). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

py2app question: Resources/Python -> Resources/lib/python2.4

2006-09-08 Thread Russell E. Owen
case I can modify my resource copying code)? If it's the new way to do things, is there a recommended way to find this directory automatically (or copy directory trees of files into it automatically without knowing its name) -- to insulate myself against future such changes? -- R

Re: tkinter puzzler

2005-05-12 Thread Russell E. Owen
etch it across the bottom row of the gui: > >stopgo.grid(sticky=E+W) This looks OK to me so I'm not sure what's wrong; I think I'd have to see your actual code. I suggest examining the size of the stopgo frame by setting its background color. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter puzzler

2005-05-16 Thread Russell E. Owen
nately it is somewhat incomplete). For more serious work you'll also want Welch's "Practical Programming in Tcl and Tk" (lots of good details about Tk). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Which are your favorite UML tools?

2007-04-27 Thread Russell E. Owen
t uses CVS to keep track of revisions, but not in a concurrent way; checking out a package locks out everybody else). I tried using a competing product but the interporability was terrible. Which brings up another point: it is likely the original poster would need to do a lot of work for each CASE tool supported. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Re-running script from Tk shell

2007-04-30 Thread Russell E. Owen
always use the latest foo. Warning: this will not work if you use from foo import... -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Tcl-tk 8.5?

2007-05-02 Thread Russell E. Owen
ill in alpha (and has been for years). I have heard rumors that it works pretty well, but it is explicitly not feature stable. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and GUI

2007-05-24 Thread Russell E. Owen
irly pythonic (an issue with some competing toolkits) and does not require any fancy installation. If you want a very professional and "native" look then you have to work harder. Options include Tkinter with tile, wxPython, PyQt and several others. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter pack difficulty

2007-09-12 Thread Russell E. Owen
row_configure to set the weight of the middle frame to 1. You may also have to set sticky to "news" when you grid all the frames. In general I suggest you use grid unless it's something simple like a row of buttons. But never try to both grid and pack anything into the in the same parent widget. You'll get a crash or an infinite loop. (You can grid frames that have widgets packed inside them, but you can't grid grid some items into a frame and then pack some more into the same frame) -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: An ordered dictionary for the Python library?

2007-09-12 Thread Russell E. Owen
e order of insertion. This is useful when you want to retain the order of insertion yet you also want fast lookup of individual items. Unlike a sorted dict, there is no trivial alternative (though you can argue about "trivial") and I really wish there was. There are several free versions available. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting a c array to python list

2007-03-02 Thread Russell E. Owen
et the data out as a list if you really need that (but are you sure you need that? You may be able to just use the numpy array directly). It might help to have a clearer idea of why you want to do this. -- Russell P.S. numarray or Numeric would also do the job. They are older, deprecated nu

Re: Project organization and import

2007-03-06 Thread Russell E. Owen
e. Smalltalk solved this problem long ago in a way that makes for very dynamic development and debugging. Unfortunately few languages have followed suit. The Smalltalk development environment is the one feature I really miss in all other languages I've used (I certainly don't miss its quirky syntax for control flow :)). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Project organization and import

2007-03-06 Thread Russell E. Owen
ou want to separately version components of it, you do run into problems. The solution we are adopting is to write a custom import hook, but a simpler solution is to make sure each separately versioned component is a top-level package (in which case you can manipulate PYTHONPATH to temporarily "install" a test version). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Toplevel geometry

2007-03-26 Thread Russell E. Owen
evel I ended up binding to the Configure event, but it's rather messy for such a simple-seeming thing. (The really aggravating part is that perl can do this directly because it uses C instead of tcl to talk to tk, and tk's C interface is more flexible about setting toplevel geometry!). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Welch essential for learning Tkinter well?

2007-04-06 Thread Russell E. Owen
reference in any case). Grayson's book is another reasonable alternative (and includes enough reference material to keep you from having to refer to the tcl/tk documentation very often). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Build Python 2.5 against Tk 8.5

2007-10-16 Thread Russell E. Owen
ve to specify the right options to get a framework build (these are documented in the build instructions). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python as primary language

2007-11-13 Thread Russell E. Owen
d) - Lack of a good built-in GUI toolkit (but there are several good alternatives including Qt) > * Charting (Histograms, Line charts, bar charts, pie charts, ...) > I am currently looking into PyQwt, which looks promising. HippoDraw is very good. I am not familiar with PyQwt so I can

Re: PEP 3102 for review and comment

2006-05-22 Thread Russell E. Owen
at least find a clearer notation. For example: def compare(a, b | key=None): but personally I'd rather skip it. Now if somebody could figure out a natural notation for boolean flags, *that'd* be useful (where the presence, absence or explicit negation of a keyword is all that is required to enable or disable a feature). -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Russell E. Owen
+1 It does seem like a natural unificiation of the language -- one less exception to learn. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: When is min(a, b) != min(b, a)?

2008-01-23 Thread Russell E. Owen
f * 0. > > 1E5000 creates a nan because it is *much* bigger than DBL_MAX (around > 1E+308). In fact it is even larger than LDBL_MAX (around 1E+4932). Isn't it safer to use float("inf"), float("-inf") and float("nan") to create the necessary items? -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with Tkinter scrollbar callback

2008-01-24 Thread Russell E. Owen
> > On Windows, it produces the correct output > > scrollbar: scroll > scrollbar: 1 > scrollbar: units > > but on linux, it produces > > scrollbar: 1 I see the same bad thing on our RedHat Enteprise unix system which has the default tcl/tk 8.4.6. However

Re: Problem with Tkinter scrollbar callback

2008-01-25 Thread Russell E. Owen
lls in a table row (effectively), and > it shoots up from 5 to 26 columns almost instantly (that's the > internal max I set). Is the scroll bar's repeatinterval set to a reasonable value? -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter equiv for setPalette

2008-02-11 Thread Russell E. Owen
ue'); > > Is there an equivalent for Tkinter? How can I set default colors for > background and foreground for the whole application (root window and its > children) Tkinter widgets have a tk_setPalette method so you can do this: root = Tkinter.Tk() root.tk_setPalette(

Re: pyinstall and matplotlib

2008-02-13 Thread Russell E. Owen
g to use it for Windows as well. But after a lot of experimenting I was never able to get anything even close to functional. Maybe it's better now.) -- Russell from distutils.core import setup import os import sys import matplotlib import py2exe # The following code is necessary for py2exe

Re: Truncated postings

2008-02-13 Thread Russell E. Owen
I'm not seeing that. But: - I use gmane - Your posting has some weird characters in it (they show up on my screen as sort of box/arrow containing an x) so maybe something about your email format is making the list server upset. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: Missing the last piece of the puzzle

2008-02-27 Thread Russell E. Owen
event. Hmmm. Set an internal state variables "isChanged" based on the Text callback and only modify the menu if the variable is set. It's trickier to detect "significant" changes vs insigificant ones. Personally I would not bother to go that far. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: RELEASED Python 2.6.2

2009-04-15 Thread Russell E. Owen
on a machine that already has a 3rd party Tcl/Tk installed; the resulting binary is then compatible with both 3rd party versions of Tcl/Tk and also with Apple's ancient built in version. -- Russell -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.6.2

2009-04-17 Thread Russell E. Owen
In article , Ned Deily wrote: > In article , > Russell Owen wrote: > > I installed the Mac binary on my Intel 10.5.6 system and it works, > > except it still uses Apple's system Tcl/Tk 8.4.7 instead of my > > ActiveState 8.4.19 (which is in /Library/Frameworks

<    1   2   3   >