[issue22305] Documentation on deepcopy's problems is misleading

2014-08-30 Thread Shailesh Hegde
New submission from Shailesh Hegde: https://docs.python.org/version/library/copy.html Two problems often exist with deep copy operations that don’t exist with shallow copy operations: Recursive objects (compound objects that, directly or indirectly, contain a reference to themselves) may

[issue22305] Documentation on deepcopy's problems is misleading

2014-08-30 Thread Shailesh Hegde
Shailesh Hegde added the comment: Thanks. Because deep copy copies everything it may copy too much, e.g., administrative data structures that need to be shared even between copies, which may not be the desired goal. helps me understand better

Re: httplib incredibly slow :-(

2009-08-12 Thread Shailesh Kumar
Yes it includes libcurl. I didn't have to install it separately. I still continue to use Python 2.4. So cannot say about Python 2.6. - Shailesh On Wed, Aug 12, 2009 at 10:23 PM, Chris Withers ch...@simplistix.co.ukwrote: shaileshkumar wrote: We use PyCURL on Windows. http

Re: Wrapping methods of built-in dict

2009-06-03 Thread shailesh
On May 21, 10:13 pm, George Sakkis george.sak...@gmail.com wrote: On May 21, 5:55 pm, shailesh kochhar...@gmail.com wrote: There doesn't seem to be a predicate returning method wrappers. Is there an alternate way to query an object for attributes that are of method wrappers? Sure

Re: Wrapping methods of built-in dict

2009-05-21 Thread shailesh
On May 20, 7:31 pm, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: On Wed, 20 May 2009 18:42:38 -0700, shailesh wrote: The reason as far as I understand is that the methods on the built-in dict are not of MethodType or FunctionType That seems to be true: type({}.get) type

Wrapping methods of built-in dict

2009-05-20 Thread shailesh
Hello, I'm trying to write a class decorator which takes a function as an argument and wraps instancemethods of the class with the function. After reading a few examples on ActiveState and this blog post http:// wordaligned.org/articles/echo, my first attempt goes something like this: def

problem with gethostbyaddr with intranet addresses on MAC

2008-01-25 Thread shailesh
, 'Unknown host') With regards, - Shailesh -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a custom python python distribution

2007-10-12 Thread shailesh
Thanx a lot for all the pointers. I will certainly check into them. I actually wanted to know how do people create their own Python distribution like ASPN's Python or Enthought's Python. With regards, - Shailesh On Oct 2, 12:33 pm, azrael [EMAIL PROTECTED] wrote: Maybe you should check

Creating a custom python python distribution

2007-09-30 Thread shailesh
for this purpose. Could some one give an overview of what needs to be done for this purpose? With regards, -Shailesh -- http://mail.python.org/mailman/listinfo/python-list

how to check whether a drive is a network drive or drive from attached hard-disk

2007-03-28 Thread shailesh
Hi, Few very simple questions. Is there a way to detect whether a drive is a mapped network drive or not in Windows? Also, how can I get a list of drive letters currently in use in the system? Your help is highly appreciated. Thanks in advance. With regards, -Shailesh -- http