[issue15189] tkinter.messagebox does not use the application's icon

2012-07-12 Thread Mark Summerfield
Mark Summerfield added the comment: I think there is a solution to this that can be applied in one's own code: app = tkinter.Tk() icon = tkinter.PhotoImage(file="icon.gif") app.tk.call("wm", "iconphoto", app, "-default", icon) According to the docs

[issue15380] bytes/str mismatch in distribute

2012-07-17 Thread Mark Summerfield
New submission from Mark Summerfield : I tried installing CherryPy into my local Python 3.2 build. I don't know if this is a problem with CherryPy's setup.py or with distribute but suspect the latter since I've had similar problems before. $ /home/mark/opt/python32/bin/p

[issue20366] SQLite FTS (full text search)

2014-07-10 Thread Mark Summerfield
Mark Summerfield added the comment: Just to mention that I don't need this feature anymore since I've now switched to using APSW which includes it and also has much fuller SQLite support than the sqlighe3 module. (I haven't closed it though since other people have participa

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

2014-07-25 Thread Mark Summerfield
Mark Summerfield added the comment: I used pip to install the win_unicode_console package on windows 7 python 3.3. It works but wouldn't freeze with cx_freeze because there's no __init__.py file in the win_unicode_console directory. --

[issue22121] IDLE should start with HOME as the initial working directory

2014-08-02 Thread Mark Summerfield
New submission from Mark Summerfield: On Windows IDLE's working directory is Python's install directory, e.g., C:\Python34. ISTM that this is the wrong directory for 99% of general users and for 100% of beginners since this is _not_ the directory where people should save their own

[issue22122] turtle module examples should all begin "from turtle import *"

2014-08-02 Thread Mark Summerfield
New submission from Mark Summerfield: The turtle module is aimed primarily at young beginners to Python. Making them type turtle.this and turtle.that all over the place is tedious and unhelpful. At the start of the turtle docs there's a nice example that begins from turtle import * an

[issue22123] Make object() behave exactly like types.SimpleNamespace() if given kwargs

2014-08-02 Thread Mark Summerfield
New submission from Mark Summerfield: Right now object() does not accept any args and returns the lightest possible featureless object (i.e., without even a __dict__). This is great. However, it is really useful sometimes to be able to create an object to hold some editable state (so not a

[issue22122] turtle module examples should all begin "from turtle import *"

2014-08-02 Thread Mark Summerfield
Mark Summerfield added the comment: Ah, we're slightly at cross purposes. I showed them purely in terms of the procedural API. However, I can see now that I could have begun with: import turtle ... jane = turtle.Turtle() jane.fd(100) So, to "teach" their turtle how to go in a

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-03 Thread Mark Summerfield
Mark Summerfield added the comment: I changed my suggestion but did so on the mailing list instead of here: This (importing & using types.SimpleNamespace()) is too much for children (& beginners). But perhaps what I should be asking for is for a new built-in that d

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-07 Thread Mark Summerfield
Mark Summerfield added the comment: I'd be happy to draft a PEP if it is needed, if no one else has the time/inclination. -- ___ Python tracker <http://bugs.python.org/is

[issue20366] SQLite FTS (full text search)

2014-01-23 Thread Mark Summerfield
New submission from Mark Summerfield: This is a feature request that future versions of SQLite 3 that are bundled with Python 3 in the Windows binary packages (.msi files) has been build with the FTS4 (full text search version 4) enabled. -- components: Extension Modules messages

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2014-02-12 Thread Mark Summerfield
New submission from Mark Summerfield: I have a Python Windows GUI application (using PySide) that uses multiprocessing. When I freeze the application I get error messages, in particular that mulitprocessing cannot call flush on a null object. ISTM That in a Windows GUI application

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2014-02-12 Thread Mark Summerfield
Mark Summerfield added the comment: My change to managers.py is redundant; sorry about that. -- ___ Python tracker <http://bugs.python.org/issue20607> ___ ___

[issue6436] trace module doesn't seem to produce .cover files for Py3 (but does for Py2)

2009-07-07 Thread Mark Summerfield
New submission from Mark Summerfield : When I execute the following command line (Linux, Fedora 10) using Python 2.5 or 2.6, I get a .cover file: python2.5 -m trace --count MyModule.py But when I do this with Python 3.0 or 3.1, no .cover file is output. I didn't notice anything i

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-15 Thread Mark Summerfield
Mark Summerfield added the comment: Hi, I've noticed 3 differences between the re and regex engines. I don't know if they are intended or not, but thought it best to mention them. (I used the issue2636-20090810#3.zip version.) Python 2.6.2 (r262:71600, Apr 20 2009, 09:25:38)

[issue1602] windows console doesn't print utf8 (Py30a2)

2009-10-26 Thread Mark Summerfield
Mark Summerfield added the comment: Glenn Linderman's fix pretty well works for me on XP Home. I can print every Unicode character up to and including U+D7FF (although most just come out as rectangles, at least I don't get encoding errors). It fails at U+D800 with message: UnicodeE

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-12-31 Thread Mark Summerfield
Mark Summerfield added the comment: I agree with Florian Mayer that the encoding handling should be stream-specific. You could easily be reading the stdout of some third party program that uses, say, latin1, but want to do your own output in, say, utf-8. One solution that builds on what Amaury

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-12-31 Thread Mark Summerfield
Mark Summerfield added the comment: On Thu, Dec 31, 2009 at 1:30 PM, Amaury Forgeot d'Arc wrote: > > Amaury Forgeot d'Arc added the comment: > > I don't understand. How is the subprocess stdout related to the main > program output? > Stream-specific encoding

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2009-03-23 Thread Mark Summerfield
Mark Summerfield added the comment: Py2.6: idlelib/EditorWindow.py change line 110 from: width=self.width, to: width=self.width, insertofftime=0, Py3.0 apply the same change to line 112 This will switch off cursor blink (and annoy people who want cursor blink). So really instead of setting

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2009-03-24 Thread Mark Summerfield
Mark Summerfield added the comment: Yes, blinking cursors are torture for me too. Fortunately you can switch them off globally in Windows, and in most cases on Linux (which is what I use). But not on Mac OS X, and not it seems for Java apps. This site has some tips: http://www.jurta.org/en/prog

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2009-03-29 Thread Mark Summerfield
Mark Summerfield added the comment: I agree that control of the blink _rate_ isn't needed. I would certainly welcome a "[X] blinking cursor" checkbox that defaulted to being checked so that existing behaviour is unchanged, but at the same time offering an easier solution (i.e.,

[issue5594] IDLE startup configuration

2009-03-29 Thread Mark Summerfield
New submission from Mark Summerfield : My suggestion is to add somewhere in the configuration dialog when users can enter a block of Python code to be executed at startup and whenever Restart Shell is executed. Use case: for people who use IDLE for calculations/experiments they might like to

[issue4630] IDLE no longer respects .Xdefaults insertOffTime

2009-03-29 Thread Mark Summerfield
Mark Summerfield added the comment: I think a checkbox would be better: [X] Blinking cursor or [X] Cursor blink but if you use radio buttons you could have: Cursor blink (*) On ( ) Off -- ___ Python tracker <http://bugs.python.org/issue4

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2009-05-28 Thread Mark Summerfield
New submission from Mark Summerfield : When I start a process with subprocess.Popen() and pipe the stdin and stdout, it always seems to use the local 8-bit encoding. I tried setting process.stdin.encoding = "utf8" and the same for stdout (where process is the subprocess object), but t

[issue9112] argparse missing documentation for error() method

2010-06-29 Thread Mark Summerfield
New submission from Mark Summerfield : The argparse module's ArgumentParser class has an error() method that appears to have the same behavior as the optparse error() method, but this method is not mentioned in the documentation. -- assignee: d...@python components: Document

[issue9114] br"" string literals don't appear to be documented

2010-06-29 Thread Mark Summerfield
New submission from Mark Summerfield : It appears that br"" (raw bytes) isn't documented, at least not along with string and bytes literals: http://docs.python.org/py3k/reference/lexical_analysis.html#literals Yet they are supported: http://mail.python.org/pipermail/python-

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-07-07 Thread Mark Summerfield
Mark Summerfield added the comment: On the PyPI page: http://pypi.python.org/pypi/regex/0.1.20100706.1 in the "Subscripting for groups" bullet it gives this pattern: r"(?.*?)(?\\d+)(?.*)" Shouldn't this be: r"(?P.*?)(?P\\d+)(?P.*)"

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-07-07 Thread Mark Summerfield
Mark Summerfield added the comment: If you do: >>> import regex as re >>> dir(re) you get over 160 items, many of which begin with an underscore and so are private. Couldn't __dir__ be reimplemented to eliminate them. (I know that the current re module's dir(

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-07-07 Thread Mark Summerfield
Mark Summerfield added the comment: I was wrong about r"(?.*)". It is valid in the new engine. And the PyPI docs do say so immediately _following_ the example. I've tried all the examples in "Programming in Python 3 second edition" using "import re

[issue9521] xml.etree.ElementTree strips XML declaration and procesing instructions

2010-08-05 Thread Mark Summerfield
New submission from Mark Summerfield : If you read in an XML file using xml.etree.ElementTree.parse() and then write it out again using xml.etree.ElementTree.write() what is written may not be the same as what was read. In particular any XML declaration and processing instructions are

[issue9522] xml.etree.ElementTree forgets the encoding

2010-08-05 Thread Mark Summerfield
New submission from Mark Summerfield : If you read in an XML file that specifies its encoding and then later on use xml.etree.ElementTree.write(), it is always written using US-ASCII. I think the behaviour should be different: (1) If the XML that was read included an encoding, that encoding

[issue28895] Two suggestions for windows.html

2016-12-07 Thread Mark Summerfield
New submission from Mark Summerfield: This document is v. useful for Windows Python users: https://docs.python.org/dev/using/windows.html However, I think it could be improved as follows: (1) Explain which Python installer to get (since there are so many)! Even a "get the Window

[issue27259] Possible missing deprecation warnings?

2016-06-07 Thread Mark Summerfield
New submission from Mark Summerfield: In the docs for the array module: https://docs.python.org/dev/library/array.html#module-array Note 1 in the table of type codes says that the 'u' type is deprecated and will go in Python 4.0. Since the array.fromunicode() and array.tounicode

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Mark Summerfield
New submission from Mark Summerfield: When I try to build APSW (http://rogerbinns.github.io/apsw/index.html) with Python 3.3 or 3.4 on Debian stable 64-bit I get the error output shown below. I dug into the source and it seems that the problem is that distutils/ccompiler.py&#

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Mark Summerfield
Mark Summerfield added the comment: The first person I asked was the author of APSW (Roger Binns). He told me: "The ultimate cause of that is some interaction with the compilation environment. Some sort of CFLAGS is ultimately ending up in some Python code like above when it shou

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Mark Summerfield
Mark Summerfield added the comment: Here are the flags you asked for: $ icu-config --cppflags -D_FORTIFY_SOURCE=2 -D_REENTRANT -I/usr/include $ icu-config --ldflags -Wl,-z,relro -ldl -lm -L/usr/lib/x86_64-linux-gnu -licui18n -licuuc -licudata -ldl -lm

[issue22846] distutils needlessly fails to build apsw

2014-11-11 Thread Mark Summerfield
Mark Summerfield added the comment: I've notified APSW's author and I'm sure he'll fix it. Thanks! -- ___ Python tracker <http://bug

[issue17914] add os.cpu_count()

2014-12-12 Thread Mark Summerfield
Mark Summerfield added the comment: In message http://bugs.python.org/issue17914#msg188626 Victor Stenner says "On Windows, GetSystemInfo() is called instead of reading an environment variable. I suppose that this function is more reliable." >From my reading, and based on feedbac

[issue23037] cpu_count() unreliable on Windows

2014-12-12 Thread Mark Summerfield
New submission from Mark Summerfield: In message http://bugs.python.org/issue17914#msg188626 Victor Stenner says "On Windows, GetSystemInfo() is called instead of reading an environment variable. I suppose that this function is more reliable." >From my reading, and based on feed

[issue17914] add os.cpu_count()

2014-12-12 Thread Mark Summerfield
Mark Summerfield added the comment: Since this is closed I've created a new issue as requested: http://bugs.python.org/issue23037 -- ___ Python tracker <http://bugs.python.org/is

[issue23292] Enum doc suggestion

2015-01-21 Thread Mark Summerfield
New submission from Mark Summerfield: I think it would be worth documenting globals().update(MyEnumeration.__members__) in the "Interesting Examples" section of the enum docs. I suspect that most people will find that importing enums is annoying because they'll get

[issue23292] Enum doc suggestion

2015-01-21 Thread Mark Summerfield
Mark Summerfield added the comment: Georg said to assign this to Ethan Furman but I don't seem to have that facility. -- ___ Python tracker <http://bugs.python.org/is

[issue23292] Enum doc suggestion

2015-01-25 Thread Mark Summerfield
Mark Summerfield added the comment: Since this is a bit controversial, I've tried marking it as 'rejected' with this comment. I've also added a very brief explanation and link back to here on my web site: http://www.qtrac.eu/pyenum.html -- reso

[issue23292] Enum doc suggestion

2015-01-25 Thread Mark Summerfield
Changes by Mark Summerfield : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue23292> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23292] Enum doc suggestion

2015-01-26 Thread Mark Summerfield
Mark Summerfield added the comment: Nice answer Ethan (but I can't vote you up since stack overflow won't let me vote or even comment anymore). As for adding export_to(), it seems like a good idea. However, personally, I think the signature should be hoist_into(namespace, c

[issue20366] SQLite FTS (full text search)

2015-07-24 Thread Mark Summerfield
Changes by Mark Summerfield : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue20366> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2015-10-28 Thread Mark Summerfield
Mark Summerfield added the comment: I've now signed the contributor agreement. However, with Python 3.4 I don't seem to get the same problem anymore even though there are a few places in the code where sys.std{err,out} are used without if ... is not N

[issue13828] Further improve casefold documentation

2015-10-29 Thread Mark Summerfield
Mark Summerfield added the comment: I think the str.casefold() docs are fine as far as they go, rightly covering what it _does_ rather than _how_, yet providing a reference for the details. But what they lack is more complete information. For example I discovered this: >>> x =

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2015-11-05 Thread Mark Summerfield
Mark Summerfield added the comment: No, I'm sorry I haven't tried with 3.5; in fact, there doesn't seem to be a cx_Freeze available for 3.5 yet. -- ___ Python tracker <http://bugs.pyt

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2015-12-28 Thread Mark Summerfield
Mark Summerfield added the comment: Thanks Davin. I have indeed moved to 3.4 which does not seem to have the bug. (I can't move to 3.5 because I can't install 32- and 64-bit versions as I can with 3.4 due to the new installers -- or rather I can, but this confuses the pywin3

[issue26126] Possible subtle bug when normalizing and str.translate()ing

2016-01-15 Thread Mark Summerfield
New submission from Mark Summerfield: I am using Python 3.4.3 on Xubuntu 14.04 LTS 64-bit. I have a program that when run repeatedly sometimes what I expect, and sometimes does not: $ ~/tmp/normbug.py OK ('The AEnid oevre', '==', 'The AEnid oevre') $ ~/tmp/no

[issue26126] Possible subtle bug when normalizing and str.translate()ing

2016-01-15 Thread Mark Summerfield
Mark Summerfield added the comment: Thanks for looking at this. In my full translation dict I had some other mistakes of case, now all fixed:-) -- ___ Python tracker <http://bugs.python.org/issue26

[issue27980] Add better pythonw support to py launcher

2016-09-06 Thread Mark Summerfield
New submission from Mark Summerfield: The excellent py.exe launcher on Windows always uses a python.exe interpreter (although another issue suggests it will use pythonw.exe when the python file has a .pyw suffix which is good). However, if one wanted to provide a .bat file like this: @echo

[issue27980] Add better pythonw support to py launcher

2016-09-06 Thread Mark Summerfield
Mark Summerfield added the comment: Sorry, I didn't even know that pyw.exe existed. Naturally pyw -h produces no output, but maybe py -h could mention it? -- ___ Python tracker <http://bugs.python.org/is

<    1   2