[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-09 Thread Thomas Heller
Thomas Heller added the comment: > Thomas, it seems this change doesn't work for py3k. Buildbots complain and my > working copy does as well. > > Example: > > http://www.python.org/dev/buildbot/all/builders/x86%20gentoo%203.1/builds/990 I do not know why this ha

[issue28494] is_zipfile false positives

2016-11-26 Thread Thomas Waldmann
Thomas Waldmann added the comment: Well, if you have a better idea how to fix is_zipfile, go on. I even suggested an alternative, how about that? It is a miserable state when the is_zipfile function in the stdlib detects random crap as a zip file

[issue28835] Change in behavior when overriding warnings.showwarning and with catch_warnings(record=True)

2016-11-29 Thread Thomas Robitaille
New submission from Thomas Robitaille: In Python 3.5, the following code: import warnings def deal_with_warning(*args, **kwargs): print("warning emitted") with warnings.catch_warnings(record=True): warnings.showwarning = deal_with_warning war

[issue29031] 'from module import *' and __all__

2016-12-21 Thread Thomas Heller
New submission from Thomas Heller: The documentation states that 'from module import *' imports all symbols that are listed in the module's __all__ list. In Python 3, unlike Python 2, only symbols that do NOT start with an underscore are actually imported. The following code

[issue29031] 'from module import *' and __all__

2016-12-21 Thread Thomas Heller
Thomas Heller added the comment: Thanks Martin and eryk for correcting me and finding the real cause of the problem. Am 21.12.2016 um 13:04 schrieb eryk sun: > ... the private names _COORD, _FILETIME, _LARGE_INTEGER, > _POINTL, _RECTL, _SMALL_RECT, and _ULARGE_INTEGER are skipped by a

[issue29142] urllib: no_proxy variable values with leading dot not properly handled

2017-01-03 Thread Thomas Loetzer
New submission from Thomas Loetzer: Hi, the fix for issue 26864 changed the behavior of urllib for no_proxy values with a leading dot to no longer match anything. This seems to be caused by always adding an additional dot between the hostname being checked and the entry. Example: no_proxy

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-10 Thread Thomas Nyberg
Thomas Nyberg added the comment: I'm attaching a small patch (against the current hg master branch) that I believe solves the problem, however, I think it was quite hacky. Here is a walk-through of the logic. 1) If '--system-site-packages' is requested, then it is overrided in

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-10 Thread Thomas Nyberg
Thomas Nyberg added the comment: Now that I look over this thread again, I realize that my patch ended up basically evolving to being extremely similar to Mark Haase's. The only thing that I don't understand though is that he says that his shebangs are somehow messed up. For me th

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-11 Thread Thomas Nyberg
Thomas Nyberg added the comment: Hi Mark Haase, I've gone through both of your patches and they both work for me as they should. I'm not sure why the first one isn't working for you, since it works for me. That one seems like it's solving the problem the "right"

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-12 Thread Thomas Nyberg
Changes by Thomas Nyberg : Removed file: http://bugs.python.org/file46250/venv_site_packages.patch ___ Python tracker <http://bugs.python.org/issue24875> ___ ___ Pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-12 Thread Thomas Nyberg
Thomas Nyberg added the comment: Hi Vinay, I just checked and yes that code works fine on my end (debian 8 box). Personally, I think either this or Mark's second patch would be fine. Cheers, Thomas -- ___ Python tracker <http://bugs.py

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-01-13 Thread Thomas Nyberg
Thomas Nyberg added the comment: Hi Vinay, You should probably upload a patch with the changes you made (however trivial) if you want that version considered. Makes it easier to comment and can then point to it for others to consider. Cheers, Thomas

[issue29294] ctypes.windll.LoadLibrary refuses unicode argument

2017-01-17 Thread Thomas Heller
New submission from Thomas Heller: ctypes.windll.LoadLibrary refuses unicode argument; this is a regression in Python 2.7.13: Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or

[issue29294] ctypes.windll.LoadLibrary refuses unicode argument

2017-01-17 Thread Thomas Heller
Thomas Heller added the comment: Yes, seems that it is fixed in the repository. So I have to use 2.7.12 or wait for 2.7.14. Thanks! -- ___ Python tracker <http://bugs.python.org/issue29

[issue29294] ctypes.windll.LoadLibrary refuses unicode argument

2017-01-17 Thread Thomas Heller
Changes by Thomas Heller : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue29294> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue13285] signal module ignores external signal changes

2017-01-19 Thread Thomas Kluyver
Thomas Kluyver added the comment: I'd like to make the case for a fix in the code again. Our use case is, I believe, the same as Vilya's. We want to temporarily set a signal handler from Python and then restore the previous handler. This is fairly straightforward for Python handler

[issue13285] signal module ignores external signal changes

2017-01-25 Thread Thomas Kluyver
Thomas Kluyver added the comment: I pitched both the opaque handle and the context manager to python-ideas, but didn't get any responses, positive or negative. -- ___ Python tracker <http://bugs.python.org/is

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-12 Thread Thomas Caswell
Thomas Caswell added the comment: I agree this is very confusing (and in fact confused me for about an hour between getting import errors, double checking the docs, checking I was in the right env, double checking the docs, checking the source of my env, double checking the docs, checking the

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-12 Thread Thomas Caswell
Changes by Thomas Caswell : -- pull_requests: +50 ___ Python tracker <http://bugs.python.org/issue29481> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29481] 3.6.0 doc describes 3.6.1 feature - typing.Deque

2017-02-14 Thread Thomas Caswell
Thomas Caswell added the comment: I am not optimistic about the speed at which my employer will get this sorted out. better to just fix it and drop my commit! On Tue, Feb 14, 2017, 23:43 Mariatta Wijaya wrote: Mariatta Wijaya added the comment: Thanks, Raymond :) I prepared the pull

[issue29622] ast module doesn't support optional fields of Parser/Python.asdl

2017-02-22 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker <http://bugs.python.org/issue29622> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27113] sqlite3 connect parameter "check_same_thread" not documented

2016-06-02 Thread Thomas Kluyver
Thomas Kluyver added the comment: Having watched the video of Dave's PyCon talk (thanks Dave), I think he's talking about using locking to control transactions, which presumably the sqlite bindings don't handle by themselves. But I don't *think* you need manual lock

[issue27113] sqlite3 connect parameter "check_same_thread" not documented

2016-06-02 Thread Thomas Kluyver
Thomas Kluyver added the comment: That comment contained far too much 'probably'. Time for me to sleep... -- ___ Python tracker <http://bugs.python.o

[issue27113] sqlite3 connect parameter "check_same_thread" not documented

2016-06-03 Thread Thomas Kluyver
Thomas Kluyver added the comment: Congrats! :-) -- ___ Python tracker <http://bugs.python.org/issue27113> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2016-06-06 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: Hello, On Sat, 04 Jun 2016 23:33:00 +, Matthias Klose wrote: > fyi, this came up again at the 2016 Language Summit, the request here > was to provide some minimal packages which are just enough to run a > cloud image (the cloud-init package r

[issue26839] Python 3.5 running on Linux kernel 3.17+ can block at startup or on importing the random module on getrandom()

2016-06-07 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: The original problem is that Python wants to generate random numbers at *startup*. Are those random numbers really used for crypto-related activities? I doubt it. So isn't the proper solution to have two functions, one delivering random numbers tha

[issue27390] state of the 3.3 branch unclear

2016-06-26 Thread Thomas Klausner
New submission from Thomas Klausner: https://www.python.org/dev/peps/pep-0398/ mentions that a 3.3.7 release was planned for February 27, 2016. It appears this never happened. It also mentions that there will be source-only security updates for 3.3.x until September 2017. However, it appears

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: As far as I know it has not been fixed. -- ___ Python tracker <http://bugs.python.org/issue23395> ___ ___ Python-bugs-list mailin

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: It's waiting for someone to make a patch - I'm no longer running into it, so it's not high on my priority list. Given that it's been over a year since I created this issue, it's probably not about to get fixed unless you'v

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2016-06-26 Thread Thomas Kluyver
Thomas Kluyver added the comment: Does Py_DECREF(arglist); need to be called in all cases? I'm genuinely unsure, as I don't usually work on C code, but my guess would be that it does. I'm not sure whether review is now done on Github. -- ___

[issue27417] Call CoInitializeEx on startup

2016-07-01 Thread Thomas Heller
Changes by Thomas Heller : -- nosy: +theller ___ Python tracker <http://bugs.python.org/issue27417> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

2016-07-01 Thread Thomas Heller
Changes by Thomas Heller : -- nosy: +theller ___ Python tracker <http://bugs.python.org/issue26137> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27490] ARM cross-compile: pgen built without $(CFLAGS) as $(LIBRARY) dependency

2016-07-11 Thread Thomas Perl
New submission from Thomas Perl: Problem description: Trying to cross-compile $(LIBRARY) (libpython2.7.a for example) causes "pgen" to be built, even when it's not used in the cross-compilation case (only a file copy is done to generate $(GRAMMAR_H) and $(GRAMMAR_C)). The c

[issue27490] ARM cross-compile: pgen built without $(CFLAGS) as $(LIBRARY) dependency

2016-07-11 Thread Thomas Perl
Thomas Perl added the comment: Also related: https://bugs.python.org/issue22359 -- ___ Python tracker <http://bugs.python.org/issue27490> ___ ___ Python-bug

[issue27490] ARM cross-compile: pgen built without $(CFLAGS) as $(LIBRARY) dependency

2016-07-13 Thread Thomas Perl
Thomas Perl added the comment: Yes setting "CC" would fix the problem, but i guess the CFLAGS issue was just the original symptom (and my first reaction to fixing it), whereas the underlying problem is that pgen gets built in cases where it shouldn't be built at all. The solu

[issue27490] ARM cross-compile: pgen built without $(CFLAGS) as $(LIBRARY) dependency

2016-07-13 Thread Thomas Perl
Thomas Perl added the comment: Adding "-mfloat-abi=hard" to LDFLAGS fixes the issue for me, and also allows $(BUILDPYTHON) to be built correctly in addition to $(PGEN). So I guess the resolution to this issue is "works for me" (with setting CC or LDFLAGS properly for cro

[issue27490] Do not run pgen when it is not going to be used (cross-compiling)

2016-07-22 Thread Thomas Perl
Thomas Perl added the comment: Repurposing this bug as "do not run pgen". Documenting and using 'make PGEN_DEP=""' might also work; however, given that the configure script uses autoconf, and there's also code in place for PYTHON_FOR_BUILD, I've attache

[issue27641] Do not build Programs/_freeze_importlib when cross-compiling

2016-07-28 Thread Thomas Perl
New submission from Thomas Perl: Based on http://bugs.python.org/issue27490 and http://bugs.python.org/msg271495, here is a patch that makes sure Programs/_freeze_importlib is only built when not cross-compiling. -- components: Cross-Build files: python-freeze-importlib-cross

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: I can also say that in the Buildroot project, we have patches to get rid of the PEP3147 stuff. Indeed, the PEP3147 forces one to have both the .py *and* the .pyc file for a given module. If you have only the .pyc file, Python does not recognize it and it

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: See https://git.buildroot.org/buildroot/tree/package/python3/0016-Add-importlib-fix-for-PEP-3147-issue.patch -- ___ Python tracker <http://bugs.python.org/issue26

[issue27640] add the '--disable-test-suite' option to configure

2016-07-28 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: We have a similar patch in Buildroot (see https://git.buildroot.org/buildroot/tree/package/python3/0017-Add-an-option-to-disable-installation-of-test-module.patch) so we would be very happy to see this patch merged. Note that we also have many more patches

[issue26852] add the '--enable-legacy-pyc-files' option to configure

2016-07-28 Thread Thomas Petazzoni
Thomas Petazzoni added the comment: No, if you remove PEP3147 (like the Buildroot patch does), and install only the .pyc files, you have a smaller Python installation, and nothing gets "re-generated", since what you already have are the .pyc files. The .py files are not even instal

[issue27641] Do not build Programs/_freeze_importlib when cross-compiling

2016-07-31 Thread Thomas Perl
Thomas Perl added the comment: +1 on comment-out-regen.patch, makes things much cleaner and removes the shell "if" in the rule body. Just a small bikeshed issue: Instead of COMMENT_REGEN, maybe call it "CROSS_COMPILE_COMMENT" or "GENERATED_COMMENT" or "COMME

[issue17061] tokenize unconditionally emits NL after comment lines & blank lines

2013-02-13 Thread Thomas Kluyver
Thomas Kluyver added the comment: Hmm, that's interesting. For our purposes, a blank line or a comment line shouldn't result in a continuation prompt. This is consistent with what the plain Python shell does. As part of this, we're tokenizing the code, and if the final \n

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-02-18 Thread Thomas Kluyver
Thomas Kluyver added the comment: Updated version of the patch. Changed from review: - Included test.bytecode_helper module used by some tests - Updated docs to indicate that the changes are new in 3.4 - ByteCode -> Bytecode - Added meaningful repr for Bytecode Still to do: - ? Re-exp

[issue17289] readline.set_completer_delims() doesn't play well with others

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

[issue16851] Hint about correct ismethod and isfunction usage

2013-03-04 Thread Thomas Kluyver
Thomas Kluyver added the comment: I agree that the docs for inspect.ismethod() for Python 2 are wrong. The docs say: "Return true if the object is a bound method written in Python." However, it also returns True for an unbound method: >>> class A: ... def meth(self

[issue17378] Document that ctypes automatically applies byref() when argtypes declares POINTER

2013-03-07 Thread Thomas Heller
Thomas Heller added the comment: Patch looks good. Please apply. -- ___ Python tracker <http://bugs.python.org/issue17378> ___ ___ Python-bugs-list mailin

[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.

2013-03-13 Thread Thomas Wouters
New submission from Thomas Wouters: Similar to http://bugs.python.org/issue14509, Python 3.3 conflates Py_DEBUG and non-NDEBUG builds, creating build failures when building with 'CFLAGS=-UNDEBUG ./configure --without-pydebug'. (assert statements are only compiled out when NDEBUG i

[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.

2013-03-15 Thread Thomas Wouters
Thomas Wouters added the comment: Yes, I already had the same kinds of failures fixed for 3.2, before; this only affects 3.3 and later. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.

2013-03-15 Thread Thomas Wouters
Thomas Wouters added the comment: Unfortunately there is no "release mode". There's Py_DEBUG mode, and the absence of Py_DEBUG. And there's NDEBUG, and the absence of NDEBUG, which controls the assert macro. Py_DEBUG unsets NDEBUG, but *not* setting Py_DEBUG doesn't

[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-15 Thread Thomas Wouters
New submission from Thomas Wouters: In response to a question asked at Brett Cannon's Python 3.3 talk at PyCon, it occurs to me the iterators in the itertools module should participate in generator sending, so that you can do this: def report_first_ten(g): s = itertools.islice(

[issue7898] rlcompleter add "real tab" when text is empty feature

2013-03-18 Thread Thomas Fenzl
Thomas Fenzl added the comment: It's not (easily) possible to get the invoked character that caused the completion function. Multiple keys can be bound to complete and the bindable function rl_complete provided in libreadline does not forward the invoking key to rl_complete_internal, th

[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-18 Thread Thomas Wouters
Thomas Wouters added the comment: After writing a simplistic implementation of this for itertools.islice, I'm not sure if this is actually useful. While it's nice for symmetry, I have a hard time imagining how to use it -- so I can't write tests for the new feature, and it may

[issue5045] imaplib should remove length of literal strings

2013-03-18 Thread Thomas Fenzl
Thomas Fenzl added the comment: that change would require a new interface. Since there is a drop-in threaded implementation of imaplib (imaplib2) and a higher-level wrapper (imapclient) which uses imaplib2 if available and falls back to imaplib if not, I think it is better to fully revise the

[issue17484] add tests for getpass

2013-03-19 Thread Thomas Fenzl
Changes by Thomas Fenzl : -- components: Tests nosy: Thomas Fenzl priority: normal severity: normal status: open title: add tests for getpass type: enhancement versions: Python 3.4 ___ Python tracker <http://bugs.python.org/issue17

[issue17484] add tests for getpass

2013-03-19 Thread Thomas Fenzl
New submission from Thomas Fenzl: This is a patch adding tests for the platform independend and unix specific parts of getpass. I also default initialized passwd in unix_getpass. Otherwise almost all tests would require full mocking of termios settings and such. -- keywords: +patch

[issue17484] add tests for getpass

2013-03-19 Thread Thomas Fenzl
Changes by Thomas Fenzl : Added file: http://bugs.python.org/file29491/getpass_tests-2.diff ___ Python tracker <http://bugs.python.org/issue17484> ___ ___ Python-bug

[issue17484] add tests for getpass

2013-03-20 Thread Thomas Fenzl
Changes by Thomas Fenzl : Added file: http://bugs.python.org/file29500/getpass_tests-3.diff ___ Python tracker <http://bugs.python.org/issue17484> ___ ___ Python-bug

[issue9372] pulldom.DOMEventStream.__getitem__ is broken

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: I added a depreciation warning to __getitem__. Also added a testcase checking for it. As item access to DOMEventStream was never documented, no changes were made to the documentation. -- keywords: +patch nosy: +Thomas Fenzl Added file: http

[issue2623] Patch: xmlrpclib client ignores datetime tzinfo when creating iso8601 dates

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: Is this still relevant? The new xmlrcp.client still dumps both naive and aware datetimes as ISO 8601 strings without timezone information. xmlrpc.client.DateTime does not handle ISO 8601 with timezone information. So if it is, it could be updated to using

[issue17501] cannot create a raw string ending in backslash

2013-03-20 Thread Thomas Fenzl
New submission from Thomas Fenzl: r'\' and r"\" cannot be parsed, because the backslash escapes the quotation ending the string, leading to a syntax error -- messages: 184815 nosy: Thomas Fenzl priority: normal severity: normal status: open title: cannot create a

[issue17501] cannot create a raw string ending in backslash

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: right, and I only just saw it's documented -- ___ Python tracker <http://bugs.python.org/issue17501> ___ ___ Python-bugs-l

[issue17501] cannot create a raw string ending in backslash

2013-03-20 Thread Thomas Fenzl
Changes by Thomas Fenzl : -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue17501> ___ ___ Python-bugs-list

[issue5609] Create Unit Tests for nturl2path module

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: The tests work on linux, so I removed the check for nt. Also I adapted them to the latest implementation using ':' instead of '|' as drive letter separator. -- keywords: +patch nosy: +Thomas Fenzl Added file: http://bugs.

[issue1747670] Limiting data copy in xmlrpclib

2013-03-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: Adapted the patch to python3.3 It may be useful with large amounts of transfered data avoiding a copy and freeing memory earlier. The functionality is tested with the existing unit tests. -- nosy: +Thomas Fenzl versions: +Python 3.4 -Python 2.7 Added

[issue15801] Weird string interpolation behaviour

2013-03-23 Thread Thomas Waldmann
Thomas Waldmann added the comment: gave 2.7.4rc1 a try and was seeing a failing unit test that does not fail with 2.7.3. see the attached file for some minimal code that succeeds on 2.7.3, but not on 2.7.4rc1. it seems to have to do with being a subclass of Exception, it doesn't happen

[issue444582] Finding programs in PATH, adding shutil.which

2013-03-25 Thread Thomas Kluyver
Thomas Kluyver added the comment: Yes, I opened that as issue 16957, and it has been dealt with. So no objection from me to closing this. -- ___ Python tracker <http://bugs.python.org/issue444

[issue1747670] Limiting data copy in xmlrpclib

2013-03-26 Thread Thomas Fenzl
Thomas Fenzl added the comment: I removed the unnecessary check on single-element arrays. No strong opinion on usefulness, as I don't use xmlrpc a lot... -- Added file: http://bugs.python.org/file29579/xmlrpc_less_copy-1.diff ___ Python tr

[issue17623] Typo in Doc/whatsnew/3.3.rst

2013-04-03 Thread Thomas Heller
New submission from Thomas Heller: Typo: trucate instead of truncate -- assignee: docs@python components: Documentation files: work.patch keywords: patch messages: 185901 nosy: docs@python, theller priority: normal severity: normal status: open title: Typo in Doc/whatsnew/3.3.rst Added

[issue17484] add tests for getpass

2013-04-03 Thread Thomas Fenzl
Thomas Fenzl added the comment: I signed the contributor agreement during pycon, with the pdf sent to me on March 19th, 15:25 PDT -- ___ Python tracker <http://bugs.python.org/issue17

[issue5609] Create Unit Tests for nturl2path module

2013-04-03 Thread Thomas Fenzl
Thomas Fenzl added the comment: The authoritative implementation of this functionality would be Microsoft's PathCreateFromUrl (http://msdn.microsoft.com/en-us/library/windows/desktop/bb773581%28v=vs.85%29.aspx) and UrlCreateFromPath (http://msdn.microsoft.com/en-us/library/windows/de

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-04-06 Thread Thomas Kluyver
Thomas Kluyver added the comment: I've added docs and tests, and split the changes to test_peepholer into a separate patch. I haven't re-exposed details of the code object as attributes of Bytecode instances, because they're already available as e.g. bytecode.codeobj.co_name

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-04-06 Thread Thomas Kluyver
Changes by Thomas Kluyver : Added file: http://bugs.python.org/file29695/test_peepholer.diff ___ Python tracker <http://bugs.python.org/issue11816> ___ ___ Python-bug

[issue17661] documentation of '%r' links to the wrong repr

2013-04-08 Thread Thomas Wouters
New submission from Thomas Wouters: The documentation of '%r' in http://docs.python.org/2/library/stdtypes.html#string-formatting-operations links to the wrong repr, the module (http://docs.python.org/2/library/repr.html#module-repr) instead of the builtin function (http://docs.py

[issue17802] html.HTMLParser raises UnboundLocalError:

2013-04-22 Thread Thomas Barlow
Thomas Barlow added the comment: Just adding a patch here with a few unit tests to demonstrate the issue, comments here are welcome. This is my first patch, I believe I have put the tests in the correct place. It appears the problem only occurs if there is an incomplete XML entity where a

[issue17841] Remove missing aliases from codecs documentation

2013-05-01 Thread Thomas Fenzl
Thomas Fenzl added the comment: This is a documentation patch against 3.3 with the aliases removed. -- keywords: +patch nosy: +Thomas Fenzl Added file: http://bugs.python.org/file30091/issue17841_codecs_docu.patch ___ Python tracker <h

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-05-06 Thread Thomas Kluyver
Thomas Kluyver added the comment: Ping - the latest patches (dis_api3 & test_peepholer) are ready for review when someone's got a moment. Thanks! -- ___ Python tracker <http://bugs.python.or

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2013-05-06 Thread Thomas Kluyver
Thomas Kluyver added the comment: bytecode_helper is there in dis_api3.diff - anyone with commit rights should be able to add it to the repository. -- ___ Python tracker <http://bugs.python.org/issue11

[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-05-20 Thread Thomas Fenzl
Thomas Fenzl added the comment: I also looked into creating a patch and now I'm not convinced about the solution. While os.path.join accepts an empty string, the functions is os (e.g. stat and friends, utime, chown don't. os.walk doesn't throw an Exception, but generates an

[issue21298] Cheese shop registration stopped working for me recently

2014-10-17 Thread Thomas Levine
Thomas Levine added the comment: It has been working for me recently. Adding to your suggestion that it is probably PyPI: I didn't do anything in particular to fix this, and I think it is more likely that PyPI got fixed than that I upgraded Python (and thus distutils). -- s

[issue20899] Nested namespace imports do not work inside zip archives

2014-11-26 Thread Thomas Heller
Changes by Thomas Heller : -- nosy: +theller ___ Python tracker <http://bugs.python.org/issue20899> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23155] unittest: object has no attribute '_removed_tests'

2015-01-03 Thread Thomas Klausner
New submission from Thomas Klausner: On NetBSD with python-3.4.2 I see the following issue when running the tests for py-flake8-2.2.5: running build_ext test_get_parser (flake8.tests.test_engine.TestEngine) ... ok test_get_python_version (flake8.tests.test_engine.TestEngine) ... ok

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

2015-01-09 Thread Thomas D.
New submission from Thomas D.: Hi, to demonstrate the problem you need >=systemd-217: # python3.4 Python 3.4.2 (default, Oct 12 2014, 20:09:43) [GCC 4.8.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>>

[issue23330] h2py.py regular expression missing

2015-01-27 Thread Thomas Roos
New submission from Thomas Roos: Hi, my issue was that SO_BINDTODEVICE symbol was not defined in /Lib/plat-linux2/IN.py which is generated by h2py.py. This is because the regex is missing out include dirs with "-" in the name. In my yocto cross build system this define is in asm-gene

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

2015-01-28 Thread Thomas Kluyver
New submission from Thomas Kluyver: This follows on from the python-ideas thread starting here: https://mail.python.org/pipermail/python-ideas/2015-January/031479.html subprocess gains: - A CompletedProcess class representing a process that has finished, with attributes args, returncode

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

2015-01-28 Thread Thomas Kluyver
Thomas Kluyver added the comment: Another question: With this patch, CalledProcessError and TimeoutExceeded exceptions now have attributes called output and stderr. It would seem less surprising for output to be called stdout, but we can't break existing code that relies on the o

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

2015-01-28 Thread Thomas Kluyver
Thomas Kluyver added the comment: Updated patch following Gregory's suggestions: - The check_returncode parameter is now called check. The method on CompletedProcess is still check_returncode, though. - Clarified the docs about args - CalledProcessError and TimeoutExceeded gain a s

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

2015-01-31 Thread Thomas Kluyver
Thomas Kluyver added the comment: Yep, they are pretty much equivalent to those, except: - check_call has a 'return 0' if it succeeds - add '.stdout' to the end of the expression for check_output I'll work on documenting the trio in those terms. If people want, some/a

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

2015-02-02 Thread Thomas Kluyver
Thomas Kluyver added the comment: Third version of the patch (subprocess_run3): - Simplifies the documentation of the trio (call, check_call, check_output) to describe them in terms of the equivalent run() call. - Remove a warning about using PIPE with check_output - I believe this was

[issue23395] _thread.interrupt_main() errors if SIGINT handler in SIG_DFL, SIG_IGN

2015-02-04 Thread Thomas Kluyver
New submission from Thomas Kluyver: In tracking down an obscure error we were seeing, we boiled it down to this test case for thread.interrupt_main(): import signal, threading, _thread, time signal.signal(signal.SIGINT, signal.SIG_DFL) # or SIG_IGN def thread_run(): _thread.interrupt_main

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

2015-02-09 Thread Thomas Kluyver
Thomas Kluyver added the comment: Would anyone like to do further review of this - or commit it ;-) ? I don't think anyone has objected to the concept since I brought it up on python-ideas, but if anyone is -1, please say so. -- ___ Python tr

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

2015-02-09 Thread Thomas Kluyver
Thomas Kluyver added the comment: Aha, I hadn't seen any of those. They had indeed been caught by the spam filter. I'll look over them now. -- ___ Python tracker <http://bugs.python.o

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

2015-02-09 Thread Thomas Kluyver
Thomas Kluyver added the comment: Fourth version of patch, responding to review comments on Rietveld. The major changes are: - Eliminated the corner case when passing input=None to run() - now it's a real default parameter. Added a shim in check_output to keep it behaving the old way in

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

2015-02-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Jeff: This makes it somewhat easier to handle input and output as strings instead of streams. Most of the functionality was already there, but this makes it more broadly useful. It doesn't especially address your other points, but I'm not aiming to

[issue23444] HCI Bluetooth socket bind error on an arm crosscompiler environment

2015-02-11 Thread Thomas Chiroux
New submission from Thomas Chiroux: This bug bellow occurs only on my crosscompiled environment on arm (marvell armada 166): arm-pxa168-linux-gnueabi It does not seems to be a cross-compile issue: python compiles without problem and all unittests pass on the target device. description and

[issue23444] HCI Bluetooth socket bind error on an arm crosscompiled environment

2015-02-11 Thread Thomas Chiroux
Changes by Thomas Chiroux : -- title: HCI Bluetooth socket bind error on an arm crosscompiler environment -> HCI Bluetooth socket bind error on an arm crosscompiled environment ___ Python tracker <http://bugs.python.org/issu

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

2015-02-20 Thread Thomas Kluyver
Thomas Kluyver added the comment: Can I interest any of you in further review? I think I have responded to all comments so far. Thanks! -- ___ Python tracker <http://bugs.python.org/issue23

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

2015-05-27 Thread Thomas Guettler
Thomas Guettler added the comment: Who has enough knowledge of the tarfile module to create a good patch? -- nosy: +guettli ___ Python tracker <http://bugs.python.org/issue24

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

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

<    11   12   13   14   15   16   17   18   19   >