Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-23 Thread R. David Murray
On Tue, 23 Apr 2013 16:33:02 +0200, Antoine Pitrou wrote: > Le Tue, 23 Apr 2013 10:24:18 -0400, > "R. David Murray" a écrit : > > > > > > I'm having a problem with the proposed implementation. I haven't > > > found any mention of it,

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-23 Thread R. David Murray
s in Java and C++, and I would say it's the same in Pascal and > probably most other languages. Well, I guess I can wrap my head around it :) An Enum is an odd duck anyway, which I suppose is one of the things that makes it worth adding. --David _

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-23 Thread R. David Murray
On Tue, 23 Apr 2013 08:44:21 -0700, Guido van Rossum wrote: > On Tue, Apr 23, 2013 at 8:31 AM, R. David Murray > wrote: > > On Tue, 23 Apr 2013 08:11:06 -0700, Guido van Rossum > > wrote: > >> I gotta say, I'm with Antoine here. It's pretty natural (also

Re: [Python-Dev] Why can't I encode/decode base64 without importing a module?

2013-04-23 Thread R. David Murray
On Wed, 24 Apr 2013 01:49:39 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > On Tue, 23 Apr 2013 22:29:33 +0900, "Stephen J. Turnbull" > wrote: > > > R. David Murray writes: > > > > > > > You transform *into*

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-23 Thread R. David Murray
On Wed, 24 Apr 2013 11:37:16 +1200, Greg Ewing wrote: > R. David Murray wrote: > > The first False looks correct to me, I would not expect an enum value to > > be an instance of the class that holds it as an attribute. The second > > certainly looks odd, but what does it

Re: [Python-Dev] slow hg clone of python repo?

2013-04-24 Thread R. David Murray
up-side is that after this initial clone, > subsequent pulls are pretty quick and all other operations are local and > super fast (log, blame, etc.) To further clarify what Eli said, "the whole repo" gets put into that .hg directory *first*, and only at the end is a work

Re: [Python-Dev] PEP 435 -- Adding an Enum type to the Python standard library

2013-04-25 Thread R. David Murray
argument. I'm working on a system that depends on exactly this standard behavior of (most?) built in types in Python: if you pass an instance or something that can be converted to an instance to the type constructor, you get back an instance. If Enums break that paradigm(*), someone would

Re: [Python-Dev] PEP 368

2013-05-10 Thread R. David Murray
dule (ie: a MIME image object returned by the email parser is a candidate to provide the PEP 368 interface). Does anyone know if there is any associated code? --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]

2013-05-20 Thread R. David Murray
#x27;t been bothered enough yet to do it. (After all, weren't you the one who told me the lack of tab key indentation at the interactive prompt after you enabled completion by default wasn't an issue because one could just use space to indent? :) --David

Re: [Python-Dev] Why is documentation not inline?

2013-05-20 Thread R. David Murray
big projects I worked in my IBM mainframe days (one of them using SGML, if anyone remembers when there were actual source-to-printed-document systems for SGML). I guess I pretty much forgot about it when I moved to unix, but I suppose it is one of the reasons I do like doctest. A quick google tells

Re: [Python-Dev] PEP 409 and the stdlib

2013-05-20 Thread R. David Murray
"almost never". I think a case needs to be made for any place that seems like it would actually improve things, because usually I don't think it will, in the stdlib. --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.

Re: [Python-Dev] Purpose of Doctests [Was: Best practices for Enum]

2013-05-20 Thread R. David Murray
On Mon, 20 May 2013 15:57:35 +0200, Antoine Pitrou wrote: > On Mon, 20 May 2013 09:37:32 -0400 > "R. David Murray" wrote: > > On Mon, 20 May 2013 12:45:57 +0200, Antoine Pitrou > > wrote: > > > On Sat, 18 May 2013 23:41:59 -0700 > > > Raymon

Re: [Python-Dev] PEP 409 and the stdlib

2013-05-20 Thread R. David Murray
t; at least change the double trace back message as it implies two > failures, instead of just one. I don't understand what you want to do here. --David ___ 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 409 and the stdlib

2013-05-21 Thread R. David Murray
rienced programmer, by the chained exceptions when I first started dealing with them, but at this point I suppose it has become second nature :). I agree with the subsequent discussion that this error is a good case for 'from None', given that any such convers

Re: [Python-Dev] Is thread-safe smtpd desired/possible?

2013-05-21 Thread R. David Murray
ejection of improvements here; however, I suspect that tulip has an impact on this. Regardless of that, any changes need to be discussed in a wider context than just the smtpd module, no matter where changes are actually made. --David ___ Python-De

Re: [Python-Dev] Bilingual scripts

2013-05-24 Thread R. David Murray
mpletely...I'm just a user :) But I must say that the system works well from my point of view. --David ___ 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] Bilingual scripts

2013-05-28 Thread R. David Murray
On Tue, 28 May 2013 11:35:00 -0400, Barry Warsaw wrote: > On May 24, 2013, at 04:23 PM, R. David Murray wrote: > > >Gentoo has a (fairly complex) driver script that is symlinked to all > >of these bin scripts. The system then has the concept of the > >"current

Re: [Python-Dev] Bilingual scripts

2013-05-28 Thread R. David Murray
On Tue, 28 May 2013 12:17:49 -0400, Tres Seaver wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 05/28/2013 11:41 AM, R. David Murray wrote: > > I have the same complaint about setuptools entry-point scripts, where > > I still haven't figured out

Re: [Python-Dev] decoding setuptools entry point scripts (was: Bilingual scripts)

2013-05-29 Thread R. David Murray
sues, such as when someone has manually changed the entrypoints.txt file. Note that the comment still requires you to know python import semantics...but if you don't know that much you wouldn't get far looking at the source code anyway. The dir/filename lets you 'find&#

Re: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to

2013-05-29 Thread R. David Murray
On Thu, 30 May 2013 00:59:02 +1000, Nick Coghlan wrote: > On Thu, May 30, 2013 at 12:47 AM, Brett Cannon wrote: > > I am willing to compromise to module_to_initialize, module_to_init, or > > module_to_load. Pick one. =) > > I see this as *really* similar to a database transaction, and those > st

Re: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to

2013-05-29 Thread R. David Murray
ged_initializiation'? That seems closer to the 'closing' model, to me. It isn't as clear about what it is returning, though, since you are passing it a name and getting back a module, whereas in the closing case you get back the same object you send in. Perhaps 'managed_modu

Re: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to

2013-05-29 Thread R. David Murray
pristine_module", etc. I don't really have a horse in this race (that is, whatever is chosen, my vote will be 0 on it unless someone comes up with something brilliant :), but I'll just point out that those names do not give any clue as to why the thing is a context manager instead o

Re: [Python-Dev] cpython: Introduce importlib.util.ModuleManager which is a context manager to

2013-05-29 Thread R. David Murray
o the with block. There probably isn't a good answer. I suppose that one approach would be to have a module_initializer context manager return self and then separately call a method on it it to actually load the module inside the with body. But adding more typing to solve a naming issue seem

Re: [Python-Dev] Validating SSL By Default (aka Including a Cert Bundle in CPython)

2013-06-03 Thread R. David Murray
disaster. An application can choose to explicitly ignore the system mimetypes file, by the way. That said, I don't feel strongly either way about the cert store case. --David ___ 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] doctest and pickle

2013-06-07 Thread R. David Murray
y are either byte-by-byte equivalent (not sure > actually if Python actually guarantees this), or every element would > still compare equal and that is what matters. Enums are supposed to be singletons, though, so the 'is' test is exactly the point of this test. --David _

Re: [Python-Dev] Obsoleted RFCs

2013-06-08 Thread R. David Murray
though in many cases the code is also conformant with the newer RFCs because the relevant details have not changed. --David ___ 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] doctest and pickle

2013-06-08 Thread R. David Murray
hinx literalinclude directive to include the contents of the file in the docs just before you show the 'is' example. You could also explain (briefly) *why* it is necessary to use an imported class for this example, which IMO is useful information. --David

Re: [Python-Dev] Unicode minus sign in numeric conversions

2013-06-08 Thread R. David Murray
ontains a bunch of good information relevant to this discussion. It looks like the argument there was that there is no standard for the signs, therefore we should not support them. As Guido said, the issue is non-trivial. --David ___ 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 symbolizition

2013-06-14 Thread R. David Murray
This discussion is better suited for python-ideas than it is for python-dev. On Fri, 14 Jun 2013 16:50:53 +0200, Markus Unterwaditzer wrote: > But why? > > -- Markus (from phone) > > Pynix Wang wrote: > >1.lambda expression > > > >c# > >a.(x, y) => x == y > >b.() => SomeMethod() > > > >ruby:

Re: [Python-Dev] Clean way in python to test for None, empty, scalar, and list/ndarray? A prayer to the gods of Python

2013-06-14 Thread R. David Murray
to decide if bytes/bytearray is a sequence of integers or a scaler... > - enable the `len()` function for scalar variables such as integers or > floats. I would tend to think that 1 is a natural answer to what the length > of a number is. That would screw up the ABC type hierarchy...the existence of len indicates that an iterable is indexable. --David ___ 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] Problem with pydoc script in PEP 405 venvs

2013-06-17 Thread R. David Murray
I propose to implement approach #2 > on both 3.3 and 3.4. I don't think renaming pydoc to pydocs is appropriate on posix. Too many people likely have 'pydoc' in their fingers and brains as the command name. The .bat file suggestion seems better, IMO. --David ___

Re: [Python-Dev] [Python-checkins] cpython (3.3): Add -b and -X options to python man page.

2013-06-23 Thread R. David Murray
specific option. > > > > > > Should probably be "Set the implementation-specific option." > > Is there anyone respecting this notation? (I know pypy does not, it > uses --jit and stuff) CPython does. We introduced it for ourselves, it

Re: [Python-Dev] [Python-checkins] cpython (3.3): Add -b and -X options to python man page.

2013-06-24 Thread R. David Murray
On Mon, 24 Jun 2013 22:14:46 +0200, Maciej Fijalkowski wrote: > On Sun, Jun 23, 2013 at 6:14 PM, R. David Murray > wrote: > > On Sun, 23 Jun 2013 17:40:13 +0200, Maciej Fijalkowski > > wrote: > >> On Thu, Jun 20, 2013 at 3:36 PM, Brett Cannon wrote: > >>

Re: [Python-Dev] Relative path in co_filename for zipped modules

2013-06-25 Thread R. David Murray
Please file this as a bug report on bugs.python.org so that it doesn't get lost. See also http://bugs.python.org/issue13328 (which looks like a different bug but could also be causing you problems). --David On Wed, 26 Jun 2013 00:11:04 +0400, Vitaly Murashev wrote: > Dear Python de

Re: [Python-Dev] End of the mystery "@README.txt Mercurial bug"

2013-06-26 Thread R. David Murray
s ask someone reporting an issue to do a make distclean and recompile, and many of these reporters will be working from a tarball rather than a checkout. Sure, they could re-unpack the tarball (if they haven't deleted it already), but make distclean is easier. --David

Re: [Python-Dev] [Python-checkins] peps: Reject PEP 315.

2013-06-26 Thread R. David Murray
Users of the language are advised to use that form when a do-while > +loop would have been appropriate. Why delete the information about what was found wanting? --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/

Re: [Python-Dev] [Python-checkins] cpython: Fix memory leak in pyexpat PyUnknownEncodingHandler

2013-06-29 Thread R. David Murray
I don't know if this is the commit at fault or not, but we are seeing segfaults in test_xml_etree on the buildbots now. --David On Sat, 29 Jun 2013 20:43:22 +0200, christian.heimes wrote: > http://hg.python.org/cpython/rev/bd0834b59828 > changeset: 84375:bd0834b59828 > user:

Re: [Python-Dev] End of the mystery "@README.txt Mercurial bug"

2013-07-01 Thread R. David Murray
nly remove files generated by > > configure and a build. It should not remove random files. > > > > *~, .orig, .rej, .back should be kept. They are not generated by > > configure nor make. > > I think you want "make clean" then.

Re: [Python-Dev] End of the mystery "@README.txt Mercurial bug"

2013-07-01 Thread R. David Murray
commands? One > GNU-style "distclean" which only removes configure and Makefile, and > another "distclean" which is the GNU "distclean" + the extra find > removing temporary files. The command that does not remove the extra files is *not* a 'distclean' command. 'buildclean' or 'configclean', but not 'distclean'. distclean still needs to be fixed, so please open a new issue for adding buildclean or whatever you want to call it, as Eric requested in the existing issue. --David ___ 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] Issue 18312 "fix" broke buildbots

2013-07-02 Thread R. David Murray
of different tests. I don't really have time to look at it firther right now either, I've got a client with an issue that needs solved asap... --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo

Re: [Python-Dev] Solving the import-deadlock case

2013-07-02 Thread R. David Murray
re > done at module loading, due to the lack of initialization system at > upper levels. There may well be a bug that could be/should be fixed here, but...it seems to me that other than the sys.path modifications, doing any of that at module imp

Re: [Python-Dev] [Python-checkins] cpython (3.3): Issue #17860: explicitly mention that std* streams are opened in binary mode by

2013-07-06 Thread R. David Murray
anslation is being done in both modes. Logically that makes no sense, so the above construction will likely lead to, at a minimum, an interruption in the flow for the reader, and at worse even more confusion than not mentioning it at all. --David _

Re: [Python-Dev] [Python-checkins] cpython (3.3): Issue #17860: explicitly mention that std* streams are opened in binary mode by

2013-07-06 Thread R. David Murray
aracters > > ``'\n'`` in the input will be converted to the default line separator > > :data:`os.linesep`. For *stdout* and *stderr*, all line endings in the > > output will be converted to ``'\n'``. F

Re: [Python-Dev] Rough idea for adding introspection information for builtins

2013-07-06 Thread R. David Murray
: > > http://docs.python.org/3/library/curses.html#curses.window.addch > > Of the two, I believe the square brackets syntax is far more common. Sorry to make your life more complicated, but unless I'm misunderstanding something, issue 18220 (http://bugs.python.org/issue18220)

Re: [Python-Dev] Python 3.4 and Windows XP: just 45 days until EOL

2013-07-11 Thread R. David Murray
pecific ifdefs *as well*), and I doubt the core team is going to go there. The older versions of Python won't be going away. Those can still be used on XP. Of course, they won't get bug fixes...just like XP itself. --David ___ Python-Dev ma

Re: [Python-Dev] Tweaking PEP 8 guidelines for use of leading underscores

2013-07-16 Thread R. David Murray
hink you'd be wrong about that, though. simplegeneric should really be treated as private. I'm speaking here not about the general principle of the thing, but about my understanding of simplegeneric's specific history. --David ___ 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] Tweaking PEP 8 guidelines for use of leading underscores

2013-07-17 Thread R. David Murray
On Tue, 16 Jul 2013 17:46:34 -0400, Terry Reedy wrote: > On 7/16/2013 9:39 AM, R. David Murray wrote: > > On Tue, 16 Jul 2013 23:19:21 +1000, Steven D'Aprano > > wrote: > > >> For example, pkgutil includes classes with single-underscore methods, > >&g

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #18441: Make test.support.requires('gui') skip when it should.

2013-07-21 Thread R. David Murray
e buildbot cannot "improperly" set the GUI resource. Setting a resource on the regrtest command line says "please try to run these tests". If they can't be run, they should then be skipped for whatever reason they can't run. --David ___

Re: [Python-Dev] MyOpenID.com no longer supported

2013-07-29 Thread R. David Murray
do it, I couldn't figure out how to get from the _openid_discovery table (which has 22 entries that have myopenid as the endpoint server) to the corresponding user record. Either Martin needs to clue me in, or I'll have to find time to read his openid code :) --David

Re: [Python-Dev] C code coverage report with lcov

2013-07-29 Thread R. David Murray
xhaustion). If we ever decide to get serious about > code coverage (both C and Python code) we may need to have a discussion as > a group about our feelings related to pragmas dictating when code should be > left out of coverage reports. I suspect Victor will

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #18441: Make test.support.requires('gui') skip when it should.

2013-07-30 Thread R. David Murray
On Sun, 28 Jul 2013 01:09:43 +0200, terry.reedy wrote: > http://hg.python.org/cpython/rev/dd9941f5fcda > changeset: 84870:dd9941f5fcda > branch: 2.7 > parent: 84865:c0788ee86a65 > user:Terry Jan Reedy > date:Sun Jul 21 20:13:24 2013 -0400 > summary: > Issue #18441:

Re: [Python-Dev] cpython (2.7): Issue #18441: Make test.support.requires('gui') skip when it should.

2013-07-30 Thread R. David Murray
On Tue, 30 Jul 2013 20:52:27 -0400, Terry Reedy wrote: > On 7/30/2013 1:31 PM, R. David Murray wrote: > > On Sun, 28 Jul 2013 01:09:43 +0200, terry.reedy > > wrote: > > I believe that this logic is incorrect. > > It works for the intended purpose. > > > If

Re: [Python-Dev] to rename or not...

2013-07-31 Thread R. David Murray
ay you have now done. So I think it is appropriate to do so. But, then, I would, considering I'm doing the same thing to the email module for much the same reason :). --David ___ 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 8 modernisation

2013-08-01 Thread R. David Murray
readability of longer lines is far less significant to me than the loss of readability when I want narrower windows (or run into them in code review tools, as mentioned). But of course this is just my opinion :) :) --David ___ Python-Dev

Re: [Python-Dev] PEP 8 modernisation

2013-08-01 Thread R. David Murray
entioned in the question, but there are certainly places where lambdas are useful. The most obvious is as arguments to functions that expect functions as arguments. But yes, even in those cases if a lambda isn't fairly trivial, it probably shouldn't be a lambda. --David

Re: [Python-Dev] PEP 8 modernisation

2013-08-01 Thread R. David Murray
actual code lines, which can look odd when the text is rendered. So there it's a judgement call...but I still generally try to wrap the source to 79, sometimes refactoring the example to make that more elegant. Which, as you point out, often makes it bette

Re: [Python-Dev] unittest.TestSuite holding references to unittest.TestCase instances too long

2013-08-03 Thread R. David Murray
sed on what will become 3.4. Would backporting > it to 2.7 be feasible? What's involved in doing so? That depends on how likely Michale thinks it is that it might break things. > I took a crack at the docs. Thanks. Please post your patch to the issue, it will get lost here.

Re: [Python-Dev] Allowing to run certain regression tests in subprocesses

2013-08-03 Thread R. David Murray
ghts? > > > > Eli > > FWIW the problem is also discussed here: > http://bugs.python.org/issue1674555, w.r.t. test_site Can't you just launch a subprocess from the test itself using script_helpers? --David ___ 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] Allowing to run certain regression tests in subprocesses

2013-08-04 Thread R. David Murray
On Sat, 03 Aug 2013 19:04:21 -0700, Eli Bendersky wrote: > On Sat, Aug 3, 2013 at 6:57 PM, R. David Murray wrote: > > On Sat, 03 Aug 2013 16:47:37 -0700, Eli Bendersky wrote: > >> On Sat, Aug 3, 2013 at 4:36 PM, Eli Bendersky wrote: > >> > Hi All, > >>

Re: [Python-Dev] The Return Of Argument Clinic

2013-08-06 Thread R. David Murray
__init__, it just has to replicate the superclass logic if it exists, which is the way Python normally works. I use this "call a hook method from __init__" pattern in the email package's new header parsing code, by the way, for whatever that is worth :) --David _

Re: [Python-Dev] When to remove deprecated stuff (was: Deprecating the formatter module)

2013-08-15 Thread R. David Murray
tally? If we are going to do them incrementally we should make that decision soonish, so that we don't end up having a whole bunch happen at once and defeat the (theoretical) purpose of doing them incrementally. (I say theoretical because what is the purpose? To spread out the breakag

Re: [Python-Dev] PEP 450 adding statistics module

2013-08-15 Thread R. David Murray
just > median(), median_low(), etc. I too prefer the median_low naming rather than median.low. I'm not sure I can articulate why, but certainly the fact that that latter isn't used anywhere else in the stdlib that I can think of is probably a lot of it :) Perhaps the underlying thoug

Re: [Python-Dev] When to remove deprecated stuff

2013-08-15 Thread R. David Murray
On Thu, 15 Aug 2013 13:34:12 -0400, Terry Reedy wrote: > On 8/15/2013 8:29 AM, R. David Murray wrote: > > A number of us (I don't know how many) have clearly been thinking about > > "Python 4" as the time when we remove cruft. This will not cause any > > back

Re: [Python-Dev] PEP 450 adding statistics module

2013-08-15 Thread R. David Murray
> 'median' > >>>> median.low() > > 'median.low' > > > There's the patch decorator in unittest.mock which provides: > > patch(...) > patch.object(...) > patch.dict(...) > > The implementation is exactly as you suggest. (e.g. patch.object = > _patch_object) Truthfully there are a number of things about the mock API that make me uncomfortable, including that one. But despite that I'm glad we didn't try to re-engineer it. Take that as you will :) --David ___ 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] Status of 3.2 in Hg repository?

2013-08-20 Thread R. David Murray
member if I omitted to merge deliberately, or if that was > > an oversight. > > Well, yours is just the tip of the 3.2 branch. 3.2 was already active > when you made this commit, left over from the 3.2.5 release fiddling > (when, presumably, a merge to default was also skipped

Re: [Python-Dev] Status of 3.2 in Hg repository?

2013-08-21 Thread R. David Murray
27;s commit, IIUC.) I agree that it would cause less developer mind-overhead if the branch were merged. Georg has been scarce lately...if the branch is locked, there are people besides him who can unlock it (Antoine, for one). --David ___ Python-Dev mai

Re: [Python-Dev] Status of 3.2 in Hg repository?

2013-08-21 Thread R. David Murray
On Wed, 21 Aug 2013 16:59:36 -0400, Terry Reedy wrote: > On 8/21/2013 4:52 PM, R. David Murray wrote: > > On Wed, 21 Aug 2013 14:34:33 -0500, Tim Peters wrote: > >> [Brett] > >>> ... > >>> After reading that sentence I realize there is a key "n

Re: [Python-Dev] When to remove deprecated stuff

2013-08-22 Thread R. David Murray
On Thu, 22 Aug 2013 16:45:29 +0300, Michael Foord wrote: > > On 22 Aug 2013, at 14:00, Petri Lehtinen wrote: > > > Terry Reedy wrote: > >> On 8/15/2013 8:29 AM, R. David Murray wrote: > >> > >>> A number of us (I don't know how many) have c

Re: [Python-Dev] When to remove deprecated stuff

2013-08-22 Thread R. David Murray
On Thu, 22 Aug 2013 20:00:14 +0200, Ezio Melotti wrote: > On Thu, Aug 22, 2013 at 4:43 PM, R. David Murray > wrote: > > On Thu, 22 Aug 2013 16:45:29 +0300, Michael Foord > > wrote: > >> > >> On 22 Aug 2013, at 14:00, Petri Lehtinen wrote: > >> &g

Re: [Python-Dev] please back out changeset f903cf864191 before alpha-2

2013-08-24 Thread R. David Murray
s functional, it fills an use case, and it doesn't seem > to have any concrete issues. > > Get over it, Stefan, and stop trolling us. Stefan is not trolling. He's raising objections that you disagree with. It costs nothing to keep the discussion civil. --David _

Re: [Python-Dev] Can someone try to duplicate corruption on Gentoo?

2013-08-29 Thread R. David Murray
d) Emerge uses Python, and 2.7 is the default system python on Gentoo, so unless he changed his default, that error almost certainly came from the existing Python he was having trouble with. Just for fun I re-emerged 2.7.3-r3 on my system, and that worked fine. --David _

[Python-Dev] Completing the email6 API changes.

2013-08-30 Thread R. David Murray
#x27;]) Foö Bar <"f...@example.com"> mè >>> print(fullmsg['subject']) j'ai un problème de python. >>> print(fullmsg['to'].addresses[0].display_name) Foö Bar >>> print(fullmsg.get_body(('plain',

Re: [Python-Dev] Completing the email6 API changes.

2013-08-31 Thread R. David Murray
On Sat, 31 Aug 2013 20:37:30 +1000, Steven D'Aprano wrote: > On 31/08/13 15:21, R. David Murray wrote: > > If you've read my blog (eg: on planet python), you will be aware that > > I dedicated August to full time email package development. > [...] > > > The

Re: [Python-Dev] Completing the email6 API changes.

2013-08-31 Thread R. David Murray
On Sat, 31 Aug 2013 18:57:56 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > > But I would certainly appreciate review from anyone so moved, since I > > haven't gotten any yet. > > I'll try to make time for a serious (but obviousl

Re: [Python-Dev] Completing the email6 API changes.

2013-09-01 Thread R. David Murray
On Sun, 01 Sep 2013 00:18:59 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > > Full validation is something that is currently a "future > > objective". > > I didn't mean it to be anything else. :-) > > > The

Re: [Python-Dev] Completing the email6 API changes.

2013-09-01 Thread R. David Murray
On Sat, 31 Aug 2013 18:57:56 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > > But I would certainly appreciate review from anyone so moved, since I > > haven't gotten any yet. > > I'll try to make time for a serious (but obvious

Re: [Python-Dev] Completing the email6 API changes.

2013-09-02 Thread R. David Murray
rience with MUAs is actually quite limited :) Unless there is some standard for referring to related parts in a text/plain part? I'm not aware of any, but you have much more experience with this stuff than I do. (Even text/enriched (RFC 1896) doesn't seem to have one, though of course

Re: [Python-Dev] Completing the email6 API changes.

2013-09-02 Thread R. David Murray
emails sent to their application. --David ___ 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] Completing the email6 API changes.

2013-09-03 Thread R. David Murray
On Tue, 03 Sep 2013 10:56:36 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > I can understand the structure Glen found in Applemail: > > a series of text/plain parts interspersed with image/jpg, with all parts > > after the first being marked

Re: [Python-Dev] Completing the email6 API changes.

2013-09-03 Thread R. David Murray
On Tue, 03 Sep 2013 10:01:42 -0400, "R. David Murray" wrote: > On Tue, 03 Sep 2013 10:56:36 +0900, "Stephen J. Turnbull" > wrote: > > R. David Murray writes: > > > I can understand the structure Glen found in Applemail: > > > a series of text

Re: [Python-Dev] windows file closing race condition?

2013-09-06 Thread R. David Murray
the file could be moved to a temporary name in the > > root directory (or some other permanent directory on the same drive) and > > then deleted. That would allow the directory to be closed even if a > > FILE_SHARE_DELETE handle is still open for the file. >

Re: [Python-Dev] unicodedata module is out of date

2013-09-06 Thread R. David Murray
released before the first RC, I'm guessing we will probably upgrade to it. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/pyth

Re: [Python-Dev] unicodedata module is out of date

2013-09-06 Thread R. David Murray
e::UCD is far more complete). > > > > Are there any plans to update this module to the latest Unicode version > > (6.2, with 6.3 being released shortly) > > It's been updated to 6.2 almost a year ago, so Python 3.3 should have that. 3.3 shipped with 6.1. --Dav

Re: [Python-Dev] inspect and metaclasses

2013-09-06 Thread R. David Murray
object)`. Which matches A.__mro__. EOD, I think. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] when to fix cross-version bugs?

2013-09-06 Thread R. David Murray
same token it probably doesn't have much positive impact if it does get backported, so is it worth the (small) chance of breaking someone's code? --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailma

Re: [Python-Dev] inspect and metaclasses

2013-09-06 Thread R. David Murray
On Fri, 06 Sep 2013 08:59:02 -0700, Ethan Furman wrote: > On 09/06/2013 08:44 AM, R. David Murray wrote: > > On Fri, 06 Sep 2013 08:14:09 -0700, Ethan Furman wrote: > >> On 09/06/2013 07:47 AM, Armin Rigo wrote: > >>> > >>> Are you suggesting that

Re: [Python-Dev] inspect and metaclasses

2013-09-06 Thread R. David Murray
On Fri, 06 Sep 2013 10:01:32 -0700, Ethan Furman wrote: > On 09/06/2013 09:37 AM, R. David Murray wrote: > > On Fri, 06 Sep 2013 08:59:02 -0700, Ethan Furman wrote: > >> > >> For the short term I can restrict the change to > >> inspect.classify_class_attrs().

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-06 Thread R. David Murray
t; our resources," then we must provide an option to use something akin > > to Persona. IMO, single signon is overrated. Especially if one prefers not to make it easy for various accounts to be automatically associated with one another by various entities who shall remain nameless but have been in the news a lot lately :) --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Offtopic: OpenID Providers

2013-09-06 Thread R. David Murray
On Fri, 06 Sep 2013 15:17:12 -0400, Donald Stufft wrote: > On Sep 6, 2013, at 3:11 PM, "R. David Murray" wrote: > > > IMO, single signon is overrated. Especially if one prefers not to make > > it easy for various accounts to be automatically associated with one >

Re: [Python-Dev] [python-committers] [RELEASED] Python 3.4.0a2

2013-09-09 Thread R. David Murray
heritable in subprocesses" with "subprocesses" > taken in the general sense (i.e. not only created with the subprocess > module). Not wrong, but definitely confusing. It is worth clarifying *somehow* that this does not apply only to the subprocess module, which

Re: [Python-Dev] Offtopic: paranoia

2013-09-09 Thread R. David Murray
On Mon, 09 Sep 2013 17:11:21 +0200, Jesus Cea wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 06/09/13 21:34, R. David Murray wrote: > > Note that I said that single signon *itself* was overrated. If you > > use the same token to authenticate to mult

Re: [Python-Dev] Add a "transformdict" to collections

2013-09-10 Thread R. David Murray
here > multiple types of capitalisation would be useful within the same dictionary. I can: MIME-Version Message-ID Content-Type For network protocols you really do want to *preserve* the case. --David ___ Python-Dev mailing list Python-Dev@pyt

Re: [Python-Dev] Add a "transformdict" to collections

2013-09-11 Thread R. David Murray
t; in my > mind. A quick scan of your links suggests most people think something > like "cidict" or "CaseInsensitiveDict" would be more descriptive.) Except it is wider than that: the transform function can be anything, not just case folding. I suggeste

Re: [Python-Dev] PEP 447: add type.__locallookup__

2013-09-12 Thread R. David Murray
he name in the PEP is more or less derived from > _PyType_Lookup, with "local" meaning "only in this class, don't > recurse in the rest of the MRO". Why is __getclassattribute__ worse than __locallookup__? --David ___ Pyth

Re: [Python-Dev] Add a "transformdict" to collections

2013-09-12 Thread R. David Murray
than one possible representation of that key. It is the original key that is critical when re-serializing the data or otherwise making use of the keys for anything other than lookup. So this is about making the data structure succinctly model the problem domain, which is what OO is supposed to be go

Re: [Python-Dev] PEP 455: TransformDict

2013-09-13 Thread R. David Murray
ive proposals and questions > === You don't mention the alternate constructor discussion, or the rationale for following the defaultdict pattern (ie: following the established pattern :) --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] PEP 428: Pathlib -> stat caching

2013-09-16 Thread R. David Murray
by having a 'cache_stat' attribute of the Path that is 'False' by default but can be set 'True'. It could also (or only?) be set via an optional constructor argument. --David ___ Python-Dev mailing list Python-Dev@python

Re: [Python-Dev] PEP 453: Explicit bootstrapping of pip

2013-09-17 Thread R. David Murray
he issue of corporate users restricted from installing 3rd party packages...which will not be affected at all by this PEP. --David ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https:/

Re: [Python-Dev] PEP 453: Explicit bootstrapping of pip

2013-09-17 Thread R. David Murray
On Tue, 17 Sep 2013 12:38:31 -0400, Donald Stufft wrote: > On Sep 17, 2013, at 12:25 PM, "R. David Murray" wrote: > > I don't think this PEP changes the inclusion calculus, because I don't > > think we've given any real weight to that in stdlib inclu

Re: [Python-Dev] License() release list is imcomplete; intentional?

2013-09-17 Thread R. David Murray
and therefore possibly incorrect :) understanding most of it is currently in the form of physical paper in a filing cabinet. I don't know if there is a project to digitize the archives or not, but it would seem like a sensible thing to do, for backup reasons if nothin

<    8   9   10   11   12   13   14   15   16   17   >