Change by Jonas H. :
--
pull_requests: +4513
___
Python tracker
<https://bugs.python.org/issue32071>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonas H. added the comment:
https://github.com/python/cpython/pull/4589
- Add 3.7 What's New entry
- Fix regression (thanks Tim for the report)
--
___
Python tracker
<https://bugs.python.org/is
New submission from Leon H. :
Current BASIC_FORMAT:
BASIC_FORMAT = "%(levelname)s:%(name)s:%(message)s"
The first thing people do is set the format to
'%(asctime)s:%(levelname)s:%(name)s:%(message)s' or like after importing
logging module.
Could we put the '%(as
Jonas H. added the comment:
I also have a segfault that goes away with malloc debugging. Not sure if it's
the same issue.
My extension modules are
venv/lib/python3.7/site-packages//_yaml.cpython-37m-darwin.so
venv/lib/python3.7/site-packages//netifaces.cpython-37m-darwin.so
ven
Jonas H. added the comment:
Btw my segfault is from Django too, but that may just be a coincidence
--
___
Python tracker
<https://bugs.python.org/issue34
Jonas H. added the comment:
I can reproduce this on Ubuntu 18.04.
INADA, I have a full gdb backtrace with Python 3.7 development build. I'd like
to share it with you privately as I'm concerned it may contain sensible
information. I know that's a bit unconventional; if
Jonas H. added the comment:
Reduced it to something that seems unicode related?
No extension modules involved. Vanilla Django project with a single url +
template.
See testproj/urls.py and tmpl/index.html
--
Added file: https://bugs.python.org/file47688/testproj.tar.gz
Jonas H. added the comment:
Sure.
Unpack archive, create new 3.7 venv with Django (latest version is fine),
./manage.py runserver, curl localhost:8000.
--
___
Python tracker
<https://bugs.python.org/issue34
Jonas H. added the comment:
Here's a Docker image that reproduces the bug.
FROM ubuntu:18.04
RUN apt update && apt install -y python3.7-dbg python3.7-venv python3-venv wget
RUN python3.7 -m venv venv
RUN venv/bin/pip install django
RUN wget https://bugs.python.org/file47688/testp
Jonas H. added the comment:
I don't think this can be tested with Python code, unless you can make sure the
target buffer _PyUnicode_TransformDecimalAndSpaceToASCII operates on is
initialised with garbage bytes.
--
___
Python tracker
&
Jonas H. added the comment:
The assertion in the patched code, yes. The segfault in the unpatched code, no.
--
___
Python tracker
<https://bugs.python.org/issue34
Change by H-ZeX :
--
components: XML
nosy: H-ZeX
priority: normal
severity: normal
status: open
title: ftplib __init__ function can't handle 120 or 4xy reply when connect to
the server
type: behavior
versions: Python 3.5
___
Python tracker
&
Change by H-ZeX :
--
components: +Library (Lib) -XML
___
Python tracker
<https://bugs.python.org/issue34368>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from H-ZeX :
in the __init__ function, call getresp,
however, the getresp don't handle the 120 reply which indicate the request
should be delay or 421 reply
in the rfc 959 page 50, there are all reply that may return
Connection Establishment
120
220
22
Changes by H Xu :
--
nosy: +xuhdev
___
Python tracker
<http://bugs.python.org/issue18050>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from Jonas H.:
The Sphinx docs don't contain any explanation for `local_hostname`.
--
assignee: docs@python
components: Documentation
messages: 190898
nosy: docs@python, jonash
priority: normal
severity: normal
status: open
title: SMTP.local_hostname is undocum
H Xu added the comment:
I think this has been fixed. Where did you see the incorrect link?
--
___
Python tracker
<http://bugs.python.org/issue14489>
___
___
Pytho
Lars H added the comment:
+1 vote for fixing this problem. Matt Hickford said it very well... the error
message is very cryptic, not giving the user a clue as to what domain the
problem lies in.
--
nosy: +Lars.H
___
Python tracker
<h
New submission from Jonas H.:
>From my personal experience, listing all real files and all subdirectories in
>a directory is a very common use case.
Here's a patch that adds the `iterfiles()` and `iterdirs()` methods as a
shortcut for `[f for f in p.iterdir() if f.
New submission from Travis H. :
The zlib C library has the capability to indicate the end of a
compressed stream by returning a Z_STREAM_END from a call to inflate.
This allows uncompressed data to follow some compressed data. It is
necessary to know when the end of the compressed stream has
New submission from Travis H. :
Python should expose setresuid in the same module that exposes setuid.
The reason why is complicated, but is best explained here:
http://www.eecs.berkeley.edu/~daw/papers/setuid-usenix02.pdf
I might work on a patch to implement this.
--
components
Travis H. added the comment:
should also expose setresgid for same reason.
Paper also defines a higher-level API in section 8.2.1 that would
probably be worth implementing.
--
___
Python tracker
<http://bugs.python.org/issue6
Travis H. added the comment:
What kind of tests did you have in mind?
Unit tests in python, or something else?
--
nosy: +solinym
___
Python tracker
<http://bugs.python.org/issue5
Travis H. added the comment:
Attaching unit test diff
Output of "diff -u test_zlib.py~ test_zlib.py"
--
Added file: http://bugs.python.org/file14745/zlib_finished_test.txt
___
Python tracker
<http://bugs.python.
Travis H. added the comment:
zlibmodule.c.diff Implements all the suggested features, but I'm not
exactly sure whether it handles reference counts properly.
--
Added file: http://bugs.python.org/file14762/zlibmodule.c.diff
___
Python tracker
Travis H. added the comment:
Diff to tests
Implements all suggested changes save one:
I wasn't sure how to test that is_finished is clear one byte before the
end of the compressed section. Instead, I test that it is clear before
I call the compression routine.
--
Added file:
New submission from Travis H. :
It should be easier to write network servers and setuid programs in
python. One of the troublesome issues is that the semantics of the
setuid/getuid-related calls are quite complicated.
There are two papers on this subject that form the background of this
Travis H. added the comment:
The posixmodule.c seems to have a lot of really complex CPP logic about
what chunks to compile. If the target is to put the code there, I would
have to be guessing - next to the HAVE_GETEUID looks promising.
But wouldn't it be better to have the configure s
Travis H. added the comment:
The routines necessary for implementing Wagner's API for dropping
privileges are:
sysconf function: available in os module
_SC_NGROUPS_MAX constant: unsure
abort function: available in os module
getresuid function: needs implementing[1]
getresgid function:
Travis H. added the comment:
Figured out how to test is_finished attribute of the zlib module properly.
--
Added file: http://bugs.python.org/file14764/test_zlib.py.diff
___
Python tracker
<http://bugs.python.org/issue5
Travis H. added the comment:
This is my first stab at creating a "privilege" module that implements
the API suggested in the second aforementioned paper.
It is syntactically correct but has some TODO items in it that must be
completed before it will work.
Any suggestions on this cod
Travis H. added the comment:
On Fri, Aug 21, 2009 at 08:42:43PM +, Martin v. L??wis wrote:
>
> Martin v. L??wis added the comment:
>
> > It would still be nice to have the currently unimplemented platform
> > wrappers added to the standard library, though. Fo
Travis H. added the comment:
Where would be the best place to put these non-POSIX calls?
I looked at posixmodule.c and it's a mess; much conditional CPP logic
governing what gets compiled, not clear where I should add something
like this there - if I should at all, since these routines ar
Travis H. added the comment:
I have coded up a first draft at implemented {get,set}res{gid,uid}
functions. This completes the exposure of the user and group setting
functions, and enables python programmers to be able to safely drop
privileges, for example when running network daemons as root
Travis H. added the comment:
Simplified if/else chaining
Uploading here before testing on new machine (m4 was too old on previous
machine)
--
Added file: http://bugs.python.org/file14918/foo.txt
___
Python tracker
<http://bugs.python.org/issue6
Travis H. added the comment:
I applied the same patch to Python 2.6.2 and believe that I got the
tab/space situation worked out so that it's consistent with the rest of
posixmodule.c
I also executed autoconf to convert configure.in to configure, and
judging by the config.log, it is testin
Travis H. added the comment:
This patch fixes a number of typos in the original and, to my knowledge,
is now complete.
I have tested this manually and confirmed that it works. I would start
as root, setresuid/gid to some non-root uid/gids, getresuid/gid to test
those functions, and follow it
Travis H. added the comment:
On Fri, Sep 18, 2009 at 07:44:56AM +, Martin v. L??wis wrote:
>
> Your patch looks good (except that in getresuid, you seem to be missing
> return). I have no clue why it doesn't work; I'll see whether I can try it
> out on Linux within
New submission from Paul H :
Hello all,
First post here so go easy on me please! And please bear in mind I am
not a C programmer, just a unix admin trying to build python as an
option for other programmers to use.
I am trying to build Python 3.1.1 on HP-UX itanium. OS and compiler
details are
Paul H added the comment:
Hi all,
Many thanks for the tips, and for the super-quick responses also!
Yes indeed, what is happening here is that PY_VERSION_HEX is not being
evaluated correctly. In fact what appears to be happening is that
Include/patchlevel.h is not being considered in the
Changes by Christian H :
--
nosy: +Christian H
___
Python tracker
<http://bugs.python.org/issue22385>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Christian H :
--
nosy: +Christian H
___
Python tracker
<http://bugs.python.org/issue27744>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Christian H :
--
nosy: +Christian H
___
Python tracker
<http://bugs.python.org/issue1222585>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Christian H :
--
nosy: +Christian H
___
Python tracker
<http://bugs.python.org/issue21998>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jonas H. added the comment:
I just hit this too. I'd say remove the fileno() method from wrapper objects
like GzipFile. I'm happy to submit a patch.
--
nosy: +jonash
___
Python tracker
<http://bugs.python.o
New submission from Matthew H. McKenzie :
A mailbox (folder) need not be for a recipient and need not be the private part
of an RFC2822 address.
Passing a value of "000 Bookings" to select() results in validation issues when
the tokens are parsed as arguments and there are too
New submission from David H. Gutteridge :
I stumbled across this bug because of a misunderstanding I had about how the
pyexpat module works. I'd inferred that a given instance could be reused to
parse multiple files, which is apparently not supported. (There's already a
documen
David H. Gutteridge added the comment:
I believe this may be an OS-specific bug somehow, albeit one that affects
multiple OSes. I cannot duplicate the crash on NetBSD 5.1_STABLE/i386 with
Python 2.6.7, or on OpenSuSE 11.3 with Python 2.6.5. (It's interesting that it
doesn't cr
David H. Gutteridge added the comment:
Here's the (non-debug) trace under OS X:
Process: Python [4604]
Path:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: ??? (???)
Code Type:
David H. Gutteridge added the comment:
The documentation should definitely be updated to clarify that a parser
instance is not reusable with more than one file. I had a look at the
equivalent documentation for Perl and TCL, and Perl's implementation explicitly
does not allow attemp
David H. Gutteridge added the comment:
Terry: I wasn't aware xml.parsers.expat is deprecated, though it clearly says
so in the documentation, I now see... (I'd been using it because it features
prominently in various examples in Python books, and it's lightweight.) I
have
David H. Gutteridge added the comment:
Confirming that Python 3.2.1 crashes the same way on Mac OS X 10.6.8:
Process: Python [9594]
Path:
/Library/Frameworks/Python.framework/Versions/3.2/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version
David H. Gutteridge added the comment:
Further details:
- The original test case I'd submitted crashed on the development branch of
NetBSD as well as Mac OS X Snow Leopard, but not the most recent stable branch
of NetBSD. I've found a separate test case that crashes on both b
David H. Gutteridge added the comment:
Ned: My proposed wording is: "Note that only one document can be parsed by a
given instance; it is not possible to reuse an instance to parse multiple
files." To provide more detail, one could also add something like: "The
isfinal argume
David H. Gutteridge added the comment:
Okay. I'd seen the earlier issue, but had submitted this separately because I
wasn't sure if it was a security-related bug, whereas the older issue didn't
mention anything of the sort. (In retrospect, I could'
Rafe H. Kettler added the comment:
I stumbled upon this issue and I feel similarly about the documentation for a
particular module, ftplib. I think that the documentation is a bit too concise
and assumes that the reader in an expert in the protocol when the point of the
module is to abstract
Rafe H. Kettler added the comment:
I think Brian's second solution ("the result is simply path2 when path1 is
empty or path2 is an absolute path?") is a strong one. If that were tacked on
towards the end it would add some clarity to the docs for people who will end
up using t
Rafe H. Kettler added the comment:
Radu, while the comments are not as clear for ntpath, the behavior is the same.
So, the comment you detailed from posixpath could be adapted to Windows by
replacing '/' with 'a separator' or something of that nature.
That said, the
Rafe H. Kettler added the comment:
Thanks Eric, I think you're right. I'll do that.
--
___
Python tracker
<http://bugs.python.org/issue4758>
___
___
New submission from Rafe H. Kettler :
I think that the documentation for ftplib is a bit too concise and assumes that
the reader in an expert in the protocol when the point of the module is to
abstract out such details.
For example, for the error documentation, the exceptions are only
New submission from Roy H. Han :
email.header.decode_header fails for the following message subject:
::
email.header.decode_header('=?UTF-8?B?MjAxMSBBVVRNIENBTEwgZm9yIE5PTUlO?==?UTF-8?B?QVRJT05TIG9mIFZQIGZvciBNZW1iZXJz?==?UTF-8?B?aGlw?=')
If the directives are removed and t
New submission from Matthew H. McKenzie :
Lib/ftplib.py function retrlines
Inspired by documentation the following writes a file without line-endings:
from ftplib import FTP
ftp=FTP()
ftp.connect('hostname')
ftp.login('user','')
ftp.sendcmd('pasv
Matthew H. McKenzie added the comment:
On the face of it it is my mistake for using the write method for my file. But
read on.
your write_line() adds an EOL, OK, because it wraps print().
So the retrlines() function strips them in anticipation?
The error is arguably in my own code as I
Matthew H. McKenzie added the comment:
To answer your original questions : Linux Host and Client, amd MVS (EBCDIC
records) to Linux.
hacks to overcome (in libftp):
def print_line(line):
'''Default retrlines callback to print a line.'''
print(line, end
David H. Gutteridge added the comment:
Updating to reflect the Python 3.4 documentation is now also relevant to this
discussion. Perhaps someone could commit a change something like my suggestion
in msg143295?
--
versions: +Python 3.4
___
Python
New submission from Bernie H. Innocenti :
On startup, the Python interpreter changes the default behavior
of SIGINT, which results in many Python programs to ignore the
keyboard interrupt exactly in the situations when users are
most likely to use it (i.e.: when the program becomes unresponsive
Bernie H. Innocenti added the comment:
> This is a fundemental behavior that will never change. If you
> dislike it, you can remove the signal handler for it with the
> signal module.
What? We could break the syntax of "print" statements and
cannot change this minor detail
Bernie H. Innocenti added the comment:
Ok
--
___
Python tracker
<http://bugs.python.org/issue6901>
___
___
Python-bugs-list mailing list
Unsubscribe:
Roy H. Han added the comment:
I'm also getting the same error retrieving a message through IMAP from a
Lotus Notes server.
Traceback (most recent call last):
File "mail.py", line 152, in
if 'setup' == argument: setup()
File "mail.py", lin
Roy H. Han added the comment:
Using a different format, it seems the message involves cryptographic
keys signed by Lotus Notes?
>>> server.fetch(407, '(BODY.PEEK[HEADER] FLAGS)')
To: [email protected]
Subject: subject
Message-ID:
Date: Tue, 28 Oct 2008 17:53:22 -0400
Fro
Bernie H. Innocenti added the comment:
While we're waiting for this patch to be upstreamed, what's the best way to
emulate this functionality with the current gettext module?
I'm looking at the patch and it seems that code similar to this might work?
def pgettext(ctx, ms
Jose Antonio Martin H <[EMAIL PROTECTED]> added the comment:
I have the same problem, i have patched the file and now it works ok.
--
nosy: +jamartinh
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Marten H. van Kerkwijk added the comment:
In astropy we are now working around the auto-closing of the underlying stream
in TextIOWrapper by subclassing and overriding `__del__` to detach [1]. It
would seem more elegant if `TestIOWrapper` (and really, `BufferedReader`) could
gain an
New submission from Marten H. van Kerkwijk :
While debugging a strange failure with tests and np.memmap, I realized that the
following direct use of mmap reliably leads to a bus error. Here, obviously
mmap'ing a file, closing it, opening the file for writing but not writing
anything
Marten H. van Kerkwijk added the comment:
I should probably have added that the bus error happens on linux. On Windows,
the opening of the file for writing leads to an error, as the file is still
opened for reading inside the mmap.
--
___
Python
New submission from Jose Antonio Martin H :
Python 2.6.3 (r263rc1:75186, Oct 2 2009, 20:40:30) [MSC v.1500 32 bit
(Intel)] on win32
That is the python that is installed with the python 2.6.3 installer.
--
components: Installation
messages: 93667
nosy: jamartinh
severity: normal
status
New submission from Jose Antonio Martin H:
Is it possible to consider the automatic type conversion from set to frozenset
whenever a set is declared inside a set, as the key of a Counter and as the key
of a Dict? Tha is, the case when a set is used but a hashable object is
requested.
Having
101 - 177 of 177 matches
Mail list logo