Enrico Zini added the comment:
Oh! Fair enough, I had missed it. Does the note also involve `Py_BuildValue`?
If so, the documentation of `Py_BuildValue` should probably be updated; if not,
I think it would be clearer if the note mentioned that it only applies to
parsing, not building
New submission from Enrico Zini :
In https://docs.python.org/3.9/c-api/arg.html, in the documentation for parsing
argument, there is:
s# (str, read-only bytes-like object) [const char *, int or Py_ssize_t]
In my amd64 system, `Py_ssize_t` is a different type than `int`, and passing a
Enrico Zini added the comment:
Thanks! Clarifying "number of records buffered" would perfectly solve the
problem for me.
--
___
Python tracker
<https://bugs.python.o
New submission from Enrico Zini :
This simple code:
```
import mailbox
mbox = mailbox.mbox("broken.mbox")
for msg in mbox:
msg.get_payload()
```
Fails rather unexpectedly:
```
$ python3 broken.py
Traceback (most recent call last):
File "broken.py", line 5, in
New submission from Enrico Zini :
In the handlers documentation, MemoryHandler directly follows SMTPHandler.
SMTPHandler does not document that it is sending an email per every logging
invocation, but one can sort of guess it.
Right afterwards, there is the documentation of MemoryHandler
New submission from Enrico Zini :
BufferingHandler's documentatio says "Initializes the handler with a buffer of
the specified capacity." but it does not specify what capacity means. One would
assume the intention is to give a bound to memory usage, and that capacity is
bytes.
New submission from Enrico Zini :
Hello,
this snippet does not work, because GzipFile wants a file-like object that can
do tell() and seek():
#!/usr/bin/python
import gzip
from urllib import urlopen
zfd = urlopen("http://ftp.debian.org/debian/dists/sid/Contents-udeb.gz";)
fd = gzi
New submission from Enrico Zini :
Hello,
I was testing edge case behaviour of some code of mine and stumbled into this
unexpected domain error from timedelta:
>>> from datetime import *
>>> timedelta(9, 86399, 99) - timedelta(9, 86399, 98)
Trac