[issue13163] `port` and `host` are confused in `_get_socket

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: My understanding is that an undocumented internal methods has two bugs that cancel, so that correct calls work correctly -- but tracebacks do not. I think this should be fixed, especially given a working patch. Optionally add a doc string, which is how we

[issue13168] Python 2.6 having trouble finding modules when invoked via a symlink

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Try upgrading to 2.6.6, 2.6.7 or 2.7.2. In any case, 2.6 is in security-fix only mode, so unless you have a problem with the most recent releases (2.7.2 or 3.2.2) this issue should be closed as out-of-date. -- nosy: +terry.reedy

[issue13171] Bug in file.read(), can access unknown data.

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: This issue has come up enough (tracker and python-list) that I think adding a mild adaptation of the C standard paragraph might be a good idea. Changing to a doc issue. -- assignee: -> docs@python components: +Documentation -IO, Library (

[issue13174] test_os failures on Fedora 15: listxattr() returns ['security.selinux']

2011-10-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> patch review type: -> behavior ___ Python tracker <http://bugs.python.org/issue13174> ___ ___ Python-bugs-list

[issue13179] IDLE uses common tkinter variables across all editor windows

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is more of a feature request than a bug report, in that the behavior appear intentional. But that is a moot point in that new IDLE features do not have to wait for a new release. The proposed new behavior seems plausibly better. I just wonder if

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: [Yes, indexing will still be O(1), though I personally consider that less important than most make it to be. Consistency across platforms and total time and space performance of typical apps should be the concern. There is ongoing work on improving the new

[issue13153] IDLE crash with unicode bigger than 0xFFFF

2011-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: > I'm not sure what you mean with "turn them into bug reports" though. In about the last month, there have been, I think, 4 reports about IDLE crashing (quitting unexpectedly with no error traceback). I would consider it preferable if it

[issue415492] Compiler generates relative filenames

2011-10-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue415492> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Terry J. Reedy
New submission from Terry J. Reedy : Newbies too often do something like (3.2.2, ) >>> id(getattr(x, 'pop')) == id(x.pop) True and get confused by the (invalid) result, whereas >>> a,b=getattr(x, 'pop'),x.pop >>> id(a)==id(b) False works prope

[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I gave a maximum addition. The first sentence may be enough (or even just the second half of it). What people do not get is that the lifetime of new arg objects is the duration of the function call -- and that the output of id for departed objects is

[issue12296] Minor clarification in devguide

2011-10-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: To be more exact, "optional arguments" should be more extended to "optional arguments whose default maintains the existing behavior" -- ___ Python tracker <http://bug

[issue12296] Minor clarification in devguide

2011-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ezio's comment got me to reread the entire paragraph. I do not like it. 'Having you think' is wrong; 'Basically just' is unneeded; 'guaranteed' is hyperbole; and the paragraph is otherwise repetitive, vague, and pretty

[issue13184] Multi-layered symlinks to python cause runtime error. sys.path is malformed.

2011-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: For the tracker, 'crash' == seqfault or equivalent, with no traceback. Unwanted traceback is bad behavior. Please test with 3.2 also if you can. -- nosy: +brett.cannon, ncoghlan, terry.reedy type: crash -

[issue13197] subprocess: move shell arguments to a separate keyword param

2011-10-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: -> feature request versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue13197> ___ ___ Python-bugs-lis

[issue13220] print function unable while multiprocessing.Process is being run

2011-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Try running without IDLE (double click, right-click run, Command Prompt window, or paste into interpreter window). IDLE runs code in a subprocess with stdout directed back to the IDLE process, so it occasionally affects otherwise legal and correct Python

[issue13234] os.listdir breaks with literal paths

2011-10-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue13234> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13249] argparse.ArgumentParser() lists arguments in the wrong order

2011-10-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the doc, the signature line is followed by a list of short descriptions in a third order. That perhaps should be changed to follow the same corrected order as the signature line. On the other hand, it matches the order of the detail sections that follow

[issue10364] IDLE: make .py default added extension on save

2011-10-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am guessing that because the extension could be either .py or .pyw, the initial save does not add either but forces the user to type one or the other. I find this annoying too, so I am thinking about separating the choices and see if .py, .pyw, and maybe

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-10-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This came up on python-list with os.spawnl (os.P_NOWAIT, r"c:\windows\notepad.exe") Tim Golden confirmed crash with Win7 on 2.7.? I did same with 3.2.2 in both interpreter and from IDLE (IDLE hangs and then restarts after closing the 'pyth

[issue13220] print function unable while multiprocessing.Process is being run

2011-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: This may be a 'cannot fix' issue due to the way Windows connects the output and input streams of various processes. It would be helpful to know if *nix has the same difference of behavior between interpreter and IDLE shell. Otherwise some exper

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc says "All functions accepting path or file names accept both bytes and string objects, and result in an object of the same type, if a path or file name is returned." It does that now (the encoding assumed or produced for bytes is not spec

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yuval, you are assuming that *no one* who uses the os byte APIs on Windows is either checking for '?' in returned paths or catching later exceptions. With Google code search, I did find one instance where someone tests paths for '?' aft

[issue13248] deprecated in 3.2, should be removed in 3.3

2011-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The difflib deprecations are mine and I think they should happen in 3.3. This will serve as a reminder. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue13262] IDLE opens partially hidden

2011-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree and commented about this on some previous issue (which I cannot find now). I actually would like it to save the window position and size. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.

[issue13275] Recommend xml.etree for XML processing

2011-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the tutorial, "The xml.dom and xml.sax packages" should be expanded to "The xml.dom, xml.sax, and xml.etree packages". I suspect that the current line predates the addition of .etree. We try to mostly not give opinion-based recommend

[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Because of the line break, clicking that link gives "Server error 404". http://www.robotstxt.org/norobots-rfc.txt works (so please pay attention to formatting). The main page is http://www.robotstxt.org/robotstxt.html The way I read the grammar

[issue13281] robotparser.RobotFileParser ignores rules preceeded by a blank line

2011-10-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, the visual linebreak depends on font size. It *is* the comma that caused the problem. You missed my question about the current test suite. Senthil, you are the listed expert for urllib, which includes robotparser. Any opinions on what to do

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since following the spec is not a bug, this issue is a feature request for 3.3. I agree with just being lenient with no added parameter. Perhaps that should be mentioned in the doc with (or in) a version-added note. Senthil: does doc standard allow something

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The robotparser is currently doing exactly what it is documented as doing. 20.9. urllib.robotparser — Parser for robots.txt says "For more details on the structure of robots.txt files, see http://www.robotstxt.org/orig.html."; (Since there are n

[issue12797] io.FileIO and io.open should support openat

2011-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: > I'd have written "an opened file descriptor" instead (in 5 places). Yes, 'open' is an adjective as well as a verb, and the correct one in this context. Something that has been opened, such as a sealed jar or envelope, might ha

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch implements my suggestion. Looking again, I think the English is fine ;-). -- stage: -> commit review ___ Python tracker <http://bugs.python.org/issu

[issue13290] get vars for object with __slots__

2011-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: New features only go in future versions: Given the doc: "With a module, class or class instance object as argument (or anything else that has a __dict__ attribute), return that attribute." So you are proposing a change in the definition of vars()

[issue13298] Result type depends on order of operands for bytes and bytearray

2011-11-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13298> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13300] IDLE 3.3 Restart Shell command fails

2011-11-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13300> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13306] Add diagnostic tools to importlib?

2011-11-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue13306> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2011-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: The conflict is not fatal for keyboard users because repeating alt-o switches between Format and Options. To resolve the conflict, I would prefer to keep alt-o for Options, both because it is the first letter of Options and because Options appears on Shell

[issue13330] Attempt full test coverage of LocaleTextCalendar.formatweekday

2011-11-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +rhettinger, terry.reedy ___ Python tracker <http://bugs.python.org/issue13330> ___ ___ Python-bugs-list mailing list Unsub

[issue13335] Service application hang in python25.dll

2011-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.5 in no longer maintained. 2.6 only gets security patches. So please test with the latest 2.7 (currently 2.7.2). If you cannot do that, please close. -- nosy: +terry.reedy versions: -Python 2.6 ___ Python tracker

[issue13337] IGNORE_CASE doctest option flag

2011-11-04 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4 ___ Python tracker <http://bugs.python.org/issue13

[issue3067] setlocale error message is confusing

2011-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes. I think in locale.rst (assuming that is the name) ''' exception locale.Error Exception raised when setlocale() fails. locale.setlocale(category, locale=None) If *locale* is specified, it may be a string, a tuple of the form (language

[issue13290] get vars for object with __slots__

2011-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: PyUnicode_Check may still be correct. I have not examined PEP393 in detail. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13319] IDLE: Menu accelerator conflict between Format and Options

2011-11-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: Py 3.2 on Win 7. 'Comment out region' is Alt-3 here. -- ___ Python tracker <http://bugs.python.org/issue13319> ___ ___

[issue3067] setlocale error message is confusing

2011-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, parentheses would be better. -- ___ Python tracker <http://bugs.python.org/issue3067> ___ ___ Python-bugs-list mailin

[issue13335] Service application hang in python25.dll

2011-11-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this because there is no issue for currently maintained CPython. If you have further questions, try python-list or a question-answer forum such as StackOverflow. -- resolution: -> out of date status: open ->

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'): +accepts one :term:`positional argument` (``voltage``) and three +:term:`keyword arguments ` (``state``, ``action``, +and ``type``). This is simply fal

[issue6570] Tutorial clarity: section 4.7.2, parameters and arguments

2011-11-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: >Would adding 'required' before 'positional' and 'optional' before 'keyword >arguments' be ok? No! What is false in the original and the above is the equation and confusion of 'required' with 'pos

[issue13281] Make robotparser.RobotFileParser ignore blank lines

2011-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: My suggested doc change is how to change the doc along with the patch. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13346] re.split() should behave like string.split() for maxsplit=0 and maxsplit=-1

2011-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The two methods are defined differently, and act as defined, so this is a feature request, not a bug report. str.split([sep[, maxsplit]]) ... If maxsplit is given, at most maxsplit splits are done (thus, the list will have at most maxsplit+1 elements). If

[issue13349] Uninformal error message in index() and remove() functions

2011-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Improving error messages has been a long, slow process as people are irritated enough to make a change. Please go ahead. Guido has explicitly excluded exception detail from the language spec multiple times. Test that depend on details are broken. Doc

[issue13355] random.triangular error when low = high=mode

2011-11-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2 doc entry: random.triangular(low, high, mode) Return a random floating point number N such that low <= N <= high and with the specified mode between those bounds. The low and high bounds default to zero and one. The mode argument defaults

[issue13386] Document documentation conventions for optional args

2011-11-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13386> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1298835] Add a vendor-packages directory for system-supplied modules

2011-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In English also, to vend is to sell, direct from Fr. *vendre*. However, ideas are not necessarily sold for money, but for assent, adoption, or other action. My dictionary has 'publish' as a secondary meaning of vend. So 'vendor-packages'

[issue13249] argparse.ArgumentParser() lists arguments in the wrong order

2011-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Eric both as to placement (first paragraph) and wording (with explanation). I don't have time to review otherwise at the moment. -- ___ Python tracker <http://bugs.python.org/is

[issue13349] Uninformal error message in index() and remove() functions

2011-11-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: The test suite has code (functions) that restrict the length on AssertEqual (and other) failure messages. (I do not know the location though.) Perhaps that can be reused. This almost seems like something that should be more easily available

[issue13386] Document documentation conventions for optional args

2011-11-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From Ezio's original post: ''' If a function has optional arguments but it doesn't accept keyword arguments, the "func([arg1])" notation is used instead. ... The notation "func([arg=default])" should never be u

[issue7611] shlex not posix compliant when parsing "foo#bar"

2011-11-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc section has no reference, as in a live web link, to any version of the POSIX specification. This is unlike other doc sections that implement various RFCs (which also get updated). The docs also link to specific references for the Unicode version

[issue2286] Stack overflow exception caused by test_marshal on Windows x64

2011-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 'official' PSF build for 2.7 (and 3.x) is done with VS2008, so this may not be the last problem you have. I am pretty sure this will never change for 2.7, but that is not to say we cannot make a simple change to accommodate VS2010. I am su

[issue13433] String format documentation contains error regarding %g

2011-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I find the doc for g/G less than clear. 1. (main entry) "Uses lowercase exponential format if exponent is less than -4 or not less than precision, decimal format otherwise." 'not less' means 'equal or greater', which to

[issue13436] compile() doesn't work on ImportFrom with level=None

2011-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does this apply to 2.7 as well? I believe msg148146 is due to a commit message typo. -- nosy: +haypo, terry.reedy versions: +Python 3.2, Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue13

[issue13437] Provide links to the source code for every module in the documentation

2011-11-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13437> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13440] Explain the "status quo wins a stalemate" principle in the devguide

2011-11-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Or expand 'Reporting Bugs' to 'Reporting Bugs and Requesting Features', perhaps renamed to 'Suggesting Improvements'. My point is that aspiring developers are not the only one that need to read the guideline, not withstanding the

[issue13443] wrong links and examples in the functional HOWTO

2011-11-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13443> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10747] Include version info in Windows shortcuts

2011-11-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue10747> ___ ___ Python-bugs-list mailin

[issue13504] Meta-issue for "Invent with Python" IDLE feedback

2011-11-29 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13504> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13510] Clarify that readlines() is not needed to iterate over a file

2011-11-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: This current line is "Read and return a list of lines from the stream. hint can be specified to control the number of lines read: no more lines will be read if the total size (in bytes/characters) of all lines so far exceeds hint." I would like to

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2011-12-01 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker <http://bugs.python.org/issue9090> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12067] Doc: remove errors about mixed-type comparisons.

2011-12-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: In Python 3, where all classes inherit from object, the default rules are, by experiment, (which someone can verify from the code) simpler than you stated. 3. By default, == and /= compare identities. 4. By default, order comparisons raise TypeError. ob <=

[issue3907] "for line in file" doesn't work for pipes

2011-12-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7 -Python 2.5 ___ Python tracker <http://bugs.python.org/issue3907> ___ ___ Python-bugs-list mailing list Unsub

[issue13495] IDLE: Regression - Two ColorDelegator instances loaded

2011-12-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue13495> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13506] IDLE sys.path does not contain Current Working Directory

2011-12-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: On 3.2.2, I get >>> import sys >>> sys.path ['C:\\Programs\\Python32\\Lib\\idlelib', 'C:\\Windows\\system32\\python32.zip', 'C:\\Programs\\Python32\\DLLs', 'C:\\Programs\\Python32\\lib', 'C:\\P

[issue13519] Tkinter rowconfigure and columnconfigure functions crash if minsize, pad, or weight is not None

2011-12-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Running on Win 7, 3.2.2, IDLE, I get ''' Traceback (most recent call last): File "F:\Python\mypy\tem.py", line 19, in the_rowconfigure_info = the_frame.rowconfigure(the_row_index) File "C:\Programs\Python32\lib\tkint

[issue11838] IDLE: make interactive code savable as a runnable script

2011-12-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Roger Serway pointed me to the PastePyShell.py extension that is part of the IdleX package http://idlex.sourceforge.net/ That does the conversion when *pasting* interpreter text into an edit window. I would have File/Save do the same thing when saving the

[issue11838] IDLE: make interactive code savable as a runnable script

2011-12-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Either way, it would be nice to have erroneous commands flagged or filtered. That can be detected when the first line of output is Traceback (most recent call last): I typically would copy, correct, and rerun a line until I get it correct, so I would want

[issue11838] IDLE: make interactive code savable as a runnable script

2011-12-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Interesting example. This issue is a bit more complicated than I thought. Clearly, the call that reveals an error in previous lines should not be simply deleted. -- ___ Python tracker <http://bugs.python.

[issue11051] system calls per import

2011-12-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am a little puzzled by the patch. In logic, 'A and B' is equivalent to 'not A or not B'. But in the patch, -if (_Py_stat(filename, &statbuf) == 0 && /it exists */ -S_ISDIR(statbuf.st_mode)) /* it&

[issue11051] system calls per import

2011-12-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK, I gather from the comment added in the second patch that you intentionally changed the logic to restart the loop more often. -- ___ Python tracker <http://bugs.python.org/issue11

[issue13549] Incorrect nested list comprehension documentation

2011-12-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Comments: 1. The first sentence is a bit too opinionated for my taste. Consider: map(f, seq) [f(x) for x in seq] The map is *more* concise, by 8 chars, than the list comp and, in *my* opinion, clearer and easier to read without the extra boilerplate and

[issue13549] Incorrect nested list comprehension documentation

2011-12-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: v.2 looks great to me. -- ___ Python tracker <http://bugs.python.org/issue13549> ___ ___ Python-bugs-list mailing list Unsub

[issue13549] Incorrect nested list comprehension documentation

2011-12-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Showing both was the intent of my comment. Since I am about 60:40 on that, I was and am willing for you, having grabbed and pushed the issue, to drop the half-expanded version if you thought it better. With or without, we have improved this section. But I

[issue10364] IDLE: make .py default added extension on save

2011-12-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> idle filename extension ___ Python tracker <http://bugs.python.or

[issue7163] IDLE suppresses sys.stdout.write() return value

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: Re-verified on 3.2.2, win 7. #13532 shows a worse problem with sys.stdout.write on the above. -- versions: +Python 3.3 -Python 3.1 ___ Python tracker <http://bugs.python.org/issue7

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: We should like the IDLE shell to give the same results as the standard shell. See #7163 On 3.2.2 on Win7, the problem is worse: sys.stdout.write(100) crashes IDLE -- as in it just fades away after a short (1/2 sec?) delay. sys.stdout.write(sys) gives me the

[issue13538] Improve doc for str(bytesobject)

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think Eric's suggestion is the proper approach. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/is

[issue13540] Document the Action API in argparse

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc specified the Action API as the interface inherited from argparse.Action plus the addition of a custom __call__ method with 4 params (5 with self) as described. That seems mostly adequate to me, unless there is something missing in the parameter

[issue13548] Invalid 'line' tracer event on pass within else clause

2011-12-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Snippet examples can be made 2/3 agnostic with from __future__ import print_function) 3.2.2 on win7, IDLE, gives me F:\Python\mypy\tem.py 7 call F:\Python\mypy\tem.py 8 line F:\Python\mypy\tem.py 10 line F:\Python\mypy\tem.py 11 line F:\Python\mypy\tem.py 13

[issue13540] Document the Action API in argparse

2011-12-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: My guess from the way the docs are written now is that subclassing from Action and over-riding just the __call__ method is the intended way, not just the recommended. If so, Action is a quasi-private class, only exposed so it could be subclassed with one

[issue13532] In IDLE, sys.stdout.write and sys.stderr can write any pickleable object

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: In English, "We should like" is far from an absolute statement. "IDLE must" would be such. In any case, I hope you agree that crashing is bad. It is also not good if IDLE, as a development environment, enables code that violates the do

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe that that list includes all symbols and symbol combinations that are syntactically significant in expressions. This is the generalized meaning of 'operator' that is being used. What do not appear are '#' which marks comments,

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you are responding to me, I am baffled. I gave a concise way to document the current behavior with respect to .OP, which you said you wanted. -- ___ Python tracker <http://bugs.python.org/issue2

[issue2134] Add new attribute to TokenInfo to report specific token IDs

2011-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Both the proposed text and 3.3 addition look good to me. -- ___ Python tracker <http://bugs.python.org/issue2134> ___ ___ Pytho

[issue2292] Missing *-unpacking generalizations

2011-12-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the python-ideas thread "list / array comprehensions extension" Guido replied in reference to an earlier quote from him: "I think that -0 was contextual (too many moving parts for the original Py3k release). Today I am +1." There

[issue13571] Backup files support in IDLE

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree with Roger that developing an extension elsewhere is the proper first step. I suspect that you will want to experiment with the exact behavior and interface. So I am closing this for now, though you can reopen later if there is a renewed proposal to

[issue13573] csv.writer uses str() for floats instead of repr()

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this complete and ready to close, or does the doc need a note? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: At line 237 of string.py: def convert_field(self, value, conversion): # do any conversion on the resulting object if conversion == 'r': return repr(value) elif conversion == 's': return str

[issue13579] string.Formatter doesn't understand the !a conversion specifier

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue13582] IDLE and pythonw.exe stderr problem

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13582> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13583] sqlite3.Row doesn't support slice indexes

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ghaering versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue13583> ___ ___ Python-bugs-list mailin

[issue13586] Replace selected not working/consistent with find

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.2 on Win 7, selected text *is* put in the 'find' field of Replace boxes, just as with Find boxes, just as it should be. So there is something specific either to 2.7 (which is unusual, since the code base in mostly the same, but possible) or

[issue13586] IDLE: Replace selected not working/consistent with find

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Replace selected not working/consistent with find -> IDLE: Replace selected not working/consistent with find ___ Python tracker <http://bugs.python.org/issu

[issue13587] Correcting the typos error in Doc/howto/urllib2.rst

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker <http://bugs.python.org/issue13587> ___ ___ Python-bugs-list m

<    1   2   3   4   5   6   7   8   9   10   >