Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Nick Coghlan
Vinay Sajip wrote: Nick Coghlan ncoghlan at gmail.com writes: I'm starting to think that a converter between the two format mini-languages may be the way to go though. fmt_braces is meant to provide a superset of the capabilites of fmt_percent, so a forward converter shouldn't be too hard.

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Vinay Sajip
Raymond Hettinger python at rcn.com writes: We should get one written. ISTM, every %-formatting string is directly translatable to an equivalent {}-formatting string. I'm not sure you can always get equivalent output from the formatting, though. For example: %0#8x % 0x1234 '0x001234'

[Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Fredrik Lundh
it's revews like this that makes me wonder if releasing open source is a good idea: no egg - worst seen ever, remove it from pypi or provide an egg (jensens, 2009-10-05, 0 points) /F ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Paul Moore
2009/10/5 Vinay Sajip vinay_sa...@yahoo.co.uk: Raymond Hettinger python at rcn.com writes: We should get one written.  ISTM, every %-formatting string is directly translatable to an equivalent {}-formatting string. I'm not sure you can always get equivalent output from the formatting, though.

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread MRAB
Vinay Sajip wrote: Raymond Hettinger python at rcn.com writes: We should get one written. ISTM, every %-formatting string is directly translatable to an equivalent {}-formatting string. I'm not sure you can always get equivalent output from the formatting, though. For example: %0#8x %

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Ben Finney
Fredrik Lundh fred...@pythonware.com writes: it's revews like this that makes me wonder if releasing open source is a good idea: no egg - worst seen ever, remove it from pypi or provide an egg (jensens, 2009-10-05, 0 points) Heh. If harsh, uninformed responses make you wonder whether

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Vinay Sajip
MRAB python at mrabarnett.plus.com writes: {0:#08x}.format(0x1234) '0x001234' Good call, but here's another case: %#o % 0x1234 '011064' I don't see how to automatically convert the %#o spec, though of course there are ways of fudging it. The obvious conversion doesn't give the same value:

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Senthil Kumaran
On Mon, Oct 05, 2009 at 10:43:22AM +0200, Fredrik Lundh wrote: it's revews like this that makes me wonder if releasing open source is a good idea: no egg - worst seen ever, remove it from pypi or provide an egg (jensens, 2009-10-05, 0 points) Greetings effbot. :) As you might already

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Fredrik Lundh
Oh, it was just yet another Zope developer behaving like an ass. Why am I not surprised? /F On Mon, Oct 5, 2009 at 10:43 AM, Fredrik Lundh fred...@pythonware.com wrote: it's reviews like this that makes me wonder if releasing open source is a good idea:   no egg - worst seen ever, remove it

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Nick Coghlan
Martin v. Löwis wrote: That doesn't mean we have to have a transition plan *now*. Creating one after Python 3.5 is released (i.e. in 2015 or so) might be sufficient. To create a transition plan, you first need *consensus* that you actually do want to transition. I don't think such consensus

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Fred Drake
On Mon, Oct 5, 2009 at 4:58 AM, Fredrik Lundh fred...@pythonware.com wrote: Oh, it was just yet another Zope developer behaving like an ass.  Why am I not surprised? Actually, most of us Zope developers prefer sdist packages, not eggs. -Fred -- Fred L. Drake, Jr.fdrake at gmail.com

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Nick Coghlan
Fredrik Lundh wrote: Oh, it was just yet another Zope developer behaving like an ass. Why am I not surprised? Tarring an entire community for the actions of one twit is more than a little unfair. It's fine that you don't like eggs and it's fine that you don't want to provide them. There's a

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Christian Heimes
Fredrik Lundh wrote: Oh, it was just yet another Zope developer behaving like an ass. Why am I not surprised? /F On Mon, Oct 5, 2009 at 10:43 AM, Fredrik Lundh fred...@pythonware.com wrote: it's reviews like this that makes me wonder if releasing open source is a good idea: no egg -

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Fredrik Lundh
He's not the first one from the Zope community (whatever that is) that's behaved this way on this specific topic. The problem here is that a certain (marginal) user community decides to standardize on a certain distribution model, and then goes off attacking people who've released stuff *before*

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Jens W. Klein
Am Montag, den 05.10.2009, 13:07 +0200 schrieb Christian Heimes: Fredrik Lundh wrote: Oh, it was just yet another Zope developer behaving like an ass. Why am I not surprised? /F On Mon, Oct 5, 2009 at 10:43 AM, Fredrik Lundh fred...@pythonware.com wrote: it's reviews like this

[Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Ned Deily
There has been some discussion on the distutils-sig list over the past few days about a change to distutils released with 2.6.3 which inadvertently causes a number (all?) packages with C extensions that use setuptools/easy_install to fail during builds/installs with a rather cryptic error

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 2:06 PM, Ned Deily n...@acm.org wrote: Assuming that distutils is not changed in a forthcoming 2.6.4 Since the changes made in Distutils were bug fixes that kept all public API backward compatible, I don't see why this should be changed. Setuptools development has been

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread M.-A. Lemburg
Tarek Ziadé wrote: I'm not proposing to debate the merits of all of the options here. However, if a 2.6.4 release is to be pushed out quickly for other reasons, a one-time window of opportunity would be available and it would be prudent to at least consider the possibility of a distutils fix.

Re: [Python-Dev] [New-bugs-announce] [issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread skip
Ned Due to a change in distutils released with Python 2.6.3, packages Ned that use setuptools (version 0.6c9, as of this writing), or the Ned easy_install command, to build C extension modules fail ... ... Ned Among the packages known to be affected include lxml, Ned

Re: [Python-Dev] [New-bugs-announce] [issue7064] Python 2.6.3 / setuptools 0.6c9: extension module builds fail with KeyError

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 2:50 PM, s...@pobox.com wrote:    Ned Due to a change in distutils released with Python 2.6.3, packages    Ned that use setuptools (version 0.6c9, as of this writing), or the    Ned easy_install command, to build C extension modules fail ...    ...    Ned Among the

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Jesse Noller
On Mon, Oct 5, 2009 at 4:43 AM, Fredrik Lundh fred...@pythonware.com wrote: it's revews like this that makes me wonder if releasing open source is a good idea:   no egg - worst seen ever, remove it from pypi or provide an egg (jensens, 2009-10-05, 0 points) /F Unfortunately; we're now

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Barry Warsaw
On Oct 5, 2009, at 8:22 AM, Tarek Ziadé wrote: I'm not proposing to debate the merits of all of the options here. However, if a 2.6.4 release is to be pushed out quickly for other reasons, a one-time window of opportunity would be available and it would be prudent to at least consider the

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Olemis Lang
On Mon, Oct 5, 2009 at 6:26 AM, Jens W. Klein j...@bluedynamics.com wrote: Am Montag, den 05.10.2009, 13:07 +0200 schrieb Christian Heimes: Fredrik Lundh wrote: Oh, it was just yet another Zope developer behaving like an ass.  Why am I not surprised? On Mon, Oct 5, 2009 at 10:43 AM,

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 3:32 PM, Barry Warsaw ba...@python.org wrote: On Oct 5, 2009, at 8:22 AM, Tarek Ziadé wrote: I'm not proposing to debate the merits of all of the options here. However, if a 2.6.4 release is to be pushed out quickly for other reasons,  a one-time window of opportunity

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread M.-A. Lemburg
Tarek Ziadé wrote: Now I am astonished that we are talking about reverting changes in Distutils that were done for bugfixes, for a third party package that does monkey patches on Distutils. If this choice wins here, it means that setuptools and the stdlib are tied together, and that the

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Barry Warsaw
On Oct 5, 2009, at 10:17 AM, Tarek Ziadé wrote: If setuptools can be made to work with Python 2.6.3 /and/ earlier versions of Python 2.6.x, then it should be patched and an update released. If not, then perhaps we should revert the change in a quick Python 2.6.4. It's technically

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread M.-A. Lemburg
M.-A. Lemburg wrote: Tarek Ziadé wrote: Now I am astonished that we are talking about reverting changes in Distutils that were done for bugfixes, for a third party package that does monkey patches on Distutils. If this choice wins here, it means that setuptools and the stdlib are tied

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread skip
Tarek That's why we have forked and created Distribute, to provide bug Tarek fixes. I suspect you might need to publicize this a bit better. The first I heard of Distribute or non-responsiveness of PJE regarding setuptools was this thread. (I don't read comp.lang.python anymore. I do

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Daniel Stutzbach
On Mon, Oct 5, 2009 at 9:32 AM, Barry Warsaw ba...@python.org wrote: If, as I hope, the answer to that is yes, then I strongly support releasing a fixed setuptools instead of reverting the change to Python. How do your propose to get the author of setuptools to release a new version? --

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 4:32 PM, Barry Warsaw ba...@python.org wrote: On Oct 5, 2009, at 10:17 AM, Tarek Ziadé wrote: If setuptools can be made to work with Python 2.6.3 /and/ earlier versions of Python 2.6.x, then it should be patched and an update released.  If not, then perhaps we should

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 4:27 PM, M.-A. Lemburg m...@egenix.com wrote: Tarek Ziadé wrote: Now I am astonished that we are talking about reverting changes in Distutils that were done for bugfixes, for a third party package that does monkey patches on Distutils. If this choice wins here, it

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 4:40 PM, s...@pobox.com wrote:    Tarek That's why we have forked and created Distribute, to provide bug    Tarek fixes. I suspect you might need to publicize this a bit better.  The first I heard of Distribute or non-responsiveness of PJE regarding setuptools was

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread M.-A. Lemburg
Senthil Kumaran wrote: On Mon, Oct 05, 2009 at 10:43:22AM +0200, Fredrik Lundh wrote: it's revews like this that makes me wonder if releasing open source is a good idea: no egg - worst seen ever, remove it from pypi or provide an egg (jensens, 2009-10-05, 0 points) Greetings effbot. :)

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread M.-A. Lemburg
Tarek Ziadé wrote: On Mon, Oct 5, 2009 at 4:27 PM, M.-A. Lemburg m...@egenix.com wrote: Tarek Ziadé wrote: Now I am astonished that we are talking about reverting changes in Distutils that were done for bugfixes, for a third party package that does monkey patches on Distutils. If this

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Guido van Rossum
\ I hate calling methods on string literals, I think it looks very odd to have code like this:   Displaying {0} of {1} revisions.format(x, y) Ugh!  Good point. This objection was made years ago when we introduced separator.join(list_of_things), and I don't think ignoring it has caused any

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 5:26 PM, M.-A. Lemburg m...@egenix.com wrote: Tarek Ziadé wrote: On Mon, Oct 5, 2009 at 4:27 PM, M.-A. Lemburg m...@egenix.com wrote: Tarek Ziadé wrote: Now I am astonished that we are talking about reverting changes in Distutils that were done for bugfixes, for a third

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Barry Warsaw
On Oct 5, 2009, at 10:50 AM, Tarek Ziadé wrote: If, as I hope, the answer to that is yes, then I strongly support releasing a fixed setuptools instead of reverting the change to Python. Yes it does. Excellent, thanks. The fix makes sure build_ext.get_ext_filename still works as it is

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Barry Warsaw
On Oct 5, 2009, at 10:50 AM, Daniel Stutzbach wrote: On Mon, Oct 5, 2009 at 9:32 AM, Barry Warsaw ba...@python.org wrote: If, as I hope, the answer to that is yes, then I strongly support releasing a fixed setuptools instead of reverting the change to Python. How do your propose to get

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Georg Brandl
Jesse Noller schrieb: On Mon, Oct 5, 2009 at 4:43 AM, Fredrik Lundh fred...@pythonware.com wrote: it's revews like this that makes me wonder if releasing open source is a good idea: no egg - worst seen ever, remove it from pypi or provide an egg (jensens, 2009-10-05, 0 points) /F

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Jeroen Ruigrok van der Werven
-On [20091005 17:45], Barry Warsaw (ba...@python.org) wrote: 2) PJE releases a new version of setuptools that fixes this problem. Will all due respect to PJE, but I sincerely doubt this will happen. There's still a bunch of outstanding patches over at the setuptools tracker, including SVN 1.x

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread skip
Tarek No you didn't miss it. That's probably my fault because the only Tarek places I publicize about it are my blog (indexed in planet Tarek python) and the distutils-SIG. Bloggers beware!!! Not everyone reads blogs. (I don't unless someone calls my attention to something of

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Antoine Pitrou
Hello, Now I am astonished that we are talking about reverting changes in Distutils that were done for bugfixes, for a third party package that does monkey patches on Distutils. I think we should avoid any questions of responsability here (besides, it is quite clear that you, Tarek, are not

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 6:44 PM, Antoine Pitrou solip...@pitrou.net wrote: The only question is, given that 2.6.x is supposed to be a bug-fix branch, do we want to fix that incompatibility with a widely deployed existing piece of software? Whether or not the incompatibility is legitimate

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Stephen J. Turnbull
Tarek Ziadé writes: Maybe I should blog a summary of the situation and post it to python annoucement as well. Please don't. It's unlikely to do anything except incite a lot of flames. ___ Python-Dev mailing list Python-Dev@python.org

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread M.-A. Lemburg
Tarek Ziadé wrote: On Mon, Oct 5, 2009 at 6:44 PM, Antoine Pitrou solip...@pitrou.net wrote: The only question is, given that 2.6.x is supposed to be a bug-fix branch, do we want to fix that incompatibility with a widely deployed existing piece of software? Whether or not the

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Tarek Ziadé
On Mon, Oct 5, 2009 at 7:06 PM, M.-A. Lemburg m...@egenix.com wrote: Tarek Ziadé wrote: On Mon, Oct 5, 2009 at 6:44 PM, Antoine Pitrou solip...@pitrou.net wrote: The only question is, given that 2.6.x is supposed to be a bug-fix branch, do we want to fix that incompatibility with a widely

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Jesse Noller
On Mon, Oct 5, 2009 at 12:00 PM, Georg Brandl g.bra...@gmx.net wrote: Jesse Noller schrieb: On Mon, Oct 5, 2009 at 4:43 AM, Fredrik Lundh fred...@pythonware.com wrote: it's revews like this that makes me wonder if releasing open source is a good idea:   no egg - worst seen ever, remove it

Re: [Python-Dev] please consider changing --enable-unicode default to ucs4

2009-10-05 Thread Jan Matejek
Dne 20.9.2009 18:42, Antoine Pitrou napsal(a): Le Sun, 20 Sep 2009 10:33:23 -0600, Zooko O'Whielacronx a écrit : By the way, I was investigating this, and discovered an issue on the Mandriva tracker which suggests that they intend to switch to UCS4 in the next release in order to avoid

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Guido van Rossum
On Mon, Oct 5, 2009 at 10:38 AM, Jesse Noller jnol...@gmail.com wrote: On Mon, Oct 5, 2009 at 12:00 PM, Georg Brandl g.bra...@gmx.net wrote: Jesse Noller schrieb: On Mon, Oct 5, 2009 at 4:43 AM, Fredrik Lundh fred...@pythonware.com wrote: it's revews like this that makes me wonder if

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Fred Drake
On Mon, Oct 5, 2009 at 1:54 PM, Guido van Rossum gu...@python.org wrote: User ratings and comments are the future for app store style sites such as PyPI Interestingly, I consider sites like PyPI as developer resources rather than the more end-user-centric App Store sites. While I don't

[Python-Dev] % to .format() converter

2009-10-05 Thread Benjamin Peterson
Interested in the recent threads about % and str.format(), I wrote a little Python 3 script that converts % format strings to format strings compatible with str.format(). I invite you to try it out. The code is at https://code.launchpad.net/~gutworth/+junk/mod2format (That means you can do bzr

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Doug Hellmann
On Oct 5, 2009, at 4:59 AM, Ben Finney wrote: Fredrik Lundh fred...@pythonware.com writes: it's revews like this that makes me wonder if releasing open source is a good idea: no egg - worst seen ever, remove it from pypi or provide an egg (jensens, 2009-10-05, 0 points) Heh. If harsh,

Re: [Python-Dev] please consider changing --enable-unicode default to ucs4

2009-10-05 Thread Antoine Pitrou
Le lundi 05 octobre 2009 à 19:18 +0200, Jan Matejek a écrit : I don't see what is bad about improving compatibility in a place where the setting doesn't hurt one way or the other. I can't speak for Mandriva, but I'm sure they care more about not breaking user installs when they upgrade to

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Jesse Noller
On Mon, Oct 5, 2009 at 1:54 PM, Guido van Rossum gu...@python.org wrote: On Mon, Oct 5, 2009 at 10:38 AM, Jesse Noller jnol...@gmail.com wrote: On Mon, Oct 5, 2009 at 12:00 PM, Georg Brandl g.bra...@gmx.net wrote: Jesse Noller schrieb: On Mon, Oct 5, 2009 at 4:43 AM, Fredrik Lundh

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Olemis Lang
On Mon, Oct 5, 2009 at 1:21 PM, Jesse Noller jnol...@gmail.com wrote: On Mon, Oct 5, 2009 at 1:54 PM, Guido van Rossum gu...@python.org wrote: [...] User ratings and comments are the future for app store style sites such as PyPI, and spam unfortunately comes with the terrain. There are

[Python-Dev] PIL vs. Imaging (was Re: eggs now mandatory for pypi?)

2009-10-05 Thread P.J. Eby
At 01:26 PM 10/5/2009 +0200, Jens W. Klein wrote: And as far as I understand PIL is not the problem, but the packaging/ setuptools. For the records: PIL is a great piece of software and I dont want to miss it. Actually, the problem is that the package is called PIL in Pypi, but the actual

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread P.J. Eby
At 02:22 PM 10/5/2009 +0200, Tarek Ziadé wrote: Setuptools development has been discontinued for a year, and does patches on Distutils code. Some of these patches are sensitive to any change made on Distutils, wether those changes are internal or not. Setuptools is also not the only thing out

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread P.J. Eby
At 04:17 PM 10/5/2009 +0200, Tarek Ziadé wrote: Now I am astonished that we are talking about reverting changes in Distutils that were done for bugfixes, for a third party package that does monkey patches on Distutils. Subclassing is not monkeypatching, so if you consider the above to be a

Re: [Python-Dev] PIL vs. Imaging (was Re: eggs now mandatory for pypi?)

2009-10-05 Thread Fredrik Lundh
On Mon, Oct 5, 2009 at 8:48 PM, P.J. Eby p...@telecommunity.com wrote: names for the same thing.  (I'm guessing that PIL was registered on PyPI manually, before the setup.py register command existed.  Heck, it was probably being distributed before the distutils even existed, and indeed before

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Brett Cannon
On Mon, Oct 5, 2009 at 08:44, Barry Warsaw ba...@python.org wrote: On Oct 5, 2009, at 10:50 AM, Tarek Ziadé wrote: If, as I hope, the answer to that is yes, then I strongly support releasing a fixed setuptools instead of reverting the change to Python. Yes it does. Excellent, thanks.

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Michael Foord
Brett Cannon wrote: On Mon, Oct 5, 2009 at 08:44, Barry Warsaw ba...@python.org mailto:ba...@python.org wrote: On Oct 5, 2009, at 10:50 AM, Tarek Ziadé wrote: If, as I hope, the answer to that is yes, then I strongly support releasing a fixed

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Nick Coghlan
Doug Hellmann wrote: On Oct 5, 2009, at 4:59 AM, Ben Finney wrote: If you *want* to respond, you can politely direct them to URL:http://docs.python.org/install/ where they can learn how to install Python distributions — no mention of eggs at all. Package owners are not allowed to comment on

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Nick Coghlan
Fred Drake wrote: On Mon, Oct 5, 2009 at 1:54 PM, Guido van Rossum gu...@python.org wrote: User ratings and comments are the future for app store style sites such as PyPI Interestingly, I consider sites like PyPI as developer resources rather than the more end-user-centric App Store sites.

Re: [Python-Dev] summary of transitioning from % to {} formatting

2009-10-05 Thread Nick Coghlan
Barry Warsaw wrote: On Oct 4, 2009, at 4:11 AM, Nick Coghlan wrote: Barry Warsaw wrote: I also don't think this is a case of anti-TOOWTDI. For most situations {}-strings are great (IMO), but in the specific translation domain, I suspect $-strings are still better. I agree that keeping

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread James Y Knight
On Oct 5, 2009, at 2:21 PM, Brett Cannon wrote: I should also mention this bug was not unknown. I discovered it after Distribute 0.6 was released as I always run cutting edge interpreters. Never bothered to report it until Distribute 0.6.1 was released which Tarek fixed in less than a week.

Re: [Python-Dev] summary of transitioning from % to {} formatting

2009-10-05 Thread Barry Warsaw
On Oct 5, 2009, at 4:41 PM, Nick Coghlan wrote: Oh, I see what you meant now - you were pointing out that lazy formatting APIs (such as logging) already don't work properly for alternative formatting mechanisms (such as string.Template). Yep. (Although printing to a String IO doesn't seem

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Fred Drake
On Mon, Oct 5, 2009 at 4:24 PM, Nick Coghlan ncogh...@gmail.com wrote: When it comes to comments and recommendations for selecting software packages, developers *are* the end users :) Yes, most certainly. But developers as consumers are very different from application users as consumers, which

Re: [Python-Dev] Package install failures in 2.6.3

2009-10-05 Thread Martin v. Löwis
My question was less about the political aspects than the technical aspects. I gather you're saying that the fix to setuptools will make it work in 2.6.3 without inadvertently breaking it for 2.6.2, 2.6.1, and 2.6.0, right? Have you tried the fix in those older versions to be sure? If, as

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Olemis Lang
On Mon, Oct 5, 2009 at 4:06 PM, Fred Drake fdr...@gmail.com wrote: On Mon, Oct 5, 2009 at 4:24 PM, Nick Coghlan ncogh...@gmail.com wrote: When it comes to comments and recommendations for selecting software packages, developers *are* the end users :) Yes, most certainly.  But developers as

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Olemis Lang
On Mon, Oct 5, 2009 at 4:23 PM, Olemis Lang ole...@gmail.com wrote: On Mon, Oct 5, 2009 at 4:06 PM, Fred Drake fdr...@gmail.com wrote: On Mon, Oct 5, 2009 at 4:24 PM, Nick Coghlan ncogh...@gmail.com wrote: When it comes to comments and recommendations for selecting software packages,

Re: [Python-Dev] summary of transitioning from % to { } formatting

2009-10-05 Thread Vinay Sajip
Nick Coghlan ncoghlan at gmail.com writes: Oh, I see what you meant now - you were pointing out that lazy formatting APIs (such as logging) already don't work properly for alternative formatting mechanisms (such as string.Template). Logging doesn't work automatically with string.Template as

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Benjamin Peterson
2009/10/4 INADA Naoki songofaca...@gmail.com: -1 That requires keeping formatting information around in every string instance. Adding new format_string class avoids it.  unicode(foo) = ufoo  format_string(foo) = ffoo This way's pros: * Many libraries can use one transition way. *

Re: [Python-Dev] eggs now mandatory for pypi?

2009-10-05 Thread Martin v. Löwis
* Moderation [...] * Flagging as spam * Captcha ? In the specific case, neither would have helped. a) the user making the comment that the package author felt to be impolite was a real user, with an established, well-known identity, and long-time member of the community (IIUC). That didn't

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Benjamin Peterson
2009/10/5 Nick Coghlan ncogh...@gmail.com: So I would agree that method invocation on literals (particularly string literals) is an already established language idiom. And who hasn't ever used 4.56.as_integer_ratio()? :) -- Regards, Benjamin ___

Re: [Python-Dev] transitioning from % to {} formatting

2009-10-05 Thread Michael Foord
Benjamin Peterson wrote: 2009/10/5 Nick Coghlan ncogh...@gmail.com: So I would agree that method invocation on literals (particularly string literals) is an already established language idiom. And who hasn't ever used 4.56.as_integer_ratio()? :) I've tried 4.__add__ a few times

Re: [Python-Dev] summary of transitioning from % to {} formatting

2009-10-05 Thread Nick Coghlan
Barry Warsaw wrote: I also don't think this is a case of anti-TOOWTDI. For most situations {}-strings are great (IMO), but in the specific translation domain, I suspect $-strings are still better. I agree that keeping string.Template around is valid due to its focus on being very simple to

Re: [Python-Dev] PEP 389: argparse - new command line parsing module

2009-10-05 Thread Nick Coghlan
Yuvgoog Greenle wrote: I know this might come through as bike shedding but it's just customary python that every module have it's own exception types as to not mix them up with others. Not in my Python world it isn't. While that is sometimes the right answer, more often the right answer is to

[Python-Dev] comments vs spam in PyPI [was: eggs now mandatory for pypi?]

2009-10-05 Thread Stephen J. Turnbull
Antoine Pitrou writes: Guido van Rossum guido at python.org writes: There are plenty of things we can learn about fighting spam and other forms of vandalism from other areas of the social web, including our very own wiki, and other wikis (WikiPedia survives despite spam).

Re: [Python-Dev] comments vs spam in PyPI [was: eggs now mandatory for pypi?]

2009-10-05 Thread P.J. Eby
At 01:43 PM 10/6/2009 +0900, Stephen J. Turnbull wrote: IMO it would be better to design developer-specific mechanisms rather than a generic commenting vehicle, cf. Fred Drake's thinking. For example, having a packages reddit (nb: open source, written in Python), where people can upvote or