, imaplib doesn't work on Python 3:
>
> Actually, it doesn't work in Python 2 either. It never supported
> international mailbox names.
Correct. I had to hack in mUTF-7 support in getmail to properly support
international IMAP users.
Charles
--
-----
in these formats.
tai64 is defined similar to propleptic Gregorian in that it uses an idealized
24*60*60 second day, etc.
Charles
--
-----------
Charles Cazabon
G
ed on lots of little network appliances and such that don't
necessarily run a current OS, so getmail v4 targets 2.3.3 and up.
If I'm writing something new today, I usually assume 2.6 and up.
Charles
--
-----------
Charles Cazabo
nd Python 3.x is
"basically impossible", then I won't be too concerned about 3.x for a while
yet.
I've been an avid Python user and promoter since 1.2, but saying "drop Python
2.x and switch to 3 now" is simply not realistic in any of the environments in
which I u
er than you seem to want them
to, and making it harder for them to upgrade will only hurt Python 3.
Charles
--
-----------
Charles Cazabon
GPL&
P Testdrive account (along with a
bunch of Linuxes and *BSDs) on various hardware platforms. I used it
extensively when doing portability testing of another project.
http://www.testdrive.hp.com/
Charles
--
-----------
Charles Cazabon
GPL
thon standard library -- it worked fine as-is on Linux,
but needed some hackery to get running on a slightly elderly Solaris 8 box. I
didn't test it on anything else.
Charles
--
---
tly what I've been telling this user on the getmail mailing list
for the last week. Apologies that he's decided to bother you with it.
Charles
--
--
Charles Cazabon <
into "just a flesh wound"...
Charles
--
-------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed soft
arts of the world. From your message:
> From: Thomas Heller <[EMAIL PROTECTED]>
> To: python-dev@python.org
> Date: Fri, 31 Dec 1999 23:11:35 +0100
> Subject: Re: [Python-Dev] beta1 coming real soon
Stolen Guido's time machine, have we?
Charles
--
-------
t;db".
Why are two right for the stdlib (sorry, "standard library" :), and the other
wrong?
Charles
--
---
Charles Cazabon
Guido van Rossum <[EMAIL PROTECTED]> wrote:
> On 3/28/06, Charles Cazabon <[EMAIL PROTECTED]> wrote:
> > It might be worth instead adding an option flag to the executable that
> > implies
> > "from the loaded module, run __main__() with sys.argv as its argu
y broken.
It might be worth instead adding an option flag to the executable that implies
"from the loaded module, run __main__() with sys.argv as its argument(s)", so
the user can get this behaviour with `python -X somemodule.py`.
Charles
--
--
g a nice new namespace ready for them is a good idea.
> Whatever name is chosen: please no "from sqlite3 import dbapi2 as sqlite"!
Amen. db.sqlite3 is the perfect name.
Charles
--
-----------
Charles Cazabon
should be justification for getting rid of it.
Charles
--
-----------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://pyropus.ca/software/
---
gic as
well (while "+" would be an improvement, it's still not a large one). I would
think
Path('foo').appendparts('bar', 'baz')
or similar would be more readable and obvious.
Charles
--
--
eing set on
sockets (basically anything using socket.ssl()) actually explicitly set that
first. Right now, if you do socket.setdefaulttimeout() to a non-None value
and then try to use anything that does SSL (poplib, imaplib), the connections
will quickly die.
Charles
--
-------
sized codebase I've had to work with.
Charles
--
-----------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://pyropus.ca/software/
---
d/ not add a newline isn't nearly as common. print()
could take a keyword parameter to skip the newline, or ...
print('foo:', foo, 'bar:', bar, 'baz:', baz,
frobble and 'frobble: ' + frobble or 'no frobble today')
Or the user can just u
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Charles Cazabon wrote:
>
> > in fact, it does nothing for the program but merely has the interesting
> > side-effect of writing to stdout.
>
> yeah, real programmers don't generate output.
That wasn't quite my p
in fact, it does
nothing for the program but merely has the interesting side-effect of writing
to stdout.
It's an anomaly. It stands out in the language as a sore thumb waiting for
Guido's hammer.
Charles
--
-----------
Charl
7;)
I think the language would be cleaner if it lacked this weird exception for
`print`.
Charles
--
---
Charles Cazabon <[EMAIL
module. Importing it could have the
effect of (for instance) putting compile, id, and intern into the global
namespace, making print an alias for writeln, alias the standard library
namespace, ... ?
Charles
--
Guido van Rossum <[EMAIL PROTECTED]> wrote:
> On 8/31/05, Charles Cazabon <[EMAIL PROTECTED]> wrote:
>
> > While I'm at it, why not propose that for py3k that
> > .rfind/.rindex/.rjust/.rsplit disappear, and .find/.index/.just/.split
> > grow an opti
ex.
While I'm at it, why not propose that for py3k that
.rfind/.rindex/.rjust/.rsplit disappear, and .find/.index/.just/.split grow an
optional "fromright" (or equivalent) optional keyword argument?
Charles
--
-------
I'd rather leave them.
Me too. I have various programs that construct lots of large REs on the fly,
knowing they'll only be used once. Not having to compile them to objects
inline makes the code cleaner and easier to read.
Charles
--
----------
at's similar in meaning, there's also .cut().
Charles
--
-----------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available
t investigate it as a possibility.
Charles
--
-----------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://pyropus.ca/software/
---
xceptions (or am I the only one who thinks
> this?). Should we toss in a subclass called SimpleError?
Much Python code I've looked at uses ValueError for this purpose. Would
adding a special exception add much utility?
Charles
--
--------
(not
necessarily look) like this:
do:
while
with executed once prior to first being tested. But the
above is ugly, and you can get much the same effect with Python today:
firsttime = True
while firsttime or :
firsttime = False
Seems fairly Pythonic to me. YMMV
30 matches
Mail list logo