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
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
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
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
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
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
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
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
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"
Changes by Thomas Nyberg :
Removed file: http://bugs.python.org/file46250/venv_site_packages.patch
___
Python tracker
<http://bugs.python.org/issue24875>
___
___
Pytho
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
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
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
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
Changes by Thomas Heller :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue29294>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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
Changes by Thomas Caswell :
--
pull_requests: +50
___
Python tracker
<http://bugs.python.org/issue29481>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue29622>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Thomas Kluyver added the comment:
That comment contained far too much 'probably'. Time for me to sleep...
--
___
Python tracker
<http://bugs.python.o
Thomas Kluyver added the comment:
Congrats! :-)
--
___
Python tracker
<http://bugs.python.org/issue27113>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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.
--
___
Changes by Thomas Heller :
--
nosy: +theller
___
Python tracker
<http://bugs.python.org/issue27417>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Thomas Heller :
--
nosy: +theller
___
Python tracker
<http://bugs.python.org/issue26137>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Thomas Perl added the comment:
Also related: https://bugs.python.org/issue22359
--
___
Python tracker
<http://bugs.python.org/issue27490>
___
___
Python-bug
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
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
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
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
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
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
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
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
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
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
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
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue17289>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Thomas Heller added the comment:
Patch looks good. Please apply.
--
___
Python tracker
<http://bugs.python.org/issue17378>
___
___
Python-bugs-list mailin
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
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
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
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(
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
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
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
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
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
Changes by Thomas Fenzl :
Added file: http://bugs.python.org/file29491/getpass_tests-2.diff
___
Python tracker
<http://bugs.python.org/issue17484>
___
___
Python-bug
Changes by Thomas Fenzl :
Added file: http://bugs.python.org/file29500/getpass_tests-3.diff
___
Python tracker
<http://bugs.python.org/issue17484>
___
___
Python-bug
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
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
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
Thomas Fenzl added the comment:
right, and I only just saw it's documented
--
___
Python tracker
<http://bugs.python.org/issue17501>
___
___
Python-bugs-l
Changes by Thomas Fenzl :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue17501>
___
___
Python-bugs-list
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.
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
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
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
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
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
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
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
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
Changes by Thomas Kluyver :
Added file: http://bugs.python.org/file29695/test_peepholer.diff
___
Python tracker
<http://bugs.python.org/issue11816>
___
___
Python-bug
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
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
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
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
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
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
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
Changes by Thomas Heller :
--
nosy: +theller
___
Python tracker
<http://bugs.python.org/issue20899>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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.
>>>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Thomas Kluyver :
--
nosy: +takluyver
___
Python tracker
<http://bugs.python.org/issue24294>
___
___
Python-bugs-list mailing list
Unsubscribe:
1501 - 1600 of 1806 matches
Mail list logo