Pasha Stetsenko added the comment:
The code is simple:
```
// first initialize PyStructSequence_Field* fields; then:
PyTypeObject* type = malloc(sizeof(PyTypeObject));
PyStructSequence_InitType(type, desc);
```
Of course, `malloc` can accidentally allocate memory that is already filled
New submission from Pasha Stetsenko :
The documentation (https://docs.python.org/3/c-api/tuple.html) for
`PyStructSequence_InitType` describes the function as follows:
> void PyStructSequence_InitType(PyTypeObject *type, PyStructSequence_Desc
> *desc)
> Initializes a struct sequ
tahnoon pasha added the comment:
Hi David
Adding the following post and response from the davmail author/ maintainers
site. He seems to have fixed it in davmail and suggests the following fix in
imaplib.py if there is a desire to amend it to allow stray spaces
Le 15/06/2013 08:19, tahnoon
tahnoon pasha added the comment:
http://sourceforge.net/p/davmail/bugs/532/
The response back from the davmail software maintainer is that this is a non
RFC mechanism with a purpose (used as a keep alive on a very slow responding
server - SELECT can be very slow when getting mail this way
tahnoon pasha added the comment:
Okay David. Thanks for the pointer. With great trepidation Ill hit google and
try and figure out how to create a test case for this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18153
tahnoon pasha added the comment:
I'll log this at the davmail forums too and report back if I get a response
there.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18153
New submission from tahnoon pasha:
Hi I've suddenly encountered an error using imaplib on some code that worked
fine before.
import imaplib
m = imaplib.IMAP4('myserver','port')
m.login(r'username','password')
m.select()
gives me the error
Traceback (most recent call last
New submission from Pasha [EMAIL PROTECTED]:
Whenever the default argument to a function is a dictionary, and the
function is called twice, then the function remembers the changes to
the dictionary.
This means that any time that a default argument is set to a dictionary,
a list or any other