On Friday, February 24, 2017 at 11:48:22 AM UTC-8, MRAB wrote:
> On 2017-02-24 18:54, kar6...@gmail.com wrote:
> > I have a task to search for multiple patterns in incoming string and
> > replace with matched patterns, I'm storing all pattern as keys in dict and
> > replacements as values, I'm us
Dear All,
In Php the following headers base we can clean
the cache in the url
"header('Cache-Control: no-store, no-cache,
must-revalidate'); "
I want to know Php equivalent headers in Python-cgi
If any know regarding this kindly mail me.
regards,
Prabahar
__
Dear All,
In Php the following headers base we can clean
the cache in the url "header('Cache-Control:
no-store, no-cache, must-revalidate'); "
I want to know Php equivalent headers in Python-cgi
If anybody know regarding this kindly mail me.
regards,
Prabahar
__
Dear All,
I am using python2.4 and Mysql 4.0.20. Now I am
want to connect python and mysql. I have problem to
install Mysql-python-1.2.0 interface into my machine.
When I try to install this interface the following
error restrict to install fully.
/System/Links/Executables/ld: cannot find
Dear All
After installation of Mysql-Python Interface.
I try to import MySQLdb but I got below error
How to correct this error.
regards
Praba
>>> import MySQLdb
Traceback (most recent call last):
File "", line 1, in ?
File "MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError:
Dear All,
Normally we can send mail using
telnet in linux. In the following way
[~user]telnet Ipaddress 25
mail from: [EMAIL PROTECTED]
250 o.k(response of from commandline)
rcpt to: [EMAIL PROTECTED]
250 o.k(response of from commandline)
data
354 go ahead(response of from commandline)
Hello
Dear all,
Is there any php equivalent
move_uploaded_file($source_path, "$upload_dir/$name");
function in python to
upload a file to server? Kindly give me
answer.
regards
Prabahar
__
How much free photo storage do
Dear All,
I have doubt regarding file uploading. When we
upload a file to the remote server we can get file
type through file extentions. How we can find out file
type if a file doesn't have any extentions ?
with regards
PRabahar
_
Dear All,
In Php we can limit the uploading file size
by php.ini configuration file. But In python what
way we can limit the file uploading size.
kindly let me know.
regards
Prabahar
__
How much free photo storage d
Dear All,
I am using Python 2.4 in the linux platform.
At present I am working on webbased file manager.
When I try to upload a file from the linux cgi
script easily fetch the file name by the
filefield.filename. But When I try to upload
a file from the windows machine It won't
retrieve the
Dear All,
Can any one let me know? How to build
email in python? with some some examples.
regards
Prabahar
___
Too much spam in your inbox? Yahoo! Mail gives you the best spam protection for
FREE! http://in.mail.yaho
Dear All,
I have doubt in python cgi script. I describe
that doubt with below code
import cgi
form = cgi.FieldStorage()
passwd = form['passwd'].value
print passwd
But Now I want to assign some value to form['passwd']
field value
form['passwd'] = 'surese'
Now If I try to print
print form['pas
--- Fuzzyman <[EMAIL PROTECTED]> wrote:
>
> praba kar wrote:
> > Dear All,
> > I have doubt in python cgi script. I describe
> > that doubt with below code
> > import cgi
> > form = cgi.FieldStorage()
> > passwd = form['passwd'].valu
Dear All,
I want to know difference between
Python-cgi and Perl-cgi and also I want
to which one is efficient from the performance.
regards
Prabahar
___
Too much spam in your inbox? Yahoo! Mail gives you the best spam p
Dear All,
I am new to python world. I have pasted my code
which I used it to build rfc822 format mails for
webbased mailing system task(which is like
to yahoo.com web interface). Now I am asking some
suggestions and guidence regarding this below code.
Still What way I can improve this code
Dear All,
Python 2.3 creates byte code with *.pyc
extention. But Python 2.4 creates bytes code with
*.pyo. Is there any difference between *.pyc
and *.pyo?.
Actually After python compiled a program
then that program will run from the *.pyc byte
code. If I delete that byte code what
Dear All,
I want to know the link between c and python.
Some people with C background use Python instead
of programming in C.why?
regards
Prabahar
Send a rakhi to your brother, buy gifts and win
Dear All,
I want to know the link between c and python.
Some people with C background use Python instead
of programming in C.why?
regards
Prabaha
Send a rakhi to your brother, buy gifts and win att
Dear All,
I want to know the link between c and python.
Some people with C background use Python instead
of programming in C.why?
regards
Prabahar
Send a rakhi to your brother, buy gifts and win
--- James <[EMAIL PROTECTED]> wrote:
> > Some people with C background use Python instead
> > of programming in C.why?
>
> Becuase it is much more efficient.
>
> -James
What why it is more efficient. Kindly let me
know with some details.
regards
Prabahar
Dear All,
I want to know about Modules and packages.
I can understand about Modules but I cannot understand
about Packages. Kindly let me
know about Packages with small example.
I can understand conceptually but I don't know
how to write programmatically.
regards
Prabahar
Dear All,
I know how to use modules. But I want to
know how to create package. Can any one let me
know how to write package through small
specimen code.
regards
PRabahar
Send a rakhi to your brother
Dear All,
I am working in web based email system project.
Here I try to build email message
from scratch. I used below code to build email
message
msg = email.MIMEBase('text','html')
msg['Return-Path'] = user+'@'+domain
msg['Date'] = formatdate(localtime=1)
msg['Subject'] =
Dear All,
I am working in web based email system project.
Here I try to build email message
from scratch. I used below code to build email
message
msg = email.MIMEBase('text','html')
msg['Return-Path'] = user+'@'+domain
msg['Date'] = formatdate(localtime=1)
msg['Subject'] = s
--- Sybren Stuvel
<[EMAIL PROTECTED]> wrote:
> praba kar enlightened us with:
> > This code will build plain email message properly.
>
> It's not a plain email message. It's an html email
> without a plain
> text part. Highly annoying to many people.
>
&
--- Sybren Stuvel
<[EMAIL PROTECTED]> wrote:
> Steve Holden enlightened us with:
> > It's obvious you aren't using that EXACT code,
> because it doesn't
> > formulate a three-paragraph message. So the bit we
> really need to
> > see is how you capture and formulate the argument
> to set_payload()
--- "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> That is not what Sybren requested - we need the
> message text. If you
> send html, make sure your paragraphs are html
> paragraphs (enclosed in
> -tags) and not pure whitespace, as html ignores
> these.
>
I am sending text message as a paragra
Dear All,
I am new to Python. I want to know how to
work with ternary operator in Python. I cannot
find any ternary operator in Python. So Kindly
clear my doubt regarding this
__
Yahoo! Messenger
Show us what our next emoticon should look
Dear All,
I am new to Python. I want to know how to
work with ternary operator in Python. I cannot
find any ternary operator in Python. So Kindly
clear my doubt regarding this
With regards,
Prabahar
__
Do you Yahoo!?
Yahoo! Mail - Helps p
Dear all,
I want to parse the system functions output
but I couldn't do it. Kindly assist me in this
task.
eg) bytesused = os.system('du -sh /Users/enmail')
if I print this bytesused variable the output of
bytesused variable is the below
14M /Users/enmail
0
Now From this Output I want
Dear All,
I have doubt regarding main function in
Python. In Python we can create a function
and we can call a function directly.
(eg:)
def test():
print 'main function test'
I can call this function the following way
eg) test()
So why we need the below way of calling a
function?
if __
Dear All,
I am new to Python I want to know how to
change a time into timestamp
eg "Fri, 8 Apr 2005 09:22:14 +0900" like format
date I want to change as a timestamp.
I have used below code to get timestamp
import time
time.strptime(v,'%a, %d %b %Y %X +0900')
function. This function wil
Dear All
In Php we can find in_array() function
which function is mainly useful to check
whether a specific value is exist in the array
or not.
But In python In cannot find any function
like that. I want to check a list have specific
value or not. So If any one know regarding this
mail me
Dear All,
In Php strtotime() will change a date
string into timestamp. I want to know which
python function will change a date string
into timestamp.
Date string format is below
Fri, 8 Apr 2005 09:22:14 +0900
regards
Prabahar
__
--- Michael Hoffman <[EMAIL PROTECTED]> wrote:
> praba kar wrote:
>
> > In Php strtotime() will change a date
> > string into timestamp. I want to know which
> > python function will change a date string
> > into timestamp.
>
> What do you mea
Dear All,
I am new to Python. I am in need of
some sorting functions (eg) numerical sorting
functions and alphapetical sorting functions.
I have searched through net But I cannot
find any regarding this so If anyone know
regarding this. Kindly mail me as early as possible
with regards
Dear All,
I have doubt regarding sorting. I have a list
that list have another list (eg)
list = [[1234,'name1'],[2234,'name2'],[0432,'name3']]
I want to sort only numeric value having array field.
How I need to do for that.
with regards
Prabahar
__
Dear all,
In Php array_slice function base
we can print array contents as per our desire
eg)
$a = array(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15);
$arr = array_slice($a,10,10);
this function will print 11,12,13,14,15
But I try to print the same thing in python
using slice operator
eg) print a[1
Dear All,
I am using python 2.3.3 version. If I try to
import MySQLdb. Here I found " the following
error"
importError: No module named MySQLdb.
So what I need to do for this ?. How I need to
install this MySQLdbo.
praba
___
Dear All,
In Python what is equivalent to goto statement
regards,
praba
__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
http://mail.python.org/mailman/listinfo/python-list
Dear All,
I want to know the difference between calling
a function directly and through main function
compose()
if __name__ == __main__:
compose()
Yahoo! India Matrimony: Find your life partner online
Go to: htt
Dear All,
In Php If I send a command to system function
then It will return 1 on success and 0 on failure. So
based upon that value I can to further work.
But In Python If I send a command to system
function then It will return 0 only for both
conditions(success and failure). So What
--- Robert Kern <[EMAIL PROTECTED]> wrote:
> praba kar wrote:
> > Dear All,
> >
> > In Php If I send a command to system function
> > then It will return 1 on success and 0 on failure.
> So
> > based upon that value I can to further work.
> >
Dear all,
I have doubt regarding python Compilation.
I want to know whether Python is compiler language
or interpreted language. If Python is interpreter
language why compilation is there.
with regards
Yahoo! Indi
Dear All,
I am doing Python-cgi Project in my company.
To connect My sql database(Mysql 4.1.11.) into
Python(2.3.3) cgi. I have installed
MySQL-python-1.2.0. After installation of
MySQL-Python-1.2.0 I try import
MySQLdb module. It raised the following error
>>import MySQLdb
Traceback (m
Dear all,
I have a project that is conversion
of Php Web applications into Python cgi
applications. In my mind compare python-cgi
php is better. But I want to know clearly.
which one is better. so kindly show me the
advantages of python-cgi compare to Php
regards
PRaba
__
Dear All,
In Php we can print RFC 2822 formatted date by
date('r') with parameter r. Then it will print the
below format date.
"Thu, 7 Apr 2005 01:46:36 -0300".
I want to print same RFC 2822 format in python. Is it
possible in python? . If possible kindly mention the
function related to print
Dear All,
In Php I can use strip_tags() function to strip out
all html tags. I want to know that strip_tags()
equivalent function in Python.
regards
praba
Yahoo! India Matrimony: Find your life partner online
Go to: http:
Dear All,
Is there any rules and regulations to use
try/except in python? Can any one explain to me when
I need to use try/except and when we I need not use
try/except?. This Question mainly for to maintain
code integrity in my project. But I know
how to use try/except
regards
Praba
Dear All,
In Php we can do all the mailing operations like
sending a text as a message, adding attachment to a
mail, adding additional headers and so on using
Mail_mime class. I want to know like that class or
modules in Python.
I already gone through MimeWriter,smtplib and so
on. But I
Dear All,
I have doubt regarding mail sending smtplib
module. The below code is I used to send a mail.
##
import email.Message
import email.Utils
import mimetypes
import os,string
fromAddr="[EMAIL PROTECTED]"
toAddr=
["[EMAIL PROTECTED]","[EMAIL PR
Dear All,
Is it possible to send a message as a mail
with out smtplib module? If you find out any module
for mail sending(without smtplib) kindly mail me.
regards
Prabahar
Yahoo! India Matrimony: Find your life
--- Tim Williams <[EMAIL PROTECTED]> wrote:
> - Original Message -
> From: "John Abel" <[EMAIL PROTECTED]>
>
>
> > praba kar wrote:
> >
> > >Dear All,
> > >
> > > Is it possible to send a message as a
&g
Dear All,
In Php we can send mail by Mail::Factory's
send method. Here php using send method instead
of using any smtp module like that I want to know
that kind of python module
Yahoo! India Matrimony: Find your lif
Dear All,
From this below answer I got clear
idea for mail sending Module. I am expecting
this kind of answer . Thank you
for your immediate response.
--- Mike Meyer <[EMAIL PROTECTED]> wrote:
> praba kar <[EMAIL PROTECTED]> writes:
> > In Php we can bu
Dear All,
From this below answer I got clear
idea for mail sending Module. I am expecting
this kind of answer . Thank you
for your immediate response.
--- Mike Meyer <[EMAIL PROTECTED]> wrote:
> praba kar <[EMAIL PROTECTED]> writes:
> > In Php we can bu
Dear All,
email.Message module base we can build message
for mailing services which is like php Mail_mime
module. In php Mail_mime module willautomatically
build all the header fields like content-type,
content-Transfer-encoding, Return-Path and so on for
a mailing messages. I want to know th
Dear All,
I have doubt regarding date string to time
conversion function. In Python I cannot find flexible
date string conversion function like php strtotime. I
try to use following type
function
1) parsedate function failed if a date string
like below format "16-MAY-2005 01:26"
2)parsedate
Dear All,
Can any one guide me how to get python
related jobs?. Actually Now I am
in Python web programming field.
I have technical knowledge about Python,
ZOPE and Twisted-web(Twisted Python) with 1 year exp..
Yahoo! Ind
Dear All,
I have one doubt. Is there python.ini
file like php.ini in Php?
Actually php.ini file controls many aspects of
PHP's behavior. The following details of php.ini
will explain about it.
max_execution_time = 5000 ; Maximum execution time
of each script, in seconds (UN
Dear All,
I have doubt regarding headers in cgi
programming. If I gives "Content-Type:text/plain"
then I try to print html contents. Is right or wrong
after giving content-type: text/plain?
regards
Prabahar
___
Dear All,
I have doubt regarding headers in cgi
programming. If I gives "Content-Type:text/plain" then
I try to print html contents. Is right or wrong after
giving content-type: text/plain?
regards
Prabahar
__
H
Dear All,
I have doubt regarding headers in cgi
programming. If I gives "Content-Type:text/plain"
then I try to print html contents. Is right or wrong
after giving content-type: text/plain?
regards
Prabahar
__
Dear all,
Is it possible to right align
the Ipaddress? Normally we can
right align the list of numbers
by %3u or %7u. How we can right
align the Ipaddress?
I expects below format output
eg 203.199.200.0
203.33.20.0
with regards,
Prabahar
_
Dear All,
The following way of popen function usage is
wrong or not kindly give me answer regarding this
time = os.popen("echo %s | tai64nlocal" %
line[2]).read()
Actually here I didn't use any file handler and
I didn't close file handler.
regards
Prabahar
65 matches
Mail list logo