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
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
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
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
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
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
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
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
Annoyed by windows? Check this URL:
http://www.annoyances.org/exec/show/category01
;-)
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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."
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
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
[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
"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
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
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
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
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:
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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
[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
"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
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
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
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,
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:
[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
[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
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
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]',
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
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
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
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
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
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
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.
in spam.py, how about something like this:
try:
eggs.someFunction()
except:
import eggs
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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:/
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
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
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
--
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
"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
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
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
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:
---
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
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
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
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
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
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
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
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;
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
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
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!
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:
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
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
> 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...).
>
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
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
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
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
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
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
[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_
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('.')])
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.
--
Thank you, this really looks cool!
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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 - 100 of 136 matches
Mail list logo