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

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: Error is in 3.2 docs as well. 2.6/3.1 only get security patches. 3.4 is for future enhancements what will not even go into 3.3. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue13590] Prebuilt python-2.7.2 binaries for macosx can not compile c extensions

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

[issue13592] repr(regex) doesn't include actual regex

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: > but if #11957 is fixed, the result will look like re.Regex('abc', re.I|re.S) That is what I would like to see. -- nosy: +terry.reedy ___ Python tracker <http://bugs.pytho

[issue13598] string.Formatter doesn't support empty curly braces "{}"

2011-12-16 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue13598> ___ ___ Python-bugs-list mailin

[issue13607] Move generator specific sections out of ceval.

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

[issue13610] On Python parsing numbers.

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: The proposal is to change the definition of numbers literals from X to one that is context-sensitive: X followed by whitespace or a syntactic symbol but not anything else, in particular, not by an identifier_start character. I am +-0 at the moment. > 1

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2011-12-16 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2, Win7 (a narrow build) it indeed works and returns -- nosy: +terry.reedy versions: +Python 2.7 -3rd party, Python 2.6 ___ Python tracker <http://bugs.python.org/issue13

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

2011-12-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am running 3.2.2 on 64-bit Win7Pro, which should not make a difference. So why did ^H work right for me yesterday and not for Marco today. Retrying with fresh IDLEs I discovered the following: selections do not initially appear in the find part of a

[issue9039] IDLE and module Doc

2011-12-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> works for me status: open -> closed ___ Python tracker <http://bugs.python.org/issue9039> ___ ___ Python-bugs-

[issue13658] Extra clause in class grammar documentation

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

[issue13615] `setup.py register` fails with -r argument

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Does it do the same with http instead of https? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue13630] IDLE: Find(ed) text is not highlighted while dialog box is open

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

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looks good to me. help(token) already has the corrections. - BACKQUOTE, + RARROW, ELLIPSIS -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue13632] Update token documentation to reflect actual token types

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- priority: low -> normal ___ Python tracker <http://bugs.python.org/issue13632> ___ ___ Python-bugs-list mailing list Unsubscri

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.7 is closed to new features. This looks like it mignt be one. The 2.7 doc for tarfile.open says "Return a TarFile object for the pathname name." Does the meaning of 'pathname' in 2.7 generally include unicode as well as str objects

[issue13643] 'ascii' is a bad filesystem default encoding

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin, after reading most all of the unusually large sequence of messages, I am closing this because three of the core developers with the most experience in this area are dead-set against your proposal. That does not make it 'wrong', but does me

[issue13644] Python 3 aborts with this code.

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: When I run this with 3.2.2 IDLE, from an edit window, I get an MSVC++ Runtime Library window: "Runtime Error! .../pythonw This application has requested termination in an unusual way...". When I close that, IDLE continues. So I would say that thi

[issue13653] reorder set.intersection parameters for better performance

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that equality is not identify, order does matter, although in 3.2.2 the results are the opposite of what one might expect. a = set((1,2,3)) b = set((1.0, 3.0, 5.0)) print(a&b, b&a) print(a.intersection(b), b.intersection(a)) a &= b print(

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2011-12-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: > so mimicking the changed prompt would require querying the subprocess for its > sys.ps1 and sys.ps2. Is that sensibly possible? Any line of code can change those, so IDLE would have to do the equivalent of idle.ps1,idle.ps2 = sys.ps1, sys.ps2 before

[issue6092] IDLE: Changed Shortcuts don't show up in menu

2011-12-23 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Changed Shortcuts don't show up in menu -> IDLE: Changed Shortcuts don't show up in menu versions: +Python 3.3 ___ Python tracker <http://bugs.pyth

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: With that explanation, that it is one case out of six that fails, for whatever reason, I agree. That leaves the issue of whether the fix is the right one. I currently agree with Victor that we should do what the rest of Python does and what is most

[issue13644] Python 3 aborts with this code.

2011-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: @maniram I know what IDLE does. For the tracker, a 'bug' is a discrepancy between doc and behavior. According to the doc, a recursion loop should continue forever, just like an iteration loop ;=). Anyway, Roger is right, this is a duplicate of #6

[issue7338] recursive __attribute__ -> Fatal Python error: Cannot recover from stack overflow.

2011-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This seems to be a duplicate of 3555 and 6028. I am redirecting to the latter because is has a proposed patch. -- nosy: +terry.reedy resolution: -> duplicate status: open -> closed superseder: -> Interpreter crashes when chaining an infini

[issue3555] Regression: nested exceptions crash (Cannot recover from stack overflow)

2011-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is one of four essentially duplicate issues #6028, #7338, #13644. #6028 has a proposed patch. -- nosy: +terry.reedy resolution: -> duplicate status: open -> closed versions: +Python 3.3 -Python 3.0 ___

[issue6028] Interpreter aborts when chaining an infinite number of exceptions

2011-12-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe #3555, #7338, and *13644 are basically duplicates of this issue. I have left this one open because it has a try at a patch. I think any patch should be tested with the other examples. I agree with Antoine that an intentional exit is not a crash. I

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I understand the patched code, it only fixes the issue for unicode names that can be latin-1 encoded and that other unicode names will raise the same exception with 'latin-1' (or equivalent) substituted for 'ascii'. So it is easy fo

[issue13639] UnicodeDecodeError when creating tar.gz with unicode name

2011-12-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just took a look as the 3.2 tarfile code and see that it always (because self.name is always unicode) does the same encoding, with 'replace', referencing RFC1952. Although there are a few other differences, they appear inconsequential, so tha

[issue13659] Add a help() viewer for IDLE's Shell.

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I should like it if a separate window were either automatic or a configuration option for help on modules and classes, which should cover 'long' output. The Windows workaround, which I will never remember, brings up an extraneous cmd.exe window i

[issue13664] UnicodeEncodeError in gzip when filename contains non-ascii

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: The actual fix in the previous issue, as in Python 3, was to always write the filename, but with errors replaced with '?/. -- nosy: +lars.gustaebel, terry.reedy ___ Python tracker <http://bugs.py

[issue13665] TypeError: string or integer address expected instead of str instance

2011-12-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +amaury.forgeotdarc, meador.inge ___ Python tracker <http://bugs.python.org/issue13665> ___ ___ Python-bugs-list mailin

[issue13666] datetime documentation typos

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 only gets security updates. I verified 'rzinfo' typo in x.1.6 in 2.7 and 3.2. Also in both, tzinfo.utcoffset begins as Stephen claims. I have not verified that this is error. Also in both, in x.1.4, class GMT1 has ... def utcoffse

[issue13677] correct docstring for builtin compile

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Flags comment applies to 3.2.2 docs and 2.7.2 docs. There is only one additional flag: ast.PyCF_ONLY_AST, so 'flags' should be singular. As for src and dst, doc has been updated to say 'Compile the source into a code or AST object. ... source

[issue13683] Docs in Python 3:raise statement mistake

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: Verified for 3.2.2 cmd window and idle. Fix looks good. -- keywords: +patch nosy: +terry.reedy stage: -> needs patch type: -> behavior versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue13684] httplib tunnel infinite loop

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.2, http.client.py, insertion would be at line 718. However, only one statement is needed to break. 3.2 elsewhere has if line in (b'\r\n', b'\n', b''): break But I note that at 512, there is the code luzakiru pa

[issue13677] correct docstring for builtin compile

2011-12-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am aware that the docstring, shown at help(compile), is what you were talking about. The docstring and manuals should say the same thing, or at least not contradict each other, so it is common for both to be out of date and both to be updated at the same

[issue13659] Add a help() viewer for IDLE's Shell.

2011-12-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like that to be a help() option, such as help(module, -b) or more verbosely, help(module, browser=True). This would be useful for the regular interactive interpreter as well. -- ___ Python tracker <h

[issue8416] python 2.6.5 documentation can't search

2012-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Santiago, if you are still running 2.6.5 code, use the most recent 2.6 docs at http://docs.python.org/release/2.6.6/ This will have all the corrections made after the 2.6.5 release. Contrary to what you might think the header line says, there is no particular

[issue8416] python 2.6.5 documentation can't search

2012-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, /George/Georg/ -- ___ Python tracker <http://bugs.python.org/issue8416> ___ ___ Python-bugs-list mailing list Unsub

[issue13707] Clarify hash() lifetime

2012-01-03 Thread Terry J. Reedy
New submission from Terry J. Reedy : Current 3.2.2 docs: id(object) Return the “identity” of an object. This is an integer which is guaranteed to be unique and constant for this object during its lifetime. [model] hash(object) Return the hash value of the object (if it has one). Hash values

[issue13703] Hash collision security issue

2012-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #13707 I suggest a change to the current hash() entry which is needed independently of this issue, because the default hash (for object()), being tied to id() is already limited to an object's lifetime. But this change will become more imperative if

[issue13707] Clarify hash() constancy period

2012-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Martin, I do not understand. The default hash is based on id (as is default equality comparison), not value. Are you OK with hash values changing if the 'value' changes? My understanding is that changing hash values for objects in sets and di

[issue13707] Clarify hash() constancy period

2012-01-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that the doc says that use of hash() is to compare dict keys, it does not seem wrong to me to suggest that hash() should be usable to do so. I believe id() and consequently hash() are unique among builtins in being run-dependent. That is currently

[issue13703] Hash collision security issue

2012-01-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: To expand on Marc-Andre's point 1: the DOS attack on web servers is possible because servers are generally dumb at the first stage. Upon receiving a post request, all key=value pairs are mindlessly packaged into a hash table that is then passed on to a

[issue13703] Hash collision security issue

2012-01-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Those who use or advocate a simple randomized starting hash (Perl, Ruby, perhaps MS, and the CCC presenters) are presuming that the randomized hash values are kept private. Indeed, they should be (and the docs could note this) unless an attacker has direct

[issue13703] Hash collision security issue

2012-01-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: "You're suggesting that in order for a Python application to be secure, it's a requirement that we randomly kill and restart processes from time to time?" No, that is not what I said. -- ___ P

[issue13685] argparse does not sanitize help strings for % signs

2012-01-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard ___ Python tracker <http://bugs.python.org/issue13685> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13686] Some notes on the docs of multiprocessing

2012-01-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +jnoller ___ Python tracker <http://bugs.python.org/issue13686> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13691] pydoc help (or help('help')) claims to run a help utility; does nothing

2012-01-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree. It should explain the three options: help(object): help on object or class of object, except help('name'): help on object/module named 'name' help(): run utility, which starts with utility help help(help) prints unhelpful "

[issue13692] 2to3 mangles from . import frobnitz

2012-01-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: If this is fixed in 3.2, can this be closed? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue13

[issue13720] argparse print_help() fails if COLUMNS is set to a low value

2012-01-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The code works fine on 3.2.2, Win7, IDLE, narrowest window possible (about 14 chars), which actually wraps to the window width. (In command window, lines are fixed length and scroll bar is added if window is narrowed.) What system and version are you running

[issue13720] argparse print_help() fails if COLUMNS is set to a low value

2012-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not setting columns, so that might be the important difference. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13720] argparse print_help() fails if COLUMNS is set to a low value

2012-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Now I get error, even with Window actually about 100 columns wide. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13703] Hash collision security issue

2012-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg150848 ___ Python tracker <http://bugs.python.org/issue13703> ___ ___ Python-bugs-list m

[issue13703] Hash collision security issue

2012-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg150837 ___ Python tracker <http://bugs.python.org/issue13703> ___ ___ Python-bugs-list m

[issue13026] Dis module - documentation of MAKE_FUNCTION

2012-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: "For each keyword only default" is not in my text, but if you are referring to "keyword only name, default parameter object pairs ", yes. Here is a revised suggested wording: MAKE_FUNCTION(argc) Pushes a new function object on the stack

[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2012-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: http://docs.python.org/release/2.6.7/ has the same problem that the 3.x 'in development' version is called 3.2, while there is no link to current stable 3.2.2 except indirectly by going to 'old versions' (which perhaps should be 'o

[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2012-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Well, actually I do have an idea. When 3.3 comes out, I think docs.python.org should point to that, and another url should point to the most recent 2.7.x release. The url for all versions is already stable. Then the sidebar could have entries for most recent

[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2012-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: My specific suggestion is that the sidebar be time-independent (for at least a decade, until Python 4 ;-) and say Docs for other versions Current Python 3 Current Python 2 In development Everything else with stable links for each

[issue13122] Out of date links in the sidebar of the documentation index of versions 3.1 and 3.2

2012-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: To make my idea work both now and after we switch docs.python.org, that url should not be used as either of the first two links. Rather there should be a docs.python.org/py2k (or whatever) that is the permanent 'latest Python 2 release'

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2012-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I just got 'fatal error' running python_d 3.3.a0 checked out yesterday. When I closed message, test continued (but really crashed later). -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.

[issue11906] test_argparse failure in interactive mode

2012-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: http://docs.python.org/devguide/runtests.html "If you don’t have easy access to a command line, you can run the test suite from a Python or IDLE shell: >>> from test import autotest" However, argparse is the least of the test suite problems

[issue11633] regression: print buffers output when end=''

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: No, I don't think so. Another issue will not magically create more time for anyone. -- ___ Python tracker <http://bugs.python.org/is

[issue13703] Hash collision security issue

2012-01-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg150846 ___ Python tracker <http://bugs.python.org/issue13703> ___ ___ Python-bugs-list m

[issue9637] docs do not say that urllib uses HTTP_PROXY

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Senthil, any comment on this? -- nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue9637> ___ ___ Python-bug

[issue11633] Document that print may need explicit flushing

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The current doc says "print([object, ...], *, sep=' ', end='\n', file=sys.stdout) Print object(s) to the stream file, separated by sep and followed by end. sep, end and file, if present, must be given as keyword arguments. All

[issue11906] test_argparse failure in interactive mode

2012-01-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy resolution: -> fixed stage: -> committed/rejected ___ Python tracker <http://bugs.python.or

[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sandro, I think you can apply this. -- versions: -Python 3.1 ___ Python tracker <http://bugs.python.org/issue11948> ___ ___

[issue11418] Method's global scope is module containing function definition, not class.

2012-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: This paragraph follows a discussion and example of the fact that methods do *not* have to be defined within a class statement. Any objections to changing "The global scope associated with a method is the module containing the class definition. (The

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

2012-01-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/issue13168> ___ ___ Python-bugs-

[issue13758] compile() should not encode 'filename' (at least on Windows)

2012-01-10 Thread Terry J. Reedy
New submission from Terry J. Reedy : The 3.2.2 doc for compile() says "The filename argument should give the file from which the code was read; pass some recognizable value if it wasn’t read from a file ('' is commonly used)." I am not sure what 'recognizable'

[issue13754] str.ljust and str.rjust do not exactly describes original string return

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The short doc strings do not mention the issue either way. I think it ok to leave them as they are. While the claim is how the functions *should* operate, I verified that it is how they *do* operate in all three branches. -- assignee: docs@python

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy keywords: +easy, patch nosy: +terry.reedy versions: +Python 2.7, Python 3.3 ___ Python tracker <http://bugs.python.org/issu

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.7 ___ Python tracker <http://bugs.python.org/issue13753> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13753] str.join description contains an incorrect reference to argument

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: See #13754 for commits (not here because 'close' != 'closes' or closed') -- resolution: -> fixed status: open -> closed ___ Python tracker <

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The idea and design look good to me. I will test on Windows when I am able to do so in development builds (unless someone beats me ;-). -- nosy: +terry.reedy versions: +Python 2.7, Python 3.3 ___ Python tracker

[issue4630] IDLE: add cursor noblink option

2012-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: IDLE no longer respects .Xdefaults insertOffTime -> IDLE: add cursor noblink option ___ Python tracker <http://bugs.python.org/iss

[issue13758] compile() should not encode 'filename' (at least on Windows)

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: My supposition that compile() rejects some real file names appears correct: from python-list ME: Is this a filename that could be an actual, valid filename on your system? OP: Yes it is. open works on that file

[issue11633] Document that print may need explicit flushing

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: #13761 proposes to add flush=False param with option for True. -- ___ Python tracker <http://bugs.python.org/issue11

[issue13761] Add flush keyword to print()

2012-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added a couple of lines to the 3.2, 3.3 print doc in #11633. When a change is made here, they could be updated to something like: "Output buffering is normally determined by *file*. Use flush=True to force immediate output to a device such as a s

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that the note is already gone* as obsolete in 3.x, I think a minimal maintenance fix for correctness should be fine for 2.7. * It is replaced, in essence, by "Ranges containing absolute values larger than sys.maxsize are permitted but some fea

[issue10994] implementation details in sys module

2011-05-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: The __sizeof__ special attribute shows up in dir(object) but appears not to be documented other than with >>> help(object.__sizeof__) Help on method_descriptor: __sizeof__(...) __sizeof__() -> size of object in memory, in bytes Should it have

[issue12057] HZ codec has no test

2011-05-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume and hope David meant the process, as I would have no idea how to add a directory. And David did not seem completely sure. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12170] Bytes.index() and bytes.count() do not accept byte ints

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: > It is certainly unusual for n to be in the sequence, but not to be able to > find it. Agreed. Doc Lib: 4.6. Sequence Types — str, bytes, bytearray, list, tuple, range says ''' s.index(i) index of the first occurence of i in s s.cou

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Bytes.index() and bytes.count() do not accept byte ints -> Bytes.index() and bytes.count() should accept byte ints ___ Python tracker <http://bugs.python.org/issu

[issue12165] Does nonlocal include global?

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Another problem with the current text is that it fails to exclude enclosing class scopes, and I had to test to be sure they were., and some of the phrasing strikes me as awkward. Here is a possible rewrite. "When the definition of a function is n

[issue12165] Nonlocal does not include global; clarify doc

2011-05-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Does nonlocal include global? -> Nonlocal does not include global; clarify doc ___ Python tracker <http://bugs.python.org/issu

[issue12172] IDLE crashes when I use F5 to run

2011-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did I read right? Clicking F5 crashes while clicking Run and then 'Run Module F5' works? (They ought to be the same thing.) If so, check the key bindings. Options/Configure IDLE .../Keys. There should be an entry 'Run Module - '. Is F5 bo

[issue12188] PEP 7, C style: add ++ policy and explanation

2011-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : In response to a discussion of a patch removing 'useless' post-increments, (which issue has apparently come up before) Guido posted "> Sorry to butt in here, but I agree with Eric that it was better > before. There is a common idi

[issue12192] Doc that collection mutation methods return item or None

2011-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : BACKGROUND One of most common recurring topics on python-list (perhaps monthly) is newbies tripping over a mutation method returning None when they expect the collection. Today's example: "Puzzled by list-appending behavior". An excerpt fro

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Jesse, I do not understand your comment, including 'REPL' -- components: +Windows versions: +Python 3.2 -Python 3.4 ___ Python tracker <http://bugs.python.o

[issue11906] test_argparse failure in interactive mode

2011-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ahem. Interactive mode is an approved method of running Python code, along with batch mode. The core interpreter and stdlib modules should run correctly in both modes. So the entire test suite should pass in both modes too. If the tests are written correctly

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: After looking at the doc chapter, I get that 'if __name__' block is needed on Windows. OK. batch mode with if __name__ block: testmp.py - print('Top of Module') class C: def f(s): print('Method C.f') if __name__ =

[issue11906] test_argparse failure in interactive mode

2011-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Unless the doc for a module explicitly diclaims interactive mode (as does multiproccessing), it should run interactively as documented. Batch and interactive are not mutually exclusive; python -i runs a file in batch mode and switches to interactive mode

[issue12192] Doc that collection mutation methods return item or None

2011-05-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Darn, I knew there might be an exception I was overlooking ;-). Anyway, I considered the general statements to be drafts, to be rewritten after comments. As to the footnote (9) suggestion: the set and dict sections list each method separately with normal

[issue11906] test_argparse failure in interactive mode

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will when I get setup to do that again. -- ___ Python tracker <http://bugs.python.org/issue11906> ___ ___ Python-bugs-list m

[issue12129] Document Object Model API - validation

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I suspect you are right, but do not know the rules, and have never used the module. There is no particular person maintaining xml.dom.X at present. Could you please fill in the ... after the import to give a complete minimal example that fails? Someone could

[issue12134] json.dump much slower than dumps

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: >From just reading the docs, it appears that json.dump(obj,fp) == >fp.write(json.dumps(obj)) and it is easy to wonder why .dump even exists, as >it seems a trivial abbreviation (and why not .dump and .dumpf instead). Since, >'_one_shot

[issue12137] Error EBADF in test_urllibnet

2011-05-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: EBADF in test_urllibnet -> Error EBADF in test_urllibnet ___ Python tracker <http://bugs.python.org/issue12137> ___ ___ Py

[issue12142] Reference cycle when importing ctypes

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: If you are able to rebuild Python, have you tried running the ctypes test after rebuilding with this change? And, does the test cover the internal uses of _array_type? -- nosy: +terry.reedy ___ Python tracker

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Exceptions with traceback are ordinary behavior issues. 'Crash' means segfault or equivalent on Windows. And Jesus is correct. In general, include system with reports. With 3.2.0 IDLE on Winxp, adjusted 3.x code import urllib.request as ur, http.co

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