Re: Global indent

2014-08-22 Thread Neil D. Cerutti
On 8/22/2014 2:19 PM, Seymore4Head wrote: Is there a way to indent everything again? Say I have a while statement with several lines of code and I want to add a while outside that. That means indenting everything. Is there a global way to do that? This sort of simple task is why fancy text e

Re: Global indent

2014-08-22 Thread Neil D. Cerutti
On 8/22/2014 3:54 PM, Rob Gaddi wrote: On Fri, 22 Aug 2014 15:46:33 -0400 Seymore4Head wrote: On Fri, 22 Aug 2014 14:19:29 -0400, Seymore4Head wrote: Is there a way to indent everything again? Say I have a while statement with several lines of code and I want to add a while outside that.

Re: Python vs C++

2014-08-25 Thread Neil D. Cerutti
On 8/23/2014 9:00 AM, Chris Angelico wrote: On Sat, Aug 23, 2014 at 10:38 PM, Rustom Mody wrote: Here is an example (not identical but analogous to) where markup+compile is distinctly weaker than wysiwyg: You can use lilypond to type music and the use a midi player to play it But lilypond does

Re: Python programming

2014-08-27 Thread Neil D. Cerutti
On 8/27/2014 9:40 AM, Jake wrote: Jake I disagree! -- Neil Cerutti -- https://mail.python.org/mailman/listinfo/python-list

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Neil D. Cerutti
On 9/30/2014 7:35 AM, c...@isbd.net wrote: Thus I'd have something like (apologies for any syntax errors):- cfg = { "LeisureVolts": ["AIN0", 0.061256, "Leisure Battery Voltage"], "StarterVolts": ["AIN1", 0.060943, "Starter Battery Voltage"], "LeisureAmps1": ["AIN2", 0.423122, "

Re: [OT] spelling colour / color was Re: Toggle

2014-10-10 Thread Neil D. Cerutti
On 10/9/2014 3:53 PM, Tim Delaney wrote: That would be a theatre programme vs a computer program. I try to stick with the current spelling style when modifying existing code - esp. for APIs. It's very annoying to have some methods use "z" and others "s" in the same package. So since I'm currentl

Re: Robotics and parallel ports

2005-12-15 Thread c d saunter
Isaac T Alston ([EMAIL PROTECTED]) wrote: : Heiko Wundram wrote: : > Maybe it's what you're looking for. : Thanks for that. I've never actually built a robot or anything like that : before, so I'm welcome to any advice I can get! I've heard programming via : USB is hard, so that's why I'm using th

Python Image Library

2005-12-16 Thread S. D. Rose
I have a question about PIL. I get a 50k photo from a MySQL table, convert it to grey-scale, do some rotations, etc. Then I want to put it back. It seems that after I do the greyscale, it converts from 'JPEG' to 'RAW'. Can anyone tell me how I convert the image back to 'JPEG' and then insert th

Re: Python Image Library

2005-12-16 Thread S. D. Rose
Sorry-- meant to post to comp.python.image "S. D. Rose" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have a question about PIL. > > I get a 50k photo from a MySQL table, convert it to grey-scale, do some > rotations, etc. Then I want to put it bac

Re: Robotics and parallel ports

2005-12-17 Thread c d saunter
Isaac T Alston ([EMAIL PROTECTED]) wrote: : Thanks for everyone's tips and hints. I WILL MAKE THIS WORK! I think I'll : take your advice and use the serial port instead of the parallel port - I : won't have that much data to send (in comparison with, for example, : industrial level applications). A

File object question

2005-12-22 Thread S. D. Rose
Hello all. If I read a binary file: file = open('c:\\logo.gif', 'rw'') # Read from FS as one way to get the object, d/l from website another... file.read() is there anyway I can determine the 'size' of the object file? (Without going to the filesyste

Re: Pydev questions: versions and keybindings

2005-12-22 Thread S. D. Rose
Would (Eclipse) Help | About -> [Plug-in Details] | Plug-in Name -> PyDev - Python Development Environment do the trick for you? -Dave "Kenneth McDonald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm trying to find out if I have the most recent version of Pydev for > Eclipse

Re: File object question

2005-12-23 Thread S. D. Rose
Yes, len() will do what I want. I didn't realize it would work with binary, I thought it was good only for variables, lists, etc. Thanks! -Dave "Kent Johnson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > S. D. Rose wrote: > > Hello all.

Python IDE's

2005-12-24 Thread J. D. Leach
Quick question as I am rather new to Python. What is the preferred tool amongst you gurus to use in coding Python? I have ran across Eric3 and found it to be pretty well full-featured. Any comments or suggestions for better tools/IDE's? J.D. Leach -- http://mail.python.org/mailman/listinfo/python

Re: sorting with expensive compares?

2005-12-28 Thread Stuart D. Gathman
lision pairs of MP3 files where one member carries a freely redistributable license, and the other a "copy this and we'll sue your ass off" license in an effort to trap the unwary. -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Phone: 703 5

PYTHONDOCS

2005-12-31 Thread J. D. Leach
OK, I'm stupid. I have been unable to discern (even Googled) a way to set the PYTHONDOCS variable to point to where the HTML files are. What to do? I need to know the process and where theses variables are stored. -- J. D. Leach Columbus, Indiana USA Linux/Open Source Computer

Re: PYTHONDOCS

2006-01-01 Thread J. D. Leach
Mike Meyer wrote: > Chris Smith <[EMAIL PROTECTED]> writes: >>>>>>> "J" == J D Leach <[EMAIL PROTECTED]> writes: >> I'm stupider; I can't ATFQ for you. >> But last night I stayed at a Holiday Inn Express, and can recommend >&g

Re: PYTHONDOCS

2006-01-02 Thread J. D. Leach
os.environ.get('PYTHONDOCS') method, the following is produced: >>> os.environ.get('PYTHONDOCS') '/usr/share/doc/python-2.4/html' >>> help('if') ...Sorry, topic and keyword blah, blah, blah. No inline info available...blah, bl

Re: PYTHONDOCS

2006-01-02 Thread J. D. Leach
def __repr__(self): > if inspect.stack()[1][3] == '?': > > Consider filing a bug report. > > Peter I believe you are right, a bug report is probably warranted here. -- J. D. Leach Columbus, Indiana USA -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONDOCS

2006-01-02 Thread J. D. Leach
hould have been in the correct order and directories when initially installed. -- J. D. Leach Columbus, Indiana USA -- http://mail.python.org/mailman/listinfo/python-list

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-03 Thread Stuart D. Gathman
On Mon, 02 Jan 2006 19:05:04 -0500, Steven D'Aprano wrote: > I don't dare ask where your evidence for this hypothesis is, but I will > ask what are your reasons for imagining this? What is the chain of > thought that leads from: > > Step 1: We live in a temporal world. > > to: > > Step N: Our

Re: inline function call

2006-01-04 Thread Stuart D. Gathman
to specialize only those functions that need it after profiling your application. -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledictis, flamis acribus addictis" - background song for a Microsoft

Re: Is 'everything' a refrence or isn't it?

2006-01-04 Thread Stuart D. Gathman
al iterator */ for (_idx = 0; _idx < NLST; ++_idx) { int *i = lst[_idx]; if (*i == *_i2) i = &_i4; } for (_idx = 0; _idx < NLST; ++_idx) printf("%d\n",*lst[_idx]); -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc.

Which Pyton Book For Newbies?

2006-07-22 Thread W. D. Allen
I want to write a retirement financial estimating program. Python was suggested as the easiest language to use on Linux. I have some experience programming in Basic but not in Python. I have two questions: 1. What do I need to be able to make user GUIs for the program, and 2. Which book would

Re: Help beautify ugly heuristic code

2006-07-24 Thread Stuart D. Gathman
uld it handle ip bytes that are the same: 1.2.2.2 Mitja has proposed a scoring system reminiscent of SpamAssassin. This gives me a few things to try. -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Conf

smtplib timeout

2006-07-25 Thread Stuart D. Gathman
nice timeout exception, the thread running the function continues to run. In fact, the problem is worse, because even more threads are created. -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis ma

Re: smtplib timeout

2006-07-25 Thread Stuart D. Gathman
On Tue, 25 Jul 2006 09:21:40 -0700, Alan Kennedy wrote: > [Stuart D. Gathman] >> I need to set a timelimit for the operation of >> smtplib.sendmail. It has to be thread based, because pymilter uses >> libmilter which is thread based. > > Have you tried setting a de

Re: Fastest Way To Loop Through Every Pixel

2006-07-28 Thread c d saunter
Chaos ([EMAIL PROTECTED]) wrote: : He is the code #Actions here : myCol = (0.3 * image.GetRed(thisX, thisY)) + (0.59 * : image.GetGreen(thisX, thisY)) + (0.11 * image.GetBlue(thisX, thisY)) : if myCol < darkestCol: :darkestCol = myCol :possX = thisX :possY = thisY You really don't wa

Re: Standard Forth versus Python: a case study

2006-10-16 Thread Elizabeth D Rather
ibility and access, etc. You should really have another look! Cheers, Elizabeth -- == Elizabeth D. Rather (US & Canada) 800-55-FORTH FORTH Inc. +1 310-491-3356 5155 W. Rosecrans Ave. #1018 Fax: +1 310-978-9454

Help requested -- importing stuff from a .COM DLL into python

2006-05-31 Thread John D Salt
h. Thanks for any assistance, and all the best, John. - - - - - - - - cut here - - - - - - - - Traceback (most recent call last): File "D:\Program Files\MooD\2006\MooDAPI\APIstrangler0_1.py", line 470, in ? thing = win32com.client.Dispatch("MooDAPI.Object.Info") #

Re: NFS server

2006-11-27 Thread Stuart D. Gathman
, apparently python was used for quickly building test rigs while developing NFS v4. Having a framework for python NFS server could be useful - think custom filesystem. Although a python binding for fuse + C NFS server would be more general (use locally as well as remotely). -- Stua

Re: converting dict to object

2006-12-02 Thread Carl D. Roth
On Fri, 01 Dec 2006 17:48:40 -0800, rieh25 wrote: > If I have a dictionary such as: > > d = {'a' : 1, 'b' : 2} > > is there a way to convert it into an object o, such as: > > o.a = 1 > o.b = 2 Rather, the question could be asked the other way ar

Driver selection

2006-12-08 Thread Stuart D. Gathman
r run time. -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledictis, flamis acribus addictis" - background song for a Microsoft sponsored "Where do you want to go from here?" commercial.

Re: Driver selection

2006-12-09 Thread Stuart D. Gathman
On Fri, 08 Dec 2006 21:35:41 -0800, Gabriel Genellina wrote: > On 9 dic, 00:53, "Stuart D. Gathman" <[EMAIL PROTECTED]> wrote: >> Or you can modify the source to "from drivermodule import DNSLookup". >> >> What is the friendliest way to make this c

Re: Automatic debugging of copy by reference errors?

2006-12-09 Thread Stuart D. Gathman
r than copied. I'm not sure it's worth turning python into fortran - even for selected namespaces. -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledictis, flamis acribus addictis&qu

Package vs. module

2006-12-16 Thread Stuart D. Gathman
etpass 2) package that cannot be run directly from command line 3) single file module with associated driver package is the most pythonic? -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154 "Confutatis maledi

Re: I'm looking for a pythonic red-black tree...

2006-12-16 Thread Stuart D. Gathman
d seriously consider trying to modify Python to replace the built-in dict with a skip-list algorithm and compare the performance. Failing that, an extension module implementing a sorted container of some description would be useful. -- Stuart D. Gathman <[EMAIL PROTECTED]> B

Re: Is Forth for real?

2006-02-12 Thread Elizabeth D Rather
o on our web site www.forth.com, including a link to a paper presenting a history of Forth. Cheers, Elizabeth -- == Elizabeth D. Rather (US & Canada) 800-55-FORTH FORTH Inc. +1 310-491-3356 5155 W. Rosecrans Ave. #1018

How to tell if invoked through IDLE or command line?

2005-05-02 Thread Robert D. Young
I've probably asked this before, but how can I tell within the program I'm running if the .py files was involved by "run module" in IDLE or by using the .py assoication with the python.exe program? I'd like to prevent running under certain circumstances, or pop-up warnings, or change character disp

Re: Quick and dirty dialogs?

2005-05-02 Thread Robert D. Young
I use quick-and-dirty code like this: # Get source directory and text file Root = Tkinter.Tk() Root.title(programname) srcdir = tkFileDialog.ask

Re: How to tell if invoked through IDLE or command line?

2005-05-02 Thread Robert D. Young
Poi-fect - thanks! import sys if sys.modules.has_key("idlelib"): print "Running under idle" else: print "Not running under idle" - Robert "Michael Hoffman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Robert D. Young wrote: &

Read tab delimited ascii file

2005-05-11 Thread Irvine, Wayne D
Title: Read tab delimited ascii file I have a tab delimited ascii/excel file formated like LineNum  Data1    Data2…  Data423 Line001    Val1_1  Val2_1… Val423_1 Line002    Val1_2  Val2_2… Val423_2 … Linennn... I want to read the headers/column names in the first line of the file and l

Re: Python features

2005-05-12 Thread Gary D. Duzan
In article <[EMAIL PROTECTED]>, Peter Dembinski <[EMAIL PROTECTED]> wrote: > > >On Sun, 08 May 2005 10:02:42 +0200, André Roberge ><[EMAIL PROTECTED]> wrote: > >> Imperative programming languages are the most commonly used languages. >> Examples of this type of language are C, C++, Ada, Fortra

Column data with first value from each row as key?

2005-05-15 Thread Irvine, Wayne D
Title: Column data with first value from each row as key? Hi All, I have a file of column data where the first row/line of the file contains the column headings. These I need to use as keys. Furthermore I need to be able to use the first value from each of the data rows/lines as a secondary

Re: import cx_Oracle fails!

2005-05-19 Thread Paul D. Lusk
"Daniel" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Hello from Brazil :-) > > I'm trying to bring cx_Oracle alive on my Python 2.4.1 @ HP-UX 11 > (suckz) and Oracle 10.1.0 64bits without success > > I've already tryied the suggestions from Bernard Delmée and Martin v. > Löwis (topic

Re: Intellisense and the psychology of typing

2005-05-27 Thread James D Carroll
<[EMAIL PROTECTED]> wrote> > 1) Intellisense is really just another crutch that does more harm than > good? There were a few hardcore defenders of this position but not > many. I'm primarily a VB programmer, but I also do Java and web stuff as well. Whenever I look at a new IDE the FIRST thing I lo

Re: Accessing global namespace from module

2007-06-11 Thread Reuben D. Budiardja
ion. Do I have to do this for ever script I write, or can I put this into separate file and "include" it somehow ? I am going to have several mainscripts.py, and all is going to import myModule that will need access to this plots subroutine. It'll be great if I can put this trick on a single file that is included by the main scripts, to avoid violating DRY principle. Thanks for all the help. RDB -- Reuben D. Budiardja -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing global namespace from module

2007-06-12 Thread Reuben D. Budiardja
On Monday 11 June 2007 23:49:14 Gabriel Genellina wrote: > En Mon, 11 Jun 2007 22:19:15 -0300, Reuben D. Budiardja > > >It'll be great if I can > > put > > this trick on a single file that is included by the main scripts, to > > avoid > > violating DRY pri

Re: Accessing global namespace from module

2007-06-12 Thread Reuben D. Budiardja
On Monday 11 June 2007 23:49:14 Gabriel Genellina wrote: > En Mon, 11 Jun 2007 22:19:15 -0300, Reuben D. Budiardja > > It'll be great if I can > > put > > this trick on a single file that is included by the main scripts, to > > > According to your description on

4 byte integer

2007-05-11 Thread Paul D Ainsworth
Greetings everyone. I'm a relative newcomer to python and I have a technical problem. I want to split a 32 bit / 4 byte unsigned integer into 4 separate byte variables according to the following logic: - bit numbers 0..7 byte 1 bit numbers 8..15 byte 2 bit numbers 16..23 byte 3 bit numbers 24..

Re: 4 byte integer

2007-05-11 Thread Paul D Ainsworth
> > Have a look at http://aspn.activestate.com/ASPN/Cookbook/Python/ > Recipe/113799 Brilliant - thank you :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Something in the function tutorial confused me.

2007-08-11 Thread Gregory D. Weber
uldn't "x += y" mean the same thing as "x = x + y"? If so, why does an assignment to variable a, below, have the *side effect* of changing variable b ... ? >>> a = [1, 2, 3] >>> b = a >>> b [1, 2, 3] >>> a += [4] >>> a [1, 2, 3, 4] >>> b [1, 2, 3, 4] ... but using the "x = x + y" style, the assignment to variable c, below, does *not* have a side effect on variable d (as indeed it should not!)? >>> c = [1, 2, 3] >>> d = c >>> d [1, 2, 3] >>> c = c + [4] >>> c [1, 2, 3, 4] >>> d [1, 2, 3] >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing combination strings

2007-03-21 Thread Steven D. Arnold
irst digits and ignore the rest of the chacters, A regex leaps to mind.have you investigated the "re" module? >>> import re >>> re.match(r'(\d+)', '123abc').group(1) '123' steven -- http://mail.python.org/mailman/listinfo/python-list

[JOB] Sr. Python Developer, Northern VA

2007-03-21 Thread Steven D. Arnold
Neosynapse is seeking a senior software developer located in or willing to relocate to the Northern VA area to join a project building one of the largest grid computing data platforms in the world. Skill and experience required for this engagement include: * at least 7 years experience in p

Re: retarded twits posting horseshit in technical groups

2007-04-17 Thread Brandon D Cartwright
On Tue, 17 Apr 2007 15:43:02 -0700, MassiveProng <[EMAIL PROTECTED]> wrote: >On 17 Apr 2007 06:56:05 -0700, [EMAIL PROTECTED] Gave us: > >>We know that... > > You're a fucking retard. But you are a text book example of a retard shoveling horseshit to technical groups.This is why you are universa

Re: Getting rid of bitwise operators in Python 3?

2007-09-23 Thread c d saunter
: arguments and dicts, which are lot more versatile. Another major use, : talking to hardware, is not something oft done in Python either. Are you sure? I've been doing lots of exactly that for 4 years, and I'm not the only one round here... Python makes an excellent language for talking to

Return status from methods in socket class

2007-09-26 Thread Paul D Ainsworth
As part of a debugging investigation I would like to be able to display the return status from various methods in the socket class. The methods I'm using are accept, bind, connect, listen, send, recv although not necessarily in that order. Is this possible and if so, how? TIA, Paul. -- ht

How to create a PUG mailing list?

2007-10-25 Thread Kevin D. Smith
I'm trying to get a Python User Group started in Norman, OK and I want to get one of those fancy mailing lists on mail.python.org. There is a link there to create a new list if you have the proper authority. How does someone get the proper authority? -- Kevin D. Smith --

Debugging SocketServer.ThreadingTCPServer

2007-01-15 Thread Stuart D. Gathman
get a thread dump? If needed, I can import pdb and set options at startup, but there needs to be some external way of triggering the dump since I can't reproduce it at will. -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Phone: 703 591-0911 F

Re: Best way to document Python code...

2007-01-22 Thread Stuart D. Gathman
about a python package. I'm struggling with the same issue. Coding Python is so much easier than Java. However documenting Java is so much easier than Python. Just include doc comments, run javadoc, and voila! -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management

Re: Best way to document Python code...

2007-01-22 Thread Stuart D. Gathman
On Mon, 22 Jan 2007 17:35:18 -0500, Stuart D. Gathman wrote: > The HTML generated by pydoc doesn't link to standard modules properly. > They are generated as relative links. So it can't be used without > modification for generating docs for a web page about a python

Help extracting info from HTML source ..

2007-01-25 Thread s. d. rose
Hello All. I am learning Python, and have never worked with HTML. However, I would like to write a simple script to audit my 100+ Netware servers via their web portal. I was reading Chapter 8 of Dive into Python, which deals with this topic. In the web portal of the server, there is a sect

doctest problem with null byte

2007-01-25 Thread Stuart D. Gathman
on raised: Traceback (most recent call last): File "/var/tmp/python2.4-2.4.4c1-root/usr/lib/python2.4/doctest.py", line 1248, in __run compileflags, 1) in test.globs TypeError: compile() expected string without null bytes *

Re: Debugging SocketServer.ThreadingTCPServer

2007-02-03 Thread Stuart D. Gathman
On Tue, 16 Jan 2007 09:11:38 -0500, Jean-Paul Calderone wrote: > On Tue, 16 Jan 2007 00:23:35 -0500, "Stuart D. Gathman" > <[EMAIL PROTECTED]> wrote: >>I have a ThreadingTCPServer application (pygossip, part of >>http://sourceforge.net/projects/pymilter). It mo

Re: Vim scripting with python

2007-02-03 Thread Stuart D. Gathman
unction() > python << EOF > import vim, string > ...blablabla > EOF > endfunction > > but I would like to use external ".py" files. :py import myfile Use :py inside your vimrc - don't run python externally. -- Stuart D. Gathman <[EMAIL PR

Re: Is Python Right for Me?

2007-02-03 Thread Stuart D. Gathman
/ http://www.livewires.org.uk/python/pdfsheets.html As an adult, just skip rapidly through the elementary material. The final module (Games sheets) walks you through creating 3 2D games with pygame! -- Stuart D. Gathman <[EMAIL PROTECTED]> Business Management Systems Inc. Ph

Re: network simulator in Python ?

2007-02-22 Thread John D Salt
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > On Feb 21, 12:26 pm, "DanielJohnson" <[EMAIL PROTECTED]> wrote: >> I was wondering if anyblody can suggest me a network simulator [Snips] >> I am looking for a simulator [Snips] > Google for Scapy I don't think Scapy is

How to build Hierarchies of dict's? (Prototypes in Python?)

2007-02-23 Thread Charles D Hixson
I'm sure I've read before about how to construct prototypes in Python, but I haven't been able to track it down (or figure it out). What I basically want is a kind of class that has both class and instance level dict variables, such that descendant classes automatically create their own class a

Re: How to build Hierarchies of dict's? (Prototypes in Python?)

2007-02-23 Thread Charles D Hixson
Gabriel Genellina wrote: >> En Fri, 23 Feb 2007 17:53:59 -0300, Charles D Hixson >> <[EMAIL PROTECTED]> escribió: >> >> >>> I'm sure I've read before about how to construct prototypes in Python, >>> but I haven't been able to track

Re: How to build Hierarchies of dict's? (Prototypes in Python?)

2007-02-23 Thread Charles D Hixson
Larry Bates wrote: > Charles D Hixson wrote: > >> I'm sure I've read before about how to construct prototypes in Python, >> but I haven't been able to track it down (or figure it out). >> >> What I basically want is a kind of class that has both cla

Re: How to build Hierarchies of dict's? (Prototypes in Python?)

2007-02-24 Thread Charles D Hixson
Toby wrote: > Charles D Hixson wrote: > >> What I basically want is a kind of class that has both class and >> instance level dict variables, such that descendant classes >> automatically create their own class and instance level dict variables. >> The id

Re: How to build Hierarchies of dict's? (Prototypes in Python?)

2007-02-25 Thread Charles D Hixson
Toby wrote: > Charles D Hixson wrote: > >> a class whose sub-classes automatically have unique class variables of >> a determined form such that I can do a hierarchical search through them >> > > Something like this? > (scroll down to see the results

Output buffer

2007-12-22 Thread Cesar D. Rodas
Regards Cesar D. Rodas http://www.cesarodas.com http://www.thyphp.com http://www.phpajax.org Phone: +595-961-974165 -- http://mail.python.org/mailman/listinfo/python-list

Re:Re: Output buffer

2007-12-23 Thread Cesar D. Rodas
On 22/12/2007, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > Cesar D. Rodas wrote: > > > I am newbie in Python, but I like it very much. > > > > Right now I am having a problem, I am working with mod_python in apache. > > What I needing is a stdout buffe

Re: Happy Christmas Pythoneers

2007-12-23 Thread Cesar D. Rodas
like to > > wish you all a Merry Xmas. > > > > - Paddy. > > -- > > http://mail.python.org/mailman/listinfo/python-list > > > > > > -- > Regards-- > Rishi Pathak > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- Bes

Dell Support Web Site Automation.

2006-04-25 Thread S. D. Rose
Hello all. Awhile back I was playing with win32all package to get system information from the Dell PCs. However, I'm using a win32 program, bginfo, to get the information on the PC and insert it into a MySQL database. Of the fields I'm recording, I am saving the system serial number. I was w

Re: pythoncode in matlab

2006-05-11 Thread patrick . d . hull
check out PyMat: http://claymore.engineer.gvsu.edu/~steriana/Python/pymat.html I've never used it but I believe it should work for your needs. However, I highly recommend taking a look at SAGE: http://modular.math.washington.edu/sage/ which has an interface to octave. -ph -- http://mail.python.

Re: pythoncode in matlab

2006-05-11 Thread patrick . d . hull
> PyMat will not help you! PyMat works the other way around, ie it > allows for Matlab calls from Python. excuse my ignorance: but why would that not be helpful? I may be missing something blindingly stupid (very possible) but it seems to me using PyMat would be just as powerful (if not more) as

Re: [silly] Does the python mascot have a name ?

2006-05-16 Thread John D Salt
Steve <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > umm, was just wondering, does the python mascot have a name ? I always assumed it was Monty, but I confess to not having the slightest factual basis for this belief. All the best, John. -- http://mail.python.org/mailman/listinfo/

Re: [silly] Does the python mascot have a name ?

2006-05-17 Thread John D Salt
Andy Sy <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > http://mail.python.org/pipermail/python-list/2003-September/185612.html "Odi" must be the Dutch for "Monty". All the best, John. -- http://mail.python.org/mailman/listinfo/python-list

Re: python vs perl lines of code

2006-05-17 Thread brian d foy
In article <[EMAIL PROTECTED]>, Edward Elliott <[EMAIL PROTECTED]> wrote: > This is just anecdotal, but I still find it interesting. Take it for what > it's worth. I'm interested in hearing others' perspectives, just please > don't turn this into a pissing contest. > > I'm in the process of con

Re: [silly] Does the python mascot have a name ?

2006-05-18 Thread John D Salt
John Bokma <[EMAIL PROTECTED]> wrote in news:Xns97C6ADE23FCAcastleamber@ 130.133.1.4: > John D Salt wrote: > >> Andy Sy <[EMAIL PROTECTED]> wrote in >> news:[EMAIL PROTECTED]: >> >>> http://mail.python.org/pipermail/python-list/2003-September/1

Re: [silly] Does the python mascot have a name ?

2006-05-19 Thread John D Salt
Mel Wilson <[EMAIL PROTECTED]> wrote in news:_s2bg.8867$aa4.296233 @news20.bellglobal.com: [Snips] > Just reinforces the central truth. The mascot doesn't > *have* a name. Most things don't. Most things don't have names? I'll believe you if you can give me a list of ten things that don't hav

Iterators: Would "rewind" be a good idea?

2006-05-21 Thread Charles D Hixson
I was reading through old messages in the list and came up against an idea that I thought might be of some value: "Wouldn't it be a good idea if one could "rewind" an iterator?" Not stated in precisely those terms, perhaps, but that's the way I read it. I appreciate that one could use a sequence r

Re: Software Needs Philosophers

2006-05-23 Thread John D Salt
<[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: [Snips] > Wrong. We live in a paradise of ideas and possibilities well beyond the > wildest dreams of only 20 years ago. What exciting new ideas exist in software that are both important and cannot be traced back to 1986 or earlier? I'd like

Re: Software Needs Philosophers

2006-05-23 Thread John D Salt
"John A. Bailo" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: [Snips] > What exciting new ideas exist in software that are both important and > cannot be traced back to Doug Engbart's 1968 presentation at Xerox > Parc? The only two I would think worth mentioning are Nygaard et al's idea

Re: Software Needs Philosophers

2006-05-23 Thread John D Salt
Eli Gottlieb <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: [Snips] > I correct: We live in a paradise where we finally have to processing > power to realize all those ideas that were too inefficient 20 years > ago. That sounds more reasonable. In my more jaundiced moments, I think that

Windows AVIFile problems

2008-01-25 Thread c d saunter
Hi All, I'm trying to access individual video frames of an AVI file from within Python 2.4 or 2.5 under Windows XP. I have found this example code here for that does exactly what I want, using the windows avifile.dll but I am unable to find the AVIFile.h header... http://mail.python.org/piperm

Re: Windows AVIFile problems

2008-01-25 Thread c d saunter
Thomas Heller ([EMAIL PROTECTED]) wrote: : c d saunter schrieb: : > Hi All, : > : The dll is not corrupt. It is the 16-bit dll, possibly present for legacy : 16-bit support. Thomas, Thanks, that explains a lot. Regards, Chris Saunter -- http://mail.python.org/mailman/li

Re: Parallel port control with USB->Parallel converter

2008-02-14 Thread c d saunter
Soren, I don't know about the USB parallel port converters but there are variousways you can add USB connectivity yourself. A simple way are the USB devices from FTDI (http://www.ftdichip.com/FTProducts.htm) Either the FT232R or the FT245R. These are both single chip solutions that

Re: Parallel port control with USB->Parallel converter

2008-02-14 Thread c d saunter
you'd want the 245. regards cds c d saunter ([EMAIL PROTECTED]) wrote: : Soren, : I don't know about the USB parallel port converters but there are : variousways you can add USB connectivity yourself. : A simple way are the USB devices from FTDI : (http://www.ftdichip.com

Unexpected string behaviour: txt = 'this' ' works'

2009-02-11 Thread c d saunter
I did a double take when debugging an error the other day. My problem was missing out a comma when building a list of strings. Much to my surprise the offending code still executed to cause problems later on: >>> txt = 'this', 'works' >>> print txt ('this', 'works') # As expected >>> txt = 'this

Re: Unexpected string behaviour: txt = 'this' ' works'

2009-02-11 Thread c d saunter
Bruno Desthuilliers (bruno.42.desthuilli...@websiteburo.invalid) wrote: : c d saunter a écrit : : > I did a double take when debugging an error the other day. My : > problem was missing out a comma when building a list of strings. : > : > Much to my surprise the offending code still

Debugging a Python Program that Hangs

2008-12-02 Thread Kevin D . Smith
ack either. Looking through the python debugger documentation, I don't see how to run a python program and interactively stopping it while it is running. Is there a way to stop within a running python program to see where it is getting hung up? -- Kevin D. Smith -- http://mail.python.org/m

PIL: Getting a two color difference between images

2008-10-24 Thread Kevin D . Smith
different. Right now I get black where it wasn't different, and abs(image1-image2) where it was different. It would be nice if I could specify the colors for difference and no difference. This sounds like it should be easy, but I just don't see how to do it. -- Kevin D. Smith -- ht

Re: PIL: Getting a two color difference between images

2008-10-27 Thread Kevin D . Smith
On 2008-10-25 12:41:51 -0500, [EMAIL PROTECTED] said: Kevin D. Smith: What I want is a two color output image: black where the image wasn't different, and white where it was different.< There are several ways to do that. If speed isn't essential, then you can create a third blank

Doc strings in descriptors

2009-05-02 Thread Kevin D . Smith
return result The problem is that when I use the help() function on them, I don't get the doc string from the function that is being wrapped. Instead, I get the following: hasEmployees = What do I need to do to get the doc string of the wrapped function to apper when using help()?

heapq.merge with key=

2009-05-07 Thread Kevin D . Smith
doesn't have this argument and I don't understand the code enough to know if it's possible to add it. Is this enhancement possible without drastically changing the current code? -- Kevin D. Smith -- http://mail.python.org/mailman/listinfo/python-list

Re: heapq.merge with key=

2009-05-08 Thread Kevin D . Smith
On 2009-05-07 23:48:43 -0500, Chris Rebert said: On Thu, May 7, 2009 at 2:23 PM, Kevin D. Smith wrote: I need the behavior of heapq.merge to merge a bunch of results from a database.  I was doing this with sorted(itertools.chain(...), key= ...), but I would prefer to do this with

Language detector using N-grams

2009-05-12 Thread Cesar D. Rodas
Hello Pythoners! I just finished my first useful project in Python, It is a language detector using N-grams. I hope this can be useful for someone, http://github.com/crodas/py-languess/tree/master The License of the project is BSD Best regards -- Cesar D. Rodas http://cesar.la/ Phone: +595

<    1   2   3   4   5   6   >