[issue1103213] Adding the missing socket.recvall() method

2010-03-16 Thread Irmen de Jong
Irmen de Jong added the comment: Sure, I'll give it another go. I've not done any c-development for quite a while though, so I have to pick up the pieces and see how far I can get. Also, I don't have any compiler for Windows so maybe I'll need someone else to validate

[issue1103213] Adding the missing socket.recvall() method

2010-03-16 Thread Irmen de Jong
Irmen de Jong added the comment: Ok I've looked at it again and think I can build an acceptable patch this time. However there are 2 things that I'm not sure of: 1) how to return the partial data to the application if the recv() loop fails before completion. Because the method wil

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Irmen de Jong added the comment: Ok I think I've got the code and doc changes ready. I added a recvall and a recvall_into method to the socket module. Any partially received data in case of errors is returned to the application as part of the args for a new exception, socket.partialdata

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Changes by Irmen de Jong : Removed file: http://bugs.python.org/file6439/patch.txt ___ Python tracker <http://bugs.python.org/issue1103213> ___ ___ Python-bugs-list mailin

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Changes by Irmen de Jong : Added file: http://bugs.python.org/file16762/socketmodulepatch.txt ___ Python tracker <http://bugs.python.org/issue1103213> ___ ___ Python-bug

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Changes by Irmen de Jong : Added file: http://bugs.python.org/file16763/libpatch.txt ___ Python tracker <http://bugs.python.org/issue1103213> ___ ___ Python-bugs-list m

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Changes by Irmen de Jong : Added file: http://bugs.python.org/file16764/docpatch.txt ___ Python tracker <http://bugs.python.org/issue1103213> ___ ___ Python-bugs-list m

[issue1103213] Adding the missing socket.recvall() method

2010-04-05 Thread Irmen de Jong
Irmen de Jong added the comment: Currently if MSG_WAITALL is defined, recvall() just calls recv() internally with the extra flag. Maybe that isn't the smartest thing to do because it duplicates recv's behavior on errors. Which is: release the data and raise an error. Would it b

[issue8320] docs on socket.recv_into doesn't mention the return value

2010-04-05 Thread Irmen de Jong
New submission from Irmen de Jong : Doc/library/socket.rst doesn't mention the return value for recv_into. Adding a simple "Returns the number of bytes received." should fix this. (note that recvfrom_into does mention its return value) -- assignee: georg.br

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-11-29 Thread Irmen de Jong
New submission from Irmen de Jong : Pickling of bytearrays is quite inefficient right now, because bytearray's __reduce__ encodes the bytes of the bytearray into a str. A pickle made from a bytearray is quite a bit larger than necessary because of this, and it also takes a lot more proce

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-11-29 Thread Irmen de Jong
Changes by Irmen de Jong : Added file: http://bugs.python.org/file23813/bytearray27.patch ___ Python tracker <http://bugs.python.org/issue13503> ___ ___ Python-bugs-list m

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-11-29 Thread Irmen de Jong
Irmen de Jong added the comment: btw I'm aware of PEP-3154 but I don't think this particular patch requires a pickle protocol bump. -- ___ Python tracker <http://bugs.python.o

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-12-04 Thread Irmen de Jong
Irmen de Jong added the comment: Added new patch that only does the new reduction when protocol is 3 or higher. -- Added file: http://bugs.python.org/file23852/bytearray3x_reduceex.patch ___ Python tracker <http://bugs.python.org/issue13

[issue13503] improved efficiency of bytearray pickling by using bytes type instead of str

2011-12-13 Thread Irmen de Jong
Irmen de Jong added the comment: Alexandre: the existing test_bytes already performs byte array pickle tests. -- ___ Python tracker <http://bugs.python.org/issue13

[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-05-15 Thread Irmen de Jong
New submission from Irmen de Jong <[EMAIL PROTECTED]>: I've ran into a problem where it would be very nice to be able to tell the tread.get_ident() of a given threading.Thread object. Currently, when creating a new Thread object, there is no good way of getting that thread's g

[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-05-23 Thread Irmen de Jong
Irmen de Jong <[EMAIL PROTECTED]> added the comment: Adding it in the run method would only work for threads that I create in my own code. The thing is: I need to be able to get the tread identification from threads created by third party code. So I cannot rely on that code putting it

[issue2871] store thread.get_ident() thread identifier inside threading.Thread objects

2008-05-24 Thread Irmen de Jong
Irmen de Jong <[EMAIL PROTECTED]> added the comment: Thanks Gregory, for taking the time to make a patch. __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2871> __