Enrico Scholz added the comment:
IMO the SELinux security attributes must not be copied (except when requested
explicitly). Doing so will create badly labeled systems else. It would be
better to use default transition rules and call optionally selinux_restorecon()
then.
E.g. when copying
Change by Enrico Tröger :
--
keywords: +patch
pull_requests: +14847
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15105
___
Python tracker
<https://bugs.python.org/issu
New submission from Enrico Tröger :
I noticed a probably unintended behavior in help() usage:
when an output is set on pydoc.Helper(), most of its methods
use this output instead of a pager.
But 'True', 'False' and 'None' as well as all topics, keywords
and symbols always use a pager instead
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
Enrico Zini added the comment:
Thanks! Clarifying "number of records buffered" would perfectly solve the
problem for me.
--
___
Python tracker
<https://bugs.python.o
Change by Enrico Carbognani :
--
keywords: +patch
pull_requests: +12793
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue36651>
___
_
New submission from Enrico Carbognani :
In the documentation for the call_later and the call_at methods there is a note
which says that the delay cannot be longer than a day, but both methods have a
note saying that this limitation was removed in Python 3.8.
--
assignee: docs@python
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 <enr...@enricozini.org>:
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 afte
New submission from Enrico Zini <enr...@enricozini.org>:
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, a
New submission from Enrico Bianchi:
Currently, documentation for os.mkdir() (see
https://docs.python.org/3.6/library/os.html#os.mkdir ) reports only
FileExistsError exception if directory exists. Please, add other exceptions
(e.g. FileNotFoundError if directory is created in a non existent
Enrico added the comment:
I have attached xmllib.py. This file is in python23\lib folder.
The strings in XML file are in cyrillic language.
My code:
import xmllib
class Parser(xmllib.XMLParser):
# a simple styling engine
def __init__(self):
xmllib.XMLParser.__init__(self
New submission from Enrico:
The xmllib.XMLParser seems to be unable to parse
an XML file that contains cyrillic characters.
File "xmllib.pyc", line 172, in feed
File "xmllib.pyc", line 268, in goahead
File "xmllib.pyc", line 798, in syntax_error
Enrico Tröger added the comment:
I got the same error suddenly with Python 2.7.9.
I think this is quite unfortunate because it somewhat breaks existing
behaviour, especially that SSL certificate verification is enabled by default.
Don't get me wrong, this is the right thing in general
New submission from Enrico Bianchi:
although exists, read() method isn't reported in the SSLSocket documentation.
Please, fix it
--
assignee: docs@python
components: Documentation
messages: 212115
nosy: docs@python, ebianchi
priority: normal
severity: normal
status: open
title
New submission from Enrico Zini enr...@enricozini.org:
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
New submission from Enrico Zini enr...@enricozini.org:
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
New submission from Enrico Sartori enry...@gmail.com:
To send an email with a PDF attachment the following code should work:
msg = MIMEMultipart()
msg['From'] = from
msg['To'] = to
msg['Subject'] = 'test'
fp = open('/path/to/file.pdf', 'rb')
attach = MIMEApplication(fp.read(), 'pdf')
fp.close
Enrico Carlesso enricocarle...@gmail.com added the comment:
This affects tophost.it too. Unable to login with CRAM-MD5 but plain login (as
described in referenced workaround) work fine.
--
nosy: +Enrico.Carlesso
___
Python tracker rep
New submission from Enrico Santoemma [EMAIL PROTECTED]:
This wrong expression
lambda (None,):None
and this statement
def f( (None,) ): pass
crash the interpreter.
Python 2.5.1 (r251:54863, Mar 7 2008, 03:41:45)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type help, copyright, credits
21 matches
Mail list logo