Re: [Python-Dev] Breaking undocumented API

2010-11-12 Thread Guido van Rossum
On Fri, Nov 12, 2010 at 1:49 AM, Hrvoje Niksic wrote: > On 11/11/2010 11:24 PM, Greg Ewing wrote: >> >> Nick Coghlan wrote: >> >>>  My personal opinion is that we should be trying to get the standard >>>  library to the point where __all__ definitions are unnecessary - if a >>>  name isn't in __al

Re: [Python-Dev] Breaking undocumented API

2010-11-12 Thread Greg Ewing
Steven D'Aprano wrote: By the way, did you intend to send this off-list? No, I didn't realise I hadn't sent it to the list. If you don't document them, I won't use them, because I won't know if it's one of these don't-ask-don't-tell pseudo-public functions or something private that's accidenta

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

2010-11-12 Thread Terry Reedy
On 11/12/2010 7:28 PM, antoine.pitrou wrote: Author: antoine.pitrou Date: Sat Nov 13 01:28:53 2010 New Revision: 86441 Log: Switch from gmane to another provider for NNTP tests (as gmane isn't reliable enough). Also, use setUpClass in order to connect only once per test run. class Ne

Re: [Python-Dev] r86418 - in python/branches/release27-maint: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-12 Thread Nick Coghlan
On Sat, Nov 13, 2010 at 6:32 AM, Terry Reedy wrote: > On 11/12/2010 2:42 PM, Antoine Pitrou wrote: >> Maybe I've missed something, but is there any reason to add a new >> parameter in a bugfix release? >> (apart from security issues) > > This is a bugfix. We discussed this (with Tim's participatio

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Nick Coghlan
On Sat, Nov 13, 2010 at 5:46 AM, "Martin v. Löwis" wrote: >> Ok, good answer. In this case, I vote +1 to remove completly the ANSI version >> from all Python modules. > > I think caution is still necessary. So I propose to deprecate byte > filenames on Windows in 3.2, with removal in 3.3. People w

Re: [Python-Dev] r86418 - in python/branches/release27-maint: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-12 Thread Terry Reedy
On 11/12/2010 3:32 PM, Terry Reedy wrote: On 11/12/2010 2:42 PM, Antoine Pitrou wrote: Hello, On Fri, 12 Nov 2010 00:22:19 +0100 (CET) terry.reedy wrote: + + .. versionadded:: 2.7 + The *autojunk* parameter. I just realized that this should say 2.7.1 so people know not to use it with the o

Re: [Python-Dev] Closures / Python Scopes

2010-11-12 Thread Terry Reedy
On 11/12/2010 3:08 PM, Hatem Nassrat wrote: A colleague of mine came across something anecdotal when working with lambdas, it is expressed by the following code snippet. In [1]: def a(): ...: for i in range(10): ...: def b(): ...: return i ...:

Re: [Python-Dev] r86418 - in python/branches/release27-maint: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-12 Thread Terry Reedy
On 11/12/2010 2:42 PM, Antoine Pitrou wrote: Hello, On Fri, 12 Nov 2010 00:22:19 +0100 (CET) terry.reedy wrote: + + .. versionadded:: 2.7 + The *autojunk* parameter. Maybe I've missed something, but is there any reason to add a new parameter in a bugfix release? (apart from security

[Python-Dev] Closures / Python Scopes

2010-11-12 Thread Hatem Nassrat
A colleague of mine came across something anecdotal when working with lambdas, it is expressed by the following code snippet. In [1]: def a(): ...: for i in range(10): ...: def b(): ...: return i ...: yield b ...: ...: In [2]: func

Re: [Python-Dev] buildbot master update

2010-11-12 Thread Antoine Pitrou
On Fri, 12 Nov 2010 20:53:00 +0100 "Martin v. Löwis" wrote: > > Thanks Martin, for all you do to keep our infrastructure humming along > > smoothly, including the recent Roundup migration. > > I just write the announcements :-) In this case. thanks should also > extend to Izak Burger of Upfront H

Re: [Python-Dev] buildbot master update

2010-11-12 Thread Martin v. Löwis
> Thanks Martin, for all you do to keep our infrastructure humming along > smoothly, including the recent Roundup migration. I just write the announcements :-) In this case. thanks should also extend to Izak Burger of Upfront Hosting who did most of the setup (I just did the DNS changes), and to b

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Martin v. Löwis
> Ok, good answer. In this case, I vote +1 to remove completly the ANSI version > from all Python modules. I think caution is still necessary. So I propose to deprecate byte filenames on Windows in 3.2, with removal in 3.3. People who think this is a terrible mistake and breaks there applications

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Martin v. Löwis
> I'm not talking about Windows obviously. POSIX filenames are natively > bytes, so if you get a bytes filename from an external source, it makes > sense to reuse the bytes form. > > I think it would be a mistake to allow bytes filenames under POSIX but > not under Windows. It makes porting harder

Re: [Python-Dev] r86418 - in python/branches/release27-maint: Doc/library/difflib.rst Lib/difflib.py Lib/test/test_difflib.py Misc/NEWS

2010-11-12 Thread Antoine Pitrou
Hello, On Fri, 12 Nov 2010 00:22:19 +0100 (CET) terry.reedy wrote: > + > + .. versionadded:: 2.7 > + The *autojunk* parameter. Maybe I've missed something, but is there any reason to add a new parameter in a bugfix release? (apart from security issues) Regards Antoine. __

Re: [Python-Dev] buildbot master update

2010-11-12 Thread Paul Moore
On 12 November 2010 16:15, Barry Warsaw wrote: > On Nov 12, 2010, at 10:29 AM, Martin v. Löwis wrote: > >>As you may have noticed: I updated the buildbot master to release 0.8.2. >>If you notice any problems, please post them here. > > Pretty!  My buildbot seems fine. Yes, I like the new look. >

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

2010-11-12 Thread Terry Reedy
On 11/12/2010 4:32 AM, "Martin v. Löwis" wrote: bugs.python.org is now on the new hardware. There have been some problems in the migration: the old hardware would start failing before the scheduled migration date, so the migration was done early, causing outage for some people who then the old ad

Re: [Python-Dev] Issues 9931 and 9055 - test_ttk_guionly and buildbot run as a service

2010-11-12 Thread Terry Reedy
On 11/12/2010 3:44 AM, Paul Moore wrote: Hi, My buildbot has been failing for some time because of these 2 issues, both related to the fact that tests are hanging when run as a service (and hence have no display to open GUI elements on). Both issues have patches, and as far as I am aware, the pat

[Python-Dev] Summary of Python tracker Issues

2010-11-12 Thread Python tracker
ACTIVITY SUMMARY (2010-11-05 - 2010-11-12) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open2526 (+12) closed 19651 (+54) total 22177 (+66) Open issues wit

Re: [Python-Dev] buildbot master update

2010-11-12 Thread Barry Warsaw
On Nov 12, 2010, at 10:29 AM, Martin v. Löwis wrote: >As you may have noticed: I updated the buildbot master to release 0.8.2. >If you notice any problems, please post them here. Pretty! My buildbot seems fine. >Slave operators can upgrade their installations at their own pace; >buildbot is hig

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Antoine Pitrou
On Fri, 12 Nov 2010 13:13:08 +0100 Victor Stinner wrote: > On Thursday 11 November 2010 21:02:43 Antoine Pitrou wrote: > > On Thu, 11 Nov 2010 20:44:52 +0100 > > > > "Martin v. Löwis" wrote: > > > > How do you support cross-platform code using bytes filenames? > > > > IIRC, it has already been a

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Victor Stinner
On Thursday 11 November 2010 20:50:35 you wrote: > > Even if I hate the MBCS encoding, because it replaces undecodable > > characters by similar glyphs by default, I'm not certain that it is a > > good idea to drop the bytes API. Can it be a problem to port programs > > from Python2 to Python3? Do

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Victor Stinner
On Thursday 11 November 2010 21:02:43 Antoine Pitrou wrote: > On Thu, 11 Nov 2010 20:44:52 +0100 > > "Martin v. Löwis" wrote: > > > How do you support cross-platform code using bytes filenames? > > > IIRC, it has already been argued that it was an important feature. Many > > > filesystem-related

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Victor Stinner
On Thursday 11 November 2010 23:01:32 you wrote: > > Sure, it will divide the number of lines, of the code specific to > > Windows, by two. > > Can we get most of the code cleanup benefit without the backwards > compatibility risk by doing the decode from 'mbcs' on our side of the > fence? I crea

Re: [Python-Dev] [Python-checkins] r86429 - python/branches/py3k/Doc/tools/sphinxext/pyspecific.py

2010-11-12 Thread Fred Drake
On Fri, Nov 12, 2010 at 3:57 AM, georg.brandl wrote in a commit: > Add a deprecated-removed directive that allows to give the version of removal > for deprecations. This sounds pretty general-purpose rather than Python-specific. Any chance this will move into Sphinx? I know a few projects that

Re: [Python-Dev] Breaking undocumented API

2010-11-12 Thread Łukasz Langa
Am 11.11.2010 23:15, schrieb Nick Coghlan: If we instead adopt the explicit policy that private APIs are: - imported modules (with the exception of os.path) - any names starting with a leading underscore Then we get the 3 API tiers you describe: core public API in __all__, other public functions

Re: [Python-Dev] Breaking undocumented API

2010-11-12 Thread Hrvoje Niksic
On 11/11/2010 11:24 PM, Greg Ewing wrote: Nick Coghlan wrote: My personal opinion is that we should be trying to get the standard library to the point where __all__ definitions are unnecessary - if a name isn't in __all__, it should start with an underscore (and if that is true, then the __

[Python-Dev] bugs.python.org migration complete

2010-11-12 Thread Martin v. Löwis
bugs.python.org is now on the new hardware. There have been some problems in the migration: the old hardware would start failing before the scheduled migration date, so the migration was done early, causing outage for some people who then the old address in their DNS caches. In addition, there was

[Python-Dev] buildbot master update

2010-11-12 Thread Martin v. Löwis
As you may have noticed: I updated the buildbot master to release 0.8.2. If you notice any problems, please post them here. Slave operators can upgrade their installations at their own pace; buildbot is highly backwards compatible. As a recommendation, I suggest that slaves run at least at the ver

Re: [Python-Dev] Removal of Win32 ANSI API

2010-11-12 Thread Martin v. Löwis
> Additionally: > > d) Over a socket (like the HTTP protocol) -> Bytes. Sure. However, you can't really expect that the bytes you receive over the socket are a meaningful filename on your local Windows installation. So it would be a bug in the application to not decode the bytes that you receive

[Python-Dev] Issues 9931 and 9055 - test_ttk_guionly and buildbot run as a service

2010-11-12 Thread Paul Moore
Hi, My buildbot has been failing for some time because of these 2 issues, both related to the fact that tests are hanging when run as a service (and hence have no display to open GUI elements on). Both issues have patches, and as far as I am aware, the patches fix the issues reasonably well. What c