Change by Thomas Wouters :
--
nosy: +ned.deily
priority: normal -> release blocker
___
Python tracker
<https://bugs.python.org/issue33497>
___
___
Python-
New submission from Thomas Jollans :
string.Template matches a $identifier with the regex [_a-z][_a-z0-9]* and
re.IGNORECASE. This matches S, ſ and s, but not ß.
https://github.com/python/cpython/blob/master/Lib/string.py#L78 (this code came
up on python-dev)
The docs specify "any
Thomas Jollans added the comment:
Should the PEP be clarified?
--
title: string.Template: cods, docs and PEP all disagree on definition of
identifier -> string.Template: code, docs and PEP all disagree on definition of
identifier
___
Pyt
New submission from Thomas Moreau :
When using `concurrent.futures.ProcessPoolExecutor` with objects that are not
picklable or unpicklable, several situations results in a deadlock, with the
interpreter freezed.
This is the case for different scenario, for instance these three :
https
Thomas Keppler added the comment:
Hello Victor,
thank you for your update on this issue.
By looking through the other bug reports you listed, it looks as if measures
were implemented but never merged. Am I right with this observation? If so,
will we ever see a switch over to monotonic time
Thomas Klausner added the comment:
Thanks for looking at this.
I looked at the patch again, and I can't make sense of the py_curses.h part
either - I've removed it from pkgsrc with a request for information if it's
still needed.
Btw, thanks for working on NetBSD curses support
Change by Thomas Moreau :
--
pull_requests: +4207
stage: needs patch -> patch review
___
Python tracker
<https://bugs.python.org/issue22281>
___
___
Python-
Change by Thomas Moreau :
--
keywords: +patch
pull_requests: +4218
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31699>
___
___
Py
New submission from Thomas Knox :
On a Raspberry Pi 3 running
Linux pi3 4.9.58-v7+ #1046 SMP Tue Oct 24 17:07:15 BST 2017 armv7l GNU/Linux
C(PP)FLAGS="-O6 -march=armv8-a+crc -mtune=cortex-a53 -mfpu=crypto-neon-fp-armv8
-mfloat-abi=hard -ftree-vectorize"
Built with
./configur
Change by Thomas Knox :
--
components: +Tests
___
Python tracker
<https://bugs.python.org/issue31962>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Thomas Moreau :
If the methods `set` and `clear` of `multiprocessing.Event` are called one
after another, while a `multiprocessing.Process` calls `wait`, the `Event`
does not match the documented behavior
(https://docs.python.org/3.7/library/threading.html
Thomas Kluyver added the comment:
This is documented:
> The destination directory, named by dst, must not already exist
https://docs.python.org/3/library/shutil.html#shutil.copytree
I guess that avoids complications that might arise from merging a directory.
--
nosy: +takluy
Thomas Waldmann added the comment:
Embarassing as always to stumble over some stuff and then find a 9y old ticket
here, where it is discussed and even (almost) solved.
Our ticket: https://github.com/borgbackup/borg/issues/3471
Fixed getfqdn we use now instead of socket.getfqdn():
https
Thomas Wouters added the comment:
We do use Setup/Setup.local at Google (and have for many years now), and I find
it very useful. (FWIW, the 'we would use' comment in msg294174 was about the
new '*disabled*' feature, not about Setup files in general.) Avoiding local
chang
Change by Thomas Kluyver :
--
pull_requests: +6616
___
Python tracker
<https://bugs.python.org/issue12486>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Kluyver added the comment:
I've opened a PR for issue #12486, which would make the existing but
undocumented 'generate_tokens' function public:
https://github.com/python/cpython/pull/6957
I agree that it would be good to design a nicer API for this, but the perfect
s
Thomas Kluyver added the comment:
I've opened a PR moving in the other direction (making this public rather than
deprecating it):
https://github.com/python/cpython/pull/6957
--
nosy: +takluyver
___
Python tracker
<https://bugs.py
Thomas Kluyver added the comment:
I wouldn't say it's a good name, but I think the advantage of documenting an
existing name outweighs that. We can start (or continue) using
generate_tokens() right away, whereas a new name presumably wouldn't be
available until Python 3.8 co
Thomas Kluyver added the comment:
I agree, it's not a good design, but it's what's already there; I just want to
ensure that it won't be removed without a deprecation cycle. My PR makes no
changes to behaviour, only to documentation and tests.
This and issue 9969 have
Thomas Kluyver added the comment:
Thanks - I had forgotten it, just fixed it now.
--
___
Python tracker
<https://bugs.python.org/issue12486>
___
___
Python-bug
Thomas Kluyver added the comment:
The tests on PR #6957 are passing now, if anyone has time to have a look. :-)
--
___
Python tracker
<https://bugs.python.org/issue12
Thomas Wouters added the comment:
New changeset 500a419a7a68c32650717b213f0f5ab0461bb16b by T. Wouters in branch
'3.6':
[3.6] bpo-32591: fix abort in _PyErr_WarnUnawaitedCoroutine during shutdown
(GH-5337) (#6536)
https://github.com/python/cpyt
Thomas Kluyver added the comment:
Thanks Carol :-)
--
___
Python tracker
<https://bugs.python.org/issue12486>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Thomas Viehmann :
Hello,
thank you for Python!
In IPython (or Jupyter), `inspect.getsource` is able to retrieve the source
code for functions but not classes.
The fundamental reason is that for functions, a "filename" (input reference
rather) is available via f
Thomas Viehmann added the comment:
Apologies for not being clear.
So I wrote:
In IPython (or Jupyter), `inspect.getsource` is able to retrieve the source
code for functions but not classes.
By this I mean:
import inspect
class X:
pass
inspect.getsource(X)
Note that:
- it won't wo
Thomas Viehmann added the comment:
So I want "inspect.showsource" to have the same output whether my class has
been defined in a .py or in my Jupyter notebook.
I appreciate there are limitations to what "inspect.showsource" can do, but I
am not so sure how that cr
Thomas Kluyver added the comment:
Yes, this should be easy. I misunderstood how to use the catch_warnings context
manager. I thought that catch_warnings itself set up the warnings filters you
need. You actually need to do that with a separate call inside the with block,
as shown here
Thomas Kluyver added the comment:
I'm generally in favour of getting rid of .pth files. But I did accept a PR
adding support for them in Flit to act as a substitute for symlinks on Windows,
to achieve something like a 'development install'. I'm not sure what the
alter
Thomas Kluyver added the comment:
I don't want to use the execution features of .pth files, just their original
functionality of adding extra directories to sys.path. I'd be very happy to see
the arbitrary code execution 'feature' of .pth files go away.
Windows suppor
Thomas Moreau added the comment:
This behavior results from the fact that in 3.6, the result_queue is used to
pass messages to the queue_manager_thread. This behavior has been changed in
3.7 as we rely on a _ThreadWakeup object.
In 3.6, when the result_queue is filled with many large
Change by Thomas Caswell :
--
keywords: +patch
pull_requests: +7589
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31546>
___
___
Py
New submission from Thomas Waldmann :
When running the borgbackup tests on 3.7.0, quite some tests will be broken
because expected log output is not emitted.
I traced this down up the point when I noticed that reverting the caching
feature change of isEnabledFor method in Logger makes the
Change by Thomas Waldmann :
--
components: +Library (Lib)
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue34269>
___
___
Python-bugs-lis
Thomas Waldmann added the comment:
https://github.com/borgbackup/borg/pull/3998
Looks like this fix to our test tearDown method makes the tests work again.
If one looks at what this dirty/problematic hack was done, it might be because
of a missing logging reset functionality
Thomas Waldmann added the comment:
I agree that we should not dig that deep into logging internals and clear that
dict from borg code.
But, seems like one has no public api to reinitialize logging to a like-fresh
state, right? So maybe THAT is the real problem.
Add some .reset() method to
New submission from Thomas Nyberg :
This came out of the following posts:
https://mail.python.org/pipermail/python-ideas/2018-August/052549.html
https://mail.python.org/pipermail/python-ideas/2018-August/052553.html
Basically my request would be to change the documentation here:
https
Thomas Nyberg added the comment:
For what it's worth as the original opener of the bug report, I think Terry's
recommendation clarifies things quite well.
--
___
Python tracker
<https://bugs.python.o
New submission from Thomas Herzog :
If ./configure runs with the following result...
checking for linux/vm_sockets.h... no
checking for sockaddr_alg... no
...then the result of the first check is treated as if it was "yes". This is
because the logic for disabling the vm_sockets fun
Change by Thomas Herzog :
--
keywords: +patch
pull_requests: +8484
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34555>
___
___
Py
New submission from Thomas Gläßle :
Hi,
This command does not report a warning, while it should:
python -c 'import warnings; warnings.warn("This should show up")' -Wi
-W'default:::.*'
If the regex `.*` is replaced by `__main__` it works as expected
Thomas Gläßle added the comment:
Very sorry, the example command above should read:
python -Wi -W'default:::.*' -c 'import warnings; warnings.warn("This should
show up")'
--
___
Python tracker
<h
Change by Thomas Gläßle :
--
keywords: +patch
pull_requests: +8781
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34624>
___
___
Py
Thomas Gläßle added the comment:
Thanks for your response. I have opened a PR at [1] that would remove the
re.escape such that the implementation matches the documentation if you decide
that this is fine.
[1]: https://github.com/python/cpython/pull/9358
Personally, I would go even further
Change by Thomas Sibley :
--
nosy: +trs
___
Python tracker
<https://bugs.python.org/issue9148>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Sibley added the comment:
What about using _execv*() and friends, as documented at
<https://docs.microsoft.com/en-gb/cpp/c-runtime-library/reference/execvp-wexecvp?view=vs-2017>?
They appear to use the process overlay feature of _spawnv*() et al., as
described at
Thomas Sibley added the comment:
It seems like it would be very nice to provide compat if its possible with a
minimum of effort.
At the very least, a doc patch to os.exec*() seems warranted. I expected to
find notes on platform compat in the doc and was pleasantly surprised to see
the
Thomas Sibley added the comment:
Thanks for taking the time to explain. I was just discovering the same myself
experimentally. The MS docs I linked to seem a little misleading. orz
In that case, do you think a doc patch for os.exec* adding a more nuanced take
on Windows support would be
Thomas Kluyver added the comment:
Yes, I think this can be closed now.
--
___
Python tracker
<https://bugs.python.org/issue28418>
___
___
Python-bugs-list mailin
New submission from Satheesh Thomas :
Run time failure to execute python scripts. It was running for long time
without any issue . But sometimes get this error which stops the entire
execution. Looks like some .pyc file got corrupted .
--
components: Build
files: Python error1.png
Thomas Jollans added the comment:
RFC 2396 explicitly excludes the use of [ and ] in URLs. RFC 2732
<https://www.ietf.org/rfc/rfc2732.txt> defines the syntax for IPv6 URLs, and
allows [ and ] ONLY in the host part.
So I'd say that the behaviour is arguably correct (if somewhat
New submission from Thomas Wouters :
The fix for issue #31752 (changeset 5ef883b096895a84123760859f0f34ad37bf2277
for 2.7, as I ran into this while upgrading to 2.7.15) includes assertions that
are easily triggered from user code:
>>> import datetime, numpy
>>> datetime
Thomas Wouters added the comment:
This patch includes assertions that are easily triggered from user code:
https://bugs.python.org/issue35021
--
nosy: +twouters
___
Python tracker
<https://bugs.python.org/issue31
Thomas Gläßle added the comment:
Hi, thanks for the consideration!
Is there any reason to introduce different behaviour than with filterwarnings
here? This increases the number of things to remember - and except for the dot
regex syntax doesn't interfere with module names, so there is n
Thomas Viehmann added the comment:
Yeah, it's a shame no-one looked at the patch that seems to fix the underlying
cause and now it's just a duplicate of a bug to improve error messages.
On the up side, closing this bug will stop me from getting reminders about it.
--
Change by Thomas Viehmann :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue33826>
___
___
Python-bugs-list
Change by Thomas Viehmann :
--
nosy: -t-vi
___
Python tracker
<https://bugs.python.org/issue33826>
___
___
Python-bugs-list mailing list
Unsubscribe:
Reuben Thomas added the comment:
Victor, thanks; that's precisely the sort of thing that would make a useful
addition to the docs.
--
___
Python tracker
<https://bugs.python.org/is
Change by Thomas Viehmann :
--
resolution: duplicate ->
___
Python tracker
<https://bugs.python.org/issue33826>
___
___
Python-bugs-list mailing list
Un
New submission from Thomas Guettler :
Up to now there is no thread way to read the umask in Python
https://stackoverflow.com/questions/53227072/reading-umask-thread-safe
You can use this pattern:
current_umask = os.umask(0) # line1
os.umask(current_umask) # line2
return current_umask
Thomas Wouters added the comment:
For the record, Raymond, I think you're wrong about this. Itertools isn't
always a solution to every problem, and it makes for a very awkward way around
a silly limitation in min() and max(). Their API is already awkward -- because
they already take
Thomas Heller added the comment:
> The modulefinder usage is directly exposed in its API as the return
> value of a find_module method, which makes removal a pain. Adding
> Thomas Heller to see what he has to say.
Some months ago, I have started to implement a brand-new modulefinder,
Thomas Heller added the comment:
Brett, can these changes be merged into 3.3 also?
--
nosy: +theller
___
Python tracker
<http://bugs.python.org/issue18
New submission from Thomas Guettler:
The documentation of codecs.readline() has a link to the readline module.
That the same word with a total different meaning!
http://docs.python.org/2/library/codecs.html?highlight=readline#codecs.StreamReader.readline
The GNU readline module is about the
New submission from Thomas Guettler:
The stream reader of codecs.open() breaks on undocumented characters:
http://docs.python.org/2/library/codecs.html?highlight=codecs%20readline#codecs.StreamReader.readline
import tempfile
temp=tempfile.mktemp()
fd=open(temp, 'wb')
fd.write('
Changes by Thomas Heller :
--
nosy: +theller
___
Python tracker
<http://bugs.python.org/issue15767>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Guettler added the comment:
Only few people seem to use daemon threads. We do and see this problem often
with Python 2.7.
How difficult is it to get this fixed for 2.7?
Is there a way to work around this problem?
--
nosy: +guettli
Thomas Guettler added the comment:
There are some examples to work around this for Python2:
http://stackoverflow.com/questions/18098475/detect-interpreter-shut-down-in-daemon-thread
--
nosy: +guettli
___
Python tracker
<http://bugs.python.
New submission from Thomas Guettler:
This is a documentation bug: Since #1856 is not solved for Python2, it needs
to be documented.
Daemon Threads on Python2 can seg fault.
Work arounds:
http://stackoverflow.com/questions/18098475/detect-interpreter-shut-down-in-daemon-thread
New submission from Thomas Heller:
In site.py, line 477, I find this code:
# Reading the initialization (config) file may not be enough to set a
# completion key, so we set one first and then read the file
if 'libedit' in getattr(readline
Changes by Thomas Weißschuh :
--
nosy: +t-8ch
___
Python tracker
<http://bugs.python.org/issue17997>
___
___
Python-bugs-list mailing list
Unsubscribe:
Thomas Heller added the comment:
I suggest to remove the comment part from the patch and then apply it.
--
___
Python tracker
<http://bugs.python.org/issue18
Changes by Thomas Heller :
--
nosy: +theller
___
Python tracker
<http://bugs.python.org/issue18986>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Thomas Kluyver :
With the text 'abc€' copied to the clipboard, on Linux, where UTF-8 is the
default encoding:
Python 3.2.3 (default, Apr 12 2012, 21:55:50)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "lice
Thomas Kluyver added the comment:
On this computer, I see this from Tcl:
$ wish
% clipboard get
abc\u20ac
But here Python's following suit:
>>> root.clipboard_get()
'abc\\u20ac'
Which is odd, because as far as I know, my two computers run the same OS
(U
Thomas Kluyver added the comment:
OK, after a quick bit of reading, I see why I'm confused: the clipboard
actually works by requesting the text from the source program, so where you
copy it from makes a difference. In my case, copying from firefox gives
'abc\\u20ac', and cop
Thomas Kluyver added the comment:
Thanks, Ned.
Does it seem like a good idea to test the windowing system like that, and
default to UTF8_STRING if it's x11? So far, I've not found any case on X where
STRING works but UTF8_STRING doesn't. If it seems reasonable, I'm ha
Thomas Kluyver added the comment:
Here's a patch that makes UTF8_STRING the default type for clipboard_get and
selection_get when running in X11.
--
keywords: +patch
Added file: http://bugs.python.org/file25552/x11-clipboard-utf8.patch
___
P
Thomas Kluyver added the comment:
Indeed, and there don't seem to be any other tests for the clipboard
functionality.
--
___
Python tracker
<http://bugs.python.org/is
Thomas Kluyver added the comment:
But the encoding used seemingly depends on the source application - Geany (GTK
2, I think) seemingly sends UTF8 text anyway, whereas Firefox escapes the
unicode character. So I don't think we can correctly decode the STRING value in
all cases.
T
Thomas Kluyver added the comment:
OK, I'll produce an updated patch.
--
___
Python tracker
<http://bugs.python.org/issue14777>
___
___
Python-bugs-list m
Thomas Kluyver added the comment:
As requested, the second version of the patch (x11-clipboard-try-utf8):
- Caches the windowing system per object. The tk call to find the windowing
system is made the first time clipboard_get or selection_get are called without
specifying `type=`.
- If using
Thomas Kluyver added the comment:
I'm happy to put the cache at the module level, but I'll give other people a
chance to express their views before I dive into the code again.
I imagine most applications would only call clipboard_get() on one item, so it
wouldn't matter.
Thomas Kluyver added the comment:
The 3rd revision of the patch has the cache at the module level. It's a bit
awkward, because there's no module level function to call to retrieve it (as
far as I know), so it's exposed by objects which can call Tk.
Also, serhiy pointed out a
Thomas Kluyver added the comment:
I've submitted the contributor agreement, though I've not yet heard anything
back about it.
--
___
Python tracker
<http://bugs.python.o
Thomas Kluyver added the comment:
...And mere minutes after I said I hadn't heard anything, I've got the
confirmation email. :-)
--
___
Python tracker
<http://bugs.python.o
New submission from Thomas Kluyver :
I've come across a difference from 3.2 to 3.3 while running the IPython test
suite. It occurs when a directory on sys.path has been used for an import, then
deleted without being removed from sys.path. Previous versions of Python ignore
the nonexi
New submission from Thomas Robitaille :
I can build Python 2.6 to 3.2 on MacOS 10.7 with XCode 4.3.2 using solely:
./configure
make
But if I do this with Python 3.3 alpha 3 I get the following error:
gcc -framework CoreFoundation -o python.exe Modules/python.o
libpython3.3m.a
Changes by Thomas Robitaille :
--
type: -> compile error
___
Python tracker
<http://bugs.python.org/issue14932>
___
___
Python-bugs-list mailing list
Unsubscri
Thomas Robitaille added the comment:
Thanks for the quick reply - wouldn't it make sense to add a directive to the
configure script so that if the compiler matches
'i686-apple-darwin11-llvm-gcc-4.2', clang is used instead?
--
___
New submission from Thomas Maslach :
I've been running into a bug recently and reduced the code to the following:
import Tkinter
tk = Tkinter.Tk()
window = Tkinter.Frame(tk)
def onDestroy (event):
pass
window.bind ("", onDestroy)
Just run and the fo
Thomas Parslow added the comment:
This is already fixed in the current code, unquoted realms are allowed with a
warning.
--
nosy: +almost
___
Python tracker
<http://bugs.python.org/issue11
New submission from Thomas Parslow :
The HTTP spec specifies that the 401 (Unauthorized) response can be accompanied
by multiple challenges, either as separate WWW-Authenticate headers or in a
single WWW-Authenticate header separated by commas. The client should always
pick the strongest
Thomas Parslow added the comment:
I should mention, this fixes the same issue mentioned in #13323 but more
comprehensively and for python 3 (the old issue refers to urllib2 in python2).
--
___
Python tracker
<http://bugs.python.org/issue15
New submission from Thomas Heller :
When a ctypes Structure uses a subclass of c_int, c_short, c_byte in the
_fields_ list to define bitfields, the results are wrong.
The attached script showbug.py demonstrates this behaviour.
--
components: ctypes
files: showbug.py
keywords: needs
Thomas Heller added the comment:
The attached patch for branch default fixes this issue. It also contains a
unittest.
--
Added file: http://bugs.python.org/file26530/bitfields.patch
___
Python tracker
<http://bugs.python.org/issue15
New submission from Thomas Wouters:
unittest.installHandler incorrectly assumes signal.SIGINT will always be set to
a callable object, rather than signal.SIG_DFL or signal.SIG_IGN. This breaks if
the test is being executed in an environment that e.g. ignores signal.SIGINT,
like a bash script
Thomas Wouters added the comment:
Patch attached.
--
keywords: +patch
stage: -> patch review
Added file: http://bugs.python.org/file26604/inthandler.patch
___
Python tracker
<http://bugs.python.org/issu
New submission from Thomas Wouters:
test_subprocess's test_send_signal assumes SIGINT is not being ignored, by
spawning a new process and expecting it to have the default SIGINT handler .
SIGINT can be set to SIG_IGN if the process running the test inherited it from
the parent pr
Thomas Wouters added the comment:
Patch attached to (briefly) set signal.SIGINT to the default in the test.
It may make sense to add a feature to subprocess.Popen to ignore/unignore
signals (it should only need to support SIG_DFL and SIG_IGN, not other signal
handlers, considering there'
Thomas Wouters added the comment:
Updated patch.
--
Added file: http://bugs.python.org/file26610/inthandler.patch
___
Python tracker
<http://bugs.python.org/issue15
1101 - 1200 of 1794 matches
Mail list logo