, 11, 4) - datetime.date(2012, 3, 11)
datetime.timedelta(238)
datetime.date(2013, 3, 10) - datetime.date(2012, 11, 4)
datetime.timedelta(126)
Robert Brewer
fuman...@aminus.org
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org
it doesn't work for WWW-Authenticate or TE, to give just a
couple of examples.
Robert Brewer
fuman...@aminus.org
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org
P.J. Eby wrote:
At 09:43 AM 1/7/2011 -0500, James Y Knight wrote:
On Jan 7, 2011, at 6:51 AM, Victor Stinner wrote:
I don't understand why you are attached to this horrible hack
(bytes-in-unicode). It introduces more work and more confusing
than
using raw bytes unchanged.
It
Paul Moore wrote:
Robert Brewer fuman...@aminus.org wrote:
P.J. Eby wrote:
Also, it should be mentioned that none of this would be
necessary if we could've gotten a bytes of a known encoding
type.
Still looking forward to the day when that moratorium is lifted.
Anyone have any
a number of tools in the past that needed to round-trip a
float through a string and back. I was under the impression that floats
needed 17 decimal digits to avoid losing precision. How does one do that
efficiently if neither str nor repr return 17 digits?
Robert Brewer
fuman...@aminus.org
Chris Withers wrote:
Robert Brewer wrote:
you could switch to Python 3.1,
I would love to, once Python 3 has a viable web app story...
CherryPy 3.2 is now in beta, and mod_wsgi is nearly ready as well. Both
support Python 3. :)
My understanding was that the wsgi spec for Python 3 wasn't
Graham Dumpleton wrote:
2009/5/12 Robert Brewer fuman...@aminus.org:
There's a major change in functionality in the cgi module between
Python
2 and Python 3 which I've just run across: the behavior of
FieldStorage.read_multi, specifically when an HTTP app accepts a file
upload within
incremental writes,
but I haven't yet found a way to do any kind of incremental reads
from it in order to shunt the fp.read out to a tempfile again.
I'm secretly hoping Barry has a one-liner fix for this. ;)
Robert Brewer
fuman...@aminus.org
___
Python-Dev
incremental writes,
but I haven't yet found a way to do any kind of incremental reads
from it in order to shunt the fp.read out to a tempfile again.
I'm secretly hoping Barry has a one-liner fix for this. ;)
Robert Brewer
fuman...@aminus.org
___
Python-Dev
is to compare runs on various
platforms. And please, stop perpetuating the myth that only end-users
use anything but Linux.
Robert Brewer
fuman...@aminus.org
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo
). If not, Message.header_encoding should be
sufficient.
Robert Brewer
fuman...@aminus.org
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python
don't know enough about the tracker to find if it was fixed in 2.6
concurrently, but the symptom appears there.
I tried hacking all the references I could find to XXX.SetDaemon(True)
to XXX.daemon = True but it didn't seem to help.
Fixed in http://www.cherrypy.org/changeset/2096.
Robert Brewer
sys.platform and set shell=True for Windows.
Robert Brewer
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail
to stop.
Robert Brewer
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
, it's pretty simple:
u'www.\u212bngstr\xf6m.com'.encode(idna)
'www.xn--ngstrm-hua5l.com'
Robert Brewer
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http
you aren't--trust me, I understand reference
counting).
Even if you're fully aware of all references, it's indeterminate in
multithreaded apps. I've just taken to doing:
self.socket._sock.close()
self.socket.close()
...in order to send the FIN I wanted ASAP.
Robert Brewer
[EMAIL
'
instead of 'lambda' we wouldn't be having this discussion.
Robert Brewer
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python
.
Robert Brewer
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
%+ are never installed or even built--I just want to
grep the source code, and using my preferred tools, not some lame Find
command in a ZIP browser menu.
Robert Brewer
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http
users despise it. If you're installing apps all day, you probably use it
a lot more often than library devs like me who use it once every other
month (if we're forced to).
Robert Brewer
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
all the time as I code?
not to mention litter my codebase with # the following ugly hack lets us work
with Python 2 and 3 comments so someone else doesn't undo all my hard work
when they run the tests on Python 3 but not 2? No thanks. My brain is too small.
Robert Brewer
[EMAIL PROTECTED
that we don't need oct() at all. IIRC, unix permissions like
0666 were the only use case that surfaced.
Postgres bytea coercion is a frequent use case for oct() in my world.
But I agree we don't need two versions.
Robert Brewer
[EMAIL PROTECTED
Eric Smith wrote:
Robert Brewer wrote:
Raymond Hettinger wrote:
I thought the whole point of 3.0 was a recognition that all that
doubling-up was a bad thing and to be rid of it. Why make the
situation worse? ISTM that we need two versions of oct() like
we need a hole in the head
monkeypatch repeatedly on the same cls.method
(but it's not thread-safe).
And although it might seem to be making monkeypatches easier to perform,
at least it's very explicit about what's going on as long as you keep
monkeypatch in the name.
Robert Brewer
[EMAIL PROTECTED
. Can we get that into the Language Ref somewhere? Maybe on the
http://docs.python.org/ref/try.html page?
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman
in that case?
I've found missing to be the most common (and the most understandable)
thing to print in that case.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org
Jon Ribbens wrote:
Robert Brewer [EMAIL PROTECTED] wrote:
One solution that just occurred to me -- and that
skirts the issue of choosing an interpretation --
is that, when comparing date and datetime objects,
the datetime's .date() method is called and the
result of that call
-made use case for that method.
+1
...and it's a decision that can be made independently
of how to add or subtract dates.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http
.
Is an implicit time of 0 really so surprising? It doesn't seem to be
surprising for the datetime constructor:
datetime.datetime(2007, 3, 9)
datetime.datetime(2007, 3, 9, 0, 0)
Why should it be surprising for comparisons?
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED
to SQLite's exposed
multiple-readers/one-writer design) on a daily basis (FAQ entries
notwithstanding).
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo
remember precedence rules. But
I can understand why some people would balk at it, so +0.5 from me. ;)
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman
enough of a dream, it would be nice to have a
bytecode tracer, which didn't bother with the f_lineno logic in
maybe_call_line_trace, but just called the hook on every instruction.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
[1] PyConquer, a trace hook to help understand
Barry Warsaw wrote:
On Tue, 2006-02-07 at 16:01 -0800, Robert Brewer wrote:
Perhaps, but please keep in mind that the smtpd module uses
both, currently, and would have to be rewritten if either is
removed.
Would that really be a huge loss?
It'd be a huge loss for the random fellow
emerges from the thousands of random variants?
I'd like to suggest this be moved to comp.lang.python and never return.
Community consensus on syntax is a pipe dream.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev
most of
asyncore's guts were replaced with more advanced Zope code, but the
API was maintained for compatibility reasons. A nightmare.
Perhaps, but please keep in mind that the smtpd module uses both, currently,
and would have to be rewritten if either is removed.
Robert Brewer
System Architect
for Python. Perhaps you're saying that there is a meaningful comparison between None and anything else, but please clarify if so.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http
is worse than the wrong decision ;-).
Exactly how I felt about bringing the decorator decision to a close. ;)
Congratulations to you both!
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http
a mistake between:
raise ValueError, A
and
raise (ValueError, A)
I'd like to see the first form removed in Python 3k, to help reduce the
ambiguity. But PEP 8 taking a stand on it would be a good start for now.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED
the next day, by the way. #1203094
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
P.S. Do you have a valid email address, RB? I wasn't able to fix up your
nospam address by hand.
___
Python-Dev mailing list
Python-Dev@python.org
http
() is going to be
passed as a single arg, then I'd rather have the default exc = (), so
I can simply check if exc: in the __exit__ method.
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
then,
you'd have the cell issues you mentioned, trying to push values from the
thunk's original scope. Bah. It's so tempting on the semantic level, but
the implementation's a bear.
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing
expression-context use of them.
Rewrite the above to:
defcallee foo:
c = a
def bar():
a = a1
collapse foo
print c
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org
Shane Hathaway wrote:
Robert Brewer wrote:
So currently, all subclasses just override __set__, which leads to a
*lot* of duplication of code. If I could write the base
class' __set__
to call macros like this:
def __set__(self, unit, value):
self.begin
43 matches
Mail list logo