Re: Python Debugger tool

2013-09-05 Thread Rafael Durán Castañeda
El 06/09/2013, a las 08:14, chandan kumar escribió: > Hi > > Is any one aware of free ipython debugger tool.How good is this tool for a > beginner to use like ,placing breakpoints,checking variables ,call stack > (function flow) etc.I don't like to use python PDB . > I have heard about wing

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 6/9/2013 7:48 πμ, ο/η Piet van Oostrum έγραψε: hotmail.com. Register this as one of your email addresses in gmail. For this it must be a real email address that belongs to you, not a fake address. When it is registered with gmail, gmail will not change it if found in a From header.

Re: How to split with "\" character, and licence copyleft mirror of �

2013-09-05 Thread Terry Reedy
On 9/5/2013 11:33 PM, Tim Roberts wrote: random...@fastmail.us wrote: Of course, in 99% of situations where you can use a windows pathname in Python, you are free to use it with a forward slash instead of a backslash. This is actually worth repeating, because it's not well known. ALL Windows

Python Debugger tool

2013-09-05 Thread chandan kumar
Hi Is any one aware of free ipython debugger tool.How good is this tool for a beginner to use like ,placing breakpoints,checking variables ,call stack (function flow) etc.I don't like to use python PDB . I have heard about wingware ,pycharm which are licensed versions.Used wingware trail ve

OT spam (was Re: THE POPULATION OF MUSLIMS)

2013-09-05 Thread Terry Reedy
On 9/5/2013 3:58 PM, bv4bv4...@gmail.com wrote: Religious rant that passed the spam filter and moderation mechanism. I am a new moderator and have asked the others if we can block this address. Please do not add to the spam posts that do appear by commenting on them. We do the best be can with

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Piet van Oostrum
Nikos, if you can't use the smtp server at mail.superhost.gr, or if that has the same restrictions I may have a solution for you. This is a bit off-topic on the Python list/group, s I will throw in a line of Python code to make it on-topic :) I suppose you have the following reasons to want to hav

Re: Multiprocessing / threading confusion

2013-09-05 Thread Piet van Oostrum
Piet van Oostrum writes: > def run(self): > for n in range(5): > self.que.put('%s tick %d' % (self._pid, n)) > # do some work > time.sleep(1) > self.que.put('%s has exited' % self._pid) To prevent the 'exited' message to disappear if there

"Python for Delphi' Assistance

2013-09-05 Thread Errol Anderson
The Delphi program I maintain uses 'Python for Delphi' to run Python scripts within the program. The latest version of 'Python for Delphi' appears to stop at Delphi 2006 with Python 2.5, while I would like to run Delphi 2007 with Python 2.7. Are there any 'Python for Delphi' users out there who

Re: PEP8 79 char max

2013-09-05 Thread Metallicow
On Thursday, September 5, 2013 11:01:31 PM UTC-5, Steven D'Aprano wrote: > And that's especially badly thought out. How is an import that occurs > when the code is *run* supposed to make a difference to the way the code > is *written*? Proofreading. Or maybe call it pre typesetting. -- https://

Re: PEP8 79 char max

2013-09-05 Thread Metallicow
On Thursday, September 5, 2013 10:40:46 PM UTC-5, Steven D'Aprano wrote: > Thanks for the comments, and welcome, but I really don't have a clue what > the relevance of most of them are. Real-world Experience. > > If you are still using equipment that requires 79, then chances are you > > have/will

Re: Newbie question related to Boolean in Python

2013-09-05 Thread Tim Roberts
skwyan...@gmail.com wrote: > ># This is just to show my understanding of Boolean. In line 8-9, if >my input is "taunt bear", the result is true and true, which will >continue the loop. > > So what confused me is line 12-13. if my input is taunt bear, is it >suppose to be taunt bear == "taunt bear

Re: PEP8 79 char max

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 19:59:34 -0700, Metallicow wrote: > PEP8 needs a bit of revision anyway, In my opinion... According to > real-world standards for equipment/devices. linking to a table/list of > affected devices/minNumbers should be the norm. or I don't believe you have thought this throug

Re: Multiprocessing / threading confusion

2013-09-05 Thread Piet van Oostrum
Paul Pittlerson writes: > On Friday, September 6, 2013 1:46:40 AM UTC+3, Chris Angelico wrote: > >> The first thing I notice is that your Debugger will quit as soon as >> its one-secondly poll results in no data. This may or may not be a >> problem for your code, but I'd classify it as code smell

Re: PEP8 79 char max

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 15:21:28 -0700, Metallicow wrote: > Well as for my opinion, it is more closer to the truth than others > because... Experience: > 1. I know Python and have read the PEP8. 2. I have knowledge of/worked > with the Printing Trades. 3. Grandfather owned/operated own Printshop > for

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread alex23
On 6/09/2013 12:01 AM, Ferrous Cranus wrote: Any ideas please why this fails to work? Missing "nss-config-dir" variable. . . . message not sent. Missing "nss-config-dir" variable. . . . message not sent. Missing "nss-config-dir" variable. . . . message not sent. Missing "nss-config-dir" variable

Re: Bundle pip with Python for Windows users

2013-09-05 Thread alex23
On 6/09/2013 4:19 AM, Andrew Pennebaker wrote: In the future, could Python for Windows come with pip? The ActiveState Windows installers for Python include pip, along with a bunch of other niceties and conveniences. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to split with "\" character, and licence copyleft mirror of �

2013-09-05 Thread Tim Roberts
random...@fastmail.us wrote: > >Of course, in 99% of situations where you can use a windows pathname in >Python, you are free to use it with a forward slash instead of a >backslash. This is actually worth repeating, because it's not well known. ALL Windows APIs handle forward and backward slashes

Re: Multiprocessing / threading confusion

2013-09-05 Thread Chris Angelico
On Fri, Sep 6, 2013 at 9:34 AM, Paul Pittlerson wrote: > On Friday, September 6, 2013 1:28:39 AM UTC+3, mar...@python.net wrote: > >> Also you can't (and shouldn't) depend on the time that __del__ gets >> called. It can get called at any time, in any order and sometimes not >> at all.* > > Wow I

Re: PEP8 79 char max

2013-09-05 Thread Metallicow
On Thursday, September 5, 2013 8:47:01 PM UTC-5, Terry Reedy wrote: > On 9/5/2013 6:21 PM, Metallicow wrote: > > > > > > If you are still using equipment that requires 79, then chances are you > > have/will already gone out of business or are keeping/using said equipment > > for nostalgic purpo

Re: Newbie question related to Boolean in Python

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 16:36:55 -0700, Thomas Yang wrote: > bear_moved = False > > while True: > next = raw_input("> ") > > if next == "take honey": > dead("The bear looks at you then slaps your face off.") > elif next == "taunt bear" and not bear_moved:

Re: NameError: global name '' is not defined , but a bit differences

2013-09-05 Thread Mohsen Pahlevanzadeh
On Wed, 2013-09-04 at 22:38 -0700, Benjamin Kaplan wrote: > On Wed, Sep 4, 2013 at 9:17 PM, Mohsen Pahlevanzadeh > wrote: > > Dear all , > > > > i get the error : > > > > NameError: global name 'ui' is not defined > > > > Complete question is at : > > http://stackoverflow.com/questions/18627608/na

Re: PEP8 79 char max

2013-09-05 Thread Terry Reedy
On 9/5/2013 6:21 PM, Metallicow wrote: If you are still using equipment that requires 79, then chances are you have/will already gone out of business or are keeping/using said equipment for nostalgic purposes. As far as math goes. 10 is a nice round number. 79 chars + 1 cursor (or \n) == 80

Re: Multiprocessing / threading confusion

2013-09-05 Thread Paul Pittlerson
On Friday, September 6, 2013 1:46:40 AM UTC+3, Chris Angelico wrote: > The first thing I notice is that your Debugger will quit as soon as > its one-secondly poll results in no data. This may or may not be a > problem for your code, but I'd classify it as code smell at best. Is > your goal here to

Re: Newbie question related to Boolean in Python

2013-09-05 Thread Thomas Yang
bear_moved = False while True: next = raw_input("> ") if next == "take honey": dead("The bear looks at you then slaps your face off.") elif next == "taunt bear" and not bear_moved: print "The bear has moved from the door. You can go through

Re: Multiprocessing / threading confusion

2013-09-05 Thread Paul Pittlerson
On Friday, September 6, 2013 1:28:39 AM UTC+3, mar...@python.net wrote: > Also you can't (and shouldn't) depend on the time that __del__ gets > called. It can get called at any time, in any order and sometimes not > at all.* Wow I did not know that! I was counting on that it reliably gets called

Re: Multiprocessing / threading confusion

2013-09-05 Thread Chris Angelico
On Fri, Sep 6, 2013 at 5:27 AM, Paul Pittlerson wrote: > I'm trying to understand data handling using multiprocessing and threading, > haven't gotten very far without running into problems. This is my code: > > > What I expect to happen is the Debugger object will receive one string at a > time,

Re: Multiprocessing / threading confusion

2013-09-05 Thread mar...@python.net
On Thu, Sep 5, 2013, at 03:27 PM, Paul Pittlerson wrote: > I'm trying to understand data handling using multiprocessing and > threading, haven't gotten very far without running into problems. This is > my code: [snip (not sure why you are using multiprocessing and threading at the same time] >

Re: PEP8 79 char max

2013-09-05 Thread Metallicow
Well as for my opinion, it is more closer to the truth than others because... Experience: 1. I know Python and have read the PEP8. 2. I have knowledge of/worked with the Printing Trades. 3. Grandfather owned/operated own Printshop for 40+yrs. Which I also worked in at one point. If you are still

Re: Newbie question related to Boolean in Python

2013-09-05 Thread Dave Angel
On 5/9/2013 16:08, skwyan...@gmail.com wrote: > 1. bear_moved = False > 2. > 3. while True: > 4.next = raw_input("> ") > 5. > 6.if next == "take honey": > 7.dead("The bear looks at you then slaps your face off.") > 8.elif next == "taunt bear"

Re: Newbie question related to Boolean in Python

2013-09-05 Thread Neil Cerutti
On 2013-09-05, skwyan...@gmail.com wrote: > 1. bear_moved = False > 2. > 3. while True: > 4.next = raw_input("> ") > 5. > 6.if next == "take honey": > 7.dead("The bear looks at you then slaps your face off.") > 8.elif next == "taunt bear" and

Re: Bundle pip with Python for Windows users

2013-09-05 Thread Terry Reedy
On 9/5/2013 2:19 PM, Andrew Pennebaker wrote: In the future, could Python for Windows come with pip? It would simplify package installation for users and developers, often a quite involved and tricky process. http://python.org/dev/peps/pep-0453/ "Explicit bootstrapping of pip in Python instal

Re: Moving to Python for web

2013-09-05 Thread Wayne Werner
On Thu, 29 Aug 2013, Andreas Ecaz wrote: I've decided to go with Flask! It's now running on UWSGI with NGINX. Hopefully I can get some stuff done :) @Chris “Kwpolska” Warrick I just don't like the big frameworks, for me there is too much magic going on. I'm a huge fan of Flask - I also fi

THE POPULATION OF MUSLIMS

2013-09-05 Thread bv4bv4bv4
THE POPULATION OF MUSLIMS Islam today is a global religion. It is no longer confined to Muslim majority countries such as Egypt, Saudi Arabia or Indonesia. Small but significant communities exist across Europe, the Americas and Australasia. For some time Muslims have been an invisible pre

Newbie question related to Boolean in Python

2013-09-05 Thread skwyang93
1. bear_moved = False 2. 3. while True: 4.next = raw_input("> ") 5. 6.if next == "take honey": 7.dead("The bear looks at you then slaps your face off.") 8.elif next == "taunt bear" and not bear_moved: 9.print "The bear has moved fro

Multiprocessing / threading confusion

2013-09-05 Thread Paul Pittlerson
I'm trying to understand data handling using multiprocessing and threading, haven't gotten very far without running into problems. This is my code: #!/usr/bin/python from multiprocessing import Process from multiprocessing import Queue from multiprocessing import current_process from threading

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 18:59:42 +0300, Ferrous Cranus wrote: > but tell me please mailx and senmail are 2 differnt MTAs or mailx makes > use of sendmail MTA? Nikos, I know you can write English better than that. Are you deliberately trying to look less intelligent? -- Steven -- https://mail.pyt

Bundle pip with Python for Windows users

2013-09-05 Thread Andrew Pennebaker
In the future, could Python for Windows come with pip? It would simplify package installation for users and developers, often a quite involved and tricky process. http://www.pip-installer.org/en/latest/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Importing Definitions

2013-09-05 Thread Skip Montanaro
>> You can! Any name will work, functions aren't special. >> >> from module1 import method1, A, B, C, D, E > > Better practice is to use: > > import module1 > print module1.A > print module2.B > > and so forth since that makes it far more clear what you are doing and > where they come from. But it'

Re: Could someone please paraphrase this statement about variables and functions in Python?

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 09:37:57 -0700, jsrig88 wrote: > I am going through the tutorials on docs.python.org, and I came across > this excerpt from http://docs.python.org/3/tutorial/controlflow.html: > > "The execution of a function introduces a new symbol table used for the > local variables of the

Re: Could someone please paraphrase this statement about variables and functions in Python?

2013-09-05 Thread Terry Reedy
On 9/5/2013 12:37 PM, jsri...@gmail.com wrote: I am going through the tutorials on docs.python.org, and I came across this excerpt from http://docs.python.org/3/tutorial/controlflow.html: "The execution of a function introduces a new symbol table used for the local variables of the function. M

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 12:36:57 +0300, Ferrous Cranus wrote: > ni...@superhost.gr [~]# cat /tmp/err.out sendmail => 13-09-05 12:20:53 > (, TypeError("sendmail() missing 2 required > positional arguments: 'to_addrs' and 'msg'",), 0x7f3fb4f44488>) ni...@superhost.gr [~]# > > but all of the needed ar

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 17:59:42 UTC+2 schrieb Ferrous Cranus: > ok i will ask to sendmail list Take a look at: > but tell me please mailx and senmail are 2 differnt MTAs or mailx makes > use of sendmail MTA? mailx is a MUA (Mail User Agent) used to read and write mails. For sending mai

Re: Importing Definitions

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 22:50:35 +1000, Chris Angelico wrote: > On Thu, Sep 5, 2013 at 10:39 PM, Azureaus > wrote: >> Now I know if there was a method I wanted to reference I could do >> something like this in module2. from module1 import method1 >> >> which would mean from that point on I could jus

Re: Could someone please paraphrase this statement about variables and functions in Python?

2013-09-05 Thread Neil Cerutti
On 2013-09-05, jsri...@gmail.com wrote: > I am going through the tutorials on docs.python.org, and I came > across this excerpt from > http://docs.python.org/3/tutorial/controlflow.html: > > "The execution of a function introduces a new symbol table used > for the local variables of the function.

Re: Could someone please paraphrase this statement about variables and functions in Python?

2013-09-05 Thread Joel Goldstick
On Thu, Sep 5, 2013 at 12:40 PM, wrote: > Could someone please paraphrase this statement about variables and functions > in Python? > > I am going through the tutorials on docs.python.org, and I came across this > excerpt from http://docs.python.org/3/tutorial/controlflow.html: > > "The executi

Re: How to exit a cgi file after a download

2013-09-05 Thread inq1ltd
There is no such thing as a "cgi form" or "cgi window". Your cgi script runs when the user requests a Web page, generates a page, and then ends. At that point, python has stopped running. If your want the client's browser window to close, that's not a python problem. If you want to invalidate

Re: Could someone please paraphrase this statement about variables and functions in Python?

2013-09-05 Thread newspost2012
Am Donnerstag, 5. September 2013 19:05:17 UTC+2 schrieb Joel Goldstick: > On Thu, Sep 5, 2013 at 12:40 PM, wrote: >> ... >> Even as a professional programmer, I'm not really able to follow this. >> It appears to be self-contradictory, amgiguous, incomplete, and possessive >> of logical missteps.

Could someone please paraphrase this statement about variables and functions in Python?

2013-09-05 Thread jsrig88
I am going through the tutorials on docs.python.org, and I came across this excerpt from http://docs.python.org/3/tutorial/controlflow.html: "The execution of a function introduces a new symbol table used for the local variables of the function. More precisely, all variable assignments in a fun

Re: Could someone please paraphrase this statement about variables and functions in Python?

2013-09-05 Thread Dave Angel
On 5/9/2013 12:37, jsri...@gmail.com wrote: > I am going through the tutorials on docs.python.org, and I came across this > excerpt from http://docs.python.org/3/tutorial/controlflow.html: > > "The execution of a function introduces a new symbol table used for the local > variables of the functi

Could someone please paraphrase this statement about variables and functions in Python?

2013-09-05 Thread jsrig88
Could someone please paraphrase this statement about variables and functions in Python? I am going through the tutorials on docs.python.org, and I came across this excerpt from http://docs.python.org/3/tutorial/controlflow.html: "The execution of a function introduces a new symbol table used fo

Re: semicolon at end of python's statements

2013-09-05 Thread Duncan Booth
Chris Angelico wrote: > On Fri, Sep 6, 2013 at 12:05 AM, Jeremy Sanders > wrote: >> Chris Angelico wrote: >> >>> Because s/he thought it made for better code, or as a joke? Usually I >>> see this sort of thing as the latter... It was intended for clearer code, which is true if you don't like cur

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Piet van Oostrum
Ferrous Cranus writes: > it just need the whole concatenation thing in parenthesis so to be > executed first but now: > > > # send the mail > server.sendmail( [ MESSAGE ] ) > > or > > # send the mail > server.

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 6:00 μμ, ο/η feedthetr...@gmx.de έγραψε: Am Donnerstag, 5. September 2013 15:38:25 UTC+2 schrieb Ferrous Cranus: Στις 5/9/2013 4:29 μμ, ο/η feedthetroll έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python scri

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 15:38:25 UTC+2 schrieb Ferrous Cranus: > Στις 5/9/2013 4:29 μμ, ο/η feedthetroll έγραψε: >>> uses DoveCot as enaled mail server but i have no idea how to >>> setip up to work. >>> i cannot connect to it via my python script. >> OK, I should have been more exact: >>

Pcap network buffer

2013-09-05 Thread hareksu
Hi all, I've been writing an application for capturing multiple HD network video streams using a linux laptop with packet capture. For this I've used pcapy, which wraps parts of libpcap. The problem is that with the default network buffer size, I end up with corrupted video, so I changed the d

Re: semicolon at end of python's statements

2013-09-05 Thread Chris Angelico
On Fri, Sep 6, 2013 at 12:05 AM, Jeremy Sanders wrote: > Chris Angelico wrote: > >> Because s/he thought it made for better code, or as a joke? Usually I >> see this sort of thing as the latter... > > http://oldhome.schmorp.de/marc/bournegol.html > http://utcc.utoronto.ca/~cks/space/blog/programmi

Re: semicolon at end of python's statements

2013-09-05 Thread Grant Edwards
On 2013-09-05, Duncan Booth wrote: > Someone I knew actually used these definitions when writing C in a > Pascalish, Algol68ish style (if I remembered them correctly): > > #define IF if((( > #define AND ))&&(( > #define OR )||( > #define THEN ))){ > #define ELSE }else{ > #define FI } Yep, I once

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 4:38 μμ, ο/η Ferrous Cranus έγραψε: Στις 5/9/2013 4:29 μμ, ο/η feedthetr...@gmx.de έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python script. OK, I should have been more exact: To send mails you need a "smtp-

Re: semicolon at end of python's statements

2013-09-05 Thread Jeremy Sanders
Chris Angelico wrote: > Because s/he thought it made for better code, or as a joke? Usually I > see this sort of thing as the latter... http://oldhome.schmorp.de/marc/bournegol.html http://utcc.utoronto.ca/~cks/space/blog/programming/BourneGol Jeremy -- https://mail.python.org/mailman/listinf

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 4:29 μμ, ο/η feedthetr...@gmx.de έγραψε: uses DoveCot as enaled mail server but i have no idea how to setip up to work. i cannot connect to it via my python script. OK, I should have been more exact: To send mails you need a "smtp-server" (MTA - Mail Transfer Agent, Message Transp

Re: Importing Definitions

2013-09-05 Thread Ethan Furman
On 09/05/2013 05:39 AM, Azureaus wrote: This will throw an error saying "global name 'A' is not defined." In Python, "global" really means "module-level". Now I know if there was a method I wanted to reference I could do something like this in module2. from module1 import method1 which wo

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 14:36:19 UTC+2 schrieb Ferrous Cranus: > Στις 5/9/2013 3:18 μμ, ο/η feedthetroll έγραψε: >> Beeing serious: >> Which mailserver did you install? postfix, exim, sendmail, ...? >> Check that and read its dokumentation how to configure authentication. >> Then you can u

Re: split lines from stdin into a list of unicode strings

2013-09-05 Thread Kurt Mueller
Am 05.09.2013 10:33, schrieb Peter Otten: > Kurt Mueller wrote: >> Am 29.08.2013 11:12, schrieb Peter Otten: >>> kurt.alfred.muel...@gmail.com wrote: On Wednesday, August 28, 2013 1:13:36 PM UTC+2, Dave Angel wrote: > On 28/8/2013 04:32, Kurt Mueller wrote: >> For some text manipulatio

Plot in MatPlotLib

2013-09-05 Thread Chandru Rajendran
Hi all, I have written the types to plot in Matplotlib. #Usage Type 1 plt.plot(t,s) plt.show() #Usage type 2 fig=plt.figure() ax=fig.add_subplot(111) ax.plot(t,s) plt.show() I want difference between these types and other ways in which we can use plot. Thanks & Regards, Chandru

Re: Importing Definitions

2013-09-05 Thread Peter Otten
Azureaus wrote: > This will throw an error saying "global name 'A' is not defined." > > Now I know if there was a method I wanted to reference I could do > something like this in module2. > from module1 import method1 What a crazy idea! How could anyone ever think of that! > which would mean

Re: Importing Definitions

2013-09-05 Thread Chris Angelico
On Thu, Sep 5, 2013 at 10:39 PM, Azureaus wrote: > Lets say I have some definitions in a module1.py e.g. > > import sys > A,B,C,D,E = range(5) > def method1(): > more code > end > > Then a second module module2.py where I wish to use these definitions > import module1.py > print A > > This will th

RE: Cross Platform

2013-09-05 Thread Chandru Rajendran
Thank you William. -Original Message- From: William Ray Wing [mailto:w...@mac.com] Sent: Thursday, September 05, 2013 6:18 PM To: Chandru Rajendran Cc: William Ray Wing; python-list@python.org Subject: Re: Cross Platform On Sep 4, 2013, at 11:47 PM, Chandru Rajendran wrote: > Hi all,

Re: Find out where a class is used throughout a program.

2013-09-05 Thread Chris Angelico
On Thu, Sep 5, 2013 at 10:42 PM, Azureaus wrote: > I think I'm going to be a regular here :) Glad to have you around! Interesting and thoughtful questions, as much as informative answers, are what make this list/group worth being in. I originally came to ask a question, hung around to answer a fe

Re: Cross Platform

2013-09-05 Thread William Ray Wing
On Sep 4, 2013, at 11:47 PM, Chandru Rajendran wrote: > Hi all, > > I have a doubt regarding the python cross platform. I think you mean you have a question... > If we write Class in windows ,whether we can without any modifications in > Linux, if so then how about the GUI programming and Li

Re: Find out where a class is used throughout a program.

2013-09-05 Thread Azureaus
On Wednesday, 4 September 2013 17:32:28 UTC+1, Azureaus wrote: > Hi All, > > I'm fairly new to Python so please forgive me If I sound confused or include > anything a bit irrelevant. I've had some great responses from this group > already though so thanks. > > > > I have a source file that i

PyDev 2.8.2 released

2013-09-05 Thread Fabio Zadrozny
Hi All, PyDev 2.8.2 has been released Details on PyDev: http://pydev.org Details on its development: http://pydev.blogspot.com Become a supporter and help to keep it going forward: https://sw-brainwy.rhcloud.com/ Release Highlights: --- * The type inference engine no

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 3:18 μμ, ο/η feedthetr...@gmx.de έγραψε: Beeing serious: Which mailserver did you install? postfix, exim, sendmail, ...? Check that and read its dokumentation how to configure authentication. Then you can use it. And if you get stuck: A python list is NOT THE RIGHT PLACE to ask ques

Importing Definitions

2013-09-05 Thread Azureaus
Hi all, Thank you all for your help so far in the group. Lets say I have some definitions in a module1.py e.g. import sys A,B,C,D,E = range(5) def method1(): more code end Then a second module module2.py where I wish to use these definitions import module1.py print A This will throw an error sa

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 13:20:23 UTC+2 schrieb Ferrous Cranus: > Στις 5/9/2013 2:02 μμ, ο/η feedthetroll έγραψε: >>> Am 03.09.2013 09:48, schrieb Ferrous Cranus: Is there a workaround for that please? >>> Yes, use/setup your own mailserver. Google will not allow you to send >>> as ("i

Re: how to detect comment in source code file ?

2013-09-05 Thread Piet van Oostrum
Dennis Lee Bieber writes: > On Tue, 3 Sep 2013 23:05:57 -0700 (PDT), vnkumbh...@gmail.com declaimed the > following: > >>how works python interpreter for finding comment ? >>if possible find nested comment ? > > Python does not have "nested comment". Comments begin at any # > character that

Using netrc when user password is blank

2013-09-05 Thread loial
I am having issues using the netrc package for users where the password is blank. It works fine for users with password is not blank and is spacified in the .netrc I am not sure if this is an issue with the .netrc file or my use of the .netrc package. .netrc file looks like : machine myserve

Re: semicolon at end of python's statements

2013-09-05 Thread Chris Angelico
On Thu, Sep 5, 2013 at 9:33 PM, Duncan Booth wrote: > Someone I knew actually used these definitions when writing C in a Pascalish, > Algol68ish > style (if I remembered them correctly): > > #define IF if((( > #define AND ))&&(( > #define OR )||( > #define THEN ))){ > #define ELSE }else{ > #defin

Re: semicolon at end of python's statements

2013-09-05 Thread Duncan Booth
Chris Angelico wrote: > On Thu, Aug 29, 2013 at 10:18 AM, Mohsen Pahlevanzadeh > wrote: >> Dear all, >> >> I'm C++ programmer and unfortunately put semicolon at end of my >> statements in python. >> >> Quesion: >> What's really defferences between putting semicolon and don't put? > > Very little

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 2:02 μμ, ο/η feedthetr...@gmx.de έγραψε: Am 03.09.2013 09:48, schrieb Ferrous Cranus: Is there a workaround for that please? Yes, use/setup your own mailserver. Google will not allow you to send as ("i.e., From:") an arbitrary address besides the one you've authenticated as. And

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread feedthetroll
Am Donnerstag, 5. September 2013 12:48:54 UTC+2 schrieb Ferrous Cranus: > is there way to alter tha FROM field to the one used in the webform by > the visitor? Yes it ist. You did it in your code. But gmail alters it AFTER you. So again, you did not care to read / understand the answers you got.

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 1:33 μμ, ο/η Dave Angel έγραψε: On 5/9/2013 05:36, Ferrous Cranus wrote: ni...@superhost.gr [~]# cat /tmp/err.out sendmail => 13-09-05 12:20:53 (, TypeError("sendmail() missing 2 required positional arguments: 'to_addrs' and 'msg'",), ) ni...@superhost.gr [~]# but all of the n

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Dave Angel
On 5/9/2013 05:36, Ferrous Cranus wrote: > > > ni...@superhost.gr [~]# cat /tmp/err.out > sendmail => 13-09-05 12:20:53 (, > TypeError("sendmail() missing 2 required positional arguments: > 'to_addrs' and 'msg'",), ) > ni...@superhost.gr [~]# > > but all of the needed args are within MESSAGE. >

Buy carisoprodol online

2013-09-05 Thread buypharmacypill
Soma or Carisoprodol is basically a muscle relaxing medicine which is used in combination to cure muscle tightening and muscles pains after an injury or because of some other musculoskeletal condition. Soma or carisoprodol drugs have the composition called Carisoprodol which is used for treatmen

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Στις 5/9/2013 12:34 μμ, ο/η Ferrous Cranus έγραψε: Even though these examples are with ints, not strings, the precedence is the same. Go back to your code. Read your code. Does it look closer to this: 8 + 2 % 5 or this? (8 + 2) % 5 Can you solve this problem now? Yes Steven, according to

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Ferrous Cranus
Even though these examples are with ints, not strings, the precedence is the same. Go back to your code. Read your code. Does it look closer to this: 8 + 2 % 5 or this? (8 + 2) % 5 Can you solve this problem now? Yes Steven, according to your precedence example now i can: MESSAGE = ( "Fro

Re: Find out where a class is used throughout a program.

2013-09-05 Thread Dave Angel
On 4/9/2013 12:32, Azureaus wrote: > Hi All, > I'm fairly new to Python so please forgive me If I sound confused or include > anything a bit irrelevant. I've had some great responses from this group > already though so thanks. > > I have a source file that is laid out roughly like > > class: > c

Re: Cannot form correctly the FORM part of the header when sending mail

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 09:31:41 +0300, Ferrous Cranus wrote: [...] > UBJECT = u"SuperHost Guest Mail από τον [ %s ]" % FROM > > MESSAGE = "From: %s\n" + "To: %s\n" + "Subject: %s\n\n%s\n" % (FROM, TO, > SUBJECT, MESSAGE) > MESSAGE = MESSAGE.encode('utf-8') > > > but i still g

Python KeyError

2013-09-05 Thread Robert Gliguroski
Dear Sirs, I would like to ask a question that may seem a little off-topic but since it is related to Python and I really cannot solve it - I thought to try to ask for some help here. I have installed OpenERP, an open source ERP software and then I installed an extension for connecting it to M

Re: split lines from stdin into a list of unicode strings

2013-09-05 Thread Peter Otten
Kurt Mueller wrote: > Am 29.08.2013 11:12, schrieb Peter Otten: >> kurt.alfred.muel...@gmail.com wrote: >>> On Wednesday, August 28, 2013 1:13:36 PM UTC+2, Dave Angel wrote: On 28/8/2013 04:32, Kurt Mueller wrote: > For some text manipulation tasks I need a template to split lines > f

Re: NameError: global name '' is not defined , but a bit differences

2013-09-05 Thread Terry Reedy
On 9/5/2013 1:38 AM, Benjamin Kaplan wrote: On Wed, Sep 4, 2013 at 9:17 PM, Mohsen Pahlevanzadeh wrote: i get the error : NameError: global name 'ui' is not defined Complete question is at : http://stackoverflow.com/questions/18627608/nameerror-global-name-is-not-defined-but-differences M

Re: split lines from stdin into a list of unicode strings

2013-09-05 Thread Kurt Mueller
Am 29.08.2013 11:12, schrieb Peter Otten: > kurt.alfred.muel...@gmail.com wrote: >> On Wednesday, August 28, 2013 1:13:36 PM UTC+2, Dave Angel wrote: >>> On 28/8/2013 04:32, Kurt Mueller wrote: For some text manipulation tasks I need a template to split lines from stdin into a list of str

Re: Beginner's guide to Python

2013-09-05 Thread Steven D'Aprano
On Thu, 05 Sep 2013 14:14:34 +1000, Chris Angelico wrote: > ...Python's object model tends to be less well suited to massive > scaling; That's probably true. > I don't know about PyPy and other Pythons, but certainly > CPython isn't designed to run on arbitrary numbers of cores (once you go >

Cross Platform

2013-09-05 Thread Chandru Rajendran
Hi all, I have a doubt regarding the python cross platform. If we write Class in windows ,whether we can without any modifications in Linux, if so then how about the GUI programming and Libraries. Please provide needful information. Thanks, Chandru CAUTION - Disclaimer