I'm using wxGrid and finding it fairly straightforward but I can't see
an easy way to set the alignment (left, centre, right) for a whole
column.
There's SetDefaultCellAlignment() which sets the default for the whole
grid and there's SetCellAlignment() which sets it for a specific cell
but there
Ian Kelly ian.g.ke...@gmail.com wrote:
On Fri, Mar 15, 2013 at 5:50 AM, tinn...@isbd.co.uk wrote:
I'm using wxGrid and finding it fairly straightforward but I can't see
an easy way to set the alignment (left, centre, right) for a whole
column.
There's SetDefaultCellAlignment() which
I want to write a fairly trivial database driven application, it will
basically present a few columns from a database, allow the user to add
and/or edit rows, recalculate the values in one column and write the
data back to the database.
I want to show the data and allow editing of the data in a
Walter Hurry walterhu...@lavabit.com wrote:
On Wed, 13 Mar 2013 18:40:07 +, tinnews wrote:
I want to write a fairly trivial database driven application, it will
basically present a few columns from a database, allow the user to add
and/or edit rows, recalculate the values in one
I am trying to use python-sqlkit (https://pypi.python.org/pypi/sqlkit/0.9.5.1)
but I'm not really getting over the first hurdle.
If I run sqledit (the ready made executable that needs no programming)
on my data then it works fine and displays my table data.
However if I enter the minimal
Steve Howell showel...@yahoo.com wrote:
On Nov 11, 9:48 am, tinn...@isbd.co.uk wrote:
I'm sure this must be possible but at the moment I can't see how to do it.
I want to send an E-Mail when the logging module logs a message above
a certain level (probably for ERROR and CRITICAL messages
Peter Otten __pete...@web.de wrote:
tinn...@isbd.co.uk wrote:
Steve Howell showel...@yahoo.com wrote:
On Nov 11, 9:48 am, tinn...@isbd.co.uk wrote:
I'm sure this must be possible but at the moment I can't see how to do
it.
I want to send an E-Mail when the logging module logs a
I'm a little confused about the relationship between the Python
email.parser convenience function email.message_from_string() and the
mailbox.Message objects.
If I want an mailbox.mboxMessage given the message as a stream of text
is the right way to do it as follows (or at least a reasonable way
tinn...@isbd.co.uk wrote:
I'm a little confused about the relationship between the Python
email.parser convenience function email.message_from_string() and the
mailbox.Message objects.
If I want an mailbox.mboxMessage given the message as a stream of text
is the right way to do it as
I'm sure this must be possible but at the moment I can't see how to do it.
I want to send an E-Mail when the logging module logs a message above
a certain level (probably for ERROR and CRITICAL messages only).
I.e. I want some sort of hook that will be called when these messages
are logged (I
Marco Nawijn naw...@gmail.com wrote:
On Monday, October 15, 2012 1:33:02 PM UTC+2, (unknown) wrote:
I want to fix an error in some code I have installed, however I don't
really want to just bodge it.
The function producing the error is:-
def get_text(self, idx):
I want to fix an error in some code I have installed, however I don't
really want to just bodge it.
The function producing the error is:-
def get_text(self, idx): # override !
node = self.items[idx]
a= [
, .join(node.tags),
node.comment,
I have a python script which uses the dateutil module with the
following:-
import sys
import datetime
import icalendar
from dateutil.relativedelta import relativedelta
The section of code which uses relativedelta is as follows:-
#
#
# If the event is a
Peter Otten __pete...@web.de wrote:
tinn...@isbd.co.uk wrote:
[snip description of problem]
Have I lost a module somewhere in the updates or has something in
python changed such that my code no longer works as it used to?
Can anyone help diagnose this please.
You probably have a
Dave Angel d...@davea.name wrote:
Would you like to define exists ? A list is not sparse, so all items
exist if their subscript is less than the length of the list. So all
you need to do is compare 2 to len(fld).
Yes, a I said a simple len(fld) will tell me if fld[2] 'exists' but it
gets
I want to print a series of list elements some of which may not exist,
e.g. I have a line:-
print day, fld[1], balance, fld[2]
fld[2] doesn't always exist (fld is the result of a split) so the
print fails when it isn't set.
I know I could simply use an if but ultimately there may be more
John Posner jjpos...@optimum.net wrote:
On 7/16/2012 12:28 PM, tinn...@isbd.co.uk wrote:
tinn...@isbd.co.uk wrote:
I am trying to use the PyQt4 calendar widget to perform some different
actions on specific dates. There are three events available:-
selectionChanged()
I am trying to use the PyQt4 calendar widget to perform some different
actions on specific dates. There are three events available:-
selectionChanged()
activated(QDate)
clicked(QDate)
On trying all these out it would appear that the event handlers get
called as follows:-
The
tinn...@isbd.co.uk wrote:
I am trying to use the PyQt4 calendar widget to perform some different
actions on specific dates. There are three events available:-
selectionChanged()
activated(QDate)
clicked(QDate)
On trying all these out it would appear that the event handlers
Roy Smith r...@panix.com wrote:
What's the smallest/cheapest/lowest-power hardware platform I can run
Python on today? I'm looking for something to use as a hardware
controller in a battery-powered device and want to avoid writing in C
for this project.
Performance requirements are
Richard Shea shearich...@gmail.com wrote:
On a *nix box this is a reasonable bit of Python :
cmd = ssh -o StrictHostKeyChecking=no -i %s %s@%s '%s' %s % (key,
user, dns, echo CONNECTION READY, tmp_file)
result = os.system(cmd)
... on a Windows box it will fail because 'ssh' isn't part of
I have a small python program that uses the pyexiv2 package to view
exif data in image files.
I've hit a problem because I have a filename with accented characters
in its path and the pyexiv2 code traps as follows:-
Traceback (most recent call last):
File /home/chris/bin/eview.py, line
Peter Otten __pete...@web.de wrote:
tinn...@isbd.co.uk wrote:
I have a small python program that uses the pyexiv2 package to view
exif data in image files.
I've hit a problem because I have a filename with accented characters
in its path and the pyexiv2 code traps as follows:-
Chris Rebert c...@rebertia.com wrote:
On Tue, Jan 24, 2012 at 3:57 AM, tinn...@isbd.co.uk wrote:
I have a small python program that uses the pyexiv2 package to view
exif data in image files.
I've hit a problem because I have a filename with accented characters
in its path and the
Tim Roberts t...@probo.com wrote:
tinn...@isbd.co.uk wrote:
I want to run a server side python script when a button on a web page
is clicked. This is on a LAMP server - apache2 on xubuntu 11.10.
I know I *could* run it as a CGI script but I don't want to change the
web page at all when
Chris Angelico ros...@gmail.com wrote:
On Sun, Jan 22, 2012 at 3:36 PM, Tim Roberts t...@probo.com wrote:
It seems what you're after is AJAX. If you are using a Javascript
framework like jQuery, it's easy to fire off an asynchronous request back
to your server that leaves the existing page
I want to run a server side python script when a button on a web page
is clicked. This is on a LAMP server - apache2 on xubuntu 11.10.
I know I *could* run it as a CGI script but I don't want to change the
web page at all when the button is clicked (I'll see the effect
elsewhere on the screen
Chris Angelico ros...@gmail.com wrote:
On Thu, Dec 29, 2011 at 6:04 AM, tinn...@isbd.co.uk wrote:
In the (rather sparse) documentation for the vobject package it has,
in the section about parsing iCalendar objects, the following:-
parsedCal = vobject.readOne(icalstream)
Presumably
I have installed an application called pycocuma on my xubuntu 11.10
system. It works OK and I'm aiming to develop it a little as its
'owner' has long since stopped work on it.
However I'm a little puzzled by the way it has installed itself (it's
a standard package from the Ubuntu repositories),
In the (rather sparse) documentation for the vobject package it has,
in the section about parsing iCalendar objects, the following:-
Parsing iCalendar objects
=
To parse one top level component from an existing iCalendar stream or
string, use the readOne
Roy Smith r...@panix.com wrote:
In article roy-aaaeea.10571424122...@news.panix.com,
Roy Smith r...@panix.com wrote:
len([x for x in zip(s1, s2) if x[0] != x[1]])
Heh, Ian Kelly's version:
sum(a == b for a, b in zip(str1, str2))
is cleaner than mine. Except that Ian's counts
Can anyone suggest a simple/easy way to count how many characters have
changed in a string?
E.g. giving results as follows:-
abcdefg abcdefh 1
abcdefg abcdekk 2
abcdefg gfedcba 6
Note that position is significant, a character in a different
I want to sort a list of 'things' (they're fairly complex objects) by
the contents of one of the fields I can extract from the 'things'
using a Python function.
So I have a list L which is a list of objects of some sort. I can
output the contents of a field in the list as follows:-
for k in
Peter Otten __pete...@web.de wrote:
tinn...@isbd.co.uk wrote:
I want to sort a list of 'things' (they're fairly complex objects) by
the contents of one of the fields I can extract from the 'things'
using a Python function.
So I have a list L which is a list of objects of some sort.
Chris Angelico ros...@gmail.com wrote:
On Mon, Dec 12, 2011 at 9:28 AM, tinn...@isbd.co.uk wrote:
I'm trying to use the python evolution (as in Gnome Evolution) module
but I can't find any documetation beyond the odd trivial example and
the API documentation at
I'm trying to use the python evolution (as in Gnome Evolution) module
but I can't find any documetation beyond the odd trivial example and
the API documentation at http://doc.conduit-project.org/evolution-python/
(or similar places presumably).
The trouble with the API documentation is that it
I'm after an application for managing Contacts (i.e. an Address Book)
and as I suspect I will want to 'tune' it a bit Python would be my
preferred language.
So far I have found :-
pycocuma - reasonable but rather old and a bit clunky (uses TCL/Tk)
pyaddressbook - newer but very minimal
Alec Taylor alec.tayl...@gmail.com wrote:
Wammu?
I hadn't really considered gammu/wammu as I saw it as a mobile phone
synchrinsation tool, but I've looked a bit harder and it might very
well be what I need - thank you!
On Sat, Dec 10, 2011 at 1:41 AM, tinn...@isbd.co.uk wrote:
I'm after an
tinn...@isbd.co.uk wrote:
Alec Taylor alec.tayl...@gmail.com wrote:
Wammu?
I hadn't really considered gammu/wammu as I saw it as a mobile phone
synchrinsation tool, but I've looked a bit harder and it might very
well be what I need - thank you!
Well one problem with wammu is that you
Ian Kelly ian.g.ke...@gmail.com wrote:
On Sat, Sep 3, 2011 at 10:15 AM, William Gill noreply@domain.invalid wrote:
During some recent research, and re-familiarization with Python, I came
across documentation that suggests that programming using functions, and
programming using objects were
I have just moved my desktop system (running xubuntu 10.04) to new
hardware. I have an almost trivial python program that uses the
evolution module which no longer works and I'm having trouble working
out why.
The program is:-
#!/usr/bin/python
#
#
#
#
import evolution
tinn...@isbd.co.uk wrote:
[snip]
Using 'help' reveals basic information for evolution but reports no
documentation for evolution.ebook. On the old system (exactly
the same version of python, same OS, same everything just about)
help(evolution.ebook) shows the expected documentation.
tinn...@isbd.co.uk wrote:
tinn...@isbd.co.uk wrote:
[snip]
Using 'help' reveals basic information for evolution but reports no
documentation for evolution.ebook. On the old system (exactly
the same version of python, same OS, same everything just about)
help(evolution.ebook)
Tim Harig user...@ilthio.net wrote:
On 2010-11-03, Grant Edwards inva...@invalid.invalid wrote:
On 2010-11-03, Paul Rudin paul.nos...@rudin.co.uk wrote:
John Bond li...@asd-group.com writes:
On 3/11/2010 11:17 AM, Steven D'Aprano wrote:
On Wed, 03 Nov 2010 08:02:29 +, John Bond
John Bond li...@asd-group.com wrote:
Hope this isn't too O/T - I was just wondering how people read/send to this
mailing list, eg. normal email client, gmane, some other software or online
service?
My normal inbox is getting unmanageable, and I think I need to find a new way
of following
I'm trying to delete some messages from a mailbox when they are older
than a certain number of days.
If I iterate through the mailbox and find a message that needs
deleting how do I get its key so I can do remove(key)?
The trouble is that, as the documentation says: The default Mailbox
iterator
I'm writing some code that writes to a mbox file and want to retry
locking the mbox file a few times before giving up. I can't see a
really tidy way to implement this.
Currently I have something like:-
dest = mailbox.mbox(mbName, factory=None)
for tries in xrange(3):
try:
Matteo Landi landima...@gmail.com wrote:
On Sun, Oct 17, 2010 at 6:58 PM, tinn...@isbd.co.uk wrote:
I'm writing some code that writes to a mbox file and want to retry
locking the mbox file a few times before giving up. I can't see a
really tidy way to implement this.
Currently I have
I'm using filecmp.cmp() to compare some files (surprise!).
The documentation says:-
Unless shallow is given and is false, files with identical
os.stat() signatures are taken to be equal.
I'm not setting shallow explicitly so it's True, thus the function
should be comparing the os.stat()
Terry Reedy tjre...@udel.edu wrote:
On 9/6/2010 1:18 PM, tinn...@isbd.co.uk wrote:
I'm using filecmp.cmp() to compare some files (surprise!).
The documentation says:-
Unless shallow is given and is false, files with identical
os.stat() signatures are taken to be equal.
Tim Roberts t...@probo.com wrote:
tinn...@isbd.co.uk wrote:
I'm using the python mailbox class in a script that processes incoming
mail and delivers it to various mbox format mailboxes. It appears
that, although I am calling the lock method on the destination before
writing to the mbox and
I'm using the python mailbox class in a script that processes incoming
mail and delivers it to various mbox format mailboxes. It appears
that, although I am calling the lock method on the destination before
writing to the mbox and calling unlock afterwards the locking isn't
working correctly.
I
kj no.em...@please.post wrote:
In 87wryumvff@benfinney.id.au Ben Finney ben+pyt...@benfinney.id.au
writes:
kj no.em...@please.post writes:
(my replies in a different comp.lang.python thread are getting
rejected by the server; i have no problem posting to alt.test; and
i'm trying
I have just installed pyfltk version 1.1.4 on my xubuntu 9.10 system,
it's working OK and a fairly trivial little program I have written is
able to pop up a GUI window.
However I'm now a bit stuck as the documentation seems a little
sparse. For example I'm using FL_Multiline_Output and can't
What does this vText() annotation mean in a returned list:-
[['Apr 19', vText(u'PAYE'), ''], ['Mar 31', vText(u'VAT'), ''], ['May 19',
vText(u'Year end PAYE'), '']]
I *guess* it's some sort of indication of non-constant text, I need a
way to make it constant (well, to get a constant copy of
I'm trying to read some data from standard input, what I'm actually
trying to do is process some date pasted in using the mouse cut and
paste on a Linux box (xubuntu 9.10) in a terminal window.
First attempts failed so I'm now trying the trivial:-
import sys
data = sys.stdin.readlines()
Richard Thomas chards...@gmail.com wrote:
On Jan 31, 6:15 pm, tinn...@isbd.co.uk wrote:
I'm trying to read some data from standard input, what I'm actually
trying to do is process some date pasted in using the mouse cut and
paste on a Linux box (xubuntu 9.10) in a terminal window.
First
Gabriel Genellina gagsl-...@yahoo.com.ar wrote:
En Thu, 15 Oct 2009 05:58:02 -0300, an...@vandervlies.xs4all.nl escribió:
Does HTMLgen (Robin Friedrich's) still exsist?? And, if so, where can it
be found?
Would you consider using HyperText? It's inspired on HTMLGen but I like
its
Tim Roberts t...@probo.com wrote:
tinn...@isbd.co.uk wrote:
My maildir hierarchy is created by mutt which is a *very* standards
compliant MUA, surely standard python libraries should work with
standard maildirs not some wierd extension thereof.
The Maildir specification does not allow for
Jeff McNeil j...@jmcneil.net wrote:
The Maildir++ spec states that folders need to begin with a period.
The list_folders method enforces that:
def list_folders(self):
Return a list of folder names.
result = []
for entry in os.listdir(self._path):
Jeff McNeil j...@jmcneil.net wrote:
My maildir hierarchy is created by mutt which is a *very* standards
compliant MUA, surely standard python libraries should work with
standard maildirs not some wierd extension thereof.
--
Chris Green
The doc says that Folders of the style
I can't get the list_folders() method of the mailbox.Maildir class to
do anything remotely useful. It seems to do nothing at all. I have a
directory which contains a number of maildir malboxes:-
chris$ ls -l /home/chris/Mail/apex
total 24
drwx-- 5 chris chris 4096 2009-04-30
Jeff McNeil j...@jmcneil.net wrote:
On Sep 25, 3:22 pm, tinn...@isbd.co.uk wrote:
I can't get the list_folders() method of the mailbox.Maildir class to
do anything remotely useful. It seems to do nothing at all. I have a
directory which contains a number of maildir malboxes:-
Scott David Daniels scott.dani...@acm.org wrote:
tinn...@isbd.co.uk wrote:
This feels like it should be simple but I can't see a clean way of
doing it at the moment.
I want to retry locking a file for a number of times and then give up,
in pseudo-code it would be something like:-
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote:
In message jo2dnwpluopxvwjunz2dnuvz_qudn...@posted.usinternet, Grant
Edwards wrote:
On 2009-04-26, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand
wrote:
In message _vqdnf6pny1gymzunz2dnuvz_qcdn...@posted.visi, Grant
This feels like it should be simple but I can't see a clean way of
doing it at the moment.
I want to retry locking a file for a number of times and then give up,
in pseudo-code it would be something like:-
for N times
try to lock file
if successful break out of for loop
Aahz a...@pythoncraft.com wrote:
In article gksdnzap17601g7unz2dnuvz_jti4...@posted.visi,
Grant Edwards inva...@invalid wrote:
On 2009-04-25, tinn...@isbd.co.uk tinn...@isbd.co.uk wrote:
Where should one report bugs/errors in python library classes?
http://docs.python.org/bugs.html
Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote:
In message 49f33d8d$0$516$bed64...@news.gradwell.net, tinn...@isbd.co.uk
wrote:
mbox has several advantages over maildir (for me anyway):-
It allows easy removal of empty mailboxes (in my case by the MUA)
Really? I
Grant Edwards inva...@invalid wrote:
I suppose I could do the following:-
lock the mbox
get the atime
add the new message with mailbox.mbox.add()
restore the atime
unlock the mbox
You could fix mbox.add(). ;)
Yes, but I'm not sure that I'm that competant!
MRAB goo...@mrabarnett.plus.com wrote:
tinn...@isbd.co.uk wrote:
It seems to me that mailbox.mbox.add() sets the access time of a mbox
file as well as the modification time. This is not good for MUAs that
detect new mail by looking to see if the access time is before the
modification
Grant Edwards inva...@invalid wrote:
On 2009-04-24, Grant Edwards inva...@invalid wrote:
Anybody writing to an mbox mailbox has to follow the rules if
they expect to interoperate with other mail applications. If
mailbox.mbox.add() doesn't preserve the atime when writing to
an mbox,
Grant Edwards inva...@invalid wrote:
On 2009-04-24, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote:
In message gtudnry7tappu2zunz2dnuvz_h6dn...@posted.visi, Grant Edwards
wrote:
AFAIK, atimemtime has been the standard way to determine
when an mbox contains new mail for at
mailbox.mbox.add() has *another* 'quirk'. When it adds a message to
an mbox file it seems to set the permissions to 0755 which is quite
wrong for mbox files. I get the feeling that the mbox versions of the
functions are just bodged maildir ones. If one was creating a maildir
it *might* make
It seems to me that mailbox.mbox.add() sets the access time of a mbox
file as well as the modification time. This is not good for MUAs that
detect new mail by looking to see if the access time is before the
modification time.
Have I done something wrong somewhere or is mailbox.mbox.add() really
Ned Deily n...@acm.org wrote:
In article 49bd42ac$0$512$bed64...@news.gradwell.net,
tinn...@isbd.co.uk wrote:
I was just hoping there was some calendar object in Python which could
do all that for me (I need the handling of 31st and February etc.)
Whatever your requirement, chances are
I have a date in the form of a datetime object and I want to add (for
example) three months to it. At the moment I can't see any very
obvious way of doing this. I need something like:-
myDate = datetime.date.today()
inc = datetime.timedelta(months=3)
myDate += inc
but, of course,
Roy Smith r...@panix.com wrote:
In article 49bd3ab8$0$510$bed64...@news.gradwell.net, tinn...@isbd.co.uk
wrote:
I have a date in the form of a datetime object and I want to add (for
example) three months to it. At the moment I can't see any very
obvious way of doing this. I need
Chris Rebert c...@rebertia.com wrote:
On Sun, Mar 15, 2009 at 10:28 AM, tinn...@isbd.co.uk wrote:
I have a date in the form of a datetime object and I want to add (for
example) three months to it. At the moment I can't see any very
obvious way of doing this. I need something like:-
Colin J. Williams c...@ncf.ca wrote:
Piet van Oostrum wrote:
tinn...@isbd.co.uk (t) wrote:
t I've had this trouble before, how do I find the details of how in
t works in the documentation. E.g. the details of:-
t if string in bigstring:
t It gets a mention in the if
I've had this trouble before, how do I find the details of how in
works in the documentation. E.g. the details of:-
if string in bigstring:
It gets a mention in the if section but not a lot.
--
Chris Green
--
http://mail.python.org/mailman/listinfo/python-list
What's the neatest way to do the following in case insensitive fashion:-
if stringA in stringB:
bla bla bla
I know I can just do:-
if stringA.lower() in stringB.lower():
bla bla bla
But I was wondering if there's a neater/easier way?
--
Chris Green
--
Albert Hopkins mar...@letterboxes.org wrote:
On Fri, 2009-03-13 at 21:01 +, tinn...@isbd.co.uk wrote:
I've had this trouble before, how do I find the details of how in
works in the documentation. E.g. the details of:-
if string in bigstring:
It gets a mention in the if
Albert Hopkins mar...@letterboxes.org wrote:
On Fri, 2009-03-13 at 21:04 +, tinn...@isbd.co.uk wrote:
What's the neatest way to do the following in case insensitive fashion:-
if stringA in stringB:
bla bla bla
I know I can just do:-
if stringA.lower() in
Is there an 'offical' Python package for handling .ics files or is the
follwing the best there is:-
http://codespeak.net/icalendar/
It seems rather old but Google didn't pop anything else up.
--
Chris Green
--
http://mail.python.org/mailman/listinfo/python-list
I'm using mailbox in Python 2.5.2 to filter incoming mail into
separate mailboxes. I prefer mbox for various reasons and so I have
used that format.
It would appear then when I do:-
dest = mailbox.mbox(destDir, factory=None)
dest.add(m)
it sets both the access and modification times of
Mike Driscoll [EMAIL PROTECTED] wrote:
On May 23, 1:59 pm, [EMAIL PROTECTED] wrote:
I'm desperately trying to move a Microsoft Access database application
(a simple accounts system I wrote myself) to Linux. Python is one of
my preferred programming laguages so I wonder if there are any
I'm desperately trying to move a Microsoft Access database application
(a simple accounts system I wrote myself) to Linux. Python is one of
my preferred programming laguages so I wonder if there are any good
Python 'frameworks' for writing database applications, in particular I
need good
Kees Bakker [EMAIL PROTECTED] wrote:
So far, I have seen only one editor that understands the difference between
TABs and indentation, and that is Emacs.
Most vi clones (and the original vi) do too! :-)
E.g. in the clone I use (vile) there are independent settings for
tabstop and
I am about to try writing a little Python utility to extract some data
from an iCalendar file. A quick Google search turns up two possible
libraries to use - vobject and iCalendar package for Python.
First question - have I missed any other (better?) ones?
Second question - how do I choose
I have installed a development version of rdiff-backup using its
setup.py install but now find I need to uninstall it. Is there any
'easy' way to do this and/or can I find out what files it has
installed where so I can remove them?
--
Chris Green
--
Carl Banks [EMAIL PROTECTED] wrote:
On May 1, 12:11 pm, Jon Ribbens [EMAIL PROTECTED] wrote:
On 2008-05-01, Ivan Illarionov [EMAIL PROTECTED] wrote:
IMO .ini-like config files are from the stone age. The modern approach is
to use YAML (http://www.yaml.org).
You mean YAML isn't a
Penny Y. [EMAIL PROTECTED] wrote:
-邮件原件-
发件人: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 代表 Steve Holden
发送时间: 2008年4月15日 2:17
收件人: python-list@python.org
主题: Re: 有中国人乎?
Since what I entered in English was something like Yes, Python has a
future. But it will take some study.
Terry Reedy [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
| I'm not sure if I have even phrased that right but anyway
|
| How does one find (in the standard Python documentation) information
| about things like the iteritems() method and the
Terry Reedy [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
| Terry Reedy [EMAIL PROTECTED] wrote:
|
| [EMAIL PROTECTED] wrote in message
| news:[EMAIL PROTECTED]
| | I'm not sure if I have even phrased that right but anyway
| |
| | How does
I'm not sure if I have even phrased that right but anyway
How does one find (in the standard Python documentation) information
about things like the iteritems() method and the enumerate() function.
They are mentioned in the tutorial as ways of getting more information
as you loop through an
Paul McGuire [EMAIL PROTECTED] wrote:
On Apr 6, 8:41 am, [EMAIL PROTECTED] wrote:
I'm trying to minimise the overheads of a small Python utility, I'm
not really too fussed about how fast it is but I would like to
minimise its loading effect on the system as it could be called lots
of
Arnaud Delobelle [EMAIL PROTECTED] wrote:
On Apr 6, 4:40 pm, [EMAIL PROTECTED] wrote:
I want to iterate through the lines of a file in a recursive function
so I can't use:-
f = open(listfile, 'r')
for ln in f:
because when the function calls itself it won't see any more
Peter Otten [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
Having got my Python 2.5.2 installed I'm trying some things out with
the mailbox.Maildir() class.
If I do the following:-
import maibox
mailbox.Maildir(/home/isbd/Mail/Li/pytest)
then the pytest Maildir
I'm trying to minimise the overheads of a small Python utility, I'm
not really too fussed about how fast it is but I would like to
minimise its loading effect on the system as it could be called lots
of times (and, no, I don't think there's an easy way of keeping it
running and using the same copy
I want to iterate through the lines of a file in a recursive function
so I can't use:-
f = open(listfile, 'r')
for ln in f:
because when the function calls itself it won't see any more lines in
the file. E.g. more fully I want to do somthing like:-
def recfun(f)
while True:
1 - 100 of 128 matches
Mail list logo