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
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
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
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.
--
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
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
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
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
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
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
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
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
Mark Summerfield added the comment:
My change to managers.py is redundant; sorry about that.
--
___
Python tracker
<http://bugs.python.org/issue20607>
___
___
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
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)
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
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
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
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
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
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.,
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
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
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
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
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-
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.*)"
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(
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
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
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
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
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
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
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
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
Mark Summerfield added the comment:
I've notified APSW's author and I'm sure he'll fix it. Thanks!
--
___
Python tracker
<http://bug
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
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
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
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
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
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
Changes by Mark Summerfield :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue23292>
___
___
Python-bugs-list mailing list
Unsubscrib
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
Changes by Mark Summerfield :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue20366>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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 =
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
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
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
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
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
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
101 - 154 of 154 matches
Mail list logo