New submission from Tom Brown :
The following script runs without error in 3.8.5 and raises an error in 3.8.6,
3.9.5 and 3.10.0b1.
Source:
```
import enum, pickle
class MyInt(int):
pass
# work-around: __reduce_ex__ = int.__reduce_ex__
class MyEnum(MyInt, enum.Enum):
A = 1
Tom Brown added the comment:
I found this work-around useful https://stackoverflow.com/a/32782927
--
nosy: +Tom.Brown
___
Python tracker
<https://bugs.python.org/issue12
I used pyinstaller quite a bit 3 years ago. I could brush off the cobwebs
and see if I can help if you have not solved it already.
What is the issue you are having?
-Tom
On Jun 21, 2016 16:57, "Larry Martell" wrote:
> Anyone here have any experience with pyinstaller?
On Wed, Jun 8, 2011 at 2:11 PM, Jason Tackaberry t...@urandom.ca wrote:
On 11-06-07 07:29 PM, Tom Brown wrote:
Any suggestions will be appreciated.
Why are you calling PyEval_ReleaseLock() in the CmdThread constructor?
This looks suspicious.
Also, I don't see where CmdThread::lock
Hi guys!
I am trying to build a C++ application that uses pthreads and embedded
python. I've simplified the problem down so that the Python code is a single
class that subclasses from Queue. The main thread of the C++ application
adds to the queue. A worker thread in the C++ application reads
On Mon, 2008-01-21 at 01:57 -0800, GHUM wrote:
What am I missing? any hints?
I use psycopg2 all the time on windows. I use the binary installer
instead of source. Works great for me.
-Tom
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 2008-01-07 at 11:57 -0200, Guilherme Polo wrote:
2008/1/7, Gerardo Herzig [EMAIL PROTECTED]:
Hi all. Im trying to read a binary data from an postgres WAL archive.
If i make a
xfile = open('filename', 'rb').xreadlines()
line = xfile.next()
i see this sort of thing:
On Thu, 2007-11-15 at 18:09 +, John Walsh wrote:
Hi,
I'd like to write a python script to control Google Earth,
and I've read that Google Earth provides a COM api, and that
Python has a COM module 'pythoncom'.
I think what you are looking for you can download from here:
On Thursday 13 September 2007 14:59, Michael R. Copeland wrote:
I've decided that Python is a language/environment I'd like to learn
(I've been a professional programmer for 45+ years), but I really don't
know where and how to start! I have a number of books - and am buying
some more - but
On Monday 10 September 2007 19:52, [EMAIL PROTECTED] wrote:
Kindof a poll, kindof curiosity...
What is your favorite python - database combination? I'm looking to
make an app that has a local DB and a server side DB. I'm looking at
python and sqlite local side and sql server side.
Any
On Thursday 06 September 2007 14:32, windandwaves wrote:
Can someone tell me why I should learn python? I am a webdeveloper,
but I often see Python mentioned and I am curious to find out what I
am missing out on.
Ease of develpment. I write everything I can in python. If I can't do it in
On Thursday 06 September 2007 16:15, Larry Bates wrote:
I'm trying to learn about subclassing new style classes and the first
project I went to do needs to subclass zipfile to add some methods.
Why does this:
import zipfile
class walkZip(zipfile):
pass
if __name__ == __main__:
On Thursday 06 September 2007 16:01, windandwaves wrote:
Hmmm, thank you all for your replies. I will do some research on the
net (i did some already, but because I am really not much of a
programmer, it is often too detailed for me). I have limited time,
but it does sound like something to
On Thursday 06 September 2007 15:29, windandwaves wrote:
On Sep 7, 9:50 am, James Stroud [EMAIL PROTECTED] wrote:
Seewww.python.org. Trust us all when we say that its the best.
I get that feeling - yes. Question is:
1. what is it good for?
2. why is it so good?
I would love to hear some
On Thursday 06 September 2007 15:44, Torsten Bronger wrote:
Hallöchen!
Tom Brown writes:
[...] Python has been by far the easiest to develop in. Some
people might say it is not real programming because it is so
easy.
I can't believe this. Have you really heard such a statement?
Yes
Hi,
I have a windows application, written in delphi, that communicates to our
devices using raw ethernet frames. I am trying to port this application to
linux using python. However, when I try to open a socket, I get this error:
File /home/tbrown/projects/discovery/trunk/comm.py, line 9, in
On Monday 14 August 2006 20:43, Sulsa wrote:
On Tue, 15 Aug 2006 03:37:02 -
Grant Edwards [EMAIL PROTECTED] wrote:
On 2006-08-15, Sulsa [EMAIL PROTECTED] wrote:
I want to fill only one smiple form so i would like not to use
any non standard libraries.
Then just send the HTTP
On Wednesday 02 August 2006 16:02, Tom Brown wrote:
I've written a python app that r/w eight serial ports to control eight
devices using eight threads. This all works very nicely in Linux. I even
put a GUI on it using PyQt4. Still works nicely.
Then I put the app on on a virtual Windows
Hey people,
I've written a python app that r/w eight serial ports to control eight devices
using eight threads. This all works very nicely in Linux. I even put a GUI on
it using PyQt4. Still works nicely.
Then I put the app on on a virtual Windows machine running inside of vmware on
the same
Hi,
I thought it would be nifty to create a class that created other classes for
me. The method below shows what I would like to do. The problem is that the
class the method creates is local to the method. Is it possible to make the
class visible in the global scope so I can import the module
On Wednesday 02 November 2005 14:10, Zlatko Matić wrote:
Hello.
I was trying to install PygreSQL and psychopg2 in order to use python
as front-end for PostgreSQL, on WIndows XP. When I tried to install
by calling setup.py from command prompt (setup.py install), in both
cases I had the same
On Thursday 22 September 2005 05:52, Nico Grubert wrote:
Does f = open('/tmp/myfile', 'w') overwrite the existing file or
does f.writelines('456') replace the first line in the existing file?
Here's an excerpt from open.__doc__
The mode can be 'r', 'w' or 'a' for reading (default),
I need to chain together three linux commands and get the final output. I read
the documentation for Popen in the subprocess module for replacing the shell
pipe line. I followed the example and keep getting a 0 where I should be
getting a 1.
I am trying to do this:
grep Sep 22
On Saturday 02 July 2005 10:55, Nathan Pinno wrote:
Brief question for anyone who knows the answer, because I don't. Is
there anyway to make Python calculate square roots?
from math import sqrt
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday 08 February 2005 16:41, Tom Brown wrote:
Hi,
I created a win32 service for XPPro called N4010ATestService.py (see
below). The service runs as a particular user with administrative rights.
It starts a thread that creates a simple socket server
(N4010ASocketServer.py -- also below
On Wednesday 09 February 2005 10:48, David Bolen wrote:
Tom Brown [EMAIL PROTECTED] writes:
Well, I have found that it works if I launch the client on the same
machine as the service. It will not work from a remote machine. Any
ideas?
Since you mentioned Xp, could any of it's built
Hi,
I created a win32 service for XPPro called N4010ATestService.py (see below).
The service runs as a particular user with administrative rights. It starts a
thread that creates a simple socket server (N4010ASocketServer.py -- also
below) that just waits for 20 character string. When I run
Hi,
I have what seems to be a simple problem. But I can not for the life of me
find a way to send an integer over a socket. The send method will only accept
strings. Here is what I am trying to do:
testmessage = 'test message'
msglen = len(testmessage)
sock.send(msglen)
sock.send(testmessage)
On Friday 04 February 2005 18:27, Tom Brown wrote:
Hi,
I have what seems to be a simple problem. But I can not for the life of me
find a way to send an integer over a socket. The send method will only
accept strings. Here is what I am trying to do:
testmessage = 'test message'
msglen = len
29 matches
Mail list logo