Re: [Python-Dev] datetime nanosecond support
It can't be *that* easy. DST never is... For one, the dst flag is two bits -- it can be on, off, or undefined. Also it should probably only apply when a tzinfo is present. I don't recall that pickling ever was the reason, but it could have been the size of the in-memory representation (for reasons I can't fully recall we were *very* concerned about the memory size of datetime objects). Anyway, I don't want to be the limiting factor here, and I think this (as well as nanoseconds) should be considered, but I don't want to have to hand-hold the design. A PEP is in order. --Guido On Mon, Jul 30, 2012 at 6:56 AM, Stuart Bishop wrote: > On Wed, Jul 25, 2012 at 9:11 PM, Christian Heimes wrote: >> Am 25.07.2012 14:11, schrieb Nick Coghlan: >>> 1. For the reasons presented, I think it's worth attempting to define >>> a common API that is based on datetime, but is tailored towards high >>> precision time operations (at least using a different internal >>> representation, perhaps supporting TAI). >> >> This is a great opportunity to implement two requests at once. Some >> people want high precision datetime objects while others would like to >> see a datetime implementation that works with dates BC. > > Back when the datetime library was being designed, a limiting factor > was size of the pickle (for reasons that I think no longer apply). > Support for the is_dst flag was never in there, only because the extra > single bit required overflowed the pickle size limit. If api changes > are being considered, please consider adding this bit back to match > the standard libraries. This will let me make the pytz timezone > library's API saner, and allow Python to do wallclock datetime > arithmetic without ambiguous cases. > > > -- > Stuart Bishop > http://www.stuartbishop.net/ -- --Guido van Rossum (python.org/~guido) ___ 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
Re: [Python-Dev] datetime nanosecond support
On Wed, Jul 25, 2012 at 9:11 PM, Christian Heimes wrote: > Am 25.07.2012 14:11, schrieb Nick Coghlan: >> 1. For the reasons presented, I think it's worth attempting to define >> a common API that is based on datetime, but is tailored towards high >> precision time operations (at least using a different internal >> representation, perhaps supporting TAI). > > This is a great opportunity to implement two requests at once. Some > people want high precision datetime objects while others would like to > see a datetime implementation that works with dates BC. Back when the datetime library was being designed, a limiting factor was size of the pickle (for reasons that I think no longer apply). Support for the is_dst flag was never in there, only because the extra single bit required overflowed the pickle size limit. If api changes are being considered, please consider adding this bit back to match the standard libraries. This will let me make the pytz timezone library's API saner, and allow Python to do wallclock datetime arithmetic without ambiguous cases. -- Stuart Bishop http://www.stuartbishop.net/ ___ 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
Re: [Python-Dev] python-checkins moderation
On 7/29/2012 4:42 PM, Barry Warsaw wrote: I just freed up a bunch, but not all, of the messages to python-checkins being held for moderator approval. We could use some additional moderator volunteers. I'm not sure Fred is still moderating the list, and I suck at it. It seems that me that messages from people with commit rights should be automatic along with those from the repository. Please email me directly if you'd like to help out, yes have experience moderating lists, no It seems that responses from non-committers are rare to non-existent. Will the list email a moderator when sucy arrive? and at least vaguely understand what's on and off topic for python-checkins. yes --- Terry Jan Reedy ___ 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
Re: [Python-Dev] Requesting pronouncement on PEP 0424
Guido van Rossum python.org> writes: > > > Looks good to me, so accepted.But why isn't it visible on > python.org/dev/peps/ yet? I just realized the text in the python.org repo did not match what I had locally. I've pushed what I intended to be the latest text, if everyone could take a new look at that I would be very grateful. Sorry for the mixup. Alex ___ 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
Re: [Python-Dev] PEP updating
Martin, I have just received a huge pile of email saying this: " /home/docs/build-devguide: line 3: hg: command not found " From "Cron Daemon r...@python.org" Could this be related to the recent fix you made? Remotely related. This is really the cron job for updating the devguide, not the one for updating the PEPs. Howerver, it should have stopped now. Regards, Martin ___ 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
Re: [Python-Dev] PEP updating
On Sun, Jul 29, 2012 at 2:18 PM, "Martin v. Löwis" wrote: > I added a cron job on www.python.org that checks every 5 minutes for > a modified PEP. So automatic updating should work again. > > Regards, > Martin > ___ Martin, I have just received a huge pile of email saying this: " /home/docs/build-devguide: line 3: hg: command not found " >From "Cron Daemon r...@python.org" Could this be related to the recent fix you made? Eli ___ 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
Re: [Python-Dev] PEP updating
Oh, thanks Martin! Victor Le 29 juil. 2012 13:20, Martin v. Löwis a écrit : > > I added a cron job on www.python.org that checks every 5 minutes for > a modified PEP. So automatic updating should work again. > > Regards, > Martin > ___ > 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/victor.stinner%40gmail.com ___ 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
[Python-Dev] python-checkins moderation
I just freed up a bunch, but not all, of the messages to python-checkins being held for moderator approval. We could use some additional moderator volunteers. I'm not sure Fred is still moderating the list, and I suck at it. Please email me directly if you'd like to help out, have experience moderating lists, and at least vaguely understand what's on and off topic for python-checkins. Cheers, -Barry signature.asc Description: PGP signature ___ 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
Re: [Python-Dev] PEP updating
On Sun, Jul 29, 2012 at 9:18 PM, "Martin v. Löwis" wrote: > I added a cron job on www.python.org that checks every 5 minutes for > a modified PEP. So automatic updating should work again. Thanks! Will be very helpful to see the updates as Georg tweaks the release schedule in response to 3.3 release blocking issue reports. Cheers, Nick. -- Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia ___ 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
[Python-Dev] PEP updating
I added a cron job on www.python.org that checks every 5 minutes for a modified PEP. So automatic updating should work again. Regards, Martin ___ 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
Re: [Python-Dev] Requesting pronouncement on PEP 0424
Hi Alex, just a small info (view pep-0424.txt @ 4491:7838a83c3ad1): - Section Proposal: [...] than the actual size >>> ofthe <<< container. [...] - Section Rationale: The first line is really long (seems to need a newline before ``__length_hint__``) Regards francis ___ 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