Thomas Guettler [EMAIL PROTECTED] added the comment:
I was hit by this bug in Django. The ticket URL:
http://code.djangoproject.com/ticket/6256
It would be nice if this could be fixed.
--
nosy: +guettli
_
Tracker [EMAIL PROTECTED]
http
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
___
___
Python-bugs
Thomas Guettler guet...@thomas-guettler.de added the comment:
It would be very nice if logging.info('...', exc_info=True)
shows the calling/upper frames, too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
New submission from Thomas Guettler guet...@thomas-guettler.de:
logging.error('...', exc_info=True) only displays the
frames downward. But I often need the upper frames, to debug a problem.
This example shows, that you don't see the upper frame in the stactrace. But
that's information
Thomas Guettler guet...@thomas-guettler.de added the comment:
Related: #1553375
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9427
Thomas Guettler guet...@thomas-guettler.de added the comment:
Related #9427
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1553375
Thomas Guettler guet...@thomas-guettler.de added the comment:
I tested it only on python 2.6. Can someone please look at more reset versions?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9427
Thomas Guettler guet...@thomas-guettler.de added the comment:
Until exc_info=True prints the current stack, I use this pattern:
import traceback
logging.error(u's...\nStack: %s' % (
''.join(traceback.format_stack())), exc_info=True
Thomas Guettler guet...@thomas-guettler.de added the comment:
Yes, I think this can be closed, too.
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1982
New submission from Thomas Guettler guet...@thomas-guettler.de:
I get the following traceback. I created a patch against email/quoprimime.py
from SVN branch python2.7
File /usr/lib64/python2.6/email/header.py, line 93, in decode_header
dec = email.quoprimime.header_decode(encoded)
File
Changes by Thomas Guettler guet...@thomas-guettler.de:
Added file: http://bugs.python.org/file19081/broken-subject.msg
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10004
New submission from Thomas Guettler guet...@thomas-guettler.de:
Hi,
the documentation of globals() is missing a note if you can update
the dictionary:
http://docs.python.org/library/functions.html?highlight=globals#globals
For locals() it is documented:
http://docs.python.org/library
New submission from Thomas Guettler [EMAIL PROTECTED]:
Hi,
after sphinx-quickstart and running make latex I get:
Build finished; the LaTeX files are in build/latex.
Run `make all-pdf' or `make all-ps' in that directory to run these through
[EMAIL PROTECTED]:... LANG=C make all-pdf
make
Thomas Guettler [EMAIL PROTECTED] added the comment:
Dear georg,
I am sorry that I wasted your time. Yes, I ignored the part '..in that
directory'.
I couldn't find a way to close this ticket, also I am logging in. Do you
need special privileges for this?
Nevertheless, thank you for Sphinx
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5115
___
___
Python-bugs
New submission from Thomas Guettler [EMAIL PROTECTED]:
The current documentation of etree [1] does not explain the
syntax of the supported xpaths.
[1] current documation:
http://docs.python.org/lib/elementtree-elementtree-objects.html
[2] ElementTree supported XPath:
http://effbot.org/zone
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3244
___
___
Python-bugs
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5673
___
___
Python-bugs
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1100942
___
___
Python-bugs
New submission from Thomas Guettler guet...@thomas-guettler.de:
A link from
http://docs.python.org/library/stdtypes.html#set.union
to
http://en.wikipedia.org/wiki/Union_%28set_theory%29
would help young people to understand sets.
Of course it is the same for intersection(), difference
New submission from Thomas Guettler guet...@thomas-guettler.de:
In changeset fe6be0426e0d the format() method was changed. Unfortunately it
does not catch all unicode decode errors.
I think line 482 of logging/__init__.py should be modified:
to this (add 'replace'):
s = s
Changes by Thomas Guettler guet...@thomas-guettler.de:
Added file: http://bugs.python.org/file23486/unicodedecodeerror-in-logging.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13232
Thomas Guettler guet...@thomas-guettler.de added the comment:
I attached a testcase (unicodedecodeerror-in-logging.py). If the
filesystemencoding is UTF-8 and the source code is encoded in latin1, then the
logging fails. It happens because there is a German umlaut in the comment
behind 1/0
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14102
___
___
Python-bugs
New submission from Thomas Guettler:
The current argparse documentation is not easy to read people new to python.
http://docs.python.org/dev/library/argparse.html#choices
{{{
current: parser.add_argument('foo', choices='abc')
}}}
Please make this more explicit:
{{{
better: parser.add_argument
New submission from Thomas Guettler guet...@thomas-guettler.de:
from email.header import decode_header
decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=')
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib64/python2.6/email
Thomas Guettler guet...@thomas-guettler.de added the comment:
This happens on Python3:
root@ubuntu1004devel64:~# python3
Python 3.1.2 (r312:79147, Sep 27 2010, 09:57:50)
[GCC 4.4.3] on linux2
Type help, copyright, credits or license for more information.
from email.header import decode_header
Thomas Guettler guet...@thomas-guettler.de added the comment:
I received this email. Here is the creator:
X-Mailer: CommuniGate Pro MAPI Connector 1.52.53.10/1.53.10.1
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12489
Thomas Guettler added the comment:
Only few people seem to use daemon threads. We do and see this problem often
with Python 2.7.
How difficult is it to get this fixed for 2.7?
Is there a way to work around this problem?
--
nosy: +guettli
Thomas Guettler added the comment:
There are some examples to work around this for Python2:
http://stackoverflow.com/questions/18098475/detect-interpreter-shut-down-in-daemon-thread
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http
New submission from Thomas Guettler:
This is a documentation bug: Since #1856 is not solved for Python2, it needs
to be documented.
Daemon Threads on Python2 can seg fault.
Work arounds:
http://stackoverflow.com/questions/18098475/detect-interpreter-shut-down-in-daemon-thread
New submission from Thomas Guettler:
If you search for printf in the docs you get this result:
http://docs.python.org/3.3/search.html?q=printfcheck_keywords=yesarea=default
Please have a look at the first results. I guess most people don't want to see
docs about PyOS_snprintf
Most people
New submission from Thomas Guettler:
The documentation of codecs.readline() has a link to the readline module.
That the same word with a total different meaning!
http://docs.python.org/2/library/codecs.html?highlight=readline#codecs.StreamReader.readline
The GNU readline module is about
New submission from Thomas Guettler:
The stream reader of codecs.open() breaks on undocumented characters:
http://docs.python.org/2/library/codecs.html?highlight=codecs%20readline#codecs.StreamReader.readline
import tempfile
temp=tempfile.mktemp()
fd=open(temp, 'wb')
fd.write('abc\ndef\x85ghi
New submission from Thomas Guettler guet...@thomas-guettler.de:
On smtplib example:
http://docs.python.org/library/smtplib.html#smtp-example
should be a link to:
http://docs.python.org/library/email-examples.html
I think the smtplib example is bad, since the email gets created with a
string
Thomas Guettler added the comment:
For Python 2.x there is a backport of the subprocess module of 3.x:
https://pypi.python.org/pypi/subprocess32.
It has the timeout argument for call() and pipe.wait().
--
___
Python tracker rep...@bugs.python.org
New submission from Thomas Guettler:
I think the docs of argparse still contain confusing magic:
parser.parse_args('7'.split())
You know what it does and I know it. But a lot of people new to Python, don't
understand what this should be.
Please use:
parser.parse_args(['7'])
Close
New submission from Thomas Guettler:
Imagine you write a small console script which is implemented like a library.
This tool has to do two things: the console script needs to configure the
logging, and the library needs to use it.
The library usage of logging it easy well documented
Thomas Guettler added the comment:
Thank you for reading and replying.
Yes, I wrote no concret proposal up to now.
I have this solutions in mind:
logging.config.defaultConfig()
Related https://docs.python.org/2/library/logging.config.html
Loading a python module
Thomas Guettler added the comment:
Just for the record.
Here are the discussions about this topic on the python-ideas mailing list:
https://mail.python.org/pipermail/python-ideas/2014-May/027839.html
https://mail.python.org/pipermail/python-ideas/2014-May/027858.html
Changes by Thomas Guettler guet...@thomas-guettler.de:
--
nosy: -guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14102
___
___
Python-bugs
Thomas Guettler added the comment:
What kind of patch do you want? Documentation patch or fixing the bug in the
interpreter?
I am not a native speaker, that's why I avoid documentation patches.
For me, the issue is solved. It is documented in stackoverflow and here.
Since Python2
Thomas Guettler added the comment:
The docs should be where new users look.
I don't speak about several hundret words
Where do you think new users look for documentation if they want a method which
does find a module?
--
___
Python tracker
Thomas Guettler added the comment:
In this case I am wearing newbee user glasses.
And with this glasses on my nose, I don't care for implementation.
I am confused that imp module does not work like import foo.
--
___
Python tracker rep
Thomas Guettler added the comment:
Dear Bret Cannon,
I don't ask for egg support in the imp module.
I don't want to change the implemenation of imp.find_module()
I just want to update the docs.
Most people run a python version which supports loading zipped eggs.
Please reopened this, since I
Thomas Guettler added the comment:
Who has enough knowledge of the tarfile module to create a good patch?
--
nosy: +guettli
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24259
Thomas Guettler added the comment:
I thought about this again.
It could be solved with the help of a ByteCountingStreamReader.
With ByteCountingStreamReader I mean a wrapper around a stream like
codescs.StreamReader. But the ByteCountingStreamReader should not changes the
content, but just
Thomas Guettler added the comment:
With Python 3.4.0 you get an OSError if you try to extractall() the uploaded
tar_which_is_cut.tar. That's nice.
Seems like only 2.7 seems to be buggy.
=== python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type help, copyright
New submission from Thomas Guettler:
Quoting Guido van Rossum Aug 20 2015. Thread Properties for classes possible?
https://mail.python.org/pipermail/python-ideas/2015-August/035354.html
{{{
think it's reasonable to propose @classproperty as a patch to CPython. It
needs to be C code. Not sure
New submission from Thomas Guettler:
At the top of the htmllib module:
> Deprecated since version 2.6: The htmllib module has been removed in
> Python 3.
Source: https://docs.python.org/2/library/htmllib.html#module-htmllib
Newcomers need more advice: Which library should be used?
Thomas Guettler added the comment:
This issue is just about documentation. No code change is required for it.
How to update the docs, to point to html.parser?
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Thomas Guettler added the comment:
Thank you for understanding my concern.
> The standard failure message for each *assert method* contains useful
> information about the objects involved. For example the message from
> assertEqual shows the repr of the two unequal objects. It i
New submission from Thomas Guettler:
The first message of the longMessage docs is confusing:
https://docs.python.org/3/library/unittest.html#unittest.TestCase.longMessage
> If set to True then
This reads between the lines, that the default is False.
But that was long ago in Pyth
New submission from Thomas Guettler:
I think a warning at the top of StringIO docs is needed.
And it should link to io.BytesIO.
Maybe even deprecate StringIO and cStringIO in Python2?
StringIO docs: https://docs.python.org/2/library/stringio.html
io.BytesIO docs: https://docs.python.org/2
Thomas Guettler added the comment:
@Mariatta thank you very much. This update makes the docs easy to read and
understand. Thank you :-)
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Thomas Guettler added the comment:
I have the same issue on Python 2.7.12 (Ubuntu 16.04)
I tried to execute tartest.py. But I could not find a way how to create the tar
which is needed for tartest.py.
--
nosy: +guettli
___
Python tracker <
New submission from Thomas Guettler:
AFAIK cls.__subclasses__() only returns the classes which the interpreter has
already loaded.
This means there can be more subclasses in modules where not imported by the
current interpreter up to now.
https://docs.python.org/3.7/library/stdtypes.html
New submission from Thomas Guettler :
Up to now there is no thread way to read the umask in Python
https://stackoverflow.com/questions/53227072/reading-umask-thread-safe
You can use this pattern:
current_umask = os.umask(0) # line1
os.umask(current_umask) # line2
return current_umask
New submission from Thomas Guettler :
Please remove this page or at least the code snippet
containing `from distutils.core import setup`
on this page: https://docs.python.org/3/distutils/setupscript.html
There is the more up to date doc here:
https://packaging.python.org/tutorials/packaging
New submission from Thomas Guettler :
The docs for `mock.call` could get improved:
https://docs.python.org/3/library/unittest.mock.html#call
Up to now it is not clear how to access individual members of the call.
Example: I want to check if the call used the kwarg "foo" with
New submission from Thomas Guettler :
https://docs.python.org/3.10/library/sys.html#sys.settrace
> Trace functions should have three arguments: frame, event, and arg. frame is
> the current stack frame.
It would be super cool, if "current stack frame" could be a hyperlink to
61 matches
Mail list logo