Re: Newbie, homework help, please.

2012-04-21 Thread GrayShark
A lot of to do about this. --- #!/usr/bin/python xl = ["First Name and Last","ENGR 109-X","Fall 2999","Format Example"] xl_max = 0 for x in xl: xl_max = max ( len( x ), xl_max ) topBorder = '^'*( xl_max + 4 ) print topBorder for x in xl: print "* %s%s *

Re: From Python on Solaris to Python on LINUX

2011-09-15 Thread GrayShark
I think that was more of a version question the Kernel questin 1) you can install any and all versions python on a linux computer. You just need you app to select the correct path, correct python interpret. Likely there many be some some drivers in /dev that are not the same as in Solaris. But th

Re: Purely historic question: VT200 text graphic programming

2011-03-11 Thread GrayShark
old programmer inertia). Inertia, friend and foe. Otherwise I worked with a host of government contractors, each with their own version of C; each used their specialized version to prevent tax payer contracts from going to another contractor. Thank goodness for standardization. Finally the DOD co

Re: Purely historic question: VT200 text graphic programming

2011-03-11 Thread GrayShark
Aw! to stray down memory lane. Well enough straying. Back to work. GrayShark -- http://mail.python.org/mailman/listinfo/python-list

Re: Purely historic question: VT200 text graphic programming

2011-03-11 Thread GrayShark
On Fri, 11 Mar 2011 00:26:37 -0800, Dennis Lee Bieber wrote: > On Thu, 10 Mar 2011 19:55:02 + (UTC), Grant Edwards > declaimed the following in > gmane.comp.python.general: > >> vt200 terminals. The vt200 wasn't a TV. It was a character-based, >> mostly-ANSI-escape-sequence, computer termi

Re: Purely historic question: VT200 text graphic programming

2011-03-11 Thread GrayShark
n, be printed. By 1998, Cobol programs were rare (although the language was pretty easy to learn). So: Fortran, C, Pascal, Cobol, Ada and ... APL. Let's see how many remember that very fun language (and I mean fun). GrayShark -- http://mail.python.org/mailman/listinfo/python-list

Re: Purely historic question: VT200 text graphic programming

2011-03-10 Thread GrayShark
On Thu, 10 Mar 2011 18:02:41 +, Grant Edwards wrote: > On 2011-03-10, Adam Tauno Williams wrote: >> On Thu, 2011-03-10 at 00:38 -0600, GrayShark wrote: >>> Once, many, many, years ago, I programmed some type of 'graphical' >>> interface on a VT200 termi

Re: Purely historic question: VT200 text graphic programming

2011-03-10 Thread GrayShark
Yes, Curses, how could I forget that. Thanks Steven On Thu, 10 Mar 2011 05:34:35 -0500, Adam Tauno Williams wrote: > On Thu, 2011-03-10 at 00:38 -0600, GrayShark wrote: >> Once, many, many, years ago, I programmed some type of 'graphical' >> interface on a VT200 t

Purely historic question: VT200 text graphic programming

2011-03-09 Thread GrayShark
Once, many, many, years ago, I programmed some type of 'graphical' interface on a VT200 terminal (only DEC VAX/VMS programmers are going to know what this is). Question. What was the library I linked against? Yes, you remember, painting boxes with ascii and the superset of ascii. Thanks for th

Re: Line breaks in list causing a small formatting problem while joining the list

2011-01-21 Thread GrayShark
On Fri, 21 Jan 2011 07:39:26 -0800, Oltmans wrote: > Hi Python gurus, hope you're doing well. I've a small problem. > > When I run the following code > ___ names = ['oltmans','abramhovic','\n','sal','lee'] print '| ' + ' | '.join(names) >

Re: Fitness data program

2011-01-15 Thread GrayShark
On Sat, 15 Jan 2011 19:48:40 +, Katie T wrote: > On Sat, Jan 15, 2011 at 5:47 PM, Antonio Cardenes > wrote: >> Hello folks, I'm trying to improve my Phyton skills with a project: A >> fitness program that can correlate measurements (weight and size of >> various body parts), date taken and it

Re: Help with code-lists and strings

2011-01-05 Thread GrayShark
On Wed, 05 Jan 2011 14:58:05 -0500, Terry Reedy wrote: > On 1/5/2011 12:57 PM, Cathy James wrote: > >> I am learning python and came across an excercise where i need to use >> lists to strip words from a sentence; starting with those containing >> one or more uppercase letters, followed by words

Re: Scanning directories for new files?

2010-12-21 Thread GrayShark
On Tue, 21 Dec 2010 14:17:40 -0500, Matty Sarro wrote: > Hey everyone. > I'm in the midst of writing a parser to clean up incoming files, remove > extra data that isn't needed, normalize some values, etc. The base files > will be uploaded via FTP. > How does one go about scanning a directory for n

seeking pygtk bindings for gtkdatabox

2010-12-21 Thread GrayShark
Hello, a search for the python bindings for gtkdatabox lead no where. Anyone know of who is maintaining/working/siting such a package? Thanks in advance. Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL

2010-08-03 Thread GrayShark
As we seem to be at an impasse with respect to PIL and xpm, I know gimp does support saving as xpm and that gimp has a python language console. Perhaps parvini_na...@yahoo.com, could look to the gimp mailing list for help? Steven On Tue, 03 Aug 2010 01:56:20 -0700, Chris Rebert wrote: > On T

Re: refactoring a group of import statements

2010-06-27 Thread GrayShark
ls()[x] = __import__( x ) >>> dir() ['__builtins__', '__doc__', '__name__', '__package__', 'string', 'x'] >>> --ends-- That was what I was looking for. All the rest, the arguments were unhelpful. Question: If you can&#

refactoring a group of import statements

2010-06-27 Thread GrayShark
e ab get's assign in the application as mod. Tried: for mod in ['ab', 'cd', 'ef' ]: ('%s' % mod ) = __import__( mod ) Still no joy. I need a way to deference the the string in mod to be just a variable. Any suggestions? GrayShark -- http://mail.python.org/mailman/listinfo/python-list

Re: deprecated string module issue

2010-06-25 Thread GrayShark
sting. Perhaps you should just ignore ones that aren't interesting to you? Or get a life and a girl/boy friend, so you'll have less time to make snipping remarks (check out: 'http://www.thefreedictionary.com/snipe' if you don't understand snipe). have a better day. Gra

Re: deprecated string module issue

2010-06-25 Thread GrayShark
On Fri, 25 Jun 2010 01:29:22 +, Benjamin Peterson wrote: > GrayShark gmail.com> writes: > >> Sorry, I meant "from string import lowercase, uppercase" > > Technically, you should use ascii_lowercase and ascii_uppercase, though > I don't know if

Re: deprecated string module issue

2010-06-24 Thread GrayShark
On Jun 24, 10:06 am, GrayShark wrote: > In my code I have: > from string import lower, upper > > When I use pylint on the program I get just one warning: > > Uses of a deprecated module 'string'. > > Iv'e noted that many if not all string functions are now

deprecated string module issue

2010-06-24 Thread GrayShark
In my code I have: from string import lower, upper When I use pylint on the program I get just one warning: Uses of a deprecated module 'string'. Iv'e noted that many if not all string functions are now in _builtin_. Where are the constants? Thanks Steven -- http://mail.python.org/mailman/list