First
|
Prev |
Next
|
Last
Pages: 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
python 2.6 py2exe wx app fails I'm trying to move a wxPython application forward to 2.6, but although the app runs fine in 2.6 when run directly when I build the app into an exe using py2exe I get this popup message "application failed to initialize properly (0xc0000142)" when I try to run the built exe. The same application seems to b... 23 Apr 2010 20:48
Reading a binary file and wrtiting the bytes verbatim ?in an utf-8 file Thanks, I'll try this. I have no idea how you'd go about reading the contents of such a file in a sensible way. The purpose is to embed PNG pictures in an RTF file that will be read by OpenOffice. It seems that OpenOffice reads RTF in 8-bit, so it should be ok. The RTF is produced from a TeX source file... 23 Apr 2010 20:48
Reading a binary file and wrtiting the bytes verbatim in an utf-8 file On Fri, Apr 23, 2010 at 9:22 AM, <fab(a)slick.airforce-one.org> wrote: I have to read the contents of a binary file (a PNG file exactly), and dump it into an RTF file. The RTF-file has been opened with codecs.open in utf-8 mode. As I expected, the utf-8 decoder You mean encoder. chokes on some ... 23 Apr 2010 20:48
Importing package on Windows XP Hello dear Python hackers. I have a pretty stupid problem that I cannot solve despite all my efforts: Python cannot find my modules. I am sure the answer is obvious, but I cannot find it. The problem is simple, here is a toy example (which does not work). I have a file: --- import sys print sys.path import mod... 23 Apr 2010 20:48
[Python3] Reading a binary file and wrtiting the bytes verbatim in an utf-8 file Hello. I have to read the contents of a binary file (a PNG file exactly), and dump it into an RTF file. The RTF-file has been opened with codecs.open in utf-8 mode. As I expected, the utf-8 decoder chokes on some combinations of bits; how can I tell python to dump the bytes as they are, without interpreting... 23 Apr 2010 20:48
a.extend(b) better than a+=b ? Suppose a and b are lists. What is more efficient in order to extend the list a by appending all the items in the list b ? I imagine a.extend(b)to be more efficient for only appendinding the items from b while a+=b creates a copy of a before appending, right ? ... 23 Apr 2010 20:48
socked and bytes operation On 21 Apr, 20:42, John Nagle <na...(a)animats.com> wrote: luca72 wrote: Hello i have this question : i connect to the server in this way: sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) sock.connect(('192.168.1.11',11502)) rcv = sock.recv(8124) here i get 14 random bytes , in a st... 23 Apr 2010 17:31
python 2.6 py2exe wx app fails On 22/04/2010 13:56, Robin Becker wrote: I'm trying to move a wxPython application forward to 2.6, but although the app runs fine in 2.6 when run directly when I build the app into an exe using py2exe I get this popup message "application failed to initialize properly (0xc0000142)" when I try... 23 Apr 2010 17:31
xml.dom.minidom character encoding C. Benson Manica, 21.04.2010 19:19: I have the following simple script running on 2.5.2 on a machine where the default character encoding is "ascii": #!/usr/bin/env python #coding: utf-8 import xml.dom.minidom import codecs str=u"<?xml version=\"1.0\" encoding=\"utf-8\"?><elements><elem at... 23 Apr 2010 17:31
PyCon Australia 2010 update Hi everyone, Here's some updates for PyCon Australia 2010, to be held at the Sydney Masonic Center over the weekend of June 26 and 27. 1. Registration is now open 2. Keynotes announced 3. Call For Proposals proceeds 4. Several sponsors confirmed Please pass this message on to those you feel will find it i... 23 Apr 2010 17:31 |