Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue24305>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Thomas Arildsen:
When I run the attached example in Python 2.7.9, it succeeds. In Python 3.4, it
fails as shown below. I use json 2.0.9 and numpy 1.9.2 with both versions of
Python. Python and all packages provided by Anaconda 2.2.0.
The error seems to be caused by the
Thomas Guettler added the comment:
I uploaded a broken tar for testing:
tguettler@aptguettler:~/tmp
===> LANG=C tar -xf tar_which_is_cut.tar
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
tguettler@aptguettler:~/tmp
===> python
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 Petazzoni added the comment:
I confirm seeing the same issue. This patch fixes it.
--
nosy: +thomas-petazzoni
___
Python tracker
<http://bugs.python.org/issue23
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
Thomas Kluyver added the comment:
Thanks, this looks good to me.
--
___
Python tracker
<http://bugs.python.org/issue24420>
___
___
Python-bugs-list mailin
New submission from Thomas Kluyver:
shutil.copytree behaves differently with symlinks depending on the 'symlinks'
parameter. If this is True, symlinks are replicated in the destination. If
False, the contents of the targets are copied to the destination.
With symlinks=False, it
Thomas Kluyver added the comment:
Here's my patch (I submitted the duplicate issue). I think it's functionally
the same as Eduardo's, but it also adds a test.
--
Added file: http://bugs.python.org/file39893/shutil_copytree_sy
New submission from Thomas Krijnen:
Following code crashes my Python 2.7.9 interpreter on Windows:
import os, tempfile
a, b = tempfile.mkstemp()
f = os.fdopen(a, "wb")
f = os.fdopen(a, "wb")
f.write("beer")
f.close()
--
components: Windows
message
Thomas Krijnen added the comment:
Thanks for the feedback. I realize the example code is rather bad, I was just
surprised to see the interpreter actually crash. Good to know in py3 things are
more robust. Closed.
--
resolution: -> not a bug
status: open ->
New submission from Thomas Kluyver:
sysconfig currently calculates various formats of the Python version number by
chopping up the sys.version string. This has a FIXME by it in the code, because
the the format of sys.version is not guaranteed.
With this patch, the config variables 'py_ve
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
Thomas Belhalfaoui added the comment:
Terry: Thanks for the form, I just filled it.
Martin: Thanks for sending your patch. I will dive into it, and try to figure
out how to add support for passing in the tunnel details to the HTTPSConnection
constructor
Thomas Belhalfaoui added the comment:
Martin, I went through your patch and made some simple tests, and I have a
couple of questions.
1) When I run the following code, I get a "Bad file descriptor" :
conn = httplib.HTTPConnection("uk.proxymesh.com", 31280)
conn.set_tunnel(
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
<http://bugs.python.org/issue25
New submission from Thomas Kluyver:
In testing the 3.5.0rc4 default installer, I found that the default for
InstallAllUsers appears to be 0, whereas it's currently documented as 1.
--
assignee: docs@python
components: Documentation
files: installallusers-default.patch
keywords:
Thomas Kluyver added the comment:
I also ran into confusion with this while trying to write an import hook.
Attached is my shot at a docs patch. I've done a slightly larger rewording,
trying to make it easier to understand, and added more links between parts of
the docs.
I left mentio
Thomas Kluyver added the comment:
Updated patch attached, responding to Martin's suggestions.
I'm not quite sure what to do about the 'finder' glossary entry. 'Finder' now
seems to be a more abstract classification covering two distinct kinds of
thing: *meta
Thomas Kluyver added the comment:
That's basically what I was aiming for. Should the description be briefer and
more generic?
--
___
Python tracker
<http://bugs.python.org/is
Thomas Kluyver added the comment:
Third revision of patch responding to Brett's suggestions.
--
Added file: http://bugs.python.org/file41240/finders_and_specs3.patch
___
Python tracker
<http://bugs.python.org/is
Thomas Kluyver added the comment:
Thanks Brett :-)
--
___
Python tracker
<http://bugs.python.org/issue23936>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Levine added the comment:
The error message could just say. something to the effect of ".pypyrc works
differently in Python 2 and Python 3. If you want a percent sign in Python 3,
you have to escape it with another percent sign".
Suppose someone is already using a configur
New submission from Thomas Latimer:
https://www.python.org/doc/av/
I was looking for an audio lecture on python to listen to on my drive. I found
this page, which looked promising, except...
both 'python411' and 'a little bit of python' are broken links.
--
a
New submission from Thomas Jackson:
If a KeyboardInterrupt is received while a worker process is grabbing an item
off of the queue that worker process dies with an uncaught exception. This
means that the ProcessPool now has lost a process, and currently has no
mechanism to recover from dead
Thomas Jackson added the comment:
Seems that I accidentally hit submit, so let me finish the last bit of my
message here:
An alternate approach is to actually change multiprocessing.Queue.get() to
leave the item on the queue if it is interrupted with a keyboard interrupt.
Then the worker
Thomas Jackson added the comment:
Some more investigation, it seems that the alternate `Queue` fix is a
non-starter. From my investigation it seems that the ProcessPoolExecutor is
assuming that multiprocess.Queue is gauranteed delivery, and it isn't (because
of the pickling). So the iss
New submission from Thomas Feldmann:
According to the docs `itertools.repeat(object[, times])` is equivalent to
```
def repeat(object, times=None):
# repeat(10, 3) --> 10 10 10
if times is None:
while True:
yield object
else:
for i in range(ti
Thomas Petazzoni added the comment:
I can confirm that I'm affected by the same issue. Booting a simple Linux
system on a Qemu ARM platform, the python startup hangs during 25 seconds due
to the call to getrandom(). I am not doing anything with Python, just starting
the Python interp
Thomas Petazzoni added the comment:
Obviously I did my math wrong: it waits 45 seconds in getrandom(), not 25
seconds. See my strace log.
--
___
Python tracker
<http://bugs.python.org/issue25
Thomas Arildsen added the comment:
Is there any possibility that json could implement special handling of NumPy
types? This "lack of a feature" seems to have propagated back into Python 2.7
now in some recent update...
--
___
Python trac
Thomas Arildsen added the comment:
Thanks for the clarification.
--
versions: -Python 3.6
___
Python tracker
<http://bugs.python.org/issue24313>
___
___
Pytho
Chris Thomas added the comment:
Added a note to the check list as needed.
--
keywords: +patch
nosy: +Aegil
Added file: http://bugs.python.org/file41567/issue25967.patch
___
Python tracker
<http://bugs.python.org/issue25
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue18595>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Kluyver added the comment:
Attached is a first go at a patch enabling zipfile.open(blah, mode='w')
Files must be written sequentially, so you have to close one writing handle
before opening another. If you try to open a second one before closing the
first, it will raise Runti
Thomas Kluyver added the comment:
zipinfo-from-file.patch has an orthogonal but related change: the code in
ZipFile.write() to construct a ZipInfo object from a filesystem file is pulled
out to a classmethod ZipInfo.from_file().
Together, these changes make it much easier to control how a
Thomas Kluyver added the comment:
For reference, we added our own atomic_writing() context manager in
Jupyter/IPython, after someone lost work when save failed on a full disk. We
initially went for the same approach - write to a temporary file, fsync, rename
over the original file - but it
Thomas Levine added the comment:
I noticed something else that might be interesting.
If I delete my .pypirc and have setuptools create it,
python3.5 -c 'import setuptools; setuptools.setup()' register
the .pypirc is created with the un-escaped percent sign and without error.
I r
Thomas Nyberg added the comment:
I added a patch which causes glob to raise a ValueError exception if it is
called with an empty string. I also added a test verifying the change and have
run all the tests and they pass.
Though I've been reading the developer guide, I'm a bit unfam
Thomas Kluyver added the comment:
Serhiy, any chance you'd have some time to review my patch(es)? Or is there
someone else interested in zipfile I might interest? Thanks :-)
--
___
Python tracker
<http://bugs.python.org/is
Thomas Kluyver added the comment:
Thanks! I will work on docs and tests.
--
___
Python tracker
<http://bugs.python.org/issue26039>
___
___
Python-bugs-list mailin
Changes by Thomas Kluyver :
Added file: http://bugs.python.org/file41722/zipinfo-from-file2.patch
___
Python tracker
<http://bugs.python.org/issue26039>
___
___
Python-bug
Thomas Kluyver added the comment:
The '2' versions of the two different patches include some docs and tests for
these new features.
--
Added file: http://bugs.python.org/file41726/zipfile-open-w2.patch
___
Python tracker
<http://bu
Changes by Thomas Kluyver :
Added file: http://bugs.python.org/file41753/zipinfo-from-file3.patch
___
Python tracker
<http://bugs.python.org/issue26039>
___
___
Python-bug
Thomas Kluyver added the comment:
Here's a new version of the zf.open() patch following Martin's review (thanks
Martin!).
I agree that it feels a bit awkward having two completely different actions for
zf.open(), but it is a familiar interface, and since the mode parameter is
alr
Thomas Kluyver added the comment:
Thanks Serhiy for review comments.
--
Added file: http://bugs.python.org/file41754/zipinfo-from-file4.patch
___
Python tracker
<http://bugs.python.org/issue26
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue26185>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Kluyver added the comment:
Updated version of the ZipInfo.from_file() patch attached.
--
Added file: http://bugs.python.org/file41758/zipinfo-from-file5.patch
___
Python tracker
<http://bugs.python.org/issue26
Thomas Kluyver added the comment:
Thanks Martin for more review; updated open-to-write patch attached.
--
Added file: http://bugs.python.org/file41759/zipfile-open-w4.patch
___
Python tracker
<http://bugs.python.org/issue26
Thomas Caswell added the comment:
I do not think that readline-cancel.patch is sufficient. The clean up function
that readline uses internally
(http://git.savannah.gnu.org/cgit/readline.git/tree/isearch.c#n720 ) also
cleans up the context that used by isearch.
The functions to cleanup the
Thomas Caswell added the comment:
For reference https://github.com/ludwigschwardt/python-gnureadline/pull/47 is
what a back-port of the functionality looks like.
--
___
Python tracker
<http://bugs.python.org/issue24
Thomas Kluyver added the comment:
Is there anything more I should be doing with either of these patches? I think
I've incorporated all review comments I've seen. Thanks!
--
___
Python tracker
<http://bugs.python.o
Thomas Kluyver added the comment:
This issue was closed, but I believe the original bug reported was not fixed:
trying to create a temporary file in a directory where you don't have write
permissions hangs for a long time before failing with a misleading
FileExistsError, rather than fa
Thomas Kluyver added the comment:
Thanks Serhiy! I'll keep an eye out for comments on the other patch.
--
___
Python tracker
<http://bugs.python.org/is
New submission from Thomas Führinger:
I would like to use the new embedded distribution and load-time link to
python35.dll. It would make things a lot easier if you could also include
python35.lib in the file python-3.5.1-embed-win32.zip.
--
components: Installation
messages: 260176
Thomas Kluyver added the comment:
Hi Serhiy, any more comments on the zf.open() patch?
--
___
Python tracker
<http://bugs.python.org/issue26039>
___
___
Python-bug
Thomas Kluyver added the comment:
Ping! ;-)
--
___
Python tracker
<http://bugs.python.org/issue26039>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Kluyver added the comment:
My initial patch would have allowed passing a readable file-like object into
zipfile. I was persuaded that allowing ZipFile.open() to return a writable
object was a more intuitive and flexible API.
Concurrent writes with zf.open(mode='w') should be
Thomas Kluyver added the comment:
Oh, I see test_interleaved now, which does test overlapping reads of two files
from the same zip file.
Do you want that clarified in the docs - which don't currently mention the lock
at all - or in a comment in the m
New submission from Thomas Güttler:
The current docs for Python2, don't explain how to handle unicode:
https://docs.python.org/2/library/urllib.html#urllib.urlencode
It seems to be a common problem. See
http://stackoverflow.com/questions/6480723/urllib-urlencode-doesnt-like-unicode-value
Thomas Kluyver added the comment:
Serhiy, have you had a chance to look at what the zf.open(mode='w') patch does
with the lock?
--
___
Python tracker
<http://bugs.python.o
New submission from Thomas Waldmann:
platform.libc_ver() is trivially broken as it uses string comparison internally
to determine the maximum libc version number (which is obviously broken as
"2.9" > "2.10").
--
components: Library (Lib)
messages: 261624
nosy: T
New submission from Thomas Waldmann:
os.walk calls itself recursively and that limits the directory depth it can
"walk" into.
On Linux, one can create directory hierarchies deeper than that.
For some more details see there:
https://github.com/borgbackup/borg/issues/380
--
Thomas Waldmann added the comment:
Note: similar issues can be seen in other stdlib recursive filesystem-related
functions also.
--
___
Python tracker
<http://bugs.python.org/issue26
Thomas Caswell added the comment:
I do not think this got reported to mpl, is a year and a half old, and has no
example, probably can be closed.
--
nosy: +tcaswell
___
Python tracker
<http://bugs.python.org/issue22
Thomas Kluyver added the comment:
Sorry for the delay, this fell off my radar because emails from both the bug
tracker and Rietveld tend to fall foul of my spam filters, so I have to go and
check.
I have implemented Serhiy's suggestions, but there turns out to be a
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 Kluyver added the comment:
Martin, Serhiy: Am I right that it would be unacceptable to change the test,
and I therefore need to find a way to allow writestr while a reading-mode
handle is open?
--
___
Python tracker
<http://bugs.python.
Thomas Kluyver added the comment:
It wasn't as bad as I thought (hopefully that doesn't mean I've missed
something). zipfile-open-w6.patch allows interleaved reads and writes so long
as the underlying file object is seekable.
You still can't have multiple write handles op
Thomas Kluyver added the comment:
zipfile-open-w7 adds a test that Martin requested
--
Added file: http://bugs.python.org/file42597/zipfile-open-w7.patch
___
Python tracker
<http://bugs.python.org/issue26
Thomas Kluyver added the comment:
zipfile-open-w8 removes the concurrent read-write check for non-seekable files.
As Martin points out, reading currently requires seeking, and a streaming read
API would look very different from the current API.
--
Added file: http://bugs.python.org
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 Python2.
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
Thomas Kluyver added the comment:
Any further review comments on this?
--
___
Python tracker
<http://bugs.python.org/issue26039>
___
___
Python-bugs-list mailin
Thomas D. added the comment:
Yep, I agree with you. This can be closed.
Thanks to your clarification the problem could be resolved upstream.
The udev problem was resolved in https://github.com/systemd/systemd/issues/190
and the PHP problem has a pending PR https://github.com/php/php-src/pull
Thomas Kluyver added the comment:
Ping? Once this is landed, I intend to make a backport package of it so I can
start using it before Python 3.6 comes out.
--
___
Python tracker
<http://bugs.python.org/issue26
Thomas Kluyver added the comment:
Thanks Serhiy. I'm quite happy with that set of constraints. I had a look over
your patch set, and just spotted one thing in writestr that I have overlooked
all along.
--
___
Python tracker
<http://bugs.py
Thomas Kluyver added the comment:
Thanks Serhiy! I am marking this as fixed.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Thomas Kluyver added the comment:
1. For the cases like read/write handles conflicting, ValueError doesn't seem
quite right to me - I take ValueError to mean that you have passed an invalid
value to a function. RuntimeError feels like the closest fit for 'the current
state does not
Thomas Kluyver added the comment:
Patch attached for points 2 and 3
--
Added file: http://bugs.python.org/file42851/zipfile-flex-bonus.patch
___
Python tracker
<http://bugs.python.org/issue26
Thomas Kluyver added the comment:
Updated version of the patch with the detail moved to rst.
--
Added file: http://bugs.python.org/file42855/zipfile-flex-bonus2.patch
___
Python tracker
<http://bugs.python.org/issue26
Thomas Kluyver added the comment:
The backported package now exists on PyPI as zipfile36. It's passing the tests
on 3.4 - I haven't tested further back. I'm trying out Gitlab for hosting it:
https://gitlab.com/takluyver/zipfile36
--
___
Thomas Kluyver added the comment:
I'm obviously biased, but I find the 'high level convenience API' less
convenient than the run() function: there are three different functions for the
same basic operation, they're not clearly named (check_output is nothing to do
with c
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue27113>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Bartelmess added the comment:
The datagram handler seems still not useable with IPv6 in Python 3.4. Is this
patch still under consideration ?
--
nosy: +Thomas Bartelmess
___
Python tracker
<http://bugs.python.org/issue14
Thomas Roos added the comment:
works for me
--
___
Python tracker
<http://bugs.python.org/issue23330>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Kluyver added the comment:
Is there anything further I should be doing for this?
--
___
Python tracker
<http://bugs.python.org/issue23342>
___
___
Pytho
Thomas Petazzoni added the comment:
@Mark I would be happy to, but if you refer to the previous discussion about
this bug report, the feedback was quite negative. And since I'm not really
willing to do some clean up to finally get the patches rejected, I'd like to at
least
New submission from Thomas Kluyver:
Issue #22599 changed tokenize.open() from using builtins.open() to having a
module-level reference to _builtin_open, stored by doing _builtin_open = open.
However, on reloading the module, _builtin_open is pointed to tokenize.open
from the last execution of
Thomas Kluyver added the comment:
Someone on reddit ran into this, expecting that linecache can be used for an
arbitrary text file:
http://www.reddit.com/r/Python/comments/2yetxc/utf8_encoding_problems/
I was quite surprised that the docs say "allows one to get any line from any
file.&
New submission from Thomas Güttler:
Please update the docs of imp.find_module()
https://docs.python.org/2/library/imp.html#imp.find_module
zipped egg files in sys.path are not found.
Please provide a link how to find modules in sys.path like the interpreter does
(with support of zipped egg
Thomas Kluyver added the comment:
Patch attached to fix this.
--
keywords: +patch
Added file: http://bugs.python.org/file38423/tokenize-reloadable.patch
___
Python tracker
<http://bugs.python.org/issue23
Thomas Kluyver added the comment:
First attempt at describing this attached.
--
keywords: +patch
Added file: http://bugs.python.org/file38424/linecache-encoding-doc.patch
___
Python tracker
<http://bugs.python.org/issue11
Thomas Kluyver added the comment:
-B.patch as Serhiy suggests, for tokenize only for the time being.
--
Added file: http://bugs.python.org/file38425/tokenize-reloadable-B.patch
___
Python tracker
<http://bugs.python.org/issue23
Thomas Kluyver added the comment:
Fixed the other three cases you pointed out (-B2.patch).
--
Added file: http://bugs.python.org/file38426/tokenize-reloadable-B2.patch
___
Python tracker
<http://bugs.python.org/issue23
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 thi
New submission from Thomas Kluyver:
I'm pretty sure the distutils docs for Python 3.4 don't need to describe how to
make packages compatible with Python < 2.2.3.
I know that these docs are deprecated in favour of the Python packaging guide,
but I still look at them at times
Thomas Kluyver added the comment:
Anything else I should be doing here?
--
___
Python tracker
<http://bugs.python.org/issue11726>
___
___
Python-bugs-list mailin
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
1601 - 1700 of 1806 matches
Mail list logo