Terry J. Reedy added the comment:
Upon further thought, not a problem. Stephen considered the case:
class myint(int):
# inherit __init__
def added_func(self): "some new function of an int"
In this case, fob = myint.__init__ would not be FunctionType and inspect would
not
Terry J. Reedy added the comment:
The weird behavior was as if the cursor were moved to the beginning of the line
and pressed. I cannot duplicate it. I had
elif not isinstance(ob, (types.FunctionType, types.MethodType)):
instead
elif isinstance(ob.__call__, types.MethodType
Terry J. Reedy added the comment:
I believe that for 3.x, Lib/lib-tk/Tkinter.py is not Lib/tkinter/__init__.py. I
will put this on my list of issues to look at if possible.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue6
Terry J. Reedy added the comment:
> File , save as, libraries, documents - then I save the file there.
Ok, I agree now that this seems to be a duplicate of #12988
I will make a note there that another user had the same problem.
--
resolution: -> duplicate
status: open -&g
Terry J. Reedy added the comment:
Maureen, as I explain on #12988, I believe that this was a tcl/tk problem that
was fixed by the recent release of version 8.5.11 (last March). The Windows
installer for Python 3.3.0a4 release (a week ago) seems to have solved the
problem for me. So give that
Terry J. Reedy added the comment:
I closed #14996 as a duplicate of this. The OP there claimed that behavior
changed between 3.2.1 and 3.2.3 and that she had same problem with 32 bit
installation. It is hard to know the exact circumstances of the problem until
we find its cause.
Looking
Terry J. Reedy added the comment:
I decided to commit the current patch (i12510c.test.diff + NEWS changes) as is.
Another change is needed to correctly delete the first arg of all methods, not
just instance methods with the first arg named 'self'. (In the current new
classmethod te
Changes by Terry J. Reedy :
--
superseder: -> An inconsistency with nested scopes
___
Python tracker
<http://bugs.python.org/issue1167300>
___
___
Python-
Terry J. Reedy added the comment:
Jānis, please present examples as proper python -- indentation and comment char
-- so others can copy/paste to run without editing.
In Idle (tkinter -- tk), '\0' is displayed as a wider space than ' '. The
console is fixed pitch, so i
Terry J. Reedy added the comment:
The 2.7 doc can also be updated. Here is a couple to add or replace.
Tcl/Tk 8.5 Manual http://www.tcl.tk/man/tcl8.5/
The the current tcl/tk reference manual. The Tk Commands section is the most
relevant for tkinter.
TKDocs http://www.tkdocs.com/
Extensive
Terry J. Reedy added the comment:
Kevin Walzer, who uses tk/inter regularly, sent me the following
effbot has a more recent work-in-progress update of his Tkinter docs here:
http://effbot.org/tkinterbook/
I refer to this a lot.
"Programming Python" by Mark Lutz (Amazon link h
Terry J. Reedy added the comment:
Michael, you should ask the closed source library distributor to distribute all
files as .pyc so you have access to docstrings while programming and to avoid
the problem with reading them. He could also distribute an all-.pyo version. A
mixture seems
Terry J. Reedy added the comment:
The response from pydev is that running .pyc with -O or running .pyo without is
not officially supported. Even if mixing usually works now, it does not always
work properly for code with __debug__, assert, or __doc__. The scope of
possible malfunctions may
Terry J. Reedy added the comment:
Eric, can you find a place in the current doc where -O and .pyo are mentioned,
and where you think a sentence should go. What sentence(s) would you like to
see.
Other comments:
__debug__ is intended to be a process-global compilation value (implemented as
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue14997>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Martin, do I understand that you are saying that this is not a Python problem,
and should be closed?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue15
Terry J. Reedy added the comment:
Greg, I am closing this because you seem to have found an alternate solution
and have dropped the issue. If you do want to pursue a change for 3.4, I
suggest you refresh your patch and post to python-ideas (new list since you
posted this). As a limited
Terry J. Reedy added the comment:
Patrick, its been 5 years since you promised a 2nd patch (which would now have
to be against the current 3.3 tip). If you have lost interested, perhaps we
should close this.
--
nosy: +terry.reedy
versions: +Python 3.4 -Python 3.2
Terry J. Reedy added the comment:
> the interfaces of the v4 and v6 variants are deliberately very similar
I am hoping that means 'identical, once the obvious translations are made': v4
to v6, xxx.xxx.xxx.xxx to , and anything else?
> documenting everything twice seems li
Terry J. Reedy added the comment:
To put it another way, IDLE is written for standard Python. A standard Python
interpreter has a getattr builtin that works as documented in the library
manual. Deleting that or any other builtin makes the interpreter non-standard.
So would replacing or
Terry J. Reedy added the comment:
If you want to discuss this issue further, I think you post to python-ideas
list with concrete examples.
--
___
Python tracker
<http://bugs.python.org/issue3
Changes by Terry J. Reedy :
--
nosy: +pitrou
___
Python tracker
<http://bugs.python.org/issue15079>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Jeremy, when reporting bugs, please first check the latest release. This works
in current 2.7.3 (as well as latest 2.6.8 and 3.3.0).
>>> import Cookie
>>> cookie = Cookie.SimpleCookie('bcookie="123"; Expires=Sat, 14-Jun-201
Changes by Terry J. Reedy :
--
components: +Tests
stage: -> test needed
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue15091>
___
___
Terry J. Reedy added the comment:
Since we have defined an enum, I think we should use it consistently. (Am I
correct in thinking it was added after the initial patches.) So I did a sanity
check of -/+ lines for perhaps unintended changes. The only things I found to
comment on, mostly
Terry J. Reedy added the comment:
As a native speaker, I agree that the sentence, in isolation, is hardly
comprehensible. The previous one is also a bit flakey.
The situation is that top-level code executes in a module named __main__, which
has one joint global/local namespace that is the
Changes by Terry J. Reedy :
--
nosy: +ghaering
___
Python tracker
<http://bugs.python.org/issue15117>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
(OT, but since you brought it up: In my opinion, deprecating the iterability of
any builtin class is a horrible idea. It is a Python feature, especially in
3.x, that all *are* iterable. However, I would agree that named tuples should
be iterable by name
Changes by Terry J. Reedy :
--
components: +Interpreter Core -None
___
Python tracker
<http://bugs.python.org/issue11205>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
None has over 1300 issues, mostly old (historical). It could be removed from
current use, I think (if it is possible to hide such a thing).
Cross-build has just 6 issues collected together in last three months. I do not
think that is really enough to justify
Terry J. Reedy added the comment:
The file is 'controversial'. The link was intentionally removed (and the file
deleted and restored but not relinked, pending update) in #7391 (which was
closed and re-opened).
Your links do not work because the comma/period that follow are consi
Terry J. Reedy added the comment:
I think *both* proposals are sensible. Fraction already has .from_decimal
(using Decimal), so .to_decimal (also using Decimal) is sensible. It also has
.from_float, with 'f.to_float' spelled f.__float__, normally called as float(f).
On the other
Terry J. Reedy added the comment:
Do read PEP 8 Python style guide. http://python.org/dev/peps/pep-0008/
You violated the following:
(Peeves)
More than one space around an assignment (or other) operator to align it with
another.
Yes:
x = 1
y = 2
long_variable = 3
No:
x = 1
y
Terry J. Reedy added the comment:
The bug is the mismatch between doc and behavior. Unless someone can explain
why the seemingly reasonable docstring is wrong, I would consider changing the
behavior a possible fix. Can you add minimal test code that gives you an int? I
should check windows
Terry J. Reedy added the comment:
Just that, which I used to verify with 2.7.3 and 3.3.0a4 in Win7 and do some
more experiments:
bv.set/get happily accept *and return* 2, -1,
bv.set(2.2) 'works'
bv.get() then raises TypeError: must be str, not float
This will annoy you ;-)
Terry J. Reedy added the comment:
This issue is currently marked as a bugfix for current releases also. Since the
proposal seems to be to introduce a new flag, should it be re-classified as
enhancement (for 3.4)?
--
___
Python tracker
<h
Terry J. Reedy added the comment:
Mark: "Variable.get(self) returns self._tk.globalgetvar(self._name).
String/Int/Double/Var call str/int/float as appropriate." was meant to say that
String/Int/Double/Var.get(self) already call str/int/float on the result of
self._tk.globalgetvar(
Terry J. Reedy added the comment:
Given that the overall trend in the stdlib seems to be to be more lenient in
parsing, as with htmlparser, and that the not-really-strict 'strict' parameter
for that is being removed, (#15114) I do not understand the objection to
acceptin
Terry J. Reedy added the comment:
I learned about different number bases in 8th grade math class (a long time
ago) and how to use base 2 to win nim. I learned 'octal' and 'hexadecimal' much
later. In the absence of an official, documented vocabulary for such non-Python
co
Terry J. Reedy added the comment:
In 3.3.3a4 and b1, with original 3, I no longer get TypeError, but box
"python(w).exe has stopped working". So either Win7, 64 bit, on machine with
much more memory makes a diffence, or something in code reverted. Is this
really a security iss
Terry J. Reedy added the comment:
I agree with Raymond that this, especially super() is not tutorial material. I
agree with David that we need something somewhere else. Just today a commit was
pushed about IOException subclasses causing problems because they have an
__init__ but don't
Terry J. Reedy added the comment:
#15141, which I will close as a duplicate, makes the same request (for the edit
window). Roger Serwy notes that his extension package
http://idlex.sourceforge.net/extensions.html
has horizontal.py, which does what is requested. He is willing for that (or
Changes by Terry J. Reedy :
--
resolution: -> duplicate
status: open -> closed
superseder: -> Bottom Scroll Bar
___
Python tracker
<http://bugs.python.or
Terry J. Reedy added the comment:
Did you read "Unfortunately, delimiter is represented by a character in C." in
one of the answers? If so, this should be rejected. For the posted problem, I
added the following.
>>> list(s[1:-1] for s in '"1234"||"abc
Terry J. Reedy added the comment:
Failure modes tend to get less attention that successful behavior. If I wrote a
program that used doctest/unittest to test multiple files, I should like it to
run an many as possible. If a filename is bad, print name as usual, say
'aborted', and
Terry J. Reedy added the comment:
This strikes me as a bugfix that does not get backported because code might
depend on the bug. If the policy for exception messages, such as it is,
documented somewhere?
--
nosy: +terry.reedy
___
Python tracker
Terry J. Reedy added the comment:
It is not clear to me what change your are proposing.
--
nosy: +gpolo, terry.reedy
type: -> enhancement
versions: +Python 3.4 -Python 3.2
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
It has been agreed that IDLE could assume tk8.5 (or possibly 8.4 + tile
extension) and use themed widgets (though it is not yet) and not run otherwise.
Further discussion would be needed to do the same for tkinter, but maybe by 3.4
that might be reasonable
Terry J. Reedy added the comment:
This is definitely a motivated change ;-). I would like this re-typed as
behavior and applied to 2.7, 3.2, and 3.3. I see the current message as being
much like a garbled sentence in the docs that people can only understand if
they already understand the
Terry J. Reedy added the comment:
3.3b0, Win7, 64 bit. Original test script stops at
File "C:\Programs\Python33\lib\encodings\cp437.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't e
Terry J. Reedy added the comment:
I was reporting stock, as distributed 3.3b0.
Is unicode3.py something to run once or import in each app that wants unicode
output? Either way, if it is possible to fix the console, why is it not
distribute it with the fix?
>Terry, applications for
Changes by Terry J. Reedy :
--
nosy: +serwy
___
Python tracker
<http://bugs.python.org/issue12967>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
On 3.3b0, Win7, 64-64 bit, run from IDLE, script brings up empty tk window.
Closing it gives prompt back in Shell window.
Maslach, can you retry with 2.7.3 (bug fix is generally a good idea anyway) and
maybe 64 bit version (you can install both 32 bit and 64
Terry J. Reedy added the comment:
I agree with Raymond. You might, however, emphasize 'normal' in 'normal
interpreter termination'. That is the key point. The 'note' merely explains
'abnormal'.
--
nosy: +terry.reedy
_
Terry J. Reedy added the comment:
Stephen is right; this sort of guess-the-bug heuristic is out of scope for the
CPython interpreter. I believe you grossly under estimate the difficulty of
such a this. Consider that idea rejected.
What *is* disconcerting is the exact form of the error
Changes by Terry J. Reedy :
--
stage: -> needs patch
title: In "TypeError: 'tuple' object is not callable", explain that a comma may
be missing -> Better explain "TypeError: 'tuple' object is not callable"
versions: +Python 3.4
Terry J. Reedy added the comment:
In Py3, new.code and new.function become types.CodeType and types.FunctionType.
The 'documentation' of their signatures is only available with help(types.xxx).
So the library doc issue is 2.7 only.
Running with IDLE, 3.3b0, Win7, the converted ex
Changes by Terry J. Reedy :
--
stage: needs patch -> patch review
___
Python tracker
<http://bugs.python.org/issue15256>
___
___
Python-bugs-list mai
Changes by Terry J. Reedy :
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue15258>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
In 3.3, you do not need it
>>> Unhandled exception in thread started by
Traceback (most recent call last):
File "F:\Python\mypy\tem.py", line 2, in f
def f(): typo #there is no variable called typo
NameError: global name 'typo
Terry J. Reedy added the comment:
Phillip, this is a trivial wsgiref patch. Do you have any opinion?
--
versions: +Python 3.4 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue5
Terry J. Reedy added the comment:
We do not document removals after they are done as they are not an issue for
back-compatibility (unlike changes and additions).
Deprecation Warnings are optionally available for checking
forward-compatibility. Deprecations are sometimes noted in the regular
Phillip J. Eby added the comment:
On Sat, Jul 7, 2012 at 2:37 PM, Terry J. Reedy wrote:
> Phillip, this is a trivial wsgiref patch. Do you have any opinion?
>
Nope.
--
___
Python tracker
<http://bugs.python.org/
Terry J. Reedy added the comment:
Unless this could have been just as easily fixed in IDLE as in the core
(Roger?), no, don't hold your breath ;-).
--
nosy: +serwy
___
Python tracker
<http://bugs.python.org/is
Terry J. Reedy added the comment:
Thanks Roger. So this should be fixed in the upcoming 2.7.4 and probably 3.2.4.
--
___
Python tracker
<http://bugs.python.org/issue15
Terry J. Reedy added the comment:
Thank you for the 'positive lookbehind assertion' for anchoring the match after
'('. That is what I was missing. '[^,]' is too broad as, in particular, it
matches the ')' in 'a(self)'. We don't want the
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue1757057>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
The patch (to my production Idle, with name fix) prevents crashing and raises
an error instead when an object *can* be pickled, so I will apply before 3.3 if
no problems appear and we cannot do better.
But written objects are still pickled, so
Terry J. Reedy added the comment:
Thanks Martin. I was thinking of adding special-casing inside the rpcproxy
class, but the wrapping is pretty clean and clear. Works great in 3.3 Win7-64.
The 2.7 message 'expected a character buffer object' is technically correct*,
but opaque, esp
Terry J. Reedy added the comment:
I tested and pushed the change to allow bytestrings. If anyone is printing
other character buffer objects in 2.7 with Idle, they can explicitly convert to
str/bytes, patch run.py, and/or post here or on a new issue for further
expansion. I am otherwise done
Terry J. Reedy added the comment:
I tested with defaultextension='' on Windows and it works well. If no extension
is entered (no '.' in name), .py or .txt is added for the .py/w and .txt
filetype choices. If there is a . in the name, nothing is added. If one wants
x.y.p
Terry J. Reedy added the comment:
I would like to broaden this to add other missing features to the menus. I have
no need for this, but I would like history-next/prev added (to shell, as they
only apply there). I never learned them because at first I did not know about
them and now it is
Terry J. Reedy added the comment:
I was thinking about #12387 about caps lock and shortcuts.
--
___
Python tracker
<http://bugs.python.org/issue15308>
___
___
Terry J. Reedy added the comment:
And possibly change the except clause. The except clause at PyShell 1245 was
'pass', which masked the issue of #13532 and was changed to 'raise' to
effectively remove the try: except: to make the unknown problem more visible.
It shou
Terry J. Reedy added the comment:
I agree that the _RPCFile wrapping of the stdin proxy should be undone unless
and until there is a positive reason for it -- it solves a problem -- and it is
better tested. But reversion does not solve pre-existing problems. As noted by
Roger, sys.stdin
Terry J. Reedy added the comment:
To me, this is part of #15319. sys.stdin is broken in being writable but not
readable. Unwrapping is just the first, trivial step to fixing it. So I think
we should close this in favor of the other.
--
___
Python
Terry J. Reedy added the comment:
Ah, sys.stdin.readline() works. So the object being proxied has readline (and
write and writelines) but not read and readlines. I presume the proxy is in the
user process and the actual stdin/out/err objects are in the idle process,
interacting with the
Changes by Terry J. Reedy :
--
title: IDLE - input() is broken. -> IDLE - sys.stdin is broken.
___
Python tracker
<http://bugs.python.org/issue15319>
___
___
Py
Terry J. Reedy added the comment:
I agree. Go ahead. But what do you think of applying to 2.7 and or 3.2?
I want to add a sentence to Idle help, which I want to edit for the tooltips
issue also. But that is not a rush.
--
___
Python tracker
<h
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue15275>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: +orsenthil
___
Python tracker
<http://bugs.python.org/issue15280>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I guess I should try to come up with something that is an improvement, even if
not perfect.
--
___
Python tracker
<http://bugs.python.org/issue14
New submission from Terry J. Reedy :
I have (had ;-) a project file ~template.py with common boilerplate.
To start a new project file, I want to open the above and save as xyz.py. I can
edit and 'save' the template to update it just fine. But trying to do a 'save
as' to
Terry J. Reedy added the comment:
In the next alpha release, everything was fine and I though about closing this.
When I first installed b1, the problem came back. But in a few days, 3.3.0b1
started working right. I did two things since to my installed idlelib, beside
just using it. First
Terry J. Reedy added the comment:
The original patches were to all 3 versions. The later patches were to both 3.x
versions and mostly involved get_argspec and expanding the tests. Get_argspec
is somewhat different from get_arg_text, the 2.x function it replaced. The main
difference I could
New submission from Terry J. Reedy :
Idle needs a unittest framework for module test modules. This means a test
directory with at least one test module, a runtest module that successfully
runs that test module, any new support functions needed for that test module,
and inclusion of test_idle
Terry J. Reedy added the comment:
This is not a problem on Windows because the failing tests are skipped.
test_input_tty (test.test_builtin.BuiltinTest) ... skipped
'the pty and signal modules must be available'
test_input_tty_non_ascii (test.test_builtin.BuiltinTest) ... skipped
Terry J. Reedy added the comment:
I think this test disabling and failure issue should get some attention.
Do the failures happen on non-Windows systems too?
With installed 3.3.0b1 on Win7, test___all__, test_tcl, test_tk,
test_ttk_textonly, and test_ttk_guionly all run if run first (_tk and
Terry J. Reedy added the comment:
I have not really used unittest, so I only know to blindly copy what has been
done. Hence I need help to do better.
Do you actually get gui tests for test_tk? When I run test/test_tk from Idle
editor, and hence as __main__, I only get non-gui tests in spite
Terry J. Reedy added the comment:
2.7 is on extended maintenance for normal bugs, but does not get new
features/enhancements. It is too late for 3.3 also.
--
versions: +Python 3.4 -Python 3.3
___
Python tracker
<http://bugs.python.org/issue13
Terry J. Reedy added the comment:
I would like to see my patch (cut and paste from message above) or something
like it in the next beta. It fixes the problem (since forever?) of tcl/tk/ttk
tests not running properly (at least on windows) as part of the test suite. (I
presume the buildbots
Terry J. Reedy added the comment:
I tested this on Windows in my installed 3.3.0b1. Copying the inserted lines to
my repository copy (where I cannot test it) gives the attached patch. On 3.2.3,
the insertion line would be 1056 instead of 1158.
--
Added file: http://bugs.python.org
Terry J. Reedy added the comment:
Hirokazu's original patch was to restore sys.modules after *every* test, not
just sys.modules. That *did* cause problems because (at minimum) of references
in importlib. Restoring only after __all__ would only let test_tcl run but not
test_tk. And th
Terry J. Reedy added the comment:
I do not see the error with installed 3.2.3. I **DO** see it consistently, when
running the test with installed 3.3.0b1 on 64 bit Win 7. The only failure is
==
FAIL: test_computations
Terry J. Reedy added the comment:
Both subclasses return NotImplemented for d+1. Otherwise, TypeError or
NotImplemented as expected. See file.
--
Added file: http://bugs.python.org/file26519/datetimetest.py
___
Python tracker
<h
Terry J. Reedy added the comment:
I agree with Martin also. A short paragraph and link to the (combined) online
file is quite sufficient. There is no need for the file to be in offline
copies. And I would make the change in all current versions.
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
I basically agree with Marc-André. Indeed, I think Acks, at least, should
contain names in native spelling plus, if that is not Latin-based, a
romanization. Three reasons:
1. I want English-speaking Python programmers to feel welcome to contribute and
be
Terry J. Reedy added the comment:
Richard is correct. From 17.1.1.2. Popen Constructor
"If env is not None, it must be a mapping that defines the environment
variables for the new process; these are used instead of inheriting the current
process’ environment, which is the default beh
Terry J. Reedy added the comment:
I think the current entry calling a generator function a generator is wrong, so
I appreciate your patch. Generator functions return instances of class
'generator'*. I personally refer to generators as generator-iterators about as
often as I refer t
Terry J. Reedy added the comment:
If you have not, please check other ctypes bitfields issues, especially #15119
"ctypes mixed-types bitfield layout nonsensical; doesn't match compiler." to
see if this is the same problem.
--
nosy: +terry.reedy
version
8401 - 8500 of 13135 matches
Mail list logo