Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Nick Coghlan
On Sun, Apr 3, 2011 at 3:42 PM, Eugene Toder elto...@gmail.com wrote: If it's do-able, your option 2 is probably the way to go. Out of the box, it may just need to raise an exception if asked to down-convert code that uses new constructs that can't readily be expressed using the old AST (I'm

Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Martin v. Löwis
1. Do nothing. This will break code that currently uses AST, but doesn't add any complexity to cpython. I'm in favor of this approach as well. Notice that there is ast.__version__ precisely so that applications can support multiple AST versions. Regards, Martin

Re: [Python-Dev] Unicode module names (Was: Python 3.3 release schedule posted)

2011-04-03 Thread Victor Stinner
Le samedi 02 avril 2011 à 16:06 +0300, anatoly techtonik a écrit : On Thu, Mar 24, 2011 at 2:41 AM, Victor Stinner victor.stin...@haypocalc.com wrote: I am still working on the import machinery to fix last bugs related to Unicode. So it will be possible to do an useless import café in

Re: [Python-Dev] Python 3.3 release schedule posted

2011-04-03 Thread Victor Stinner
Le samedi 02 avril 2011 à 16:00 +0300, anatoly techtonik a écrit : Do you have an estimate of Python 3.2.1 release? FYI I introduced (and then fixed) two regressions specific to Windows in Python 3.2: http://bugs.python.org/issue11272 (input) http://bugs.python.org/issue11395 (print) Issue

Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Paul Moore
On 3 April 2011 07:55, Martin v. Löwis mar...@v.loewis.de wrote: 1. Do nothing. This will break code that currently uses AST, but doesn't add any complexity to cpython. I'm in favor of this approach as well. Notice that there is ast.__version__ precisely so that applications can support

Re: [Python-Dev] [Python-checkins] cpython: Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept

2011-04-03 Thread Éric Araujo
Hi, changeset: 69112:2cb07a46f4b5 user:Antoine Pitrou solip...@pitrou.net date:Sun Apr 03 17:05:46 2011 +0200 summary: Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept file-like objects using a new `fileobj` constructor argument. Patch by Nadeem

Re: [Python-Dev] Please revert autofolding of tracker edit form

2011-04-03 Thread Dj Gilcrease
How about something like http://andurin.com/python-issue-tracker/issue5863.htm but with proper click to expand js not css hover expansion since the pure css solution gets a little jumpy. Dj Gilcrease   ( |     \  o    ()   |  o  |`|   |      |      /`\_/|      | |   ,__   ,_,   ,_,   __,    ,

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 - default): Merge fix for issue #11746

2011-04-03 Thread Eric Smith
On 4/3/2011 12:20 PM, antoine.pitrou wrote: http://hg.python.org/cpython/rev/c11e05a60d36 changeset: 69115:c11e05a60d36 parent: 69113:ff105faf1bac parent: 69114:88ed3de28520 user:Antoine Pitrou solip...@pitrou.net date:Sun Apr 03 18:16:50 2011 +0200 summary:

Re: [Python-Dev] [Python-checkins] cpython: Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept

2011-04-03 Thread Antoine Pitrou
On Sun, 03 Apr 2011 18:55:33 +0200 Éric Araujo mer...@netwok.org wrote: Hi, changeset: 69112:2cb07a46f4b5 user:Antoine Pitrou solip...@pitrou.net date:Sun Apr 03 17:05:46 2011 +0200 summary: Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 - default): Merge fix for issue #11746

2011-04-03 Thread Antoine Pitrou
On Sun, 03 Apr 2011 13:29:28 -0400 Eric Smith e...@trueblade.com wrote: On 4/3/2011 12:20 PM, antoine.pitrou wrote: http://hg.python.org/cpython/rev/c11e05a60d36 changeset: 69115:c11e05a60d36 parent: 69113:ff105faf1bac parent: 69114:88ed3de28520 user:Antoine Pitrou

Re: [Python-Dev] Please revert autofolding of tracker edit form

2011-04-03 Thread skip
Dj How about something like Dj http://andurin.com/python-issue-tracker/issue5863.htm but with Dj proper click to expand js not css hover expansion since the pure css Dj solution gets a little jumpy. That's part of it. Note the files list as well: bz2module-v1.diff

Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Guido van Rossum
On Sun, Apr 3, 2011 at 4:17 AM, Paul Moore p.f.mo...@gmail.com wrote: On 3 April 2011 07:55, Martin v. Löwis mar...@v.loewis.de wrote: 1. Do nothing. This will break code that currently uses AST, but doesn't add any complexity to cpython. I'm in favor of this approach as well. Notice that

Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Brett Cannon
On Sat, Apr 2, 2011 at 23:55, Martin v. Löwis mar...@v.loewis.de wrote: 1. Do nothing. This will break code that currently uses AST, but doesn't add any complexity to cpython. I'm in favor of this approach as well. Notice that there is ast.__version__ precisely so that applications can

Re: [Python-Dev] [Python-checkins] cpython: Issue #5863: Rewrite BZ2File in pure Python, and allow it to accept

2011-04-03 Thread Nadeem Vawda
On Sun, Apr 3, 2011 at 8:02 PM, Antoine Pitrou solip...@pitrou.net wrote: On Sun, 03 Apr 2011 18:55:33 +0200 Éric Araujo mer...@netwok.org wrote: I think we use Misc/ACKS for code+docs contribution like this one, Doc/ACKS.txt being used for doc-only changes.  This second file is not

Re: [Python-Dev] [Python-checkins] cpython (merge 3.2 - default): Merge fix for issue #11746

2011-04-03 Thread Martin v. Löwis
Good point. If someone knows how to generate elliptic curve keys, a patch for test_ssl.py is welcome. You can generate EC keys and certificates like this: openssl ecparam -out server.key -name secp112r2 -genkey openssl req -new -x509 -key server.key -out server.pem -subj /CN=www.test (see

[Python-Dev] Policy for versions of system python

2011-04-03 Thread Eugene Toder
Hello, CPython source code currently contains a number of python scripts (e.g Python/makeopcodetargets.py, Objects/typeslots.py, Parser/asdl_c.py) that are used during the build of the python interpreter itself. For this reason they are run with system installed python. What is the policy

Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Nick Coghlan
On Mon, Apr 4, 2011 at 5:11 AM, Guido van Rossum gu...@python.org wrote: In the mean time, until we hear differently, I'm also in favor of #1 (do nothing). I would (perhaps redundantly) say that such changes should only go into new major releases (i.e. 3.3 right now), not backported into

Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Guido van Rossum
On Sun, Apr 3, 2011 at 6:43 PM, Nick Coghlan ncogh...@gmail.com wrote: On Mon, Apr 4, 2011 at 5:11 AM, Guido van Rossum gu...@python.org wrote: In the mean time, until we hear differently, I'm also in favor of #1 (do nothing). I would (perhaps redundantly) say that such changes should only go

Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Nick Coghlan
On Mon, Apr 4, 2011 at 12:02 PM, Guido van Rossum gu...@python.org wrote: Perhaps we should add a warning to the ast module docs similar to the one we have for the dis module, and use it to explicitly remind people to check ast.__version__ before proceeding with AST manipulation? Sure, but do

Re: [Python-Dev] Policy for making changes to the AST

2011-04-03 Thread Terry Reedy
On 4/2/2011 9:55 PM, Eugene Toder wrote: Documentation for ast module does not warn about possible changes, The current boxed warning at the top of the dis doc is fairly recent. The ast doc should gain something similar. It currently does say: __version__ which is the decimal Subversion