New submission from terry:
The attached code generates this output:
init called
finished init
init called
finished init
init called
finished init
initPorts done
alldone
destroying /sys/class/gpio/gpio16/
destroying /sys/class/gpio/gpio6/
Exception AttributeError: "'NoneType'
terry added the comment:
My real application (not this example code that also 'breaks') is a battery
monitor that starts at boot time and only exits when the battery is near death.
So there is effectively a while(batlevelgood) loop that polls the battery level
and doesn't e
New submission from Terry Herron :
The unittest.py module no longer accepts verbosity=2 when calling main. This
worked in Python27. Example...
unittest.main(verbosity=2)
## THE FIX IN unittest.py##
CHANGE FROM:
1547 def __init__(self, module='__main__', defaultTest=
New submission from Terry Scott <[EMAIL PROTECTED]>:
x = "Four score and seven"
x.split() => ["Four", "score", "and", "seven"]
x.split(" ") => ["Four", "score", " ", "and&qu
Terry Scott <[EMAIL PROTECTED]> added the comment:
Benjamin,
Thanks. The documentation cleared this up for me. Thanks.
Terry
On Mon, 13 Oct 2008, Benjamin Peterson wrote:
>
> Changes by Benjamin Peterson <[EMAIL PROTECTED]>:
>
>
> --
> resolution: ->
Terry Scott <[EMAIL PROTECTED]> added the comment:
Tim,
Duh, thanks sorry I didn't check the documentation. Thanks.
Terry
On Mon, 13 Oct 2008, Tim Gordon wrote:
>
> Tim Gordon <[EMAIL PROTECTED]> added the comment:
>
> This is the intended behaviour. See
>
Terry Helge added the comment:
Additional testing -- apparently this is only happening when I run a
program that imports pyGame. If I run IDLE and do not import, it
functions properly .
___
Python tracker
<http://bugs.python.org/issue4
Terry Helge added the comment:
Additional testing - ran programs that call (import) pyGame using
drPython and everything works fine ... just when using IDLE and pyGame
am I getting this action. Rats!!
___
Python tracker
<http://bugs.python.org/issue4
Terry Helge added the comment:
Additional testing - tried programs on a different computer with a
fresh copy of Python and pyGame - same results
Program will not close(hangs) in IDLE - but will close with drPython
Go Figure.
___
Python tracker
<h
Terry Helge added the comment:
I'm not sure if the bug is in Python(IDLE) or pyGame - I'm pretty new to
this . I'm still checking out various things - thanks for your interest!
On Mon, Jan 5, 2009 at 2:45 PM, Guilherme Polo wrote:
>
> Guilherme Polo added the comment:
Terry Helge added the comment:
Problem solved - I need to add an additional command to any program that
calls pyGame. pygame.quit ()
One of those little undocumented things that pop up now and then
___
Python tracker
<http://bugs.python.org/issue4
Terry Helge added the comment:
Yes, you are correct. My lack of experience is showing. Thanks for your
interest.
On Wed, Jan 7, 2009 at 2:35 AM, Amaury Forgeot d'Arc wrote:
>
> Amaury Forgeot d'Arc added the comment:
>
> This is even documented:
>
>
New submission from Terry Davis :
Proposal:
Enable this
>>> format(12_34_56.12_34_56, '_._f')
'123_456.123_456'
Where now only this is possible
>>> format(12_34_56.12_34_56, '_.f')
'123_456.123456'
Based on the discussion in the
Terry Davis added the comment:
Good point Victor, though I wonder how likely it is that a person using 3.10
would only use this particular new feature, and have an otherwise
backwards-compatible codebase.
This isn't something that I asked about out of necessity, and there hasn't
Terry Davis added the comment:
Victor,
> '_.f' would be the same as '_f'?
No, the example in my original post is wrong, '_.f' isn't allowed now.
The proposal should use '_f' to describe the current behavior.
> Should "._f" be
Terry Davis added the comment:
Current behavior:
>>> format(1234.1234, '_f')
'1_234.123400'
>>> format(1234.1234, ',f')
'1,234.123400'
New behavior:
>>> format(1234.1234, ',._f')
'1,234.123_400'
&
Terry Davis added the comment:
If no one else has any comments, I'll assume there is consensus and start
working on this. I have not contributed to CPython before, nor have I worked on
production C code, so it may be a while before I get anywhere.
--
versions: +Python 3.11 -P
Terry Davis added the comment:
It seems like using "noindex" to tell search engines not to look at Python 2
docs at all would have the side-effect of breaking Python 2 documentation
searches.
I have gotten into the habit of searching for "python 3" explicitly, which I
t
Terry Davis added the comment:
I don't understand this use-case, but would it make sense to `ChainMap` the
wrapper's __annotations__ on top of the wrapped __annotations__?
--
nosy: +Terry Davis
___
Python tracker
<https://bu
New submission from Terry Greeniaus :
I'm using Python 3.8.5 on a 2016 MacBook Pro running macOS Catalina 10.15.3.
This model has a touch bar and macOS communicates with the touch bar via a
dedicated "iBridge" network interface. The iBridge network interface uses a
fixed M
Terry Greeniaus added the comment:
xoring does not guarantee uniqueness and has a good chance of discarding it, so
it seems like a bad idea to me.
Suppose I have exactly two adapters with MAC addresses 0 and 3.
Suppose you have exactly two adapters with MAC addresses 1 and 2.
We'll bot
Terry Davis added the comment:
I'd like to re-raise this issue. Should I cross-post to "discuss.python.org -
Ideas"?
------
nosy: +Terry Davis
___
Python tracker
<https://bugs.pyt
New submission from Terry Davis :
There should be a builtin alias for `Type[NamedTuple]` so that library
authors user-supplied `NamedTuple`s can properly type-check their code.
Here's a code sample that causes an issue in my IDE (PyCharm)
from typing i
Change by Terry Thurk :
--
pull_requests: +6509
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue29412>
___
___
Python-bugs-list mai
Change by Terry Thurk :
--
pull_requests: +6575
___
Python tracker
<https://bugs.python.org/issue29412>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Terry Thurk :
--
pull_requests: -6509
___
Python tracker
<https://bugs.python.org/issue29412>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Terry Cooper:
The Python statement gList1[i1][1] += gList2[i2][1] modifies not only gList1 (a
volatile storage object) but dBasis[163] (a record within shelve object
dBasis). Both gList and dBasis[163] are printed before and after execution of
the statement by cFract2
Terry Cooper added the comment:
This is easy to reply to. You better believe I've tried printing gList1 and
dBasis[163]. I've also scrapped a predecessor function named combo (which is
included in the attachment) and written its successor, viz., "combine". I bent
ov
Terry Cooper added the comment:
Got your message before I got his. Thanks for the reference to python-list.
-Original Message-
>From: "R. David Murray"
>Sent: Nov 18, 2012 9:39 PM
>To: ttcoo...@indy.net
>Subject: [issue16498] Unwanted link between volatile and
Terry Chia added the comment:
Hello,
I have attached a patch that should resolve this issue. Do let me know if
anything needs fixing as this is my first contribution.
--
keywords: +patch
nosy: +terry.chia
Added file: http://bugs.python.org/file35739/issue17888.patch
Terry Chia added the comment:
Is this acceptable?
--
keywords: +patch
nosy: +terry.chia
Added file: http://bugs.python.org/file35770/issue21860.patch
___
Python tracker
<http://bugs.python.org/issue21
Terry J. Reedy added the comment:
Since the files have effectively been abandoned, I think removing them should
be considered now. The three files in /Misc, for wing-3, 4, and 5, are
python-wing3.wpr
python-wing4.wpr
python-wing5.wpr
The current version of Wing is 8.1.1. The files were
Terry J. Reedy added the comment:
url: https://github.com/python/cpython/blob/main/Misc/python-wing5.wpr
--
___
Python tracker
<https://bugs.python.org/issue23
Terry J. Reedy added the comment:
IDLE is a tkinter application and tkinter wraps the tcl/tk GUI framework. Your
problem is mostly in the interaction between Windows, your Cyrillic input
method, and tk. As a test, run
import tkinter as tk
r = tk.Tk()
t = tk.Text(r)
t.pack()
Click in the
Terry J. Reedy added the comment:
It appears that your particular keyboard program is translating Ctrl + letter
key combinations to something other than the default Ascii Control-letter code.
Do you see the same problem with Notepad? To test what tcl/tk and hence
tkinter see, expand the
Terry J. Reedy added the comment:
This is a duplicate of #31244, but I continue here with more experiments using
the code above. I first confirmed that on Windows, CapsLock is really 'caps
inversion. Keycode 67 is the keycode for 'C' given in
https://www.tcl.tk/man/tcl/TkC
Terry J. Reedy added the comment:
What makes IDLE different from other desktop apps is that is it written in
Python, uses the tkinter wrapping of cross-platform tcl/tk, and allows users to
customize nearly all hotkey shortcuts. But tk only allows Ascii chars, with
modifiers, for hotkeys
Terry J. Reedy added the comment:
I closed #31244 as a duplicate of this.
The modifier code for tkinter.Event.__repr__ can be used to construct the
modifier part of the reconstructed event sequence. Just join with '-' instead
of '|'.
--
title: Ctrl+C, C+V in t
Terry J. Reedy added the comment:
Thank you Eryk. The X/Ubuntu behavior is what I want to simulate. I can only
wonder why tk has not fixed that for non-X systems. Are Alt+letter
combinations also fixed on Ubuntu, so that, for instance, Alt+M-key is seen as
Alt-M even with Russian layout
Change by Terry J. Reedy :
--
resolution: -> out of date
stage: -> resolved
status: pending -> closed
___
Python tracker
<https://bugs.python.or
Terry J. Reedy added the comment:
This is not an IDLE issue, as IDLE merely calls
tkinter.filedialog.SaveAS(args).show() and uses the returned path to open and
write the file.
This is likely not a tkinter issue either, but I will leave it open for now for
others to comment. SaveAs
Terry J. Reedy added the comment:
Thank you both. Status: Failures on Open Suse TW (Vyacheslav) and Ubuntu 20-04
(Daniel McDonald, Github Actions, and Azure Pipelines).
Success on Windows (me), macOS (Catalina-me and 11.6.1-DM), Centos 7.9 and
Ubuntu 18-04 (both DM)
I verified that the
Terry J. Reedy added the comment:
IDLE is neither the Python it is written it, nor the tkinter module it depends
on. For this tracker, this is at most a tkinter on macOS 12 issue. But I
suspect that it is an issue of the 3rd party tcl/tk on the new macOS version.
There have been others
Terry J. Reedy added the comment:
https://docs.python.org/3/download.html says a) tar.bz2 can be read by the tar
program, which I presume is true also of tar.xz. So there is no issue of
*needing* two separate programs. It also claims "The .tar.bz2 archives provide
the best compressio
Terry J. Reedy added the comment:
You might post on python-ideas list to get comments from other possible users.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue46
Terry J. Reedy added the comment:
#46073 may be a duplicate of this and perhaps should have the same resolution.
--
nosy: +terry.reedy
___
Python tracker
<https://bugs.python.org/issue44
Terry J. Reedy added the comment:
PR edits inspect._getmembers. I nosied people who have edited it previously.
--
nosy: +ethan.furman, ping, pitrou, terry.reedy
___
Python tracker
<https://bugs.python.org/issue46
Change by Terry J. Reedy :
--
nosy: +yselivanov
___
Python tracker
<https://bugs.python.org/issue46103>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Windows, IDLE, 3.10.1: compile("-"*300 + "4", '', mode) crashes execution
process for any of 'exec', 'eval', 'single'.
#42609 is also about 'too high' string multiplication wi
Terry J. Reedy added the comment:
The macOS system tk, 8.5.9, is over a decade old and buggy. python.org python
now always uses the recent 8.6 version included with the installer.
--
___
Python tracker
<https://bugs.python.org/issue46
Terry J. Reedy added the comment:
Yes, that is the list.
Serhiy, can you comment on using atexit.register and classmethod decorators
together? Or suggest someone else?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.
Terry J. Reedy added the comment:
Daniel, I believe your proposal is an enhancement request that could only be
implemented in a future version. I changed headers accordingly. I leave it to
Christian or someone else to evaluate the request itself.
--
title: OverflowError: mktime
Change by Terry J. Reedy :
--
Removed message: https://bugs.python.org/msg408987
___
Python tracker
<https://bugs.python.org/issue43424>
___
___
Python-bug
Change by Terry J. Reedy :
Removed file: https://bugs.python.org/file50506/images (5).jpeg
___
Python tracker
<https://bugs.python.org/issue43424>
___
___
Python-bug
Change by Terry J. Reedy :
--
pull_requests: -28440
___
Python tracker
<https://bugs.python.org/issue43424>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Zach, gaurawgoshwami is a spammer. Deleted added nosy, unlinked spam file and
unrelated PR. I have no idea what 'repository containing patch' means or how
g. created link to non-existent? file.
--
nosy: -asvetlov, barry, dstufft, e
Terry J. Reedy added the comment:
(This is behavior, not crash issue, as the latter is when there is no
traceback.)
The editor code was added 3 years ago in #37929, PR-15452, to correct using the
configured char width after font and window size changes make that invalid. It
is based on
Terry J. Reedy added the comment:
On a system where IDLE will not start, the code has to be run directly with
'python3', however that is done there. One will need to add the line
'r.mainloop()' at the end of the script to see the tk window. However, this is
not neede
Terry J. Reedy added the comment:
Serhiy: Matej Cepl (SUSE) asks about tk and Wayland switch. Do you know
anything?
--
nosy: +serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46
Change by Terry J. Reedy :
--
nosy: +epaine, serhiy.storchaka
___
Python tracker
<https://bugs.python.org/issue46146>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
urllib2 became urllib.request in 3.x. In 2.6, 'timeout' became a parameter of
both urlopen and OpenerDirector.open. In both cases the default was and is the
'global default timeout setting'. So 'timeout' has a default.
Terry J. Reedy added the comment:
Bug needs to be verified on 3.10 or 3.11.
--
nosy: +terry.reedy
versions: +Python 3.10, Python 3.11 -Python 2.6, Python 2.7
___
Python tracker
<https://bugs.python.org/issue2
Change by Terry J. Reedy :
--
title: urllib2 add_header fails with existing unredirected_header ->
urllib.request.add_header fails with existing unredirected_header
___
Python tracker
<https://bugs.python.org/iss
Terry J. Reedy added the comment:
I also use comments in lieu of docstrings for text_xyx methods because I find
the addition of the first line of the docstring in error reports to be useless,
distracting, and sometimes, depending on the content, confusing. If the error
is in the test
Terry J. Reedy added the comment:
Pablo, Mark: I am guessing that at least one of you know about this.
--
nosy: +Mark.Shannon, pablogsal, terry.reedy
___
Python tracker
<https://bugs.python.org/issue46
Terry J. Reedy added the comment:
On Windows, with the python.orgs 3.9.9, 3.10.1, and 3.11.0b3 installers,
'licence' displays the documented text. Ditto for all 3 build from repository.
Ditto for 3.10.1 on Mac. The behavior is set, I believe, in site.py, so your
system ignor
Terry J. Reedy added the comment:
(IDLE does not support typing.Protocol classes, because no one has proposed
that it do so, let alone submit a patch.)
A new keyword requires a PEP that specifies the syntax for an 'interface'
statement and what such a statement would do. You sh
Change by Terry J. Reedy :
--
nosy: +eric.araujo
___
Python tracker
<https://bugs.python.org/issue46126>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Terry J. Reedy :
Removed file: https://bugs.python.org/file50521/Annotation 2021-12-25 165843.png
___
Python tracker
<https://bugs.python.org/issue46
Change by Terry J. Reedy :
--
Removed message: https://bugs.python.org/msg409173
___
Python tracker
<https://bugs.python.org/issue46177>
___
___
Python-bug
Change by Terry J. Reedy :
--
nosy: +serhiy.storchaka
stage: -> test needed
type: crash -> behavior
versions: +Python 3.11 -Python 3.8
___
Python tracker
<https://bugs.python.org/i
Terry J. Reedy added the comment:
Win10, Py 3.11: run combobug.py, click down arrow, click entry. 'changed' is
printed to stdout (console or IDLE Shell).
Cursor not visible and clicking on remaining entry box does nothing.
Click on another window and back to entry box.
Cursor is
Terry J. Reedy added the comment:
On Win10 command prompt, 😀 is initially displayed as 2 boxes, subsequently as
box-space. Besides this, editing works fine and when Entered, the string is
echoed.
--
nosy: +pablogsal, terry.reedy
___
Python
Terry J. Reedy added the comment:
https://termux.com/ "Termux is an Android terminal emulator [on Android] and
Linux environment app"
I don't believe that core devs (and b.p.o.) support running Python on Android.
If so, this should be closed here and your question redire
New submission from Terry J. Reedy :
Installed 3.11.0a3 was built Dec 8 2021, 22:56:33. My corresponding
repository build is a bit older than that. Rebuilding now I get
fileutils.c
..\Python\fileutils.c(2132): error C2065: 'PATHCCH_FORCE_ENABLE_LONG_NAME_PROCE
SS': undeclared
Change by Terry J. Reedy :
--
components: +Windows
nosy: +paul.moore, steve.dower, tim.golden, zach.ware
___
Python tracker
<https://bugs.python.org/issue46
Terry J. Reedy added the comment:
Does python_startup benchmark start with all modules parsed and __pycache__d,
or with no cache, so it includes the normally one-time parse time?
--
___
Python tracker
<https://bugs.python.org/issue46
Terry J. Reedy added the comment:
>From what I understand, this issue is about a somewhat esoteric tk-design or
>program bug and should be closed as either 'not a bug' or '3rd-party'.
--
___
Python tracker
<https
Terry J. Reedy added the comment:
Last I knew, CPython C code is a) regularly scanned by Valgrind and b) Valgrind
is somehow informed as to false positives to not report. But I know none of
the details. So I suggest you look into this and how to not report the same
false positives.
I
Terry J. Reedy added the comment:
Let me be clearer. This bug prevents me from building main (3.11) to test
anything with a proper up-to-date 3.11 binary. So to me this is highest
priority. Is this just my machine or every Windows system? How are CI and
buildbots rebuilding and running
Terry J. Reedy added the comment:
I presume you mean the mailbox parameter of imaplib.IMAP.select().
https://docs.python.org/3/library/imaplib.html#imaplib.IMAP4.select
IMAP4.select(mailbox='INBOX', readonly=False)
Select a mailbox. Returned data is the count of messages
Change by Terry J. Reedy :
--
components: +asyncio
nosy: +asvetlov, yselivanov
___
Python tracker
<https://bugs.python.org/issue46223>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
Arian-f's new issue is #46237.
--
nosy: +terry.reedy
superseder: -> Incorrect line reported in syntax error
___
Python tracker
<https://bugs.python.org
Terry J. Reedy added the comment:
Since #42209 was closed, a new issue seems OK.
As a result of the incorrect line number, IDLE highlights one of the opening
quotes on line 1.
--
nosy: +pablogsal, terry.reedy -eric.smith
versions: +Python 3.11
Change by Terry J. Reedy :
--
stage: -> needs patch
___
Python tracker
<https://bugs.python.org/issue46237>
___
___
Python-bugs-list mailing list
Unsubscrib
Terry J. Reedy added the comment:
How about following "The Python interpreter has a number of functions and types
built into it that are always available. They are listed here in alphabetical
order." in
https://docs.python.org/3/library/functions.html
with "Here and elsewher
Change by Terry J. Reedy :
--
nosy: +pablogsal
___
Python tracker
<https://bugs.python.org/issue46217>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Thank you. Compiles without even any warnings. Tests also all pass.
--
___
Python tracker
<https://bugs.python.org/issue46
Terry J. Reedy added the comment:
I understand. I think that for IDLE, I should check that the error .text is in
the line indicated, and if not, recover somehow rather than blindly marking the
the indicated column. For a shell statement entry, try to find the right line.
Not sure for an
Terry J. Reedy added the comment:
Further discussion at
https://discuss.python.org/t/builtin-function-input-writes-its-prompt-to-sys-stderr-and-not-to-sys-stdout/12955
--
nosy: +terry.reedy
versions: +Python 3.11 -Python 3.6
___
Python tracker
Change by Terry J. Reedy :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue39663>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Terry J. Reedy :
The CPython compiler is capable of making frozenset constants without being
explicitly asked to. Exactly how it does so is, of course, 'hidden' from
python code. With current main:
.
>>> dis('{1,2,3}')
1
Terry J. Reedy added the comment:
A minimal version of util.py just for this issue is fine. What is blocking the
issue deciding exactly what the minimum should be. Are both the extension list
and function needed?
Alex says somewhere in PR comments that ispythonsource passes directories
Terry J. Reedy added the comment:
Whatever you worked out is probably better than depending on something that I
hope to significantly change.
--
resolution: -> out of date
stage: -> resolved
status: open -> closed
___
Python tracke
Terry J. Reedy added the comment:
Sigh. You are right. I will close this tomorrow.
This also means that 'set()' is not guaranteed to return an empty built-in set.
I did think of this workaround for that:
>>> (empty:={None}).clear()
>>> empty
set()
Go ah
Terry J. Reedy added the comment:
Rejected by the reality of Python's dynamism, which I overall appreciate ;-).
--
___
Python tracker
<https://bugs.python.org/is
Terry J. Reedy added the comment:
Udated doc link, which appears to be same:
https://docs.python.org/3.11/reference/lexical_analysis.html#identifiers
Updated property list linked in above:
https://www.unicode.org/Public/14.0.0/ucd/PropList.txt
Relevant content for this issue:
1885..1886
Change by Terry J. Reedy :
--
title: tokenize fails on some Other_ID_Start or Other_ID_Continue -> Make
tokenize recognize Other_ID_Start and Other_ID_Continue chars
___
Python tracker
<https://bugs.python.org/issu
Change by Terry J. Reedy :
--
assignee: meador.inge -> terry.reedy
___
Python tracker
<https://bugs.python.org/issue24194>
___
___
Python-bugs-list mai
New submission from Terry J. Reedy :
Sometime between Jan 7 and Jan 16 (today) this VC compile warning appeared
(debug build).
"specialize.c
..\Python\specialize.c(1243): warning C4018: '<': signed/unsigned mismatch
[f:\dev\3x\PCbuild\_freeze_module.vcxproj]"
Sam
1 - 100 of 12740 matches
Mail list logo