[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-05-27 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue24305> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24313] json fails to serialise numpy.int64

2015-05-28 Thread Thomas Arildsen
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

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-28 Thread Thomas Guettler
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

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-28 Thread Thomas Guettler
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

[issue23767] Library and include paths not added when cross compiling on localized sytem

2015-05-29 Thread Thomas Petazzoni
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

[issue24259] tar.extractall() does not recognize unexpected EOF

2015-05-30 Thread Thomas Guettler
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

[issue24420] Documentation regressions from adding subprocess.run()

2015-06-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Thanks, this looks good to me. -- ___ Python tracker <http://bugs.python.org/issue24420> ___ ___ Python-bugs-list mailin

[issue24609] shutil.copytree fails with symlinks to directories when symlink=False

2015-07-10 Thread Thomas Kluyver
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

[issue21697] shutil.copytree() handles symbolic directory incorrectly

2015-07-10 Thread Thomas Kluyver
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

[issue24716] Multiple fdopen() on mkstemp() descriptor crashes py27 interpreter

2015-07-25 Thread Thomas Krijnen
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

[issue24716] Multiple fdopen() on mkstemp() descriptor crashes py27 interpreter

2015-07-26 Thread Thomas Krijnen
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 ->

[issue24916] In sysconfig, don't rely on sys.version format

2015-08-22 Thread Thomas Kluyver
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

[issue24941] classproperty

2015-08-26 Thread Thomas Guettler
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

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-05 Thread Thomas Belhalfaoui
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

[issue24964] Add tunnel CONNECT response headers to httplib / http.client

2015-09-06 Thread Thomas Belhalfaoui
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(

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-09-07 Thread Thomas Guettler
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?

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-09-07 Thread Thomas Guettler
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

[issue25078] Document InstallAllUsers installer parameter default 0

2015-09-12 Thread Thomas Kluyver
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:

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-12-03 Thread Thomas Kluyver
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

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-12-04 Thread Thomas Kluyver
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

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-12-04 Thread Thomas Kluyver
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

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-12-04 Thread Thomas Kluyver
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

[issue23936] Wrong references to deprecated find_module instead of find_spec

2015-12-04 Thread Thomas Kluyver
Thomas Kluyver added the comment: Thanks Brett :-) -- ___ Python tracker <http://bugs.python.org/issue23936> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2015-12-14 Thread Thomas Levine
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

[issue25877] python av docs has broken links

2015-12-15 Thread Thomas Latimer
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

[issue25908] ProcessPoolExecutor deadlock on KeyboardInterrupt

2015-12-18 Thread Thomas Jackson
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

[issue25908] ProcessPoolExecutor deadlock on KeyboardInterrupt

2015-12-18 Thread Thomas Jackson
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

[issue25908] ProcessPoolExecutor deadlock on KeyboardInterrupt

2015-12-18 Thread Thomas Jackson
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

[issue25926] problems with "times" keyword in itertools.repeat

2015-12-22 Thread Thomas Feldmann
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

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2015-12-23 Thread Thomas Petazzoni
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

[issue25420] "import random" blocks on entropy collection on Linux with low entropy

2015-12-23 Thread Thomas Petazzoni
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

[issue24313] json fails to serialise numpy.int64

2016-01-04 Thread Thomas Arildsen
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

[issue24313] json fails to serialise numpy.int64

2016-01-04 Thread Thomas Arildsen
Thomas Arildsen added the comment: Thanks for the clarification. -- versions: -Python 3.6 ___ Python tracker <http://bugs.python.org/issue24313> ___ ___ Pytho

[issue25967] Devguide: add 2to3 to the "Changing CPython's Grammar" checklist

2016-01-10 Thread Chris Thomas
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

[issue18595] zipfile: symlinks etc.

2016-01-15 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue18595> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26039] More flexibility in zipfile interface

2016-01-15 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile interface

2016-01-17 Thread Thomas Kluyver
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

[issue8604] Adding an atomic FS write API

2016-01-20 Thread Thomas Kluyver
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

[issue20120] Percent-signs (%) in .pypirc should not be interpolated

2016-01-22 Thread Thomas Levine
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

[issue23076] list(pathlib.Path().glob("")) fails with IndexError

2016-01-23 Thread Thomas Nyberg
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

[issue26039] More flexibility in zipfile interface

2016-01-26 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile interface

2016-01-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: Thanks! I will work on docs and tests. -- ___ Python tracker <http://bugs.python.org/issue26039> ___ ___ Python-bugs-list mailin

[issue26039] More flexibility in zipfile interface

2016-01-26 Thread Thomas Kluyver
Changes by Thomas Kluyver : Added file: http://bugs.python.org/file41722/zipinfo-from-file2.patch ___ Python tracker <http://bugs.python.org/issue26039> ___ ___ Python-bug

[issue26039] More flexibility in zipfile interface

2016-01-27 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile interface

2016-01-29 Thread Thomas Kluyver
Changes by Thomas Kluyver : Added file: http://bugs.python.org/file41753/zipinfo-from-file3.patch ___ Python tracker <http://bugs.python.org/issue26039> ___ ___ Python-bug

[issue26039] More flexibility in zipfile interface

2016-01-29 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile interface

2016-01-29 Thread Thomas Kluyver
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

[issue26185] zipfile.ZipInfo slots can raise unexpected AttributeError

2016-01-30 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue26185> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26039] More flexibility in zipfile interface

2016-01-30 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile interface

2016-01-30 Thread Thomas Kluyver
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

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-01-31 Thread Thomas Caswell
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

[issue24266] raw_input + readline: Ctrl+C during search breaks readline

2016-01-31 Thread Thomas Caswell
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

[issue26039] More flexibility in zipfile interface

2016-02-04 Thread Thomas Kluyver
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

[issue22107] tempfile module misinterprets access denied error on Windows

2016-02-04 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile interface

2016-02-08 Thread Thomas Kluyver
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

[issue26349] Ship python35.lib with the embedded distribution, please

2016-02-12 Thread Thomas Führinger
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

[issue26039] More flexibility in zipfile interface

2016-02-15 Thread Thomas Kluyver
Thomas Kluyver added the comment: Hi Serhiy, any more comments on the zf.open() patch? -- ___ Python tracker <http://bugs.python.org/issue26039> ___ ___ Python-bug

[issue26039] More flexibility in zipfile interface

2016-02-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Ping! ;-) -- ___ Python tracker <http://bugs.python.org/issue26039> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26039] More flexibility in zipfile interface

2016-02-24 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile interface

2016-02-24 Thread Thomas Kluyver
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

[issue26433] urllib.urlencode() does not explain how to handle unicode

2016-02-25 Thread Thomas Güttler
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

[issue26039] More flexibility in zipfile interface

2016-03-03 Thread Thomas Kluyver
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

[issue26544] platform.libc_ver() returns incorrect version number

2016-03-11 Thread Thomas Waldmann
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

[issue26545] os.walk is limited by python's recursion limit

2016-03-11 Thread Thomas Waldmann
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 --

[issue26545] os.walk is limited by python's recursion limit

2016-03-11 Thread Thomas Waldmann
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

[issue22757] TclStackFree: incorrect freePtr. Call out of sequence?

2016-04-02 Thread Thomas Caswell
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

[issue26039] More flexibility in zipfile write interface

2016-04-05 Thread Thomas Kluyver
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

[issue26817] Docs for StringIO should link to io.BytesIO

2016-04-21 Thread Thomas Guettler
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

[issue26039] More flexibility in zipfile write interface

2016-04-23 Thread Thomas Kluyver
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.

[issue26039] More flexibility in zipfile write interface

2016-04-25 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile write interface

2016-04-26 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile write interface

2016-04-26 Thread Thomas Kluyver
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

[issue26869] unittest longMessage docs

2016-04-27 Thread Thomas Guettler
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.

[issue26869] unittest longMessage docs

2016-04-28 Thread Thomas Guettler
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

[issue26039] More flexibility in zipfile write interface

2016-05-03 Thread Thomas Kluyver
Thomas Kluyver added the comment: Any further review comments on this? -- ___ Python tracker <http://bugs.python.org/issue26039> ___ ___ Python-bugs-list mailin

[issue23213] subprocess communicate() hangs when stderr isn't closed

2016-05-09 Thread Thomas D.
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

[issue26039] More flexibility in zipfile write interface

2016-05-10 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile write interface

2016-05-12 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile write interface

2016-05-14 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile write interface

2016-05-14 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile write interface

2016-05-14 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile write interface

2016-05-15 Thread Thomas Kluyver
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

[issue26039] More flexibility in zipfile write interface

2016-05-15 Thread Thomas Kluyver
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 -- ___

[issue27050] Demote run() below the high level APIs in subprocess docs

2016-05-18 Thread Thomas Kluyver
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

[issue27113] sqlite3 connect parameter "check_same_thread" not documented

2016-05-25 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue27113> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14855] IPv6 support for logging.handlers

2015-02-26 Thread Thomas Bartelmess
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

[issue23330] h2py.py regular expression missing

2015-03-02 Thread Thomas Roos
Thomas Roos added the comment: works for me -- ___ Python tracker <http://bugs.python.org/issue23330> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23342] run() - unified high-level interface for subprocess

2015-03-02 Thread Thomas Kluyver
Thomas Kluyver added the comment: Is there anything further I should be doing for this? -- ___ Python tracker <http://bugs.python.org/issue23342> ___ ___ Pytho

[issue20210] Provide configure options to enable/disable Python modules and extensions

2015-03-03 Thread Thomas Petazzoni
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

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-08 Thread Thomas Kluyver
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

[issue11726] linecache becomes specific to Python scripts in Python 3

2015-03-09 Thread Thomas Kluyver
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.&

[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-10 Thread Thomas Güttler
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

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
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

[issue11726] clarify that linecache only works on files that can be decoded successfully

2015-03-10 Thread Thomas Kluyver
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

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
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

[issue23615] Reloading tokenize breaks tokenize.open()

2015-03-10 Thread Thomas Kluyver
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

[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-11 Thread Thomas Guettler
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

[issue23682] distutils docs still talk about compatibility with Python 2.2

2015-03-16 Thread Thomas Kluyver
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

[issue11726] clarify that linecache only works on files that can be decoded successfully

2015-03-16 Thread Thomas Kluyver
Thomas Kluyver added the comment: Anything else I should be doing here? -- ___ Python tracker <http://bugs.python.org/issue11726> ___ ___ Python-bugs-list mailin

[issue23625] load_module() docs: zipped eggs are not loaded.

2015-03-17 Thread Thomas Guettler
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

<    12   13   14   15   16   17   18   19   >