[Python-3000] 2to3: update? doc?

Guido van Rossum guido at python.org
Mon Jun 30 17:32:46 CEST 2008


Methinks that from this evidence it is clear that on 05/09/2008  at
05:07 PM you used 2to3 with Python alpha 4. The pickle is left behind
as an optimization by 2to3's own parser. It will be ignored when you
use it with a different Python version. It is correct that Grammar.txt
hasn't changed since April -- this is expected (the grammar changes
only when the grammar of the input language changes, and we haven't
changed that in a long time).

--Guido

On Sun, Jun 29, 2008 at 3:01 PM, Terry Reedy <tjreedy at udel.edu> wrote:
>
>
> Martin v. Löwis wrote:
>>
>> Terry Reedy wrote:
>>>
>>> WinXP 3.0
>
> specifically .0b1
>>>
>>> lib2to3 has grammar3.0.0.alpha.4.pickle
>>
>> What do you mean by "has"?
>
> The standard sense of 'directory has file'
>
> Directory of C:\Program Files\Python30\Lib\lib2to3
>
> 06/19/2008  10:57 PM    <DIR>          .
> 06/19/2008  10:57 PM    <DIR>          ..
> 06/19/2008  01:03 PM             6,589 fixer_base.py
> 06/19/2008  01:03 PM            12,518 fixer_util.py
> 06/19/2008  10:57 PM    <DIR>          fixes
> 04/02/2008  12:53 PM             6,418 Grammar.txt
> 05/09/2008  05:07 PM            20,187 Grammar3.0.0.alpha.4.pickle
> 04/02/2008  12:53 PM             6,714 patcomp.py
> 04/02/2008  12:53 PM               821 PatternGrammar.txt
> 06/19/2008  10:57 PM    <DIR>          pgen2
> 04/02/2008  12:53 PM             1,017 pygram.py
> 05/08/2008  09:07 AM            25,573 pytree.py
> 06/19/2008  01:03 PM            22,345 refactor.py
> 06/19/2008  10:57 PM    <DIR>          tests
> 06/19/2008  01:03 PM                 8 __init__.py
>              10 File(s)        102,190 bytes
>
>> What did you do,
>
> Nothing relevant
>
>> what did you expect to happen instead?
>
> To see Grammar3.0.0.beta.1.pickle or nothing like that at all.
>
>> The MSI file should have installed no .pickle files whatsoever.
>
> Well, there it is, timestamped early May ;-)
>
>>> was nothing updated for the beta?
>>> or did grammar3.0.0.beta.a.pickle only make 2.6b1?
>>>
>>> I cannot find any doc in the libref (it would belong, I believe, in
>>> Development Tools).  Intentional? Not done yet?
>>
>> Why would you think this file deserves any mentioning in the
>> documentation at all?
>
> 'Doc' refers to documentation for (lib)2to3 (see subject line), not the
> surprising g...pickle.  I expected mention of the former because
>
> 1. All other modules and packages in Lib seem to be in the Lib. Ref..
> 2. 2to3 is for developer-users as well as core developers.
> 3. The lib2to3/refactor.py doc string says it is meant to be used.
>
> tjr
>
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe:
> http://mail.python.org/mailman/options/python-3000/guido%40python.org
>



-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list