Re: non-copy slices

2009-11-19 Thread Ethan Furman
Themis Bourdenas wrote: On Thu, Nov 19, 2009 at 2:44 PM, Ethan Furman > wrote: So "shallow copy" == "new label created for existing object". So is your desired behavior to write back to the original list if your sub-list is modified? In other words, you a

Re: hex

2009-11-19 Thread Rhodri James
On Thu, 19 Nov 2009 02:29:59 -, hong zhang wrote: List, I want to input hex number instead of int number. in type="int" in following, parser.add_option("-F", "--forcemcs", dest="force_mcs", type="int", default=0, help="index of 11n mcs table. Default: 0.") How can I do it? Assu

Re: make two tables having same orders in both column and row names

2009-11-19 Thread Simon Forman
On Wed, Nov 18, 2009 at 3:57 PM, Ping-Hsun Hsieh wrote: > Hi, > > I would like to compare values in two table with same column and row names, > but with different orders in column and row names. > For example, table_A in a file looks like the follows: > AA100   AA109   AA101   AA103   AA102 > BB1

Re: Python Will Not Send Email!!

2009-11-19 Thread Kev Dwyer
On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: Hello Victor, There are some pages on the internet that suggest that this problem my be caused by a module named email.py (or email.pyc) in your pythonpath. If you try import smtplib in the interpreter do you get this error message?

Re: Python-list Digest, Vol 74, Issue 245

2009-11-19 Thread Threader Slash
On Thu, Nov 19, 2009 at 7:05 PM, wrote: > > -- -- > From: Threader Slash > To: python-list@python.org > Date: Thu, 19 Nov 2009 14:51:27 +1100 > Subject: Qt Python radiobutton: activate event > Hi Guys, > > I am trying to get the choice made by the user on Python Qt with > radiob

Re: make two tables having same orders in both column and row names

2009-11-19 Thread Emile van Sebille
On 11/18/2009 12:57 PM Ping-Hsun Hsieh said... Hi, I would like to compare values in two table with same column and row names, but with different orders in column and row names. For example, table_A in a file looks like the follows: AA100 AA109 AA101 AA103 AA102 BB1 2 9

Re: Communication between python and wxWidgets.. Help needed...

2009-11-19 Thread Dave Angel
Jonas Geiregat wrote: Op 19-nov-09, om 09:42 heeft Jebagnana Das het volgende geschreven: Hi Friends, I want to thank you all for doing a great job.. I seek your suggestions and valuable guidance regarding two things. 1) I'm using python 3.1.1 and wxWidgets for GUI developm

Re: mechanize login problem with website

2009-11-19 Thread elca
elca wrote: > > Hello > > I'm making auto-login script by use mechanize python. > > Before I was used mechanize with no problem, but http://www.gmarket.co.kr > in this site I couldn't make it . > > whenever i try to login always login page was returned even with correct > gmarket id , pass,

Re: non-copy slices

2009-11-19 Thread Themis Bourdenas
On Thu, Nov 19, 2009 at 2:44 PM, Ethan Furman wrote: > Please don't top post. :) > > So "shallow copy" == "new label created for existing object". > > So is your desired behavior to write back to the original list if your > sub-list is modified? In other words, you are creating a window onto an

Re: Python Will Not Send Email!!

2009-11-19 Thread Carsten Haese
Victor Subervi wrote: > Hi; > I created this testMail.py file as root: > > #!/usr/bin/env python > import smtplib > session = smtplib.SMTP("localhost") > subject = "Hello, " > header = "Subject: %s \r\nContent-type: text/html; charset=utf-8\r\n\r\n" > message = "world!" > email_from = "vic...@is.a

Re: Communication between python and wxWidgets.. Help needed...

2009-11-19 Thread Jonas Geiregat
Op 19-nov-09, om 09:42 heeft Jebagnana Das het volgende geschreven: Hi Friends, I want to thank you all for doing a great job.. I seek your suggestions and valuable guidance regarding two things. 1) I'm using python 3.1.1 and wxWidgets for GUI development in my project ..

Re: Writing a Carriage Return in Unicode

2009-11-19 Thread Doug
Hi! Thanks for clearing this up!! -- http://mail.python.org/mailman/listinfo/python-list

make two tables having same orders in both column and row names

2009-11-19 Thread Ping-Hsun Hsieh
Hi, I would like to compare values in two table with same column and row names, but with different orders in column and row names. For example, table_A in a file looks like the follows: AA100 AA109 AA101 AA103 AA102 BB1 2 9 2.3 1 28 BB3 12 9 2.3

Re: python and web pages

2009-11-19 Thread Gerhard Häring
Daniel Dalton wrote: > Hi, > > Here is my situation: > I'm using the command line, as in, I'm not starting gnome or kde (I'm on > linux.) > I have a string of text attached to a variable,. So I need to use one of > the browsers on linux, that run under the command line, eg. lynx, > elinks, links,

Re: Python Will Not Send Email!!

2009-11-19 Thread Victor Subervi
On Thu, Nov 19, 2009 at 11:28 AM, Victor Subervi wrote: > Hi; > I created this testMail.py file as root: > > #!/usr/bin/env python > import smtplib > session = smtplib.SMTP("localhost") > subject = "Hello, " > header = "Subject: %s \r\nContent-type: text/html; charset=utf-8\r\n\r\n" > message = "w

Python Will Not Send Email!!

2009-11-19 Thread Victor Subervi
Hi; I created this testMail.py file as root: #!/usr/bin/env python import smtplib session = smtplib.SMTP("localhost") subject = "Hello, " header = "Subject: %s \r\nContent-type: text/html; charset=utf-8\r\n\r\n" message = "world!" email_from = "vic...@is.awesome" email_to = ["em...@myhost.com"] se

Re: non-copy slices

2009-11-19 Thread Rami Chowdhury
On Thu, 19 Nov 2009 02:39:42 -0800, wrote: Second and more importantly it's the performance penalty from allocating a large number of lists produced from the slices and the copy of the references. Ah, I see what you were getting at -- thanks for clarifying. On Thu, Nov 19, 2009 at 3:00

Re: A Good Mailer

2009-11-19 Thread Victor Subervi
On Wed, Nov 18, 2009 at 6:30 PM, Nick Stinemates wrote: > On Wed, Nov 18, 2009 at 03:27:11PM -0400, Victor Subervi wrote: > > Hi; > > I need a good mailer that will enable me to mail email from web forms. > > smtplib > > > Suggestions? > > silly example.. > > #!/usr/bin/env python > import smtplib

Re: non-copy slices

2009-11-19 Thread Ethan Furman
Please don't top post. :) tbour...@doc.ic.ac.uk wrote: On Thu, Nov 19, 2009 at 3:00 AM, Rami Chowdhury mailto:rami.chowdh...@gmail.com>> wrote: I'm not sure you're understanding the point others have been making. A list item is merely another reference to an existing object -- it

Re: non-copy slices

2009-11-19 Thread Daniel Stutzbach
On Wed, Nov 18, 2009 at 9:00 PM, Rami Chowdhury wrote: > I'm not sure you're understanding the point others have been making. A > list item is merely another reference to an existing object -- it > doesn't copy the object in any way. > It still has to copy the reference, though. That takes O(n)

Re: getting properly one subprocess output

2009-11-19 Thread Jean-Michel Pichavant
Nobody wrote: On Wed, 18 Nov 2009 12:25:14 +0100, Jean-Michel Pichavant wrote: I'm currently inspecting my Linux process list, trying to parse it in order to get one particular process (and kill it). I ran into an annoying issue: The stdout display is somehow truncated (maybe a terminal len

Re: non-copy slices

2009-11-19 Thread tbourden
No I'm well aware that there is no deep copy of the objects and the lists only keep references to the objects and in essence they have the same objects in there. But this doesn't mean they are the same list. Modifications to slices are not written back to the original list. x = range(5) y = x[1:3]

Communication between python and wxWidgets.. Help needed...

2009-11-19 Thread Jebagnana Das
Hi Friends, I want to thank you all for doing a great job.. I seek your suggestions and valuable guidance regarding two things. 1) I'm using python 3.1.1 and wxWidgets for GUI development in my project .. I want to have a half-duplex communication between widgets and python(say pa

Re: python gui builders

2009-11-19 Thread sturlamolden
On 18 Nov, 20:19, Dave Cook wrote: > If it's an issue for your project, I suggest wxPython.  It's > cross-platform, fairly complete, and extensible.  But the API is > clunky compared to Qt. Not if we use wxFormBuilder 3.1. -- http://mail.python.org/mailman/listinfo/python-list

Re: is there any FIX message handle modules in Python?

2009-11-19 Thread Simon Hibbs
On 19 Nov, 05:25, alex23 wrote: > On Nov 19, 3:21 pm, "Stephen.Wu" <54wut...@gmail.com> wrote: > > > FIX message is the "Financial information Exchange" protocol > > messages... > > any 3rd libs we have? > > You mean like this one that was the first result when I googled > 'python "financial infor

Python 3.1 cx_Oracle 5.0.2 "ImportError: DLL load failed: The specified module could not be found."

2009-11-19 Thread André
Hello, I'm trying to get Python 3.1 and cx_Oracle 5.02 (cx_Oracle-5.0.2-10g.win32-py3.0.msi) to connect to an Oracle 11.1.0.7.0 database via OraClient10g 10.2.0.3.0 with Pydev 1.5.1.1258496115 in Eclipse 20090920-1017 on Windows XP SP 3 v2002. The import cx_Oracle line appears as an unresolved imp