Re: [Python-Dev] Warnings

2011-12-07 Thread Georg Brandl
Am 07.12.2011 02:23, schrieb Cameron Simpson: > On 30Nov2011 22:10, Raymond Hettinger wrote: > | When updating the documentation, please don't go overboard with warnings. > | The docs need to be worded affirmatively -- say what a tool does and show > how to use it correctly. > | See http://docs.p

Re: [Python-Dev] [Python-checkins] cpython (2.7): PDB now will properly escape backslashes in the names of modules it executes.

2011-12-07 Thread Martin v. Löwis
> I think we have an unwritten rule that test class and method names > should tell something about what they test. (We do have things like > TestWeirdBugs and test_12345, but I don’t think it’s a useful pattern to > follow :) I completely disagree. test_12345 is a very good name for a test case,

[Python-Dev] Python Best Again

2011-12-07 Thread Steve Holden
I've just added a news item to the python.org home page noting that Linux Journal readers have voted Python the Best Programming Language for the third year in a row. This is excellent news, though I find it hard to believe that coming up on the outside we see C++. While it demonstrates that Li

Re: [Python-Dev] [PSF-Members] Python Best Again

2011-12-07 Thread Massimo Di Pierro
Hello Steve, congratulations to all of you in the foundation who work hard to make Python the success that it is. Massimo On Dec 7, 2011, at 12:40 PM, Steve Holden wrote: > I've just added a news item to the python.org home page noting that Linux > Journal readers have voted Python the Best P

Re: [Python-Dev] Warnings

2011-12-07 Thread Ethan Furman
Georg Brandl wrote: Am 07.12.2011 02:23, schrieb Cameron Simpson: On 30Nov2011 22:10, Raymond Hettinger wrote: | When updating the documentation, please don't go overboard with warnings. | The docs need to be worded affirmatively -- say what a tool does and show how to use it correctly. | See

Re: [Python-Dev] Warnings

2011-12-07 Thread Ben Wolfson
On Wed, Dec 7, 2011 at 11:00 AM, Ethan Furman wrote: > > No, of course not -- although it might /affect/ said reader by causing > him/her to think, "I don't think that word means what you think it means..." >  ;) > > Seriously, it's best to use the correct words with the correct meanings.  If > so

Re: [Python-Dev] Warnings

2011-12-07 Thread Ben Finney
Georg Brandl writes: > Am 07.12.2011 02:23, schrieb Cameron Simpson: > > This assures that files are flushed [...] > > > > It does not. It _ensures_ that files are flushed. The doco style > > "affirmative tone" _assures_. The coding practice _ensures_! > > Oh, come on, surely this doesn't effe

Re: [Python-Dev] Warnings

2011-12-07 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/07/2011 01:22 PM, Georg Brandl wrote: > Am 07.12.2011 02:23, schrieb Cameron Simpson: >> On 30Nov2011 22:10, Raymond Hettinger >> wrote: | When updating the documentation, please don't go overboard >> with warnings. | The docs need to be worded

[Python-Dev] Reject characters bigger than U+10FFFF and Solaris issues

2011-12-07 Thread Victor Stinner
Hi, I would like to deny the creation of an Unicode string containing characters outside the range [U+; U+10]. The check is already present in some places (e.g. the builtin chr() function), but not everywhere. The last important function is PyUnicode_FromWideChar, function used to decod

Re: [Python-Dev] Warnings

2011-12-07 Thread Stephen J. Turnbull
Georg Brandl writes: > Oh, come on, surely this doesn't effect the casual reader? Casual readers aren't effective in any case; you want to hear the opinions of those who care. ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/ma

[Python-Dev] readd u'' literal support in 3.3?

2011-12-07 Thread Chris McDonough
On the heels of Armin's blog post about the troubles of making the same codebase run on both Python 2 and Python 3, I have a concrete suggestion. It would help a lot for code that straddles both Py2 and Py3 to be able to make use of u'' literals. It would seem to be an easy thing to reenable (see

Re: [Python-Dev] readd u'' literal support in 3.3?

2011-12-07 Thread Benjamin Peterson
2011/12/8 Chris McDonough : > On the heels of Armin's blog post about the troubles of making the same > codebase run on both Python 2 and Python 3, I have a concrete > suggestion. > > It would help a lot for code that straddles both Py2 and Py3 to be able > to make use of u'' literals. Helpful or

Re: [Python-Dev] readd u'' literal support in 3.3?

2011-12-07 Thread Chris McDonough
On Thu, 2011-12-08 at 01:02 -0500, Benjamin Peterson wrote: > 2011/12/8 Chris McDonough : > > On the heels of Armin's blog post about the troubles of making the same > > codebase run on both Python 2 and Python 3, I have a concrete > > suggestion. > > > > It would help a lot for code that straddles

Re: [Python-Dev] readd u'' literal support in 3.3?

2011-12-07 Thread Benjamin Peterson
2011/12/8 Chris McDonough : > On Thu, 2011-12-08 at 01:02 -0500, Benjamin Peterson wrote: >> 2011/12/8 Chris McDonough : >> > On the heels of Armin's blog post about the troubles of making the same >> > codebase run on both Python 2 and Python 3, I have a concrete >> > suggestion. >> > >> > It woul

Re: [Python-Dev] readd u'' literal support in 3.3?

2011-12-07 Thread Chris McDonough
On Thu, 2011-12-08 at 01:18 -0500, Benjamin Peterson wrote: > 2011/12/8 Chris McDonough : > > On Thu, 2011-12-08 at 01:02 -0500, Benjamin Peterson wrote: > >> 2011/12/8 Chris McDonough : > >> > On the heels of Armin's blog post about the troubles of making the same > >> > codebase run on both Pytho

Re: [Python-Dev] readd u'' literal support in 3.3?

2011-12-07 Thread Nick Coghlan
Such code still won't work on 3.2, hence restoring the redundant notation would be ultimately pointless. -- Nick Coghlan (via Gmail on Android, so likely to be more terse than usual) On Dec 8, 2011 4:34 PM, "Chris McDonough" wrote: > On Thu, 2011-12-08 at 01:18 -0500, Benjamin Peterson wrote: >

Re: [Python-Dev] readd u'' literal support in 3.3?

2011-12-07 Thread Chris McDonough
On Thu, 2011-12-08 at 17:33 +1000, Nick Coghlan wrote: > Such code still won't work on 3.2, hence restoring the redundant > notation would be ultimately pointless. None of the code I've written which straddles Python 2/3 supports anything except Python 3.2+, and likewise I expect that for the nex