Re: Custom string joining

2011-05-09 Thread Martineau
On May 7, 5:31 am, Claudiu Popa cp...@bitdefender.com 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

Re: Custom string joining

2011-05-09 Thread Martineau
On May 9, 1:25 pm, Claudiu Popa cp...@bitdefender.com 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__

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 1:12 am, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Sun, Jul 4, 2010 at 7:58 PM, John Machin sjmac...@lexicon.net wrote: On Jul 5, 12:27 pm, Martineau ggrp2.20.martin...@dfgh.net wrote: On Jul 4, 8:34 am, Benjamin Peterson benja...@python.org wrote: On behalf

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 1:31 pm, Alexander Kapps alex.ka...@web.de 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 installing

Re: Python 2.7 released

2010-07-05 Thread Martineau
On Jul 5, 5:53 pm, David Robinow drobi...@gmail.com wrote: On Mon, Jul 5, 2010 at 8:15 PM, Steven D'Apranost...@remove-this-cybersource.com.au 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

Re: Python 2.7 released

2010-07-04 Thread Martineau
On Jul 4, 8:34 am, Benjamin Peterson benja...@python.org 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

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-04-06 Thread Mathew Martineau
Mathew Martineau m...@martineau.name added the comment: Yaniv - Please proceed! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7834

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-02-11 Thread Mathew Martineau
Mathew Martineau m...@martineau.name added the comment: I can submit a patch, but my employer has an involved process for doing this (even for small fixes like this). It will take a few more days to get to a point where I can post the patch, but I will do so as soon as I can

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-02-01 Thread Mathew Martineau
New submission from Mathew Martineau m...@martineau.name: The sockaddr_l2 struct used with connect() has changed in recent versions of the Linux kernel. There is a new l2_cid member. connect() only works with L2CAP sockets if l2_cid is set to 0. Suggest initializing the whole sockaddr_l2