Re: ElementTree Issue - Search and remove elements

2012-10-16 Thread Alain Ketterlin
Tharanga Abeyseela writes: > I need to remove the parent node, if a particular match found. It looks like you can't get the parent of an Element with elementtree (I would love to be proven wrong on this). The solution is to find all nodes that have a Rating (grand-) child, and then test explici

Re: OT Questions

2012-10-16 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 2:06 AM, Demian Brecht wrote: >> This is my prototype portfolio for freelancing. If you have an honest >> critique, then what, in your opinion, am I good at? >> >> https://www.odesk.com/users/~01710ac049863018eb > > I can't ascertain what your strengths are as I don't work

Re: Aggressive language on python-list

2012-10-16 Thread Steven D'Aprano
On Tue, 16 Oct 2012 21:25:38 -0700, alex23 wrote: > I really don't get people who feel they need to share their opinion when > that opinion is that other people shouldn't share theirs. +1 QOTW It makes me laugh when newcomers to this group stick their head up to chastise us for arguing about th

Re: OT Questions

2012-10-16 Thread Demian Brecht
> This is my prototype portfolio for freelancing. If you have an honest > critique, then what, in your opinion, am I good at? > > https://www.odesk.com/users/~01710ac049863018eb I can't ascertain what your strengths are as I don't work with you on a daily basis (one of the many benefits of worki

Re: ElementTree Issue - Search and remove elements

2012-10-16 Thread Stefan Behnel
Hi, note that it's best to reply to responses you get, rather than starting a new thread on the same topic. It helps in building up context and in keeping details together at one point in the archive for users who run into similar problems later. Tharanga Abeyseela, 17.10.2012 07:47: > I need to

Re: OT Questions

2012-10-16 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 1:25 AM, Demian Brecht wrote: >> >> You haven't been on lists long enough then to have seen some real >> flame warts...no offense. > > No offense taken, it's why I said it in the first place ;) Having said that, > generally engaging in flame wars solves nothing and sheds a

Re: Tkinter how to access the widget by name

2012-10-16 Thread Владимир Пылев
вторник, 16 октября 2012 г., 2:26:22 UTC+4 пользователь Prasad, Ramit написал: > ? wrote: > > > I'm a little teapot ... himself the question: if I want to appeal to the > > widget, knowing his name... ? > > > > > > # appropriated the name of the widget > > > label = Label(frame,

Re: list comprehension question

2012-10-16 Thread Terry Reedy
On 10/16/2012 9:54 PM, Kevin Anthony wrote: I've been teaching myself list comprehension, and i've run across something i'm not able to convert. list comprehensions specifically abbreviate the code that they are (essentially) equivalent to. res = [] for item in source: res.append(f(item))

Re: Aggressive language on python-list

2012-10-16 Thread Terry Reedy
On 10/16/2012 11:47 PM, Kristen J. Webb wrote: I will say that my perusal of this list has been informative. I also receive more email from this list than any other I subscribe to. You could instead access it as a newsgroup via news.gmane.org. That keeps posts isolated and you only download

Re: list comprehension question

2012-10-16 Thread Dwight Hutto
On Wed, Oct 17, 2012 at 12:43 AM, Kevin Anthony wrote: > Is it not true that list comprehension is much faster the the for loops? > > If it is not the correct way of doing this, i appoligize. > Like i said, I'm learing list comprehension. > I thought it was matrix multiplication mixed with list co

Re: Aggressive language on python-list

2012-10-16 Thread rusi
On Oct 17, 9:25 am, alex23 wrote: > On Oct 17, 1:54 pm, "Kristen J. Webb" wrote: > > > It sucks for me to spend so much time filtering this BS. > > Yet you then chose to participate in a discussion about it. Because > that's what people do to discuss suitable behaviour. > > I really don't get peo

Re: list comprehension question

2012-10-16 Thread Kevin Anthony
Is it not true that list comprehension is much faster the the for loops? If it is not the correct way of doing this, i appoligize. Like i said, I'm learing list comprehension. Thanks Kevin On Oct 16, 2012 10:14 PM, "Dave Angel" wrote: > On 10/16/2012 09:54 PM, Kevin Anthony wrote: > > I've been

Re: Aggressive language on python-list

2012-10-16 Thread Ben Finney
"Kristen J. Webb" writes: > What the f**k! I thought that subscribing to a list would promote > education, enlightenment, and a shared communal effort to make things > better for things (python) related. Yes, that's the focus of this thread: how best to engage in a shared communal effort to make

Re: Aggressive language on python-list

2012-10-16 Thread alex23
On Oct 17, 1:54 pm, "Kristen J. Webb" wrote: > Let's be honest, does any of this crap have > anything to do with python, it's promotion, > or resolving anything related to making it > one of the most exciting languages I have > ever seen since C? Python is more than the language, it's the communi

Re: overriding equals operation

2012-10-16 Thread 88888 Dihedral
Pradipto Banerjee於 2012年10月16日星期二UTC+8下午9時59分05秒寫道: > I am trying to define class, where if I use a statement a = b, then instead > of "a" pointing to the same instance as "b", it should point to a copy of > "b", but I can't get it right. > > > > Currently, I have the following: > > > > ---

Re: Aggressive language on python-list

2012-10-16 Thread Kristen J. Webb
As a casual observer of this list (and many others) I can only say... What the f**k! I thought that subscribing to a list would promote education, enlightenment, and a shared communal effort to make things better for things (python) related. It sucks for me to spend so much time filtering this

Re: list comprehension question

2012-10-16 Thread rusi
On Oct 17, 7:14 am, Dave Angel wrote: > On 10/16/2012 09:54 PM, Kevin Anthony wrote: > > > > > > > > > > > I've been teaching myself list comprehension, and i've run across something > > i'm not able to convert. > > > here's the original code for matrix multiplcation > > > retmatrix = Matrix(self.

Re: Aggressive language on python-list

2012-10-16 Thread rusi
On Oct 16, 9:27 pm, ru...@yahoo.com wrote: > On 10/14/2012 10:36 PM, alex23 wrote:> On Oct 15, 1:22 pm, ru...@yahoo.com > wrote: > > >> Thus when a member of this esteemed group > >> was recently attacked as racist, for punning another member's > >> name when responding somewhat heatedly, > > > Ag

Re: Aggressive language on python-list

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 10:45 PM, Steven D'Aprano wrote: > On Tue, 16 Oct 2012 14:10:17 -0700, rurpy wrote: > >> On 10/16/2012 10:49 AM, Steven D'Aprano wrote: >>> > On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and >>> > dicks: >> >> No, I wrote about trolls. "dicks" is a highly e

Re: Aggressive language on python-list

2012-10-16 Thread Steven D'Aprano
On Wed, 17 Oct 2012 02:45:04 +, Steven D'Aprano wrote: > Dwight "call me David, but I can't be bothered changing my signature" > Hutto's behaviour. I withdraw this dig at David Hutto. It was unnecessary, and it turns out, wrong as he has now changed his signature. -- Steven -- http://mai

Re: Aggressive language on python-list

2012-10-16 Thread Steven D'Aprano
On Tue, 16 Oct 2012 14:10:17 -0700, rurpy wrote: > On 10/16/2012 10:49 AM, Steven D'Aprano wrote: >> > On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and >> > dicks: > > No, I wrote about trolls. "dicks" is a highly emotive and almost > totally subjective word As opposed to "trol

Re: OT Questions

2012-10-16 Thread Steven D'Aprano
On Tue, 16 Oct 2012 21:06:24 -0400, David Hutto wrote: > I'm working on toning down the smack talk, I'm just used to a little > witty back and forth with some seriously cruel individuals. Thank you David, that is appreciated. I see that you have changed your signature to match your preferred nam

Re: list comprehension question

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 10:13 PM, Dave Angel wrote: > On 10/16/2012 09:54 PM, Kevin Anthony wrote: >> I've been teaching myself list comprehension, and i've run across something >> i'm not able to convert. >> >> here's the original code for matrix multiplcation >> >> retmatrix = Matrix(self.__row,

Re: list comprehension question

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 10:13 PM, Dwight Hutto wrote: > On Tue, Oct 16, 2012 at 9:54 PM, Kevin Anthony > wrote: >> I've been teaching myself list comprehension, and i've run across something >> i'm not able to convert. >> >> here's the original code for matrix multiplcation >> >> retmatrix = Matr

Re: list comprehension question

2012-10-16 Thread Dave Angel
On 10/16/2012 09:54 PM, Kevin Anthony wrote: > I've been teaching myself list comprehension, and i've run across something > i'm not able to convert. > > here's the original code for matrix multiplcation > > retmatrix = Matrix(self.__row,other.__col) > for m in range(0,retmatrix.__row): > for n

Re: Tkinter how to access the widget by name

2012-10-16 Thread woooee
On Oct 14, 1:11 pm, Владимир Пылев wrote: > label = Label(frame, width = 40, text='text', name = 'name') > ... > name_='name' > configure(name_) > ... > def configure(name_) >         #And how can that be? >         # At least let the text you want to change I do not understand your question

list comprehension question

2012-10-16 Thread Kevin Anthony
I've been teaching myself list comprehension, and i've run across something i'm not able to convert. here's the original code for matrix multiplcation retmatrix = Matrix(self.__row,other.__col) for m in range(0,retmatrix.__row): for n in range(0,retmatrix.__col): product = 0 f

Re: overriding equals operation

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 9:51 AM, Pradipto Banerjee wrote: > I am trying to define class, where if I use a statement a = b, then instead > of "a" pointing to the same instance as "b", it should point to a copy of > "b", but I can't get it right. > > Currently, I have the following: > > > > c

how to use pyODBC to connect to MySql ,please give me a sample

2012-10-16 Thread iMath
host name : localhost user name:root password:19910512 database name : shopping -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to create kernel log messages via Python?

2012-10-16 Thread Andrew Cooper
On 16/10/2012 04:43, J wrote: > Hi... > > > So, what I REALLY want is to inject my start/stop markers into klogd > rather than syslogd. This will, I hope, give my markers kernel > timestamps rather than syslog timestamps which are not as accurate. > > So does anyone know of a way to do this?

Re: OT Questions

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 1:47 PM, Walter Hurry wrote: > On Tue, 16 Oct 2012 11:23:09 -0600, Ian Kelly wrote: > >> My theory for a while now has been that Mr. Hutto is probably an >> enterprising teenager > > My theory for a while now has been that Mr. Hutto belongs in the bozo bin. Maybe you're a

Re: OT Questions

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 1:23 PM, Ian Kelly wrote: > On Tue, Oct 16, 2012 at 9:21 AM, Demian Brecht wrote: >> There's a small light somewhere deep down that says maybe this is just >> someone quite misdirected. A brief search shows that he has multiple >> domains, all with the same type of design.

Re: OT Questions

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 11:53 AM, rusi wrote: > On Oct 16, 7:55 pm, Demian Brecht wrote: >> I'm not sure whether or not this is a troll, but I'll bite. > > Do trolls exist any more than pixies, elves, gnomes, unicorns? > Trolling posts of course do... IOW: > >> There's a small light somewhere dee

Re: OT Questions

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 11:13 AM, Jean-Michel Pichavant wrote: > - Original Message - > > [snip a link to a 1980's personal gif based homepage] > >> Now having said all of that, if this is a troll, I feel rather >> foolish. > > Search deep inside your heart, and you'll realize you already

Re: OT Questions

2012-10-16 Thread Dwight Hutto
I'm not sure whether or not this is a troll, but I'll bite. No, not a troll, I've been around these lists for a while, and a few wild arguments stemming from both my ego, and some other programmer's arrogance. > > If you're going to ask for people's opinions on your work, I would try to > keep the

Re: Aggressive language on python-list

2012-10-16 Thread Joshua Landau
First of all, I believe this is the *perfect* post to try and keep discussion calm. If trusted members cannot keep a good tone of voice and have an understanding (even if disagreeing) stance on a post about aggressive language, it does not shine brightly as a message to others. On 16 October 2012

Re: Fwd: system tray or notification area in python

2012-10-16 Thread Christian Gollwitzer
Am 16.10.12 22:39, schrieb Daniel Fetchinson: Hi folks, So I thought I would write a brand new stand alone system tray or notification area in python. I guess I need to use gtk bindings or some such but don't really know what my options are. Where would I start something like this? Any pointers

RE: system tray or notification area in python

2012-10-16 Thread Prasad, Ramit
Daniel Fetchinson wrote: > >> Hi folks, > >> > >> I'm using a stand alone window manager without gnome or kde or any > >> other de. But I still would like to have a system tray or notification > >> area and so far used stalonetray for this. Stalonetray is written in C > >> and is a GTK application,

Re: Aggressive language on python-list

2012-10-16 Thread rurpy
On 10/16/2012 02:17 PM, Prasad, Ramit wrote:> Steven D'Aprano wrote: >> On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and dicks: >> >> > The best advise is to ignore such posts and encourage others to do the >> > same. >> >> If you ignore such posts, how will the poster know they a

Re: Aggressive language on python-list

2012-10-16 Thread rurpy
On 10/16/2012 10:49 AM, Steven D'Aprano wrote: > > On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and dicks: No, I wrote about trolls. "dicks" is a highly emotive and almost totally subjective word that I would not use in a rational discussion. Perhaps you were trying to be amusin

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Ned Deily
In article , Peter Otten <__pete...@web.de> wrote: > Ned Deily wrote: > > Keep in mind that the Python readline module may be linked to either the > > GPL-licensed GNU readline or the BSD-licensed editline (libedit) library > > (the default on newer OS X systems and probably on *BSD systems) and >

RE: Aggressive language on python-list

2012-10-16 Thread Prasad, Ramit
Steven D'Aprano wrote: > On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and dicks: > > > The best advise is to ignore such posts and encourage others to do the > > same. > > If you ignore such posts, how will the poster know they are unacceptable? > > How should somebody distinguis

Fwd: system tray or notification area in python

2012-10-16 Thread Daniel Fetchinson
>> Hi folks, >> >> I'm using a stand alone window manager without gnome or kde or any >> other de. But I still would like to have a system tray or notification >> area and so far used stalonetray for this. Stalonetray is written in C >> and is a GTK application, works all right but sometimes it doe

Re: Is there a way to create kernel log messages via Python?

2012-10-16 Thread Jerry Peters
J wrote: > Hi... > > I have a bit of code that does the following: > > uses the syslog module to inject a LOG_INFO message into the syslog on > my linux machine > runs a suspend/resume cycle > uses the syslog module to inkect a LOG_INFO message marking the end of test. > > Then I parse everythi

Re: system tray or notification area in python

2012-10-16 Thread Rodrick Brown
On Oct 16, 2012, at 4:14 PM, Daniel Fetchinson wrote: > Hi folks, > > I'm using a stand alone window manager without gnome or kde or any > other de. But I still would like to have a system tray or notification > area and so far used stalonetray for this. Stalonetray is written in C > and is a GTK

system tray or notification area in python

2012-10-16 Thread Daniel Fetchinson
Hi folks, I'm using a stand alone window manager without gnome or kde or any other de. But I still would like to have a system tray or notification area and so far used stalonetray for this. Stalonetray is written in C and is a GTK application, works all right but sometimes it doesn't. For instanc

Re: Providing a Python wrapper to a C++ type.

2012-10-16 Thread Christian Gollwitzer
Am 16.10.12 18:42, schrieb Evan Driscoll: For instance, I used it to wrap the OS's opendir/readdir (FindFirstFile/FindNextFile) functions: I just wrote a bit of code using Cython's extensions, and I get a module I can import and use as normal. Well, but for an existing library in C++ possibly S

Re: OT Questions

2012-10-16 Thread Walter Hurry
On Tue, 16 Oct 2012 11:23:09 -0600, Ian Kelly wrote: > My theory for a while now has been that Mr. Hutto is probably an > enterprising teenager My theory for a while now has been that Mr. Hutto belongs in the bozo bin. -- http://mail.python.org/mailman/listinfo/python-list

Client Needs at Network Engineer at Germantown,MD

2012-10-16 Thread ram dev
Good Day, We have an urgent Contract Opening in Germantown, MD. Looking forward to submit your resume for below mentioned Requirement… If you are interested, Please forward your latest resume along with location and pay rate details to r...@tech-netinc.com Job Title: Network Engineer Locati

Re: overriding equals operation

2012-10-16 Thread Nobody
On Tue, 16 Oct 2012 08:51:46 -0500, Pradipto Banerjee wrote: > I am trying to define class, where if I use a statement a = b, then > instead of "a" pointing to the same instance as "b", it should point to a > copy of "b", but I can't get it right. It cannot be done. Name binding ("variable = val

Re: cx_Oracle clause IN using a variable

2012-10-16 Thread Hans Mulder
On 16/10/12 15:41:58, Beppe wrote: > Hi all, > I don't know if it is the correct place to set this question, however, > I'm using cx_Oracle to query an Oracle database. > I've a problem to use the IN clause with a variable. > My statement is > > sql = "SELECT field1,field2,field3 > FROM m

Re: OT Questions

2012-10-16 Thread Ian Kelly
On Tue, Oct 16, 2012 at 9:21 AM, Demian Brecht wrote: > There's a small light somewhere deep down that says maybe this is just > someone quite misdirected. A brief search shows that he has multiple > domains, all with the same type of design. I would be hard pressed to think > that someone would g

Re: cx_Oracle clause IN using a variable

2012-10-16 Thread Ian Kelly
On Tue, Oct 16, 2012 at 7:41 AM, Beppe wrote: > Hi all, > I don't know if it is the correct place to set this question, however, The best place to ask questions about cx_Oracle would be the cx-oracle-users mailing list. > what is wrong? > suggestions? With the bind parameter you're only passing

Re: Re: Providing a Python wrapper to a C++ type.

2012-10-16 Thread Evan Driscoll
[Stefan gave part of an answer here, but I've got an addition too.] On 10/16/2012 6:46 AM, Marco Nawijn wrote: > I never worked with Cython (but I know it is very powerful and interesting) > but in my mind there are slight differences in usage scenario between e.g. > Boost Python and Cython. For

Re: Aggressive language on python-list

2012-10-16 Thread Steven D'Aprano
On Tue, 16 Oct 2012 09:27:48 -0700, rurpy wrote about trolls and dicks: > The best advise is to ignore such posts and encourage others to do the > same. If you ignore such posts, how will the poster know they are unacceptable? How should somebody distinguish between "I am being shunned for actin

RE: Fastest web framework

2012-10-16 Thread Andriy Kornatskyy
Demian, Thank you, see below. > I think that my first batch of questions were slightly out of context, > mostly due to a lack of caffeine first thing in the morning. My > understanding at the time was that your "an answer to effectivity" was, > in fact, a list of highlights for wheezy.web (which

Re: Aggressive language on python-list

2012-10-16 Thread rurpy
On 10/14/2012 10:36 PM, alex23 wrote:> On Oct 15, 1:22 pm, ru...@yahoo.com wrote: >> Thus when a member of this esteemed group >> was recently attacked as racist, for punning another member's >> name when responding somewhat heatedly, > > Again, there is a difference between "attacking" someone "

Re: [Neo4j] ANN: python-blueprints, printemps and printemps client

2012-10-16 Thread Amirouche Boubekki
Héllo Javier, 2012/10/16 Javier de la Rosa > Do you need Java [1] to run any of them? There is another alternative > called pyblueprints [2] through REST interface. > > [1] > http://pyjnius.readthedocs.org/en/latest/installation.html#installation > [2] https://github.com/escalant3/pyblueprints

Re: Fastest web framework

2012-10-16 Thread Demian Brecht
On 10/16/2012 7:47 AM, Andriy Kornatskyy wrote: I think that my first batch of questions were slightly out of context, mostly due to a lack of caffeine first thing in the morning. My understanding at the time was that your "an answer to effectivity" was, in fact, a list of highlights for wheezy

Re: OT Questions

2012-10-16 Thread rusi
On Oct 16, 7:55 pm, Demian Brecht wrote: > I'm not sure whether or not this is a troll, but I'll bite. Do trolls exist any more than pixies, elves, gnomes, unicorns? Trolling posts of course do... IOW: > There's a small light somewhere deep down that says maybe this is just > someone quite misdi

Re: OT Questions

2012-10-16 Thread Demian Brecht
On 10/16/2012 8:13 AM, Jean-Michel Pichavant wrote: Search deep inside your heart, and you'll realize you already know the answer to that question :o) JM There's a small light somewhere deep down that says maybe this is just someone quite misdirected. A brief search shows that he has multipl

Re: [off topic], was Re: [on topic] Re: readline trick needed

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 10:36 AM, Peter Otten <__pete...@web.de> wrote: > Dwight Hutto wrote: > > I knew I'd eventually regret putting "on topic" into the subject... I didn't write that. If you're referring to OT, it means Off Topic, and a response would be appreciated. And you can call me David,

Re: OT Questions

2012-10-16 Thread Jean-Michel Pichavant
- Original Message - [snip a link to a 1980's personal gif based homepage] > Now having said all of that, if this is a troll, I feel rather > foolish. Search deep inside your heart, and you'll realize you already know the answer to that question :o) JM -- http://mail.python.org/mailma

Re: Which book is the best?

2012-10-16 Thread Demian Brecht
On 10/15/2012 9:27 PM, 老爷 wrote: I have strong c++ development experience. But now I want to study the python to do some windows setting task, such as editing file, changing the system setting, doing some network processing. Please help me which book is the best? Thanks. If you're already a

Re: OT Questions

2012-10-16 Thread Demian Brecht
On 10/15/2012 9:05 PM, Dwight Hutto wrote: Like a lot of people here, I'm trying to build a web development business. I'm starting off by building a profile on a freelance site. I would like some honest opinions(don't be too harsh), about my approach. I'm looking for a team effort to analyze my

RE: Fastest web framework

2012-10-16 Thread Andriy Kornatskyy
Demian, Thank you, I appreciate your input. See below. > > Performance and effectivity are related metrics. Longer feature list can not explain why it less effective. An answer to effectivity question might be related to: > > - code quality (we have PEP8) > > Any static code analysis such as p

[off topic], was Re: [on topic] Re: readline trick needed

2012-10-16 Thread Peter Otten
Dwight Hutto wrote: I knew I'd eventually regret putting "on topic" into the subject... Well done, Dwight. -- http://mail.python.org/mailman/listinfo/python-list

Re: overriding equals operation

2012-10-16 Thread Thomas Rachel
Am 16.10.2012 15:51 schrieb Pradipto Banerjee: I am trying to define class, where if I use a statement a = b, then instead of "a" pointing to the same instance as "b", it should point to a copy of "b", but I can't get it right. This is not possible. Currently, I have the following:

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 7:27 AM, Steven D'Aprano wrote: > On Tue, 16 Oct 2012 10:30:01 +0200, Peter Otten wrote: > >> Steven D'Aprano wrote: >> >>> I'm working with the readline module, and I'm trying to set a key >>> combination to process the current command line by calling a known >>> function,

Re: overriding equals operation

2012-10-16 Thread Dave Angel
On 10/16/2012 09:51 AM, Pradipto Banerjee wrote: > I am trying to define class, where if I use a statement a = b, then instead > of "a" pointing to the same instance as "b", it should point to a copy of > "b", but I can't get it right. > > The __eq__ method is called for equals comparison, like

Re: Fastest web framework

2012-10-16 Thread Demian Brecht
Let me say right off the bat that I've taken a brief look through the code and documentation and found that I wouldn't mind trying it out for personal projects. So, the intention here is not to slag the framework. > Performance and effectivity are related metrics. Longer feature list can not > ex

overriding equals operation

2012-10-16 Thread Pradipto Banerjee
I am trying to define class, where if I use a statement a = b, then instead of "a" pointing to the same instance as "b", it should point to a copy of "b", but I can't get it right. Currently, I have the following: class myclass(object): def __init__(self, name='')

Re: What's the tidy/elegant way to protect this against null/empty parameters?

2012-10-16 Thread tinnews
Marco Nawijn wrote: > On Monday, October 15, 2012 1:33:02 PM UTC+2, (unknown) wrote: > > I want to fix an error in some code I have installed, however I don't > > > > really want to just bodge it. > > > > > > > > The function producing the error is:- > > > > > > > > def get_text(self, i

cx_Oracle clause IN using a variable

2012-10-16 Thread Beppe
Hi all, I don't know if it is the correct place to set this question, however, I'm using cx_Oracle to query an Oracle database. I've a problem to use the IN clause with a variable. My statement is sql = "SELECT field1,field2,field3 FROM my_table WHERE field_3 IN (:arg_1)" where a

Re: [Neo4j] ANN: python-blueprints, printemps and printemps client

2012-10-16 Thread Javier de la Rosa
Do you need Java [1] to run any of them? There is another alternative called pyblueprints [2] through REST interface. [1] http://pyjnius.readthedocs.org/en/latest/installation.html#installation [2] https://github.com/escalant3/pyblueprints On Tue, Oct 16, 2012 at 8:43 AM, Amirouche Boubekki wr

Re: using message loop for hotkey capturing

2012-10-16 Thread bagratte
hi all, i am a complete newbie in windows programming and have come across this problem. i wanted a windows systray application which would seat in the notification are, would have a tiny popup menu and would also respond to a global hotkey. i've assembled something out of the demos in pywin32

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Steven D'Aprano
On Tue, 16 Oct 2012 13:20:24 +0100, Robert Kern wrote: > On 10/16/12 12:27 PM, Steven D'Aprano wrote: >> Well, I was hoping for a pure Python solution, rather than having to >> troll through who knows how many thousands of lines of code in a >> language I can barely read. > > Are you confusing I

ANN: python-blueprints, printemps and printemps client

2012-10-16 Thread Amirouche Boubekki
Héllo, I'm happy to announce about projects related to graph databases, Neo4j and OrientDB and Python: - python-blueprints is a Python bindings of Tinkerpop's Blueprintslibrary that allow you to access and query a graph database directly from Python.

Re: Accessing variables in __init__.py

2012-10-16 Thread Gaudha
On Tuesday, October 16, 2012 3:41:55 PM UTC+5:30, Marco Nawijn wrote: > On Tuesday, October 16, 2012 10:48:17 AM UTC+2, Gaudha wrote: > > > my_package/ > > > > > > __init__.py > > > > > > my_module1.py > > > > > > my_module2.py > > > > > > variables.py > > > > > > > > > >

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Robert Kern
On 10/16/12 12:27 PM, Steven D'Aprano wrote: On Tue, 16 Oct 2012 10:30:01 +0200, Peter Otten wrote: Steven D'Aprano wrote: I'm working with the readline module, and I'm trying to set a key combination to process the current command line by calling a known function, *and* enter the command lin

Re: Providing a Python wrapper to a C++ type.

2012-10-16 Thread Stefan Behnel
Marco Nawijn, 16.10.2012 13:46: > I never worked with Cython (but I know it is very powerful and > interesting) but in my mind there are slight differences in usage > scenario between e.g. Boost Python and Cython. For me the idea of Cython > is that your main code is in Python Normally, yes. You c

Re: Python on Windows

2012-10-16 Thread Dwight Hutto
On Tue, Oct 16, 2012 at 7:35 AM, Marco Nawijn wrote: > On Tuesday, October 16, 2012 1:29:23 PM UTC+2, graham wrote: >> Downloaded and installed Python 2.7.3 for windows (an XP machine). >> >> >> >> Entered the Python interactive interpreter/command line and typed the >> >> following: >> >> >> >>

RE: Fastest web framework

2012-10-16 Thread Andriy Kornatskyy
Alex, Thank you, see my answers inline to your comments: > Performance speed is possibly the least interesting aspect of web > frameworks; Performance and effectivity are related metrics. Longer feature list can not explain why it less effective. An answer to effectivity question might be rel

Re: Providing a Python wrapper to a C++ type.

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 1:39:44 PM UTC+2, Stefan Behnel wrote: > Marco Nawijn, 16.10.2012 12:17: > > > On Tuesday, October 16, 2012 10:11:52 AM UTC+2, aaron.l...@gmail.com wrote: > > >> I have a C++ module where I have a defined, working type. How would I > > >> make a wrapper for this type

Re: Python on Windows

2012-10-16 Thread Joel Goldstick
On Tue, Oct 16, 2012 at 7:29 AM, graham wrote: > > Downloaded and installed Python 2.7.3 for windows (an XP machine). > > Entered the Python interactive interpreter/command line and typed the > following: > > >>>import feedparser > > and I get the error message "No module named feedparser"

Re: Python on Windows

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 1:29:23 PM UTC+2, graham wrote: > Downloaded and installed Python 2.7.3 for windows (an XP machine). > > > > Entered the Python interactive interpreter/command line and typed the > > following: > > > > >>>import feedparser > > > > and I get the error mes

Re: Providing a Python wrapper to a C++ type.

2012-10-16 Thread Stefan Behnel
Marco Nawijn, 16.10.2012 12:17: > On Tuesday, October 16, 2012 10:11:52 AM UTC+2, aaron.l...@gmail.com wrote: >> I have a C++ module where I have a defined, working type. How would I >> make a wrapper for this type to be able to be used in Python? I am >> familiar(-ish) with the C-API for functions

Python on Windows

2012-10-16 Thread graham
Downloaded and installed Python 2.7.3 for windows (an XP machine). Entered the Python interactive interpreter/command line and typed the following: >>>import feedparser and I get the error message "No module named feedparser". There is a feedparser.py file lurking around - so I supp

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Steven D'Aprano
On Tue, 16 Oct 2012 10:30:01 +0200, Peter Otten wrote: > Steven D'Aprano wrote: > >> I'm working with the readline module, and I'm trying to set a key >> combination to process the current command line by calling a known >> function, *and* enter the command line. >> >> Something along the lines

Re: numpy - 2D matrix/array - initialization like in Matlab...

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 12:43:09 AM UTC+2, someone wrote: > On 10/15/2012 11:26 PM, MRAB wrote: > > > On 2012-10-15 22:09, someone wrote: > > >> > > >> See this: > > >> > > >> == > > >> In [5]: Dx = numpy.matrix('1 0 0; 0 0.5 -0.5;

Re: Which book is the best?

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 6:41:29 AM UTC+2, David Hutto wrote: > On Tue, Oct 16, 2012 at 12:27 AM, 老爷 wrote: > > > I have strong c++ development experience. But now I want to study the > > > python to do some windows setting task, such as editing file, changing the > > > system setting, doi

Re: Is there a way to create kernel log messages via Python?

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 5:43:28 AM UTC+2, J wrote: > Hi... > > > > I have a bit of code that does the following: > > > > uses the syslog module to inject a LOG_INFO message into the syslog on > > my linux machine > > runs a suspend/resume cycle > > uses the syslog module to inkect a L

Re: Providing a Python wrapper to a C++ type.

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 10:11:52 AM UTC+2, aaron.l...@gmail.com wrote: > Hi, > > > > I have a C++ module where I have a defined, working type. How would I make a > wrapper for this type to be able to be used in Python? I am familiar(-ish) > with the C-API for functions but I can't see con

Re: [on topic] Re: readline trick needed

2012-10-16 Thread Peter Otten
Ned Deily wrote: > In article , Peter Otten <__pete...@web.de> > wrote: >> Steven D'Aprano wrote: >> > I'm working with the readline module, and I'm trying to set a key >> > combination to process the current command line by calling a known >> > function, *and* enter the command line. > [...] >> A

Re: Accessing variables in __init__.py

2012-10-16 Thread Marco Nawijn
On Tuesday, October 16, 2012 10:48:17 AM UTC+2, Gaudha wrote: > my_package/ > > __init__.py > > my_module1.py > > my_module2.py > > variables.py > > > > I want to define common variables in __init__.py and use the namespace in > my_module1.py or my_module2.py. Defining it is not a p

Re: What's the tidy/elegant way to protect this against null/empty parameters?

2012-10-16 Thread Marco Nawijn
On Monday, October 15, 2012 1:33:02 PM UTC+2, (unknown) wrote: > I want to fix an error in some code I have installed, however I don't > > really want to just bodge it. > > > > The function producing the error is:- > > > > def get_text(self, idx): # override ! > >

RE: Fastest web framework

2012-10-16 Thread Andriy Kornatskyy
Per community request I have updated benchmarks for web2py 2.1.1 release (the newer version performs 26% better; no error while running on pypy): Here are updated posts, just in case: http://mindref.blogspot.com/2012/09/python-fastest-web-framework.html http://mindref.blogspot.com/2012/10/pytho

Re: What's the tidy/elegant way to protect this against null/empty parameters?

2012-10-16 Thread Jean-Michel Pichavant
- Original Message - > I want to fix an error in some code I have installed, however I don't > really want to just bodge it. > > The function producing the error is:- > > def get_text(self, idx): # override ! > node = self.items[idx] > > a= [ >

Immediate Hire Hyderabad: Requirement for Python Developer/ Lead with 4-8 yrs.Email me if you are interested at srav...@galloptech.com

2012-10-16 Thread Satyavolu Sravani
• Development of RESTful web services using Python/WSGI. • Implement and maintain applications using Python and Oracle. • Create automated test coverage and continuous integration for new & existing code. • Create/use tools to load and update statistical & editorial content in Oracle database

Immediate need for Python Developers (Django,mysql, jquery) Work locations Hyderabad/Mumbia, exp: 4-8yrs, please share resumes to ayesh...@galloptech.com.

2012-10-16 Thread Ayesha D.
-- http://mail.python.org/mailman/listinfo/python-list

  1   2   >