Re: [Python-Dev] [python 2.7] a question about exporting a new method to socket object

2013-06-21 Thread Ani Sinha
Hi Guido : Thanks a lot. That helped. I will try StackOverflow next time. cheers, ani On Fri, Jun 21, 2013 at 8:07 AM, Guido van Rossum wrote: > Technically this list isn't the right place, but you probably are > bitten by the duplication of functionality in Lib/socket.py. There's a > list

Re: [Python-Dev] [python 2.7] a question about exporting a new method to socket object

2013-06-21 Thread Gerald Klix
Hi Ani, just a simple question: Are you sure, that you imported the modified socket module and not the original module from the distribution? HTH, Gerald Am 21.06.2013 um 07:18 schrieb Ani Sinha : > Hi python devs : > > As a part of exploring an idea, I am trying to add a new method to the

Re: [Python-Dev] [python 2.7] a question about exporting a new method to socket object

2013-06-21 Thread Guido van Rossum
Technically this list isn't the right place, but you probably are bitten by the duplication of functionality in Lib/socket.py. There's a list of methods at the top of that file, _socketmethods. But you really shouldn't be asking here -- this list is for changes to Python, not using or hacking it.

[Python-Dev] [python 2.7] a question about exporting a new method to socket object

2013-06-21 Thread Ani Sinha
Hi python devs : As a part of exploring an idea, I am trying to add a new method to the python socket object. Here's what I have been trying to do (the patch may be whitespace damaged so please bear with me) : Index: Python-2.7/Modules/socketmodule.c =