Re: find in smartpdf files

2011-01-06 Thread Wanderer
On Jan 6, 11:20 am, Dan M wrote: > On Thu, 06 Jan 2011 08:11:34 -0800, Wanderer wrote: > > We generate PCB assembly files in pdf format using SmartPDF. This allows > > us to search for a component in the assembly using the find feature. We > > would like to be able

Converging Multiple Classes

2011-02-04 Thread Wanderer
I have a bunch of cameras I want to run tests on. They each have different drivers and interfaces. What I want to do is create python wrappers so that they all have a common interface and can be called by the same python test bench program. I'm not sure what to call it. I don't think it's inheritan

Re: Converging Multiple Classes

2011-02-04 Thread Wanderer
On Feb 4, 12:07 pm, Jean-Michel Pichavant wrote: > Wanderer wrote: > > I have a bunch of cameras I want to run tests on. They each have > > different drivers and interfaces. What I want to do is create python > > wrappers so that they all have a common interface and can be c

using attributes as defaults

2011-02-04 Thread Wanderer
I want to give the option of changing attributes in a method or using the current values of the attributes as the default. class MyClass(): """ my Class """ def __init__(self): """ initialize """ self.a = 3 self.b = 4 def MyMethod(self,

Ipython Ctypes conflict

2011-02-10 Thread Wanderer
When I try to use program that uses ctypes to load a dll in Ipython. I get Traceback (most recent call last): File "... \console.py" line 671, in hook_wrapper_23 res = ensire_str(readline_hook(prompt)) File "...\rlmain.py", lin 342, in readline return self.mode.readline(prompt)

file find skips first letter

2011-02-15 Thread Wanderer
I'm using code def getFiles(self, fileBase): """return a list of the filenames in a director containing a base word """ allFiles = os.listdir(self.resultDir) baseFiles = [] for f in allFiles: if f.find(fileBase) > 0: baseFile

PyDev : undefined variable from import

2010-04-26 Thread Wanderer
Since the last Java update, I get the error, "undefined variable from import" in Pydev in the Eclipse editor. I can still run the program in Eclipse. If I add a blank line and save the program, the error goes away, but that screws up the revision with SVN. Has anyone else seen this or have a fix.

importing with .m instead of .py

2009-09-25 Thread Wanderer
I would like to import Matlab/Octave files of the .m sort into Python that look like this. # comment y=[1,2,3,4,5\ ,6,7,8,9]; # comment The only problem is I have to change the extensions from .m to .py. Is there a way to get python to import files that don't end in .py? Thank you -- http://mai

Re: importing with .m instead of .py

2009-09-25 Thread Wanderer
On Sep 25, 12:15 pm, Ishwor Gurung wrote: > Wanderer > Hi > Refer tohttp://docs.python.org/tutorial/modules.html#the-module-search-path. > > Particularly- > " > When a module named spam is imported, the interpreter searches for a > file named spam.py in the current di

Re: Python application launcher (for Python code)

2017-02-25 Thread Wanderer
On Saturday, February 25, 2017 at 1:03:40 PM UTC-5, Deborah Swanson wrote: > Dennis Lee Bieber wrote, on February 25, 2017 4:50 AM > > > > On Fri, 24 Feb 2017 22:26:15 -0800, "Deborah Swanson" > > declaimed the following: > > > > > > > >Well rats. Skull duggery on the net is a lot more sophisti

FYI: Removing posts with All Cap Authors

2017-03-04 Thread Wanderer
I mostly just lurk and view the post titles to see if something interesting is being discussed. This code gets me a web page without the spam. You need to compile it to a pyc file and create a bookmark. Probably not useful for most people who don't use their browsers the way I do, but here it is

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread Wanderer
On Saturday, March 4, 2017 at 11:31:13 AM UTC-5, Chris Angelico wrote: > On Sun, Mar 5, 2017 at 3:22 AM, Wanderer wrote: > > I mostly just lurk and view the post titles to see if something interesting > > is being discussed. This code gets me a web page without the spam. You need

Script to ban authors from Google Groups

2017-07-03 Thread Wanderer
I use this script to ban authors from Google Groups. You need to create a banned authors text file with each author separated by a new line. For Mozilla you need to compile it to a pyc file, associate pyc files with Python and create a bookmark. You then use the bookmark to enter google groups w

Re: What's with all of the Case Solution and Test Bank nonsense posts?

2017-07-10 Thread Wanderer
On Sunday, July 9, 2017 at 8:59:45 PM UTC-4, timetowalk wrote: > On Sunday, July 9, 2017 at 8:05:59 PM UTC-4, Michael Torrie wrote: > > On 07/09/2017 05:39 PM, timetowal...@gmail.com wrote: > > > I use https://groups.google.com/forum/#!forum/comp.lang.python to look > > > over message posts. > > >

Re: Argh!! Can't wrap my head around this Python stuff!

2017-11-26 Thread nospam . Wanderer
On Sunday, November 26, 2017 at 4:10:12 AM UTC-5, Greg Tibbet wrote: > I'm an old timer, have programmed in Fortran, C, C++, Perl, and a bit > of Java and trying to learn this new-fangled Python language! > > I've got a small program that uses PIL to create an image, draw some > primitives (rectang

Re: Argh!! Can't wrap my head around this Python stuff!

2017-11-26 Thread nospam . nospam . Wanderer
On Sunday, November 26, 2017 at 4:10:12 AM UTC-5, Greg Tibbet wrote: > I'm an old timer, have programmed in Fortran, C, C++, Perl, and a bit > of Java and trying to learn this new-fangled Python language! > > I've got a small program that uses PIL to create an image, draw some > primitives (rectang

Re: Argh!! Can't wrap my head around this Python stuff!

2017-11-27 Thread nospam . nospam . nospam . Wanderer
On Sunday, November 26, 2017 at 4:10:12 AM UTC-5, Greg Tibbet wrote: > I'm an old timer, have programmed in Fortran, C, C++, Perl, and a bit > of Java and trying to learn this new-fangled Python language! > > I've got a small program that uses PIL to create an image, draw some > primitives (rectang

<    1   2