Re: Simple Password Strength Checker Review Help needed

2010-01-26 Thread Steven D'Aprano
On Tue, 26 Jan 2010 23:14:31 -0800, Paul Rubin wrote: > "Mallikarjun(ಮಲ್ಲಿಕಾರ್ಜುನ್)" writes: >> Since this is my first app/program, can someone review my code (just >> over 150 lines) and help me improve my programming capabilities > > I didn't look at the code. From a security point of vi

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-26 Thread Tim Roberts
CM wrote: > >How is this preferable to a macro recorder? Macro recorders work by measuring mouse motion and capturing click locations, or by recording the control IDs of the clicked windows. The former is sensitive to changing window locations, the latter to application updates. Sikuli works by

Re: python 3's adoption

2010-01-26 Thread Paul Rubin
Steven D'Aprano writes: > Sorry, I meant consistent with the rest of Python, which mostly uses > functions/methods and only rarely statements (e.g. del and import). yield, assert, if/else, return, etc. If we're after that kind of consistency, why not get rid of all those statements too? They h

Re: python 3's adoption

2010-01-26 Thread Stephen Hansen
On Tue, Jan 26, 2010 at 10:23 PM, Paul Rubin wrote: > Steven D'Aprano writes: > > print as a function is more consistent and more convenient than print as > > a statement. > > Convenience is subjective, but the 3.x 'print' behavior is definitely > inconsistent (i.e. different from 2.x). This is

Re: list.pop(0) vs. collections.dequeue

2010-01-26 Thread Arnaud Delobelle
Steve Howell writes: > On Jan 25, 1:32 pm, Arnaud Delobelle wrote: >> Steve Howell writes: >> >> [...] >> >> > My algorithm does exactly N pops and roughly N list accesses, so I >> > would be going from N*N + N to N + N log N if switched to blist. >> >> Can you post your algorithm?  It would be

Re: python 3's adoption

2010-01-26 Thread Steven D'Aprano
On Tue, 26 Jan 2010 22:23:11 -0800, Paul Rubin wrote: > Steven D'Aprano writes: >> print as a function is more consistent and more convenient than print >> as a statement. > > Convenience is subjective, but the 3.x 'print' behavior is definitely > inconsistent (i.e. different from 2.x). Sorry

Re: Simple Password Strength Checker Review Help needed

2010-01-26 Thread Paul Rubin
"Mallikarjun(ಮಲ್ಲಿಕಾರ್ಜುನ್)" writes: > Since this is my first app/program, can someone review my code (just > over 150 lines) and help me improve my programming capabilities I didn't look at the code. From a security point of view, the concept of "password strength checking" is pretty dubiou

Re: Simple Password Strength Checker Review Help needed

2010-01-26 Thread Steven D'Aprano
On Wed, 27 Jan 2010 11:26:21 +0530, Mallikarjun wrote: I don't know much about pygtk and Glade, but I can make a couple of comments: > class PassChecker: > > def on_check_button_toggled(self, button): > if self.pass_entry.get_visibility(): > self.pass_entry.set_visi

Re: scraping with urllib2

2010-01-26 Thread Andre Engels
On Wed, Jan 27, 2010 at 6:26 AM, Patrick wrote: > I'm trying to scrape the attached link for the price listed $99.99: > http://bananarepublic.gap.com/browse/product.do?cid=41559&vid=1&pid=692392 > > I can see the price if I view the source(I even turned off java and > javascript), but when I use u

Re: python 3's adoption

2010-01-26 Thread Paul Rubin
Steven D'Aprano writes: > print as a function is more consistent and more convenient than print as > a statement. Convenience is subjective, but the 3.x 'print' behavior is definitely inconsistent (i.e. different from 2.x). The change makes a lot of my code silently produce wrong results, too.

Re: Simple Password Strength Checker Review Help needed

2010-01-26 Thread ಮಲ್ಲಿಕಾರ್ಜುನ್
I am really sorry, I uploaded a wrong python file. Here is the correct file 2010/1/27 Mallikarjun > Dear friends, > I am newbie to Python + pygtk + Glade and recently wrote a simple password > strength checker app. > Since this is my first app/program, can someone review my code (just over >

scraping with urllib2

2010-01-26 Thread Patrick
I'm trying to scrape the attached link for the price listed $99.99: http://bananarepublic.gap.com/browse/product.do?cid=41559&vid=1&pid=692392 I can see the price if I view the source(I even turned off java and javascript), but when I use urllib2, the price doesn't show up. Is there another libra

Re: Just drawing lines and plotting points?

2010-01-26 Thread rantingrick
On Jan 26, 10:52 pm, "Alf P. Steinbach" wrote: > * rantingrick: > > > > > > > On Jan 26, 9:38 pm, Terry Reedy wrote: > >> On 1/26/2010 7:54 PM, Chris Rebert wrote: > > >>> On Tue, Jan 26, 2010 at 4:36 PM, Someone Something   > >>> wrote: > Hello, > I need a python library that makes dra

Re: Just drawing lines and plotting points?

2010-01-26 Thread Alf P. Steinbach
* rantingrick: On Jan 26, 9:38 pm, Terry Reedy wrote: On 1/26/2010 7:54 PM, Chris Rebert wrote: On Tue, Jan 26, 2010 at 4:36 PM, Someone Something wrote: Hello, I need a python library that makes drawing lines and plotting points (these two things are the only things I need to do) easy. Or,

Re: Just drawing lines and plotting points?

2010-01-26 Thread rantingrick
On Jan 26, 9:38 pm, Terry Reedy wrote: > On 1/26/2010 7:54 PM, Chris Rebert wrote: > > > On Tue, Jan 26, 2010 at 4:36 PM, Someone Something   > > wrote: > >> Hello, > > >> I need a python library that makes drawing lines and plotting points (these > >> two things are the only things I need to do)

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread geremy condra
On Tue, Jan 26, 2010 at 4:00 PM, M.-A. Lemburg wrote: > > > geremy condra wrote: >> On Tue, Jan 26, 2010 at 12:37 PM, M.-A. Lemburg wrote: >> >> >> >>> You are also using CBC mode, even though you are really after >>> ECB mode (your code doesn't use chaining). With ECB mode, you >>> don't need t

Re: Just drawing lines and plotting points?

2010-01-26 Thread Terry Reedy
On 1/26/2010 7:54 PM, Chris Rebert wrote: On Tue, Jan 26, 2010 at 4:36 PM, Someone Something wrote: Hello, I need a python library that makes drawing lines and plotting points (these two things are the only things I need to do) easy. Or, how can I do something like this with pygame? Basically,

Re: python 3's adoption

2010-01-26 Thread Terry Reedy
On 1/26/2010 6:47 PM, Xah Lee wrote: Some thoughts about Python 3 Adoption. Xah Lee, 2010-01-26 Some notes of Wikipedia readings related to Python. Unladen Swallow, a new project from Google. It is a new python compiler with the goal of 5 times faster than the de facto standand implementation

Re: python 3's adoption

2010-01-26 Thread John Bokma
"Alf P. Steinbach" writes: > * John Bokma: >> "Alf P. Steinbach" writes: >> >>> Please don't post more noise and ad hominem attacks to the group, >>> Steve. >> >> Funny that you talk about noise while replying yourself to noise. Xah >> Lee is just a pathetic spammer. He's not going to reply in t

Re: python 3's adoption

2010-01-26 Thread Alf P. Steinbach
* John Bokma: "Alf P. Steinbach" writes: Please don't post more noise and ad hominem attacks to the group, Steve. Funny that you talk about noise while replying yourself to noise. Xah Lee is just a pathetic spammer. He's not going to reply in this thread. He just shits out his stuff in as ma

python for net manager

2010-01-26 Thread moon sky
hi there, i just want to write a small tool to manage the network, including detect the ip addr,netmask, and send the arp request to find out locale's ip-mac turtple, is there any way to succeed this exlude 'subprocess call'? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: python 3's adoption

2010-01-26 Thread John Bokma
"Alf P. Steinbach" writes: > Please don't post more noise and ad hominem attacks to the group, > Steve. Funny that you talk about noise while replying yourself to noise. Xah Lee is just a pathetic spammer. He's not going to reply in this thread. He just shits out his stuff in as many groups as p

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread geremy condra
On Tue, Jan 26, 2010 at 7:23 PM, Daniel wrote: > I understand the risks of unpickle. With strong, authenticated > encryption I think it is reasonably safe to send an encrypted pickle > through an untrusted medium (the Internet) and know that it has not > been modified enroute. That is, unless s

Re: python 3's adoption

2010-01-26 Thread Alf P. Steinbach
* Steve Holden: [Off-list] alex23 wrote: "Alf P. Steinbach" wrote: Actually not, IMHO. All it does is is to provide incompatibility. They forgot Ronald Reagan's old maxim: if it don't need fixin', don't fix it. [...] Probably there must have been some rationale, but to put it bluntly removin

Re: python 3's adoption

2010-01-26 Thread Alf P. Steinbach
* alex23: "Alf P. Steinbach" wrote: Actually not, IMHO. All it does is is to provide incompatibility. They forgot Ronald Reagan's old maxim: if it don't need fixin', don't fix it. [...] Probably there must have been some rationale, but to put it bluntly removing the comparator is more like mo

Re: python 3's adoption

2010-01-26 Thread Steve Holden
[Off-list] alex23 wrote: > "Alf P. Steinbach" wrote: >> Actually not, IMHO. All it does is is to provide incompatibility. They forgot >> Ronald Reagan's old maxim: if it don't need fixin', don't fix it. > [...] >> Probably there must have been some rationale, but to put it bluntly removing >> the

Re: python 3's adoption

2010-01-26 Thread MRAB
Alf P. Steinbach wrote: I'm responding to the original message by Xah Lee, which is not carried by my Usenet provider. * Alan Harris-Reid: Xah Lee wrote: Some thoughts about Python 3 Adoption. Xah Lee, 2010-01-26 Some notes of Wikipedia readings related to Python. Unladen Swallow, a new pr

Re: python 3's adoption

2010-01-26 Thread alex23
"Alf P. Steinbach" wrote: > Actually not, IMHO. All it does is is to provide incompatibility. They forgot > Ronald Reagan's old maxim: if it don't need fixin', don't fix it. [...] > Probably there must have been some rationale, but to put it bluntly removing > the > comparator is more like moroni

Re: python 3's adoption

2010-01-26 Thread Alf P. Steinbach
I'm responding to the original message by Xah Lee, which is not carried by my Usenet provider. * Alan Harris-Reid: Xah Lee wrote: Some thoughts about Python 3 Adoption. Xah Lee, 2010-01-26 Some notes of Wikipedia readings related to Python. Unladen Swallow, a new project from Google. It is

Re: python 3's adoption

2010-01-26 Thread Alan Harris-Reid
Xah Lee wrote: Some thoughts about Python 3 Adoption. Xah Lee, 2010-01-26 Some notes of Wikipedia readings related to Python. Unladen Swallow, a new project from Google. It is a new python compiler with the goal of 5 times faster than the de facto standand implementation CPython. Also note Sta

Re: Just drawing lines and plotting points?

2010-01-26 Thread Chris Rebert
On Tue, Jan 26, 2010 at 4:36 PM, Someone Something wrote: > Hello, > > I need a python library that makes drawing lines and plotting points (these > two things are the only things I need to do) easy. Or, how can I do > something like this with pygame? Basically, what I want to do is make > graphs.

Just drawing lines and plotting points?

2010-01-26 Thread Someone Something
Hello, I need a python library that makes drawing lines and plotting points (these two things are the only things I need to do) easy. Or, how can I do something like this with pygame? Basically, what I want to do is make graphs. In pygame, since the coordinate system switches the x's and the y's I

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread Daniel
M.-A. Lemburg wrote: > Daniel wrote: > > On Jan 26, 12:37 pm, "M.-A. Lemburg" wrote: > >> Note that your code has a padding bug: the decoder doesn't > >> undo the padding. You're lucky though, since pickle will only > >> read as much data as it needs and not complain about the extra > >> data it f

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread Daniel
geremy condra wrote: > I'd also note that you aren't supposed to use RandomPool anymore, OK, I updated the recipe to use os.urandom() > and that AES-192 is frequently recommended over AES-256 for > new applications due to a number of recent developments in > the cryptanalysis of its key schedule.

python 3's adoption

2010-01-26 Thread Xah Lee
Some thoughts about Python 3 Adoption. Xah Lee, 2010-01-26 Some notes of Wikipedia readings related to Python. Unladen Swallow, a new project from Google. It is a new python compiler with the goal of 5 times faster than the de facto standand implementation CPython. Also note Stackless Python, wh

Re: Splitting text at whitespace but keeping the whitespace in thereturned list

2010-01-26 Thread Aahz
In article , Roy Smith wrote: > >I've never used partition() before; my first thought on reading the above >was, "That's weird, it should be returning a list". Then I went and looked >at the docs. Given the description (returns specifically a 3-tuple), I >guess a tuple makes sense, but now I

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
Daniel wrote: > On Jan 26, 12:37 pm, "M.-A. Lemburg" wrote: >> Note that your code has a padding bug: the decoder doesn't >> undo the padding. You're lucky though, since pickle will only >> read as much data as it needs and not complain about the extra >> data it finds. > > Doesn't the last line

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread Daniel
On Jan 26, 12:37 pm, "M.-A. Lemburg" wrote: > Note that your code has a padding bug: the decoder doesn't > undo the padding. You're lucky though, since pickle will only > read as much data as it needs and not complain about the extra > data it finds. Doesn't the last line in decrypt() do it?

Re: My experiences building a small app on Python

2010-01-26 Thread Terry Reedy
On 1/26/2010 8:51 AM, Cascade3891 wrote: Hello Python community, I built a small app with Python for the first time. It has served a very useful and productive purpose for me and my colleagues at work. I have shared my experiences on the following link due to the better web presentation tools a

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-26 Thread Terry Reedy
On 1/26/2010 1:59 PM, CM wrote: On Jan 24, 10:18 pm, Ron wrote: Sikuli is the coolest Python project I have ever seen in my ten year hobbyist career. An MIT oepn source project, Sikuli uses Python to automate GUI tasks (in any GUI or GUI baed app that runs the JVM) by simply drag and dropping G

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
geremy condra wrote: > On Tue, Jan 26, 2010 at 12:37 PM, M.-A. Lemburg wrote: > > > >> You are also using CBC mode, even though you are really after >> ECB mode (your code doesn't use chaining). With ECB mode, you >> don't need the IV string. > > However, ECB mode is not as secure- the IV is

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
M.-A. Lemburg wrote: > Daniel wrote: >> Just got done reading this thread: >> >> http://groups.google.com/group/comp.lang.python/browse_thread/thread/b31a5b5f58084f12/0e09f5f5542812c3 >> >> and I'd appreciate feedback on this recipe: >> >> http://code.activestate.com/recipes/576980/ >> > [...] > Yo

Re: Python or Ant

2010-01-26 Thread Javier Collado
Hello, One tool that I really like is doit: http://python-doit.sourceforge.net/ If you need to execute jobs remotely, you may like to take a look at STAF: http://staf.sourceforge.net/index.php Best regards, Javier 2010/1/26 Chris Rebert : > On Tue, Jan 26, 2010 at 10:58 AM,   wrote: >> My c

Re: Python or Ant

2010-01-26 Thread Chris Rebert
On Tue, Jan 26, 2010 at 10:58 AM, wrote: > My company is looking at creating a tool to allow us to define and manage a > process for each job we run (a typical job may be look on a customers ftp > site for a file, download it, decrypt it and load it into our database). We > would like something w

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-26 Thread Ron
On Jan 26, 10:59 am, CM wrote: > On Jan 24, 10:18 pm, Ron wrote: > > > Sikuli is the coolest Python project I have ever seen in my ten year > > hobbyist career. An MIT open source project, Sikuli uses Python to > > automate GUI tasks (in any GUI or GUI based app that runs the JVM) by > > simply d

Re: Python or Ant

2010-01-26 Thread John Bokma
Steve Holden writes: Apologies for the piggy back, my Usenet provider can't get the OP's message. > gslindst...@gmail.com wrote: >> My company is looking at creating a tool to allow us to define and >> manage a process for each job we run (a typical job may be look on a >> customers ftp site for

Re: deriving from array.array

2010-01-26 Thread Alf P. Steinbach
* Torsten Mohr: thanks a lot for your hint, it works fine. I get an error for "a = Abc(4, 5)", seems the parameters are forwarded to array's __init__ as they are. No, with CPython they're forwarded to __new__. Not sure if i understand this correctly, if i derive from other classes (like wxp

Re: deriving from array.array

2010-01-26 Thread Jerry Hill
On Tue, Jan 26, 2010 at 2:28 PM, Torsten Mohr wrote: > Is there a way to find out what i need to call? I haven't found much in > the documentation. From writing C extensions i knew about the "new" entry > in the PyTypeObject struct but it seems there's more behind it. > In docs.python.org i did

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread Paul Rubin
Daniel writes: > Of course, it does not meet all of the requirements set forth by the > OP in the referenced thread (the pycrypto dependency is a problem), > but it is an attempt to provide a simple interface for performing > strong, password-based encryption. Are there already modules out there >

Re: Python or Ant

2010-01-26 Thread Steve Holden
gslindst...@gmail.com wrote: > My company is looking at creating a tool to allow us to define and > manage a process for each job we run (a typical job may be look on a > customers ftp site for a file, download it, decrypt it and load it into > our database). We would like something which would all

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread geremy condra
On Tue, Jan 26, 2010 at 12:37 PM, M.-A. Lemburg wrote: > You are also using CBC mode, even though you are really after > ECB mode (your code doesn't use chaining). With ECB mode, you > don't need the IV string. However, ECB mode is not as secure- the IV is the right way to go here. I'd also n

Re: Py 3: Terminal script can't find relative path

2010-01-26 Thread Aahz
In article <98c70d6f-5872-436b-b160-01b39d17d...@a32g2000yqm.googlegroups.com>, Gnarlodious wrote: > >OK I guess that is normal, I fixed it with this: >path=os.path.dirname(__file__)+"/Data/" Use os.path.join() instead -- just in case you ever port to Windows -- Aahz (a...@pythoncraft.com)

Re: deriving from array.array

2010-01-26 Thread Torsten Mohr
Hello, thanks a lot for your hint, it works fine. >> I get an error for "a = Abc(4, 5)", seems the parameters are >> forwarded to array's __init__ as they are. > > No, with CPython they're forwarded to __new__. Not sure if i understand this correctly, if i derive from other classes (like wxpyth

Re: deriving from array.array

2010-01-26 Thread Alf P. Steinbach
* Alf P. Steinbach: * Torsten Mohr: Hello, i try to derive a class from array.array: import array class Abc(array.array): def __init__(self, a, b): array.array.__init__(self, 'B') self.a = a self.b = b a = Abc(4, 5) print a print a.a I get an error for "a = Ab

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-26 Thread CM
On Jan 24, 10:18 pm, Ron wrote: > Sikuli is the coolest Python project I have ever seen in my ten year > hobbyist career. An MIT oepn source project, Sikuli uses Python to > automate GUI tasks (in any GUI or GUI baed app that runs the JVM) by > simply drag and dropping GUI elements into Python scr

Python or Ant

2010-01-26 Thread gslindstrom
My company is looking at creating a tool to allow us to define and manage a process for each job we run (a typical job may be look on a customers ftp site for a file, download it, decrypt it and load it into our database). We would like something which would allow us to glue together various

Re: deriving from array.array

2010-01-26 Thread Alf P. Steinbach
* Torsten Mohr: Hello, i try to derive a class from array.array: import array class Abc(array.array): def __init__(self, a, b): array.array.__init__(self, 'B') self.a = a self.b = b a = Abc(4, 5) print a print a.a I get an error for "a = Abc(4, 5)", seems the p

deriving from array.array

2010-01-26 Thread Torsten Mohr
Hello, i try to derive a class from array.array: import array class Abc(array.array): def __init__(self, a, b): array.array.__init__(self, 'B') self.a = a self.b = b a = Abc(4, 5) print a print a.a I get an error for "a = Abc(4, 5)", seems the parameters are forw

Re: Authenticated encryption with PyCrypto

2010-01-26 Thread M.-A. Lemburg
Daniel wrote: > Just got done reading this thread: > > http://groups.google.com/group/comp.lang.python/browse_thread/thread/b31a5b5f58084f12/0e09f5f5542812c3 > > and I'd appreciate feedback on this recipe: > > http://code.activestate.com/recipes/576980/ > > Of course, it does not meet all of th

Re: ctypes for AIX

2010-01-26 Thread M.-A. Lemburg
Waddle, Jim wrote: > I need to use ctypes with python running on AIX. It appears that python is > being developed mostly for windows. Is there a policy concerning getting > functions like ctypes working on AIX. If you can provide patches to get ctypes working on AIX, we'd consider adding those t

Re: pylint and the 'missing docstring' warning

2010-01-26 Thread Jean-Michel Pichavant
John Posner wrote: On 1/26/2010 9:22 AM, Jean-Michel Pichavant wrote: John Posner wrote: On 1/26/2010 8:43 AM, Jean-Michel Pichavant wrote: Hello, Does anyone using pylint knows a way to make pylint ignore these 'missing docstring' warnings when the base class version of the method actually d

Re: Accessing the name of an actual parameter

2010-01-26 Thread Jean-Michel Pichavant
Duncan Booth wrote: Gary Herron wrote: It's naive to think this question even makes sense. There are many ways f can be called which don't involve a parameter: f(42) f(time()) f(a+123) f(sin(a)) f(f(1)) and so on. So long as the OP doesn't care if they get no names or several na

Re: list.pop(0) vs. collections.dequeue

2010-01-26 Thread Steve Holden
Steve Howell wrote: > On Jan 24, 11:28 am, a...@pythoncraft.com (Aahz) wrote: >> In article >> , >> Steve Howell wrote: >> >> >> >>> Even with realloc()'s brokenness, you could improve pop(0) in a way >>> that does not impact list access at all, and the patch would not change >>> the time comple

Re: TypeError not caught by except statement

2010-01-26 Thread Steve Holden
siddhartha veedaluru wrote: > Hi, > > except not able to caught the TypeError exception occured in the below > code > >log.info ("refer",ret) in the try block > > throws a TypeError which is not caught . The traceback you provide does not show the line in question, so I

Re: pylint and the 'missing docstring' warning

2010-01-26 Thread John Posner
On 1/26/2010 9:22 AM, Jean-Michel Pichavant wrote: John Posner wrote: On 1/26/2010 8:43 AM, Jean-Michel Pichavant wrote: Hello, Does anyone using pylint knows a way to make pylint ignore these 'missing docstring' warnings when the base class version of the method actually defines the docstring

Re: Accessing the name of an actual parameter

2010-01-26 Thread Duncan Booth
Gary Herron wrote: > It's naive to think this question even makes sense. There are many ways > f can be called which don't involve a parameter: > > f(42) > f(time()) > f(a+123) > f(sin(a)) > f(f(1)) > > and so on. So long as the OP doesn't care if they get no names or several name that mig

Re: ctypes for AIX

2010-01-26 Thread nn
On Jan 25, 6:36 pm, "Waddle, Jim" wrote: > Chris, > Thanks for responding to my email. > I apologize for the remark about python only being developed for windows. I > got the impression when I was looking at the ActivePython web site and saw > that the version of python that they had available w

Re: Accessing the name of an actual parameter

2010-01-26 Thread Gary Herron
Gary Herron wrote: Hellmut Weber wrote: Hi, consider the following piece of code, please - - def f(param): nameOfParam = ??? # here I want to access the name of the variable # which was given as parameter to the function print nameOfParam, param return if __name__ == __main

Re: Accessing the name of an actual parameter

2010-01-26 Thread Gary Herron
Hellmut Weber wrote: Hi, consider the following piece of code, please - - def f(param): nameOfParam = ??? # here I want to access the name of the variable # which was given as parameter to the function print nameOfParam, param return if __name__ == __main__: a = 1 f(a)

ANN: Veusz 1.6

2010-01-26 Thread Jeremy Sanders
Veusz 1.6 - Velvet Ember Under Sky Zenith - http://home.gna.org/veusz/ Veusz is Copyright (C) 2003-2010 Jeremy Sanders Licenced under the GPL (version 2 or greater). Veusz is a Qt4 based scientific plotting package. It is written in Python, using PyQt4 for dis

Re: My experiences building a small app on Python

2010-01-26 Thread Simon Brunning
2010/1/26 Cascade3891 : > It's a bit of a read. But insightful. We'll be the judge of that, surely? ;-) -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

Re: pylint and the 'missing docstring' warning

2010-01-26 Thread Jean-Michel Pichavant
John Posner wrote: On 1/26/2010 8:43 AM, Jean-Michel Pichavant wrote: Hello, Does anyone using pylint knows a way to make pylint ignore these 'missing docstring' warnings when the base class version of the method actually defines the docstring ? 'Cause my doc builder (epydoc) handle it properly

Re: pylint and the 'missing docstring' warning

2010-01-26 Thread John Posner
On 1/26/2010 8:43 AM, Jean-Michel Pichavant wrote: Hello, Does anyone using pylint knows a way to make pylint ignore these 'missing docstring' warnings when the base class version of the method actually defines the docstring ? 'Cause my doc builder (epydoc) handle it properly and propagate docst

My experiences building a small app on Python

2010-01-26 Thread Cascade3891
Hello Python community, I built a small app with Python for the first time. It has served a very useful and productive purpose for me and my colleagues at work. I have shared my experiences on the following link due to the better web presentation tools and coding presentation tools: http://www.da

pylint and the 'missing docstring' warning

2010-01-26 Thread Jean-Michel Pichavant
Hello, Does anyone using pylint knows a way to make pylint ignore these 'missing docstring' warnings when the base class version of the method actually defines the docstring ? 'Cause my doc builder (epydoc) handle it properly and propagate docstrings if asked to. Too bad pylint is complaining

Re: Splitting text at whitespace but keeping the whitespace in thereturned list

2010-01-26 Thread Roy Smith
In article , "Tim Arnold" wrote: > also, partition works though it returns a tuple instead of a list. > >>> s = 'hello world' > >>> s.partition(' ') > ('hello', ' ', 'world') I've never used partition() before; my first thought on reading the above was, "That's weird, it should be returning a

Re: Accessing the name of an actual parameter

2010-01-26 Thread Jean-Michel Pichavant
Hellmut Weber wrote: Hi, consider the following piece of code, please - - def f(param): nameOfParam = ??? # here I want to access the name of the variable # which was given as parameter to the function print nameOfParam, param return if __name__ == __main__: a = 1 f(a)

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-26 Thread Iuri
I liked this tool! I'm thinking about how I can write acceptance tests with Sikuli. []s iurisilvio On Tue, Jan 26, 2010 at 7:49 AM, Jean-Michel Pichavant < jeanmic...@sequans.com> wrote: > Terry Reedy wrote: > >> On 1/25/2010 9:14 AM, Javier Collado wrote: >> >> I think the site is under mainte

Re: Accessing the name of an actual parameter

2010-01-26 Thread Alf P. Steinbach
* Hellmut Weber: consider the following piece of code, please - - def f(param): nameOfParam = ??? # here I want to access the name of the variable # which was given as parameter to the function print nameOfParam, param return if __name__ == __main__: a = 1 f(a) b = '

Re: Accessing the name of an actual parameter

2010-01-26 Thread Chris Rebert
On Tue, Jan 26, 2010 at 3:48 AM, Hellmut Weber wrote: > Hi, > > consider the following piece of code, please > > - - > > def f(param): >  nameOfParam = ??? >  # here I want to access the name of the variable >  # which was given as parameter to the function >  print nameOfParam, param >  r

Accessing the name of an actual parameter

2010-01-26 Thread Hellmut Weber
Hi, consider the following piece of code, please - - def f(param): nameOfParam = ??? # here I want to access the name of the variable # which was given as parameter to the function print nameOfParam, param return if __name__ == __main__: a = 1 f(a) b = 'abcd' f(a)

announcement: expy release 0.5

2010-01-26 Thread Yingjie Lan
Hi all, This is to announce expy release 0.5. expy is an express way to extend Python. For more information and tutorials on expy, see: http://expy.sf.net/ Cheers, Yingjie -- http://mail.python.org/mailman/listinfo/python-list

Re: Sikuli: the coolest Python project I have yet seen...

2010-01-26 Thread Jean-Michel Pichavant
Terry Reedy wrote: On 1/25/2010 9:14 AM, Javier Collado wrote: I think the site is under maintenance. I tried a couple of hours ago and it worked fine. As an alternative, I found that this link also worked: http://www.sikuli.org/ This just redirects to the link below http://sikuli.csail.mi

image processing - inverse filtering

2010-01-26 Thread suresh.amritapuri
Hi, If I am using scipy.ndimage.gaussian_filter() for filtering an image, how to do the inverse filtering? In general how to do this using scipy.ndimage? Thanks suresh -- http://mail.python.org/mailman/listinfo/python-list

pyflakes and Python3

2010-01-26 Thread Detlev Offenbach
Hi, does anybody know, if pyflakes is being ported to Python3? Or is there any other tool like it around that works with Python3? Regards, Detlev -- Detlev Offenbach det...@die-offenbachs.de -- http://mail.python.org/mailman/listinfo/python-list

CompIMAGE 2010: Call for Short Communications

2010-01-26 Thread tava...@fe.up.pt
Dear Colleague, In the framework of the International Symposium CompIMAGE'10 “Computational Modeling of Objects Presented in Images: Fundamentals, Methods, and Applications,” May 5-7, 2010, Buffalo-Niagara, NY, USA (www.fe.up.pt/CompIMAGE), prospective authors are invited to submit short communica

Re: list.pop(0) vs. collections.dequeue

2010-01-26 Thread Steve Howell
On Jan 25, 9:00 pm, Steve Howell wrote: > On Jan 24, 11:28 am, a...@pythoncraft.com (Aahz) wrote: > > > > > In article > > , > > Steve Howell   wrote: > > > >Even with realloc()'s brokenness, you could improve pop(0) in a way > > >that does not impact list access at all, and the patch would not c

Re: Any Swisses here?

2010-01-26 Thread Gabriel Rossetti
n00m wrote: Congrats! Your choice -- to ban building of muslim mosques -- is the only choice to save our civililazation. This yellow plague (incl. Chinese etc) must be eliminated from our Planet, They are very cunning critters, they can play on strings of compassion, but its riffraffs. What do yo