Re: How to compress a folder and all of its sub directories and files into a zip file?

2005-06-27 Thread Peter Szinek
Hi, What about this: import os,zipfile from os.path import join zip = zipfile.ZipFile("myzipfile.zip", 'w') for root, dirs, files in os.walk('.'): for fileName in files: zip.write(join(root,fileName)) zip.close() Maybe it zips also the myzipfile.zip ;-) Probably this is not neede

Re: OO refactoring trial ??

2005-06-27 Thread Chinook
On Tue, 28 Jun 2005 02:22:13 -0400, Peter Otten wrote (in article <[EMAIL PROTECTED]>): > Chinook wrote: > >> 3) Any other comments you might offer > >> if tv == 'relates to A': >> return True >> else: >> return False > > Make that > > return tv == 'relates to A' > > lest your zen master hit

Re: OO refactoring trial ??

2005-06-27 Thread Peter Otten
Chinook wrote: > 3) Any other comments you might offer > if tv == 'relates to A': > return True > else: > return False Make that return tv == 'relates to A' lest your zen master hit you. Peter -- http://mail.python.org/mailman/listinfo/python-list

How to compress a folder and all of its sub directories and files into a zip file?

2005-06-27 Thread could ildg
I want to compress a folder and all of its sub files including empty folders into a zip file. what's the pythonic way to do this? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

OO refactoring trial ??

2005-06-27 Thread Chinook
OO refactoring trial Following is a simple trial structure of a refactoring (top-down to OO) learning exercise I'm doing. Whether you call it a Factory pattern, COR pattern, or some hinze 57, I don't know what class to use till run time and I'm trying to avoid a lengthy "if

Re: Which kid's beginners programming - Python or Forth?

2005-06-27 Thread Brian van den Broek
BORT said unto the world upon 27/06/2005 23:16: > Please forgive me if this is TOO newbie-ish. > > I am toying with the idea of teaching my ten year old a little about > programming. I started my search with something like "best FREE > programming language for kids." After MUCH clicking and high

windows/distutils question

2005-06-27 Thread Paul Rubin
I'm trying to package a windows app with distutils (you've heard about it before). The app needs to store some data on disk and apparently the right place to put it is in the "Application Data" directory. The only way I see to find out the name of this directory is the get_special_folder_path fun

Re: Which kid's beginners programming - Python or Forth?

2005-06-27 Thread Rune Strand
BORT wrote: > Please forgive me if this is TOO newbie-ish. > > I am toying with the idea of teaching my ten year old a little about > programming. I started my search with something like "best FREE > programming language for kids." After MUCH clicking and high-level > scanning, I am looking at

Re: Better console for Windows?

2005-06-27 Thread Rune Strand
Annoyed by windows? Check this URL: http://www.annoyances.org/exec/show/category01 ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Better console for Windows?

2005-06-27 Thread Philippe C. Martin
Ho! I thought the shell commands in ipython (cd, lx ) might cut it. Regards, Philippe Brett Hoerner wrote: > > > Philippe C. Martin wrote: >> You might want to check out ipyhton. > > I use it. :) I love it. When I meant console I meant the shell app > that runs any text-based progra

Re: Which kid's beginners programming - Python or Forth?

2005-06-27 Thread Ivan Van Laningham
Hi All-- Roy Smith wrote: > When you learn Forth, you will have learned Forth. > About the best that can be said about that is that It'll give you a > head-start if your next goal is to learn PostScript :-) > In which case, you should start with PostScript;-) I learned it by plugging a glass

Re: Which kid's beginners programming - Python or Forth?

2005-06-27 Thread D H
BORT wrote: > So, that said... In ~simplest~ terms for the stated goal -- Forth or > Python? > ...the goal is NOT the spelling tutor... it is learning how to use a > tool to solve a problem. I am asking which tool is more suited to an > otherwise arbitrary direction of "spelling tutor program."

Re: Better console for Windows?

2005-06-27 Thread Brett Hoerner
Philippe C. Martin wrote: > You might want to check out ipyhton. I use it. :) I love it. When I meant console I meant the shell app that runs any text-based programs. The windows console was giving me loud beeps, etc, which I've now fixed. Thanks for your reply though, Brett -- http://mail

Re: Better console for Windows?

2005-06-27 Thread Philippe C. Martin
Hi, You might want to check out ipyhton. http://ipython.scipy.org Regards, Philippe Brett Hoerner wrote: > This is a pretty basic, mostly un-python-related question, although I'm > asking because of Python. > > Is there a different shell I can use (other than cmd.com) to run Python > in, wh

Re: Beginner question: Converting Single-Element tuples to list

2005-06-27 Thread Steven Bethard
[EMAIL PROTECTED] wrote: > if type(input) == str: You might consider writing this as: if isinstance(input, basestring): I don't know if pyparsing ever produces unicode objects, but in case it does (or it starts to in the future), isinstance is a better call here. STeVe -- http://mail

Re: Which kid's beginners programming - Python or Forth?

2005-06-27 Thread Roy Smith
"BORT" <[EMAIL PROTECTED]> wrote: > So, that said... In ~simplest~ terms for the stated goal -- Forth or > Python? > ...the goal is NOT the spelling tutor... it is learning how to use a > tool to solve a problem. I am asking which tool is more suited to an > otherwise arbitrary direction of "spe

Re: Which kid's beginners programming - Python or Forth?

2005-06-27 Thread Philippe C. Martin
Hi, A couple links ... http://www.summerland.uku.co.uk/ http://pylogo.org/ http://www.python.org/sigs/edu-sig/ BORT wrote: > Please forgive me if this is TOO newbie-ish. > > I am toying with the idea of teaching my ten year old a little about > programming. I started my search with somethin

Re: Better console for Windows?

2005-06-27 Thread Brett Hoerner
Benji York wrote: > To make the console full screen hit Alt-Enter. The same thing makes it > windowed again. To accommodate very long lines click the "C:\" icon in > the upper left corner of the window, choose "Properties" and then change > the "Screen Buffer Size" Width and Height to something m

DParser binaries on Win32 with Python 2.4?

2005-06-27 Thread Christopher Subich
From the documentation, it looks like DParser-python will do what I need, but I'm having trouble getting it installed properly. I'm using a win32 environment, with official 2.4 Python binaries. The official DParser for Python win32 binaries (staff.washington.edu/sabbey/dy_parser) fail, saying

Re: Beginner question: Converting Single-Element tuples to list

2005-06-27 Thread vdavidster
Hi Paul and everyone else, I ran the script and here's what I got: Python version: 2.4.1 (#2, Mar 31 2005, 00:05:10) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] pyparsing version: 1.3 'abc def' -> ['abc', 'def'] 'abc' -> ['abc'] It seems to work fine. I figured out what my problem was:

Which kid's beginners programming - Python or Forth?

2005-06-27 Thread BORT
Please forgive me if this is TOO newbie-ish. I am toying with the idea of teaching my ten year old a little about programming. I started my search with something like "best FREE programming language for kids." After MUCH clicking and high-level scanning, I am looking at Python and Forth. Both h

Re: Better console for Windows?

2005-06-27 Thread Benji York
Brett Hoerner wrote: > Is there a different shell I can use (other than cmd.com) to run Python > in, where I can full-screen the window (if I pleased), etc? As it is, > things that would run far off the right have to be word wrapped after > very few characters. To make the console full screen hit

Re: Better console for Windows?

2005-06-27 Thread Brett Hoerner
Rune Strand wrote: > I know that problem... it's extremely annoying! > Here's one way to solve it; > > 1. Start 'Device manager'. > 2. On the menu, click 'View' and check off "Show hidden devices" > 3. Locate 'Beep' 'under Non-Plug and Play Drivers' > 4. Right-click 'Beep', select 'Disable' Christ

Python JavaScript solution to hold vertical scroll bar

2005-06-27 Thread David Pratt
Hi. I am putting together a database application on Zope. I have built a pager for my records (20 per page) but do not want the browser scroll bars to reset to the top of the browser each time the pager is advanced to the previous or next page. The normal behavior is fine for everything but

Re: Better console for Windows?

2005-06-27 Thread Nicolas Fleury
Brett Hoerner wrote: > This is a pretty basic, mostly un-python-related question, although I'm > asking because of Python. > > Is there a different shell I can use (other than cmd.com) to run Python > in, where I can full-screen the window (if I pleased), etc? As it is, > things that would run fa

Re: Text() tags and delete()

2005-06-27 Thread Christopher Subich
Bob Greschke wrote: > Does Text.delete(0.0, END) delete all of the tags too? Everything says it > does not delete marks, but nothing about tags. Note to everyone else: this is a TKinter question. Tags are attached to text ranges, in the Text widget. If you delete all of the text in the widget

Re: Better console for Windows?

2005-06-27 Thread Rune Strand
Brett Hoerner wrote: > Another problem with cmd.com is when I run IPython, if I have an error, > or tab or anything, I get the speaker beep (ala linux) but I can't find > a way to turn it off. This is a huge problem because I cannot disable > my system speaker on my laptop (not even in BIOS like

Better console for Windows?

2005-06-27 Thread Brett Hoerner
This is a pretty basic, mostly un-python-related question, although I'm asking because of Python. Is there a different shell I can use (other than cmd.com) to run Python in, where I can full-screen the window (if I pleased), etc? As it is, things that would run far off the right have to be word w

Re: Plain text email?

2005-06-27 Thread John Roth
"Inkiniteo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I see. So... what about sending HTML email? If i send HTML tagged text, > the client will be able to read it as HTML? > > For example, if i send an email with: > Yo! will the client read a bold Yo! ? > > Because i can repla

Re: Plain text email?

2005-06-27 Thread Dan Sommers
On 27 Jun 2005 18:56:27 -0700, "Inkiniteo" <[EMAIL PROTECTED]> wrote: > I see. So... what about sending HTML email? If i send HTML tagged > text, the client will be able to read it as HTML? > For example, if i send an email with: > Yo! will the client read a bold Yo! ? That depends on the clie

Text() tags and delete()

2005-06-27 Thread Bob Greschke
Does Text.delete(0.0, END) delete all of the tags too? Everything says it does not delete marks, but nothing about tags. Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Plain text email?

2005-06-27 Thread Inkiniteo
I see. So... what about sending HTML email? If i send HTML tagged text, the client will be able to read it as HTML? For example, if i send an email with: Yo! will the client read a bold Yo! ? Because i can replace tabs with tables if this is possible. -- http://mail.python.org/mailman/listinf

Re: delphi to python converter

2005-06-27 Thread could ildg
The only thing you can do at present is to convert by yourself with hand, recode them line by line. On 6/27/05, Thys Meintjes <[EMAIL PROTECTED]> wrote: > Greets, > > I have need of a Delphi/pascal to python converter. Googling didn't > suggest any obvious leads so I'm trying here... > > Thanks

Pickling limitation with instances defining __cmp__/__hash__?

2005-06-27 Thread Erik Max Francis
I've come across a limitation in unpickling certain types of complex data structures which involve instances that override __hash__, and was wondering if it was known (basic searches didn't seem to come up with anything similar) and if there is a workaround for it short of restructuring the dat

Re: Thoughts on Guido's ITC audio interview

2005-06-27 Thread Ron Adam
Dave Benjamin wrote: > Guido gave a good, long interview, available at IT Conversations, as was > recently announced by Dr. Dobb's Python-URL! The audio clips are available > here: > > http://www.itconversations.com/shows/detail545.html > http://www.itconversations.com/shows/detail559.html Than

Re: Boss wants me to program

2005-06-27 Thread James
[EMAIL PROTECTED] wrote: > I'm a manager where I work(one of the cogs in a food service company). > The boss needed one of us to become the "tech guy", and part of that is > writing small windows programs for the office. He wants the development > work done in house, and he knows I am in school for

Re: Plain text email?

2005-06-27 Thread John Roth
"Inkiniteo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys. I have a script that sends the info by email, but i'd like to > avoid the convertion to HTML by the email client or Gmail, because it > ruins all the formatting i did (with tabs, mostly). Briefing, i wanna > be able

Re: FlashMX and Py2exe doesn't fly...

2005-06-27 Thread James Carroll
They did it with Gush: (I think) http://2entwine.com/ It's a py program that embeds Flash very nice. -Jim On 27 Jun 2005 15:11:11 -0700, Grops <[EMAIL PROTECTED]> wrote: > Flash and Python could be a VERY powerful pair of tools for building > quick apps, Yet I don't see much on the we

Re: Photo layout

2005-06-27 Thread stephen
Thanks! This works well -- I was letting myself be too intimidated with reportlab before looking at the documentation, but it was really not hard at all. I think I figured out how to do landscape mode too. from reportlab.pdfgen import canvas from reportlab.lib.pagesizes import letter def insertPi

Re: FlashMX and Py2exe doesn't fly...

2005-06-27 Thread Myles Strous
Grops wrote: > Flash and Python could be a VERY powerful pair of tools for building > quick apps, Yet I don't see much on the web about it. > > I was excited to see that it is possible to make them play together > here: > http://www.klaustrofobik.org/blog/archives/000235.html > > Unfortunately,

Re: Plain text email?

2005-06-27 Thread Philippe C. Martin
Hi, I had the exact opposite problem :-) Hope this helps Regards, Philippe # def Mail(self,p_data): #data is string of text you = wx.GetTextFromUser('EMAIL ADDRESS','ID') if len(you) == 0:

Re: a dictionary from a list

2005-06-27 Thread Raymond Hettinger
[Roy Smith] > I also think the published description is needlessly confusing. Why does > it use > >{'one': 2, 'two': 3} > > as the example mapping when > >{'one': 1, 'two': 2} > > would illustrate exactly the same point but be easier to comprehend. The > mapping given is the kind of thing

Re: a dictionary from a list

2005-06-27 Thread Raymond Hettinger
[Roy Smith] > I also think the published description is needlessly confusing. Why does > it use > >{'one': 2, 'two': 3} > > as the example mapping when > >{'one': 1, 'two': 2} > > would illustrate exactly the same point but be easier to comprehend. The > mapping given is the kind of thing

Re: Plain text email?

2005-06-27 Thread TZOTZIOY
On 27 Jun 2005 16:09:38 -0700, rumours say that "Inkiniteo" <[EMAIL PROTECTED]> might have written: >Humm. I just create the message this way: >message = 'Serie:\t\t' + str(type) + str(series) + \ > '\t\t\tUbicación:\t\t\t' + place + '\n' + \ > 'Date&Time:\t' + date >and send i

Re: Plain text email?

2005-06-27 Thread Inkiniteo
Humm. I just create the message this way: message = 'Serie:\t\t' + str(type) + str(series) + \ '\t\t\tUbicación:\t\t\t' + place + '\n' + \ 'Date&Time:\t' + date and send it with: message = header + message server = smtplib.SMTP('localhost') server.sendmail('[EMAIL PROTECTED]',

Re: Plain text email?

2005-06-27 Thread TZOTZIOY
On 27 Jun 2005 15:38:59 -0700, rumours say that "Inkiniteo" <[EMAIL PROTECTED]> might have written: >Hi guys. I have a script that sends the info by email, but i'd like to >avoid the convertion to HTML by the email client or Gmail, because it >ruins all the formatting i did (with tabs, mostly). Br

Re: Plain text email?

2005-06-27 Thread TZOTZIOY
On 27 Jun 2005 15:38:59 -0700, rumours say that "Inkiniteo" <[EMAIL PROTECTED]> might have written: >Hi guys. I have a script that sends the info by email, but i'd like to >avoid the convertion to HTML by the email client or Gmail, because it >ruins all the formatting i did (with tabs, mostly). Br

Re: Plain text email?

2005-06-27 Thread Tim Williams (gmail)
On 27 Jun 2005 15:38:59 -0700, Inkiniteo <[EMAIL PROTECTED]> wrote: > Hi guys. I have a script that sends the info by email, but i'd like to > avoid the convertion to HTML by the email client or Gmail, because it > ruins all the formatting i did (with tabs, mostly). Briefing, i wanna > be able to s

Re: Modules for inclusion in standard library?

2005-06-27 Thread Chris Connett
pyparsing is the far and away the easiest general purpose parser out there that I've encountered; BNF-style grammar parsing is a *pleasure* with pyparsing. And it all comes in a single pure python module to boot. -- http://mail.python.org/mailman/listinfo/python-list

Re: pulling multiple instances of a module into memory

2005-06-27 Thread infidel
Do you have control over the eggs.so module? Seems to me the best answer is to make the start method return a connection object conn1 = eggs.start('Connection1') conn2 = eggs.start('Connection2') -- http://mail.python.org/mailman/listinfo/python-list

Re: Non-blocking raw_input

2005-06-27 Thread Peter Hansen
Jorge Louis de Castro wrote: > Could anyone tell me whether I can find a non blocking alternative to > raw_input that works on windows? Is there not a python way of achieving > this? Can I find it somewhere in the documentation? > Any help will be highly appreciated Depending on what your requir

Plain text email?

2005-06-27 Thread Inkiniteo
Hi guys. I have a script that sends the info by email, but i'd like to avoid the convertion to HTML by the email client or Gmail, because it ruins all the formatting i did (with tabs, mostly). Briefing, i wanna be able to send SMTP mail and the receiver only get it in plain text. -- http://mail.

Re: pulling multiple instances of a module into memory

2005-06-27 Thread Grooooops
in spam.py, how about something like this: try: eggs.someFunction() except: import eggs -- http://mail.python.org/mailman/listinfo/python-list

SCF 1.1 with BasicCard support released

2005-06-27 Thread Philippe C. Martin
Dear all, I am very happy to announce the release of SCF 1.1, a Python based Smart Card development framework for Windows® and Linux. SCF 1.1 introduces support for BasicCard® Enhanced and Professional under GNU/Linux and Windows®. All commands are supported as well as firmware image parsing so y

Re: Python & firewall control (Win32)

2005-06-27 Thread Tim Williams (gmail)
On 6/17/05, Tim Williams <[EMAIL PROTECTED]> wrote: > > > - Original Message - > > From: "Tom Anderson" <[EMAIL PROTECTED]> > > > re: http://wipfw.sourceforge.net/?page=home > > Tom, this looks good. I had it downloaded, installed and running some > custom rules in under 5 minutes. V

Re: Boss wants me to program

2005-06-27 Thread Brian
Thomas Bartkus wrote: > I would modify that. > > 1) VB shines in the MS Windows/Office realm. > 2) Python shines everywhere else. True. However, it's also important to remember that most computer systems (at least in the United States) come with Microsoft Windows installed on them. You have t

Re: Thoughts on Guido's ITC audio interview

2005-06-27 Thread Aahz
In article <[EMAIL PROTECTED]>, Ivan Van Laningham <[EMAIL PROTECTED]> wrote: >Aahz wrote: >> >> Perhaps. But adding the time to learn those IDEs in addition to the time >> to learn Java is ridiculous. I've been forced to use Java a bit to >> support credit cards for our web application; I've g

FlashMX and Py2exe doesn't fly...

2005-06-27 Thread Grooooops
Flash and Python could be a VERY powerful pair of tools for building quick apps, Yet I don't see much on the web about it. I was excited to see that it is possible to make them play together here: http://www.klaustrofobik.org/blog/archives/000235.html Unfortunately, these folks seem to have gotte

RE: Thoughts on Guido's ITC audio interview

2005-06-27 Thread Delaney, Timothy (Tim)
Aahz wrote: > Perhaps. But adding the time to learn those IDEs in addition to the > time > to learn Java is ridiculous. I've been forced to use Java a bit to > support credit cards for our web application; I've got a friend whose > Java-vs-Python argument hinges on the use of Eclipse; I was una

Re: rsync protocol in python

2005-06-27 Thread Robert Kern
David Bear wrote: > I was wondering if anyone has implemented the rsync protocol in python. GIYF. http://directory.fsf.org/pysync.html -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http:/

Non-blocking raw_input

2005-06-27 Thread Jorge Louis de Castro
Hi, Could anyone tell me whether I can find a non blocking alternative to raw_input that works on windows? Is there not a python way of achieving this? Can I find it somewhere in the documentation? Any help will be highly appreciated Cheers j. -- http://mail.python.org/mailman/listinfo/pytho

rsync protocol in python

2005-06-27 Thread David Bear
I was wondering if anyone has implemented the rsync protocol in python. -- David Bear -- let me buy your intellectual property, I want to own your thoughts -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Modules for inclusion in standard library?

2005-06-27 Thread Michael Hoffman
Robert Kern wrote: > I would like to see the setuptools/PythonEggs/EasyInstall trifecta get > more attention and eyeballs. Once it is mature, I think that it will > obviate the desire for stdlibification of most of the packages being > requested here. Looks pretty cool! -- Michael Hoffman --

Re: Getting binary data out of a postgre database

2005-06-27 Thread Diez B. Roggisch
projecktzero wrote: > Sorry for the late reply. I didn't check the group/list over the > weekend. > > Anyway, I added a print rec[0] just after the fetchone. Then I ran it > from the command line, and it spewed a bunch of binary gibberish nearly > locking up Putty. > > To me, it seems like it's c

Re: Boss wants me to program

2005-06-27 Thread Thomas Bartkus
"Brian" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi Xeys, > > Even though I absolutely love Python... > > Microsoft Visual Basic (.NET) would be your best bet for this type of > software development. It allows you to create GUI apps that can work > with a variety of database o

Re: Boss wants me to program

2005-06-27 Thread Philippe C. Martin
As well as wxDesigner (great!) http://www.roebling.de/ Regards, Philippe Björn Lindström wrote: > Apple Grew <[EMAIL PROTECTED]> writes: > >> I think since speed is not such an issue (I heard that python can make >> faster GUI programs) you should use Visual Basic. It is very well >> suited

Re: Boss wants me to program

2005-06-27 Thread phil
I see several on this list have their opinion and lean toward VB. Not me, done that and vc++. Hate'em. Been developing 30 years and I like control over what I'm doing and Python and Tkinter are the best tools I've ever used. And for the most part IDE's like BOA Constructor are just confusing. IMHO

Re: Boss wants me to program

2005-06-27 Thread Brian
Hi Xeys, Even though I absolutely love Python... Microsoft Visual Basic (.NET) would be your best bet for this type of software development. It allows you to create GUI apps that can work with a variety of database options, such as Access or MS SQL Server. My personal opinion is this: ---

RE: Running Python interpreter in Emacs

2005-06-27 Thread Sells, Fred
It works for me in W2000; I have an ancient .emacs file that someone gave me that I use on each new system, wheter unix or windows and have never had a problem. It usually has to be installed at C:/ to work, unless you understand emacs better than I. I've inserted the file ".emacs" below, for tho

Re: Modules for inclusion in standard library?

2005-06-27 Thread Robert Kern
Reinhold Birkenfeld wrote: > Hello, > > at the moment python-dev is discussing including Jason Orendorff's path module > into the standard library. > > Do you have any other good and valued Python modules that you would think are > bug-free, mature (that includes a long release distance) and usef

Python + Lisp integration - Part II

2005-06-27 Thread Simo Melenius
I'm posting a self-followup to my post in last December about Python and Lisp integration: http://groups-beta.google.com/group/comp.lang.python/msg/ff6345845045fb47?hl=en> Now, just yesterday I just stumbled upon Lython: http://www.caddr.com/code/lython/> It's a bit edgy but it can be made to

Re: Modules for inclusion in standard library?

2005-06-27 Thread George Sakkis
I'd love to see IPython replace the standard interpreter. Pychecker seems to be a strong candidate too. George -- http://mail.python.org/mailman/listinfo/python-list

Re: Boss wants me to program

2005-06-27 Thread Björn Lindström
Apple Grew <[EMAIL PROTECTED]> writes: > I think since speed is not such an issue (I heard that python can make > faster GUI programs) you should use Visual Basic. It is very well > suited for Windows programming. There is the good thing that you can > visually create the GUI hence it is easier to

Re: delphi to python converter

2005-06-27 Thread Jarek Zgoda
Thys Meintjes napisał(a): > I have need of a Delphi/pascal to python converter. Googling didn't > suggest any obvious leads so I'm trying here... Don't think something like that even exists... -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Boss wants me to program

2005-06-27 Thread [EMAIL PROTECTED]
I guess you need a database plus GUI layer for your apps, you might look in to MS Access (or Open Office 2.0 Base, but this is still beta, so I don't think your boss will like that) for that -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on Guido's ITC audio interview

2005-06-27 Thread Ivan Van Laningham
Hi All-- Aahz wrote: > > Perhaps. But adding the time to learn those IDEs in addition to the time > to learn Java is ridiculous. I've been forced to use Java a bit to > support credit cards for our web application; I've got a friend whose > Java-vs-Python argument hinges on the use of Eclipse;

Re: Modules for inclusion in standard library?

2005-06-27 Thread Steven Bethard
Fredrik Johansson wrote: > On 6/27/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: > >>Do you have any other good and valued Python modules that you would think are >>bug-free, mature (that includes a long release distance) and useful enough to >>be granted a place in the stdlib? > > First of

Re: Modules for inclusion in standard library?

2005-06-27 Thread Steven Bethard
Reinhold Birkenfeld wrote: > For my part, ctypes seems like a suggestion to start with. I believe this has been discussed somewhere before and the conclusion was that ctypes should not be a candidate for inclusion in the Python stdlib because people don't want things in the stdlib that can make

Re: Modules for inclusion in standard library?

2005-06-27 Thread Fredrik Johansson
On 6/27/05, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: > Do you have any other good and valued Python modules that you would think are > bug-free, mature (that includes a long release distance) and useful enough to > be granted a place in the stdlib? First of all, numeric/numarray, obviously!

Re: Boss wants me to program

2005-06-27 Thread Apple Grew
I think since speed is not such an issue (I heard that python can make faster GUI programs) you should use Visual Basic. It is very well suited for Windows programming. There is the good thing that you can visually create the GUI hence it is easier to create the GUI. [EMAIL PROTECTED] wrote:

Re: delphi to python converter

2005-06-27 Thread Cappy2112
Thys Meintjes wrote: > Greets, > > I have need of a Delphi/pascal to python converter. Googling didn't > suggest any obvious leads so I'm trying here... > > Thanks > Thys This isn't what you want, but you can probably achieve similar results, by embedding Pyton in your delphi app. http://www.at

Boss wants me to program

2005-06-27 Thread xeys_00
I'm a manager where I work(one of the cogs in a food service company). The boss needed one of us to become the "tech guy", and part of that is writing small windows programs for the office. He wants the development work done in house, and he knows I am in school for a CS minor. I know basic C++(Par

Re: Favorite non-python language trick?

2005-06-27 Thread GodFoca
> if a.value == True: > return a > if not database.connect == error: > database.query(q) Yeah, yeah, I know that :-) What I mean is that most of the time I find the code more "readable" (I know that more readable code ain't better code, but it helps when you work with other people...). >

Re: Modules for inclusion in standard library?

2005-06-27 Thread Thomas Heller
Reinhold Birkenfeld <[EMAIL PROTECTED]> writes: > Hello, > > at the moment python-dev is discussing including Jason Orendorff's path module > into the standard library. I have never used the path module before, although I've heard good things about it. But, it seems to have problems with unicode

Help - im a beinner in using python

2005-06-27 Thread enas khalil
dear all could you if you please tell me how can i start learning python im reading on tutorial and i have  questions about: - how can i adjust the environmental variable on windows platform  -where should i put the NLTK data to be accessible by python -how can i use TKinter in python

Re: Thoughts on Guido's ITC audio interview

2005-06-27 Thread Aahz
In article <[EMAIL PROTECTED]>, John Roth <[EMAIL PROTECTED]> wrote: > >What's being ignored is that type information is useful for other >things than compile type checking. The major case in point is the >way IDEs such as IntelliJ and Eclipse use type information to do >refactoring, code completio

Re: Life of Python

2005-06-27 Thread Terry Hancock
On Monday 27 June 2005 02:34 am, Alan Gauld wrote: > "Uwe Mayer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > con: If you are planning larger applications (for a reasonable > > [...] > > Then you will want to specify interfaces, accessor functions > with different > > read /wri

Re: turn text lines into a list

2005-06-27 Thread Bengt Richter
On 27 Jun 2005 16:56:34 GMT, "F. Petitjean" <[EMAIL PROTECTED]> wrote: >[En-tête "Followup-To:" positionné à comp.lang.python.] >Le Mon, 27 Jun 2005 14:27:28 -, Grant Edwards a écrit : >> On 2005-06-27, Xah Lee <[EMAIL PROTECTED]> wrote: >>> i have a large number of lines i want to turn into a

Re: tkinter radiobutton

2005-06-27 Thread Peter Otten
William Gill wrote: > I am placing radiobuttons in a 4 X 4 matrix (using loops) and keep > references to them in a 2 dimensional list ( rBtns[r][c] ). It works > fine, and I can even make it so only one button per column can be > selected, by assigning each column to an intVar. In many languages

Re: turn text lines into a list

2005-06-27 Thread F. Petitjean
[En-tête "Followup-To:" positionné à comp.lang.python.] Le Mon, 27 Jun 2005 14:27:28 -, Grant Edwards a écrit : > On 2005-06-27, Xah Lee <[EMAIL PROTECTED]> wrote: >> i have a large number of lines i want to turn into a list. >> In perl, i can do >> >> @corenames=qw( >> rb_basic_islamic >> sq1_

Re: delphi to python converter

2005-06-27 Thread bruno modulix
Thys Meintjes wrote: > Greets, > > I have need of a Delphi/pascal to python converter. Googling didn't > suggest any obvious leads so I'm trying here... Have you tried with "python/delphi programer" ?-) -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')])

Re: Photo layout

2005-06-27 Thread Miki Tebeka
Hello Stephen, > I'd like to take a directory of photos and create a pdf document with > four photos sized to fit on each (landscape) page. Use LaTex (pdflatex that is, see www.tug.org). It know how to embed pictures and how to resize them. Bye. --

Re: execute python code and save the stdout as a string

2005-06-27 Thread jwaixs
Thank you, this really looks cool! -- http://mail.python.org/mailman/listinfo/python-list

Modules for inclusion in standard library?

2005-06-27 Thread Reinhold Birkenfeld
Hello, at the moment python-dev is discussing including Jason Orendorff's path module into the standard library. Do you have any other good and valued Python modules that you would think are bug-free, mature (that includes a long release distance) and useful enough to be granted a place in the st

Re: Beginner question: Converting Single-Element tuples to list

2005-06-27 Thread Paul McGuire
Modified version of test program, to handle empty strings -> empty lists. import pyparsing as pp import sys def test(s): results = pp.ZeroOrMore( pp.Word(pp.alphas) ).parseString( s ) print repr(s),"->",list(results) print "Python version:", sys.version print "pyparsing version:", pp.__v

Re: Beginner question: Converting Single-Element tuples to list

2005-06-27 Thread Jeff Epler
On Mon, Jun 27, 2005 at 08:21:41AM -0600, John Roth wrote: > Unfortunately, I've seen that behavior a number of times: > no output is None, one output is the object, more than one > is a list of objects. That forces you to have checks for None > and list types all over the place. maybe you can at

Re: Beginner question: Converting Single-Element tuples to list

2005-06-27 Thread Paul McGuire
John - I just modified my test program BNF to use ZeroOrMore instead of OneOrMore, and parsed an empty string. Calling list() on the returned results gives an empty list. What version of pyparsing are you seeing this None/object/list behavior? -- Paul -- http://mail.python.org/mailman/listinf

Re: Favorite non-python language trick?

2005-06-27 Thread Steve Jorgensen
On 24 Jun 2005 19:09:05 +0400, Sergei Organov <[EMAIL PROTECTED]> wrote: >Steven D'Aprano <[EMAIL PROTECTED]> writes: > >> On Fri, 24 Jun 2005 00:55:38 -0600, Joseph Garvin wrote: >> >> > I'm curious -- what is everyone's favorite trick from a non-python >> > language? And -- why isn't it in Pyt

['ext.IsDOMString', 'ext.SplitQName']

2005-06-27 Thread Farkov, Serge
I am using python 2.4, py2exe 0.5.3, PyXML 0.8.4., and have the same warning.     My research shows that this is due to wrong references in PyXML code.   For example, I found such definition (and couple more similar):   c:\python24\lib\site-packages\_xmlplus\dom\Element.py(27) from ext

delphi to python converter

2005-06-27 Thread Thys Meintjes
Greets, I have need of a Delphi/pascal to python converter. Googling didn't suggest any obvious leads so I'm trying here... Thanks Thys -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >