Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-03 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 3, 2007, at 12:41 PM, Stephen J. Turnbull wrote: > Barry Warsaw writes: > >> IMO, this is a problem. We can make the Python extraction tool work, >> but we should still be very careful about breaking 3rd party tools >> like xgettext, since oth

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-03 Thread Stephen J. Turnbull
Michael Sparks writes: > We generate our component documentation based on going through the AST > generated by compiler.ast, finding doc strings (and other strings in > other known/expected locations), and then formatting using docutils. Are you talking about I18N and gettext? If so, I'm real

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-03 Thread Michael Sparks
On Thursday 03 May 2007 15:40, Stephen J. Turnbull wrote: > Teaching Python-based extraction tools about it isn't hard, just make > sure that you slurp in the whole argument, and eval it. We generate our component documentation based on going through the AST generated by compiler.ast, finding doc

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-03 Thread Stephen J. Turnbull
Barry Warsaw writes: > IMO, this is a problem. We can make the Python extraction tool work, > but we should still be very careful about breaking 3rd party tools > like xgettext, since other projects may be using such tools. But _("some string" + " and more of it") is a

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-03 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 3, 2007, at 10:40 AM, Stephen J. Turnbull wrote: > Barry Warsaw writes: > >> The problem is that >> >> _("some string" >>" and more of it") >> >> is not the same as >> >> _("some string" + >>" and more of it") > > Are

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-03 Thread Stephen J. Turnbull
Barry Warsaw writes: > The problem is that > > _("some string" >" and more of it") > > is not the same as > > _("some string" + >" and more of it") Are you worried about translators? The gettext functions themselves will just see the result of the operation.

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-02 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On May 2, 2007, at 2:51 PM, Phillip J. Eby wrote: > At 10:34 AM 5/2/2007 -0700, Trent Mick wrote: >> But if you don't want the EOLs? Example from some code of mine: >> >> raise MakeError("extracting '%s' in '%s' did not create the " >>

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-05-02 Thread Phillip J. Eby
At 10:34 AM 5/2/2007 -0700, Trent Mick wrote: >But if you don't want the EOLs? Example from some code of mine: > > raise MakeError("extracting '%s' in '%s' did not create the " > "directory that the Python build will expect: " > "'%s'" % (src_pkg, dst_

Re: [Python-Dev] [Python-3000] PEP 30XZ: Simplified Parsing

2007-04-30 Thread Eric V. Smith
Jim Jewett wrote: > Rationale for Removing Implicit String Concatenation > > Implicit String concatentation can lead to confusing, or even > silent, errors. [1] > > def f(arg1, arg2=None): pass > > f("abc" "def") # forgot the comma, no warning ... >