Re: noob question

2005-06-27 Thread Alan Gauld
"Matt Hollingsworth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Very new to python, so a noob question. When I've written stuff in > JavaScript or MEL in the past, I've always adopted the variable naming > convention of using a $ as the first character (no, I don't use perl, Ca

Re: what is your opinion of zope?

2005-06-27 Thread Mir Nazim
http://www.zope.org/Wikis/ZODB/FrontPage/guide/index.html This should solve this problem. --- Mir Nazim www.planetnazim.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Office COM automatisation - calling python from VBA

2005-06-27 Thread Guy Lateur
Thanks for the input, people! -- http://mail.python.org/mailman/listinfo/python-list

Re: Life of Python

2005-06-27 Thread Alan Gauld
"Uwe Mayer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > con: If you are planning larger applications (for a reasonable value of > "large") you have to discipline yourself to write well structured code. As always. > Then you will want to specify interfaces, accessor functions wi

Re: Sorting part of a list

2005-06-27 Thread Sibylle Koczian
Dennis Lee Bieber schrieb: > On Fri, 24 Jun 2005 13:42:39 +0200, Sibylle Koczian > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > > > ll[2:] = ... > > is not an object creation, merely an access into an existing object. > That's what I hadn't understood. Although it'

RE: Using MSMQ on Windows (and Navision)

2005-06-27 Thread Tim Golden
[Andrew Gordon] | | I'm investigating getting Microsoft Navision to do stuff from | a Python script. [... snip ...] No help here, I'm afraid. | 2) Every character in the body of messages sent from send.py has a 0 | value character after them (ie in hex 48 00 65 00 6C 00 6C 00 | 6F 00 20

Downloading files using URLLib

2005-06-27 Thread Oyvind Ostlund
Hello, I have to download a lot of files. And at the moment i am trying with URLLib. But sometimes it doesn't download the whole file. It looks like it stops half way through or something. Is it possible to ask for the file size before you download, and then test afterwards if the whole file wa

turn text lines into a list

2005-06-27 Thread Xah Lee
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_pentagonTile sq_arc501Tile sq_arc503Tile ); use Data::Dumper; print Dumper([EMAIL PROTECTED]); -- is there some shortcut to turn lines into list in Python? Xah [EMAIL PROTE

Re: turn text lines into a list

2005-06-27 Thread Reinhold Birkenfeld
Xah Lee 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_pentagonTile > sq_arc501Tile > sq_arc503Tile > ); > > use Data::Dumper; > print Dumper([EMAIL PROTECTED]); > > -- > is there some shortcut to turn l

Re: turn text lines into a list

2005-06-27 Thread Gunnar Hjalmarsson
Xah Lee 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_pentagonTile > sq_arc501Tile > sq_arc503Tile > ); Impractical to mix code and data, isn't it? chomp( my @corenames = ); __DATA__ rb_basic_islamic sq1_pent

Re: turn text lines into a list

2005-06-27 Thread Matthias Huening
Xah Lee (27.06.2005 12:33): > 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_pentagonTile > sq_arc501Tile > sq_arc503Tile > ); > > use Data::Dumper; > print Dumper([EMAIL PROTECTED]); > > -- > is there some short

Re: Favorite non-python language trick?

2005-06-27 Thread Steven D'Aprano
On Sun, 26 Jun 2005 23:22:00 -0500, Terry Hancock wrote: >> You need to differentiate >>a = b = 1 >> from >>a = b == 1 > > Okay, I see what you mean. I can't ever recall having needed the > second form, though. > > Of course, you could still do assignment like this: > > a, b = (1,)*2 >

Reading files in /var/spool/rwho/whod.*

2005-06-27 Thread Fredrik Normann
Hello, I'm trying to read the binary files under /var/spool/rwho/ so I'm wondering if anyone has done that before or could give me some clues on how to read those files. I've tried to use the binascii module without any luck. Best regards, -fredrik-normann- -- http://mail.python.org/mailman/li

Re: noob question

2005-06-27 Thread Fredrik Lundh
Alan Gauld wrote: > In Python Hungarian notation is meaningless since variables > aren't typed anyway. in real-life Python code, variables tend to be 'typed' in the hungarian sense: http://msdn.microsoft.com/library/en-us/dnvs600/html/hunganotat.asp "/.../ the concept of 'type' in this cont

Re: Favorite non-python language trick?

2005-06-27 Thread Robert Kern
Steven D'Aprano wrote: > On Sun, 26 Jun 2005 23:22:00 -0500, Terry Hancock wrote: > >>>You need to differentiate >>> a = b = 1 >>>from >>> a = b == 1 >> >>Okay, I see what you mean. I can't ever recall having needed the >>second form, though. >> >>Of course, you could still do assignment like

COM problem .py versus .exe

2005-06-27 Thread Greg Miller
I have a .DLL that I am extracting the file version from using wmi.py. The specific code is: c = wmi.WMI() for f in c.CIM_DataFile(Name="c:\\glossersdmsservices\\bin\\glosscmanager.dll"): sdmsver = f.Version this works fine when running the application as a python file, when I

Re: noob question

2005-06-27 Thread Steven D'Aprano
On Mon, 27 Jun 2005 07:14:07 +, Alan Gauld wrote: > The only place I've ever found Hungarian notation useful was > in C which is a weird mix of static typing and no-typing, > and there the prefix code gives a clue as to what kind of > value you might expect to find. But when I moved to C++ I >

RE: COM problem .py versus .exe

2005-06-27 Thread Tim Golden
[Greg Miller] | I have a .DLL that I am extracting the file version from using wmi.py. | The specific code is: | | c = wmi.WMI() | for f in | c.CIM_DataFile(Name="c:\\glossersdmsservices\\bin\\glosscmanag | er.dll"): | sdmsver = f.Version | | this works fine when running the a

Re: noob question

2005-06-27 Thread Reinhold Birkenfeld
Alan Gauld wrote: > The only place I've ever found Hungarian notation useful was > in C which is a weird mix of static typing and no-typing, > and there the prefix code gives a clue as to what kind of > value you might expect to find. But when I moved to C++ I > dropped the prefixes because they a

Re: Downloading files using URLLib

2005-06-27 Thread A. Murat Eren
Hi, On Monday 27 June 2005 12:10, Oyvind Ostlund wrote: > I have to download a lot of files. And at the moment i am trying with > URLLib. But sometimes it doesn't download the whole file. It looks like it > stops half way through or something. Is it possible to ask for the file > size before you

Re: COM problem .py versus .exe

2005-06-27 Thread Greg Miller
Thanks for the tweaked code, it worked on my desktop. The acid test will be when I put it on one of the "virgin" PC's ( no python installed, just running the py2exe executable ) that run the machine. I won't be getting one of those until later in the week, but I'm hoping that since it cleared the

Re: noob question

2005-06-27 Thread bruno modulix
[EMAIL PROTECTED] wrote: > Hi Matt, > I also am almost a newbie (in Python) and my approach to variable > naming > follows more or less the Hungarian Type Notation Defined. which is seen as a bad practice anywhere outside Win32... http://mindprod.com/jgloss/unmainnaming.html -- bruno desthuill

RE: COM problem .py versus .exe

2005-06-27 Thread Tim Golden
[Greg Miller] | Thanks for the tweaked code, it worked on my desktop. Thanks for the confirmation; I don't use py2exe myself, and while I could run up a test case (and probably should given the number of queries I get like this) I've never got round to it. I'm close to releasing a version 1.0

Re: turn text lines into a list

2005-06-27 Thread Paul McGuire
See definition of splitlines(). (http://docs.python.org/lib/string-methods.html) -- Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: Photo layout

2005-06-27 Thread Larry Bates
You can use Python Imaging Library (PIL) and ReportLab to resize and place the photos on a page quite easily. Actually ReportLab calls PIL automatically to resize the photos when you call .drawInlineImage method of the canvas object with the proper width and height arguments. To get ReportLab go

Tkinter PhotoImage Question

2005-06-27 Thread Adonis
I have two classes one class inherits dict(), this class just takes in a path argument much like glob.glob() and loads the image using PhotoImage into itself, no biggie works fine. The other class inherits Frame and it implements an add(self, **kw) method passes all of its arguments to a Button

Re: Downloading files using URLLib

2005-06-27 Thread Fuzzyman
> If so please guid me a bit here. I aaume you mean 'guido' here ? ;-) Anyway - you probably want to be using urllib2 as the other poster points out. Regards, Fuzzy -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting binary data out of a postgre database

2005-06-27 Thread projecktzero
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 coming out in the right format, but I

pulling multiple instances of a module into memory

2005-06-27 Thread Gabriel Jiva
I have a Python app, spam.py, that uses a C shared library, eggs.so. This shared library is an interface that makes connections to another system (Ham), and among other things uses callback functions. Therefore, if I want to make multiple connections to Ham, I need eggs.so to be instantiated in mem

Re: Daten Kinderheilkunde

2005-06-27 Thread Peter Maas
Peter Maas schrieb: > vielen Dank für die Zusendung der Daten. Es handelt sich allerdings > nicht um jpeg-Dateien, wie die Erweiterung nahelegt. Wir konnten sie > nur mit dem PictureViewer auf einem Apple anzeigen. Sie werden unter > MacOS als Adobe-Photoshop-Dokument angezeigt. Sorry, my fault. P

Daten Kinderheilkunde

2005-06-27 Thread Peter Maas
Sehr geehrter Herr Wurm, vielen Dank für die Zusendung der Daten. Es handelt sich allerdings nicht um jpeg-Dateien, wie die Erweiterung nahelegt. Wir konnten sie nur mit dem PictureViewer auf einem Apple anzeigen. Sie werden unter MacOS als Adobe-Photoshop-Dokument angezeigt. Können wir die Datei

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

2005-06-27 Thread John Roth
"Reinhold Birkenfeld" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] wrote: >> Hi, >> >> Thanks for your reply! A new thing learned >> >> Allow me to follow that up with another question: >> >> Let's say I have a result from a module called pyparsing: >> >> Res

Re: tkinter radiobutton

2005-06-27 Thread William Gill
>> to determine if it is selected?, or can this only be achieved via >> control variables? > The value and variable options for a radiobutton seem to be what > you're looking for. Thanks, I knew that, but I was looking for a way to read the selected/unselected status directly. Using control

Re: turn text lines into a list

2005-06-27 Thread Grant Edwards
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_pentagonTile > sq_arc501Tile > sq_arc503Tile > ); > > use Data::Dumper; > print Dumper([EMAIL PROTECTED]); > > -- >

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

2005-06-27 Thread Paul McGuire
David - I'm not getting the same results. Run this test program: --- import pyparsing as pp import sys def test(s): results = pp.OneOrMore( pp.Word(pp.alphas) ).parseString( s ) print repr(s),"->",list(results) print "Python version:", sys.version print "pyparsing version:",

Re: Favorite non-python language trick?

2005-06-27 Thread Tim Peters
[Terry Hancock] > Probably the most pointless Python wart, I would think. The =/== > distinction makes sense in C, but since Python doesn't allow assignments > in expressions, I don't think there is any situation in which the distinction > is needed. Python could easily figure out whether you mean

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

['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

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

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: 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
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

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: 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

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: 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: 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: 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 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: 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: 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

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: 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

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...). >

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: 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

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: 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: 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 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: 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: 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: 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 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: 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

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 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

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: 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: 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 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 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: 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: 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 --

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

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

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:/

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

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 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

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: 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

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: 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

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: 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

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: 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: 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: 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 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 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: 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 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: 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: 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 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: 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

  1   2   >