Tal Einat added the comment:
Wow, I'm very surprised! Simply uncommenting that works perfectly on Ubuntu
20.04 and Windows 10.
I'll make a new PR...
--
___
Python tracker
<https://bugs.python.org/issue40
Tal Einat added the comment:
> What if register Tcl_Finalize as an atexit callback?
Precisely that was tried a long time ago (2002?) and decided against, as can be
seen by the comment left behind at the end of _tkinter.c:
#if 0
/* This was not a good idea; through bindi
Change by Tal Einat :
--
versions: +Python 3.11 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue40452>
___
___
Python-bugs-list mailing list
Unsub
Tal Einat added the comment:
> Can we backport? The change to _tkinter, not directly exposed in tkinter,
> could be considered an enhancement, but is necessary to fix what I consider a
> real bug in tkinter, and hence in IDLE.
I'm +1 for backporting the latest PR. It only adds th
Change by Tal Einat :
--
pull_requests: +24796
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/26163
___
Python tracker
<https://bugs.python.org/issu
Tal Einat added the comment:
See PR GH-26163.
--
stage: patch review -> needs patch
___
Python tracker
<https://bugs.python.org/issue40452>
___
___
Python-
Tal Einat added the comment:
Okay, so it appears that a generic solution for tkinter is non-trivial, as it
is not clear when to call Tcl_Finalize() or Tcl_FinalizeThread().
However, giving tkinter apps the ability to call those when appropriate is
possible. Exposing a thin wrapper around
Tal Einat added the comment:
> And what you need is just to not pass to the wrapped function arguments which
> were not passed to wrapper. *args and **kwargs do not contain arguments which
> were not passed.
It's common for wrapper functions to mirror the defaults of the wrapped
Tal Einat added the comment:
> I do not understand the problem with pickling sentinel values used as default
> values for function parameters. Could you please show an example?
A category of relevant uses I can think of is when wrapping a function and
storing the parameters it was
Tal Einat added the comment:
> This needs a good deal more discussion before sweeping through the code and
> change a long standing Python idiom that has stood the test of time.
I agree this should be discussed, which is why I created this issue about it,
as place for that disc
Tal Einat added the comment:
... and they can be given excellent reprs by using a meta-class:
class Sentinel(type):
@classmethod
def __prepare__(cls, name, bases, **kwds):
d = super().__prepare__(name, bases, **kwds)
def __new__(cls_, *args, **kwargs
Tal Einat added the comment:
Alternatively, sentinels can simply be classes:
class Sentinel:
def __new__(cls, *args, **kwargs):
raise TypeError(f'{cls.__qualname__} cannot be instantiated')
class MISSING(Sentinel):
pass
Tal Einat added the comment:
Here is what I suggest working with sentinels would look like:
>>> from dataclasses import MISSING
>>> MISSING
dataclasses.MISSING
>>> M2 = pickle.loads(pickle.dumps(MISSING))
>>> M2
dataclasses.MISSING
>>> M2 is
Tal Einat added the comment:
Additional examples of such sentinel values in the stdlib are those in the
dataclasses module, e.g. dataclasses.MISSING.
--
___
Python tracker
<https://bugs.python.org/issue44
New submission from Tal Einat :
I recently noticed that some functions use sentinel values to differentiate
between not having been passed any value vs. None. One example of this is
traceback.print_exception(), hence I'm adding Irit to the nosy list.
However, using e.g. `sentinel = object
Change by Tal Einat :
--
keywords: -easy, patch
___
Python tracker
<https://bugs.python.org/issue21261>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Tal Einat :
--
keywords: +patch
___
Python tracker
<https://bugs.python.org/issue21261>
___
___
Python-bugs-list mailing list
Unsubscribe:
Tal Einat added the comment:
Note that I've created a new version of the latest PR, with support for dict
keys of type bytes removed.
--
___
Python tracker
<https://bugs.python.org/issue21
Change by Tal Einat :
--
pull_requests: +24684
pull_request: https://github.com/python/cpython/pull/26039
___
Python tracker
<https://bugs.python.org/issue21
Change by Tal Einat :
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue44084>
___
___
Tal Einat added the comment:
Thanks Dominic, it seems that you're absolutely right!
--
___
Python tracker
<https://bugs.python.org/issue44084>
___
___
Python-bug
New submission from Tal Einat :
Beginning in Python 3.10, `match`, `case` and `_` are "soft keywords", i.e.
they are considered keywords only in specific parts of the syntax.
However, they cannot be tagged with a :keyword:`...` role in our docs.
This appears to be due to not
Tal Einat added the comment:
Upon reading Terry's previous comments here more carefully, it's clear that he
will be adding an option to switch between this mode and an alternate mode with
prompts on separate lines in the main text widget. The latter will be much more
similar
Tal Einat added the comment:
> Is it possible to add a Settings option under the General tab to switch
> between the sidebar mode and traditional mode?
Raymond, that should be possible, and possibly rather easily. I'll take a look
at adding this
Tal Einat added the comment:
I've created a PR (GH-25851) with a rather quick, working implementation.
This includes some tests but I haven't thoroughly tested it yet.
If anyone can take a look and give feedback on the approach, that would be
great
Change by Tal Einat :
--
keywords: +patch
pull_requests: +24534
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/25851
___
Python tracker
<https://bugs.python.org/issu
Tal Einat added the comment:
> A related request is to to syntax highlight field expressions in f strings.
Related, but separate, and IMO not quite as urgent.
I can commit to working on this issue (soft keywords), but I'll have to see
where things stand once this is finished before mov
Tal Einat added the comment:
I think it is rather crucial to have this with the 3.10 release. I'll try to
get this working ASAP.
I agree that a simple "good enough" solution could be a good start, but "_"
will likely n
Tal Einat added the comment:
Terry, Elisha, does one of you intend to work on this? If not, I'd be willing
to.
--
___
Python tracker
<https://bugs.python.org/issue44
Tal Einat added the comment:
Thanks for the info, Raymond.
Anyone with an M-1 Mac able to look into this further?
--
___
Python tracker
<https://bugs.python.org/issue43
Tal Einat added the comment:
Any news on this?
Ned, ISTM that we should create a separate issue to track your latest
observation regarding double-click opening on macOS 11 Big Sur / IDLE 3.10.0a4
/ Tcl/Tk 8.6.11.
This is marked as "Critical" but given the discussio
Tal Einat added the comment:
I'd be happy to look into this but I haven't access to any M-1 Macs at the
moment.
It would be helpful if someone with an M-1 could try running IDLE from the
command line to see if an error message is written when this issue occurs.
--
nosy: +taleinat
Tal Einat added the comment:
The "copy only code" feature has been removed for now. It can't currently be
properly implemented, due to code input not being marked different than user
input in between REPL commands, e.g. in response to an input() call.
With that, the PR is curr
Tal Einat added the comment:
Pablo, many thanks for catching this, analyzing it and finding a fix!
Sorry for missing this cleanup in the first place, and moreso for not having
being able to look into this when you brought it up.
--
___
Python
Tal Einat added the comment:
> For doctests, one wants code with '>>> ' and '... ' prompts and unmarked
> output.
Note that with the latest PR, the shell sidebar now adds a "Copy with prompts"
context-menu op
Tal Einat added the comment:
To those following, please note that the latest PR (GH-25708) adds a "Copy with
prompts" context-menu option, to make copying interactive sessions for
doc-tests and code examples convenient.
--
___
Pyth
Change by Tal Einat :
Removed file: https://bugs.python.org/file4/pb_tool-3.1.0-py3-none-any.whl
___
Python tracker
<https://bugs.python.org/issue41608>
___
___
Pytho
Change by Tal Einat :
--
pull_requests: +24396
pull_request: https://github.com/python/cpython/pull/25708
___
Python tracker
<https://bugs.python.org/issue37
Tal Einat added the comment:
Thanks for the suggestion, PR, and great heaps of patience and perseverance,
Tymek!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bug
Tal Einat added the comment:
New changeset 09aa6f914dc313875ff18474770a0a7c13ea8dea by Tymoteusz Wołodźko in
branch 'master':
bpo-38490: statistics: Add covariance, Pearson's correlation, and simple linear
regression (#16813)
https://github.com/python/cpython/commit
Change by Tal Einat :
--
keywords: +newcomer friendly
___
Python tracker
<https://bugs.python.org/issue43075>
___
___
Python-bugs-list mailing list
Unsubscribe:
Tal Einat added the comment:
New changeset 069560b1171eb6385121ff3b6331e8814a4e7454 by Irit Katriel in
branch 'master':
bpo-34463: Make python tracebacks identical to C tracebacks for SyntaxErrors
without a lineno (GH-23427)
https://github.com/python/cpython/commit
Change by Tal Einat :
--
Removed message: https://bugs.python.org/msg382632
___
Python tracker
<https://bugs.python.org/issue40452>
___
___
Python-bugs-list m
Tal Einat added the comment:
Thanks for reporting this, Kyle!
Thanks for the PR, Irit!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Tal Einat added the comment:
New changeset d1f07419c7560ed3ba52ba4f667f4eec9b5fe95d by Miss Islington (bot)
in branch '3.9':
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range
(GH-23633)
https://github.com/python/cpython/commit
Tal Einat added the comment:
New changeset 2e0760bb2edb595050aff82f236cd32b44d3dfb3 by Irit Katriel in
branch 'master':
bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range
(GH-23633)
https://github.com/python/cpython/commit
Tal Einat added the comment:
Thank you for reporting this, Noureddine Hamid!
Thanks for the PR, Irit!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Tal Einat added the comment:
New changeset 6e1eec71f59c344fb23c7977061dc2c97b77d51b by Irit Katriel in
branch 'master':
bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630)
https://github.com/python/cpython/commit/6e1eec71f59c344fb23c7977061dc2c97b77d51b
Tal Einat added the comment:
Thanks for the report, Michael!
Thanks for the fix, Irit!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: -Python 3.8, Python 3.9
___
Python tracker
<https://bug
Tal Einat added the comment:
New changeset ff420f0e08a2443339da0df7ace95e14177bac53 by Irit Katriel in
branch 'master':
bpo-28850: Fix PrettyPrinter.format overrides ignored for contents of small
containers (GH-22120)
https://github.com/python/cpython/commit
Tal Einat added the comment:
Since it's a different implementation approach, I'd prefer a separate PR.
Whether we merge the existing one depends on whether we'd like to backport a
fix for this to 3.9 and 3.8.
--
___
Python tracker
<ht
Tal Einat added the comment:
Irit, I like the approach of your PR for an immediate fix, that we could
consider backporting.
In the long term, ISTM that we should refactor to store the breakpoints with
only a single source of truth, and avoid the duplication between
Breakpoint.bplist
Tal Einat added the comment:
I'm also uneasy about the sys.argv mangling.
It seem to me that it would be safer, and more explicit, to pass the desired
arguments in the Restart exception instance.
--
nosy: +taleinat
___
Python tracker
<ht
Tal Einat added the comment:
Perhaps we could get a Tcl/Tk dev to help with this?
--
___
Python tracker
<https://bugs.python.org/issue40452>
___
___
Python-bug
Change by Tal Einat :
--
Removed message: https://bugs.python.org/msg380188
___
Python tracker
<https://bugs.python.org/issue42239>
___
___
Python-bugs-list m
Tal Einat added the comment:
We already have a "<>" virtual event which is triggered upon
typing a closing parenthesis ')'. We could just have it always call
"open_calltip()" rather than only doing so when one is alre
Change by Tal Einat :
--
pull_requests: +22014
pull_request: https://github.com/python/cpython/pull/23100
___
Python tracker
<https://bugs.python.org/issue42
Tal Einat added the comment:
We already have a "<>" virtual event which is triggered upon
typing a closing parenthesis ')'. We could just have it always call
"open_calltip()" rather than only doing so when one is alre
Tal Einat added the comment:
I should also mention that I configured and compiled Python for each of the
above-mentioned versions using the --enable-optimizations` flag.
--
___
Python tracker
<https://bugs.python.org/issue41
Tal Einat added the comment:
After spending quite a while setting up my dev machine for (hopefully) reliable
benchmarking, I can say with a high level of certainty that the latest PR
(GH-22904, commit fe9e9d9c1f1c5f98c797d19e2214d1413701f6de) runs stringbench.py
significantly faster than
Tal Einat added the comment:
Thanks Mark, your feedback is greatly appreciated!
--
___
Python tracker
<https://bugs.python.org/issue34976>
___
___
Python-bug
Tal Einat added the comment:
> Why would having all 'a's on a page light up when I type 'a' be a plus?
The auto-highlighting could be disabled for 1-2 character search queries, or
delayed for a bit to allow typing to continue.
I find auto-highlighting very useful when I'm looking for &qu
Tal Einat added the comment:
> Dong-hee, I recommend that you turn this into a 3rd party package on PyPI
> yourself.
+1
--
___
Python tracker
<https://bugs.python.org/i
Tal Einat added the comment:
New changeset 7c949020ef2520d7a7cbc978f0b34423e6c2a94c by Anthony Sottile in
branch '3.9':
bpo-40492: Fix --outfile with relative path when the program changes it working
dir (GH-19910)
https://github.com/python/cpython/commit
Tal Einat added the comment:
New changeset 1c5a65723e623be32e246f58b8797a263f616295 by Anthony Sottile in
branch '3.8':
bpo-40492: Fix --outfile with relative path when the program changes it working
dir (GH-19910)
https://github.com/python/cpython/commit
Tal Einat added the comment:
Thanks for the report and the PR, Stein!
And thanks for the PR for 3.8, Irit!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Tal Einat added the comment:
New changeset 1a3f7c042a32fb813835243bd7f96e47c665bfdc by Irit Katriel in
branch '3.8':
[3.8] bpo-32498: Improve exception message on passing bytes to
urllib.parse.unquote (GH-22746)
https://github.com/python/cpython/commit
Tal Einat added the comment:
Many thanks for the report and the PR, Anthony!
Serhiy, do you think it is worth also calling abspath in the profile._Utils as
you mentioned, for cases where those may be called directly?
--
___
Python tracker
<ht
Change by Tal Einat :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Tal Einat :
--
pull_requests: +21717
pull_request: https://github.com/python/cpython/pull/22754
___
Python tracker
<https://bugs.python.org/issue40
Change by Tal Einat :
--
pull_requests: +21716
pull_request: https://github.com/python/cpython/pull/22753
___
Python tracker
<https://bugs.python.org/issue40
Tal Einat added the comment:
New changeset 3c0ac18504cfeed822439024339d5717f42bdd66 by Anthony Sottile in
branch 'master':
bpo-40492: Fix --outfile with relative path when the program changes it working
dir (GH-19910)
https://github.com/python/cpython/commit
Tal Einat added the comment:
Thanks for the reminder Irit!
No, this should not be closed yet, as there is still the possibility of
improving the exception in version 3.8.
--
versions: +Python 3.8
___
Python tracker
<https://bugs.python.
Tal Einat added the comment:
After further reading, especially the docs for OSError which describe the
filename and filename2 attributes, I agree that setting .filename on the
FileNotFoundError exception is the way to go.
--
___
Python tracker
Tal Einat added the comment:
> I am not sure what is better: to fix it at high level, in main() for cProfile
> and cProfile, or at low level, in methods runctx() and run() of
> profile._Utils.
Maybe both, to keep them decoupled and be sure of correct behavior in all cases?
--
Tal Einat added the comment:
New changeset 400175ad91c1aa8abc6dfce108446e4210d0c157 by Miss Skeleton (bot)
in branch '3.8':
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message
(GH-19940)
https://github.com/python/cpython/commit/400175ad91c1aa8abc6dfce108446e4210d0c157
Tal Einat added the comment:
New changeset 6a2aa4994e99ae8e43011a0290646fde4724a003 by Miss Skeleton (bot)
in branch '3.9':
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message
(GH-19940)
https://github.com/python/cpython/commit/6a2aa4994e99ae8e43011a0290646fde4724a003
Change by Tal Einat :
--
type: -> enhancement
versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python
3.9
___
Python tracker
<https://bugs.python.org/issu
Tal Einat added the comment:
I agree that having the error message include the executable name could be
useful.
--
nosy: +taleinat
___
Python tracker
<https://bugs.python.org/issue40
Tal Einat added the comment:
I suggest bringing this up for discussion on Python-Ideas.
--
nosy: +taleinat
___
Python tracker
<https://bugs.python.org/issue40
Tal Einat added the comment:
Thanks for the PR, Max!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Tal Einat added the comment:
New changeset 3635388f52b42e5280229104747962117104c453 by Max Bernstein in
branch 'master':
bpo-42065: Fix incorrectly formatted _codecs.charmap_decode error message
(GH-19940)
https://github.com/python/cpython/commit/3635388f52b42e5280229104747962117104c453
Change by Tal Einat :
--
components: +Library (Lib), Unicode
nosy: +ezio.melotti, vstinner -tekknolagi
type: -> behavior
versions: +Python 3.10, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issu
New submission from Tal Einat :
The error message for _codecs.charmap_decode uses a non-existent formatting
placeholder "%lx", when a mapped value is a number outside the range of valid
Unicode code points.
This was reported by Max Bernstein (@tekknolagi) on GitHub P
Tal Einat added the comment:
Thanks for the PRs, James!
I've closed the PRs for now, to avoid having people spend time reviewing them
while this issue is closed as "wontfix". That said, if further discussion
changes that decision, the PRs could be reopened.
--
nosy:
Tal Einat added the comment:
Thanks for the suggestion and for the high quality PR, Madhusudhan!
I'm not sure about this feature. It seems harmless enough, with the default
being the existing case-sensitive completion. But it seems like a rather
esoteric thing to want, so I'm not sure it's
Tal Einat added the comment:
Indeed, this can be closed :)
Thanks for the report Colin, thanks for the PR Harmandeep, and thanks for the
reminder to close this Irit!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -&g
Change by Tal Einat :
--
nosy: +taleinat
nosy_count: 4.0 -> 5.0
pull_requests: +21677
pull_request: https://github.com/python/cpython/pull/22682
___
Python tracker
<https://bugs.python.org/issu
Tal Einat added the comment:
See a cross-platform script in PR GH-22694.
--
___
Python tracker
<https://bugs.python.org/issue30934>
___
___
Python-bugs-list m
Change by Tal Einat :
--
keywords: +patch
pull_requests: +21665
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/22694
___
Python tracker
<https://bugs.python.org/issu
Change by Tal Einat :
--
pull_requests: +21653
pull_request: https://github.com/python/cpython/pull/22682
___
Python tracker
<https://bugs.python.org/issue37
Tal Einat added the comment:
I should mention one *major* advantage of using a search/replace bar: Live
highlighting of matches *as you type*. It really is a vastly better experience;
if you haven't tried it yet, please do.
--
___
Python tracker
Tal Einat added the comment:
The version in the PR is modeled after similar features in IDEs, not browsers.
I mentioned browsers since they are very commonly used, and to the best of my
knowledge all modern browsers use search bars. Therefore, as a UI element,
search bars are now
Tal Einat added the comment:
Given the discussion here and the state of the attached PR, I intend to merge
the PR in several weeks, unless someone has anything else to say.
--
nosy: +taleinat
___
Python tracker
<https://bugs.python.org/issue38
Tal Einat added the comment:
As noted on the PR GH-20753, an incremental change to the current logic doesn't
seem like a promising approach.
It seems to me that this will require refactoring the code parsing logic to
allow it to incrementally parse lines backwards and forwards in order
Tal Einat added the comment:
Thanks for this, Ram!
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.8, Python 3.9
__
Tal Einat added the comment:
New changeset 8ca08310a882b7db6469fe732465610b92f4665e by Miss Skeleton (bot)
in branch '3.9':
[3.9] bpo-41867: List options for timespec in docstrings of isoformat methods
(GH-22418)
https://github.com/python/cpython/commit
Tal Einat added the comment:
Thanks, Ram!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Tal Einat added the comment:
New changeset ef7b937b8fe94f4c59dfcbe7567c3ca76097a41d by Miss Skeleton (bot)
in branch '3.9':
[3.9] bpo-40833: Clarify Path.rename doc-string regarding relative paths
(GH-20554)
https://github.com/python/cpython/commit/ef7b937b8fe94f4c59dfcbe7567c3ca76097a41d
Tal Einat added the comment:
New changeset 52301312bb9de2299b0c42468fd1936d869e651c by Ram Rachum in branch
'master':
bpo-41867: List options for timespec in docstrings of isoformat methods
(GH-22418)
https://github.com/python/cpython/commit/52301312bb9de2299b0c42468fd1936d869e651c
101 - 200 of 1433 matches
Mail list logo