Re: Links and pointers to basics of soap and suds

2010-12-15 Thread John Nagle
On 12/15/2010 5:14 AM, Steve Holden wrote: On 12/15/2010 7:38 AM, srinivas hn wrote: Hi All, I am very new to the soap and its python client suds. Can anyone tell me how the actual will happens i nthe webservices including suds and soap API. That's a bit like saying "I need to go around the c

Re: O'Reilly Python Certification

2010-12-15 Thread Steve Holden
On 12/15/2010 4:21 PM, Stefan Sonnenberg-Carstens wrote: > Am 15.12.2010 22:11, schrieb Steve Holden: >> On 12/15/2010 3:40 PM, Tim Chase wrote: >>> On a more serious note, it would be interesting to know if it's possible >>> to test out of the certification for those of us that have been using >>>

Re: How to pop the interpreter's stack?

2010-12-15 Thread Tim Arnold
"Ethan Furman" wrote in message news:mailman.4.1292379995.6505.python-l...@python.org... > kj wrote: >> The one thing I don't like about this strategy is that the tracebacks >> of exceptions raised during the execution of __pre_spam include one >> unwanted stack level (namely, the one correspondi

Re: Calling function from another module

2010-12-15 Thread rantingrick
On Dec 15, 6:46 pm, craf wrote: > Hi. > > The query code is as follows: > > -- > import Tkinter > import tkMessageBox > > class App: >     def __init__(self, master): >         master.protocol("WM_DELETE_WINDOW",quit) > > def quit(): >     if tkM

Re: Help regarding pattern matching

2010-12-15 Thread Katie T
On Thu, Dec 16, 2010 at 2:34 AM, Chris Rebert wrote: > On Wed, Dec 15, 2010 at 6:22 PM, Katie T wrote: >> On Wed, Dec 15, 2010 at 9:21 PM, jupiter wrote: >>> Hi People, >>> >>> I need some ideas on how to find pattern in random data series like stock >>> chart. >>> >>> What I want is to be able

Re: Added Python, WSGI to XAMPP

2010-12-15 Thread Gerry Reno
On 12/15/2010 07:36 PM, Ian Kelly wrote: > On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno wrote: > >> The VIEW is the bits that stream out of the webserver back to the users >> browser. The CONTROLLER is the code that gathers all the pieces from >> the model and constructs the python code that is

Re: Help regarding pattern matching

2010-12-15 Thread Chris Rebert
On Wed, Dec 15, 2010 at 6:22 PM, Katie T wrote: > On Wed, Dec 15, 2010 at 9:21 PM, jupiter wrote: >> Hi People, >> >> I need some ideas on how to find pattern in random data series like stock >> chart. >> >> What I want is to be able to find Head & Shoulder pattern in chart. > > Have a look at t

Re: Help regarding pattern matching

2010-12-15 Thread Katie T
On Wed, Dec 15, 2010 at 9:21 PM, jupiter wrote: > Hi People, > > > I need some ideas on how to find pattern in random data series like stock > chart. > > > What I want is to be able to find Head & Shoulder pattern in chart. Have a look at the references in: http://www.dpem.tuc.gr/fel/fm2009/Pap

Re: default argument in method

2010-12-15 Thread Hans-Peter Jansen
On Thursday 16 December 2010, 00:56:31 Steven D'Aprano wrote: > On Wed, 15 Dec 2010 21:10:05 +0100, Hans-Peter Jansen wrote: > > Since this is a major pitfall, it might be worth mentioning, that > > mutable default arguments are generally a bad idea, as the default > > arguments are evaluated just

Calling function from another module

2010-12-15 Thread craf
Hi. The query code is as follows: -- import Tkinter import tkMessageBox class App: def __init__(self, master): master.protocol("WM_DELETE_WINDOW",quit) def quit(): if tkMessageBox.askyesno('','Exit'): master.quit()

Re: Added Python, WSGI to XAMPP

2010-12-15 Thread Ian Kelly
On Mon, Dec 13, 2010 at 5:58 PM, Gerry Reno wrote: > The VIEW is the bits that stream out of the webserver back to the users > browser.  The CONTROLLER is the code that gathers all the pieces from > the model and constructs the python code that is then fed to the engine > that then creates the vie

Re: default argument in method

2010-12-15 Thread Steven D'Aprano
On Wed, 15 Dec 2010 21:10:05 +0100, Hans-Peter Jansen wrote: > Since this is a major pitfall, it might be worth mentioning, that > mutable default arguments are generally a bad idea, as the default > arguments are evaluated just once, hence e.g. using an empty list might > contain the items, that

Pyramid and MVC (split from: Re: Added Python, WSGI to XAMPP)

2010-12-15 Thread Gerry Reno
On 12/15/2010 05:03 PM, Chris Withers wrote: > On 14/12/2010 00:58, Gerry Reno wrote: >> What I really don't like right off is that Pyramid is contorting the MVC >> model > > That specific pattern, I'm afraid, is a little antiquated nowadays, > particularly when it comes to web apps... > >> The VIE

Re: Added Python, WSGI to XAMPP

2010-12-15 Thread Chris Withers
On 14/12/2010 00:58, Gerry Reno wrote: What I really don't like right off is that Pyramid is contorting the MVC model That specific pattern, I'm afraid, is a little antiquated nowadays, particularly when it comes to web apps... The VIEW is the bits that stream out of the webserver back to t

Re: O'Reilly Python Certification

2010-12-15 Thread Tim Chase
On 12/15/2010 03:11 PM, Steve Holden wrote: On 12/15/2010 3:40 PM, Tim Chase wrote: On a more serious note, it would be interesting to know if it's possible to test out of the certification for those of us that have been using Python for a long time. That's an interesting idea - let a bunch of

Re: Proposed changes to logging defaults

2010-12-15 Thread Gregory Ewing
Terry Reedy wrote: On 12/15/2010 3:46 AM, John Nagle wrote: You're assuming that the logging package has the right to blither on the default sys.stderr. The Python stdlib *already* assumes that it can write to stderr. Also ISTM that any program relying on nothing it calls ever writing to st

Help influence which tutorials are given at PyCon 2011

2010-12-15 Thread VanL
PyCon is made up of a number of different parts, each with its own goals. For the talks presented during the conference portion of PyCon, we go for both breadth and quality. There are enough different sessions and different tracks that each person can customize their PyCon experience according

Help regarding pattern matching

2010-12-15 Thread jupiter
Hi People, I need some ideas on how to find pattern in random data series like stock chart. What I want is to be able to find Head & Shoulder pattern in chart. Thanx Anil -- http://mail.python.org/mailman/listinfo/python-list

Re: O'Reilly Python Certification

2010-12-15 Thread Stefan Sonnenberg-Carstens
Am 15.12.2010 22:11, schrieb Steve Holden: On 12/15/2010 3:40 PM, Tim Chase wrote: On a more serious note, it would be interesting to know if it's possible to test out of the certification for those of us that have been using Python for a long time. That's an interesting idea - let a bunch of e

Re: O'Reilly Python Certification

2010-12-15 Thread Steve Holden
On 12/15/2010 3:40 PM, Tim Chase wrote: > On a more serious note, it would be interesting to know if it's possible > to test out of the certification for those of us that have been using > Python for a long time. That's an interesting idea - let a bunch of experienced Python users tell me what a l

Re: O'Reilly Python Certification

2010-12-15 Thread Tim Chase
On 12/15/2010 11:54 AM, Ethan Furman wrote: So I just got an e-mail from O'Reilly and their School of Technology about a Python Certification course... anybody have any experience with this? It also says Steve Holden is involved -- is this True? you should just test for the truthiness without

Re: default argument in method

2010-12-15 Thread Hans-Peter Jansen
On Monday 13 December 2010, 18:14:27 Godson Gera wrote: > On Sun, Dec 12, 2010 at 5:05 PM, ernest wrote: > > Hi, > > > > I'd like to have a reference to an instance attribute as > > default argument in a method. It doesn't work because > > "self" is not defined at the time the method signature is

Re: Sage's Python

2010-12-15 Thread Akand Islam
On Dec 14, 1:51 pm, Emile van Sebille wrote: > On 12/14/2010 10:27 AM Akand Islam said... > > > On Dec 13, 4:33 pm, "Rhodri James" > > wrote: > >> On Fri, 10 Dec 2010 17:11:55 -, Akand Islam  wrote: > >>> In my system (Ubuntu 10.04) there are sage-4.6, python 2.6.5, tk8.5- > >>> dev installed.

Re: O'Reilly Python Certification

2010-12-15 Thread Steve Holden
On 12/15/2010 12:54 PM, Ethan Furman wrote: > So I just got an e-mail from O'Reilly and their School of Technology > about a Python Certification course... anybody have any experience with > this? > > It also says Steve Holden is involved -- is this True? (Steve?) > Well, it's not not not False

O'Reilly Python Certification

2010-12-15 Thread Ethan Furman
So I just got an e-mail from O'Reilly and their School of Technology about a Python Certification course... anybody have any experience with this? It also says Steve Holden is involved -- is this True? (Steve?) ~Ethan~ PS Can you tell I've been programming? ;) -- http://mail.python.org/ma

Re: Dealing with pywin32 on Linux

2010-12-15 Thread Stefan Sonnenberg-Carstens
Am 15.12.2010 13:58, schrieb Benedict Verheyen: Hi, I'm moving my development environment (python, Django, virtualenv) from Windows to Linux (Debian more specific). However, on one app (uses Django), i have a log on module that uses AD to authenticate users. It's based on the active_directory

New OpenOpt/FuncDesigner release 0.32

2010-12-15 Thread dmitrey
Hi all, I'm glad to inform you about new quarterly OpenOpt/FuncDesigner release (0.32): OpenOpt: * New class: LCP (and related solver) * New QP solver: qlcp * New NLP solver: sqlcp * New large-scale NSP (nonsmooth) solver gsubg. Currently it still requires lots of improvements (especially for cons

Re: Proposed changes to logging defaults

2010-12-15 Thread Terry Reedy
On 12/15/2010 3:46 AM, John Nagle wrote: You're assuming that the logging package has the right to blither on the default sys.stderr. The Python stdlib *already* assumes that it can write to stderr. Using logging instead will make it easier for app writers to do something else. -- Terry Jan

Re: Dealing with pywin32 on Linux

2010-12-15 Thread Benedict Verheyen
On 15/12/2010 15:17, Steve Holden wrote: >> >> Hi, >> >> thanks for your answer. >> For the moment, i only need to connect to AD to authenticate. >> But you raise a good point that if I need more functionality, I will >> encounter problems. >> > Benedict: > > Have you considered running a virtua

Re: while True or while 1

2010-12-15 Thread Steve Holden
On 12/15/2010 8:10 AM, Hans-Peter Jansen wrote: > On Tuesday 14 December 2010, 21:38:47 Arnaud Delobelle wrote: >> Christian Heimes writes: >> [...] >> >>> Tres Seavers once told me a joke like this: >>> >>>True = not not "Who's at the door?" # say it out loud! >>> >>> This was back in the old

Re: Dealing with pywin32 on Linux

2010-12-15 Thread Steve Holden
On 12/15/2010 8:51 AM, Benedict Verheyen wrote: > On 15/12/2010 14:37, Tim Golden wrote: > >> Well I'm not sure how far something like WINE would take you, >> but I suggest that trying to develop Windows-specific code in >> a Linux Dev environment is creating a rod for your own back. >> >> For the

Re: Dealing with pywin32 on Linux

2010-12-15 Thread Benedict Verheyen
On 15/12/2010 14:37, Tim Golden wrote: > Well I'm not sure how far something like WINE would take you, > but I suggest that trying to develop Windows-specific code in > a Linux Dev environment is creating a rod for your own back. > > For the specific case you mention, you should be able to switch

Re: Encoding trouble

2010-12-15 Thread Romaric DEFAUX
Le 15/12/2010 14:16, Benedict Verheyen a écrit : On 15/12/2010 12:34, Romaric DEFAUX wrote: To create these query, I do this : query = "UPDATE website SET client_name='%s' WHERE ip='%s'" % (self.client_name, self.ip) then self.cursor.execute(query) Unicode can be tricky. Don't you have to

Re: Dealing with pywin32 on Linux

2010-12-15 Thread Tim Golden
On 15/12/2010 12:58, Benedict Verheyen wrote: I'm moving my development environment (python, Django, virtualenv) from Windows to Linux (Debian more specific). However, on one app (uses Django), i have a log on module that uses AD to authenticate users. It's based on the active_directory wrapper

Re: Encoding trouble

2010-12-15 Thread Benedict Verheyen
On 15/12/2010 12:34, Romaric DEFAUX wrote: > To create these query, I do this : > query = "UPDATE website SET client_name='%s' WHERE ip='%s'" % > (self.client_name, self.ip) > then self.cursor.execute(query) > Unicode can be tricky. Don't you have to encode the string again? I tested this in th

Re: Links and pointers to basics of soap and suds

2010-12-15 Thread Steve Holden
On 12/15/2010 7:38 AM, srinivas hn wrote: > Hi All, > > I am very new to the soap and its python client suds.Can anyone tell me > how the actual will happens i nthe webservices including suds and soap API. > That's a bit like saying "I need to go around the corner. Would you mind teaching me to d

Re: while True or while 1

2010-12-15 Thread Hans-Peter Jansen
On Tuesday 14 December 2010, 21:38:47 Arnaud Delobelle wrote: > Christian Heimes writes: > [...] > > > Tres Seavers once told me a joke like this: > > > >True = not not "Who's at the door?" # say it out loud! > > > > This was back in the old days of Zope 2.5 and Python 2.1, which > > didn't ha

Re: Proposed changes to logging defaults

2010-12-15 Thread Steve Holden
On 12/15/2010 5:03 AM, Vinay Sajip wrote: > On Dec 15, 8:46 am, John Nagle wrote: >> You're assuming that theloggingpackage has the right to blither >> on the default sys.stderr. There are many cases in which it >> should not. The program could be running in a web server, and >> output would

Links and pointers to basics of soap and suds

2010-12-15 Thread srinivas hn
Hi All, I am very new to the soap and its python client suds.Can anyone tell me how the actual will happens i nthe webservices including suds and soap API. Thanks in advance CHEERS CNA 9986229891 -- http://mail.python.org/mailman/listinfo/python-list

Dealing with pywin32 on Linux

2010-12-15 Thread Benedict Verheyen
Hi, I'm moving my development environment (python, Django, virtualenv) from Windows to Linux (Debian more specific). However, on one app (uses Django), i have a log on module that uses AD to authenticate users. It's based on the active_directory wrapper of Tim Golden. That needs the win32 module

Re: Tkinter polling example: file copy with progress bar

2010-12-15 Thread Steve Holden
On 12/14/2010 11:52 PM, JohnWShipman wrote: > you > know how us ancient Unix weenies are. Indeed we do ... ;-) regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 PyCon 2011 Atlanta March 9-17 http://us.pycon.org/ See Python Video! http://python.mirocommunity.o

Encoding trouble

2010-12-15 Thread Romaric DEFAUX
Hi all, Since yesterday I'm working on an encoding problem, I become crazy now :) Could you please help me ? Here's the description of the problem : I've got two table in a MysqlDB : history_website and website The important column in them are : history_website.message (varchar(255), encoding

Re: How to pop the interpreter's stack?

2010-12-15 Thread Steven D'Aprano
On Tue, 14 Dec 2010 21:14:35 +, kj wrote: > Consider this code: > > > def spam(*args, **kwargs): > args, kwargs = __pre_spam(*args, **kwargs) > > # args & kwargs are OK: proceed > # ... > > > def __pre_spam(*args, **kwargs): > # validate args & kwargs; > # return canon

Re: Proposed changes to logging defaults

2010-12-15 Thread Vinay Sajip
On Dec 15, 8:46 am, John Nagle wrote: >     You're assuming that theloggingpackage has the right to blither > on the default sys.stderr.  There are many cases in which it > should not.  The program could be running in a web server, and > output would end up in the output HTML.  The program could b

Re: while True or while 1

2010-12-15 Thread bruno.desthuilli...@gmail.com
On 14 déc, 21:38, Arnaud Delobelle wrote: > I almost used: > >     True = "to be" or not "to be" # that is the question KEYBOARD !-) -- http://mail.python.org/mailman/listinfo/python-list

Re: PyArg_ParseTuple question

2010-12-15 Thread Stefan Behnel
Mark Wooding, 14.12.2010 21:42: I could have used PySequence_* functions to read the size and items, but that makes error handling more complicated. One could also borrow the references from the underlying list, which would leave the underlying storage for the vector as the only thing to free.

Re: Proposed changes to logging defaults

2010-12-15 Thread John Nagle
On 12/9/2010 4:12 PM, Vinay Sajip wrote: Some changes are being proposed to how logging works in default configurations. Briefly - when a logging event occurs which needs to be output to some log, the behaviour of the logging package when no explicit logging configuration is provided will change

Re: Proposed changes to logging defaults

2010-12-15 Thread Vinay Sajip
On Dec 15, 3:51 am, samwyse wrote: > I'm in favor of this change.  I've long wished that I could just add > lots of warning/error/infologgingto a script and have it just work > without having to spend time configuring theloggingsystem. Note that INFO logging will still not be sent to sys.stderr.