Re: [Python-Dev] Define a place for code review in Python workflow

2010-07-26 Thread R. David Murray
opted. There's nothing in your proposal that is outside of your control, as far as I can tell. (Well, except for easy_install not being in the stdlib, but that's no barrier to adoption of the proposed tool.) -- R. David Murray www.bitdance.com _

Re: [Python-Dev] Define a place for code review in Python workflow

2010-07-27 Thread R. David Murray
On Tue, 27 Jul 2010 13:11:48 +0200, Georg Brandl wrote: > Am 27.07.2010 10:54, schrieb David: > > I'd welcome any patch submitted to Rietveld for review. However, your > > proposed "review.py" module does not exist as far as I know, and unless >

Re: [Python-Dev] New regex module for 3.2?

2010-07-27 Thread R. David Murray
ntly added the old re cache-clearing strategy to fnmatch, because previously its cache would grow indefinitely. It sounds like this should be applied there as well. That's three...time to figure out how to share the code? -- R. David Murray www.bitdance.c

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-08-01 Thread R. David Murray
ific. Anyone who cares about config file locations should read issue 7175. -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Uns

Re: [Python-Dev] No response to posts

2010-08-01 Thread R. David Murray
ds, titles, and URL. Ezio just finished reworking the summary script to be more easily modified, so I bet he would find this easy to add at this point. --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/p

Re: [Python-Dev] proto-pep: plugin proposal (for unittest)

2010-08-02 Thread R. David Murray
27;t see a downside to that. Most unix applications look in multiple places for configuration info. Michael seems to be arguing for not using the standard OSX locations because the Finder can't edit them anyway. Is that true? -- R. David Murray w

Re: [Python-Dev] [Python-checkins] r83543 - python/branches/py3k/Lib/test/regrtest.py

2010-08-02 Thread R. David Murray
t; > +tests = list(tests) I guess you didn't notice that just above this code is a clause that says 'if forever' which implements -F/--forever by making tests into a generator that never runs out... -- R. David Murray

Re: [Python-Dev] checkins reply-to change

2010-08-02 Thread R. David Murray
On Mon, 02 Aug 2010 21:51:11 -0400, "R. David Murray" wrote: > On Mon, 02 Aug 2010 20:59:52 +0200, georg.brandl > wrote: > > Author: georg.brandl > > Date: Mon Aug 2 20:59:52 2010 > > New Revision: 83543 Hmm. Looking at the format of this message as it c

Re: [Python-Dev] Tracker status

2010-08-03 Thread R. David Murray
x27;t exist. Fixed. Apparently a line was dropped when applying a patch to the tracker, but the mistake didn't surface until roundup was restarted after the reboot. -- R. David Murray www.bitdance.com ___ Python-

[Python-Dev] breaking an exception chain

2010-08-03 Thread R. David Murray
Am I missing something, or this a missing feature? -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.py

Re: [Python-Dev] breaking an exception chain

2010-08-03 Thread R. David Murray
On Tue, 03 Aug 2010 12:22:30 -0500, Benjamin Peterson wrote: > 2010/8/3 R. David Murray : > > So I thought I'd break the exception chain before raising the error the > > test harness really wants to raise. However, I can't figure out any way > > to do that. Am

Re: [Python-Dev] Tracker status

2010-08-03 Thread R. David Murray
On Tue, 03 Aug 2010 20:36:36 +0200, Georg Brandl wrote: > Am 03.08.2010 19:05, schrieb Brian Curtin: > > On Tue, Aug 3, 2010 at 11:58, R. David Murray > > Fixed. Apparently a line was dropped when applying a patch to > > the tracker, but the mistake didn&#x

Re: [Python-Dev] [python-committers] (Windows) buildbots on 3.x

2010-08-06 Thread R. David Murray
Hmm. If we added a 'binsearch' option to regrtest, you could just pass it the random seed and that option and off it would go... -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@pyt

Re: [Python-Dev] Summary of Python tracker Issues

2010-08-10 Thread R. David Murray
eek. He's going to fix that. > > Issues closed (154) > > === > > > > #1474680: pickling files works with protocol=2. > > http://bugs.python.org/issue1474680 closed by alexandre.vassalotti > > [...] > > This is the list of *all* the is

Re: [Python-Dev] bugs.python.org

2010-08-23 Thread R. David Murray
On Mon, 23 Aug 2010 15:13:34 +0100, Mark Lawrence wrote: > Suffering from dead parrot syndrome? Kiss of life please :) The hosting company has been notified. --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mail

Re: [Python-Dev] 'hasattr' is broken by design

2010-08-24 Thread R. David Murray
x27;re in an old-style class, you shouldn't get an double > underscore methods in __getattr__ (or __getattribute__). If you do, > it's a bug. Benjamin, I remember you fixing various special method lookups, so just for clarity's sake, which versions of Python d

Re: [Python-Dev] Volunteer help with porting

2010-09-07 Thread R. David Murray
yourself there. All help is welcome! It is not a "porting" project strictly speaking, but it certainly is interesting :) -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] Rework nntlib?

2010-09-14 Thread R. David Murray
stand working on my client in Python2, I wanted to be using Python3. So I volunteered to help with email...but I figure I'll come back around and help Antoine with nttplib by and by :) --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] Polymorphic best practices [was: (Not) delaying the 3.2 release]

2010-09-16 Thread R. David Murray
ing strings. It also has to use slice notation rather than indexing when looking at individual characters, which is a PITA but not terrible. I'm not saying this is the best approach, since this is all experimental code at the moment, but it is *an* approach -- R. David Murray

Re: [Python-Dev] Polymorphic best practices [was: (Not) delaying the 3.2 release]

2010-09-16 Thread R. David Murray
On Thu, 16 Sep 2010 17:40:53 +0200, Antoine Pitrou wrote: > On Thu, 16 Sep 2010 11:30:12 -0400 > "R. David Murray" wrote: > > > > And then BaseHeader uses self.lit.colon, etc, when manipulating strings. > > It also has to use slice notation rather than index

Re: [Python-Dev] Polymorphic best practices [was: (Not) delaying the 3.2 release]

2010-09-16 Thread R. David Murray
On Thu, 16 Sep 2010 18:11:30 -0400, Glyph Lefkowitz wrote: > On Sep 16, 2010, at 4:51 PM, R. David Murray wrote: > > > Given a message, there are many times you want to serialize it as text > > (for example, for presentation in a UI). You could provide alternate > >

Re: [Python-Dev] Polymorphic best practices [was: (Not) delaying the 3.2 release]

2010-09-16 Thread R. David Murray
On Fri, 17 Sep 2010 00:05:12 +0200, Antoine Pitrou wrote: > On Thu, 16 Sep 2010 16:51:58 -0400 > "R. David Murray" wrote: > > > > What do we store in the model? We could say that the model is always > > text. But then we lose information about the origin

Re: [Python-Dev] Polymorphic best practices [was: (Not) delaying the 3.2 release]

2010-09-16 Thread R. David Murray
thon-dev. But the email-sig has put in a lot of > work on specific API and implementation designs for the email package, so any > deviation really needs to be debated, discussed, and decided there. I am also finding it useful to have the API exposed to a wider audience for f

Re: [Python-Dev] Polymorphic best practices [was: (Not) delaying the 3.2 release]

2010-09-16 Thread R. David Murray
also slated to be a back-end API for storing parts of messages elsewhere than in memory, though I haven't worked out what that is going to look like yet. But we are definitely getting off topic now :) --David ___ Python-Dev mailing list Python-Dev@p

Re: [Python-Dev] Rework nntplib?

2010-09-19 Thread R. David Murray
ontent* of head, body, article, post, and ihave commands is bytes, otherwise you are dealing with strings. I think it is a very clear and obvious distinction, myself. --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mai

Re: [Python-Dev] Goodbye

2010-09-22 Thread R. David Murray
rett reduces that operating consensus to a written document things will be clearer. --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] Moving the developer docs?

2010-09-23 Thread R. David Murray
opinion on that aspect of it. For me the change is about making it easier for the dev community (who are using/creating the development infrastructure) to update the relevant documentation. -- R. David Murray www.bitdance.com ___

Re: [Python-Dev] Moving the developer docs?

2010-09-23 Thread R. David Murray
the convenience to the developers of having them in the source tree. A separate repository would also be fine, IMO. If someone can find or write the code to publish that repository to the appropriate location automatically, we could presumably do this even before the rest of the hg transit

Re: [Python-Dev] Moving the developer docs?

2010-09-23 Thread R. David Murray
h of somebodies who *do* care, then the wiki would be much more useful. But I still don't want to edit the dev docs there, if I have a choice :) There's a reason I stopped updating the wiki as soon as I moved to a code repository. -- R. David Murray

Re: [Python-Dev] Goodbye

2010-09-23 Thread R. David Murray
es was causing significant problems on the tracker, and so we were forced to disable his account. This disabling does not need to be permanent. -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-

Re: [Python-Dev] os.path.normcase rationale?

2010-09-24 Thread R. David Murray
ng os specific rather than file system type specific is the usability bug. But to fix it we'll need to introduce a 'filesystems' module enumerating the different file systems we support, with tools for figuring out what filesystem your program is talking to. But normacase still, wouldn'

Re: [Python-Dev] Summary of Python tracker Issues

2010-09-25 Thread R. David Murray
ened/closed in the past week that are *still* open or closed. So open would certainly not be +2. I'm not sure if it would be +0 or -1 without looking at the code. I agree that having the delta against open from the previous week would be the most helpful. --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 wiki

2010-09-26 Thread R. David Murray
to tell the browser to *stop* using basic auth. > imagine that only "ultra geeks" know their URIs (I have no idea what the > URI for a Google account is). But, I don't see this as being worthwhile Well, my OpenId is 'david.bitdance.com', so even if you could get aro

[Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-02 Thread R. David Murray
I still intend to continue working on email6. There are many other bugs in the current email package that require a rewrite of parts of its infrastructure, and the email-sig is agreed that the email API needs revision quite apart from the bytes/string issues. However, there is something pleasing

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-02 Thread R. David Murray
On Sat, 02 Oct 2010 19:15:57 -0500, Benjamin Peterson wrote: > 2010/10/2 R. David Murray : > > Regardless of whether or not this patch or a descendant thereof is > > accepted I still intend to continue working on email6. =C2=A0There are ma= > ny > > other bugs in the cu

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-04 Thread R. David Murray
On Mon, 04 Oct 2010 12:32:26 -0400, Scott Dial wrote: > On 10/2/2010 7:00 PM, R. David Murray wrote: > > The clever hack (thanks ultimately to Martin) is to accept 8bit data > > by encoding it using the ASCII codec and the surrogateescape error > > handler. > > I&#x

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-05 Thread R. David Murray
On Tue, 05 Oct 2010 22:05:33 +1000, Nick Coghlan wrote: > On Tue, Oct 5, 2010 at 3:41 PM, Stephen J. Turnbull > wrote: > > R. David Murray writes: > > > Only if the email package contains a coding error would the > > > surrogates escape and cause problems for user

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-06 Thread R. David Murray
with bytes sometimes and strs sometimes. > > Please provide a way to return strs-with-surrogates if I ask for them. Does my proposal make sense? But note, it raises exactly the backward compatibility concerns you mention in your next email (that I will r

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-06 Thread R. David Murray
On Wed, 06 Oct 2010 22:55:00 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > > version of headers to the email5 API, but since any such data would > > be non-RFC compliant anyway, [access to non-conforming headers by > > reparsing the bytes

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-07 Thread R. David Murray
On Thu, 07 Oct 2010 03:31:34 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > > 5. Return the content, with non-ASCII bytes replaced with ? > > characters. > > That hadn't occurred to me (and it makes me sick to contemplate it)

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-07 Thread R. David Murray
Stephen J. Turnbull xemacs.org> writes: > R. David Murray writes: > > We're (in the current patch) not punting on handling non-conforming > > email, we're punting on handling non-conforming bytes *if the headers > > that contain them need to be mo

Re: [Python-Dev] opinions on issue2142 ('\ No newline at end of file' to difflib.unified_diff)?

2010-10-07 Thread R. David Murray
t all programs using difflib use it to generate diffs for direct output. (2) might be worth it given that there is a "standard" to follow so it might be worth coding that standard into the stdlib. > Orthogonal: *After* a decision is made for

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-07 Thread R. David Murray
On Thu, 07 Oct 2010 15:00:04 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > > > But that's not interesting; you did that with Python 3. We want to > > Of course I did it with Python3. It's the Python3 email codebase >

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-07 Thread R. David Murray
On Thu, 07 Oct 2010 16:03:18 -, l...@rmi.net wrote: > I'm forwarding a link to the code of these clients to David by > private email in case they might be useful as a test case (O'Reilly > has already posted them ahead of the book, but they may be a bit too > heavy for

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-08 Thread R. David Murray
vocate here. Obviously the issues directly affect you, so hopefully it is worth your time to engage us on this topic. And thank you for the messages you have sent. I know they have made me even more careful than I was already trying to be. -- R. David Murray

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-08 Thread R. David Murray
g at, although in practice I think you have to hang wire-format and text-format bits off of appropriate places in the model in order to keep everything properly coordinated. > Maybe even in email5 I suspect that's pushing it. Patches happily accepted, though :) -- R. David Murray

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-08 Thread R. David Murray
On Fri, 08 Oct 2010 15:44:45 -, l...@rmi.net wrote: > Thanks for both your reply and work, David. I'm going to have > to test my email clients under the 3.2 patch when it gels. It's > good to hear that email5 API support remains a goal. I just landed the patch (thou

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-08 Thread R. David Murray
n the direction of structure by breaking lines at "obvious" places like ';'s. (Which line breaking algorithm is the subject of at least one bug report) I'd like to fix that in email6 by adding full support for structured headers. -- R. David Murray

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-08 Thread R. David Murray
et sorted out). > > I don't understand why this is difficult. As far as what Unicode has It isn't difficult in principle. It's just difficult in email5. -- R. David Murray www.bitdance.com ___

Re: [Python-Dev] Patch making the current email package (mostly) support bytes

2010-10-08 Thread R. David Murray
On Sat, 09 Oct 2010 02:48:23 +0900, "Stephen J. Turnbull" wrote: > R. David Murray writes: > > On Sat, 09 Oct 2010 01:06:29 +0900, "Stephen J. Turnbull" > wrote: > > > That mess is entirely unnecessary in Python 3. Text and wire format > > >

Re: [Python-Dev] Distutils2 scripts

2010-10-08 Thread R. David Murray
an end to that naming scheme, and that's a shame. > > Anyway, I can always alias pysetup to cheeseshop or ohmightytim on my > machine and reminisce. Or thebookofarmaments. -- R. David Murray www.bitdance.com ___

Re: [Python-Dev] Relative imports in Py3k

2010-10-10 Thread R. David Murray
s of Python's normal backward compatibility policy. In other words, you should move this discussion to python-ideas. -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] Distutils2 scripts

2010-10-12 Thread R. David Murray
version of Python. I don't use Windows much, but on balance I think I'm with Martin 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] PPC Leopard buildbot failing sqlite test for Python 3.2

2010-10-16 Thread R. David Murray
t? Good question :) When I added this it seemed like such a simple thing. Maybe the endianness issue is the one to look at, despite the pass on Solaris. -- R. David Murray www.bitdance.com ___ Python-Dev mailing list

Re: [Python-Dev] Buildbot for AIX

2010-10-17 Thread R. David Murray
following issues > could be commited: 4499, 678250, 730467. I've committed #9862, #4499 and #678250. I'd like a confirming opinion on #730467, though it sounds reasonable to me. -- R. David Murray www.bitdance.com ___

Re: [Python-Dev] About resolution “accepted ” on the tracker

2010-10-18 Thread R. David Murray
l Stutzbach and I are (were) two users of the second meaning. It’s > more useful to follow Raymond’s meaning, so that a simple query can find > all accepted patches that are awaiting commit. > > I don’t remember if I took up this use from R. David Murray or someone > else,

Re: [Python-Dev] About resolution “accepted” on the tracker

2010-10-18 Thread R. David Murray
ing it 'unit test needed', but if people would rather change it back to just 'test needed', I will raise no objection, since in practice trying to squeeze the meaning I wanted into the stage field doesn't really work. -- R. David Murray www.b

Re: [Python-Dev] Bug week-end on the 20th-21st?

2010-10-25 Thread R. David Murray
tting users groups to participate). I'll be around and able to participate that weekend except for evening US Eastern time. -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org h

Re: [Python-Dev] On breaking modules into packages Was: [issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread R. David Murray
ducing a new directory and having multiple files that cross-import > one another. +1 (or more) -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/list

Re: [Python-Dev] On breaking modules into packages Was: [issue10199] Move Demo/turtle under Lib/

2010-10-26 Thread R. David Murray
On Tue, 26 Oct 2010 16:46:15 -0400, Michael Foord wrote: > On 26/10/2010 15:05, R. David Murray wrote: > > On Tue, 26 Oct 2010 10:39:19 -0700, Raymond > > Hettinger wrote: > >> If someone wants to reorganize code for clarity, I would prefer keeping > >> it

Re: [Python-Dev] On breaking modules into packages Was: [issue10199] Move Demo/turtle under Lib/

2010-10-27 Thread R. David Murray
d I'm not saying that packages are always bad. I'm just saying that packages are also not always good; and, further, that the number of lines of code in a file should, IMO, have nothing to do with the decision as to whether or not to create a packa

Re: [Python-Dev] Continuing 2.x

2010-10-28 Thread R. David Murray
But the reality is that almost all those Python2 users are future Python3 users, so they *are* the future user base. And like Georg said, as far as we can see Python3 uptake is pretty much right on the schedule that was predicted when it was first released. -- R. David

Re: [Python-Dev] Continuing 2.x

2010-10-29 Thread R. David Murray
es of 2.7 are worth the effort, we will, I'm sure, continue to produce them. What *new features* are needed in 2.x? I think the effort required to set up and maintain a fork is a good measure of whether or not such features are *valuable enough* to be worth doing. If they are, someone will do

Re: [Python-Dev] Cleaning-up the new unittest API

2010-10-30 Thread R. David Murray
eems like it would need to be documented, even though it would in a lot of cases just be used through assertEqual. -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.pyth

Re: [Python-Dev] Cleaning-up the new unittest API

2010-10-30 Thread R. David Murray
On Sat, 30 Oct 2010 18:36:45 +0200, Antoine Pitrou wrote: > On Sat, 30 Oct 2010 12:02:27 -0400 > "R. David Murray" wrote: > > > > I don't disagree with this simplification, but given that you all want > > to pare down the unittest API, I'd be in

Re: [Python-Dev] Change to logging Formatters: support for alternative format styles

2010-10-31 Thread R. David Murray
7;s no biggie to have an optional style argument for basicConfig. > People who don't use it don't have to specify it; the style argument would > only > apply if format was specified. > > For some people, use of {} over % is more about personal taste than about the >

Re: [Python-Dev] Stable sort and partial order

2010-11-01 Thread R. David Murray
hm is stable, which means the above > behaviour is a feature. I see no easy way of eliminating the O(n*n) > issue. Custom key functions can't work in all cases. Even granting some theoretical way to sort sets by their contents, it still wouldn't be a bu

Re: [Python-Dev] Stable sort and partial order

2010-11-01 Thread R. David Murray
le, so that is in fact *not* an invariant: >>> x = ['abcd', 'foo'*50, 'foo'*50, 'dkke'] >>> y = x[::-1] >>> [id(n) for n in sorted(x)] [3073747680, 3073747904, 3073747624, 3073747512] >>> [id(n) for n in sorted(y)] [3073747680,

Re: [Python-Dev] Stable sort and partial order

2010-11-01 Thread R. David Murray
On Mon, 01 Nov 2010 15:14:36 -, Michael Foord wrote: > On 01/11/2010 15:10, R. David Murray wrote: > > On Mon, 01 Nov 2010 14:26:19 -, Michael > > Foord wrote: > >> Well, bug is the wrong word as it is obviously an intended feature (or > >> consequ

Re: [Python-Dev] "Too many open files" errors on "x86 FreeBSD 7.2 3.x" buildbot

2010-11-06 Thread R. David Murray
ured a limit on the > > open > > files or maybe of child processes on this buildbot or not, or if it is a > > failure in Python? > > Before David responds: feel free to put temporarily a "limits -a" > command into the build process, or some such. You might als

Re: [Python-Dev] Summary of Python tracker Issues

2010-11-06 Thread R. David Murray
n" and "closed" > deltas is already quite an achievement and shows that our triage works. Agreed. We did have negative open deltas for several weeks running in October. Kudos to everyone involved, and lets do it some more :) I&

Re: [Python-Dev] bugs.python.org not responding (Was: rlcompleter -- auto-complete dictionary keys (+ tests))

2010-11-07 Thread R. David Murray
resolved soon. FYI bugs.python.org and www.python.org are different machines, and in fact the two machines are not even hosted at the same location. Valery, I would advise you to submit the patch to bugs.python.org when it comes back up. Patches posted to this mailing list will in general

Re: [Python-Dev] Backward incompatible API changes in the pydoc module

2010-11-08 Thread R. David Murray
for a while before doing an actual deprecation. Now that deprecation warnings are silent by default we'll probably never need PendingDeprecationWarning ever again :) --David ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.or

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread R. David Murray
On Mon, 08 Nov 2010 18:10:17 -0600, Ron Adam wrote: > def _private_api(): > # > # Isn't it a good practice to use comments here? > # > ... IMO, no. -- R. David Murray www.bitdance.com __

Re: [Python-Dev] Breaking undocumented API

2010-11-10 Thread R. David Murray
ode to deal with. I think Tres was referring to certain packages (which shall remain nameless since I don't feel like googling to find one) whose documentation recommends the 'from import *' methodology. At least that's how I read "Module writers who..." (that is,

[Python-Dev] unexpected traceback/stack behavior with chained exceptions (issue 1553375)

2010-11-13 Thread R. David Murray
s.python.org/issue1553375 -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/

Re: [Python-Dev] python3k vs _ast

2010-11-17 Thread R. David Murray
r this list. The question was "why did you developers drop this (obscure) feature that we depend on in Python3?" I don't think that question would make sense on python-list. Granted, there's a fuzzy line there, but pylint is really development infrastructure :) The pyth

Re: [Python-Dev] Web servers, bytes, str, documentation, Python 3.2a4

2010-11-21 Thread R. David Murray
processing of non-RFC conformant data. I want to look at the CGI issue, but I'm not sure when I'll get to it. -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread R. David Murray
ng written the above, I googled for UCS-2 and got the Wikipedia article on UTF16/UCS-2 [1]. Scanning that article, I do not see anything that would clue me in to the problems of slicing strings in a Python narrow build. Indeed, reading that article with my limited unicode knowledge, if I were told P

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-21 Thread R. David Murray
On Sun, 21 Nov 2010 10:17:57 -0800, Raymond Hettinger wrote: > On Nov 21, 2010, at 9:38 AM, R. David Murray wrote: > > I'm sorry, but I have to disagree. As a relative unicode ignoramus, > > "UCS-2" and "UCS-4" convey almost no information to me, and the

Re: [Python-Dev] Web servers, bytes, str, documentation, Python 3.2a4

2010-11-21 Thread R. David Murray
On Sun, 21 Nov 2010 19:59:54 -0800, Glenn Linderman wrote: > On 11/21/2010 9:18 AM, R. David Murray wrote: > > I want to look at the CGI issue, but I'm not sure when I'll get to it. > > Actually, since this code was working before 3.x, and if email.parser > can n

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-22 Thread R. David Murray
`, the faq/extending.rst: ... print('UCS4 build') faq/extending.rst: ... print('UCS2 build') -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://m

Re: [Python-Dev] len(chr(i)) = 2?

2010-11-22 Thread R. David Murray
On Mon, 22 Nov 2010 12:37:59 -0500, Alexander Belopolsky wrote: > On Mon, Nov 22, 2010 at 12:30 PM, R. David Murray > wrote: > .. > > For reference, a grep in py3k/Doc reveals that there are currently exactly > > 23 lines mentioning UCS2 or UCS4 in the docs. > > Did

Re: [Python-Dev] Signals, threads, blocking C functions

2006-09-05 Thread Scott David Daniels
>> Ah. Well, I can assure you that it's not the oldest trick in the book, >> and not everyone uses it. > ... > Can't this just be enabled for platforms where it's known to work and let > Python as it currently is for the users of these legacy systems ? Ah, but that

Re: [Python-Dev] Tix not included in 2.5 for Windows

2006-09-30 Thread Scott David Daniels
ote: the Os/X universal seems to include a Tix runtime for the non-Intel processor, but not for the Intel processor. This makes me think there is a build problem. -- Scott David Daniels [EMAIL PROTECTED] ___ Python-Dev mailing

Re: [Python-Dev] Tix not included in 2.5 for Windows

2006-09-30 Thread Scott David Daniels
Bob Ippolito wrote: > On 9/30/06, Scott David Daniels <[EMAIL PROTECTED]> wrote: >> Christos Georgiou wrote: >>> Does anyone know why this happens? I can't find any information pointing to >>> this being deliberate. >> Also note: the Os/X univ

Re: [Python-Dev] Caching float(0.0)

2006-10-03 Thread Scott David Daniels
fval) { ... if (fval == 0.0 && raw_match(&fval, cached)) { PY_INCREF(cached); return cached; } ... -- -- Scott David Daniels [EMAIL PROTECTED] ___ Python-Dev mai

Re: [Python-Dev] splitext('.cshrc')

2007-03-08 Thread Scott David Daniels
as incorrect, and have work-arounds. As these files now show > up with "no extension", I rather expect that the work-around > won't trigger, and the default behavior will be the correct one. c) Given a filename, make an appropriately named associated file. pyo_name =

Re: [Python-Dev] transform() and untransform() methods, and the codec registry

2010-12-03 Thread R. David Murray
efer Python because it uses smaller and more namespaces > which are more specific and well defined. If we add email and compression > functions to bytes, why not adding a web browser to the str? As MAL says, the codec machinery is a general purpose too

Re: [Python-Dev] transform() and untransform() methods, and the codec registry

2010-12-03 Thread R. David Murray
On Fri, 03 Dec 2010 11:14:56 -0500, Alexander Belopolsky wrote: > On Fri, Dec 3, 2010 at 10:11 AM, R. David Murray > wrote: > .. > > Please also recall that transform/untransform was discussed before > > the release of Python 3.0 and was approved at the time, but it

Re: [Python-Dev] Repo frozen for 3.2

2010-12-06 Thread R. David Murray
I understand all four of these to be "versions of xxx that won't raise". I think that's a reasonable use of the word 'safe', but perhaps there is something better. SafeConfigParser doesn't follow that pattern, of course, though it is perhaps true that it would raise er

Re: [Python-Dev] API for the new sysconfig module

2010-12-10 Thread R. David Murray
7;t at the moment), it seems to make sense from an implementation standpoint as well. Like Éric, I'm not sure what the implications of the existing module having been released in 2.7 and 3.2 beta are in terms of making such an API change. -- R. David Murray

Re: [Python-Dev] A grammatical oddity: trailing commas in argument lists -- continuation

2010-12-13 Thread R. David Murray
re lots more out there[*]. I do especially like the fact that there is one in the stdlib :) It seems like the status quo is fine. I wouldn't object to it being made more consistent. I would object to removing the existing cases. -- R. David Murray www.bit

Re: [Python-Dev] [Python-checkins] r87310 - in python/branches/release27-maint: Doc/library/compileall.rst Lib/compileall.py

2010-12-16 Thread R. David Murray
un directly. In 3.2, this means it will never show up normally, since you can't even run the .pyc file without moving it out of __pycache__. Which means 'ddir' is henceforth useful only to those people who want to package sourceless distributions of the python code. (If

Re: [Python-Dev] Locale-specific formatting

2010-12-17 Thread R. David Murray
'12,345' > ... > >>> "UK says {value:,@uk} and France says > {value:,@france}".format(value=12345, uk=uk_loc, france=france_loc) > 'UK says 1,234.5 and France says 1 234,5' > > Comments? There was at least one long thread on this on py

Re: [Python-Dev] r87389 - in python/branches/py3k: Doc/library/unittest.rst Lib/unittest/case.py Misc/NEWS

2010-12-18 Thread R. David Murray
s "actual, expected"... And yet "expected, > actual" still looks weird to me. :-( You aren't unique, I feel the same way. But it seems to me that the most important thing is to be consistent, so that I don't freak out for long. -- R. David Murray

Re: [Python-Dev] Issue #8863 adds a new PYTHONNOFAULTHANDLER?environment variable

2010-12-20 Thread R. David Murray
t; let developers act more quickly on bug reports. I wonder if this output > really speeds up the process. > > Do you have an example bug where this patch helps in finding the precise > location of a segfault? How is 'line 29 in g' not more precise

Re: [Python-Dev] [Python-checkins] r87504 - in python/branches/py3k: Doc/c-api/exceptions.rst Include/pyerrors.h Include/warnings.h

2010-12-27 Thread R. David Murray
essage. *format* is > + an ASCII-encoded string. So, the former, I'd guess :) -- R. David Murray www.bitdance.com ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/lis

Re: [Python-Dev] [Python-checkins] r87505 - in python/branches/py3k: Doc/c-api/unicode.rst Include/unicodeobject.h

2010-12-27 Thread R. David Murray
with the 8th bit set, leaving no room for interpretation. So presumably you mean it is (treated as) an ISO-8859-1 encoded string, despite the function name? -- R. David Murray www.bitdance.com ___ Python-Dev mailing

Re: [Python-Dev] [Python-checkins] r87504 - in python/branches/py3k: Doc/c-api/exceptions.rst Include/pyerrors.h Include/warnings.h

2010-12-28 Thread R. David Murray
On Tue, 28 Dec 2010 13:58:24 +0100, Victor Stinner wrote: > Le mardi 28 décembre 2010 à 11:40 +0100, "Martin v. Löwis" a écrit : > > Am 28.12.2010 11:28, schrieb Victor Stinner: > > > Le lundi 27 décembre 2010 à 23:07 -0500, R. David Murray a écrit : > &g

<    12   13   14   15   16   17   18   19   20   21   >