Hi all,
I have a problem in converting the pixel data (read from a string and
written to a file using fromstring command in PIL ).
The file handle of this file is called buffer. Now, when I tried to open the
file as an image file but it didnt work.
Then I read the documentation of PIL and found thi
> Message: 1
> Date: Sun, 17 Aug 2008 11:33:28 +0200
> From: "Robert Johansson" <[EMAIL PROTECTED]>
> Subject: [Tutor] unsupported characters
> To:
> Message-ID: <[EMAIL PROTECTED]@math.umu.se>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi, I have problems using characters from the Swed
On Mon, 2008-08-18 at 17:15 +0700, Lie Ryan wrote:
> > Message: 1
> > Date: Sun, 17 Aug 2008 11:33:28 +0200
> > From: "Robert Johansson" <[EMAIL PROTECTED]>
> > Subject: [Tutor] unsupported characters
> > To:
> > Message-ID: <[EMAIL PROTECTED]@math.umu.se>
> > Content-Type: text/plain; charset="is
On 8/18/08, Ashish Sethi <[EMAIL PROTECTED]> wrote:
> Hi all,
> I have a problem in converting the pixel data (read from a string and
> written to a file using fromstring command in PIL ).
> The file handle of this file is called buffer. Now, when I tried to open the
> file as an image file but it
ly)
TIFF
WAL (read only)
WMF (identify only)
XBM
XPM (read only)
XV Thumbnails
> Can any one please help in solving my problem??
> -- next part --
> An HTML attachment was scrubbed...
> URL:
> <http://mail.python.org/pipermail/tutor/attachments/20080818/e7a1c2bd/attachment-0001.htm>
>
> --
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
gt; IM
> IMT (read only)
> IPTC/NAA (read only)
> JPEG
> MCIDAS (read only)
> MIC (read only)
> MPEG (identify only)
> MSP
> PALM (write only)
> PCD (read only)
> PCX
> PDF (write only)
> PIXAR (read only)
> PNG
> PPM
> PSD (read only)
> SGI (read only)
> SPIDER
> TGA (read only)
> TIFF
> WAL (read only)
> WMF (identify only)
> XBM
> XPM (read only)
> XV Thumbnails
>
> > Can any one please help in solving my problem??
> > -- next part --
> > An HTML attachment was scrubbed...
> > URL:
> >
>
> <http://mail.python.org/pipermail/tutor/attachments/20080818/e7a1c2bd/attachment-0001.htm>
> >
> > --
>
>
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
t; GIF
> GRIB (identify only)
> HDF5 (identify only)
> ICO (read only)
> IM
> IMT (read only)
> IPTC/NAA (read only)
> JPEG
> MCIDAS (read only)
> MIC (read only)
> MPEG (identify only)
> MSP
> PALM (write only)
> PCD (read only)
> PCX
> PDF (write only)
> PIXAR
Is there a way to put a timestamp on an FTP download in Python without using
any python library or module?
Thanks for any help!!
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Hi folks!
I hope I'm in the right place to ask this question. I'm new to Python and
have been working through some tutorials and have made it to the GUI
creation stage. All I was hoping to do with the code below, was to open a
"secondary" window and have some text end up on a text_ctrl, but I ge
I wanted to use the urllib2.https_open() but it said the module did not
exist. The manual says I need SSL support installed. I've done some
searching.. but I haven't been able to find an official implementation of
SSL support for python 2.5 for windows. If its required for urllib2 I assume
its par
On Mon, Aug 18, 2008 at 9:15 AM, swati jarial <[EMAIL PROTECTED]> wrote:
> Is there a way to put a timestamp on an FTP download in Python without using
> any python library or module?
>
> Thanks for any help!!
What exactly are you trying to accomplish?
The file system will stamp the file with the
On Aug 18, 2008, at 9:13 AM, Adrian Greyling wrote:
def MainToSecond(self, event): # wxGlade:
MyMainFrame.
MySecondFrame(self).Show()
MySecondFrame.text_ctrl_2.SetValue("This text was generated
from the 'MainFrame' window")
The expression MySecondFrame(self) creates a n
Forwarding to the list. Please always reply to the list.
--
Bob Gailer
Chapel Hill NC
919-636-4239
When we take the time to be aware of our feelings and
needs we have more satisfying interatctions with others.
Nonviolent Communication provides tools for this awareness.
As a coach and train
Hi all,
I am using the pwd lib where I am codeing things like ...
gid = pwd.getpwnam(apache2_user)[3]
where as I would like to code it as ...
gid = pwd.getpwnam(apache2_user)[pwd.pw_gid]
but I get
gid = pwd.getpwnam(apache2_user)[pwd.pw_gid]
AttributeError: 'module' object has no attribute 'p
Forwarding to the list. Please always reply to the list.
It seems like you need a course on the fundamentals of programming!
What output did you get?
How does it differ from what you want?
You define 2 functions but never call them. So they will never run.
Do you know the difference?
I will
On Mon, Aug 18, 2008 at 4:25 PM, bob gailer <[EMAIL PROTECTED]> wrote:
> Forwarding to the list. Please always reply to the list.
>
> --
> Bob Gailer
> Chapel Hill NC 919-636-4239
>
> When we take the time to be aware of our feelings and needs we have more
> satisfying interatctions with others.
>
2008/8/19 dave selby <[EMAIL PROTECTED]>:
> Hi all,
>
> I am using the pwd lib where I am codeing things like ...
>
> gid = pwd.getpwnam(apache2_user)[3]
>
> where as I would like to code it as ...
>
> gid = pwd.getpwnam(apache2_user)[pwd.pw_gid]
>
> but I get
>
> gid = pwd.getpwnam(apache2_user)[p
On 8/17/08, Robert Johansson <[EMAIL PROTECTED]> wrote:
> Hi, I have problems using characters from the Swedish language. I tried
the
> following in IDLE under MacOS X leopard (running Python 2.5.1) :
> S='รถ'
> Displaying error message: "unsupported characters in input".
To use non-ascii charac
SOrry, just started python programming. I have so much to learn still.
My output was
What is the value of xmin?-2.5
What is the value of dx?0.5
What is the value of nx?11
-2.5
-2.0
-1.5
-1.0
-0.5
0.0
0.5
1.0
1.5
2.0
2.5
Please choose a scale for your plot50
*
I think I called the functions now..
I dont think that this program uses the gaussian function, am I in the right
wavelength?
from __future__ import division
import math
a=raw_input("What is the value of xmin?")
b=raw_input("What is the value of dx?")
c=raw_input("What is the value of nx?")
xmin=float(a)
dx=float(b)
nx=int(c)
n=i
On Mon, Aug 18, 2008 at 12:40 PM, xbmuncher <[EMAIL PROTECTED]> wrote:
> I wanted to use the urllib2.https_open() but it said the module did not
> exist.
I'm not aware of a urllib2.https_open() function. I think you just
give an https url to urllib2.urlopen(). Can you show us your actual
code and
On Mon, Aug 18, 2008 at 6:17 PM, Robert Johansson
<[EMAIL PROTECTED]> wrote:
> If
> there are any Mac users who read this, which editor would you recommend for
> Mac?
TextMate is very popular, it is my choice. For Python programs that
require console input, run them in Terminal. Personally I don't
optimum wrote:
SOrry, just started python programming. I have so much to learn still.
My output was
What is the value of xmin?-2.5
What is the value of dx?0.5
What is the value of nx?11
-2.5
-2.0
-1.5
-1.0
-0.5
0.0
0.5
1.0
1.5
2.0
2.5
Please choose a scale for your plot50
*
I think I called th
On Mon, Aug 18, 2008 at 8:44 PM, Kent Johnson <[EMAIL PROTECTED]> wrote:
> On Mon, Aug 18, 2008 at 12:40 PM, xbmuncher <[EMAIL PROTECTED]> wrote:
> > I wanted to use the urllib2.https_open() but it said the module did not
> > exist.
>
> I'm not aware of a urllib2.https_open() function. I think yo
I tried it just like both of you suggested and sent a req object straight to
urlopen. Here is my code:
import urllib2
url = 'https://url.com'
headers = {
'User-Agent' : 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)',
'Accept' :
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
I'm having trouble with OS X proxy settings and getting Python to
ignore them. I have multiple Python installations on my system:
/opt/local/bin/python (2.5.1)
/usr/local/bin/2.3
/opt/local/bin/2.4
/usr/bin/python244 (2.4.4)
/opt/local/bin/2.5
I've noticed that when using some of these version
26 matches
Mail list logo