Re: about suds and soap and parameters.

2014-11-19 Thread Marko Rauhamaa
dieter : > The [namespace] prefix itself is without semantic meaning; it is just > a shorthand for an "uri" which ideally points to some relevant > definitions. The WSDL will have information for this "prefix -> uri" > mapping. You will need to look there, in order to determine precisely, > what t

Re: about suds and soap and parameters.

2014-11-19 Thread dieter
JustSomeGuy writes: > I'm trying to call a soap method with suds. > The parameter however is not straight forward. > > > queryContent ( > xs:string mpiId, > tmPidAndIssuer[] idsAndIssuers, > tmPersonName name, > xs:string patientAge, > tmAccessionNumberAndIssuer accNumAndI

Re: Beginner

2014-11-19 Thread Steven D'Aprano
On Wed, 19 Nov 2014 22:40:09 -0800, Karthik Reddy wrote: > Hi all > > I am python beginner I am trying the below code and getting incorrect > syntax in python (3.3.2) You need to indent the while and if blocks. Instead of writing: while running: code you need to write: while running: co

Beginner

2014-11-19 Thread Karthik Reddy
Hi all I am python beginner I am trying the below code and getting incorrect syntax in python (3.3.2) number = 23 running = True while running: guess = int(raw_input('Enter an integer : ')) if guess == number: print ("Congratulations, you guessed it.") running = False # this causes the while lo

Re: Is StopIteration a singleton?

2014-11-19 Thread Chris Angelico
On Thu, Nov 20, 2014 at 4:09 PM, Steven D'Aprano wrote: > StopIteration is not a singleton class. > > py> e1 = StopIteration() > py> e2 = StopIteration() > py> e1 is e2 > False > > It it were, you couldn't support "return value" from generators, since > the return value gets turned into the argume

Re: Is StopIteration a singleton?

2014-11-19 Thread Steven D'Aprano
On Thu, 20 Nov 2014 12:52:25 +1100, Chris Angelico wrote: > While poking about the cpython source tree with reference to PEP 479, I > came across this: > > https://docs.python.org/3.5/library/marshal.html > > """singletons None, Ellipsis and StopIteration can also be marshalled > and unmarshalle

Re: Most gratuitous comments

2014-11-19 Thread Chris Angelico
On Thu, Nov 20, 2014 at 3:58 PM, Steven D'Aprano wrote: > And the award for the most gratuitous comments before an import goes to > one of my (former) workmates, who wrote this piece of code: > > # Used for base64-decoding. > import base64 > # Used for ungzipping. > import gzip Well hey. Good to

Most gratuitous comments

2014-11-19 Thread Steven D'Aprano
And the award for the most gratuitous comments before an import goes to one of my (former) workmates, who wrote this piece of code: # Used for base64-decoding. import base64 # Used for ungzipping. import gzip -- Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: What does this line of code mean?

2014-11-19 Thread Rick Johnson
On Sunday, November 16, 2014 3:45:58 PM UTC-6, Abdul Abdul wrote: > I just came across the following line of code: > > outputfile = os.path.splitext(infile)[0] + ".jpg" > > Can you kindly explain to me what those parts mean? What that line of code "means" is: The author is far too dependent o

Re: How to access Qt components loaded from file?

2014-11-19 Thread Juan Christian
Thanks, it's working using QTimer. The thing is that whenever the program is going to do something, in my case, draw a new QGroupBox with some components inside and put it in the Form (I'm using VBoxLayout in the main form) the program freezes, and I'm using very simple components just for testing.

Re: tkinter mainloop

2014-11-19 Thread Rick Johnson
On Wednesday, November 19, 2014 5:23:38 AM UTC-6, Terry Reedy wrote: > On 11/19/2014 3:46 AM, ast wrote: > > mainloop() is a window method which starts the event > > manager which tracks for events (mouse, keyboard ...) to > > be send to the window. But if I forget the > > root.mainloop() in my pro

Is StopIteration a singleton?

2014-11-19 Thread Chris Angelico
While poking about the cpython source tree with reference to PEP 479, I came across this: https://docs.python.org/3.5/library/marshal.html """singletons None, Ellipsis and StopIteration can also be marshalled and unmarshalled.""" StopIteration is a type. I suppose it's still kinda true that ther

about suds and soap and parameters.

2014-11-19 Thread JustSomeGuy
I'm trying to call a soap method with suds. The parameter however is not straight forward. queryContent ( xs:string mpiId, tmPidAndIssuer[] idsAndIssuers, tmPersonName name, xs:string patientAge, tmAccessionNumberAndIssuer accNumAndIssuer, xs:string studyUID, xs:s

Re: How modules work in Python

2014-11-19 Thread Chris Angelico
On Thu, Nov 20, 2014 at 6:00 AM, wrote: > I only started reading this list about a month ago, and from what I've seen, > being pedantic is pretty much par for the course. Usually in a good way. :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Working with HTML5 documents

2014-11-19 Thread Novocastrian_Nomad
On Wednesday, November 19, 2014 2:08:27 PM UTC-7, Denis McMahon wrote: > So what I'm looking for is a method to create an html5 document using "dom > manipulation", ie: > > doc = new htmldocument(doctype="HTML") > html = new html5element("html") > doc.appendChild(html) > head = new html5element("

Re: Error when trying to open an image

2014-11-19 Thread Denis McMahon
On Mon, 17 Nov 2014 02:03:01 +0100, Abdul Abdul wrote: > Thanks for your kind reply. Yes, it seemed it worked with an older > version than 3.x > > I got the following output: > > Process finished with exit code 0 > > So, what is the purpose of open() here? *STOP TOP-POSTING! IT@S GETTING ANNOY

Working with HTML5 documents

2014-11-19 Thread Denis McMahon
So what I'm looking for is a method to create an html5 document using "dom manipulation", ie: doc = new htmldocument(doctype="HTML") html = new html5element("html") doc.appendChild(html) head = new html5element("body") html.appendChild(head) body = new html5element("body") html.appendChild(body)

Re: How to access Qt components loaded from file?

2014-11-19 Thread Rob Gaddi
On Wed, 19 Nov 2014 20:47:31 + Juan Christian wrote: > Let's say that I want to call the site in a 5min interval. I'm currently > getting the info this way just for testing and to know that the 'core > engine' is working, and indeed, it's working: > > if __name__ == "__main__": > import sys

Re: How to access Qt components loaded from file?

2014-11-19 Thread Juan Christian
Let's say that I want to call the site in a 5min interval. I'm currently getting the info this way just for testing and to know that the 'core engine' is working, and indeed, it's working: if __name__ == "__main__": import sys app = QApplication(sys.argv) MainWindow = loadui("main.ui") def outpu

Re: Potential pitfalls when going from old-style to new-style classes

2014-11-19 Thread Chris Kaynor
On Wed, Nov 19, 2014 at 11:14 AM, Skip Montanaro wrote: > I discussion on the code-quality list got me thinking. Suppose I have > an old-style class in a 2.x app: > > class Foo: > def __init__(self): > blah blah blah > > I still use 2.x exclusively, but anytime I run pylint over a bit of >

Re: Potential pitfalls when going from old-style to new-style classes

2014-11-19 Thread Ethan Furman
On 11/19/2014 11:14 AM, Skip Montanaro wrote: > I discussion on the code-quality list got me thinking. Suppose I have > an old-style class in a 2.x app: > > class Foo: > def __init__(self): > blah blah blah > > I still use 2.x exclusively, but anytime I run pylint over a bit of > code and i

Potential pitfalls when going from old-style to new-style classes

2014-11-19 Thread Skip Montanaro
I discussion on the code-quality list got me thinking. Suppose I have an old-style class in a 2.x app: class Foo: def __init__(self): blah blah blah I still use 2.x exclusively, but anytime I run pylint over a bit of code and it complains that Foo is old-school, I make the obvious change to

Re: How modules work in Python

2014-11-19 Thread sohcahtoa82
On Tuesday, November 18, 2014 11:44:53 PM UTC-8, Larry Hudson wrote: > On 11/18/2014 12:59 PM, sohcah...@gmail.com wrote: > > On Tuesday, November 18, 2014 12:14:15 AM UTC-8, Larry Hudson wrote: > >> First, I'll repeat everybody else: DON'T TOP POST!!! > >> > >> On 11/16/2014 04:41 PM, Abdul Abdul

Re: Trouble getting full response content from PATCH request

2014-11-19 Thread John Gordon
In Cameron Simpson writes: > >The API uses the HTTP PATCH operation to set user passwords, and in > >case of unacceptable passwords, the response is supposed to be an HTML > >document containing a diagnostic message in the tag. > > > >When I submit my test data via a functional testing tool (S

Re: How modules work in Python

2014-11-19 Thread Steven D'Aprano
Larry Hudson wrote: > Your example may look the same (it uses the same dot syntax), but here it > is to resolve a namespace -- a module is not an object.  So yes, this is > still a function and not a method.  But we're getting rather pedantic > here. But not pedantic enough. Modules are, in fact

Re: tkinter mainloop

2014-11-19 Thread Terry Reedy
On 11/19/2014 3:46 AM, ast wrote: Hello mainloop() is a window method which starts the event manager which tracks for events (mouse, keyboard ...) to be send to the window. But if I forget the root.mainloop() in my program, it works well anyway, I cant see any failure. Why ? Second question, i

Re: How to group list of list with condition in Python

2014-11-19 Thread Peter Otten
Gundala Viswanath wrote: > I have the following list of lists that contains 6 entries: > > lol = [['a', 3, 1.01], ['x',5, 1.00],['k',7, 2.02],['p',8, 3.00], > ['b', 10, 1.09], >['f', 12, 2.03]] > > each list in lol contain 3 elements: > > ['a', 3, 1.01] > e1 e2 e3 > > The list abo

tkinter mainloop

2014-11-19 Thread ast
Hello mainloop() is a window method which starts the event manager which tracks for events (mouse, keyboard ...) to be send to the window. But if I forget the root.mainloop() in my program, it works well anyway, I cant see any failure. Why ? Second question, is it possible to cancel a main

ANN: eGenix mxODBC Connect 2.1.1 - Python Database Interface

2014-11-19 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Connect Python Database Interface Version 2.1.1 mxODBC Connect is our commercially supported client-server product for

How to group list of list with condition in Python

2014-11-19 Thread Gundala Viswanath
I have the following list of lists that contains 6 entries: lol = [['a', 3, 1.01], ['x',5, 1.00],['k',7, 2.02],['p',8, 3.00], ['b', 10, 1.09], ['f', 12, 2.03]] each list in lol contain 3 elements: ['a', 3, 1.01] e1 e2 e3 The list above is already sorted according to the e2 (i.e, 2nd