Re: how to send a json of yield list

2016-10-14 Thread meInvent bbird
when not to use queue, it is faster now while True: for ii in getcombinations(): item = ii print(item) sock.send(json.dumps(ii)) On Friday, October 14, 2016 at 5:11:35 PM UTC+8, meInvent bbird wrote: > succeed to run, > > is it the yield return the whole list

Re: how to send a json of yield list

2016-10-14 Thread meInvent bbird
succeed to run, is it the yield return the whole list 2000 * 2000 * 2000 items? as i know that yield is return [1,1,1] etc one by one once it get if it return 2000*2000*2000 items, why? i have to add a queue get this yield in order to succeed but i do not understand the situation when using qu

Re: how to send a json of yield list

2016-10-13 Thread dieter
meInvent bbird writes: > after google a several solutions, > First method i searched has memory error > sock.send(json.dumps(StreamArray())) > Traceback (most recent call last): > File "pusher.py", line 43, in > sock.send(json.dumps(StreamArray())) > ... > MemoryError "MemoryError" means

how to send a json of yield list

2016-10-13 Thread meInvent bbird
after google a several solutions, First method i searched has memory error sock.send(json.dumps(StreamArray())) Traceback (most recent call last): File "pusher.py", line 43, in sock.send(json.dumps(StreamArray())) File "C:\Python27\lib\json\__init__.py", line 243, in dumps return _de

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Alister
On Tue, 24 Sep 2013 12:29:14 +, Steven D'Aprano wrote: > On Tue, 24 Sep 2013 11:36:16 +, Alister wrote: > >> To put it even more simply If you have a legitimate reason to send me >> emails then you have no legitimate reason to withhold your true >> Identity. > > "Dear Alister, > > Whi

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Chris Angelico
On Tue, Sep 24, 2013 at 10:29 PM, Steven D'Aprano wrote: > On Tue, 24 Sep 2013 11:36:16 +, Alister wrote: > >> To put it even more simply >> If you have a legitimate reason to send me emails then you have no >> legitimate reason to withhold your true Identity. > > "Dear Alister, > > Forgive th

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Steven D'Aprano
On Tue, 24 Sep 2013 11:36:16 +, Alister wrote: > To put it even more simply > If you have a legitimate reason to send me emails then you have no > legitimate reason to withhold your true Identity. "Dear Alister, Forgive this anonymous email, but I don't wish to get fired from my job and sue

Re: How to send an anonymous mail via Python script

2013-09-24 Thread Alister
On Sat, 21 Sep 2013 20:41:25 +1000, Chris Angelico wrote: > On Sat, Sep 21, 2013 at 8:15 PM, Νίκος wrote: >> On 21/9/2013 1:04 μμ, Chris Angelico wrote: >>> >>> On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: Can you please tell me what alternation must be made in order to send this

Re: How to send an anonymous mail via Python script

2013-09-21 Thread Joel Goldstick
On Sat, Sep 21, 2013 at 6:41 AM, Chris Angelico wrote: > On Sat, Sep 21, 2013 at 8:15 PM, Νίκος wrote: > > On 21/9/2013 1:04 μμ, Chris Angelico wrote: > >> > >> On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: > >>> > >>> Can you please tell me what alternation must be made in order to send > >>>

Re: How to send an anonymous mail via Python script

2013-09-21 Thread Chris Angelico
On Sat, Sep 21, 2013 at 8:15 PM, Νίκος wrote: > On 21/9/2013 1:04 μμ, Chris Angelico wrote: >> >> On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: >>> >>> Can you please tell me what alternation must be made in order to send >>> this >>> anonymously? >>> >>> that is my question. There must be a way.

Re: How to send an anonymous mail via Python script

2013-09-21 Thread Νίκος
On 21/9/2013 1:04 μμ, Chris Angelico wrote: On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: Can you please tell me what alternation must be made in order to send this anonymously? that is my question. There must be a way. No, there isn't. The nearest you could come to anonymous mail would be s

Re: How to send an anonymous mail via Python script

2013-09-21 Thread Chris Angelico
On Sat, Sep 21, 2013 at 7:58 PM, Νίκος wrote: > Can you please tell me what alternation must be made in order to send this > anonymously? > > that is my question. There must be a way. No, there isn't. The nearest you could come to anonymous mail would be sending via a botnet (to hide your IP addr

How to send an anonymous mail via Python script

2013-09-21 Thread Νίκος
I'll have to ask this atgain because i got no proper reply: Here is the code i wrote to try tos end anonymous mail: # = # if html form is submitted then send user mail #

Re: How to send broadcast IP address to network?

2013-08-24 Thread Irmen de Jong
On 23-8-2013 14:32, lightai...@gmail.com wrote: > I want to send a broadcast packet to all the computers connected to my home > router. > > The following 2 lines of code do not work; > host="192.168.0.102" > s.connect((host, port)) > > Can someone advise? > > Thank you. > Use UDP (datagram)

Re: How to send broadcast IP address to network?

2013-08-23 Thread Chris Angelico
On Fri, Aug 23, 2013 at 10:32 PM, wrote: > I want to send a broadcast packet to all the computers connected to my home > router. > > The following 2 lines of code do not work; > host="192.168.0.102" > s.connect((host, port)) > > Can someone advise? You can't establish a TCP socket with a broadc

Re: How to send broadcast IP address to network?

2013-08-23 Thread Neil Cerutti
On 2013-08-23, lightai...@gmail.com wrote: >> The following 2 lines of code do not work; >> >> host="192.168.0.255" >> host="192.168.0.102" >> s.connect((host, port)) Traceback (most recent call last): File "", line 1, in NameError: name 's' is not defined I bet that's not the same traceback

Re: How to send broadcast IP address to network?

2013-08-23 Thread lightaiyee
Some typo mistake. Should be host="192.168.0.255", not "192.168.0.102" On Friday, August 23, 2013 8:32:10 PM UTC+8, light...@gmail.com wrote: > I want to send a broadcast packet to all the computers connected to my home > router. > > > > The following 2 lines of code do not work; > > host="

How to send broadcast IP address to network?

2013-08-23 Thread lightaiyee
I want to send a broadcast packet to all the computers connected to my home router. The following 2 lines of code do not work; host="192.168.0.102" s.connect((host, port)) Can someone advise? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send data from excel to website using python please help?

2013-03-19 Thread Joel Goldstick
On Tue, Mar 19, 2013 at 10:22 AM, Neil Cerutti wrote: > On 2013-03-19, s.arun...@gmail.com wrote: > > Hi, im new to python. Wanted to know how to extract data from > > excel sheet and send it to webpage form. Thanks in advance. > > Can you be more clear about what you want to do with this data?

Re: How to send data from excel to website using python please help?

2013-03-19 Thread Neil Cerutti
On 2013-03-19, s.arun...@gmail.com wrote: > Hi, im new to python. Wanted to know how to extract data from > excel sheet and send it to webpage form. Thanks in advance. I like to export Excel documents as csv files and read them using the csv module's DictReader class. You can read from them dire

How to send data from excel to website using python please help?

2013-03-19 Thread s . arun316
Hi, im new to python. Wanted to know how to extract data from excel sheet and send it to webpage form. Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Send a Tweet from Python? I can read, but not post.

2013-02-11 Thread Steven D'Aprano
saqib.ali...@gmail.com wrote: > I posted this on StackOverflow.com but haven't got a good response yet: > http://stackoverflow.com/questions/14808245/python-why-cant-i-send-a-tweet > > > > I have tried two different packages python-twitter and tweepy but have not > been successful using either

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-20 Thread Mark Lawrence
On 19/09/2012 20:12, ashish wrote: Folks, I asked the same query on the python tutor mailing list. The responses i received are here : http://thread.gmane.org/gmane.comp.python.tutor/77601 Mark, There is nothing wrong in asking a query on multiple forums. Poeple on the tutor list, may not be

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-19 Thread ashish
Folks, I asked the same query on the python tutor mailing list. The responses i received are here : http://thread.gmane.org/gmane.comp.python.tutor/77601 Mark, There is nothing wrong in asking a query on multiple forums. Poeple on the tutor list, may not be part of comp.lang.python & subscribe

Re: How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-11 Thread Mark Lawrence
On 11/09/2012 22:51, ashish makani wrote: Hi c.l.p peeps I am stuck with an issue, so am coming to the Pythonista deltaforce who rescue me everytime :) [big snip] I say old chap, it's simply not cricket to ask a question like this some 32 minutes after asking the same question on the tutor

How to send email programmatically from a gmail email a/c when port 587(smtp) is blocked

2012-09-11 Thread ashish makani
Hi c.l.p peeps I am stuck with an issue, so am coming to the Pythonista deltaforce who rescue me everytime :) I am trying to send out email programmatically, from a gmail a/c, using smtplib, using the following chunk of code (b/w [ & ] below) [ import smtplib from email.mime.text import MIMET

Re: How to send an IP packet in Python?

2010-12-02 Thread Nobody
On Thu, 02 Dec 2010 03:12:42 -0800, yegorov-p wrote: > I have sniffed some packet and now I would like to send it with the > help of python. > But for some reason python send that: > As you can see, python ignores my headers and creates its own. It isn't Python doing that, but the OS. At least

How to send an IP packet in Python?

2010-12-02 Thread yegorov-p
Hello. I have sniffed some packet and now I would like to send it with the help of python. It's some simple IGMP packet with VLAN tag. (01 00 5E 00 43 67 00 02 B3 C8 7F 44 81 00 00 DE 08 00 46 00 00 20 00 01 00 00 01 02 36 4C C0 A8 00 7B EA 00 43 67 94 04 00 00 16 00 BC 97 EA 00 43 67) At first I

Re: How to send a non-standard IMAP command?

2010-06-25 Thread Xianwen Chen
On Jun 24, 2:25 pm, Tim Chase wrote: > On 06/24/2010 04:47 AM, Xianwen Chen wrote: > > > > > Thanks a lot for your reply! I thought it would be simpler if the > > problem was presented in a brief way. Unfortunately, not for this > > case. > > > Here is the detail. Free Yahoo! mail accounts can be

Re: How to send a non-standard IMAP command?

2010-06-25 Thread Xianwen Chen
On Jun 24, 2:23 pm, Michael Torrie wrote: > On 06/24/2010 03:47 AM, Xianwen Chen wrote: > > > , but I got error messages. Any hint please? > > Why not just use a proxy server: > > http://sourceforge.net/projects/imapidproxy/ Hi Michael Thanks a lot! Yes, it would be much more convenient. Actual

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Xianwen Chen
On Thu, Jun 24, 2010 at 2:25 PM, Tim Chase wrote: > On 06/24/2010 04:47 AM, Xianwen Chen wrote: > >> Thanks a lot for your reply! I thought it would be simpler if the >> problem was presented in a brief way. Unfortunately, not for this >> case. >> >> Here is the detail. Free Yahoo! mail accounts c

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Tim Chase
On 06/24/2010 04:47 AM, Xianwen Chen wrote: Thanks a lot for your reply! I thought it would be simpler if the problem was presented in a brief way. Unfortunately, not for this case. Here is the detail. Free Yahoo! mail accounts can be accsessed via IMAP protocal, however, a non-standard shake ha

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Michael Torrie
On 06/24/2010 03:47 AM, Xianwen Chen wrote: > , but I got error messages. Any hint please? Why not just use a proxy server: http://sourceforge.net/projects/imapidproxy/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Michael Torrie
On 06/24/2010 03:47 AM, Xianwen Chen wrote: > . This is what I'm now working for. I tried: > > IMAP4.xatom('','ID ("GUID" "1")','',) > > and > > dest_srv.xatom('ID ("GUID" "1")') > > , but I got error messages. Any hint please? What error messages? -- http://mail.python.org/mailman/listinfo/p

Re: How to send a non-standard IMAP command?

2010-06-24 Thread Xianwen Chen
On 6/24/10, Tim Chase wrote: > On 06/23/2010 05:22 PM, Xianwen Chen wrote: >> I need to send one line of commands to an IMAP server. The commands >> are not standard IMAP protocols, hence it's not specified in >> http://docs.python.org/library/imaplib.html. > > Sounds like you want to use the imap

Re: How to send a non-standard IMAP command?

2010-06-23 Thread Tim Chase
On 06/23/2010 05:22 PM, Xianwen Chen wrote: I need to send one line of commands to an IMAP server. The commands are not standard IMAP protocols, hence it's not specified in http://docs.python.org/library/imaplib.html. Sounds like you want to use the imaplib's IMAP4.xatom() to send a custom com

How to send a non-standard IMAP command?

2010-06-23 Thread Xianwen Chen
Dear Pythoners, I need to send one line of commands to an IMAP server. The commands are not standard IMAP protocols, hence it's not specified in http://docs.python.org/library/imaplib.html. Can you please give me a hint? Best regards, Xianwen -- http://mail.python.org/mailman/listinfo/python-li

How to send utf-8 mail in Python 3?

2010-03-05 Thread Peter Kleiweg
I try to send e-mail from Python 3.1.1 Encoding as iso-8859-1 goes fine. But encoding as utf-8 doesn't work. What am I doing wrong? Python 3.1.1 (r311:74480, Oct 2 2009, 11:50:52) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" fo

how to send 100 continues in wsgi application ?

2009-08-28 Thread gert
how do you send 100 continues in a wsgi applications ? when using curl -T file http://localhost/upload.wsgi on the wsgiref.simple_server it get stuck waiting for a 100 continue import os def application(environ, response): query=os.path.join(os.path.dirname(__file__),'teemp') ran

Re: How to send a compsite key to window

2009-05-25 Thread Gabriel Genellina
En Thu, 21 May 2009 09:38:26 -0300, zhouhaifeng escribió: just like "ctrl + A", I want to select all the text in a window, now , I operate right menu to get it, but it can not work all the time. so I want to send "ctrl + a" to the window I'd do it in a different way: asuming it is an edit co

How to send a compsite key to window

2009-05-22 Thread zhouhaifeng
just like "ctrl + A", I want to select all the text in a window, now , I operate right menu to get it, but it can not work all the time. so I want to send "ctrl + a" to the window blow is my code thanks hWnd = win32gui.FindWindow(None, "“中华会计网校”财税法规库下载版V1.09-法 规阅读器") print hWnd if hWnd <> 0: p

How to send a compsite key to window

2009-05-22 Thread zhouhaifeng
just like "ctrl + A", I want to select all the text in a window, now , I operate right menu to get it, but it can not work all the time. so I want to send "ctrl + a" to the window blow is my code thanks hWnd = win32gui.FindWindow(None, "“中华会计网校”财税法规库下载版V1.09-法 规阅读器") print hWnd if hWnd <> 0: p

Re: How to send an email with GMail in Python from Windows

2009-03-12 Thread gordyt
Howdy Avinash, Here is a simple example for you. from smtplib import SMTP HOST = "smtp.gmail.com" PORT = 587 ACCOUNT = ""# put your gmail email account here PASSWORD = "" # put your gmail email password here def send_email(to_addrs, subject, msg): server = SMTP(HOST,PORT) s

Re: How to send an email with GMail in Python from Windows

2009-03-12 Thread dorzey
You might want to try - http://libgmail.sourceforge.net/. This is a Python binding for GMail; I've used it a little and it did the job for me. Dorzey -- http://mail.python.org/mailman/listinfo/python-list

How to send an email with GMail in Python from Windows

2009-03-12 Thread ∂ √ ¡ ŋ ∂ ♪ ђ
Hi Can somebody help me with sending an email using Python from GMail Here's what I tried but it fails always. import smtplib import base64 smtpserver = 'smtp.gmail.com' AUTHREQUIRED = 0 # if you need to use SMTP AUTH set to 1 s

Re: How to send body and attachements in an email message?

2008-12-03 Thread Aspersieman
On Wed, 03 Dec 2008 12:40:30 +0200, srinivasan srinivas <[EMAIL PROTECTED]> wrote: HI, I would like to send an email message with body-content 'test' and an attachment. The snippet i used is: outer = email.mime.multipart.MIMEMultipart() msg1 = email.mime.text.MIMEText(, _subtype = 'text')

How to send body and attachements in an email message?

2008-12-03 Thread srinivasan srinivas
HI, I would like to send an email message with body-content 'test' and an attachment. The snippet i used is: outer = email.mime.multipart.MIMEMultipart() msg1 = email.mime.text.MIMEText(, _subtype = 'text') msg1.add_header('Content-Disposition', 'attachment') outer.attach(msg1) body = email.mime.

Re: How to send Data Transfer Objects across the network?

2008-10-02 Thread Larry Bates
Daniel wrote: Hello, I've been building a system that has need to send object data across the network. The approach I've taken has been to build Data Transfer Objects, which just contain the attributes of the objects, and to pickle them and send them over a socket connection. As I get deeper t

Re: How to send Data Transfer Objects across the network?

2008-10-02 Thread Jean-Paul Calderone
On Thu, 2 Oct 2008 14:45:12 -0700 (PDT), Daniel <[EMAIL PROTECTED]> wrote: Hello, I've been building a system that has need to send object data across the network. The approach I've taken has been to build Data Transfer Objects, which just contain the attributes of the objects, and to pickle th

Re: How to send Data Transfer Objects across the network?

2008-10-02 Thread Bruno Desthuilliers
Daniel a écrit : Hello, I've been building a system that has need to send object data across the network. The approach I've taken has been to build Data Transfer Objects, which just contain the attributes of the objects, and to pickle them and send them over a socket connection. As I get deepe

How to send Data Transfer Objects across the network?

2008-10-02 Thread Daniel
Hello, I've been building a system that has need to send object data across the network. The approach I've taken has been to build Data Transfer Objects, which just contain the attributes of the objects, and to pickle them and send them over a socket connection. As I get deeper this is a bit pro

Re: how to send a "Multiline" mail with smtplib?

2008-06-23 Thread Evan
On Jun 19, 6:12 pm, Lie <[EMAIL PROTECTED]> wrote: > On Jun 19, 4:02 pm, Justin Ezequiel <[EMAIL PROTECTED]> > wrote: > > > perhaps change html > > > body=MIMEText('hello,\r\n > > ok',_subtype='html',_charset='windows-1255') > > > to plain > > > body=MIMEText('hello,\r\n > > ok',_subtype='plain',_c

Re: how to send a "Multiline" mail with smtplib?

2008-06-19 Thread Lie
On Jun 19, 4:02 pm, Justin Ezequiel <[EMAIL PROTECTED]> wrote: > perhaps change html > > body=MIMEText('hello,\r\n > ok',_subtype='html',_charset='windows-1255') > > to plain > > body=MIMEText('hello,\r\n > ok',_subtype='plain',_charset='windows-1255') If that was the case, and you needed a line b

Re: how to send a "Multiline" mail with smtplib?

2008-06-19 Thread Justin Ezequiel
perhaps change html body=MIMEText('hello,\r\n ok',_subtype='html',_charset='windows-1255') to plain body=MIMEText('hello,\r\n ok',_subtype='plain',_charset='windows-1255') -- http://mail.python.org/mailman/listinfo/python-list

[SMTPLIB] how to send a "Multiline" mail with smtplib?

2008-06-19 Thread Evan
Hello - I'm new with Python, I try to do a mail problem, the code likes below: + import smtplib import mimetypes from email.Encoders import encode_base64 from email.MIMEAudio import MIMEAudio from email.MIMEBase import MIMEBase from ema

Re: How to send a POST request?

2008-06-07 Thread kj
Thanks to Jeff and subeen for the helpful comments and suggestions. Kynn -- NOTE: In my address everything before the first period is backwards; and the last period, and everything after it, should be discarded. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a POST request?

2008-06-06 Thread subeen
On Jun 7, 6:17 am, "Jeff McNeil" <[EMAIL PROTECTED]> wrote: > The original urllib module will do it too, if you pass a data keyword > argument to urllib.urlopen: > > u = urllib.urlopen('http://www.domain.com/cgi-bin/cgi.py', > data=urllib.urlencode({'name': 'pythonguy'})) > > On Fri, Jun 6, 2008 at

Re: How to send a POST request?

2008-06-06 Thread Jeff McNeil
The original urllib module will do it too, if you pass a data keyword argument to urllib.urlopen: u = urllib.urlopen('http://www.domain.com/cgi-bin/cgi.py', data=urllib.urlencode({'name': 'pythonguy'})) On Fri, Jun 6, 2008 at 6:04 PM, kj <[EMAIL PROTECTED]> wrote: > In <[EMAIL PROTECTED]> kj <[E

Re: How to send a POST request?

2008-06-06 Thread kj
In <[EMAIL PROTECTED]> kj <[EMAIL PROTECTED]> writes: >Hi. Sorry for this very clueless question, but how does one write >in Python an HTTP client that can send a POST request? The modules >I've found (e.g. urllib, urllib2), as far as I can tell, seem to >be limited to GET requests. (I could be

How to send a POST request?

2008-06-06 Thread kj
Hi. Sorry for this very clueless question, but how does one write in Python an HTTP client that can send a POST request? The modules I've found (e.g. urllib, urllib2), as far as I can tell, seem to be limited to GET requests. (I could be wrong though; please correct me if this is so.) TIA!

how to send files via bluetoot

2008-05-15 Thread sayang-87
-- http://mail.python.org/mailman/listinfo/python-list

Re: How to send a var to stdin of an external software

2008-03-25 Thread Bryan Olson
Benjamin Watine wrote: > OK, so if I understand well what you said, using queue allow to be sure > that the data is passed in totality before coninuing with next > instruction. That make sense. Right. > Using thread and queue seems to be very more slow than using files > redirection with bash.

Re: How to send a var to stdin of an external software

2008-03-25 Thread Benjamin Watine
Bryan Olson a écrit : > Benjamin Watine wrote: >> [EMAIL PROTECTED] a écrit : >>> I wrote: And here's a thread example, based on Benjamin's code: >>> [...] >>> >>> Doh! Race condition. Make that: >>> >>> import subprocess >>> import thread >>> import Queue >>> >>> def readtoq(p

Re: How to send a var to stdin of an external software

2008-03-21 Thread Bryan Olson
Benjamin Watine wrote: > [EMAIL PROTECTED] a écrit : >> I wrote: >>> And here's a thread example, based on Benjamin's code: >> [...] >> >> Doh! Race condition. Make that: >> >> import subprocess >> import thread >> import Queue >> >> def readtoq(pipe, q): >> q.put(pipe.read(

Re: How to send a var to stdin of an external software

2008-03-17 Thread Benjamin Watine
[EMAIL PROTECTED] a écrit : > I wrote: >> And here's a thread example, based on Benjamin's code: > [...] > > Doh! Race condition. Make that: > > import subprocess > import thread > import Queue > > def readtoq(pipe, q): > q.put(pipe.read()) > > cat = subprocess.Popen

Re: How to send a var to stdin of an external software

2008-03-14 Thread bryanjugglercryptographer
I wrote: > And here's a thread example, based on Benjamin's code: [...] Doh! Race condition. Make that: import subprocess import thread import Queue def readtoq(pipe, q): q.put(pipe.read()) cat = subprocess.Popen('cat', shell=True, stdin=subprocess.PIPE, stdout=subpr

Re: How to send a var to stdin of an external software

2008-03-14 Thread bryanjugglercryptographer
Floris Bruynooghe wrote: > Benjamin Watine wrote: > > Could you give me more information / examples about the two solutions > > you've proposed (thread or asynchronous I/O) ? > > The source code of the subprocess module shows how to do it with > select IIRC. Look at the implementation of the commu

Re: How to send a var to stdin of an external software

2008-03-14 Thread Floris Bruynooghe
On Mar 14, 11:37 am, Benjamin Watine <[EMAIL PROTECTED]> wrote: > Bryan Olson a écrit : > > > I wrote: > >> [...] Pipe loops are tricky business. > > >> Popular solutions are to make either the input or output stream > >> a disk file, or to create another thread (or process) to be an > >> active re

Re: How to send a var to stdin of an external software

2008-03-14 Thread Benjamin Watine
Bryan Olson a écrit : > I wrote: >> [...] Pipe loops are tricky business. >> >> Popular solutions are to make either the input or output stream >> a disk file, or to create another thread (or process) to be an >> active reader or writer. > > Or asynchronous I/O. On Unix-like systems, you can selec

Re: How to send a var to stdin of an external software

2008-03-13 Thread Bryan Olson
I wrote: > [...] Pipe loops are tricky business. > > Popular solutions are to make either the input or output stream > a disk file, or to create another thread (or process) to be an > active reader or writer. Or asynchronous I/O. On Unix-like systems, you can select() on the underlying file descr

Re: How to send a var to stdin of an external software

2008-03-13 Thread Bryan Olson
Benjamin Watine wrote: > And if somebody need it : to get the stdout in a var (myNewVar), not in > the shell : > > cat = subprocess.Popen('cat', shell = True, stdin = subprocess.PIPE, > stdout=subprocess.PIPE) > cat.stdin.write(myVar) > cat.stdin.close() > cat.wait() > myNewVar = cat.stdout.read

Re: How to send a var to stdin of an external software

2008-03-13 Thread Benjamin Watine
Marko Rauhamaa a écrit : > Benjamin Watine <[EMAIL PROTECTED]>: > >> How can I do this ? I would like a function like that : >> >> theFunction ('cat -', stdin=myVar) >> >> Another related question : Is there's a limitation of var size ? I >> would have var up to 10 MB. > > import subprocess

Re: How to send a var to stdin of an external software

2008-03-13 Thread Sion Arrowsmith
Benjamin Watine <[EMAIL PROTECTED]> wrote: >How can I do this ? I would like a function like that : > > theFunction ('cat -', stdin=myVar) > >I don't need to get any return value. http://docs.python.org/lib/node534.html says this is spelt myVar = subprocess.Popen(["cat", "-"], stdout=subpr

Re: How to send a var to stdin of an external software

2008-03-13 Thread Marko Rauhamaa
Benjamin Watine <[EMAIL PROTECTED]>: > How can I do this ? I would like a function like that : > > theFunction ('cat -', stdin=myVar) > > Another related question : Is there's a limitation of var size ? I > would have var up to 10 MB. import subprocess myVar = '*' * 1000 cat = subproce

How to send a var to stdin of an external software

2008-03-13 Thread Benjamin Watine
Hi the list, I need to send a var to stdin of an external soft ("cat" command for example). How can I do this ? I would like a function like that : theFunction ('cat -', stdin=myVar) I don't need to get any return value. Another related question : Is there's a limitation of var size ?

Re: how to send files via bluetooth with python to a mobile

2007-07-03 Thread Drex
Hi, I tried the example from the site http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython but I am getting the following error: /home/daniel/projekty/_moje/python/send_txt_to_mobile.py Traceback (most recent call last): File "/home/daniel/projekty/_moje/python/send_txt_to_mobil

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hello, > > seams thatpythonbindings are already there? > >http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython > > Cool, didn't find that. thanks, this looks to be what I was looking for! regards dz -- http://mail.python.org/mailman/listinfo/python-list

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Diez B. Roggisch
morphine schrieb: > Diez B. Roggisch wrote: > >> Wrap this >> >> http://www.zuckschwerdt.org/apidocs/ > > seams that python bindings are already there? > http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython Cool, didn't find that. diez -- http://mail.python.org/mailman/listinfo

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread morphine
Diez B. Roggisch wrote: > Wrap this > > http://www.zuckschwerdt.org/apidocs/ seams that python bindings are already there? http://dev.zuckschwerdt.org/openobex/wiki/ObexFtpExampleClientPython -- morphine -- http://mail.python.org/mailman/listinfo/python-list

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hello, > > Wrap this > > http://www.zuckschwerdt.org/apidocs/ > > using ctypes. thanks, no idea on how to do it (yet hopefully), but I will try ;) regards dz -- http://mail.python.org/mailman/listinfo/python-list

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Diez B. Roggisch
Drex schrieb: > Hey, > >>> I'm not sure but try this: ( py_s60 ) >>> http://sourceforge.net/projects/pyed/ > >> and also try this: >> >> http://sourceforge.net/projects/pys60 > > thanks, but I am affraid this is not what I was looking for. I need to > have some library on my pc (linux) that w

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hey, > > I'm not sure but try this: ( py_s60 ) > > >http://sourceforge.net/projects/pyed/ > and also try this: > > http://sourceforge.net/projects/pys60 thanks, but I am affraid this is not what I was looking for. I need to have some library on my pc (linux) that would allow me to transfer a

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread vedrandekovic
[EMAIL PROTECTED] je napisao/la: > Drex je napisao/la: > > Hi, > > > > I have been looking on the internet for some info about sending files > > from PC to a mobile phone (I have a nokia 6288) but I was not able to > > find anything. > > > > there is a lot of info how to transfer files from a symb

Re: how to send files via bluetooth with python to a mobile

2007-07-01 Thread vedrandekovic
Drex je napisao/la: > Hi, > > I have been looking on the internet for some info about sending files > from PC to a mobile phone (I have a nokia 6288) but I was not able to > find anything. > > there is a lot of info how to transfer files from a symbian phone to a > pc, but nothing about sending th

how to send files via bluetooth with python to a mobile

2007-07-01 Thread Drex
Hi, I have been looking on the internet for some info about sending files from PC to a mobile phone (I have a nokia 6288) but I was not able to find anything. there is a lot of info how to transfer files from a symbian phone to a pc, but nothing about sending them in the oposite direction. would

Re: How to send

2007-03-20 Thread kyosohma
On Mar 20, 7:21 am, "Admir Saric" <[EMAIL PROTECTED]> wrote: > Hi, > > i have created an application in pygtk. The application creates files with > its own file type and extensions and saves them. I would like to extend the > application to be able to send these files over WLAN. I would use the > a

How to send

2007-03-20 Thread Admir Saric
Hi, i have created an application in pygtk. The application creates files with its own file type and extensions and saves them. I would like to extend the application to be able to send these files over WLAN. I would use the application in my Nokia 770 Internet tablet and send the files from on

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Grant Edwards
On 2006-10-16, Sybren Stuvel <[EMAIL PROTECTED]> wrote: >> Yes, I want to find a way to send email without an external >> smtp server. > > You can't. Use a DNS server to find the MX record of the > destination domain, connect to that SMTP server, then deliver > the mail. Or, just send it to a rel

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Grant Edwards
On 2006-10-16, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 16 Oct 2006 17:04:19 +0800, "[EMAIL PROTECTED]" ><[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >> >> Yes, I want to find a way to send email without an external smtp server. >> > You're going to have t

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > Yes, I want to find a way to send email without an external smtp server. You can't. Use a DNS server to find the MX record of the destination domain, connect to that SMTP server, then deliver the mail. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuv

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Grant Edwards
On 2006-10-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Yes, I want to find a way to send email without an external smtp server. If you're not going to use an SMTP server, what sort of server do you want to use? -- Grant Edwards grante Yow! Let me do my TRIB

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Leo Kislov
On Oct 16, 2:04 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > It's not safe if I have to use login method explicitly by which I have > to put my username and password in the script. I have also tried the > Unix command 'mail', but without success, either. I could use 'mail' to > send an E-

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread [EMAIL PROTECTED]
Leo Kislov wrote: >> >> Do I have to setup a smtp server on my localhost ? >> > > You need to use login method > . And by the way, the > subject of your message is very confusing, you are posting log where > you're sending email using external serv

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Leo Kislov
On Oct 16, 12:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Rob Wolfe wrote: > > [EMAIL PROTECTED] wrote: > > >> Hi, > > >> I just want to send a very simple email from within python. > > >> I think the standard module of smtpd in python can do this, but I > >> haven't found documents a

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Rob Wolfe
[EMAIL PROTECTED] wrote: > Do I have to setup a smtp server on my localhost ? If I see correctly your smtp server is gmail.com. HTH, Rob -- http://mail.python.org/mailman/listinfo/python-list

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread [EMAIL PROTECTED]
Rob Wolfe wrote: > [EMAIL PROTECTED] wrote: > >> Hi, >> >> I just want to send a very simple email from within python. >> >> I think the standard module of smtpd in python can do this, but I >> haven't found documents about how to use it after googleing. Are there >> any examples of using smtpd

Re: How to send E-mail without an external SMTP server ?

2006-10-16 Thread Leo Kislov
On Oct 15, 10:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I just want to send a very simple email from within python. > > I think the standard module of smtpd in python can do this, but I > haven't found documents about how to use it after googleing. Are there > any examples o

Re: How to send E-mail without an external SMTP server ?

2006-10-15 Thread Rob Wolfe
[EMAIL PROTECTED] wrote: > Hi, > > I just want to send a very simple email from within python. > > I think the standard module of smtpd in python can do this, but I > haven't found documents about how to use it after googleing. Are there > any examples of using smtpd ? I'm not an expert,so I need

How to send E-mail without an external SMTP server ?

2006-10-15 Thread [EMAIL PROTECTED]
Hi, I just want to send a very simple email from within python. I think the standard module of smtpd in python can do this, but I haven't found documents about how to use it after googleing. Are there any examples of using smtpd ? I'm not an expert,so I need some examples to learn how to use i

Re: How to Send the Message using win32gui?

2006-09-18 Thread Gabriel Genellina
At Monday 18/9/2006 02:07, =?GB2312?B?0vzP6cH6?= wrote: I want to send LVM_SETITEMSTATE message using win32gui. But I don't know how to do in Python. The obvious way is win32api.PostMessage - but I feel you have another, higher-level, problem... Gabriel Genellina Softlab SRL

  1   2   >