Very cool! Thanks for doing this. I can't wait to dig into your cookbook.
Regards,
Dean Gonzales
-Original Message-
From: Python-announce-list
[mailto:python-announce-list-bounces+dean.gonzales=amd@python.org] On
Behalf Of Mike Driscoll
Sent: Wednesday, August 24, 2016 12:57
play()
File "/Volumes/dean_richardson/GoFlex Home Personal/Dean's
Code/Python3.x/Person.py", line 9, in display
(self.name, self.age))
TypeError: not all arguments converted during string formatting
>>>
---
I'm sure this is something simple, but I can't see it. Any help appreciated!
Regards,
Dean
--
http://mail.python.org/mailman/listinfo/python-list
ffset: 0x0005863d
Faulting process id: 0xa98
Faulting application start time: 0x01cae87cff98c7c4
Faulting application path: C:\Python26\pythonw.exe
Faulting module path: C:\Python26\DLLs\tcl85.dll
Report Id: a7a18c68-594e-11df-b65f-005056b55389
Thanks,
Dean Weimer
Ne
On Oct 29, 9:05 am, Jon Clements wrote:
> On 28 Oct, 21:55, Dean McClure wrote:
>
>
>
>
>
> > On Oct 28, 4:50 pm, Jon Clements wrote:
>
> > > On 28 Oct, 06:21, Dean McClure wrote:
>
> > > > Hi,
>
> > > > Just wondering how I ca
On Oct 28, 4:50 pm, Jon Clements wrote:
> On 28 Oct, 06:21, Dean McClure wrote:
>
>
>
>
>
> > Hi,
>
> > Just wondering how I can get theitems() command fromConfigParserto
> > not resort all the item pairs that it presents.
>
> > I am trying to get
Hi,
Just wondering how I can get the items() command from ConfigParser to
not resort all the item pairs that it presents.
I am trying to get it to read some data in order:
[Relay Info]
relay_name: IPC
relay_current_range: [60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100,
104, 108, 112, 116]
relay_cu
s yacc
instances.
Any help is appreciated and thanks in advance.
Dean
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 27 Apr 2009 04:22:24 -0700 (PDT), psaff...@googlemail.com wrote:
> I'm using the CSV library to process a large amount of data - 28
> files, each of 130MB. Just reading in the data from one file and
> filing it into very simple data structures (numpy arrays and a
> cstringio) takes around
Hello,
As the subject says how would I go about adding the lines to the beginning
of a text file? Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
As the subject says how would I go about adding the lines to the beginning
of a text file? Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I execute the following code:
try:
from math import *
import pylab as p
except:
print "Couldn't import all dependent libraries"
sys.exit()
dataLength = 100
data = [sin(2*pi*x/dataLength) for x in range(0,dataLength)]
p.plot(data)
p.show()
This produces a f
[cid:image9e02f1.JPG@63ab2305.a06442dd]
Is there a way for a python program start another python program, and then
continue, without waiting for the second program to finish?
os.startfile() seems to be what I want on windows, but I need it to work on
linux and mac as well.
Is there a function th
Hi all,
I'm just starting out in sockets/network programming, and I have a very
basic question...what are the 'security' implications of opening up a
socket? For example, suppose I've written a simple chat server and chat
client. The server opens a socket, listens on a port, and accepts inco
Hi all,
I'm running into some trouble using urllib.urlopen to grab a page from our
corporate intranet. The name of the internal site is simply http://web (no
www or com). I can use urlopen to grab a site like http://www.google.com
just fine. However, when I use urlopen to grab the internal
x27;m looking for more and potentially better ideas that will allow us
to offer an API to our customers without having to throw away or redo
a lot of the python code that we have already written.
Thanks in advance,
Dean
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for all the fast responses. I'm particularly a fan of the zip
method, followed closely by the xrange example. All, of course, are a lot
of help!
Thanks,
Dave
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I'm looking for a way to iterate through a list, two (or more) items at a
time. Basically...
myList = [1,2,3,4,5,6]
I'd like to be able to pull out two items at a time - simple examples would
be:
Create this output:
1 2
3 4
5 6
Create this list:
[(1,2), (3,4), (5,6)]
I want the f
I have a list of dictionaries where each dictionary defines, among other
things, a row and column number. So, my list might look like this:
[{'row':1, 'column':1, otherdata}, {'row':1, 'column':2, 'otherdata}...]
This data is passed to flash and used there to create a grid of objects that
are p
I am trying to use a MESH transform from the Python Imaging Library and am
having trouble defining my deformer object. What I want to do is map one
eight item tuple like
(x0, y0, x1, y1, x2, y2, x3, y3) to another set of points like
(x00, y00, x10, y10, x20, y20, x30, y30)
where (xn, yn) is a p
. The
majority of the suite is developed using Python.
For more information please see http://www.rms.co.uk/careers.htm ,call Phil
Golder / Dean Houghton on +44 (0) 1454 281265 or email [EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
> This looks like a correct description of the sources:
>
> In Image.py:
>
> elif method == PERSPECTIVE:
># change argument order to match implementation
>data = (data[2], data[0], data[1],
>data[5], data[3],
>data[4],
>data[6],
>data[7])
>
>
Okay, so here is the situation. I have need to do some on-the-fly image
creation. I have everything working great except for the last part of it,
applying a perspective type transform to the image. The transform will take
a rectangular 2D image and transform it to a 3D representation in 2D.
I am using minidom to parse a 20,000 line XML file. I have a few instances
where the number of child nodes of a particular node can be variable in
number. To access them I am doing something like the following...
xmldoc = minidom.parseString(r)
results = xmldoc.childNodes[0]
for myNode in res
I've been trying to make python a dynamic library. I downloaded Python
2.4.3 Final from the Python web site and I cannot get it to create the
library.
I've tried using the directive:
--enable-shared
and
--enable-shared=yes
and both of them had the same effect of creating a bunch of parts of
hanks for your help in advance,
Dean
--
http://mail.python.org/mailman/listinfo/python-list
to be sure. I will need to solder together my own devices, as even
though the patents have expired, the old devices are still encumbered
by trademarks. I'll get back to you in 20 years after I have removed
the last traces of evil intellectual property from my life.
So long commrad,
Dean G.
--
Tim Golden wrote:
> [Dean Allen Provins]
>
> | My Linux-based Python/Tkinter application runs nicely, and printing
> | works just fine (to a user-selected file, or an "lpr" device specified
> | in the Entry box). Alas, the user wants to run it under MS
> | Win, an
3) get the user to install UNIX printing services (which I found not
to be trivial when I had to do it once) and then printing will run much
as it does on UNIX/Linux.
Any thoughts or other ideas?
Regards,
Dean
Calgary
--
http://mail.python.org/mailman/listinfo/python-list
Hi
Duncan's example worked to a point. The line PyRun_String( "print x",
Py_file_input, dict, dict); print out the contents of x, but I don't want to
print x out. I want to be able to grab whateven the variable x contains so
that I can pass it on for further processing by the C++ application.
BTW
Hi Duncan
Your version of the app works apart from this part
else {
PyObject *rString = PyObject_Str(result);
if (rString==NULL) {
Py_DECREF(result);
PyErr_Print();
return;
}
printf( "The result is %s\n", PyStr
Hi
I spent the whole of yesterday trying the get the following C code to
execute
PyRun_String("def title();", Py_file_input, dict, dict);
PyRun_String("\treturn 'Foo Bar'", Py_file_input, dict, dict);
PyRun_String("x = title()", Py_file_input, dict, dict);
PyObject * result = PyRun_String("print
Hi
Is it possible to execute a whole script using the C API function
PyRun_String? At moment I load the script into a buffer. Then I get each
line of the script and pass it PyRun_String. This seems very inefficient. It
would be more efficient if I could pass the complete string buffer to
PyRun_Stri
Martin:
Martin Franklin wrote:
> Dean Allen Provins wrote:
>
>> Cameron:
>>
>> Cameron Laird wrote:
>>
>>> In article <[EMAIL PROTECTED]>,
>>> Dean Allen Provins <[EMAIL PROTECTED]> wrote:
>>>
>>>> I need to determ
Cameron:
Cameron Laird wrote:
> In article <[EMAIL PROTECTED]>,
> Dean Allen Provins <[EMAIL PROTECTED]> wrote:
>
>>I need to determine the size of a canvas while the process is running.
>>Does anyone know of a t
Cameron Laird wrote:
> In article <[EMAIL PROTECTED]>,
> Dean Allen Provins <[EMAIL PROTECTED]> wrote:
>
>>I need to determine the size of a canvas while the process is running.
>>Does anyone know of a t
I need to determine the size of a canvas while the process is running.
Does anyone know of a technique that will let me do that?
Thanks,
Dean
--
http://mail.python.org/mailman/listinfo/python-list
Hi
Thank you very much. It seems the version tar that is embedded in WinRAR is
broken. It gets as far as the Mac directory and then bombs out. The version
of tar that is bundled with CygWin worked just fine
--
Best Regards
John
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I downloaded what I thought was the source code from
http://www.python.org/2.4.2/python-2.4.2.tgz
--
Best Regards
John
--
http://mail.python.org/mailman/listinfo/python-list
Hi
That particular file doesn't include the implementation files for the core
modules. The platform specific directories only include two or three files.
Only the Mac directory contains any C code files
--
Best Regards
John
--
http://mail.python.org/mailman/listinfo/python-list
Hi
Does anybody know from where I can get a copy of the source for Python
V2.4.2. I downloaded what is reckoned to be the source code from
www.python.org, but is turns out to be the MacXOS version with the core
modules missing. The reason I am looking for the source code is so I can
make a debug b
Hi
Could somebody, please tell me where I can find information about embedding
Python into a C/C++ application. The example in the docs is rather simple. I
am looking for something a bit more complex and longer
--
Best Regards
John
--
http://mail.python.org/mailman/listinfo/python-list
4.1.25-1
>libdb4.2-devel 4.2.52-1
>
No, I did an install all at the top of the installation. Didn't know I
needed to specify libraries. If I select "install" for everything (that
is, all packages show "install") shouldn't this include the above?
-Dean
--
http://mail.python.org/mailman/listinfo/python-list
Jason,
Thanks for fixing this bug in Cygwin. Remember there was another
undefined variable for the Python build _bsd...
Best regards,
Dean
>On Mon, Jul 25, 2005 at 03:02:45PM -0700, [EMAIL PROTECTED] wrote:
>
>
>>Let me know when you have it solved.
>>
n build works.
Best regards,
Dean
>Dean,
>
>On Fri, Jul 22, 2005 at 05:11:45AM -0700, Dean N. Williams wrote:
>
>
>>I downloaded your new Cygwin from http://cygwin.com and tried to build
>>install Python/CDAT again. It appears to have built properly, but when
>>I
Right! Forgot to exit out of ALL Cygwin processes. This does work.
-Dean
Jason Tishler wrote:
>Dean,
>
>On Mon, Jul 25, 2005 at 11:27:16AM -0700, Dean N. Williams wrote:
>
>
>>I was able to run C:/cygwin/bin/ash.exe. This is good. In the
>>"ash.exe"
[snip]
I was able to run C:/cygwin/bin/ash.exe. This is good. In the "ash.exe"
window, I ran PATH=/bin rebaseall and received the same error:
"rebaseall: only ash processes are allowed .. Execute
'/bin/rebaseall' from ash."
-Dean
>If Cygwin's bin is n
d to run "ash", I got the error stating it
>>didn't know what "ash" was. Any help on this is appreciated.
>>
>>
>
>If Cygwin's bin is not in your Windows PATH, then give the full path to
>ash. For example:
>
>C:\Cygwin\bin\ash.exe
>
>Then start rebaseall is follows:
>
>$ PATH=/bin rebaseall
>
Thanks. I will try this and see if this gets around my problem.
Thanks again for any help on this
Best regards,
Dean
--
http://mail.python.org/mailman/listinfo/python-list
Jason,
>Dean,
>
>On Fri, Jul 22, 2005 at 05:11:45AM -0700, Dean N. Williams wrote:
>
>
>>I downloaded your new Cygwin from http://cygwin.com and tried to build
>>install Python/CDAT again. It appears to have built properly, but when
>>I try to execute, it r
Hi Jason,
To be more specific. If I try to import socket I get the
"ImportError: No module named _socket". What do I need to install from
Cygwin in order for this to work?
Thanks,
Dean
>
>
> Hi Jason,
>
>I downloaded your new Cygwin from http://cygwin.
everything.
Thanks in advance for your help and best regards,
Dean
--
http://mail.python.org/mailman/listinfo/python-list
Dear Jason,
Thanks for fixing this problem. I'm sure all the CDAT/Cygwin users
really appreciate it. I'll put the update on the CDAT web portal.
Best regards,
Dean
>Dean,
>
>On Tue, Feb 08, 2005 at 12:55:15PM -0500, Jason Tishler wrote:
>
>
>>On
ase I must be able to build my software. Can you tell me how to
get around this problem? Or can you tell me which cygwin mail list to
send my plea for help?
Thanks and best regards,
Dean
gcc -shared -Wl,--enable-auto-image-base -o gplot gplot.o cgm.o ccgm.o
utils.o io.o carray.o devices.o hl
Dear Jason,
The "$ TMP=/tmp rebaseall" command worked! Thank you. When a new
Cygwin is available w/ your changes please let me know...
Best regards,
Dean
On Tue, Feb 08, 2005 at 08:01:11AM -0800, Dean N. Williams wrote:
$ rebaseall
/usr/bin/rebaseall: line 70: [: too many
g works just fine. What is the
difference?
Thanks in advance and best regards,
Dean
Dean,
Please keep your replies on-list.
On Wed, Feb 02, 2005 at 05:14:21AM -0800, Dean N. Williams wrote:
I am trying to do the following according to your notes:
3. Due to issues with Cygwin
libtk8.4.a
libraries for use. But I don't think that Python is looking for this. If
you've built Python with Tcl/Tck, is it possible for you to send me
instructions on how you did it? Thanks in advance...
Best regards,
Dean
--
http://mail.python.org/mailman/listinfo/python-list
55 matches
Mail list logo