Re: [Python-Dev] Snakebite, buildbot and low hanging fruit -- feedback wanted! (Was Re: SSH access against buildbot boxes)

2010-11-08 Thread Martin v. Löwis
That is true, however it doesn't help you: the hook takes its configuration from the hgrc file, so you can configure exactly one host:port to send changes to. Ah, ok. Regards, Martin ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Snakebite, buildbot and low hanging fruit -- feedback wanted! (Was Re: SSH access against buildbot boxes)

2010-11-08 Thread Jeroen Ruigrok van der Werven
-On [20101107 12:52], Nick Coghlan (ncogh...@gmail.com) wrote: This sounds like a great place to start. Perhaps focus on one or two of the less common platforms first (e.g. FreeBSD 7 has been hitting a few semaphore issues lately). Nick, do you have some pointers for this? I am one of those BSD

Re: [Python-Dev] Continuing 2.x

2010-11-08 Thread Lennart Regebro
2010/10/28 Kristján Valur Jónsson krist...@ccpgames.com: Hello all. So, python 2.7 is in bugfix only mode.  ‘trunk’ is off limit.  So, where does one make improvements to the distinguished, and still very much alive, 2.x series of Python? The answer would seem to be “one doesn’t”.  But

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

2010-11-08 Thread Valery Khamenya
Hi David, 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 just get forgotten. done: http://bugs.python.org/issue10351 http://bugs.python.org/issue10352 Albeit, as I can already see the situation

Re: [Python-Dev] new buffer in python2.7

2010-11-08 Thread Lennart Regebro
On Wed, Oct 27, 2010 at 12:36, Antoine Pitrou solip...@pitrou.net wrote: On Wed, 27 Oct 2010 10:13:12 +0800 Kristján Valur Jónsson krist...@ccpgames.com wrote: Although 2.7 has the new buffer interface and memoryview objects, these are widely not accepted in the built in modules. That's

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

2010-11-08 Thread Nick Coghlan
All, I was about to commit the patch for issue 2001 (the improvements to the pydoc web server and the removal of the Tk GUI) when I realised that pydoc.serve() and pydoc.gui() are technically public standard library APIs (albeit undocumented ones). Currently the patch switches serve() to start

Re: [Python-Dev] Snakebite, buildbot and low hanging fruit -- feedback wanted! (Was Re: SSH access against buildbot boxes)

2010-11-08 Thread Nick Coghlan
On Mon, Nov 8, 2010 at 7:05 PM, Jeroen Ruigrok van der Werven asmo...@in-nomine.org wrote: -On [20101107 12:52], Nick Coghlan (ncogh...@gmail.com) wrote: This sounds like a great place to start. Perhaps focus on one or two of the less common platforms first (e.g. FreeBSD 7 has been hitting a few

Re: [Python-Dev] Snakebite, buildbot and low hanging fruit -- feedback wanted! (Was Re: SSH access against buildbot boxes)

2010-11-08 Thread Dirkjan Ochtman
On Sun, Nov 7, 2010 at 13:15, Dirkjan Ochtman dirk...@ochtman.nl wrote: Yeah, Martin has things for buildbot worked out. Notes about this are in the hg.python.org/pymigr repository. I meant Georg here, of course. Sorry, Georg! Cheers, Dirkjan ___

Re: [Python-Dev] Snakebite, buildbot and low hanging fruit -- feedback wanted! (Was Re: SSH access against buildbot boxes)

2010-11-08 Thread Nick Coghlan
On Mon, Nov 8, 2010 at 10:09 AM, Martin v. Löwis mar...@v.loewis.de wrote: Luckily, the problems that we faced 2.5 years ago when I came up with the idea of Snakebite are still just as ever present today ;-) Is this bashing of existing infrastructure really necessary? People (like me) might

[Python-Dev] GUI test runner tool

2010-11-08 Thread Michael Foord
Hello all, Now that unittest has test discovery, Mark Roddy has been working on resurrecting the old GUI test runner (using Tkinter): https://bitbucket.org/markroddy/unittestgui This was part of the original pyunit project but I believe it was never part of the standard library:

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

2010-11-08 Thread Jeroen Ruigrok van der Werven
-On [20101108 00:36], David Bolen (db3l@gmail.com) wrote: Victor Stinner victor.stin...@haypocalc.com writes: Well, I think the SYSV semaphores are either less limited or at least more adjustable. They've certainly been around longer in FreeBSD. The POSIX semaphore support is not enabled

Re: [Python-Dev] Help with warnings not being raised

2010-11-08 Thread Jesus Cea
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/11/10 13:55, Nick Coghlan wrote: Under -We, PyErr_Warn raises an exception rather than printing to stdout. That exception is clobbered by the immediately following call to PyErr_Clear. Since you *only* hit that branch under -We in the first

Re: [Python-Dev] r86276 - python/branches/py3k/Lib/distutils/cygwinccompiler.py

2010-11-08 Thread Éric Araujo
New Revision: 86276 Log: Fix #10252 again (hopefully definitely). Patch by Brian Curtin. It seems this and previous fixes should be backported to 2.7. Certainly. I was waiting on buildbot feedback before doing it. Regards ___ Python-Dev

Re: [Python-Dev] r86276 - python/branches/py3k/Lib/distutils/cygwinccompiler.py

2010-11-08 Thread Éric Araujo
It seems this and previous fixes should be backported to 2.7. Perhaps there should be a 'backport 2.7' keyword to check on issues that might be but have not been. The “Your issues” list is very helpful and works well for me. This bug is still open and assigned to me (and opened in my web

Re: [Python-Dev] [Python-checkins] r86300 - in python/branches/py3k: Misc/NEWS PC/winsound.c

2010-11-08 Thread Éric Araujo
Author: hirokazu.yamamoto New Revision: 86300 Log: Issue #6317: Now winsound.PlaySound only accepts unicode with MvL's approval. Modified: python/branches/py3k/Misc/NEWS == --- python/branches/py3k/Misc/NEWS

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

2010-11-08 Thread exarkun
On 11:44 am, ncogh...@gmail.com wrote: All, I was about to commit the patch for issue 2001 (the improvements to the pydoc web server and the removal of the Tk GUI) when I realised that pydoc.serve() and pydoc.gui() are technically public standard library APIs (albeit undocumented ones).

Re: [Python-Dev] Continuing 2.x

2010-11-08 Thread James Y Knight
On Nov 8, 2010, at 4:42 AM, Lennart Regebro wrote: Except for making releases that start backporting Python 3 features and breaking backwards compatibility gradually (which may or may not be a good idea) I don't see the point. There isn't much to do when it comes to improving the language, and

Re: [Python-Dev] [Python-checkins] r86264 - python/branches/release27-maint/Lib/distutils/sysconfig.py

2010-11-08 Thread Éric Araujo
[Martin] It's rather a matter of agreeing when moving forward: IMO, mere style changes, code cleanup etc shouldn't be applied to the bug fix branches, as their only purpose is to provide bug fixes for existing users. [Terry] The omission of the deletion from the 5/5 revision was a bug in

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

2010-11-08 Thread Éric Araujo
Hi Nick, If there is no enormous difficulty in maintaining compatibility, I think the usual deprecation process should be followed. We don’t know who is using pydoc as a library, so let’s play safe and not risk breaking their code (especially considering that it must not have been easy to write

Re: [Python-Dev] Continuing 2.x

2010-11-08 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/08/2010 04:42 AM, Lennart Regebro wrote: 2010/10/28 Kristján Valur Jónsson krist...@ccpgames.com: Hello all. So, python 2.7 is in bugfix only mode. ‘trunk’ is off limit. So, where does one make improvements to the distinguished, and

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

2010-11-08 Thread Georg Brandl
Am 08.11.2010 17:02, schrieb Éric Araujo: Hi Nick, If there is no enormous difficulty in maintaining compatibility, I think the usual deprecation process should be followed. We don’t know who is using pydoc as a library, so let’s play safe and not risk breaking their code (especially

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

2010-11-08 Thread R. David Murray
On Mon, 08 Nov 2010 17:02:24 +0100, mer...@netwok.org wrote: If there is no enormous difficulty in maintaining compatibility, I think the usual deprecation process should be followed. We don’t know who is using pydoc as a library, so let’s play safe and not risk breaking their code

[Python-Dev] Breaking undocumented API

2010-11-08 Thread Alexander Belopolsky
Was: [issue2001] Pydoc interactive browsing enhancement On Sun, Nov 7, 2010 at 9:17 AM, Nick Coghlan rep...@bugs.python.org wrote: .. I'd actually started typing out the command to commit this before it finally clicked that the patch changes public APIs of the pydoc module in incompatible

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Michael Foord
Was: [issue2001] Pydoc interactive browsing enhancement [snip...] This suggests that trace.find_strings() should probably be preserved or properly deprecated. If this is the case, should we fix bugs in it? Note that it currently has a bug because it ignores the coding cookie when opening

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Michael Foord
Was: [issue2001] Pydoc interactive browsing enhancement [snip...] This suggests that trace.find_strings() should probably be preserved or properly deprecated. If this is the case, should we fix bugs in it? Note that it currently has a bug because it ignores the coding cookie when opening

Re: [Python-Dev] Buildbot for AIX

2010-11-08 Thread Antoine Pitrou
Le lundi 08 novembre 2010 à 18:46 +0100, Sébastien Sablé a écrit : xlc: 1501-216 (W) command option - -qmaxmem=18000 is not recognized - passed to ld Is -qmaxmem really necessary to build Python? If so, you could try passing it in CFLAGS. However running 2 different slaves per host in order

Re: [Python-Dev] Buildbot for AIX

2010-11-08 Thread C. Titus Brown
On Mon, Nov 08, 2010 at 06:50:32PM +0100, Antoine Pitrou wrote: However running 2 different slaves per host in order to distinguish xlc and gcc would be OK; though I would appreciate if they could run sequentially rather than in parallel as that would limit the host load. If there are

Re: [Python-Dev] Buildbot for AIX

2010-11-08 Thread Sébastien Sablé
Hi Antoine, I tried to provide command lines arguments to configure instead of environment variables with: configureFlags = [--with-pydebug, --without-computed-gotos, CC=xlc, 'OPT=-O2 -qmaxmem=18000'] But that would fail: on the slave, configure would run like that: ./configure

Re: [Python-Dev] Buildbot for AIX

2010-11-08 Thread exarkun
On 05:50 pm, solip...@pitrou.net wrote: Le lundi 08 novembre 2010 � 18:46 +0100, S�bastien Sabl� a �crit : xlc: 1501-216 (W) command option - -qmaxmem=18000 is not recognized - passed to ld Is -qmaxmem really necessary to build Python? If so, you could try passing it in CFLAGS. However

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

2010-11-08 Thread Ron Adam
On 11/08/2010 09:12 AM, exar...@twistedmatrix.com wrote: On 11:44 am, ncogh...@gmail.com wrote: All, I was about to commit the patch for issue 2001 (the improvements to the pydoc web server and the removal of the Tk GUI) when I realised that pydoc.serve() and pydoc.gui() are technically

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Terry Reedy
On 11/8/2010 12:20 PM, Alexander Belopolsky wrote: Was: [issue2001] Pydoc interactive browsing enhancement On Sun, Nov 7, 2010 at 9:17 AM, Nick Coghlanrep...@bugs.python.org wrote: .. I'd actually started typing out the command to commit this before it finally clicked that the patch changes

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Alexander Belopolsky
On Mon, Nov 8, 2010 at 12:35 PM, Michael Foord fuzzy...@voidspace.org.uk wrote: .. If you deprecate it then you don't *have* to fix bugs in it. If we know it is used then we can't remove it without deprecation. What about the maintenance branch? ___

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Michael Foord
On Mon, Nov 8, 2010 at 12:35 PM, Michael Foord fuzzy...@voidspace.org.uk wrote: .. If you deprecate it then you don't *have* to fix bugs in it. If we know it is used then we can't remove it without deprecation. What about the maintenance branch? So you have a bug in the module that can only

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Alexander Belopolsky
On Mon, Nov 8, 2010 at 1:39 PM, Michael Foord fuzzy...@voidspace.org.uk wrote: .. So you have a bug in the module that can only be fixed in a function you want to deprecate? No, I have a bug in a function that I want to deprecate. You said I don't need to fix it if I add a deprecation warning.

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Michael Foord
On Mon, Nov 8, 2010 at 1:39 PM, Michael Foordfuzzy...@voidspace.org.uk wrote: .. So you have a bug in the module that can only be fixed in a function you want to deprecate? No, I have a bug in a function that I want to deprecate. You said I don't need to fix it if I add a deprecation

Re: [Python-Dev] GUI test runner tool

2010-11-08 Thread Brett Cannon
On Mon, Nov 8, 2010 at 04:09, Michael Foord mich...@voidspace.org.uk wrote: Hello all, Now that unittest has test discovery, Mark Roddy has been working on resurrecting the old GUI test runner (using Tkinter): https://bitbucket.org/markroddy/unittestgui This was part of the original pyunit

Re: [Python-Dev] GUI test runner tool

2010-11-08 Thread Alexander Belopolsky
On Mon, Nov 8, 2010 at 7:09 AM, Michael Foord mich...@voidspace.org.uk wrote: .. I'd like to propose adding [unittestgui] to Python in Tools/ and am volunteering to maintain it. Why not adding it under Lib/unittest/? I think Tools/ is a less attractive location for most users than say PyPI

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Brett Cannon
On Mon, Nov 8, 2010 at 09:20, Alexander Belopolsky belopol...@users.sourceforge.net wrote: Was: [issue2001] Pydoc interactive browsing enhancement On Sun, Nov 7, 2010 at 9:17 AM, Nick Coghlan rep...@bugs.python.org wrote: .. I'd actually started typing out the command to commit this before

Re: [Python-Dev] GUI test runner tool

2010-11-08 Thread Raymond Hettinger
On Nov 8, 2010, at 11:28 AM, Alexander Belopolsky wrote: On Mon, Nov 8, 2010 at 7:09 AM, Michael Foord mich...@voidspace.org.uk wrote: .. I'd like to propose adding [unittestgui] to Python in Tools/ and am volunteering to maintain it. Why not adding it under Lib/unittest/?

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread exarkun
On 07:58 pm, br...@python.org wrote: I don't think a strict don't remove without deprecation policy is workable. �For example, is trace.rx_blank constant part of the trace module API that needs to be preserved indefinitely? �I don't even know if it is possible to add a deprecation warning to it,

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

2010-11-08 Thread David Bolen
Jeroen Ruigrok van der Werven asmo...@in-nomine.org writes: -On [20101108 00:36], David Bolen (db3l@gmail.com) wrote: Well, I think the SYSV semaphores are either less limited or at least more adjustable. They've certainly been around longer in FreeBSD. The POSIX semaphore support

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Brett Cannon
On Mon, Nov 8, 2010 at 13:03, exar...@twistedmatrix.com wrote: On 07:58 pm, br...@python.org wrote: I don't think a strict don't remove without deprecation policy is workable.  For example, is trace.rx_blank constant part of the trace module API that needs to be preserved indefinitely?  I

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread exarkun
On 09:25 pm, br...@python.org wrote: On Mon, Nov 8, 2010 at 13:03, exar...@twistedmatrix.com wrote: On 07:58 pm, br...@python.org wrote: I don't think a strict don't remove without deprecation policy is workable. �For example, is trace.rx_blank constant part of the trace module API that

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Ron Adam
On 11/08/2010 01:58 PM, Brett Cannon wrote: On Mon, Nov 8, 2010 at 09:20, Alexander Belopolsky belopol...@users.sourceforge.net wrote: Was: [issue2001] Pydoc interactive browsing enhancement On Sun, Nov 7, 2010 at 9:17 AM, Nick Coghlanrep...@bugs.python.org wrote: .. I'd actually started

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Brett Cannon
On Mon, Nov 8, 2010 at 13:45, exar...@twistedmatrix.com wrote: On 09:25 pm, br...@python.org wrote: On Mon, Nov 8, 2010 at 13:03,  exar...@twistedmatrix.com wrote: On 07:58 pm, br...@python.org wrote: I don't think a strict don't remove without deprecation policy is workable.  For

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Brett Cannon
On Mon, Nov 8, 2010 at 13:36, Ron Adam r...@ronadam.com wrote: On 11/08/2010 01:58 PM, Brett Cannon wrote: On Mon, Nov 8, 2010 at 09:20, Alexander Belopolsky belopol...@users.sourceforge.net  wrote: Was: [issue2001] Pydoc interactive browsing enhancement On Sun, Nov 7, 2010 at 9:17 AM,

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Raymond Hettinger
On Nov 8, 2010, at 11:58 AM, Brett Cannon wrote: I think we need to, as a group, decide how to handle undocumented APIs that don't have a leading underscore: they get treated just the same as the documented APIs, or are they private regardless and thus we can change them at our whim? To

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Steven D'Aprano
Ron Adam wrote: My understanding is that anything with an actual docstring is part of the public API. I frequently add docstrings to _private functions. Just because it is private doesn't mean I don't want documentation for it, and it is very handy for running doctests. Yes, I test my

Re: [Python-Dev] [Python-checkins] r86327 - in python/branches/py3k: Doc/includes/email-mime.py Doc/includes/email-simple.py Doc/library/smtplib.rst Doc/whatsnew/3.2.rst Lib/smtplib.py Lib/test/test_s

2010-11-08 Thread Éric Araujo
Author: r.david.murray New Revision: 86327 Log: #10321: Add support for sending binary DATA and Message objects to smtplib Modified: python/branches/py3k/Doc/includes/email-mime.py == # Send the email via our

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread exarkun
On 09:57 pm, br...@python.org wrote: On Mon, Nov 8, 2010 at 13:45, exar...@twistedmatrix.com wrote: On 09:25 pm, br...@python.org wrote: On Mon, Nov 8, 2010 at 13:03, �exar...@twistedmatrix.com wrote: On 07:58 pm, br...@python.org wrote: I don't think a strict don't remove without

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Terry Reedy
On 11/8/2010 4:36 PM, Ron Adam wrote: My understanding is that anything with an actual docstring is part of the public API. Any thing with a leading underscore is private. When the trace module was written, the rule seems to have been more like: docs (but no docstrings) for public API,

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Terry Reedy
On 11/8/2010 2:58 PM, Brett Cannon wrote: I think we need to, as a group, decide how to handle undocumented APIs that don't have a leading underscore: they get treated just the same as the documented APIs, or are they private regardless and thus we can change them at our whim? How about in

Re: [Python-Dev] Continuing 2.x

2010-11-08 Thread Lennart Regebro
2010/11/8 James Y Knight f...@fuhm.net: On Nov 8, 2010, at 4:42 AM, Lennart Regebro wrote: Except for making releases that start backporting Python 3 features and breaking backwards compatibility gradually (which may or may not be a good idea) I don't see the point. There isn't much to do when

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Bobby Impollonia
On Mon, Nov 8, 2010 at 2:07 PM, Raymond Hettinger raymond.hettin...@gmail.com wrote: On Nov 8, 2010, at 11:58 AM, Brett Cannon wrote: I think we need to, as a group, decide how to handle undocumented APIs that don't have a leading underscore: they get treated just the same as the documented

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Glyph Lefkowitz
On Nov 8, 2010, at 2:35 PM, exar...@twistedmatrix.com wrote: On 09:57 pm, br...@python.org wrote: On Mon, Nov 8, 2010 at 13:45, exar...@twistedmatrix.com wrote: On 09:25 pm, br...@python.org wrote: On Mon, Nov 8, 2010 at 13:03, exar...@twistedmatrix.com wrote: On 07:58 pm,

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Ron Adam
On 11/08/2010 04:01 PM, Brett Cannon wrote: My understanding is that anything with an actual docstring is part of the public API. Any thing with a leading underscore is private. That's a bad rule. Why shouldn't I be able to document something that is not meant for the public so that fellow

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Guido van Rossum
On Mon, Nov 8, 2010 at 3:26 PM, Bobby Impollonia bob...@gmail.com wrote: On Mon, Nov 8, 2010 at 2:07 PM, Raymond Hettinger raymond.hettin...@gmail.com wrote: On Nov 8, 2010, at 11:58 AM, Brett Cannon wrote: I think we need to, as a group, decide how to handle undocumented APIs that don't

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Ben Finney
Bobby Impollonia bob...@gmail.com writes: On Mon, Nov 8, 2010 at 2:07 PM, Raymond Hettinger raymond.hettin...@gmail.com wrote: To start with, it doesn't hurt for a maintainer to add an __all__ entry and to only document the parts of the API we think need to be exposed.  That way, we can

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Ben Finney
Ron Adam r...@ronadam.com writes: def _publicly_documented_private_api(): Not sure why you would want to do this instead of using comments. ... Because the docstring is available at the interpreter via ‘help()’, and because it's automatically available to ‘doctest’,

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Guido van Rossum
On Mon, Nov 8, 2010 at 3:55 PM, Glyph Lefkowitz gl...@twistedmatrix.com wrote: This seems like a pretty clear case of practicality beats purity.  Not only has nobody complained about deprecatedModuleAttribute, but there are tons of things which show up in sys.modules that aren't modules in

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

2010-11-08 Thread Ron Adam
On 11/08/2010 05:44 AM, Nick Coghlan wrote: All, I was about to commit the patch for issue 2001 (the improvements to the pydoc web server and the removal of the Tk GUI) when I realised that pydoc.serve() and pydoc.gui() are technically public standard library APIs (albeit undocumented ones).

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Brett Cannon
On Mon, Nov 8, 2010 at 16:10, Ron Adam r...@ronadam.com wrote: On 11/08/2010 04:01 PM, Brett Cannon wrote: My understanding is that anything with an actual docstring is part of the public API.  Any thing with a leading underscore is private. That's a bad rule. Why shouldn't I be able to

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Guido van Rossum
On Mon, Nov 8, 2010 at 4:46 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: Ron Adam r...@ronadam.com writes: def _publicly_documented_private_api():      Not sure why you would want to do this          instead of using comments.         ... Because the docstring is available at the

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Toshio Kuratomi
On Tue, Nov 09, 2010 at 11:46:59AM +1100, Ben Finney wrote: Ron Adam r...@ronadam.com writes: def _publicly_documented_private_api(): Not sure why you would want to do this instead of using comments. ... Because the docstring is available at the interpreter

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

2010-11-08 Thread Victor Stinner
On Monday 08 November 2010 13:23:33 Jeroen Ruigrok van der Werven wrote: The POSIX semaphore support is not enabled by default in FreeBSD 7, so I added loader.conf stuff to load them (as part of issue7272). It is enabled by default on FreeBSD 8 at least. Ok, but I suppose that many users use

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread exarkun
On 12:50 am, gu...@python.org wrote: On Mon, Nov 8, 2010 at 3:55 PM, Glyph Lefkowitz gl...@twistedmatrix.com wrote: This seems like a pretty clear case of practicality beats purity. Not only has nobody complained about deprecatedModuleAttribute, but there are tons of things which show up in

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread R. David Murray
On Mon, 08 Nov 2010 18:10:17 -0600, Ron Adam r...@ronadam.com 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-08 Thread Alexander Belopolsky
On Mon, Nov 8, 2010 at 2:58 PM, Brett Cannon br...@python.org wrote: .. But that doesn't mean we can't go through, fix up our names, and deprecate the old public names; that's fair game in my book. +1 See http://bugs.python.org/issue10371 ___

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

2010-11-08 Thread Nick Coghlan
On Tue, Nov 9, 2010 at 11:18 AM, Ron Adam r...@ronadam.com wrote: What do you think about adding a new _pydoc3.py module along with a pydoc3.py loader module with a basic user api.  The number 3, so that it match's python3.x. We can then keep the old pydoc.py unchanged and be free to make a

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Ron Adam
On 11/08/2010 07:18 PM, Brett Cannon wrote: On Mon, Nov 8, 2010 at 16:10, Ron Adamr...@ronadam.com wrote: def _private_api(): # # Isn't it a good practice to use comments here? # ... That is ugly. I already hate doing that for unittest, I'm not about to champion that for

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Nick Coghlan
On Tue, Nov 9, 2010 at 1:28 PM, Alexander Belopolsky belopol...@users.sourceforge.net wrote: On Mon, Nov 8, 2010 at 2:58 PM, Brett Cannon br...@python.org wrote: .. But that doesn't mean we can't go through, fix up our names, and deprecate the old public names; that's fair game in my book.

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

2010-11-08 Thread Ron Adam
On 11/08/2010 10:26 PM, Nick Coghlan wrote: On Tue, Nov 9, 2010 at 11:18 AM, Ron Adamr...@ronadam.com wrote: What do you think about adding a new _pydoc3.py module along with a pydoc3.py loader module with a basic user api. The number 3, so that it match's python3.x. We can then keep the

Re: [Python-Dev] Breaking undocumented API

2010-11-08 Thread Eli Bendersky
On Tue, Nov 9, 2010 at 04:07, R. David Murray rdmur...@bitdance.com wrote: On Mon, 08 Nov 2010 18:10:17 -0600, Ron Adam r...@ronadam.com wrote: def _private_api(): # # Isn't it a good practice to use comments here? # ... IMO, no. FWIW, I agree completely.