Re: [Python-Dev] Issue 14417: consequences of new dict runtime error

2012-03-29 Thread R. David Murray
On Thu, 29 Mar 2012 23:00:20 +0200, Stefan Behnel wrote: > R. David Murray, 29.03.2012 22:31: > > On Thu, 29 Mar 2012 13:09:17 -0700, Guido van Rossum wrote: > >> On Thu, Mar 29, 2012 at 12:58 PM, R. David Murray wrote: > >>> Some of us have expressed uneasiness

Re: [Python-Dev] datetime module and pytz with dateutil

2012-03-30 Thread R. David Murray
On Fri, 30 Mar 2012 13:38:13 +0300, Serhiy Storchaka wrote: > 28.03.12 23:20, Andrew Svetlov написав(ла): > > I figured out what pytz and dateutil are not mentioned in python docs > > for datetime module. > > It's clean why these libs is not a part of Python Libraries — but > > that's

Re: [Python-Dev] Issue 14417: consequences of new dict runtime error

2012-03-30 Thread R. David Murray
On Fri, 30 Mar 2012 15:13:36 -0400, Etienne Robillard wrote: > So far I was only attempting to verify whether this is related to > PEP-416 or not. If this is indeed related PEP 416, then I must obviously > attest that I must still understand why a immutable dict would prevent > this bug or not

Re: [Python-Dev] PEP 418: Add monotonic clock

2012-03-30 Thread R. David Murray
On Fri, 30 Mar 2012 12:40:25 -0700, Guido van Rossum wrote: > But for the other, I'm still at a loss, and that name is the most > important one. We can't call it steady because it isn't always. > highres or hires sounds awkward; try_monotonic or try_steady are even > more awkward. I looked in an o

Re: [Python-Dev] Issue 14417: consequences of new dict runtime error

2012-03-31 Thread R. David Murray
On Sat, 31 Mar 2012 07:43:28 -0400, Etienne Robillard wrote: > Yet I might miss how this "new dict" type could potentially induce a > RuntimeError unless in python 3.3 a new dict proxy alias is introduced > to perform invariant operations in non thread-safe code. Etienne, again: issue 14417 ha

Re: [Python-Dev] Issue 14417: consequences of new dict runtime error

2012-03-31 Thread R. David Murray
On Sun, 01 Apr 2012 03:03:13 +1000, Nick Coghlan wrote: > On Sun, Apr 1, 2012 at 2:09 AM, Guido van Rossum wrote: > > Here's a different puzzle. Has anyone written a demo yet that provokes > > this RuntimeError, without cheating? (Cheating would be to mutate the > > dict from *inside* the __eq__

Re: [Python-Dev] .{git,bzr}ignore in cpython HG repo

2012-04-02 Thread R. David Murray
On Tue, 03 Apr 2012 00:44:32 +0200, Antoine Pitrou wrote: > On Tue, 3 Apr 2012 07:43:20 +1000 > Nick Coghlan wrote: > > > On Mon, Apr 2, 2012 at 9:50 PM, Antoine Pitrou wrote: > > > That said, these files will always be outdated, so we might as well > > > remove them so that at least git / bzr

Re: [Python-Dev] PEP 418: rename time.monotonic() to time.steady()?

2012-04-03 Thread R. David Murray
On Tue, 03 Apr 2012 22:42:37 +0800, Matt Joiner wrote: > The discussion has completed degenerated. There are several different > clocks here, and several different agendas. It's probably time to do a reset. Read Victor's PEP, and help him edit it so that it accurately reflects the various argume

Re: [Python-Dev] Failed issue tracker submission

2012-04-04 Thread R. David Murray
On Thu, 05 Apr 2012 01:29:47 -, Python tracker wrote: > > An unexpected error occurred during the processing > of your message. The tracker administrator is being > notified. Since the bounce message went here, I'm posting this here for those who are curious what caused it. It was triggere

Re: [Python-Dev] cpython: Issue #3033: Add displayof parameter to tkinter font.

2012-04-05 Thread R. David Murray
(reformatted to remove topposting) On Thu, 05 Apr 2012 14:52:56 +0300, Andrew Svetlov wrote: > On Thu, Apr 5, 2012 at 1:21 PM, Antoine Pitrou wrote: > > On Thu, 05 Apr 2012 11:41:48 +0200 > > andrew.svetlov wrote: > >> http://hg.python.org/cpython/rev/774c2afa6665 > >> changeset:   76115:774c

Re: [Python-Dev] cpython: Issue #3033: Add displayof parameter to tkinter font.

2012-04-05 Thread R. David Murray
On Thu, 05 Apr 2012 17:34:07 +0300, Andrew Svetlov wrote: > Thank you, David. > Is separate repo clone located at hg.python.org good enough? Or maybe > there are better way to do it? That sounds like a good plan to me. --David ___ Python-Dev mailing l

Re: [Python-Dev] an alternative to embedding policy in PEP 418 (was: PEP 418: Add monotonic clock)

2012-04-05 Thread R. David Murray
On Thu, 05 Apr 2012 19:22:17 +0400, Oleg Broytman wrote: > On Thu, Apr 05, 2012 at 11:45:06PM +0900, Stephen J. Turnbull wrote: > > On Thu, Apr 5, 2012 at 10:34 PM, Oleg Broytman wrote: > > >   Why doesn't open() return None for a non-existing file? or > > > socket.gethostbyname() for a non-exis

Re: [Python-Dev] cpython: Issue #3033: Add displayof parameter to tkinter font.

2012-04-07 Thread R. David Murray
On Sat, 07 Apr 2012 15:15:00 +0300, Andrew Svetlov wrote: > Thank you. That works. Is there way to delete unused repo? This is what I've heard: If a repo isn't used (at all) it eventually gets deleted automatically. Otherwise, you have to ask. Probably python-committers is the best place for a

Re: [Python-Dev] [Python-checkins] cpython: #14533: if a test has no test_main, use loadTestsFromModule.

2012-04-09 Thread R. David Murray
On Mon, 09 Apr 2012 13:34:25 -0400, Terry Reedy wrote: > > On 4/9/2012 9:13 AM, r.david.murray wrote: > > http://hg.python.org/cpython/rev/eff551437abd > > changeset: 76176:eff551437abd > > user:R David Murray > > date:Mon Apr 09 08:55:42 2012 -0

Re: [Python-Dev] PEP 418 glossary

2012-04-12 Thread R. David Murray
On Thu, 12 Apr 2012 13:49:43 -, =?utf-8?B?S3Jpc3Rqw6FuIFZhbHVyIErDs25zc29u?= wrote: > Wallclock: This definition is wrong no metter how the BDFL feels about the > word. Please see http://en.wikipedia.org/wiki/Wall_clock_time. I agree with the BDFL. I have always heard "wallclock" as refe

[Python-Dev] tracker searches fixed

2012-04-13 Thread R. David Murray
For those of you who had noticed that since the upgrade the tracker search hasn't been returning a complete set of hits on typical searches, this should now be fixed. --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailma

Re: [Python-Dev] importlib is now bootstrapped (and what that means)

2012-04-16 Thread R. David Murray
On Mon, 16 Apr 2012 11:21:34 -0400, Brett Cannon wrote: > On Mon, Apr 16, 2012 at 10:07, "Martin v. Löwis" wrote: > > > > We have other instances of this (e.g. the Objects/typeslots.inc file > > > is generated and checked in), but in the case of importlib, we have > > > to use the ./python bina

Re: [Python-Dev] importlib is now bootstrapped (and what that means)

2012-04-16 Thread R. David Murray
On Mon, 16 Apr 2012 13:51:35 -0400, Barry Warsaw wrote: > On Apr 16, 2012, at 07:44 PM, Antoine Pitrou wrote: > > >Wouldn't it be better if Python could compile regardless of the > >presence of a hg repository? > > If you want it in your $DISTRO, yes please! My impression is that our usual solu

Re: [Python-Dev] importlib is now bootstrapped (and what that means)

2012-04-17 Thread R. David Murray
On Tue, 17 Apr 2012 01:11:14 +0200, Georg Brandl wrote: > On 16.04.2012 18:15, R. David Murray wrote: > > I don't see how depending on Cython is better than depending on having > > an existing Python. > > No, it's not just an existing Python, it is (at least c

Re: [Python-Dev] Suggested addition to PEP 8 for context managers

2012-04-17 Thread R. David Murray
On Tue, 17 Apr 2012 08:53:43 +0200, Matej Cepl wrote: > On 16.4.2012 18:10, Nam Nguyen wrote: > > a_list[pos + 1 : -1] > > or other way around > > a_list[pos+1:-1] That's what I always use. No spaces inside the brackets for me :) If the expression gets unreadable that way, factor it out. --

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-17 Thread R. David Murray
On Tue, 17 Apr 2012 14:48:22 +1000, Cameron Simpson wrote: > On 16Apr2012 01:25, Victor Stinner wrote: > | I suppose that most people don't care that "resolution" and > | "precision" are different things. > > If we're using the same definitions we discussed offline, where > > - resolution is

Re: [Python-Dev] [Python-checkins] cpython: Fix email post-commit review comments.

2012-04-18 Thread R. David Murray
We're seeing segfuilts on the buildbots now. Example: http://www.python.org/dev/buildbot/all/builders/x86%20Ubuntu%20Shared%203.x/builds/5715 On Wed, 18 Apr 2012 23:39:34 +1000, Nick Coghlan wrote: > On Wed, Apr 18, 2012 at 11:31 PM, brian.curtin > wrote: > > -    if (name == NULL) > > +  

Re: [Python-Dev] webbrowser no longer support 'internet-config' on Mac

2012-04-18 Thread R. David Murray
Please submit a bug report at bugs.python.org. Bugs posted to this mailing list tend to get forgotten unless a tracker issue is created. On Wed, 18 Apr 2012 20:54:28 +0800, Leo wrote: > The doc says supported as in > http://docs.python.org/library/webbrowser.html > > but the code has been delet

Re: [Python-Dev] PEP 418: Add monotonic time, performance counter and process time functions

2012-04-18 Thread R. David Murray
On Wed, 18 Apr 2012 15:50:13 -0400, Terry Reedy wrote: > On 4/18/2012 2:45 AM, Stephen J. Turnbull wrote: > > On Wed, Apr 18, 2012 at 8:25 AM, Victor Stinner > > wrote: > > > >> Ok ok, resolution / accuracy / precision are confusing (or at least > >> not well known concepts). > > > > Maybe not t

Re: [Python-Dev] Cython for cPickle?

2012-04-19 Thread R. David Murray
On Thu, 19 Apr 2012 14:44:06 +0200, Antoine Pitrou wrote: > Also, while C is a low-level language, Cython is a different language > than Python when you start using its optimization features. This means > core developers have to learn that language. Hmm. On the other hand, perhaps some core deve

Re: [Python-Dev] Failed issue tracker submission

2012-04-20 Thread R. David Murray
On Sat, 21 Apr 2012 08:54:56 +0800, Matt Joiner wrote: > I'm getting one of these every couple of days. What's the deal? > On Apr 21, 2012 1:03 AM, "Python tracker" < > roundup-ad...@psf.upfronthosting.co.za> wrote: There is a bug in the interface between roundup and hg that is new since roundup

Re: [Python-Dev] Expose dictproxy through collections rather than the types module?

2012-04-21 Thread R. David Murray
On Sat, 21 Apr 2012 23:09:08 +1000, Nick Coghlan wrote: > Since it's not very discoverable that way, would anyone object if I > moved things around so it was exposed as collections.MappingProxy > instead? The main benefit to doing so is to get it into the table of > specialised container types at

Re: [Python-Dev] cpython: Implement PEP 412: Key-sharing dictionaries (closes #13903)

2012-04-23 Thread R. David Murray
On Mon, 23 Apr 2012 22:22:18 +0200, Antoine Pitrou wrote: > On Mon, 23 Apr 2012 17:24:57 +0200 > benjamin.peterson wrote: > > http://hg.python.org/cpython/rev/6e5855854a2e > > changeset: 76485:6e5855854a2e > > user:Benjamin Peterson > > date:Mon Apr 23 11:24:50 2012 -0400 > > s

Re: [Python-Dev] Is it safe to assume that Python 2.7 is always built with unicode support?

2012-04-26 Thread R. David Murray
On Thu, 26 Apr 2012 17:07:46 +0200, Stefano Taschini wrote: > May I suggest that http://bugs.python.org/issue8767 be reopened, to make > things clear? Done. --David PS: we prefer no top-posting on this list. It makes it far easier to retain just enough context to make a message stand on its ow

Re: [Python-Dev] sys.implementation

2012-04-27 Thread R. David Murray
On Fri, 27 Apr 2012 10:40:43 -0700, Glenn Linderman wrote: > On 4/27/2012 12:34 AM, Eric Snow wrote: > > On Thu, Apr 26, 2012 at 8:31 AM, Barry Warsaw wrote: > >> It's somewhat of a corner case, but I think a PEP couldn't hurt. The > >> rationale section would be useful, at least. > >http:/

Re: [Python-Dev] package imports, sys.path and os.chdir()

2012-04-28 Thread R. David Murray
On Sat, 28 Apr 2012 18:08:08 +1000, Nick Coghlan wrote: > On Sat, Apr 28, 2012 at 6:00 AM, Brett Cannon wrote: > > I'm personally in favour of changing the insertion of '' to sys.path to > > inserting the cwd when the interpreter is launched. > > I'm not, because it breaks importing from the int

Re: [Python-Dev] Email6 status (was Open PEPs and large-scale changes for 3.3)

2012-05-01 Thread R. David Murray
On Tue, 01 May 2012 13:57:50 +0200, Georg Brandl wrote: > Other planned large-scale changes: > > * Addition of the "regex" module > * Email version 6 I guess it's time to talk about my plans for this one :) RIM/QNX is currently paying me to work on their stuff rather than email6, (but it does l

Re: [Python-Dev] Does trunk still support any compilers that *don't* allow declaring variables after code?

2012-05-02 Thread R. David Murray
On Wed, 02 May 2012 21:37:35 +0800, Matt Joiner wrote: > On May 2, 2012 6:00 PM, "Antoine Pitrou" wrote: > > > > On Wed, 02 May 2012 01:43:32 -0700 > > Larry Hastings wrote: > > > > > > I realize we can't jump to C99 because of A Certain Compiler. (Its name > > > rhymes with Bike Row Soft Frizz

Re: [Python-Dev] Adding types.build_class for 3.3

2012-05-09 Thread R. David Murray
On Thu, 10 May 2012 08:14:55 +1000, Nick Coghlan wrote: > Given that the statement form is referred to as a "class definition", and > this is the dynamic equivalent, I'm inclined to go with "type.define()". > Dynamic type definition is more consistent with existing terminology than > dynamic type

Re: [Python-Dev] Allow use of sphinx-autodoc in the standard library documentation?

2012-05-10 Thread R. David Murray
On Thu, 10 May 2012 15:02:20 +1000, Nick Coghlan wrote: > So, given the advantages of autodoc, is there a concrete reason why we > can't use it for the documentation of *new* standard library modules? Yes. Our reason is that docstrings should be relatively lightweight, and that the sphinx docs s

Re: [Python-Dev] Adding types.build_class for 3.3

2012-05-11 Thread R. David Murray
On Fri, 11 May 2012 10:16:42 -0400, Terry Reedy wrote: > On 5/11/2012 2:21 AM, Mark Shannon wrote: > > +1 to a pure Python version. > > Since new_class would be used rarely and not in inner loops, and (if I > understand) should mostly contain branching logic rather than looping, > speed hardly

Re: [Python-Dev] C-level duck typing

2012-05-17 Thread R. David Murray
On Thu, 17 May 2012 20:13:41 +0200, Dag Sverre Seljebotn wrote: > Every time Cython becomes able to do stuff more easily in this domain, > people thank us that they didn't have to dig up Fortran but can stay > closer to Python. > > Sorry for going off on a rant. I find that people will give we

Re: [Python-Dev] Email6 status

2012-05-20 Thread R. David Murray
On Tue, 01 May 2012 10:55:03 -0400, Barry Warsaw wrote: > On May 01, 2012, at 10:40 AM, R. David Murray wrote: > >I guess it's time to talk about my plans for this one :) > > Thanks for the update RDM. I really wish I had more time to contribute to > email6, but I

Re: [Python-Dev] docs.python.org pointing to Python 3 by default?

2012-05-21 Thread R. David Murray
On Mon, 21 May 2012 11:41:29 +0200, Georg Brandl wrote: > On 05/21/2012 03:23 AM, Guido van Rossum wrote: > > I suggest that we add a separate (virtual) subdomain, e.g. docs3.python.org. > > Here are the time machine keys: this subdomain has existed for a few years > now :) The fact that none o

Re: [Python-Dev] docs.python.org pointing to Python 3 by default?

2012-05-21 Thread R. David Murray
On Mon, 21 May 2012 11:19:56 -0400, David Malcolm wrote: > On Fri, 2012-05-18 at 14:24 -0400, Barry Warsaw wrote: > > At what point should we cut over docs.python.org to point to the Python 3 > > documentation by default? Wouldn't this be an easy bit to flip in order to > > promote Python 3 more

Re: [Python-Dev] possible bug in distutils (Mingw32CCompiler)?

2012-05-24 Thread R. David Murray
On Thu, 24 May 2012 08:45:30 -0500, Brian Curtin wrote: > On Thu, May 24, 2012 at 7:03 AM, Sturla Molden wrote: > > > > Mingw32CCompiler in cygwincompiler.py emits the symbol -mno-cygwin. > > > > This is used to make Cygwin's gcc behave as mingw. As of gcc 4.6 it is not > > recognized by the ming

Re: [Python-Dev] cpython: #12586: add provisional email policy with new header parsing and folding.

2012-05-26 Thread R. David Murray
On Sat, 26 May 2012 09:14:07 +0200, Georg Brandl wrote: > Am 26.05.2012 00:44, schrieb r.david.murray: > > http://hg.python.org/cpython/rev/0189b9d2d6bc > > changeset: 77148:0189b9d2d6bc > > user: R David Murray > > date:Fri May 25 18:42:14 2012 -040

Re: [Python-Dev] cpython: Issue #14744: Fix compilation on Windows (part 2)

2012-05-30 Thread R. David Murray
On Wed, 30 May 2012 14:03:44 -, =?iso-8859-1?Q?Kristj=E1n_Valur_J=F3nsson?= wrote: > > -Original Message- > > From: python-dev-bounces+kristjan=ccpgames@python.org > > [mailto:python-dev-bounces+kristjan=ccpgames@python.org] On > > Behalf Of Georg Brandl > > Sent: 30. maí 201

Re: [Python-Dev] [Python-checkins] cpython: Make parameterized tests in email less hackish.

2012-05-31 Thread R. David Murray
On Thu, 31 May 2012 13:11:14 +1000, Nick Coghlan wrote: > I'm not clear on why this is a metaclass rather than a simple class decorator. Because I didn't think of it. I don't (yet) think of "class" and "decorator" in the same sentence :) > On Thu, May 31, 2012 at 11:54 AM, r.david.murray > wro

Re: [Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.

2012-06-01 Thread R. David Murray
On Sat, 02 Jun 2012 10:42:13 +1000, Nick Coghlan wrote: > > + For example, ``'ab c\n\nde fg\rkl\r\n'.splitlines()`` returns > > + ``['ab c', '', 'de fg', 'kl']``, while the same call with > ``splinelines(True)`` > > + returns ``['ab c\n', '\n, 'de fg\r', 'kl\r\n']``. > > s/splinelines/split

Re: [Python-Dev] Daily reference leaks (d9b7399d9e45): sum=462

2012-06-04 Thread R. David Murray
On Mon, 04 Jun 2012 19:36:52 +0200, Antoine Pitrou wrote: > Le 03/06/2012 06:01, Benjamin Peterson a écrit : > > 2012/6/2: > >> results for d9b7399d9e45 on branch "default" > >> > >> > >> test_smtplib leaked [154, 154, 154] references, sum=462 > > > >

Re: [Python-Dev] [Python-checkins] peps: Add PEP 422: Dynamic Class Decorators

2012-06-05 Thread R. David Murray
On Wed, 06 Jun 2012 09:38:39 +1000, Nick Coghlan wrote: > On Wed, Jun 6, 2012 at 9:06 AM, PJ Eby wrote: > > > > > > On Tue, Jun 5, 2012 at 5:31 PM, Terry Reedy wrote: > >> > >> On 6/5/2012 2:26 PM, PJ Eby wrote: > >>> It's for symmetry and straightforward translation with stacked > >>> decorator

Re: [Python-Dev] TZ-aware local time

2012-06-05 Thread R. David Murray
On Tue, 05 Jun 2012 18:31:20 -0700, Glyph wrote: > > Le Jun 5, 2012 à 6:16 PM, Nick Coghlan a écrit : > > > Personally, I'd like to see the datetime module make an explicit > > assumption that "all naive datetime objects are considered to be UTC", > > with the interactions between naive and aw

Re: [Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.

2012-06-07 Thread R. David Murray
On Thu, 07 Jun 2012 11:08:09 +0100, Sam Partington wrote: > > On Jun 2, 2012 6:21 AM, "r.david.murray" wrote: > >> +   For example, ``'ab c\n\nde fg\rkl\r\n'.splitlines()`` returns > >> +   ``['ab c', '', 'de fg', 'kl']``, while the same call with > >> ``splinelines(True)`` > >> +   returns `

Re: [Python-Dev] Updated PEP 362 (Function Signature Object)

2012-06-07 Thread R. David Murray
On Thu, 07 Jun 2012 07:00:29 -0700, Larry Hastings wrote: > On 06/06/2012 11:56 PM, Nick Coghlan wrote: > > I'd say return a copy in the first case to be safe against accidental > > modification. If someone actually wants in-place modification, they > > can access __signature__ directly. > > I re

Re: [Python-Dev] PEP 362 Second Revision

2012-06-07 Thread R. David Murray
On Thu, 07 Jun 2012 17:39:54 -0400, Terry Reedy wrote: > On 6/7/2012 4:54 PM, Yury Selivanov wrote: > > > I think we'll add a 'format' method to the Signature, that will work > > like 'inspect.formatargspec'. 'Signature.__str__' will use it with > > default parameters/formatters. > > Great. If

Re: [Python-Dev] [Python-checkins] cpython (3.2): #14957: clarify splitlines docs.

2012-06-08 Thread R. David Murray
On Fri, 08 Jun 2012 07:20:55 -0400, Tres Seaver wrote: > On 06/07/2012 08:55 AM, R. David Murray wrote: > > On Thu, 07 Jun 2012 11:08:09 +0100, Sam Partington > > wrote: > > >> Wouldn't that be better written as a doctest and so avoid any other > >> typ

Re: [Python-Dev] backporting stdlib 2.7.x from pypy to cpython

2012-06-08 Thread R. David Murray
On Fri, 08 Jun 2012 09:39:47 -0700, "fwierzbi...@gmail.com" wrote: > On Fri, Jun 8, 2012 at 9:22 AM, Jeff Hardy wrote: > > On Fri, Jun 8, 2012 at 8:13 AM, Matti Picus wrote: > >> > >> The windows port of pypy makes special demands on stdlib, specifically that > >> files are explicitly closed. T

Re: [Python-Dev] TZ-aware local time

2012-06-11 Thread R. David Murray
On Mon, 11 Jun 2012 10:01:57 -0700, Guido van Rossum wrote: > On Mon, Jun 11, 2012 at 6:33 AM, Alexander Belopolsky > wrote: > > On Fri, Jun 8, 2012 at 11:06 PM, Guido van Rossum wrote: > >> On Fri, Jun 8, 2012 at 2:08 PM, Alexander Belopolsky > >> wrote: > > .. > >> t = mktime((2010, 11, 7

Re: [Python-Dev] #12982: Should -O be required to *read* .pyo files?

2012-06-13 Thread R. David Murray
On Wed, 13 Jun 2012 13:19:43 -0400, Brett Cannon wrote: > On Tue, Jun 12, 2012 at 2:16 PM, Terry Reedy wrote: > > > http://bugs.python.org/**issue12982 > > > > Currently, cpython requires the -O flag to *read* .pyo files as well as > > the write them. This is

Re: [Python-Dev] #12982: Should -O be required to *read* .pyo files?

2012-06-13 Thread R. David Murray
On Wed, 13 Jun 2012 11:20:24 -0700, Toshio Kuratomi wrote: > On Wed, Jun 13, 2012 at 01:58:10PM -0400, R. David Murray wrote: > > > > OK, but you didn't answer the question :). If I understand correctly, > > everything you said applies to *writing* the bytecode, not r

Re: [Python-Dev] #12982: Should -O be required to *read* .pyo files?

2012-06-13 Thread R. David Murray
On Wed, 13 Jun 2012 20:46:50 +0200, Antoine Pitrou wrote: > On Wed, 13 Jun 2012 11:20:24 -0700 > Toshio Kuratomi wrote: > > On Wed, Jun 13, 2012 at 01:58:10PM -0400, R. David Murray wrote: > > > > > > OK, but you didn't answer the question :). If I underst

Re: [Python-Dev] #12982: Should -O be required to *read* .pyo files?

2012-06-13 Thread R. David Murray
On Thu, 14 Jun 2012 11:48:08 +1000, Nick Coghlan wrote: > On Thu, Jun 14, 2012 at 6:06 AM, Terry Reedy wrote: > > On 6/13/2012 2:46 PM, Antoine Pitrou wrote: > > > >> Not only docstrings, but also asserts. I think running a pyo without -O > >> would be a bug. > > > > That cat is already out of th

Re: [Python-Dev] deprecating .pyo and -O

2012-06-14 Thread R. David Murray
On Thu, 14 Jun 2012 14:14:54 +0200, Antoine Pitrou wrote: > On Thu, 14 Jun 2012 12:58:16 +0100 > Floris Bruynooghe wrote: > > On 14 June 2012 11:25, Antoine Pitrou wrote: > > > Honestly, I think the best option would be to deprecate .pyo files as > > > well as the useless -O option. They only ca

Re: [Python-Dev] cpython (2.7): Issue #15060: fix typo in socket doc; Patch by anatoly techtonik

2012-06-14 Thread R. David Murray
On Thu, 14 Jun 2012 16:15:41 +0200, Georg Brandl wrote: > Am 13.06.2012 23:59, schrieb sandro.tosi: > > http://hg.python.org/cpython/rev/744fb52ffdf0 > > changeset: 77417:744fb52ffdf0 > > branch: 2.7 > > parent: 77408:60a7b704de5c > > user:Sandro Tosi > > date:Wed Jun

Re: [Python-Dev] PEP 362 Third Revision

2012-06-14 Thread R. David Murray
On Thu, 14 Jun 2012 07:50:42 -0700, Alexandre Zani wrote: > On Thu, Jun 14, 2012 at 6:50 AM, Yury Selivanov > wrote: > > On 2012-06-14, at 8:06 AM, Victor Stinner wrote: > >> Hum, why not using a attribute with a string value instead of 3 > >> attribute? For example: > >> * argtype: "index", "v

Re: [Python-Dev] PEP 362 Third Revision

2012-06-14 Thread R. David Murray
On Thu, 14 Jun 2012 21:57:34 +0200, Antoine Pitrou wrote: > On Thu, 14 Jun 2012 12:46:38 -0700 > Ethan Furman wrote: > > > > This is no different from what we have with strings now: > > > > --> 'aA'.islower() > > False > > --> 'aA'.isupper() > > False > > --> 'a'.islower() > > True > > --> 'A'.

Re: [Python-Dev] PEP 362 Third Revision

2012-06-15 Thread R. David Murray
On Fri, 15 Jun 2012 11:17:09 -0700, Larry Hastings wrote: > On 06/15/2012 04:32 AM, Nick Coghlan wrote: > > Since I don't believe your proposed flag will answer any question that > > actually matters in practice, I consider it useless noise that should > > be dropped from the proposal. > > I can

Re: [Python-Dev] PEP 362: 4th edition

2012-06-15 Thread R. David Murray
On Fri, 15 Jun 2012 22:48:42 +0200, Victor Stinner wrote: > > 1. Should we keep 'Parameter.implemented' or not.  *Please vote* -1 to implemented. > I still disagree with the deepcopy. I read somewhere that Python > developers are consenting adult. If someone really want to modify a > Signature

Re: [Python-Dev] PEP 423 : naming conventions and recipes related to packaging

2012-06-28 Thread R. David Murray
On Thu, 28 Jun 2012 08:14:07 -0400, Chris McDonough wrote: > It's probably always a reasonable idea to use a brand-prefixed namespace > for *private* packages but in my experience it's almost always a bad > idea to publish any set of otherwise-unrelated packages that share a > branded namespace

Re: [Python-Dev] PEP 423 : naming conventions and recipes related to packaging

2012-06-28 Thread R. David Murray
On Thu, 28 Jun 2012 12:53:47 +0200, =?ISO-8859-1?Q?Beno=EEt_Bryon?= wrote: > Le 27/06/2012 22:08, Yury Selivanov a écrit : > > With python adoption (enterprise too) growing, we will inevitably > > find out that one single namespace (PyPI) is not enough, and > > name collisions will become a freq

Re: [Python-Dev] cpython (2.7): #9559: Append data to single-file mailbox files if messages are only added

2012-06-28 Thread R. David Murray
(). This patch just changed it to not do a full > rewrite when flush() is called. Having a partially written message in > the end of your mailbox doesn't seem like a fatal corruption to me. > > Furthermore, I (and R. David Murray) think this is not so surprising > for users.

Re: [Python-Dev] [pydotorg-www] [Infrastructure] Buildbot master moved

2012-06-28 Thread R. David Murray
On Thu, 28 Jun 2012 16:04:21 +0200, Hynek Schlawack wrote: > I don’t know if it’s known, but the bot infrastructure is FUBAR now. > http://buildbot.python.org/all/waterfall is a stacktrace and all tests > fail because of the XML-RPC tests that use our buildbot API. Heh, that's somewhat amusin

Re: [Python-Dev] Python-Dev Digest, Vol 108, Issue 14

2012-07-12 Thread R. David Murray
On Thu, 12 Jul 2012 03:34:20 -0700, Ryan Paullin wrote: > $ python -m timeit -s 'import test' 'list(test.grouper(2,"abcdef"))' > 10 loops, best of 3: 5.34 usec per loop > $ python -m timeit -s 'import test' 'test.grouper(2,"abcdef")' > 10 loops, best of 3: 2.19 usec per loop > $ python -m

Re: [Python-Dev] cpython: Issue #15168: Move importlb.test to test.test_importlib.

2012-07-20 Thread R. David Murray
On Fri, 20 Jul 2012 22:12:26 +0200, Antoine Pitrou wrote: > On Fri, 20 Jul 2012 20:49:03 +0200 (CEST) > brett.cannon wrote: > > diff --git a/Lib/importlib/test/__init__.py > > b/Lib/test/test_importlib/__init__.py > > rename from Lib/importlib/test/__init__.py > > rename to Lib/test/test_importl

Re: [Python-Dev] test_hashlib

2012-07-21 Thread R. David Murray
On Sun, 22 Jul 2012 01:05:35 -, =?iso-8859-1?Q?Kristj=E1n_Valur_J=F3nsson?= wrote: > Indeed, shame on me for not mentioning this. > I rarely have the full complement of externals available when I'm doing > python work, and it struck me that this unitest was failing. > I suppose it should be

Re: [Python-Dev] 2to3 porting HOWTO: setup.py question

2012-07-22 Thread R. David Murray
On Sun, 22 Jul 2012 11:21:38 +0300, anatoly techtonik wrote: > http://docs.python.org/py3k/howto/pyporting.html#during-installation > > What's the point in making implicit Python 3 check here: > try: # Python 3 > from distutils.command.build_py import build_py_2to3 as build_py > except Import

Re: [Python-Dev] 2to3 porting HOWTO: setup.py question

2012-07-22 Thread R. David Murray
Benjamin sent me this message separately(*) privately and I responded privately. Here is my response. (*) or his mailer did On Sun, 22 Jul 2012 20:22:50 +0100, Oscar Benjamin wrote: > On 22 July 2012 14:08, R. David Murray wrote: > > > On Sun, 22 Jul 2012 11:21:38 +0300, anato

Re: [Python-Dev] No summary of tracker issues this week?

2012-08-05 Thread R. David Murray
On Mon, 06 Aug 2012 00:39:22 +0100, MRAB wrote: > On 05/08/2012 23:31, Mark Lawrence wrote: > > Hi all, > > > > I keep an eye open for this but can't find one for Saturday 03/08/2012. > >Have I missed it, has it been stopped, has something gone wrong with > > its production or what? > > > I ha

Re: [Python-Dev] [Python-checkins] cpython: Issue #15502: Finish bringing importlib.abc in line with the current

2012-08-11 Thread R. David Murray
On Fri, 10 Aug 2012 16:56:43 -0700, Chris Jerdonek wrote: > On Fri, Aug 10, 2012 at 9:21 AM, brett.cannon > wrote: > > http://hg.python.org/cpython/rev/0a75ce232f56 > > changeset: 78485:0a75ce232f56 > > user:Brett Cannon > > date:Fri Aug 10 12:21:12 2012 -0400 > > summary: > >

Re: [Python-Dev] Mountain Lion drops sign of zero, breaks test_cmath...

2012-08-17 Thread R. David Murray
On Fri, 17 Aug 2012 04:00:50 -0400, Trent Nelson wrote: > This is the patch I came up with against test_cmath.py: > > xenon% hg diff Lib/test/test_cmath.py > diff -r ce49599b9fdf Lib/test/test_cmath.py > --- a/Lib/test/test_cmath.pyThu Aug 16 22:14:43 2012 +0200 > +++ b/Lib/test/test_cmat

Re: [Python-Dev] 3.3 str timings

2012-08-18 Thread R. David Murray
On Sat, 18 Aug 2012 17:17:14 -0400, Terry Reedy wrote: > print(timeit("a.encode()", "a = 'a'*1000")) > # 1.5 in 3.2, .26 in 3.3 > > print(timeit("a.encode(encoding='utf-8')", "a = 'a'*1000")) > # 1.7 in 3.2, .51 in 3.3 > > This is one of the 3.3 improvements. But since the results are equal: > (

Re: [Python-Dev] Raw I/O writelines() broken

2012-08-20 Thread R. David Murray
On Mon, 20 Aug 2012 23:42:56 +0200, Antoine Pitrou wrote: > On Mon, 20 Aug 2012 23:17:10 +0200 > Antoine Pitrou wrote: > > > > Hello, > > > > I was considering a FileIO.writelines() implementation based on > > writev() and I noticed that the current RawIO.writelines() > > implementation is brok

Re: [Python-Dev] [Python-checkins] cpython: Close #4966: revamp the sequence docs in order to better explain the state of

2012-08-21 Thread R. David Murray
On Tue, 21 Aug 2012 17:47:28 +1000, Nick Coghlan wrote: > On Tue, Aug 21, 2012 at 11:55 AM, Ezio Melotti wrote: > >> +String literals that are part of a single expression and have only > >> whitespace > >> +between them will be implicitly converted to a single string literal. > >> + > > > > > > I

Re: [Python-Dev] [Infrastructure] Snakebite build slaves and developer SSH/GPG public keys

2012-08-22 Thread R. David Murray
On Thu, 23 Aug 2012 10:53:34 +1200, Noah Kantrowitz wrote: > For everyone with a record in the Chef server (read: everyone with SSH access > to any of the PSF servers at OSL) I can easily give you automated access. > Whats the easiest format? I can give you a Python script that will spit out >

Re: [Python-Dev] bug in tarfile module?

2012-08-23 Thread R. David Murray
On Thu, 23 Aug 2012 12:25:26 +0300, Petri Lehtinen wrote: > Chris Withers wrote: > > Hi All, > > > > This feels like a bug, but just wanted to check here before filing a > > report if I've missed something: > > > > buzzkill$ python2.7 > > Enthought Python Distribution -- www.enthought.com > > Ve

Re: [Python-Dev] Edits to Metadata 1.2 to add extras (optional dependencies)

2012-08-28 Thread R. David Murray
still have a (vetted) registry for "official" names, if we wanted. That would follow the MIME model. Or we can still have a separate registry, but only "qualified" (namespaced) names are open for anyone to register, without any expiration dates. -- R. David Murray If you

Re: [Python-Dev] Edits to Metadata 1.2 to add extras (optional dependencies)

2012-08-28 Thread R. David Murray
xpires, and a *new* registration is entered with a different meaning, but packages still exist on PyPI that have the key with the old meaning. That seems likely to happen in practice. Or if it doesn't, then allowing for the recycling of names probably isn't important. -- R. Davi

Re: [Python-Dev] Edits to Metadata 1.2 to add extras (optional dependencies)

2012-08-28 Thread R. David Murray
On Tue, 28 Aug 2012 18:47:16 +0200, =?ISO-8859-15?Q?=22Martin_v=2E_L=F6wis=22?= wrote: > Am 28.08.12 18:27, schrieb R. David Murray: > > The problem Donald is asking about is: the old registration expires, > > and a *new* registration is entered with a different meaning, bu

Re: [Python-Dev] core dev IRC nicks

2012-08-29 Thread R. David Murray
and are therefore most likely to be found there, keep the same IRC handle for a long time (I've had mine, bitdancer, since 1995 or so). So I think there would be utility in such a list even if the updates were spotty. -- R. David Murray If you like the work I do for Python, you can

Re: [Python-Dev] Edits to Metadata 1.2 to add extras (optional ependencies)

2012-08-31 Thread R. David Murray
xpect. It also allows for typo detection, which automatically interpreting prefix strings as extensions names would not. -- R. David Murray If you like the work I do for Python, you can enable me to spend more time doing it by supporting me here: http://gittip.com/bitdancer

Re: [Python-Dev] Edits to Metadata 1.2 to add extras (optional ependencies)

2012-08-31 Thread R. David Murray
want to assign meaning to the line separators. You can do that with a custom policy and thus still be able the use the email parsing infrastructure to read and write the files. I'll be glad to help out with creating the custom policy once we've reached that stage of the process. -- R.

Re: [Python-Dev] Edits to Metadata 1.2 to add extras (optional ependencies)

2012-09-01 Thread R. David Murray
On Sat, 01 Sep 2012 13:55:11 +0900, "Stephen J. Turnbull" wrote: > "Martin v. Löwis" writes: > > > Unfortunately, this conflicts with the desire to use UTF-8 in attribute > > values - RFC 822 (and also 2822) don't support this, but require the > > use oF MIME instead (Q or B encoding). > >

Re: [Python-Dev] Tru64 support

2012-09-04 Thread R. David Murray
On Tue, 04 Sep 2012 15:19:38 +0300, Andrew Svetlov wrote: > On Tue, Sep 4, 2012 at 3:11 PM, Antoine Pitrou wrote: > > I don't think so. If some hypothetical Tru64 user cares, they can > > probably open a bug on the tracker. > > > Thanks. I used to work on Tru64 systems many years ago. Accordin

Re: [Python-Dev] Online docs: make index search available everywhere

2012-09-06 Thread R. David Murray
On Thu, 06 Sep 2012 13:15:14 -0400, Terry Reedy wrote: > On 9/5/2012 8:53 PM, Nick Coghlan wrote: > > On Thu, Sep 6, 2012 at 8:13 AM, Terry Reedy wrote: > >> I presume this suggestion does not belong on bugs.python.org, so I hope one > >> of the docs people reading pydev will do something with it

Re: [Python-Dev] Issue 15906; regression in argparse in Python 3.3, 3.2, and 2.7

2012-09-11 Thread R. David Murray
On Tue, 11 Sep 2012 11:34:30 -0400, Barry Warsaw wrote: > Issue 15906 describes a problem with argparse that is breaking lots of code in > Ubuntu. This is a recent regression caused by the fix for issue 12776, and it > affects Python 2.7, 3.2, and 3.3. > > I posted a diff that should fix the pro

Re: [Python-Dev] Issue 15906; regression in argparse in Python 3.3, 3.2, and 2.7

2012-09-11 Thread R. David Murray
On Tue, 11 Sep 2012 15:08:26 -0400, Barry Warsaw wrote: > On Sep 11, 2012, at 12:19 PM, R. David Murray wrote: > > >The 12776 fix isn't going to be in 3.3, so I don't think this is a > >pressing issue. We can take our time to make sure we have the correct > &

Re: [Python-Dev] packaging location ?

2012-09-12 Thread R. David Murray
On Wed, 12 Sep 2012 18:07:42 -0400, Brett Cannon wrote: > On Wed, Sep 12, 2012 at 3:28 PM, Lennart Regebro wrote: > > > On Wed, Sep 12, 2012 at 9:02 PM, Éric Araujo wrote: > > > “find a PEP dictator and propose changes”. And when I started the > > > thread about removing packaging in 3.3,

Re: [Python-Dev] buildbot with -O

2012-09-26 Thread R. David Murray
On Wed, 26 Sep 2012 19:00:53 -0400, Benjamin Peterson wrote: > In light of issue #16046, I think it would be helpful to have a > buildbot running the testsuite with -O enabled. I've got some (slow) hardware I could dedicate to this, though it may take me a few weeks to find time to set it up. -

Re: [Python-Dev] Python Bug Day in October

2012-09-27 Thread R. David Murray
On Thu, 27 Sep 2012 18:30:49 -0400, mer...@netwok.org wrote: > The Montreal-Python user group would like to host a bug day on October > 27 (to be confirmed) at a partner university in Montreal. It would be > cool to do a bug day on IRC like we used to (and in other physical > locations if people w

Re: [Python-Dev] [RELEASED] Python 3.3.0

2012-09-29 Thread R. David Murray
On Sat, 29 Sep 2012 10:46:37 -0700, Glenn Linderman wrote: > On Sat, Sep 29, 2012 at 5:18 AM, Georg Brandl wrote: > >> In total, almost 500 API items are new or improved in Python 3.3. > >> For a more extensive list of changes in 3.3.0, see > >> > >> http://docs.python.org/3.3/whatsnew/3.3

Re: [Python-Dev] [RELEASED] Python 3.3.0 release candidate 3

2012-09-29 Thread R. David Murray
On Sun, 30 Sep 2012 08:01:00 +1000, Tim Delaney wrote: > Also the example at > http://docs.python.org/py3k/whatsnew/3.3.html#pep-409-suppressing-exception-contextreads: > > ... raise AttributeError(attr) from None... > > Looks like there's an elipsis there that shouldn't be. This a

Re: [Python-Dev] Stdlib and timezones, again

2012-09-30 Thread R. David Murray
On Sun, 30 Sep 2012 15:30:04 +0200, Xavier Morel wrote: > On 2012-09-30, at 15:15 , Antoine Pitrou wrote: > > > On Sun, 30 Sep 2012 15:10:06 +0200 > > Dirkjan Ochtman wrote: > >> On Sun, Sep 30, 2012 at 3:03 PM, Antoine Pitrou > >> wrote: > >>> Can't we simply include the Olson database in Wi

Re: [Python-Dev] Stdlib and timezones, again

2012-10-01 Thread R. David Murray
On Tue, 02 Oct 2012 00:18:10 +0530, Nick Coghlan wrote: > Reminder to everyone: the current state of the art for getting up to > date tz info for Python is "pip install pytz". > > If any proposal is more complicated than that, there's absolutely no > point in changing anything. The version I like

Re: [Python-Dev] Stdlib and timezones, again

2012-10-01 Thread R. David Murray
Gah, ignore half of that last post. I think Lennart is talking about incorporating the missing pytz *functionality* into the stdlib. --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe

<    5   6   7   8   9   10   11   >