[issue10987] Bizarre pickle -- exception interaction bug

2011-01-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : Tool/scripts/find_recursionlimit.py includes test_cpickle() which, like the other test_xxx functions, is supposed to raise a RuntimeError when the recursion limit is reached. It appears to work correctly on 3.1 and I presume previously. On 3.2

[issue10987] Bizarre pickle -- exception interaction bug

2011-01-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2rc1 on WinXP. I got hanging behavior with both interpreter and IDLE. -- ___ Python tracker <http://bugs.python.org/issue10

[issue11000] Doc: ast.parse parses source, not just expressions

2011-01-24 Thread Terry J. Reedy
New submission from Terry J. Reedy : "ast.parse(expr, filename='', mode='exec') Parse an expression into an AST node. Equivalent to compile(expr, filename, mode, ast.PyCF_ONLY_AST)." but "compile(source, ...) Compile the source into a code or AST objec

[issue11000] Doc: ast.parse parses source, not just expressions

2011-01-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: r88172, r88173, r88175 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue9045] 2.7rc1: 64-bit OSX installer is not built with 64-bit tkinter

2011-01-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have the impression that there has been progress on tcl/tk on Apple in the last 7 months. Should this issue still be open, and if so, for both 2.7 and 3.2? -- nosy: +terry.reedy ___ Python tracker <h

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are other gui libraries with Python interfaces that you can look at. I agree that something in doc about how to feed data from multiple threads would be nice. -- nosy: +terry.reedy type: crash -> behavior versions: +Python

[issue11077] Tkinter is not thread safe

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Thread' is not found in the somewhat skimpy tkinter doc. Given the general state of Python with threads, I think it reasonable to take 'not thread-safe' as the default, making this a feature request. In any case, the point is moot unt

[issue11085] expose _abcoll as collections.abc

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: However done, I would prefer separation also. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue11

[issue11096] Multiple turtle tracers

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: 2.6 is only open for security fixes. In 3.x "The methods Turtle.tracer(), Turtle.window_width() and Turtle.window_height() have been eliminated. Methods with these names and functionality are now available only as methods of Screen." So it

[issue1252236] Simplying Tkinter's event loop

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: See 11077 for motivation for reopening. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue1252236> ___ ___

[issue11103] Python 3.2 installer doesn't register file extensions on Windows 7

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: On my winxp system, 'open' opens with notepad, perhaps because I set that several years ago. I would like the installer to change that (and not change other stuff that it does change ;-). The 'open with' submenu does include idle.

[issue7074] Turtle module crashes python

2011-02-04 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is not a duplicate because this issue is about the stdlib turtle module doing something wrong and needing to be fixed. Also, this issue does not involve threads, at least none that I starting. "It is not safe to call graphic primitives in

[issue8691] Doc: left alignment is not the default for numbers

2011-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Georg & Eric, I believe this simple patch is correct, and should go in 3.2. Westley, thanks for the patch. Numbers are right-aligned because that is the traditional default. The committer should add Westley Martinez to misc/ACKS -- vers

[issue10951] gcc 4.6 warnings

2011-02-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I can see how a comment like /* spam = eggs + ham */ could be useful, but and isolated /* foo = 0 */ where 'foo' appears nowhere else in the file seems more like confusing noise. -- ___ Python trac

[issue11126] Wave.py does not always write proper length in header

2011-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the _sampwidth multiplier is needed regardless of endianness. The simplest option would be to pull the _datawritten statement out of the alternation, making the code read if self._sampwidth > 1 and big_endian: import ar

[issue11182] pydoc.Scanner class not used by anything

2011-02-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: After saying that pydoc is used by help(), its documentation only tells how to run it standalone. help(pydoc) basically says the same, and does not mention any internals, because of "__all__ = ['help']", which the author understood t

[issue11204] re module: strange behaviour of space inside {m, n}

2011-02-18 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ezio.melotti, pitrou ___ Python tracker <http://bugs.python.org/issue11204> ___ ___ Python-bugs-list mailing list Unsub

[issue11231] bytes() constructor is not correctly documented

2011-02-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: You sort of left out bytes() == bytes(0) == b''. I did not know about case 5 -- not surprisingly ;-). -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.o

[issue2841] Windows: "Runtime Error!" crash from pythonw.exe (3.0a5)

2008-05-12 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Specific instance: I edit a file with IDLE, hit F5, and Windows pops up a box with a white X in a red circle followed by "Runtime Error!" and an explanation that the application requested to be closed in an 'unusual&#x

[issue2841] Windows: "Runtime Error!" crash from pythonw.exe (3.0a5)

2008-05-12 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: -- type: -> crash __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2841> __ ___ Python-b

[issue2841] Windows: "Runtime Error!" crash from pythonw.exe (3.0a5)

2008-05-12 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Hibernation, sleep, or screen saver is not required though process may have been swapped to disk. Exception and location are reproducible. This time I get IDLE Subprocess Startup Error on retry. Will

[issue2841] Windows: "Runtime Error!" crash from pythonw.exe (3.0a5)

2008-05-12 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: AFter reboot, IDLE started, loaded the program I tried to run previously, and ran it several times. I closed the edit window and when I closed the shell window, got same message. The first box is titled Microsoft Visual C++ Runtime L

[issue1489051] keyword and topic help broken in Pythonwin IDE

2008-05-16 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Py3.0a5 installed in C;/Program Files/ Start/Python30/Python Manuals, using Python30.chm, works great. Thank you for that. In the interpreter (and IDLE) help(object) works fine. Ditto. But for topics and keywords, I got the same m

[issue2888] pprint produces different output in 2.6 and 3.0

2008-05-25 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I think I *slightly* prefer the 'new' way. Was pprint.py changed between 2.6 and 3.0? Or is the change a side-effect of 3.0 changes? Or of 2to3 if that was used? (In glancing through it, I did not see anything that needed cha

[issue3008] Let bin() show floats

2008-06-03 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: > AFAICT, there is no good use case for showing floats in in hex It is my impression that hexadecimal is more common than binary, in the numerical analysis community, for exact representation of floats. For example: http://hal

[issue2613] inconsistency with bare * in parameter list

2008-06-03 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Rationale for banning f(*,**k): it could represent a bug (intended bare name(s) omitted) that should be flagged, a lack of clear understanding of the redundancy, or a somewhat unPythonic stylistic preference for useless redundan

[issue839496] SimpleHTTPServer reports wrong content-length for text files

2008-06-13 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: -- resolution: accepted -> status: closed -> open ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.p

[issue3154] "Quick search" box renders too long on FireFox 3

2008-06-27 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: It would have been helpful if you had given the url in your message instead of requiring respondents to read a fuzzy image. In any case, there is no gray box on Windows XP with FF3 at any zoom level nor with IE7. I suggest closing t

[issue3167] math test fails on Solaris 10

2008-06-27 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Does that mean that both do the right thing or the wrong thing? -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3168] cmath test fails on Solaris 10

2008-06-27 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Nasty. Here is the test extracted from test/test_cmath.py import math, cmath test_values = [0.01, 0.1, 0.2, 0.5, 0.9, 0.99] positive = test_values + [1.] + [1./x for x in test_values] for base in [0.5, 2., 10.]: for v in po

[issue3220] Improve Bytes and Byte Array Methods doc

2008-06-27 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Lib Ref/Built-in Types/Sequence Types/Bytes and Byte Array Methods The following set/frozenset and dict sections repeat (and for dicts, expands upon) the constructor interface from the Built-in Functions section. The sequenc

[issue3237] idlelib3.0 still using xrange

2008-06-29 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: As reported in the py3 list File "/root/Py3kb1/lib/python3.0/tkinter/__init__.py", line 1409, in __call__ return self.func(*args) File "/root/Py3kb1/lib/python3.0/idlelib/MultiCall.py", line 165, in

[issue3284] Delete obsolete 'Unicode' in Py3 str docstrings; related fixes

2008-07-04 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: In 3.0b1, several str methods have 'Unicode' in their docstrings leftover from 2.x when str *was* unicode. For center count ljust rjust translate 'Unicode' should be deleted before 'string'.

[issue3286] IDLE opens window too low on Windows

2008-07-04 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: On my Windows XP system, IDLE opens windows too low, even the first, so that the bottom is behind the task bar. When I move the window up, close, and reopen, it occasionally remembers the position but usually forgets. Always remem

[issue3292] Position index limit; s.insert(i,x) not same as s[i:i]=[x]

2008-07-05 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Suggested changes to Lib Ref Manual: Sequence Types --...(3.6 for 2.5) (These are mostly based on an issue posted on c.l.p. The Plone Archetypes package (which I know nothing of) was reported as suggesting that users pass sys.maxi

[issue3366] Add gamma and error functions to math module

2008-07-15 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: >From Py3000 list: in C99 standard math library, but need code when not yet in particular implementation. Dickinson: open and assign to me Stutzbach: I suggest using the versions from newlib's libm. They contain exte

[issue3400] dis module: undocumented new bytecodes

2008-07-17 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: dis / Python Bytecode Instructions is missing UNPACK_EX STORE_LOCALS LOAD_BUILD_CLASS MAKE_BYTES which appear in dis.opname (3.0 version). Suggestion: After entry for UNPACK_SEQUENCE(count), add UNPACK_EX(bytepair) Used for s

[issue3344] IDLE - use enumerate instead of zip(count(), ...)

2008-07-18 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: -- components: +IDLE ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3344> ___ __

[issue3344] IDLE - use enumerate instead of zip(count(), ...)

2008-07-18 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: This looks as straightforward as patches get. I verified that itertools.count is not used elsewhere in the file, so it is ok to zap the import. Suggest apply. -- nosy: +tjreedy ___ Python t

[issue3487] sre "bytecode" verifier

2008-08-01 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Based on my understanding of the above and PyDev discussions, I see the arguments in favor of quick inclusion as being the following: 1. This will be user invisible, so it is not a new interface feature. 2. This will prevent po

[issue3459] optimize bytes.join()

2008-08-01 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: How much does the optimization speed up (or slow down?) a more normal case when it is applicable? bl = [b'', b'a'] How much does the optimization slow down the normal case where it is not applied? bl = [b'a

[issue3463] make life.py use more rendering characters

2008-08-01 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Summary: This patch makes a non-essential change to a curses demo. It also reverses several 2.x to 3.0 edits, turning it back to 2.x code. So the current version must be rejected. Even if corrected, I would still recommend closing.

[issue2819] Full precision summation

2008-08-01 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Comment: as a user (on x86) I agree with Tim. I could almost see the new version as a bugfix. Question: I see "math module patch committed, r63542" in May 22. But in 3.0b2, there is no math.fsum and math.sum seems to

[issue2819] Full precision summation

2008-08-02 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: > I'm pretty sure it *was* merged: math.sum should be the full-precision > summation in both recent betas (2.6b2 and 3.0b2). Try comparing > sum([1e100, 1, -1e100, -1]) and math.sum([1e100, 1, -1e100, -1])---they >

[issue3459] optimize bytes.join()

2008-08-02 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: >bl = [b'a']*2 gives a 2% slowdown: >bl = [b'', b'a'] gives a 20% speedup: If the second case is less than 9% of cases, which I expect is true, the change would cause an average slowdown ;-) &

[issue3519] Evaluation order example lacks suffix

2008-08-07 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Language reference/ Expressions/ Evaluation order ... In the following lines, expressions will be evaluated in the arithmetic order of their suffixes: ... func(expr1, expr2, *expr3, **expr4) The omission of a suffix from the fu

[issue3520] New Global Module Index glitch on WinXP

2008-08-07 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: New to beta2 (a4,b1 worked fine as I remember). It is possible that I installed xp sp3 in between. In any case, I keep xp updated as per MS downloads. Windows XP: open Start/Python3.0/Python Manuals to get 'Python v3.0b2 do

[issue3521] file.readline: bad exception recovery

2008-08-07 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: WinXP, 3.0b2 >>>f=open('somefile', 'r') >>>f.readline(somefloat) Traceback (most recent call last): File "", line 1, in f.readline(1.0) File "C:\Program Files\Python30

[issue896052] symtable module not documented

2008-08-07 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I notice that symtable is still in 3.0, still not in the index, and I presume still not documented. The help(symtable) says it defines classes Symbol SymbolTable Class(SymbolTable) Function(symbolTable) so it seems to be used for p

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: On windows: type >>> zomeinput Press home key. In command window (terminal interface), cursor goes to just before z, where one would want. In IDLE (2.5.2, 3.0b2), it goes to beginning of line. If current patch does not fix

[issue1721083] Add File - Reload

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: This appears to me to duplicate and supercede http://bugs.python.org/issue1175686 If so, could that be closed as superceded? -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTE

[issue3493] No Backslash (\) in IDLE 1.2.2

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: \ works fine for me and I suspect almost everyone else. Please bring this up on comp.lang.python or python-list or gmane.comp.python.general to see if any other Macbook users have this problems or any ideas on what might be wrong wit

[issue2827] IDLE 3.0a5 cannot handle UTF-8

2008-08-08 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: 3.0b2, WinXP I cut and pasted the text above into an empty IDLE edit window, hit F5, and in the blink of an eye, both IDLE windows disappeared. No error message, no Window's error box, just gone. The pasted text was saved to the

[issue2841] Windows: "Runtime Error!" crash from pythonw.exe (3.0a5)

2008-08-10 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I am closing this as 'out of date' because the problem went away in .b1 and is still gone in .b2. There is still, however, a crash problem if a file is run with utf-8. See http://bugs.python.org/issue2827 -- resolu

[issue2827] IDLE 3.0a5 cannot handle UTF-8

2008-08-10 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: When one runs a file with Python30.exe, it opens a window, runs the file, and closes the window too fast to see what happened. The point of the input() statements is to 'pause' execution. This is standard debugging along wi

[issue3473] In function call, keyword arguments could follow *args

2008-08-13 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Another use case: upon reading A.Baxter's Porting to 3 talk, I realized, slightly generalizing from his example, that print(s.join(map(str,it))) == print(*it,sep=s) -- or would, except that it currently has to be written non-int

[issue3558] Operator precedence misdocumented

2008-08-14 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Reference/Expressions/Primaries: "Primaries represent the most tightly bound operations of the language. Their syntax is: primary ::= atom | attributeref | subscription | slicing | call" This (along with the fact that al

[issue3559] Pasted \n not same as typed \n

2008-08-14 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Winxp, 3.0b2, but I suspect earlier as well, since reported on c.l.p. If I paste '1+2\n' into the command window interpreter, it responds with '3' and a new prompt. In IDLE, the pasted \n is ignored and a typed

[issue3556] test_raiseMemError consumes an insane amount of memory

2008-08-16 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: With sys.maxint gone in 3.0, test_raisexxx() is also gone in 3.0b2 -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3569] Glitch in eval() doc

2008-08-16 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: LibRef/built-in functions/eval() has this section This function can also be used to execute arbitrary code objects (such as those created by compile()). In this case pass a code object instead of a string. The code object must hav

[issue3568] list enumeration corrupt when remove()

2008-08-16 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Since you are just beginning Python, I suggest you report questionable program behavior on newsgroups comp.lang.python, gmane.comp.python.general at news.gmane.org, or the python.org mailing list python-list (all three are equi

[issue3567] test_ossaudiodev fails when run with -bb

2008-08-16 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Systems that don't run this test (Windows, ??) cannot catch such problems. Does adding 'b' fix sunau and the test? -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTED]&

[issue3558] Operator precedence misdocumented

2008-08-18 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I am reopening because my suggested fix was wrong. As pointed out by Fredrik Lundh on PyDev the next day, quoting from the grammar, attributes, subscriptions, slicing, and call have the *same* precedence. I thought I posted his comme

[issue3563] fix_idioms.py generates bad code

2008-08-22 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Why is the statement, whatever it is, even being touched? Would not the same problem arise with any following outdented line? IOW, why not delete that pair of lines from fix_idioms.py? Does that break anything else in test_

[issue3564] making partial functions comparable

2008-08-22 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: The default equality comparison of Python objects is by id. Some classes override this, others, in particular, functions, do not. I also agree that partial functions should not either. However, you can subclass functools.partial (I c

[issue3577] Interpreter name: python vs. python-3.0

2008-08-22 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3577> ___ __

[issue3579] Faites Attention en Utilisant Cette Merveille!

2008-08-22 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file11139/unnamed ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3579] Faites Attention en Utilisant Cette Merveille!

2008-08-22 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3579> ___ ___ Python-bugs-list mailing list

[issue3579] SPAM

2008-08-22 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: -- title: Faites Attention en Utilisant Cette Merveille! -> SPAM ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.py

[issue3636] Managing dual 2.x and 3.0 installations on Windows

2008-08-22 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: -- nosy: +tjreedy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3636> ___ __

[issue3693] Obscure array.array error message

2008-08-26 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: In 2.5 >>> import array >>> a = array.array('b', 'fox') >>> In 3.0 >>> import array >>> a = array.array('b', 'fox') Traceback (most recent call last

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2008-08-29 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: "Just to clarify: Python can be built as UCS2 or UCS4 build (not UTF-16 vs. UTF-32)" I recently read most of the Unicode 5 standard and as near as I could tell it no longer uses the term UCS, if it ever did. Chapter 3 has on

[issue3675] Python 2.6 can't read sets pickled with Python 3.0

2008-08-29 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Was it really intended that 3.0 pickles unpickle on 2.6? What about other changes like moving something from one module to another (reduce from built-in to functools), changing all classes to new style (several examples), or adding meth

[issue3679] pressing HOME key in IDLE editor ends IDLE

2008-08-29 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Things like this tend to be system specific, and sometimes even machine specific, so please include platform/os with reports, even I you do not think it relevant. In this case, Home works as it should on my WinXP 3.0b2 (which is for

[issue3720] segfault in for loop with evil iterator

2008-08-29 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I share Raymond's annoyance. The ultimate solution for segfaults is for bad pointer references to be catchable (trappable) the same as math errors are are now. I remember when 1/0 was fatal, not EDOM. Then the interpreter co

[issue3679] pressing HOME key in IDLE editor ends IDLE

2008-08-30 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: The only system difference is that I have an older Athlon cpu. And I did try Home (key above End) in the editor window and it moves cursor to beginning of line. My options/configure/key bindings starts beginning-of-line . So this migh

[issue3825] Major reworking of Python 2.5.2 re module

2008-09-12 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Atomic groups and possessive quantifiers appear to be relatively new: http://en.wikipedia.org/wiki/Regular_expressions for instance, has no mention of either that I found. http://www.regular-expressions.info/atomic.html http://www.r

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2008-09-19 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: This is supposed to have been fixed by http://bugs.python.org/issue1196903 but I don't believe there has not been a 2.5 release since then. I do not know if that patch was or was backported for 2.5. -- nos

[issue3891] collections.deque should have empty() method

2008-09-19 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I changed this to a doc issue for 2.6/3.0 whenever. I have two objections to adding "An empty deque evaluates as false". First, it implies (falsely) that it could be otherwise; since deque has no __bool__ method, its __len_

[issue3936] Faulty suppression of 'as' keyword warning

2008-09-22 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Copied from c.l.p post by F. Lundh I have no idea if this has implications for warnings in 2.6 > >>> from sympy.mpmath import specfun > >>> > > So what could be suppressing

[issue3938] Clearing globals; interpreter -- IDLE difference

2008-09-22 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: Interpreter: >>> globals() {'__builtins__': , '__name__': '__main__', '__doc__': None, '__package__': None} >>> globals().clear() >>> globals() Traceba

[issue3998] List.sort docstring has obsolete cmp reference.

2008-09-29 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: 3.0rc1 >>> help(list.sort) Help on method_descriptor: sort(...) L.sort(key=None, reverse=False) -- stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1 The last line is left over from 2.x docstring. Since cmp keyword

[issue4015] [patch] make installed scripts executable on windows

2008-10-03 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: As a Windows user, I am not sure I would want this. A run command associated with .py makes all .py files executable. From a command prompt, which I suspect most Windows users never use, typing 'python' is not a big deal. A

[issue4027] wrong page index number in reference book of python documentation

2008-10-03 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Which version of the Ref Manual is this supposed to be? By Evince do you mean the Gnome document viewer? http://www.gnome.org/projects/evince/ If so, are you trying to view a .pdf downloaded from python.org? If so, did you try viewing i

[issue4029] Documentation displays incorrectly in iexplore.

2008-10-03 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: 3. There is a typo to fix in the header for print on http://docs.python.org/library/functions.html end = 'n' should be end = '\n' About spaces: both IE7 and FF3 on my machine display the same line with real commas

[issue3439] math.frexp and obtaining the bit size of a large integer

2008-10-06 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: To add support to the proposal: there is currently yet another thread on c.l.p on how to calculate numbits efficiently. The OP needs it for prototyping cryptographic algorithms and found Python-level code slower than he

[issue4090] Documenting set comparisons and operations

2008-10-09 Thread Terry J. Reedy
New submission from Terry J. Reedy <[EMAIL PROTECTED]>: RefMan Expressions Comparisons has a subsection headed "Comparison of objects of the same type depends on the type" with entries for numbers, bytes, strings, tuples, lists, mappings, and most_other (compared by id). Sets

[issue4087] equality involving Decimals is not transitive; strange set behaviour results

2008-10-09 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: There are two issues involved: 1. documenting set behavior 2. what to do, if anything, about Decimals and other numbers Since users are free to create similar problems, and since sets are missing from the Reference section on comparis

[issue4087] Document the effects of NotImplemented on == and !=

2008-10-09 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: If Decimal(2) == float(2) were to raise an error, set([Decimal(2), float(2)]) would fail, as I would argue it ought to, and the set anomalies would disappear. -- assignee: georg.brandl -> priority: low

[issue4090] Documenting set comparisons and operations

2008-10-10 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Para 1: Thank you. Pars 2: I understand and accept your concern. Para 3. You are right odd comparisons are the root of several problems. Following you suggestion, let's at least add one blanket, cover-our-asses warning at the bo

[issue4087] Document the effects of NotImplemented on == and !=

2008-10-10 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: More sensibility offenders: >>> s = {fractions.Fraction(17,1), decimal.Decimal(17)} >>> s-{17} set() Removing one thing removes two. >>> s.remove(17) >>> 17 in s True Removing something leaves i

[issue7771] dict view comparison methods are not documented

2010-01-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 3.2a doc is unchanged (similarly lacking). The situation is that view have all of the special method (operator methods) that frozen sets do but none of the named methods (.copy to .union). I think it would be helpful if the doc said so. Perhaps change

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: The note starts out "Do not (do x) unless you're not (doing y)". This is confusing. I believe this means "If you are (doing y), you may (do x)". If so, please write it so. If not, please write what you do mean. After thinking abou

[issue6760] patch to subprocess docs to better explain Popen's 'args' argument

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: PS. I only looked at the style of the patch. Once that is clearer, someone who knows more than me needs to review it for content correctness. -- ___ Python tracker <http://bugs.python.org/issue6

[issue1943] improved allocation of PyUnicode objects

2010-02-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: >It is, otherwise I would have documented it. The fact that some developers are not using those APIs correctly doesn't change that. If, as Antoine claimed, 'it' is a documented feature of str strings, and Py3 says str = Unicode, it is a p

[issue7829] dis module documentation gives no indication of the dangers of bytecode inspection

2010-02-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: The doc begins "30.12. dis — Disassembler for Python bytecode The dis module supports the analysis of Python bytecode by disassembling it. Since there is no Python assembler, this module defines the Python assembly language. The Python bytecode which

[issue4037] doctest.py should include method descriptors when looking inside a class __dict__

2010-02-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not sure whether this would be considered a bugfix or a new feature. (ie, whether it would apply to 2.6 and 3.1 or not) But the change is needed for 3.x also. I am not sure whether the doc needs changing. A testcase should be added to doctest-test

[issue2292] Missing *-unpacking generalizations

2010-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like to see this revisited when the moratorium is lifted. Added 3.3 as a surrogate for that. As per GvR above, it will need a PEP to pin down details, alternatives, and use cases and discussion on python-ideas list. -- versions: +Python 3.3

[issue2292] Missing *-unpacking generalizations

2010-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whoops, just noticed newish 'after moratorium' keyword. Good idea. -- versions: -Python 3.3 ___ Python tracker <http://bugs.python.

[issue7460] extended slicing not sufficiently covered in docs

2010-03-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: This may be duplicative of #1446619, but I have not looked at that enough. I agree that revision is needed and will try to develop patch suggestions. -- nosy: +tjreedy versions: -Python 3.0 ___ Python tracker

<    9   10   11   12   13   14   15   16   17   18   >