Rss lib in python?

2005-05-31 Thread Owen
Hi all, i want to know some rss library in python.For example, some for rss readers, and some for generator. Thanks for any information. Owen. -- http://mail.python.org/mailman/listinfo/python-list

Re: Rss lib in python?

2005-06-01 Thread Owen
lihui <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Please use feedparser: > > http://feedparser.org/ > > 2005/6/1, Grant Edwards <[EMAIL PROTECTED]>: > > On 2005-06-01, Owen <[EMAIL PROTECTED]> wrote: > >=20 > > >

Re: compute the double square...... :(

2011-01-09 Thread Owen
re > > > x = input("enter a number::") > > for b in range(0,(x**0.5)/2): > >        a = (x-(b**2))**0.5 > > try: > >        a = int(a) > > except: > >        print("not an integer") > >        exit(1) > > >        count = 0; > >        count = count + 1; > > if (x == a**2 + b**2): > > >        print "double square" Well that he means 3(squared)+1(squared) [3 superscript 2 etc] Owen -- http://mail.python.org/mailman/listinfo/python-list

Re: Ideal way to separate GUI and logic?

2013-07-15 Thread Owen Marshall
hat you can describe as one action. >> >> >> >> - >> >> Asim Jalis > > Again, thanks for all the responses. I'm curious, though, what exactly > is the rationale for making functions so small? (I've heard that the > function calling of Python

Re: UTF-EBCDIC encoding?

2013-07-15 Thread Owen Marshall
d. Trying to imagine the work > environment where this technology would be necessary > Ask any poor shmuck who has ever had to consume files created by the government -- especially stuff from the Social Security Administration -- and they'll tell horror stories about EBCDIC. Typically I&#x

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Owen Marshall
; read it from a Usenet news server via the group comp.lang.python since > long before I discovered gmane.org.] > Huh - I (foolishly) didn't realize gmane actually had NNTP, I've always used it to search mailing lists. If the list dumped to usenet (much like c.l.python) I'd post t

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-18 Thread Owen Marshall
On 2013-07-18, Michael Torrie wrote: > On 07/18/2013 12:19 PM, Owen Marshall wrote: >> Huh - I (foolishly) didn't realize gmane actually had NNTP, I've always >> used it to search mailing lists. If the list dumped to usenet (much like >> c.l.python) I'd post

Re: Generator problem: parent class not seen

2012-02-01 Thread Russell Owen
On Feb 1, 2012, at 2:34 PM, Chris Rebert wrote: > On Wed, Feb 1, 2012 at 1:00 PM, Russell E. Owen wrote: >> I have an odd and very intermittent problem in Python script. >> Occasionally it fails with this error: >> >> Traceback (most recent call last): >> Fi

Re: Generator problem: parent class not seen

2012-02-01 Thread Russell Owen
On Feb 1, 2012, at 3:35 PM, Arnaud Delobelle wrote: > On Feb 1, 2012 9:01 PM, "Russell E. Owen" wrote: > > > > I have an odd and very intermittent problem in Python script. > > Occasionally it fails with this error: > > > > Traceback (most recent c

Re: stackoverflow question

2012-03-10 Thread Owen Jacobson
On 2012-03-09 22:10:18 +, Ethan Furman said: Hey all! I posted a question/answer on SO earlier, but there seems to be some confusion around either the question or the answer (judging from the comments). http://stackoverflow.com/q/9638921/208880 If anyone here is willing to take a look

Re: stackoverflow question

2012-03-10 Thread Owen Jacobson
On 2012-03-10 22:21:55 +, Ethan Furman said: Owen Jacobson wrote: On 2012-03-09 22:10:18 +, Ethan Furman said: Hey all! I posted a question/answer on SO earlier, but there seems to be some confusion around either the question or the answer (judging from the comments). http

Re: getaddrinfo NXDOMAIN exploit - please test on CentOS 6 64-bit

2012-03-31 Thread Owen Jacobson
On 2012-03-31 22:58:45 +, John Nagle said: Some versions of CentOS 6 seem to have a potential getaddrinfo exploit. See To test, try this from a command line: ping example If it fails, good. If it returns pings from "example.com", bad. The getaddrinfo code is adding ".com" to

Re: importing class objects from a pickled file

2011-05-03 Thread Owen Jacobson
On 2011-05-03 20:18:33 -0400, Catherine Moroney said: Hello, I have an object of class X that I am writing to a pickled file. The pickling part goes fine, but I am having some problems reading the object back out, as I get complaints about "unable to import module X". The only way I have f

Re: What's the best way to minimize the need of run time checks?

2016-08-11 Thread Russell Owen
On 8/10/16 3:44 PM, Juan Pablo Romero Méndez wrote: As to why I asked that, there are several reasons: I have a very concrete need right now to find pragmatic ways to increase code quality, reduce number of defects, etc. in a Python code base. But also I want to understand better the mind set and

Re: Anaconda with Python 3.7

2018-09-28 Thread Russell Owen
On Sep 3, 2018, gvim wrote (in article <5b8d0122.1030...@gmail.com>): > Anyone have any idea when Anaconda might ship a version compatible with > Python 3.7. I sent them 2 emails but no reply. I heard a rumor today that it will be a few more months. They are short on resources and are also deali

asyncio await different coroutines on the same socket?

2018-10-03 Thread Russell Owen
Using asyncio I am looking for a simple way to await multiple events where notification comes over the same socket (or other serial stream) in arbitrary order. For example, suppose I am communicating with a remote device that can run different commands simultaneously and I don't know which comm

How to await multiple replies in arbitrary order (one coroutine per reply)?

2018-10-05 Thread Russell Owen
I am using asyncio and am fairly new to it. I have a stream to which I write commands and from which I read replies. (In this case the stream is custom wrapper around DDS written in C++ and pybind11). Multiple commands can run at the same time and I cannot predict which will finish first. I ne

Re: asyncio await different coroutines on the same socket?

2018-10-05 Thread Russell Owen
On Oct 3, 2018, Ian Kelly wrote (in article): > On Wed, Oct 3, 2018 at 7:47 AM Russell Owen wrote: > > Using asyncio I am looking for a simple way to await multiple events where > > notification comes over the same socket (or other serial stream) in > > arbitrary > >

Is it possible to connect an awaitable to a Future, basically turning it into a Task?

2018-10-27 Thread Russell Owen
I’m using asyncio and I’d like to add an item to an object that others can wait on immediately and which eventually I will want to use to track a coroutine. In other words I want something like: class Info: def __init__(self): self.done_task = asyncio.Future() info = Info() # do other stuff, b

Re: log file.

2016-06-14 Thread Paul Owen
I am very inexperienced at programming.! is there a lot of code needed to use those modules. regards paul. -- https://mail.python.org/mailman/listinfo/python-list

Re: log file.

2016-06-14 Thread Paul Owen
logging please. my pump programme works but I want to log the time etc. when the pump runs and stops. I am trying to improve the programme I am a novice! -- https://mail.python.org/mailman/listinfo/python-list

RE: log file.

2016-06-14 Thread Paul Owen
thanks I will look at them. -- https://mail.python.org/mailman/listinfo/python-list

RE: log file.

2016-06-14 Thread Paul Owen
Gmail Google+ Calendar Web more Inbox pump programme Paul Owen to me 1 hour ago Details from gpiozero import LED,Button from signal import pause print ("Pump Programme Running") led = LED(17) low = Button (2) high = Button (3) high.when_pressed = led.on  low.whe

Re: log file.

2016-06-14 Thread Paul Owen
Thank you Steven. that is just what I need. regards Paul. -- https://mail.python.org/mailman/listinfo/python-list

Gzip module does not support Unix compressed .Z files [SEC=UNOFFICIAL]

2016-07-03 Thread Owen Brandon
ctionality being included in a core module at some point? Sorry if this is not the correct forum for questions like this - any help would be appreciated. Kind Regards Brandon Owen GNSS Network Operator | Geodesy and Seismic Monitoring Group Community Safety and Earth Monitoring Div

RE: Gzip module does not support Unix compressed .Z files [SEC=UNOFFICIAL]

2016-07-04 Thread Owen Brandon
That's actually the module that I wrote for this purpose (adapted Mark Adler's C code) - I haven't optimised it very much. Brandon Owen GNSS Network Operator  |  Geodesy and Seismic Monitoring Group Community Safety and Earth Monitoring Division  |  GEOSC

HTTP Header Capitalization in urllib.request.AbstractHTTPHandler (Python 3.3)

2013-11-18 Thread Logan Owen
Hello everyone, I was hoping for some advice in dealing with an edge case related to Python's HTTP Header handling. Python is correctly assuming that the HTTP header field name (eg Content-Type) is case insensitive, but I have a webservice I am interacting with that does not follow the standards.

Re: How to install PIL or PILLOW on OS X Yosemite?

2015-02-19 Thread Russell Owen
On 2/15/15 8:17 PM, Ned Deily wrote: In article , KP wrote: just upgraded my Mac Mini to Yosemite and have never dabbled in Python on this OS. I see it has Python 2.7.6 installed. When I do something like from PIL import ImageFont, ImageDraw it tells me that it cannot find PIL How do I i

Sexism in the Ruby community: how does the Python community manage it?

2013-10-16 Thread Owen Jacobson
Last week, Elad Maidar wrote a fairly short but readable opinion piece[0] illustrating some long-standing social problems in the Ruby community, ending with a very specific call to action around naming conventions for Ruby projects and gems. To save you the trouble of scrolling to the bottom of

Re: Picking apart a text line

2015-03-02 Thread Russell Owen
On 2/26/15 7:53 PM, memilanuk wrote: So... okay. I've got a bunch of PDFs of tournament reports that I want to sift thru for information. Ended up using 'pdftotext -layout file.pdf file.txt' to extract the text from the PDF. Still have a few little glitches to iron out there, but I'm getting d

Re: Best way to calculate fraction part of x?

2015-03-26 Thread Russell Owen
On 3/24/15 6:39 PM, Jason Swails wrote: On Mon, Mar 23, 2015 at 8:38 PM, Emile van Sebille mailto:em...@fenx.com>> wrote: On 3/23/2015 5:52 AM, Steven D'Aprano wrote: Are there any other, possibly better, ways to calculate the fractional part of a number? flo

Re: Quick question, if you please

2015-03-31 Thread Russell Owen
On 3/31/15 10:09 AM, John Kelly wrote: Pythonites, I received Python with another install and my update software keeps signaling I need to install a newer version, and once I do, the older version is still there, so I keep getting told I need to update. Should I be able to uninstall the old vers

Re: tkinter resize question

2015-07-17 Thread Russell Owen
On 7/17/15 12:17 PM, nickgeova...@gmail.com wrote: On Friday, July 17, 2015 at 1:53:19 PM UTC-5, nickge...@gmail.com wrote: Resizing a tkinter window which contains a frame which contains a button widget, will not change the current size of the window, frame or button as recorded in their heig

Re: Idiom for shelling out to $EDITOR/$PAGER?

2011-12-23 Thread Owen Jacobson
On 2011-12-23 06:02:18 +, Cameron Simpson said: MacOSX has "open", though it won't be running a blocking editor, alas. But it can be. From the man page: -t Causes the file to be opened with the default text editor, as deter- mined via LaunchServices and -W Causes open

Re: Perl XML::Simple and Data::Dumper - exists in Python?

2006-06-14 Thread Wallace Owen
Miguel Manso wrote: > Hi there, > > I'm a Perl programmer trying to get into Python. I've been reading some > documentation and I've choosed Python has being the "next step" to give. > > Can you point me out to Python solutions for: > > 1) Perl's Data::Dumper > > It dumps any perl variable to

Re: static object

2007-01-03 Thread Russell Owen
In article <[EMAIL PROTECTED]>, meelab <[EMAIL PROTECTED]> wrote: > Dear All, > > I am looking for a way to create a "static object" or a "static class" - > terms might be inappropriate - having for instance: > > class StaticClass: > . > . > > and then > staticObject1 = StaticClass() >

Re: RSA SecurID token authentication?

2007-05-31 Thread Nick Owen
ll allow you to use a third party radius server if you want and since all the two-factor vendors support radius, you won't have to re- write the apps if you switch strong authentication vendors. HTH, nick -- Nick Owen WiKID Systems, Inc. 404.962.8983 http://www.wikidsystems.com Commercial

Re: Distributed RVS, Darcs, tech love

2007-10-21 Thread Owen Jacobson
On Oct 21, 3:11 pm, Lew <[EMAIL PROTECTED]> wrote: > Try using reason, logic and evidence for your points instead of merely > shouting obscenities, hm? You're expecting logic from someone who asserts that > llothar wrote: > > only contribution to software development was the theory of > > "lite

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: Python-list Digest, Vol 56, Issue 204

2008-05-12 Thread Gareth Owen
On Monday 12 May 2008 14:55:06 [EMAIL PROTECTED] wrote: > Send Python-list mailing list submissions to > python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/python-list > or, via email, send a message with subjec

python xslt library

2008-08-25 Thread Owen Zhang
Can anyone recommand the best performance python xslt library? Have anyboday used 4Suite? How do you feel about performance? -- http://mail.python.org/mailman/listinfo/python-list

lxml build error in sun

2008-09-12 Thread Owen Zhang
I am trying to build lxml package in SunOS 5.10. I got the following errors. Does anybody know why? $ python setup.py build Building lxml version 2.1. NOTE: Trying to build without Cython, pre-generated 'src/lxml/ lxml.etree.c' needs to be available. Using build configuration of libxslt 1.1.7 Buil

Re: List weirdness - what the heck is going on here?

2010-01-27 Thread Owen Jacobson
On 2010-01-27 21:06:28 -0500, Rotwang said: Hi all, I've been trying to make a class with which to manipulate sound data, and have run into some behaviour I don't understand which I hope somebody here can explain. The class has an attribute called data, which is a list with two elements, one

Re: general problem when subclassing a built-in class

2010-12-22 Thread Owen Jacobson
On 2010-12-22 20:22:36 -0500, kj said: Suppose that you want to implement a subclass of built-in class, to meet some specific design requirements. Where in the Python documentation can one find the information required to determine the minimal[1] set of methods that one would need to override t

Put up or shut up (Was Re: Tkinter: The good, the bad, and the ugly!)

2010-12-30 Thread Owen Jacobson
On 2010-12-30 12:36:05 -0500, rantingrick said: On Dec 30, 9:51 am, Kevin Walzer wrote: Tcl is not a domain-specific language for creating GUI's. Tcl is a full-featured, general-purpose programming language that is a peer to Python in its capabilities, Anybody can gloat and gush about their

Re: Tkinter: The good, the bad, and the ugly!

2010-12-31 Thread Owen Jacobson
On 2010-12-30 19:43:21 -0500, Gerry Reno said: For those that are lurking, this might provide a little background: http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong Essentially, there is nothing "wrong" with Tcl and Tkinter. They are part of a long evolutionary chain of

Re: Why Is Escaping Data Considered So Magical?

2010-06-24 Thread Owen Jacobson
On 2010-06-24 21:02:48 -0400, Roy Smith said: In article , Lawrence D'Oliveiro wrote: I construct ad-hoc queries all the time. It really isn’t that hard to do safely. All you have to do is read the documentation I get worried when people talk about how easy it is to do something safely.

Re: Why Is Escaping Data Considered So Magical?

2010-06-25 Thread Owen Jacobson
On 2010-06-25 20:49:09 -0400, Lawrence D'Oliveiro said: In message , Jorgen Grahn wrote: I thought it was well-known that the solution is *not* to try to sanitize the input -- it's to switch to an interface which doesn't involve generating an intermediate executable. In the Python example, th

Re: Why Is Escaping Data Considered So Magical?

2010-06-27 Thread Owen Jacobson
On 2010-06-26 22:33:57 -0400, Lawrence D'Oliveiro said: In message <2010062522560231540-angrybald...@gmailcom>, Owen Jacobson wrote: It's not hard. It's just begging for a visit from the fuckup fairy. That’s the same fallacious argument I pointed out earlier. In

Re: Why are String Formatted Queries Considered So Magical?

2010-06-27 Thread Owen Jacobson
On 2010-06-27 22:51:59 -0400, Carl Banks said: On Jun 27, 3:20 pm, Roy Smith wrote: In article <14e44c9c-04d9-452d-b544-498adfaf7...@d8g2000yqf.googlegroups.com>,  Carl Banks wrote: Seriously, almost every other kind of library uses a binary API. What makes databases so special that they

Re: Why are String Formatted Queries Considered So Magical?

2010-06-27 Thread Owen Jacobson
On 2010-06-27 22:51:59 -0400, Carl Banks said: On Jun 27, 3:20 pm, Roy Smith wrote: In article <14e44c9c-04d9-452d-b544-498adfaf7...@d8g2000yqf.googlegroups.com>,  Carl Banks wrote: Seriously, almost every other kind of library uses a binary API. What makes databases so special that they

Re: Why are String Formatted Queries Considered So Magical?

2010-06-27 Thread Owen Jacobson
On 2010-06-28 00:02:57 -0400, Stephen Hansen said: On 6/27/10 8:48 PM, Carl Banks wrote: I don't know the exact details of all of these, but I'm going to opine that at least some of these are easily expressible with a function call API. Perhaps more naturally than with string queries. For ins

Trying to run Python 2.7 on Windows 7 and any suggestions on books/websites for "dummies guide to python" type learning

2010-08-02 Thread ben owen
Hi everyone, I'm new to this and was needing help with trying to learn/work with Python 2.7 on my computer. I'm running Windows 7 and trying to learn python programming from an older book from 1999 by Mark Lutz and David Ascher my boss gave me, and for some reason none of my script/modules for

[no subject]

2017-08-19 Thread Owen Berry
I'm new to python and having trouble with the most basic step. I have tried to install python (Web-based installer) on my home pc to mess around and attempt to develop a program. when I install the launcher it is fine but when I try and open the file it launches a modify setup window. I have no clu

Re: What's wrong with this code?

2012-07-23 Thread Russell E. Owen
In article , Chris Angelico wrote: > On Tue, Jul 24, 2012 at 12:50 AM, Stone Li wrote: > > > > I'm totally confused by this code: > > > > Code: > > Boiling it down to just the bit that matters: > > c = None > d = None > x = [c,d] > e,f = x > c = 1 > d = 2 > print e,f > > When you assign "e,

Re: Tkinter bug in Entry widgets on OS X

2012-09-13 Thread Russell E. Owen
In article , Kevin Walzer wrote: > On 8/31/12 6:18 AM, Arnaud Delobelle wrote: > > I'm very inexperienced with Tkinter (I've never used it before). All > > I'm looking for is a workaround, i.e. a way to somehow suppress that > > output. > > What are you trying to do? Navigate the focus to anot

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

2012-12-26 Thread Russell E. Owen
In article , Kevin Walzer wrote: > I maintain a Tkinter application that's a front-end to to a package > manger, and I have never been able to find a way to keep the app from > locking up at some point during the piping in of the package manager's > build output into a text widget. At some po

Generator problem: parent class not seen

2012-02-01 Thread Russell E. Owen
I have an odd and very intermittent problem in Python script. Occasionally it fails with this error: Traceback (most recent call last): File "/Applications/APO/TTUI.app/Contents/Resources/lib/python2.7/TUI/Base/Bas eFocusScript.py", line 884, in run File "/Applications/APO/TTUI.app/Contents/R

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

2012-03-05 Thread Russell E. Owen
In article <3d0bf288-fa5d-48e5-9529-db92d420a...@1g2000yqv.googlegroups.com>, Rick Johnson wrote: > On Feb 29, 11:24 pm, Terry Reedy wrote: > > On 2/29/2012 10:22 PM, Rick Johnson wrote: > > > > PS: I would highly suggest against using the "from Tkinter import *". > > > Instead, use "import T

pickle question: sequencing of operations

2012-05-04 Thread Russell E. Owen
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 instance of a class that is a subclass of another class that contains unpickleable objects.

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
In article <[EMAIL PROTECTED]>, "Eric Brunel" <[EMAIL PROTECTED]> wrote: >You should now see why it works here: your first tkFont.Font is remembered at >Python level in a variable. So it is not discarded once the tag_config is >over. So the second tkFont.Font is not allocated at the same locati

[Ann] RO package 2005-10-31

2005-10-31 Thread Russell E. Owen
RO package 2005-10-31 is now available from What is it? A package of python utilities I wrote to support a telescope control interface. RO has a strong emphasis on the Tkinter GUI library, networking, astronomy and cross-platform support (uni

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

2005-11-08 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Kevin Walzer <[EMAIL PROTECTED]> wrote: >I'm a Tcl/Tk developer who has been dabbling with Python for some time,... >Well, I have finally found a good reason to learn Python in more depth:... > >Any advice, particularly from other programmers with a lot of experien

directory bug on linux; workaround?

2005-01-13 Thread Russell E. Owen
I stumbled across a really strange bug involving directories on linux. os.path.exists(path) can return 0 even after os.path.mkdir(path) succeeds (well after; this isn't a timing issue). For the first file, the directory did not exist, so my code created the directory (successfully) using os.pa

Re: Configuring Python for Tk on Mac

2005-01-24 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Martyn Quick) wrote: >On my desk here at work I have a Mac G4 running Mac OS X v10.2.8. > >When I go into a terminal and type "python" up comes a nice python >interface and all seems great. However when I type "import Tkinter" >I'm greeted by th

Re: tkinter socket client ?

2005-01-24 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Tonino" <[EMAIL PROTECTED]> wrote: >yeah - had a look at createfilehandler() - was a bit confusing - but >your example helps ;) Be warned that createfilehandler does not work on Windows, though it works well on unix and MacOS X. So my suggestion is one to try a

Re: tkinter socket client ?

2005-01-25 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Tonino" <[EMAIL PROTECTED]> wrote: >thanks for this info - I had to abandon the createfilehandler() method >as it is not supported in windows and the GUI "might" be used there at >some time ... > >So - I went the threading route - works well - for now - so I will

Re: continuous plotting with Tkinter

2005-02-03 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Martin Blume" <[EMAIL PROTECTED]> wrote: >I have a number-crunching application that spits out >a lot of numbers. Now I'd like to pipe this into a python >app and plot them using Tkinter, such as: >$ number_cruncher | myplot.py >But with Tkinter once I call Tkin

Re: Reinstall python 2.3 on OSX 10.3.5?

2005-02-03 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: >Hi there > >I started a very long and roundabout process of attempting to install >python 2.3.4 along side my apple-installed 2.3 system. To make a long >story short, I have completely confabulated my environment ( i deleted >the 2.3 binar

How to get a unique id for bound methods?

2005-08-19 Thread Russell E. Owen
I have several situations in my code where I want a unique identifier for a method of some object (I think this is called a bound method). I want this id to be both unique to that method and also stable (so I can regenerate it later if necessary). I thought the id function was the obvious choic

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
In article <[EMAIL PROTECTED]>, "Paulo Pinto" <[EMAIL PROTECTED]> wrote: >Hello, > >Is there any Python library similar to NET::FTP from Perl? >ftplib seems too lowlevel. > >I already found a few, but would like to get one that is >endorsed by the community. Try urllib or urllib2; these are incl

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
In article <[EMAIL PROTECTED]>, Peter A. Schott <[EMAIL PROTECTED]> wrote: >Been reading the docs saying that file should replace open in our code, but >this >doesn't seem to work: > ># Open file for writing, write something, close file >MyFile = file("MyFile.txt", "w") >MyFile.write("This is a

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
In article <[EMAIL PROTECTED]>, "Harlin Seritt" <[EMAIL PROTECTED]> wrote: >I am trying to use the geometry() method with the toplevel window >called root. I know that one can do the following: > >root.geometry('400x400+200+200') > >This will put the window in 200, 200 position with a size of 400

Re: tkinter shell problem

2004-11-29 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Philippe C. Martin" <[EMAIL PROTECTED]> wrote: >Hi, > >I have the following problem:... >If I trap (an exception), I do not get the stack dump that I which I would >show. >... >If I don"t trap it, then my clean up code...does not get called... > >Yet Idle manages

Re: PHP vs. Python

2004-12-22 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: >Anyone know which is faster? I'm a PHP programmer but considering >getting into Python ... did searches on Google but didn't turn much up >on this. For web service, the first hurdle is picking which python web interface to use, installi

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: >I'm considering proposing to O'Reilly a 2nd edition of "Python in a >Nutshell", that I'd write in 2005, essentially to cover Python 2.3 and >2.4 (the current 1st edition only covers Python up to 2.2). >... Since you were k

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
Can anyone recommend a fast cross-platform plotting package for 2-D plots? Our situation: We are driving an instrument that outputs data at 20Hz. Control is via an existing Tkinter application (which is being extended for this new instrument) that runs on unix, mac and windows. We wish to updat

Running python's own unit tests?

2013-11-14 Thread Russell E. Owen
I'm building python from source and trying to figure out how to test the result. I must be overlooking something obvious, but I looked through the documentation and source and tried some google searches (which turn up plenty about writing unit tests in python, but nothing about testing a python

Re: Running python's own unit tests?

2013-11-15 Thread Russell E. Owen
In article <5285223d.50...@timgolden.me.uk>, Tim Golden wrote: > http://docs.python.org/devguide/ Thank you and the other responders. I was expecting to find the information here under Building Python. The developer's guide is a nice resource. -- Ru

Suggested GUI framework for Mac and unix?

2014-01-06 Thread Russell E. Owen
I have a free cross-platform Python GUI application that has to run on Mac and linux. It is presently written in Tkinter, but for various reasons* it may be time to switch. I've heard many good things about wxpython and qt, but not used either, and am wondering if somebody could tell me if eith

Re: Mac python py2app problem

2014-07-17 Thread Russell E. Owen
In article , Gregory Ewing wrote: > Nicholas Cannon wrote: > > I do like the idea of making a .dmg file > > because i have used them downloading other apps and it works great but i > > dont > > know how to make them! > > In Disk Utility, use File>New>Disk Image from Folder. Or...open Disk Uti

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. -- Russell -- ht

Decorator question: prefer class, but only function works

2011-11-10 Thread Russell E. Owen
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): def wrapper(self, *args, **keyArgs): t1 = time.time() res = func(self, *args, **keyArgs) duration = time.time() - t1

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
In article <3d9fe0b2-7931-4ab6-8929-235460729...@q9g2000pbf.googlegroups.com>, rusi wrote: > On Mar 6, 11:03 pm, Jason Hsu wrote: > > I'm currently in the process of learning Ruby on Rails.  I'm going through > > the Rails for Zombies tutorial, and I'm seeing the power of Rails. > > > > I sti

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

2005-12-19 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: >[EMAIL PROTECTED] (Alex Martelli) writes: >> To put it another way: one reason I love Python is that I strongly >> subscribe to the idea that there should preferably be only one obvious >> way to do something. Unfortun

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

2005-12-19 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: >"Ben Sizer" <[EMAIL PROTECTED]> writes: >> I see what you mean, but unfortunately I think there is a lot more >> fuzziness than that. If the separate parts were clearly delineated >> things would be a lot better. I look to the

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
In article <[EMAIL PROTECTED]>, "Alvin A. Delagon" <[EMAIL PROTECTED]> wrote: >Thanks for all the recommendations! I took a look on wingide2.0 on my >linux box and it seems pretty good and has a lot of nifty features >(which is pretty daunting to use since I've been programming with no IDE >at

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

2006-01-11 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: >I want to be able to pass a sequence (tuple, or list) of objects to a >function, or only one. > >It's easy enough to do: > >isinstance(var, (tuple, list)) > >But I would also like to accept generators. How can I do this? > >Anything else i

Re: Python/Tkinter crash.

2006-10-04 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: >Hi, > >I get the following: > >[EMAIL PROTECTED]:~/Controller/lib> python display.py >UpdateStringProc should not be invoked for type font >Aborted >... >Everything seems to work fine. - there is a thread that runs t

  1   2   >