[issue29270] super call in ctypes sub-class fails in 3.6

2020-01-18 Thread Clement Rouault
Clement Rouault added the comment: Hello, As this issue may never be fixed for python3.6. I wanted to post a solution to bypass the bug. It may be useful for the next person stumbling on this as I have. The __class__ closure is only created if a function use the word super(). This closure

[issue29270] super call in ctypes sub-class fails in 3.6

2019-10-25 Thread Clement Rouault
Clement Rouault added the comment: Hello, I have a Python2 project that relies heavily on ctypes and I cannot migrate this project to Python3 due to this bug. (I target 3.6) I have some experience with CPython and submitting patchs and I would like to know what I can do to help moving

[issue32725] Instance of _multiprocessing.PipeConnection-subtype crash on deletion

2018-01-30 Thread Clement Rouault
New submission from Clement Rouault <pyt...@hakril.net>: While playing with '_multiprocessing.PipeConnection' I found out that instancing an object with a subtype of '_multiprocessing.PipeConnection' will crash the interpreter when the object is deleted. My guess is that some conn

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Clement Rouault
Clement Rouault added the comment: Stated as you did, it makes sens. Should the change of return type be acknowledged somewhere in the documentation ? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Clement Rouault
Clement Rouault added the comment: My comment was about the behavior of `winreg.QueryValueEx`. The current behavior is: >>> import winreg >>> tstkey = winreg.OpenKey(winreg.HKEY_CURRENT_USER, "TestKey") >>> winreg.QueryValueEx(tstkey, "

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-24 Thread Clement Rouault
Clement Rouault added the comment: I would like to discuss the fact that this patch is a new feature. In the current state, CPython handles the `REG_QWORD` type as an unkown type and returns the raw registry value: a string of size 8. In my opinion this behavior does not match the Windows

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-23 Thread Clement Rouault
Clement Rouault added the comment: Because `QWORD` is not defined in any file included by CPython. The main file for basic sized type definition in Windows is: basetsd.h: Type definitions for the basic sized types. which contains the definition of `DWORD64`: `typedef unsigned __int64

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-23 Thread Clement Rouault
Clement Rouault added the comment: I also stumbled on this issue when playing with the winreg module. I will try to make the discussion go forward by submitting a new patch. I added a test and tried everything (test included on 3.5) on my own computer (windows 8.1 64b) There are two points

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-23 Thread Clement Rouault
Changes by Clement Rouault <pyt...@hakril.net>: -- nosy: +hakril ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23026> ___ __

[issue22939] integer overflow in iterator object

2015-05-12 Thread Clement Rouault
Clement Rouault added the comment: After a few months, I am back to you on this issue. What should be the next step of the process ? -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22939

[issue22939] integer overflow in iterator object

2014-12-22 Thread Clement Rouault
Clement Rouault added the comment: The call to PySequence_GetItem() may be expensive, and we have to drop the result if an OverflowError is raised after the call. You do realize that this error will be very rare and therefore inconsequential. The real question is: why would you call

[issue22939] integer overflow in iterator object

2014-12-09 Thread Clement Rouault
Clement Rouault added the comment: Also, PY_SSIZE_T_MAX is a valid value to pass to PySequence_GetItem(), so it shouldn't be blocked unless necessary. I agree with you, that's why my first path was checking at the next call if it-it_index had overflowed. But then it relies on undefined

[issue22939] integer overflow in iterator object

2014-12-07 Thread Clement Rouault
Clement Rouault added the comment: Thanks for the comments. I corrected the patch and updated the test. I also added a test that check the behavior of setstate with negative indice. Just one question: __setstate__ must implement the same check. Why should __setstate__ check

[issue22939] integer overflow in iterator object

2014-12-06 Thread Clement Rouault
Clement Rouault added the comment: Here is a first try for a patch. There are two points I am not sure about: 1) The message for the OverflowError: is that explicit enough ? 2) The behaviour of the iterator after the raise of OverflowError. With this patch every call to `next(it)` where

[issue22939] integer overflow in iterator object

2014-11-25 Thread Clement Rouault
New submission from Clement Rouault: I found an interger overflow in the standard iterator object (Objects/iterobject.c) The `it_index` attribute used by the iterator is a `Py_ssize_t` but overflow is never checked. So after the index `PY_SSIZE_T_MAX`, the iterator object will ask

[issue21947] `Dis` module doesn't know how to disassemble generators

2014-07-14 Thread Clement Rouault
Clement Rouault added the comment: Updated some docstrings in the new patch after the review comments. Thanks kushou for the code review. -- Added file: http://bugs.python.org/file35954/dis_generator3.patch ___ Python tracker rep...@bugs.python.org

How to login to a website using Python 3.x?

2013-09-24 Thread Osumo Clement
Hi. I am new to Python. I am making a script where logging in to a website is the first step.. I am using Python 3.3 All of the help I have seen online uses urllib2 which in Python 3 aint there. I will greatly appreciate any help -- https://mail.python.org/mailman/listinfo/python-list

Python System information

2008-01-26 Thread Clement
Hi friends, How can i get system information like CPU load and RAM usage in linux. Is there any packages for python -- http://mail.python.org/mailman/listinfo/python-list

Asynchronous HTTP

2008-01-15 Thread Clement
Can i use asynchttp for http secure connection... If so plz how does it can be done. Is there any other library can do that that -- http://mail.python.org/mailman/listinfo/python-list

Re: Memory problem with threading

2008-01-15 Thread Clement
://arctrix.com/nas/python/gc/ i used it as temporary solution if any other way please share... .. Thanking you... Clement http://www.squzer.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is not a good name, should rename to Athon

2007-12-02 Thread Clement
-ר-ש-ת A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? use my name : clement programming languge .. nice la. -- http://mail.python.org/mailman/listinfo/python-list

Re: Any python module for Traversing HTML files

2007-07-24 Thread Clement
On Jul 24, 10:12 pm, johnny [EMAIL PROTECTED] wrote: Any python module for navigating and selecting, parsing HTML files? try beautyfulshop -- http://mail.python.org/mailman/listinfo/python-list

Problem in Socket.....

2007-07-24 Thread Clement
Is it possible to close the socket connection immediately in Python.. Because i am getting error even though i close it after all the transfer I read from one article it is possible in C socket Whether is it possible in Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: New mailing list mirrors

2007-06-12 Thread Clement
In proejct i need a program having two thread. One is server thread will listen on a port. and aniother one is to controll some opertion in the system.. The server therad will get the comment and the and the another thread will do some opertion based on the commend.. How to implemten it.. I have

Re: A new project.

2007-05-16 Thread Clement
On May 16, 1:09 pm, [EMAIL PROTECTED] wrote: I am interested in organizing and taking part in a project that would create a virtual world much like the one described in Neal Stephenson's 'Snow Crash'. I'm not necessarily talking about something 3d and I'm not talking about a game either.

Creating search engine in Python Good or Bad [in performance]

2007-04-19 Thread Clement
I am now creating IR engine in python which has its own database implementation . For nearly 2GB files it works fast. Can i expect the same speed when my database goes large. Else i have to chose other language[c/c++] for the speed. Please tell me the

NFS Help

2007-04-19 Thread Clement
how to get the file from NFS share in python.. -- http://mail.python.org/mailman/listinfo/python-list

Re: NFS Help

2007-04-19 Thread Clement
On Apr 19, 11:44 pm, Larry Bates [EMAIL PROTECTED] wrote: Clement wrote: how to get the file from NFS share in python.. NFS share is mounted on your local directory, you get to it the same way you would any other file (e.g. go to the mount point and get the file). -Larry I want

Re: Help on Shelve....

2007-04-18 Thread Clement
On Apr 17, 5:52 pm, Michael Bentley [EMAIL PROTECTED] wrote: On Apr 17, 2007, at 6:52 AM, Clement wrote: Can i useShelvefor storing large amount of data around 6GB.. Is it stable...? if any problems come, can i retrive the document.. Do you know for sure your filesystem handles files

Re: Help on Shelve....

2007-04-18 Thread Clement
On Apr 17, 5:52 pm, Michael Bentley [EMAIL PROTECTED] wrote: On Apr 17, 2007, at 6:52 AM, Clement wrote: Can i useShelvefor storing large amount of data around 6GB.. Is it stable...? if any problems come, can i retrive the document.. Do you know for sure your filesystem handles files

Re: Help on Shelve....

2007-04-18 Thread Clement
On Apr 17, 5:52 pm, Michael Bentley [EMAIL PROTECTED] wrote: On Apr 17, 2007, at 6:52 AM, Clement wrote: Can i useShelvefor storing large amount of data around 6GB.. Is it stable...? if any problems come, can i retrive the document.. Do you know for sure your filesystem handles files

Help on Shelve....

2007-04-17 Thread Clement
Can i use Shelve for storing large amount of data around 6GB.. Is it stable...? if any problems come, can i retrive the document.. Plz tell the suggestions. By clement -- http://mail.python.org/mailman/listinfo/python-list

Option Explicit

2007-04-14 Thread Clement
Is there any command like Option Explicit[In visual basic]. -- http://mail.python.org/mailman/listinfo/python-list

Console UI

2007-04-07 Thread Clement
My project is based on console Application. Is there any console UI except urwid. If so, can i come to know. -- http://mail.python.org/mailman/listinfo/python-list

Help in Placing Object in Memory

2007-03-27 Thread Clement
I am newbie to Python.. i want to know something.. can i place an object in disk instead of placing in Main Memory...? If possible, can you please explain with some scripts...? can two python script share a common object? -- http://mail.python.org/mailman/listinfo/python-list

Sharing Objects in Python

2007-03-16 Thread Clement
Can a object sharable by two different python programs... If so can you please explain... because my project needs two programs to access nearly 45GB file Symentaniously... By Clement Jeba kumar, Tenkasi. - It's here! Your new message! Get new email

Help

2007-03-11 Thread Clement
how to use Python/C API -- http://mail.python.org/mailman/listinfo/python-list

Re: Help on Dict

2007-03-10 Thread Clement
On Feb 26, 11:58 am, Steven D'Aprano [EMAIL PROTECTED] wrote: On Mon, 26 Feb 2007 07:15:43 +0200, Hendrik van Rooyen wrote: James Stroud [EMAIL PROTECTED] wrote: Clement wrote: Can any body tell how Dict is implemented in python... plz tell what datastructure that uses

Help on Dict

2007-02-25 Thread Clement
Can any body tell how Dict is implemented in python... plz tell what datastructure that uses -- http://mail.python.org/mailman/listinfo/python-list