New submission from Terry J. Reedy :
>>> help(inspect.getabsfile) could be copied
getabsfile(object, _filename=None)
Return an absolute path to the source or compiled file for an object.
The idea is for each object to have a unique origin, so this routine
normalizes t
Terry J. Reedy added the comment:
Are you requesting that the doc be changed or the code?
>From the title, I would infer the doc (which is much easier ;-).
If so, can you suggest an actual revised text?
--
nosy: +terry.reedy
stage: -> needs patch
versions: +Pyth
Terry J. Reedy added the comment:
WinXP, 3.2.0
>>> type(sys.stdin)
>>> sys.stdin.readline()
a
'a\n'
--
nosy: +terry.reedy
___
Python tracker
<ht
Terry J. Reedy added the comment:
That, like Antoine, I also could not reproduce, even in 3.2.0, when running
under IDLE. However, with regular command line Python:
Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)]
>>> import sys
>>> sys.stdin.readl
Terry J. Reedy added the comment:
After more thought and investigation, I have changed my opinions on this issue.
Allowing unicode string for locale in 2.7:
Since the module predates unicode strings (it is in 1.5) and since the locale
string is passed to a C function, 'string' in t
Terry J. Reedy added the comment:
Victor, the issue for 3.x, which remains, is to improve the error message. I
also suggested a doc change, though I would like Mark or Martin's comments
before I would make it.
>But I think that the commit is just useless because we will have to wa
New submission from Terry J. Reedy :
The basic problem: in 2.6, a namedtuple was introduced to difflib
from collections import namedtuple as _namedtuple
Match = _namedtuple('Match', 'a b size')
and used for the return values of SeqeunceMatcher.get_longest_match and
.get_m
Terry J. Reedy added the comment:
After thinking about this awhile, I see the key sentence of David's reply as
"The data type of the arguments to the method have no necessary relationship
with the datatype of the object." While true in general, in it not true with
respect
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg138829
___
Python tracker
<http://bugs.python.org/issue12387>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
(The message I deleted was a duplicate of the original).
Verified with 3.2.0 on WinXP (Jacob, I/O issues, including keyboard, especially
need system specified. What is yours? If Windows, this might be
Windows-specific.)
With CAPS LOCK on, Cntl-N, Cntl-O
Terry J. Reedy added the comment:
With a bit of searching, HOST == support.HOST == 'localhost'. Looking at the
traceback, it is socket that fails, not telnetlib or its test. Hence the
clearer title.
I am still curious what you propose: catch and skip or something else? For
Terry J. Reedy added the comment:
Perhaps Michael or Ezio have an idea of whether 'reason' or 'happenstance' is
the answer to your questions.
--
nosy: +ezio.melotti, michael.foord
___
Python tracker
<http://bug
Terry J. Reedy added the comment:
Soren, this is an issue that claimed a bug, not a bug. The resolution is that
the claim appears false because the problem arose from using unicode rather
than bytes url. The error message may be confusing, but the error class cannot
be changed. Senthil says
Terry J. Reedy added the comment:
A crash is a segfault or equivalent.
Python 2.6 only gets security fixes.
PyAMF does not run on Python 3. Hence a problem with PyAMF is no evidence of a
problem with 3.x. Separate tests/examples would be needed.
Changes are not bugs unless they introduce a
Changes by Terry J. Reedy :
--
stage: -> test needed
type: crash -> behavior
versions: -Python 3.1, Python 3.2, Python 3.3, Python 3.4
___
Python tracker
<http://bugs.python.org/i
Terry J. Reedy added the comment:
Did things like "u'a'+'\xf0'" work in 2.6- (with implicit latin-1 decoding)? (I
do not have 2.6 loaded.)
The doc for seq+seq (concatenation) in the language reference section 5.6.
Binary arithmetic operations says that both s
Terry J. Reedy added the comment:
Vlad, thanks for delving into this. Your two header changes are contradictory.
If this is a feature request, then it is 3.3 only. If this is a behavior (bug)
issue, then 3.2 should be included ;-). 'higstar's second comment indicates
'feature
Changes by Terry J. Reedy :
--
versions: +Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issue6068>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
I presume we are discussing Chapter 4. Execution model. I do not see any
mention there of the difference between function definition and body execution
time. The section of def statements (7.6) has this: "The function definition
does not execute the fun
Terry J. Reedy added the comment:
Running your code with 2.7.2 gives:
Traceback (most recent call last):
File "C:\Programs\Python27\misc\tem.py", line 41, in
unittest.main(testRunner=runner)
File "C:\Programs\Python27\lib\unittest\main.py", line 95, in __init
Terry J. Reedy added the comment:
Yes, and ditto for 3.1.
--
nosy: +terry.reedy
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue12
Changes by Terry J. Reedy :
--
versions: -Python 3.4
___
Python tracker
<http://bugs.python.org/issue12291>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
In 2.7, bytes is an alias for str to aid porting to 3.x.
>>> bytes is str
True
>>> type(bytes())
I suspect the doc uses 'bytes' rather than 'str' because it was backported from
3.x. Perhaps it should be changed but
Terry J. Reedy added the comment:
The parenthetical comment is a complete sentence, and no longer trivial. I
would separate it and write it more simply as
"... their code. (This obviously does not apply to new classes, functions, or
optional arguments.)"
--
nosy: +t
Terry J. Reedy added the comment:
The patch to the multiprocessing code is trivial:
+del cache[self._job]
The difference in tests is
+with test.support.operation_timeout(5):
+p.join()
versus
+p.join()
Victor, do you agree with the simpler method
Changes by Terry J. Reedy :
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue7365>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I agree with adding '(absolute value)'. I think the following covers the NaN
behavior. "NaN acts as a positive value that cannot be negated." This should be
added to both doc and docstring.
I do not think we generally specify the n
Terry J. Reedy added the comment:
Brett, Nick, this could be considered a patch to the import machinery as the
bugs shows with a import statement. In any case, no one is signed up for
zipimport specifically.
--
nosy: +brett.cannon, ncoghlan
versions: +Python 3.3 -Python 3.2
Changes by Terry J. Reedy :
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue6721>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue6717>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue8743>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
I am closing this because none of the reports are for current versions (2.7,3.2)
--
nosy: +terry.reedy
resolution: -> out of date
status: open -> closed
versions: +Python 3.3 -Python 3.1
___
Python tracker
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue1475523>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue11726>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.2, Python 3.3 -Python 3.0, Python 3.1
___
Python tracker
<http://bugs.python.org/issue4924>
___
___
Python-bug
Changes by Terry J. Reedy :
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue4924>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.2 -Python 2.6, Python 3.0, Python 3.1
___
Python tracker
<http://bugs.python.org/issue4672>
___
___
Python-bug
Changes by Terry J. Reedy :
--
type: -> feature request
versions: +Python 3.3 -Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/iss
Changes by Terry J. Reedy :
--
versions: +Python 3.2, Python 3.3 -Python 3.0, Python 3.1
___
Python tracker
<http://bugs.python.org/issue5225>
___
___
Python-bug
Changes by Terry J. Reedy :
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue5225>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
This a type of feature request and such a change would only go into a new
version. Given the absence of response from djc, perhaps this should be closed
as languishing-postponed?
--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7, Python 3.1
Terry J. Reedy added the comment:
In 3.2, winxp, (with Tkinter => tkinter), I get
invalid command name "12277720callit"
while executing
"12277720callit"
("after" script)
and no new prompt and ^C ineffective. Had to kill command window.
With IDLE, get n
Terry J. Reedy added the comment:
I am not marking 'test needed' since the problem is 'hardly reproducible'.
--
nosy: +stutzbach, terry.reedy -josiah.carlson
stage: -> patch review
versions: +Python 3.2, Python 3.3 -Python 2.6,
Changes by Terry J. Reedy :
--
versions: +Python 3.2, Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue5619>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
versions: +Python 3.2, Python 3.3 -Python 3.0, Python 3.1
___
Python tracker
<http://bugs.python.org/issue4591>
___
___
Python-bug
Changes by Terry J. Reedy :
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue4591>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I am following Andrew's suggestion. This issue can serve as 'don't do that' doc.
The 3.2 README has been edited and slimmed down by Georg Brandl. It is limited
to general build instructions. It would not be the place for such a nit. It
do
Terry J. Reedy added the comment:
The original snippet works the same on 3.2.0. Was their any conclusion as to
whether or not a change should be made?
--
nosy: +terry.reedy
versions: +Python 3.2, Python 3.3 -Python 3.1
___
Python tracker
<h
Changes by Terry J. Reedy :
--
versions: +Python 3.2 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue5875>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
versions: +Python 3.2, Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue1662>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
Naoyuki, unless you can confirm that Daniel's patch works, we will have to
close this as out-of-date.
Martin: PEP 11 lists platforms no-longer supported, but does not list those
that are. For writing/reviewing patches like this, it would be helpful
Terry J. Reedy added the comment:
The patch adds this check:
+ if not filename.endswith((".pyc", ".pyo", ".py")):
+continue
This is not valid. A Python file is a text file with python code. In spite of
import conventions, they are not r
Terry J. Reedy added the comment:
Should this be closed for the same reason #1730480 was?
If not, would this effectively be a feature request and have to wait for a new
version (3.3)?
--
nosy: +alexandre.vassalotti, pitrou, terry.reedy
versions: +Python 2.7, Python 3.2 -Python 2.6
Changes by Terry J. Reedy :
--
stage: -> needs patch
versions: +Python 3.2, Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue5308>
___
_
Terry J. Reedy added the comment:
The original bug claim is invalid. But the following (3.2.0, winxp) strike me
as a bug, hence the title change
>>> class A: pass
>>> '' % A()
''
>>> '' % object()
...
TypeError: not all arguments conve
Terry J. Reedy added the comment:
Sridhar, is there still a problem with current 3.2/3?
If you are no longer working on this, I think we should close as
languishing/postponed.
--
nosy: +terry.reedy
versions: +Python 3.2 -Python 3.1
___
Python
Terry J. Reedy added the comment:
What did you mean by 'crash'? An exception or a segfault or equivalent?
I believe the finalization code was reworked a bit last fall, so could you
determine whether or not there is still a problem in 3.2.1? Do not bother with
3.1.4 unless you think
Changes by Terry J. Reedy :
--
versions: +Python 3.2, Python 3.3 -Python 2.6, Python 3.0, Python 3.1
___
Python tracker
<http://bugs.python.org/issue4765>
___
___
Terry J. Reedy added the comment:
With 32bit winxp Windows Task Manager open to Processes, sorted by Men Usage, I
verified expanding memory usage in 3.2.0 (and stopped at 200 mb versus normal
<20Mb). While we do not expect compiler to catch while True: pass, it would be
nice if this
New submission from Terry J. Reedy :
Trying 3.2 code with 2.7, I got this (greatly simplified):
from __future__ import print_function
from io import StringIO
print('hello world', file=StringIO())
Traceback...
TypeError: string argument expected, got 'str'
(StringIO.Str
Changes by Terry J. Reedy :
--
nosy: +ezio.melotti, michael.foord
___
Python tracker
<http://bugs.python.org/issue12401>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
A default of 1 in not implicit for output formatting.
%s and {:s} mean however long needed, not %1s or {:1s}
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
Those others field types have a standard or system-dependent fixed size and a
number is an optional repeat count. Format 's' is always a single field because
number prefix for that is special -- a field size.
"For the 's' forma
Terry J. Reedy added the comment:
Hmm. Python 3 code is unicode. "Python reads program text as Unicode code
points." The tokenize module purports to provide "a lexical scanner for Python
source code". But it seems not to do that. Instead it provides a scanner for
Python c
Terry J. Reedy added the comment:
What platform? It sometimes makes a difference with tcl/tk and hence idle.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue12
Terry J. Reedy added the comment:
My original suggestion is a minimal change suggestion. I do not have much
opinion on what the maximum change 'should' be.
It would obviously be nice from a user viewpoint if the error message were
backported to say "unicode argument exp
Terry J. Reedy added the comment:
I think supporters of this feature request should take discussion to
python-ideas to try to gather more support. The initial post should summarize
reasons for the request, possible implementations, and the counter-arguments of
Raymond.
--
title
Terry J. Reedy added the comment:
Choose pydev if you want. Discussion there is *usually* (but definitely not
always) more focused on implementation of uncontroversial changes. I am pretty
much +-0 on the issue, though Jean-Paul's post seems to add to the + side
arguments that mig
Terry J. Reedy added the comment:
Choose pydev if you want. Discussion there is *usually* (but definitely not
always) more focused on implementation of uncontroversial changes. I am pretty
much +-0 on the issue, though Jean-Paul's post seems to add to the + side
arguments that mig
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg140304
___
Python tracker
<http://bugs.python.org/issue2506>
___
___
Python-bugs-list m
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg139566
___
Python tracker
<http://bugs.python.org/issue10647>
___
___
Python-bugs-list m
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg139876
___
Python tracker
<http://bugs.python.org/issue10647>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
Two messages deleted at Hans' request since he opened #12558
Hans says there that he could not reproduce *this* issue with 3.2.
Herm, please retry with 3.2 as 3.1.4 is last bugfix for 3.1 series.
If this works on 3.2, this should be closed.
--
Terry J. Reedy added the comment:
On Windows, scripts run with whatever name -- no extension or other extensions.
I have tested this from both IDLE and command line.
--
___
Python tracker
<http://bugs.python.org/issue1626
Terry J. Reedy added the comment:
>The fileutils.patch patch attached to this issue directly addresses what's
>wrong in issue 5999; I'd consider it closed, ...
When an patch is committed that fixes that issue, say so there and I or someone
will close it.
>From issue 125
Terry J. Reedy added the comment:
This is just the tip of the iceberg as far as needed symbol index entries goes.
Nearly 3 years ago, I wrote a Python 3 symbol glossary "Python3 Syntax Symbol
Uses" that was complete as far as I knew then. I think most of the entries
there sho
Terry J. Reedy added the comment:
The pastebin link gives me a blank box. In any case, a one-month retention does
not work for the tracker. If you do get an error traceback indicating an error
in CPython or its library, post it here. However, your post so far strongly
suggests that the error
Terry J. Reedy added the comment:
I agree with Nick's rationale for the current order, and also like his idea of
indicating that the first traceback is truncated (which has not been completely
obvious to me). Bike-shedding a bit, I would prefer something more like:
Truncated traceba
Terry J. Reedy added the comment:
I just 'upgraded' to 3.2.1 on my XP machine and I see the same with F5-run,
which restarts before running the saved file. This appears to be a nasty
regression from 3.2.0 that should have been a release blocker if caught
earlier. I believe it meri
Changes by Terry J. Reedy :
--
title: Locale-dependent crash for float width argument to Tkinter widget
constructor -> Locale-dependent exception for float width argument to Tkinter
widget constructor
___
Python tracker
<http://bugs.pyth
Terry J. Reedy added the comment:
I perhaps misunderstood your question. I ran files from the command line as as
'python whatever', not 'whatever' so only python would care about an extension.
I do not have a file association to 'run' a file, with or without
Terry J. Reedy added the comment:
I went back and reread from the beginning, instead of merely answering the
question you asked when adding me as nosy. More comments:
Windows file associations are so disfunctional that you should not depend on
them being anything in particular. I nearly
Terry J. Reedy added the comment:
I would not propose to do everything in one grand patch as it would be way too
much to review all at once. A somewhat separate subissue is whether there
should be however many separate issues over the next however many years or one
master issue with multiple
Terry J. Reedy added the comment:
> expression must evaluate to a sequence.
To be clear, Eli quoted the doc correctly and Eric correctly suggested that
'sequence' needs to be updated to 'iterable' (in at least two places). Since
the patch for this issue will be addi
Terry J. Reedy added the comment:
Yes, that would be great. It is better than my initial suggestion.
--
___
Python tracker
<http://bugs.python.org/issue12
Terry J. Reedy added the comment:
This nasty bug really can cause severe problems. If a zombie process ran a
tkinter (tk) window, then attempting to logout/restart/shutdown eventually
brings up a window I have never seen before: End Process -- EmbeddedMenuWindow.
The message window shows a
Terry J. Reedy added the comment:
Restart is not required to create a zombie. Just start IDLE and quit, and the
second, user process does not disappear.
Reverting completely does not seem possible. I first just ran the 3.2 installer
and it did not complain, that I noticed, about replacing a
Terry J. Reedy added the comment:
I happen to prefer del myself, but I agree that the two mutable sequence
classes should behave the same. The manual 4.6.4 says
s[i:j:k] = t the elements of s[i:j:k] are replaced by those of t (1)
1. t must have the same length as the slice it is replacing
Terry J. Reedy added the comment:
Good question.
Peter, you said Vista x64. Are you running 32 or 64 bit Python?
My system with the apparently irreversible problem is 32 bit xp home.
I am reluctant to test on my daughter's 64 bit laptop as I do not know that I
would be able to r
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issue6669>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
This appears to be fixed.
Skip: keywords now has a '-no selection-' option to get rid of keywords
--
keywords: -64bit
nosy: +terry.reedy
resolution: -> fixed
status: open -> closed
___
Pytho
Changes by Terry J. Reedy :
--
stage: -> test needed
versions: +Python 2.7 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue10760>
___
___
Python-
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue10436>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
>From a top level view, the patch adds PyAST_Validate (with helpers) to ast.c
>and one call to PyAST_Validate in bltinmodule.c in builtin_compile(). The
>added tests do every silly thing you can think of.
Does PyAST_Validate get invoked for all
Terry J. Reedy added the comment:
Could we look for 'tion: Closed' instead of "Connection: Closed", to accomodate
servers that garble the response, even if it is a hack?
--
nosy: +terry.reedy
___
Python tracker
<http://bug
Terry J. Reedy added the comment:
David, is this the sort of thing you mean?
@skip # so do not run without backend
class AbstractDB2Testcase:
backend = None
class PostgressDB2Testcase(AbstractDB2Testcase):
backend = postgress # well, enough info to fine it
...
If so, I think we
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue12575>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Eli, nice detective work. What I understand is that there was a latent
platform-dependent buglet that presumably got exposed by a recent change in
process handling, as Ned suggested.
idlelib/PyShell.py, class ModifiedInterpreter(InteractiveInterpreter) has
Terry J. Reedy added the comment:
I mentioned pipes because half of the subprocess chapter, it seems, talks about
them. ASo I got the mis-impression that they are special for subprocess-started
processes. But if the subprocess gets the args it needs to connect to a socket,
it should not care
Terry J. Reedy added the comment:
That sentence is wrong to imply that there is anything special about data
versus method attributes with respect to overriding -- or that attributes are
special when it comes to names in a single namespace. What I think the
paragraph should say, if not just
601 - 700 of 12740 matches
Mail list logo