Re: path stuff

2007-05-12 Thread BartlebyScrivener
On May 9, 1:11 pm, fscked <[EMAIL PROTECTED]> wrote: > I am walking some directories looking for a certain filename pattern. > This part works fine, but what if I want to exclude results from a > certain directory being printed? You might find this thread helpful http://tinyurl.com/2guk3l Note h

Re: need help with python

2007-05-12 Thread BartlebyScrivener
I'm not sure how you installed Python, or how you are using it, but I made something last year to help Windows XP users who are brand new to Python and can't get things to run, etc. You might try either jumping into somewhere midway, or if you keep having trouble, uninstall whatever you installed

Re: need help with python

2007-05-13 Thread BartlebyScrivener
On May 13, 10:10 am, [EMAIL PROTECTED] wrote: > > That is one of my problems, I don't know exactly how the whole command > line thing works. That's why I pointed you to the link. The ActiveState distribution will automatically add the correct paths to your environment and tell Windows that .py fil

Re: GUI tutorial

2007-05-13 Thread BartlebyScrivener
On May 13, 12:51 pm, John K Masters <[EMAIL PROTECTED]> wrote: > Can someone point me in the direction of a good tutorial on programming > python with a GUI? Alan Gauld added a gui programming tutorial to his main course. http://www.freenetpages.co.uk/hp/alan.gauld/ It's a frame page so I can't

Re: Iron Python

2007-05-15 Thread BartlebyScrivener
On May 15, 5:22 am, John Machin <[EMAIL PROTECTED]> wrote: > > > Anybody tried it? > > > Me. > > Me too. Anybody like it? rd -- http://mail.python.org/mailman/listinfo/python-list

Re: ten small Python programs

2007-05-27 Thread BartlebyScrivener
On May 26, 1:43 pm, Steve Howell <[EMAIL PROTECTED]> wrote: > -- > parentRabbits, babyRabbits = (1, 1) > while babyRabbits < 100: > print 'This generation has %d rabbits' % > babyRabbits > parentRabbits, babyRabbits = (babyRabbits, > parentRabbits + babyRabbits) > >

Tkinter error

2007-05-28 Thread BartlebyScrivener
Finally started trying to build a simple gui form for inserting text data into a mysql db of quotations. I found this nice Tkinter tutorial, http://www.ibiblio.org/obp/py4fun/gui/tkPhone.html but midway I'm getting an error. from Tkinter import * >>> win = Tk() >>> f = Frame(win) >>> b1 = But

Re: Tkinter error

2007-05-28 Thread BartlebyScrivener
On May 28, 4:57 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > >>> b1 = Button(win,text="One") > >>> b2 = Button(win,text="Two") That worked. Thank you. Rick -- http://mail.python.org/mailman/listinfo/python-list

wxpython demo error on debian etch

2007-05-29 Thread BartlebyScrivener
If there is a wxPython on Debian user in the house? I am using the version of the demo that came with the apt-get download of wxPython. I thought I'd followed the instructions for installing and unpacking the wxPython demo program. It appears to run after a fashion, but I also get this at the comm

Re: wxpython demo error on debian etch

2007-05-29 Thread BartlebyScrivener
On May 29, 8:51 am, [EMAIL PROTECTED] wrote: > The wxPython > website details how to get the latest version of wxPython (2.8.4) I'm fairly new to Linux, so I probably shouldn't mess with my stable Etch. I'll make do with this version of wxPython or go back to puzzling over Tkinter. Thanks, ric

Re: wxpython demo error on debian etch

2007-05-29 Thread BartlebyScrivener
On May 29, 1:09 pm, [EMAIL PROTECTED] wrote: > The newer versions of wxPython won't make your Debian crash or > anything. Thanks, mike, i'll try it. rick -- http://mail.python.org/mailman/listinfo/python-list

paste text with newlines into raw_input?

2007-05-30 Thread BartlebyScrivener
Using Python on Debian Etch. What is the best way to paste a block of text in at the command prompt. I'm trying something like: Quote = raw_input("Paste quote here: ") Which works great for one line of text with a single newline. It gets stripped. Okay. Is there a way to paste in a block of te

Re: wxpython demo error on debian etch

2007-05-30 Thread BartlebyScrivener
On May 29, 1:09 pm, [EMAIL PROTECTED] wrote: > The newer versions of wxPython won't make your Debian crash or > anything. We run Debian at work and I've upgraded the Python to 2.4 > and the wxPython to its newest version. This has not affected the > server's stability in any way. Install like this

Re: paste text with newlines into raw_input?

2007-05-31 Thread BartlebyScrivener
Thanks, I think I need a Tkinter text entry widget, but it will take me a week to learn how to set it up. I'll report back. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: Where do they tech Python officialy ?

2007-07-23 Thread BartlebyScrivener
On Jul 23, 11:52 am, NicolasG <[EMAIL PROTECTED]> wrote: > > Does some one have any suggestions on which University to attend ? > Alternatives solutions are welcome.. You might like this thread. Or go to comp.lang.python and search for "python taught in schools" http://tinyurl.com/2zlsxl rd --

Re: how to get next month string?

2007-07-24 Thread BartlebyScrivener
On Jul 24, 5:31 am, "Yinghe Chen" <[EMAIL PROTECTED]> wrote: > Hi, > Could someone help on how to use python to output the next month string like > this? > > "AUG07", suppose now is July 2007. > I usually find time and date answers somewhere in here: http://pleac.sourceforge.net/pleac_python/date

Re: i am new to python-Please somebody help

2007-08-02 Thread BartlebyScrivener
On Aug 2, 4:31 am, [EMAIL PROTECTED] wrote: > > i want the packages file with > a ".gz" extension by implementing a python program http://docs.python.org/lib/module-gzip.html -- http://mail.python.org/mailman/listinfo/python-list

Re: the one python book

2007-08-04 Thread BartlebyScrivener
On Aug 4, 8:23 am, "dhr" <[EMAIL PROTECTED]> wrote: > newbie question: > > Is there a 'K&R" type of Python book? The book that you'd better have on > your shelf if you are going into Python? I second the comment about the Official Python Tutorial, however you did say, "on the shelf" in which case

Re: 'Advanced' list comprehension? query

2007-08-08 Thread BartlebyScrivener
On Aug 8, 11:00 am, [EMAIL PROTECTED] wrote: > Hi, > > I'm playing around with list comprehension, and I'm trying to find the > most aesthetic way to do the following: > > I have two lists: > > noShowList = ['one', 'two', 'three'] > > myList = ['item one', 'item four', 'three item'] > > I want to s

Re: Simple python iteration question

2007-08-15 Thread BartlebyScrivener
On Aug 14, 11:59 am, "Shawn Milochik" <[EMAIL PROTECTED]> wrote: > Just for my own sanity: Isn't this the third response advocating the > use of enumerate()? Did the other responses not get through, or was > this a time-delay thing? > > Thanks, > Shawn Look at the timestamps. All within ten minu

Re: A problem with Time

2007-08-16 Thread BartlebyScrivener
On Aug 16, 10:54 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > RTFM is the answer... I don't know. I remember scratching my head for a day or two over the module explanations and instructions until I found a little howto with a lot of explicite examples. http://pleac.sourceforge.net/pleac_

Re: Baby Steps, optionDB

2007-08-22 Thread BartlebyScrivener
On Aug 22, 10:41 pm, "W. Watson" <[EMAIL PROTECTED]> wrote: > clError: couldn't open "optionDB": no such file or directory Because the file doesn't exist? Did you make an optionDB file? http://tinyurl.com/283o98 -- http://mail.python.org/mailman/listinfo/python-list

Re: why should I learn python

2007-09-06 Thread BartlebyScrivener
On Sep 6, 5:36 pm, André <[EMAIL PROTECTED]> wrote: > Easy to read, easy to write, good libraries and, I have found, an > extremely helpful community. > > Hobbyists (like me) can work on projects written in Python on and off > (sometimes for weeks if not months without programming) and be able to

Re: Is a Borg rebellion possible? (a metaclass question)

2007-09-07 Thread BartlebyScrivener
On Sep 7, 1:53 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > All you really need is to create your SplinterBorgs with appropriate > group names, you don't neef subclasses at all: > Dang. With that subject heading I thought this was about some post- Singularity, Python-programmed cyborgs rising up

Re: Is a Borg rebellion possible? (a metaclass question)

2007-09-07 Thread BartlebyScrivener
On Sep 7, 1:53 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > All you really need is to create your SplinterBorgs with appropriate > group names, you don't neef subclasses at all: oops, I tried this once and the link broke. I'll try tinyurl. Dang. With that subject heading I thought this was abou

Re: Search path for python script

2007-09-12 Thread BartlebyScrivener
On Sep 12, 4:40 pm, grt <[EMAIL PROTECTED]> wrote: > > I'm trying to run a script by typing: > > python test.py > What happens if you just type: test.py or test and hit Enter? rd -- http://mail.python.org/mailman/listinfo/python-list

Re: Python books?

2007-03-14 Thread BartlebyScrivener
On Mar 14, 3:50 pm, [EMAIL PROTECTED] (Aahz) wrote: > Some people prefer shorter books -- Python for Dummies (for new > programmers) and Python in a Nutshell (for experienced programmers) both > try to give a thorough survey of Python while keeping the book easy to > carry. And other people like

Re: Mastering Python

2007-03-16 Thread BartlebyScrivener
On Mar 16, 8:39 am, "Paul McGuire" <[EMAIL PROTECTED]> wrote: > > Wow, are you still reading? Quit wasting time and go download a > Python dist and get started already! > I think you should extract that and spend twenty minutes tidying it up and then publish it to the Python for Programmers page

Re: Wanted: Email Client with GUI

2007-04-18 Thread BartlebyScrivener
On Apr 18, 9:25 am, Franz Steinhaeusler <[EMAIL PROTECTED]> wrote: > >> What I want is a program (it doesn't have to be so sophisticated > >> as thunderbird) written totally in python and using a gui > >> toolkit like pyqt, pygtk, wxpyhton or tkinter. Why reinvent the wheel? Why not use Mutt and

Re: vi and python

2007-09-14 Thread BartlebyScrivener
On Sep 14, 7:35 pm, "Danyelle Gragsone" <[EMAIL PROTECTED]> wrote: > Good Evening, > > I am running gentoo. I want to use vi to program in python. I > wondered are there any other gentooovians out there who know if python > support is already installed. http://tinyurl.com/2mzakm rd -- http://

pydoc script.py vs. pydoc scriptpy

2007-10-20 Thread BartlebyScrivener
On Debian Etch, if ~/mypyscripts is in my bash PATH and also in PYTHONPATH, I get the following pydoc behaviors. Maybe this is intentional. I'm just checking to be sure I don't have something misconfigured in my environment. If I have two scripts or modules in ~/mypyscripts: one script.py and one

Re: how to creating html files with python

2007-10-27 Thread BartlebyScrivener
On Oct 27, 12:02 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > The only strange thing here is that you think this is a strange > requirement :) This is quite typical, and practically required for web > development. I was wondering about this myself the other day. Suppose you wanted to get by on

Re: python in academics?

2007-10-30 Thread BartlebyScrivener
On Oct 29, 10:39 pm, sandipm <[EMAIL PROTECTED]> wrote: > seeing posts from students on group. I am curious to know, Do they > teach python in academic courses in universities? This came up a while back. See: http://tinyurl.com/2pjjua If that doesn't work, search the Google group for "Python tau

Re: python2.5 and mysqldb

2007-10-30 Thread BartlebyScrivener
On Oct 29, 2:30 pm, brad <[EMAIL PROTECTED]> wrote: > or get a > more flexible OS that easily allows for this sort of thing (like Debian) Second that. Etch came with 2.3 and 2.4, and I added 2.5 and they never bother each other. rd -- http://mail.python.org/mailman/listinfo/python-list

Re: Readline and record separator

2007-10-30 Thread BartlebyScrivener
On Oct 30, 7:21 am, Johny <[EMAIL PROTECTED]> wrote: > My problem is that my record consits several '\n' and when I use > readline it does NOT read the whole my record. > So If I could change '\n' as a record separator for readline, it > would solve my problem. Python Cookbook (great book!) 2nd E

Re: python newbie

2007-11-02 Thread BartlebyScrivener
On Nov 2, 8:51 am, Jim Hendricks <[EMAIL PROTECTED]> wrote: > New to python, programming in 15 or so langs for 24 years. > > Couple of questions the tuts I've looked at don't explain: Did you look at THE tut? You would seem to be the perfect reader for it, because you are already a programmer. h

Re: python newbie

2007-11-02 Thread BartlebyScrivener
On Nov 2, 10:13 am, Jim Hendricks <[EMAIL PROTECTED]> wrote: > Here's an example of what I am asking: Try this example from Beazley (pg 82) a = 42 def foo(): a = 13 foo() print a 42 By contrast: a = 42 b = 13 def foo(): global a, b a = 13 b = 0 foo() print a 13 print b 0 -- h

Re: What is a perl hash in python

2007-01-12 Thread BartlebyScrivener
Karyn Williams wrote: > > For future reference, why is direct use of the string module frowned upon, > and what does one use instead ? > Karyn, http://docs.python.org/lib/node42.html rd -- http://mail.python.org/mailman/listinfo/python-list

Re: indentation in python

2007-01-13 Thread BartlebyScrivener
lee wrote: > Can anyone tell me the basics about indentation in python..how we > use it in loops and constructs..etc http://docs.python.org/tut/node5.html#SECTION00520 -- http://mail.python.org/mailman/listinfo/python-list

GetBoundingMetrics

2007-01-22 Thread BartlebyScrivener
Hi, I have been moving from Windows XP to Debian Etch. Most of my Python scripts work fine with minor modifications. However, I have a script that launches a browser and goes to various sites using the Python module webbrowser.open ("url-goes-here") On Debian Etch, Firefox (or IceWeasel, I guess)

Re: GetBoundingMetrics

2007-01-22 Thread BartlebyScrivener
BartlebyScrivener wrote: > I don't get it if I just launch > firefox from the commandline. Only when I use the Python module. I spoke too soon. I do get it from the command line if firefox is not already running. Same is true with the Python script. Must be a Gnome or Debian thing

Re: How can I access data from MS Access?

2007-02-06 Thread BartlebyScrivener
On Feb 5, 4:52 am, "Andy Dingley" <[EMAIL PROTECTED]> wrote: > On 3 Feb, 15:43, [EMAIL PROTECTED] wrote: > > > How to access data from MS Access? > > First of all check that the DSN is working and connects to the > back end MDB. This might not be Python's problem. > > Secondly check whatever errors

python equivalent of bash find

2007-03-01 Thread BartlebyScrivener
I recently moved from XP to Linux, but would like to use Python whenever possible. line from bash script: find ~/Mail -xdev -type f \( -mtime 0 -or -mtime 1 \) -exec cp -aPvu "{}" /backup-dest \; What modules would I use to accomplish this in Python? Or any other Python tricks to copy or backup

Re: python equivalent of bash find

2007-03-01 Thread BartlebyScrivener
> You can probably replicate that using the modules os and shutil. Thank you both for the quick response. rd -- http://mail.python.org/mailman/listinfo/python-list

Re: python equivalent of bash find

2007-03-01 Thread BartlebyScrivener
On Mar 1, 3:58 pm, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > MHO is that you'd better learn linux (well... Unix) tools. Reinventing > the SquareWheel(tm) is usually not a good idea. I agree. It's just a matter of experience and learning when to use Unix tools and when to use Python. The

python tutorial on a single html page?

2007-11-02 Thread BartlebyScrivener
Is the main Python tutorial posted on single searchable page somewhere? As opposed to browsing the index and clicking NEXT etc. Thank you, rd -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE

2007-11-03 Thread BartlebyScrivener
On Nov 3, 9:11 am, Simon Pickles <[EMAIL PROTECTED]> wrote: >I need a Python IDE and debugger . . . I use vim on both Windows XP and Debian, but I used to use Komodo for big projects. Try the free trial of Komodo http://www.activestate.com/Products/komodo_ide/ It has what you want, and it come

Re: how to keep order key in a dictionary

2007-11-04 Thread BartlebyScrivener
On Nov 4, 7:19 am, azrael <[EMAIL PROTECTED]> wrote: > For this dictionary it is realy > important to keep the right order. Is it possible to arange them in a > specific order? Not sure what order you want, but how about sorting the keys? def printdict(dict): """print sorted key:value pairs"""

subprocess chokes on spaces in path

2007-11-06 Thread BartlebyScrivener
Using bash on Debian Etch. If word_doc = sys.argv[1] and it's a file name like My\ Word.doc this function reads My and Word as two separate files unless the second '%s' is quoted. Took me a lot of trial and error to discover. Is this the most elegant way to do it? I was using popen originally, th

Re: subprocess chokes on spaces in path

2007-11-07 Thread BartlebyScrivener
On Nov 6, 2:48 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > Use a list of arguments [antiword, word_doc] and let subprocess handle the > spaces the right way. > Got it working. Thank you both. p = subprocess.Popen([antiword, word_doc], stdout=subprocess.PIPE) doc_text = p.stdout.read()

Re: regular expression syntax the same in Python, Perl and grep?

2007-11-07 Thread BartlebyScrivener
On Nov 7, 12:11 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > How similar is Python's re module (regular expressions) compared > to Perl's and grep's regular expression syntaxes? http://en.wikipedia.org/wiki/Comparison_of_regular_expression_engines rd -- http://mail.python.org/mailman/l

Re: Python too complex ?!?!?!

2007-11-17 Thread BartlebyScrivener
On Nov 17, 7:46 am, Brian <[EMAIL PROTECTED]> wrote: > This person is a long-term Linux/C/Python > programmer, but he claims that the install, config, and > library models for C# have proved to be less > problematic than Python. If his students have problems installing Python on Windows, show him

Re: Python web frameworks

2007-11-20 Thread BartlebyScrivener
On Nov 20, 6:19 am, joe jacob <[EMAIL PROTECTED]> wrote: > There are a lot of web frameworks for python like django, mod_python, > spyce, turbo gears, Zope, Cherrypy etc. Which one is the best in terms > of performance and ease of study. I'm looking at django mainly. I hope the veterans jump in wi

Re: Python web frameworks

2007-11-20 Thread BartlebyScrivener
On Nov 20, 3:39 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > This only holds if actually hosted on Apache. As Django these days > supports WSGI interface there is nothing to stop it being run with > other hosting solutions that support WSGI. So, you could host it under > paster or CherryPy WS

Re: Python web frameworks

2007-11-21 Thread BartlebyScrivener
On Nov 21, 4:42 am, joe jacob <[EMAIL PROTECTED]> wrote: > Django is best among the frameworks so I > downloaded it and I found it very difficult to configure. I referred > the djangobook. It's not a turnkey type thing like WordPress or Joomla. It's a webframework. Also watch versions. The book ex

Re: Python web frameworks

2007-11-23 Thread BartlebyScrivener
I'm just learning Django and feeling my way through all of this server terminology. Where does Django's memcached feature fit into all of this? When you all speak of start up costs and memory intensive loading for each requests, doesn't the caching feature eliminate most of that overhead? http://w

Re: reading/writing files

2007-11-27 Thread BartlebyScrivener
On Nov 27, 7:14 am, sandipm <[EMAIL PROTECTED]> wrote: > f1= open("file1.pdf", "rb") > x = f1.read() > open("file2.pdf", "wb").write(x) > > works... > > thanks > sandip You might also like: http://pybrary.net/pyPdf/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Books on Python

2007-11-27 Thread BartlebyScrivener
On Nov 27, 9:05 pm, "barcaroller" <[EMAIL PROTECTED]> wrote: > Can someone kindly recommend some good books on the following: > > Python for beginners > Python for advanced users > http://wiki.python.org/moin/PythonBooks -- http://mail.python.org/mailman/listinfo/python-list

Re: Fixing Python instalation in win2000 by hand

2006-04-17 Thread BartlebyScrivener
>> the reason I can't move to brand new installation is because I am missing >> sound drivers. If I were you, I'd download the latest ActiveState version of Python from: http://www.activestate.com/Products/ActivePython/ I would install it from c:\ Who cares about sound drivers if all you want

Re: MySql -python 1.2.1_p2 and visual c++ toolkit

2006-04-17 Thread BartlebyScrivener
I'm pretty new myself. But if you don't get anywhere using mysql-python, I can recommend mxODBC. I have connected to both MS Access DB and MySQL DB. You get it from: http://www.egenix.com/files/python/mxODBC.html But read the instructions carefully as I think there are two things to install. If

Re: Ironpython book?

2006-04-17 Thread BartlebyScrivener
I'll let somebody jump in and say, "You're crazy!" But it seems to me the interest in IronPython on this list is pretty subdued. Maybe because most people are running on Linux or Macs? Here's a thread http://groups.google.com/group/comp.lang.python/browse_thread/thread/2762f6dfc5f72651/ I would

Re: Ironpython book?

2006-04-17 Thread BartlebyScrivener
Alex: So is the ruling hierarchy all using the UNIX command line on Mac OSX? Free BSD? Linux? I'm a struggling novice. I'm just curious. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: Ironpython book?

2006-04-17 Thread BartlebyScrivener
>> Who's "the ruling hierarchy"? I guess I just meant the congnoscenti. Them that knows what's what. >> I'm a Mac fan, with Linux a close second I suspected. I've played with Linux distros, but never a Mac. That takes more $$ than M$, and Apple is even more proprietary than MS, if you ask me. It

Re: Ironpython book?

2006-04-18 Thread BartlebyScrivener
>> If you are interested in a pure managed-code >> implementation of the Python language, >> you should check out the IronPython project There's the rub. I don't know what "pure managed-code" means. But I'll definitely look into CPython. Thanks rd -- http://mail.python.org/mailman/listinfo/py

Re: Ironpython book?

2006-04-18 Thread BartlebyScrivener
>> I can't comment on this in general, but on the CCC (Chaos Communication >> Congress, a Hacker-con) last year the notebook-distribution was like this: Now THAT sounds like a fun event for a journalist to cover! I'll have to look into that one. Thanks rick -- http://mail.python.org/mailman/li

indirect import of standard module

2006-04-18 Thread BartlebyScrivener
I know this must have been answered a hundred times, but I must be searching on the wrong terminology. Let's say I have a module foo.py that imports os. I make another script called bar.py that imports foo.py and now I want to use, say, os.walk in bar.py. Which is faster or more correct or whate

Re: indirect import of standard module

2006-04-18 Thread BartlebyScrivener
You're right! When running bar.py, id(os) and id(foo.os) give the same number! Cool. I'll go read about INSTANCES and pointers. Thank you very much, rick -- http://mail.python.org/mailman/listinfo/python-list

Re: indirect import of standard module

2006-04-18 Thread BartlebyScrivener
>> More accurately, it *does* import it twice, into two separate >> namespaces; If it's in two different namespaces, how can they have the same id number? rick -- http://mail.python.org/mailman/listinfo/python-list

Re: indirect import of standard module

2006-04-18 Thread BartlebyScrivener
Thank you for the elucidation. I'm just getting into Classes, but I wanted to get modules down first. Much appreciated. rick -- http://mail.python.org/mailman/listinfo/python-list

test for None

2006-04-18 Thread BartlebyScrivener
How do you test for a function that returns nothing, and why doesn't this work? Shouldn't X have to be either None or not? >>>x = None >>> for x in []: ... if x is None: ... print "X is None" ... else: ... print "X is not None" ... Thanks, rick -- h

Re: test for None

2006-04-18 Thread BartlebyScrivener
I think I was trying for something like this, where the intervening for iterates over a function that may or may not produce nothing: x = None for x in []: print x if x is None: print "x is still none because nothing happened" Thanks, rick -- http://m

Re: test for None

2006-04-18 Thread BartlebyScrivener
>> Have you followed the tutorial through, running and understanding each >> example, to get the basics of Python covered? Could be high time to try that again. At first it was way too much, so I've been doing Dive Into Python and some others. But I will try the Tutorial again, at least up to clas

Re: Official Python logo

2006-04-19 Thread BartlebyScrivener
logos: http://www.fastmirrors.org/python/pub/beta.python.org/resources/design/logo/ rick -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE for linux

2006-04-19 Thread BartlebyScrivener
Neil, If you aren't accessing this list via the web, start your browser and go to: http://groups.google.com/group/comp.lang.python In the search box at upper right, type in: ide linux It gets discussed about once a week. A recent long one: http://groups.google.com/group/comp.lang.python/brows

Re: Help! Identical code doesn't work in Wing IDE but does in Komodo.

2006-04-20 Thread BartlebyScrivener
Not sure if this would cause it, but I also have both Wing and Komodo, and when I search for files named FeedParser, I get this: c:/Documents and Settings\Richard Dooling\Local Settings\Application Data\Wing IDE 2\cache\analysis\C\Python24\lib\email\FeedParser.py.ether c:/Program Files\ActiveStat

Re: Confused by Python and nested scoping (2.4.3)

2006-04-20 Thread BartlebyScrivener
>> P.S. I have just noticed that Terry Jan Reedy answered >> similarly. Never mind... Repeat, repeat, repeat until >> you know ;) Yes, and some of us appreciate the extra examples. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: perspective on ruby

2006-04-20 Thread BartlebyScrivener
RK, I always liked this Martelli post, which I found by searching on Ruby early on when I was still trying to decide to learn Python or Ruby. For a mere hobbyist doing both is out of the question: http://groups.google.com/group/comp.lang.python/msg/28422d707512283 If you want more just search on

Re: Looking for a programming resource for newbees

2006-04-20 Thread BartlebyScrivener
Steve, Try this. http://www.freenetpages.co.uk/hp/alan.gauld/ If you were at the Python.org site, and clicked on "Getting started," the first sentence says, "Are you completely new to programming?" That's you, right? ;) http://wiki.python.org/moin/BeginnersGuide/NonProgrammers After you learn

Re: proposed Python logo

2006-04-20 Thread BartlebyScrivener
I like the tadpoles. Yours looks like a phonograph needle, circa 1960. Just my opinion. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: python-mysql on Windows -- How to?

2006-04-21 Thread BartlebyScrivener
Chris, I'm no expert, but this keeps coming up and the last several people have had better luck with mxODBC. http://tinyurl.com/fmp3y But if you're set on MySql-Python someone will jump in to help. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: proposed Python logo

2006-04-21 Thread BartlebyScrivener
No matter what you do, "Python" is going to sum up the image of a powerful snake. I suppose you could change the name to "Monty," if you wanted more humor and more of a reference to Monty Python, or maybe "Bring Out Your Dead." Personally I like the snake associations and the notion that you're jo

Re: what has python added to programming languages? (lets be esoteric, shall we ; )

2006-04-21 Thread BartlebyScrivener
In the Tutorial, the BFDL says: Strings can be subscripted (indexed); like in C, the first character of a string has subscript (index) 0. There is no separate character type; a character is simply a string of size one. Like in Icon, substrings can be specified with the slice notation: two indices

Re: proposed Python logo

2006-04-21 Thread BartlebyScrivener
>> I'd like some variation of used as a logo. That has real potential, but I bet it's trademarked. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: proposed Python logo

2006-04-21 Thread BartlebyScrivener
>> Eric Idle is going to be at my favorite Borders bookstore in half an >> hour. Should I go ask him? (I'm not going to do that; it's just an odd >> coincidence from my point of view.) Speaking of coincidences, you might ask him if Python's Integrated Development Environment is named after him. ;

Re: python-mysql on Windows -- How to?

2006-04-21 Thread BartlebyScrivener
Oh, good. Do report back. It comes up often, and I've used only mxODBC. rd -- http://mail.python.org/mailman/listinfo/python-list

Re: proposed Python logo

2006-04-21 Thread BartlebyScrivener
>> (and it's an older version of the logo) because >> you can get T-Shirts from cafepress.com/pydotorg and any profits go to >> the psf. I just ordered some stuff from cafe press, are you saying I'm getting an old version of the logo? rick -- http://mail.python.org/mailman/listinfo/python-list

Python on WinXP: 7 Minutes To "Hello World!"

2006-04-22 Thread BartlebyScrivener
I started a long email to a friend about how to get up and running on Python, then I thought, why not make something I can post? It's NOT a tutorial. Just a specific, narrow, quick installation guide for Windows XP users. Would love comments, but probably can't incorporate them until Monday, beca

Python Evangelism

2006-04-24 Thread BartlebyScrivener
Python On WinXP: 7 Minutes To "Hello World!" Call it Python for the Complete XP Idiot if you must, but it's getting dugg on digg.com http://digg.com/programming rpd -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I open a mysql database with python

2006-04-25 Thread BartlebyScrivener
Or mxODBC http://www.egenix.com/files/python/mxODBC.html rpd -- http://mail.python.org/mailman/listinfo/python-list

print names of dictionaries

2006-04-26 Thread BartlebyScrivener
Still new. Learning attributes and functions and so on. Sorry if this is obvious, but if I'm defining a function for some dictionaries, how can I print just the names of the dictionaries? E.g. assuming apps, dirs, sites are dictionaries defined in the module, how can I print just their names befo

Re: print names of dictionaries

2006-04-26 Thread BartlebyScrivener
Wow, That's food for thought. Thanks. I see what they mean about change of approach. I'll just stick a key in each dictionary called, er, name with its name value. Thank you! rick -- http://mail.python.org/mailman/listinfo/python-list

Re: print names of dictionaries

2006-04-26 Thread BartlebyScrivener
Yikes, I'll have to come back to the OO way in a month or two ;) This works for now. I just added their names as values: def printdict(dictionaries=[apps, dirs, sites]): for dictionary in dictionaries: print dictionary["name"] keys = dictionary.keys()

Re: print names of dictionaries

2006-04-26 Thread BartlebyScrivener
>> Of course, the easiest way is just to use a tuple (dict,string). I don't mean to be obtuse, but I'm not getting this one either. Is it easier than what I did? Thx, rick -- http://mail.python.org/mailman/listinfo/python-list

Re: print names of dictionaries

2006-04-26 Thread BartlebyScrivener
Thomas, Thanks. I read about tuple packing and unpacking. Now I get to see it in action. Plus, yours is one line shorter. If programming is anything like writing, shorter is almost always better. Thanks, rick -- http://mail.python.org/mailman/listinfo/python-list

Re: finding IP address of computer

2006-04-27 Thread BartlebyScrivener
One way: >>> import socket >>> socket.getaddrinfo(socket.gethostname(), None)[0][4][0] It was the first google hit -- http://mail.python.org/mailman/listinfo/python-list

os.startfile() - one or two arguments?

2006-04-28 Thread BartlebyScrivener
Can any Windows user give a working example of adding a "command verb" to os.startfile()? When I try it, it squawks that it takes only one argument. >>> os.startfile('d:/','explore') Traceback (most recent call last): File "", line 1, in ? TypeError: startfile() takes exactly 1 argument (2 give

Re: os.startfile() - one or two arguments?

2006-04-28 Thread BartlebyScrivener
Whoops! Sorry all. I was using the "in-development" version of the documentation and didn't even realize it. Thank you, Rick -- http://mail.python.org/mailman/listinfo/python-list

Re: os.startfile() - one or two arguments?

2006-04-28 Thread BartlebyScrivener
Neat tutorial. Thank you! Rick -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Databases in Python

2006-04-28 Thread BartlebyScrivener
It might be in his book, Python Web Programming, or just go to http://www.holdenweb.com/ and ask him yourself using the contact form. He's a generous contributor here. rick -- http://mail.python.org/mailman/listinfo/python-list

Re: noob question: "TypeError" wrong number of args

2006-05-01 Thread BartlebyScrivener
No way. You didn't deserve it. Unless you came from another OO language, the Guido tutorial on Classes is unintelligible. It assumes way too much knowledge. But I found something else that looks promising that you may want to peek at: http://pytut.infogami.com/node11-baseline.html rd Reply --

<    1   2   3   4   >