Re: Pass variable by reference

2014-05-05 Thread Gary Herron
On 05/05/2014 05:39 PM, Satish Muthali wrote: Hello experts, I have a burning question on how to pass variable by reference in Python. I understand that the data type has to be mutable. This gets confusing, but in fact the most accurate answer is that Python does not have "variables", so th

Re: Pass variable by reference

2014-05-05 Thread Rustom Mody
On Tuesday, May 6, 2014 6:09:44 AM UTC+5:30, Satish Muthali wrote: > Hello experts, > I have a burning question on how to pass variable by reference in Python. Technically correct answer: You cant. But see below. > I understand that the data type has to be mutable. I dont know that mutability h

Stilhaus Kitchens Complaints

2014-05-05 Thread kakonyet
Stilhaus Kitchens Complaints. fact is that there are no stilhaus kitchens complaints.stilhaus kitchens are the only kitchen company with no complaints -- View this message in context: http://python.6.x6.nabble.com/Stilhaus-Kitchens-Complaints-tp5055969.html Sent from the Python - python-list m

Pass variable by reference

2014-05-05 Thread Satish Muthali
Hello experts, I have a burning question on how to pass variable by reference in Python. I understand that the data type has to be mutable. For example, here’s the issue I am running in to: I am trying to extract the PostgreSQL DB version for example: pgVer = [s.split() for s in os.popen("psq

Re: Add "Received:" header to email msg in correct position?

2014-05-05 Thread Grant Edwards
On 2014-05-05, Tim Chase wrote: > On 2014-05-05 20:58, Grant Edwards wrote: >> On 2014-05-05, Ethan Furman wrote: >> > On 05/05/2014 12:51 PM, Grant Edwards wrote: >> >> I'd like to do the polite thing and add a "Received:" header, >> >> but I can't figure out how to get Python's email module to

Re: Tutorials for Reorganizing Spreadsheet Data

2014-05-05 Thread CHIN Dihedral
On Wednesday, April 16, 2014 9:50:25 PM UTC+8, joseph...@gmail.com wrote: > Hello, I'm a high school physics teacher and while I've played with Python > enough to make a rock paper scissors program or animation of a bouncing ball > (with air resistance!), I've never used it to work with data from

Re: socket client and server in one application?

2014-05-05 Thread Chris Angelico
On Tue, May 6, 2014 at 8:37 AM, wrote: > I'm using a dispatch method to receive and occasionally send data through a > serial port on a Raspberry Pi. I think the dispatch method is essentially a > threaded approach, right? > > Now to receive serial data and send via socket, then occasionally r

Re: socket client and server in one application?

2014-05-05 Thread chris
Thanks to Marko, Chin, Grant. There's a lot to study, asincio, urllib, threads, select/poll. I'm using a dispatch method to receive and occasionally send data through a serial port on a Raspberry Pi. I think the dispatch method is essentially a threaded approach, right? Now to receive serial

Re: Add "Received:" header to email msg in correct position?

2014-05-05 Thread Tim Chase
On 2014-05-05 20:58, Grant Edwards wrote: > On 2014-05-05, Ethan Furman wrote: > > On 05/05/2014 12:51 PM, Grant Edwards wrote: > >> I'd like to do the polite thing and add a "Received:" header, > >> but I can't figure out how to get Python's email module to add > >> it in the correct place. It a

Re: Add "Received:" header to email msg in correct position?

2014-05-05 Thread Grant Edwards
On 2014-05-05, Ethan Furman wrote: > On 05/05/2014 12:51 PM, Grant Edwards wrote: [...] >> I'd like to do the polite thing and add a "Received:" header, but I >> can't figure out how to get Python's email module to add it in the >> correct place. It always ends up at the "bottom" of the headers

Re: Add "Received:" header to email msg in correct position?

2014-05-05 Thread Ethan Furman
On 05/05/2014 12:51 PM, Grant Edwards wrote: I'm working on a Python app that receives an e-mail message via SMTP, does some trivial processing on it, and forwards it to another SMTP server. I'd like to do the polite thing and add a "Received:" header, but I can't figure out how to get Python's

Add "Received:" header to email msg in correct position?

2014-05-05 Thread Grant Edwards
I'm working on a Python app that receives an e-mail message via SMTP, does some trivial processing on it, and forwards it to another SMTP server. I'd like to do the polite thing and add a "Received:" header, but I can't figure out how to get Python's email module to add it in the correct place. I

Re: socket client and server in one application?

2014-05-05 Thread Grant Edwards
On 2014-05-05, ch...@freeranger.com wrote: > I have a python script that uses a serial port to read data from an > xbee radio and it delivers the data to a socket server. Now I need to > retrieve the data from a socket client so I can send data out on the > common serial port. > > I think I need

Re: socket client and server in one application?

2014-05-05 Thread CHIN Dihedral
On Monday, May 5, 2014 11:33:38 PM UTC+8, ch...@freeranger.com wrote: > I have a python script that uses a serial port to read data from an xbee > radio and it delivers the data to a socket server. > > > > Now I need to retrieve the data from a socket client so I can send data out > on the com

Re: socket client and server in one application?

2014-05-05 Thread Marko Rauhamaa
ch...@freeranger.com: > I think I need a combination of threads, queues, socket client and > se[r]ver. Yes, although I'd stay away from threads if I could. > Anyone have ideas about how I might frame this out? Take a look at asyncio. It might have everything you could wish for. Marko -- http

socket client and server in one application?

2014-05-05 Thread chris
I have a python script that uses a serial port to read data from an xbee radio and it delivers the data to a socket server. Now I need to retrieve the data from a socket client so I can send data out on the common serial port. I think I need a combination of threads, queues, socket client and s

Joining centos 6.5 member Domain Controller to an existing Windows Domain

2014-05-05 Thread Joshua Knights
Here is my Issue and I think it may be a python path bug? This is my Error: /root/samba-master/bin/samba-tool domain join AAF.ECPI DC -Uadministrator --realm=AAF.ECPI I get the following Error: Traceback (most recent call last): File "/root/samba-master/bin/samba-tool", line 33, in from samba.ne

Job Oriented Web Designing Course in Hyderabad

2014-05-05 Thread AWA Hyd
The concept of education has changed a lot in today's world where everything has been approached with a practical sense. The concept of education for the sake of knowledge has become a thing of past. Now the first and foremost aim of education is to grab good opportunities and thus to make a saf

[RELEASED] Python 3.4.1rc1

2014-05-05 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.1rc1. Python 3.4.1rc1 has over three hundred bugfixes and other improvements over 3.4.0. One notable change: the version of OpenSSL bundled with the Windows