Sander Sweers sander.sweers at gmail.com writes:
Hello Sander,
The r means the string is a raw string.
The real issue is what Alan pointed out. The backlash is an escape
character and if you want to use it in a string should be escaped by a
backlash.Using a raw string will give the same
2009/4/13 Dominique mydom...@gmail.com:
What surprises me is that before calling the subprocess.Popen() method, I
normalized the path using:
filename = os.path.normpath(filename).
It does.But do you also call os.path.normpath for the program path?
See below an example.
import os
path =
Daniel daniel.chaow...@gmail.com wrote
Caveat, I know nothing about SUDS.
rawByte =
PGh0bWw+PGhlYWQ+PG1ldGEgaHR0cC1lcXVpdj0iY29udGVudC10eXBlIiBjb2
the problem is I need to convert the rawByte from string to bytes, then
explain it as text with encoding (like UTF-8).
A string is a
Wayne Watson sierra_mtnv...@sbcglobal.net wrote
Basically, what I would like to do is to take a list like:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
and convert it to;
[['0x0', '0x1', '0x2', '0x3', '0x4'], ['0x5', '0x6', '0x7', '0x8',
'0x9']]
What is the basis of this conversion?
Why did you split
Sander Sweers sander.sweers at gmail.com writes:
2009/4/13 Dominique mydomdom at gmail.com:
What surprises me is that before calling the subprocess.Popen() method, I
normalized the path using:
filename = os.path.normpath(filename).
It does.But do you also call os.path.normpath for the
(also cc tutor)
Thank you, Alan. I found the solution.
the type of rawByte in SOAP is
s:element minOccurs=0 maxOccurs=1 name=rawByte type=s:base64Binary
/
so I need to convert it back to ascii with binascii module, like:
btxt = binascii.a2b_base64(page.rawByte)
then btxt can be treated as a
Alan Gauld wrote:
Wayne Watson sierra_mtnv...@sbcglobal.net wrote
Basically, what I would like to do is to take a list like:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
and convert it to;
[['0x0', '0x1', '0x2', '0x3', '0x4'], ['0x5', '0x6', '0x7', '0x8',
'0x9']]
What is the basis of this
Sometime ago, one of my posts brought a response brief exchange on event
handling*. Where might I find more about event handling with respect to
the keyboard, and particularly with a mouse. In the latter case, I'm
interested in finding the pixel position of the mouse on a canvas.
* I see from
I see between Alan's site and the NM Tech Tkinter manual, that's good
coverage for what I need.
Wayne Watson wrote:
Sometime ago, one of my posts brought a response brief exchange on
event handling*. Where might I find more about event handling with
respect to the keyboard, and particularly
Wayne Watson sierra_mtnv...@sbcglobal.net wrote
about other sources. The few books I have on Python seem to avoid the
subject. Perhaps it goes by another name in Python-ville.
No, its just that GUI programming is, relatively, a minority interest for
Python programmers and event handling is a
On Mon, Apr 13, 2009 at 1:22 PM, Gregor Lingl gregor.li...@aon.at wrote:
Wayne Watson schrieb:
Sometime ago, one of my posts brought a response brief exchange on event
handling*. Where might I find more about event handling with respect to the
keyboard, and particularly with a mouse. In the
I am reading python since last 15 days ,read some basics of python , Last
night was reading about the OOPS concepts ,but getting some problems , going
to discuss with you people.
MY CODE :
I made a class with the name student that prints simply name of the student
as well as his roll_no also,
hi, and welcome to Python! my comments below...
I made a class with the name student that prints simply name of the student
as well as his roll_no also, pasting code here .
sounds pretty straightforward
class student:
def __init__(self,name,roll_no):
self.name=name
I want to send an email from a google mail account so that the sender
name will be 'User Name' instead of 'usern...@gmail.com' in the inbox.
this is the code I use: (I'm using python 2.5)
import smtplib
g=smtplib.SMTP('smtp.googlemail.com')
g.ehlo();g.starttls();g.ehlo()
George Wahid wrote:
I want to send an email from a google mail account so that the sender
name will be 'User Name' instead of 'usern...@gmail.com' in the inbox.
this is the code I use: (I'm using python 2.5)
import smtplib
g=smtplib.SMTP('smtp.googlemail.com')
FYI: Using python 2.5 with the MySQLdb module.
I need to be able to raise an exeception on a MySQL warning.
I have used my own class for years that wraps the MySQLdb module,
but never did build in a feature that would let me 'tell' my class
instances to raise an except for a warning:
Example:
I'm
On Mon, Apr 13, 2009 at 6:55 PM, George Wahid geoter...@gmail.com wrote:
I want to send an email from a google mail account so that the sender
name will be 'User Name' instead of 'usern...@gmail.com' in the inbox.
this is the code I use: (I'm using python 2.5)
import smtplib
On Mon, Apr 13, 2009 at 7:22 PM, Tim Johnson t...@johnsons-web.com wrote:
FYI: Using python 2.5 with the MySQLdb module.
I need to be able to raise an exeception on a MySQL warning.
I have used my own class for years that wraps the MySQLdb module,
but never did build in a feature that would
On Monday 13 April 2009, Kent Johnson wrote:
From a quick look at MySQLdb-1.2.2, it seems to be using the python
std lib module warnings to report warnings.
http://docs.python.org/library/warnings.html
From the warnings docs, it seems like warnings.simplefilter() is what
you are
Hello everybody!
I'm working on my code repository (svn) auto-backup script which get hotcopy
of svn repository
directory to a directory named by date in same location where script file
is, it executed by a timer
program every 00:00 clock. Everything works fine when I'm testing by double
click it.
Thanks Kent for this valuable information.
My problem is I dont know how to send/receive a file using socket.
How to get the filename specifically.
Thanks
Shiv
Date: Fri, 10 Apr 2009 06:56:34 -0400
Subject: Re: [Tutor] How to write server which listens to specific port
From:
Hi tutors, I am studying classes a bit, and am having trouble with this
concept and would appreciate your help!
class A:
def __init__(self, name, value=1):
self.name = name
self.value = value
And now I want a subclass, one that overrides the value=1 and defaults to
value=2,
On Tue, Apr 14, 2009 at 11:27 AM, Eric Dorsey dors...@gmail.com wrote:
Hi tutors, I am studying classes a bit, and am having trouble with this
concept and would appreciate your help!
class A:
def __init__(self, name, value=1):
self.name = name
self.value = value
And
I am new in python , so need a good books , previously read python Bible and
swaroop but not satisfied .
so tell me good books in pdf format those contents good problems also
___
Tutor maillist - Tutor@python.org
Take a look at Useless python http://www.uselesspython.com/
On Tue, Apr 14, 2009 at 10:37 AM, sudhanshu gautam
sudhanshu9...@gmail.comwrote:
I am new in python , so need a good books , previously read python Bible
and swaroop but not satisfied .
so tell me good books in pdf format those
25 matches
Mail list logo