[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: ANSI code page? I have no idea how to find out and many would not even know what such a thing exists. It is an HP laptop sold in the US. I think bugs in core syntax should have high priority. I appreciate your work toward fixing it. -- versions

[issue9844] calling nonexisting function under __INSURE__

2011-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the source will not compile with __INSURE__ defined, then perhaps no one has ever tried to do that with 3.x. That would suggest that the ifdef could be removed. In any case, the non-function call should be removed. Is the other function called anywhere

[issue9904] Cosmetic issues that may warrant a fix in symtable.h/c

2011-01-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think this needs at least two patches: one to change comments, another to remove two fields. Can you prepare something? -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue9

[issue3821] trace module bug when using --missing

2011-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker <http://bugs.python.org/issue3821> ___ ___ Python-bugs-list mailing list Unsub

[issue2986] difflib.SequenceMatcher not matching long sequences

2011-01-08 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> committed/rejected ___ Python tracker <http://bugs.python.org/issue2986> ___ ___ Python-bugs-list mai

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : 0. Does 'Release 0.05' at the top have any useful current meaning? or could it be deleted? 1. Introduction: The history paragraph "The re module was added in Python 1.5, and provides Perl-style regular expression patterns. Earlier versions

[issue10225] Fix doctest runable examples in python manual

2011-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I understand this, your patch would fix numerous errors in the docs, but has not been applied. It would be nice to get the fixes into 3.2. What sort of feedback do you want? Proofreading of text? Recheck of doctest? Does sphinx suppress doctest comments

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the .rst should not have two copies and that any windows.chm specific fixup should be in the tool. Right now, right clicking gives a context menu with one item: Properties. Clicking that brings up a dialog box with a url that can be copied. Good

[issue10875] Update Regular Expression HOWTO

2011-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I think I know how to do it, easily, I will try to derive the 2.7 patch. In Matching Characters, I think "The following predefined special sequences are available:" should be expanded to "The following predefined special sequences

[issue10877] Make Tools (and subdirs) a package (and subpackages)

2011-01-09 Thread Terry J. Reedy
New submission from Terry J. Reedy : Given that sys.path includes ".../python32" adding the requisite empty __init__.py to Tools/ and, for instance, demo/ would allow >>> from Tools.demo.redemo import main; main() to work (I tried it with Scripts instead of demo in b2). No

[issue10877] Make Tools (and subdirs) a package (and subpackages)

2011-01-09 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/issue10877> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I applied patch to 3.2, 3.1 in r87904, r87905. Thanks. I had to re-edit for 2.7: r87909. I made a separate small patch for my suggested addition to Matching Characters. Could someone check that it is correct, given that re.rst contains the target directive

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks. r87911,r87912 -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10875] Update Regular Expression HOWTO

2011-01-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: and r87918 for 2.7, with bytes -> byte string -- ___ Python tracker <http://bugs.python.org/issue10875> ___ ___ Python-

[issue10875] Update Regular Expression HOWTO

2011-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg125954 ___ Python tracker <http://bugs.python.org/issue10875> ___ ___ Python-bugs-list m

[issue10875] Update Regular Expression HOWTO

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Correction: r87912 and r87913 for 3.x -- ___ Python tracker <http://bugs.python.org/issue10875> ___ ___ Python-bugs-list mailin

[issue10225] Fix doctest runable examples in python manual

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doctest runs on .rst files, which are plain text files, finds and reports errors, and reports no errors when the errors are fixed. See #10875 where is was very helpful. So your last comment puzzles me. In any case, your patch is too big to digest at once. I

[issue10225] Fix doctest runable examples in python manual

2011-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are two reasons I forward ported the changes. 1. Without running doctest on doc examples, they sometimes have errors either originally, after patches to the doc, or after patches to Python. On other issues, I found 4 errors in the json doc (probably

[issue8771] Socket freezing under load issue on Mac.

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

[issue2710] error: (10035, 'The socket operation could not complete without blocking')

2011-01-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: This can be reopened if the problem ever appears in a current issue. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue1602] windows console doesn't print or input Unicode

2011-01-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: http://www.python.org/dev/peps/pep-0011/ says Name: Win9x, WinME, NT4 Unsupported in: Python 2.6 (warning in 2.5 installer) Code removed in: Python 2.6 Only xp+ now. email sent to webmaster@... Even if the best fix only applies to win7

[issue10951] gcc 4.6 warnings

2011-01-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I took a look at an example of each type. Sign-compare, Parser/node.c, 94 if (required_capacity > PY_SIZE_MAX / sizeof(node)) I presume PY_SIZE_MAX and sizeof(node) are both unsigned. So is, conceptually, required_capacity, but it is defined as an

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: What happens if you run your program without IDLE? (either with right-click and run or run from Command Prompt window?) I would not be surprised if your problems go away. IDLE runs a saved file in a separate pythonw process. Printing (or writing) to stdout

[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-01-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.5, Python 2.6 ___ Python tracker <http://bugs.python.org/issue10922> ___ ___ Python-bugs-list mailin

[issue10925] Document pure Python version of integer-to-float correctly-rounded conversion

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see there is already something similar for true division. I find +q_max, shift_max = 1 << sig_bits, sys.float_info.max_exp - sig_bits easier to read as two lines +q_max = 1 << sig_bits +shift_max = sys.float_info.max_exp - sig_bits

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW, I downloaded, edited for 3.2, and ran. 45 minutes later, with counter in box near 16000, and output sequence looking about the same as initially, I killed with Task Manager (also on winxp). You might try same on your system. -- Added file: http

[issue10957] Python developer FAQ grammar error

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: In general, the website is separate from Python code and documentation and website issues should be sent to webmas...@python.org, not here, as code/doc committers cannot change web pages. However, this particular page (dev/faq) has being pulled into the (hg

[issue10954] No warning for csv.writer API change

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Failing when passed a bytesIO object seems reasonable. I question the bit about newlines though. The doc does not specify that newlines='' is needed on output. While is says it is needed for input, why? Why is a mix of '\n', '\r

[issue10954] No warning for csv.writer API change

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changing csv api is a feature request that could only happen in 3.3. -- nosy: +skip.montanaro type: behavior -> feature request versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker &l

[issue10970] "string".encode('base64') is not the same as base64.b64encode("string")

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Questions should generally be asked on python-list or its mirrors. The docs do not say that the result should be exactly, byte-for-byte, the same. base64 module refers to RFC 3548. Both our doc and the RFC describe variations. The base64 codec does '

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I ran the 2.7 file (on 2.7) and after several minutes, threadA stopped printing, but no error message. Antoine, could improvement from 2.7 to 3.2 have anything to new with the new implementation of the Global Interpreter Lock? Scott, if you can do your

[issue10541] regrtest.py -T broken

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

[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

[issue11080] Win32Serial.read coding error for non-blocking read

2011-01-31 Thread Terry M. Topka
New submission from Terry M. Topka : Attempting to read a fixed amount of data when the serial port is configured for non-blocking reads (i.e. self.timeout == 0) will occasionally throw an invalid memory access exception, due to an error in the following code: ### pyserial-2.5-rc2 serialWin32

[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

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