Re: py3k printing generators -- not!

2009-06-06 Thread Terry Reedy
samwyse wrote: The one thing that's killing me in Python 3000 py3.0 or py3.1, but the 'problem' you complain about has nothing to do with those versions in particular. is that every time I try to print something, it seems like I get at 0x01BAF508>. Nor does it have anything is particular

Re: py3k printing generators -- not!

2009-06-06 Thread Steven D'Aprano
On Sat, 06 Jun 2009 05:28:30 -0700, samwyse wrote: > The one thing that's killing me in Python 3000 Python 3000 was vapourware. When the vapour condensed into liquid, it was renamed Python 3. Right now, the only vapourware is Python4000, which may or may not be created by Guido's heir some tim

Re: py3k printing generators -- not!

2009-06-06 Thread samwyse
On Jun 6, 7:58 am, Carl Banks wrote: > On Jun 6, 5:28 am, samwyse wrote: > > Always saying "print(','.join(x))" gets tiresome in a hurry.   > > What about print(list(x)) Yeah, I like that. Or, to save some typing: prnt = lambda x: print(list(x)) > Interestingly, the fact that it wasn't in b

Re: py3k printing generators -- not!

2009-06-06 Thread bearophileHUGS
Carl Banks: > What about print(list(x)) Right, better than mine :-) Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k printing generators -- not!

2009-06-06 Thread bearophileHUGS
samwyse: > Always saying "print(','.join(x))" gets tiresome in a hurry.  I've > thought about defining my own function "prnt" that wraps print and > fixes generators, but that requires me to get their type, Why do you need to know their type? Isn't something like this enough? def pr(it): txt

Re: py3k printing generators -- not!

2009-06-06 Thread Carl Banks
On Jun 6, 5:28 am, samwyse wrote: > The one thing that's killing me in Python 3000 is that every time I > try to print something, it seems like I get at 0x01BAF508>.  Googling only found one reference, a > posting elsewhere by one Carl Johnson (aka > carlj7,http://www.artima.com/forums/flat.jsp

py3k printing generators -- not!

2009-06-06 Thread samwyse
The one thing that's killing me in Python 3000 is that every time I try to print something, it seems like I get at 0x01BAF508>. Googling only found one reference, a posting elsewhere by one Carl Johnson (aka carlj7, http://www.artima.com/forums/flat.jsp?forum=106&thread=211200#275387), which appa