Re: Custom string joining

2011-05-09 Thread Martineau
On May 9, 1:25 pm, Claudiu Popa wrote: > Hello Karim, > > > You just have to implement __str__() python special method for your > > "custom_objects". > > Regards > > Karim > >> Cheers, > >> Chris > >> -- > >>http://rebertia.com > > I  already told in the first post that I've implemented __str__ fu

Re: Custom string joining

2011-05-09 Thread Martineau
On May 7, 5:31 am, Claudiu Popa wrote: > Hello Python-list, > > I  have  an object which defines some methods. I want to join a list or > an iterable of those objects like this: > > new_string = "|".join(iterable_of_custom_objects) > > What   is   the   __magic__  function that needs to be impleme

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 5:53 pm, David Robinow wrote: > On Mon, Jul 5, 2010 at 8:15 PM, Steven > D'Aprano wrote: > > On Mon, 05 Jul 2010 12:59:00 -0700, Martineau wrote: > > >> I'd like to view the contents of the help file without actually > >> installing the

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 1:31 pm, Alexander Kapps wrote: > Martineau wrote: > > Perhaps it's hidden somewhere, but I couldn't find the .chm help file > > in the python-2.7.msi file using 7-zip, nor saw anything that looked > > like a Doc folder embedded within it -- so I doubt

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 1:12 am, Benjamin Kaplan wrote: > On Sun, Jul 4, 2010 at 7:58 PM, John Machin wrote: > > On Jul 5, 12:27 pm, Martineau wrote: > >> On Jul 4, 8:34 am, Benjamin Peterson wrote: > > >> > On behalf of the Python development team, I'm jocund to anno

Re: Python 2.7 released

2010-07-04 Thread Martineau
On Jul 4, 8:34 am, Benjamin Peterson wrote: > On behalf of the Python development team, I'm jocund to announce the second > release candidate of Python 2.7. > > Python 2.7 will be the last major version in the 2.x series. However, it will > also have an extended period of bugfix maintenance. > > 2