Re: Different byte-code in same major version (2.6.x)?

2010-06-16 Thread Paul Rubin
Hartmut Goebel writes: > a) they are only maintenance releases and changes to bytecode >generation would eb a functional change Why would it be a functional change, if no new bytecodes are introduced or anything like that? I thought we were just talking about two versions of the compiler emi

Re: Overriding "__setattr__" of a module - possible?

2010-06-16 Thread John Nagle
On 6/16/2010 1:10 PM, Ian Kelly wrote: On Wed, Jun 16, 2010 at 12:55 PM, John Nagle wrote: Note that there are now two copies of "a", one bound to the module and referenced in "f", and a second bound to the class, and referenced by "x.a". Uh oh. The problem here is that when "def f..." was de

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Joshua Kordani
Benjamin Kaplan wrote: On Wed, Jun 16, 2010 at 12:21 PM, Mark Lawrence wrote: On 16/06/2010 18:56, Alan Harris-Reid wrote: Any idea how we get rid of this 'noise'? Will it eventually go away if we ignore it, or is there anything the moderators can do to clean-up this (normally) wonder

Re: exceptions and unicode

2010-06-16 Thread Thomas Jollans
On 06/16/2010 10:10 PM, Stuart McGraw wrote: > I am having a problem with exceptions and unicode. > > try: open ('file.txt') > except IOError, e: pass > str (e) > => "[Errno 2] No such file or directory: 'file.txt'" > > which is fine but... > > try: open (u'フィイル.txt') > except IOErro

Re: exceptions and unicode

2010-06-16 Thread Martin v. Loewis
So how do I get what I want? Submit a patch. You would have to explain why this is a bug fix and not a new feature, as new features are not allowed anymore for 2.x. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Different byte-code in same major version (2.6.x)?

2010-06-16 Thread Grant Edwards
On 2010-06-16, Hartmut Goebel wrote: > Am 15.06.2010 20:43, schrieb Paul Rubin: >> Hartmut Goebel writes: >>> I'm facing a curious problem: 2.6, 2.6.1 and 2.6.4 are generating >>> different byte-code for the same source. I can not find the reason for. >> >> Why should they generate the same byte

A daemon to call a function with configurable interval

2010-06-16 Thread Vishal Rana
Hi, I am working in a django web application. A function 'xyx' need to be called every 2 minutes. I want one http request should start the daemon and keep calling xyz (every 2 minutes) until I send another http request to stop it. Appreciate your ideas. Thanks Vishal Rana -- http://mail.pytho

Python 2.4.4 Tkinter GUI Example for Modeless Dialog with Menu, Edit, List, Buttons, File Save etc.

2010-06-16 Thread My Python
I would like to see some substantial example of an App written for a Modeless Dialog (fixed size, non resizable window) (If you have used WIndows MFC or Visual Basic you all know how elegant it is) with Buttons, menus, edit boxes, list boxes, file save as dialogs popping from the button action (thi

Re: Possible to make subprocess.Popen jobs run serially rather than in parallel?

2010-06-16 Thread Chris Seberino
On Jun 16, 11:27 am, Stephen Hansen wrote: > On 6/16/10 7:04 AM, Chris Seberino wrote: > > > On Jun 15, 2:03 pm, Stephen Hansen wrote: > > >> Just call "process.wait()" after you call process = subprocess.Popen(...) > > > I may have not been clear. > > I *don't* want web app to block on Popen

Re: Coroutines: unexpected behaviour

2010-06-16 Thread Jérôme Mainka
On 16 juin, 20:11, Carl Banks wrote: > I suggest, if you intend to use this kind of thing in real code (and I > would not recommend that) that you get in a habit of explicitly > closing the generator after the last send(), even when you don't think > you have to. Very clear explanation. Thanks f

Re: Writing to open subprocess pipes.

2010-06-16 Thread Brandon McGinty
Ah. Thank you all for your quick responses. I shall implement non-blocking stdin/stdout objects, then. Thank You, Brandon McGinty On 6/16/2010 5:37 PM, Thomas Jollans wrote: On 06/16/2010 10:29 PM, Brandon McGinty wrote: All, I have researched this both in the python documentation, and via

Re: Jewish Pirates of the Caribbean

2010-06-16 Thread J. Clarke
On 6/16/2010 4:42 PM, George Neuner wrote: On Wed, 16 Jun 2010 17:23:35 +0200, [email protected] (Pascal J. Bourguignon) wrote: Kryno Bosman writes: Would you, please, be so nice to share *your* truth somewhere else? He has been long time ago kill-filed by everybody. Your quoting of h

Re: GUIs - A Modest Proposal

2010-06-16 Thread Matt
On 06/05/2010 09:22 PM, ant wrote: PyQt is tied to one platform. Several posters have asked for support for or clarification of this claim of yours. On its face it seems to be nonsense. So just what are you talking about? -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Mark Lawrence
On 16/06/2010 22:51, Joshua Kordani wrote: Benjamin Kaplan wrote: On Wed, Jun 16, 2010 at 12:21 PM, Mark Lawrence wrote: On 16/06/2010 18:56, Alan Harris-Reid wrote: Any idea how we get rid of this 'noise'? Will it eventually go away if we ignore it, or is there anything the moderators can do

Re: A daemon to call a function with configurable interval

2010-06-16 Thread Clovis Fabricio
2010/6/16 Vishal Rana : > I am working in a django web application. > A function 'xyx' need to be called every 2 minutes. > I want one http request should start the daemon and keep calling xyz (every > 2 minutes) until I send another http request to stop it. > Appreciate your ideas. Hello Vishal!

Re: Jewish Pirates of the Caribbean

2010-06-16 Thread nanothermite911fbibustards
On Jun 16, 3:27 pm, "J. Clarke" wrote: > On 6/16/2010 4:42 PM, George Neuner wrote: > > > > > On Wed, 16 Jun 2010 17:23:35 +0200, [email protected] (Pascal J. > > Bourguignon) wrote: > > >> Kryno Bosman  writes: > >>> Would you, please, be so nice to share *your* truth somewhere else? > > >>

Re: Overriding "__setattr__" of a module - possible?

2010-06-16 Thread Ian Kelly
On Wed, Jun 16, 2010 at 3:38 PM, John Nagle wrote: > That just leaves things in a state where even "sys" and "import" > are undefined. Say what? It works fine for me. >>> import proxy_mod >>> proxy_mod.f() 1 >>> proxy_mod.a = 2 setting a=2 >>> proxy_mod.f() 2 >>> proxy_mod.sys Ian -- http://

Re: Python editing .txt file

2010-06-16 Thread MRAB
[email protected] wrote: From: MRAB mailto:[email protected]>> To: [email protected] Date: Wed, 16 Jun 2010 03:06:58 +0100 Subject: Re: Python editing .txt file [email protected]

Re: Writing to open subprocess pipes.

2010-06-16 Thread Nobody
On Wed, 16 Jun 2010 16:29:42 -0400, Brandon McGinty wrote: > Both subprocess and os.popen* only allow inputput and output one time, > and the output to be read only when the process terminates. This is incorrect; you can read from and write to the pipe as you wish. However: you may have problems

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread alex23
Stephen Hansen wrote: > P.S. This is something which confuses me greatly. Considering how > *great* the spam filters are on Gmail-- I literally get virtually > nothing in my inbox-- how in world are Google Groups so full of junk? The cynic in me thinks it has a lot to do with how many of these Gr

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread geremy condra
On Wed, Jun 16, 2010 at 6:04 PM, alex23 wrote: > Stephen Hansen wrote: >> P.S. This is something which confuses me greatly. Considering how >> *great* the spam filters are on Gmail-- I literally get virtually >> nothing in my inbox-- how in world are Google Groups so full of junk? > > The cynic i

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread alex23
geremy condra wrote: > I have a hard time believing that any major company in the world > wants to be associated with this kind of crap. I'm ashamed even > to have it in my inbox. I can just as easily imagine the furor that would spring up over Google's "evil censorship" if they _did_ start yanki

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread geremy condra
On Wed, Jun 16, 2010 at 6:28 PM, alex23 wrote: > geremy condra wrote: >> I have a hard time believing that any major company in the world >> wants to be associated with this kind of crap. I'm ashamed even >> to have it in my inbox. > > I can just as easily imagine the furor that would spring up o

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Deadly Dirk
On Wed, 16 Jun 2010 11:50:45 -0700, Stephen Hansen wrote: > On 6/16/10 10:56 AM, Alan Harris-Reid wrote: >> Any idea how we get rid of this 'noise'? Will it eventually go away if >> we ignore it, or is there anything the moderators can do to clean-up >> this (normally) wonderful resource for Pyth

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Ian Kelly
On Wed, Jun 16, 2010 at 7:36 PM, geremy condra wrote: > Granted, but I don't see that happening if all they're doing is > filtering spam out of groups. They already do it in your inbox > for pete's sake- if it is censorship, it doesn't strike any closer > to home than that, and people love them fo

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Stephen Hansen
On 6/16/10 6:52 PM, Ian Kelly wrote: > And for the record, Google Groups does have a spam filter that can be > enabled in the moderation settings. The possible spam messages get > sent to a moderation queue for a review. I imagine that for a group > this size, the amount of work involved in moder

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Ian Kelly
On Wed, Jun 16, 2010 at 8:02 PM, Stephen Hansen wrote: > This isn't a Google Group-group, though. There are no moderators, no > administrators. Its a Usenet group (at least as far as Google is > concerned) which Google offers in Google Groups form. Which goes back to my first point. When they fi

Re: a +b ?

2010-06-16 Thread Aahz
In article , alex23 wrote: > >I've never used map/reduce outside of Python, this is where I first >encountered it. And I _have_ worked in organisations alongside new >Python coders. That it's easy enough to express both map & reduce in >Python code helped a lot with explaining them. And I am not

Re: a +b ?

2010-06-16 Thread James Mills
On Thu, Jun 17, 2010 at 12:37 PM, Aahz wrote: > And I am not particularly fond of map() and cordially loathe reduce(). > Speaking as someone with more than twenty years of programming before > encountering Python more than a decade ago. "Loathe" is a particularly STRONG world. Are you sure you me

Re: a +b ?

2010-06-16 Thread Aahz
In article , James Mills wrote: >On Thu, Jun 17, 2010 at 12:37 PM, Aahz wrote: >> >> And I am not particularly fond of map() and cordially loathe reduce(). >> Speaking as someone with more than twenty years of programming before >> encountering Python more than a decade ago. > >"Loathe" is a par

Re: a +b ?

2010-06-16 Thread James Mills
On Thu, Jun 17, 2010 at 1:34 PM, Aahz wrote: >>"Loathe" is a particularly STRONG world. Are you sure you meant that ? > > Yes, I did mean to use it -- perhaps it is not entirely an accurate > description of my emotional state, but I enjoy the shock effect in this > circumstance. > >>What in partic

Re: a +b ?

2010-06-16 Thread Stephen Hansen
On 6/16/10 9:03 PM, James Mills wrote: > Further: What is "Pythonic" ? This is probably more of a style and > personal taste that might vary from one programmer to another. > I don't recall anywhere in the Python documentation or a Python > document that says map/reduce is or isn't "pythonic" (what

Re: a +b ?

2010-06-16 Thread James Mills
On Thu, Jun 17, 2010 at 2:23 PM, Stephen Hansen wrote: > It could certainly do with a little less 'taking oneself too seriously' :) You do realize my question was completely rhetorical :) --James /me withdraws from this discussion :) -- -- -- "Problems are solved by method" -- http://mail.py

Re: a +b ?

2010-06-16 Thread Stephen Hansen
On 6/16/10 9:43 PM, James Mills wrote: > On Thu, Jun 17, 2010 at 2:23 PM, Stephen Hansen > wrote: >> It could certainly do with a little less 'taking oneself too seriously' :) > > You do realize my question was completely rhetorical :) > > --James > > /me withdraws from this discussion :) My e

Re: a +b ?

2010-06-16 Thread James Mills
On Thu, Jun 17, 2010 at 2:43 PM, James Mills wrote: > /me withdraws from this discussion :) Of course - thank you for that enlightening description of "Pythonic" :) Hopefully it helps others to understand! :) -- -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/

basic doubt

2010-06-16 Thread madhuri vio
def h(self,event): handle = open("myco.fasta","r") for seq_record in SeqIO.parse(handle, "fasta"): messenger_rna = coding_myco.fasta.transcribe() han1 = open("mycorna.fasta","wU") han1.close() return self.messenger_rna the error is... File "/usr/lib/py

Re: Python 2.4.4 Tkinter GUI Example for Modeless Dialog with Menu, Edit, List, Buttons, File Save etc.

2010-06-16 Thread rantingrick
On Jun 16, 5:05 pm, My Python wrote: > I would like to see some substantial example of an App written for a > Modeless Dialog (fixed size, non resizable window) (If you have used > WIndows MFC or Visual Basic you all know how elegant it is) with > Buttons, menus, edit boxes, list boxes, file save

Re: a +b ?

2010-06-16 Thread James Mills
On Thu, Jun 17, 2010 at 2:53 PM, Stephen Hansen wrote: > My entire response was largely tongue-in-cheek :) I know :) Don't you wish there was a "Close Thread" button :) -- -- -- "Problems are solved by method" -- http://mail.python.org/mailman/listinfo/python-list

Upgrading from Python 2.6.5 w.r.t. matplotlib/numpy?

2010-06-16 Thread Mark Lawrence
I'm like to go direct to Python 3.1 if possible, but if necessary I'll happily use Python 2.7 as an interim measure. However I'm uncertain as to the status of matplotlib and its dependency on numpy. I've tried googling their development mailing lists but don't really understand what the curren

Re: Upgrading from Python 2.6.5 w.r.t. matplotlib/numpy?

2010-06-16 Thread Stephen Hansen
On 6/16/10 10:18 PM, Mark Lawrence wrote: > I'm like to go direct to Python 3.1 if possible, but if necessary I'll > happily use Python 2.7 as an interim measure. However I'm uncertain as > to the status of matplotlib and its dependency on numpy. I've tried > googling their development mailing lis

Re: a +b ?

2010-06-16 Thread Mark Lawrence
On 17/06/2010 06:12, James Mills wrote: On Thu, Jun 17, 2010 at 2:53 PM, Stephen Hansen wrote: My entire response was largely tongue-in-cheek :) I know :) Don't you wish there was a "Close Thread" button :) For the more disgraceful/disgusting threads around here in recent days I wish th

gui doubt

2010-06-16 Thread madhuri vio
if i want to create a button which performs the transcription of dna to rna using tkinter in a gui... can u give me the method... -- madhuri :) -- http://mail.python.org/mailman/listinfo/python-list

Re: gui doubt

2010-06-16 Thread Stephen Hansen
On 6/16/10 10:40 PM, madhuri vio wrote: > if i want to create a button > which performs the transcription of dna to rna > using tkinter in a gui... > can u give me the method... You can not possibly be serious. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DO

Re: basic doubt

2010-06-16 Thread Michael Torrie
On 06/16/2010 11:06 PM, madhuri vio wrote: > def h(self,event): > handle = open("myco.fasta","r") > for seq_record in SeqIO.parse(handle, "fasta"): > messenger_rna = coding_myco.fasta.transcribe() > han1 = open("mycorna.fasta","wU") > han1.close() > retur

Re: Python 2.4.4 Tkinter GUI Example for Modeless Dialog with Menu, Edit, List, Buttons, File Save etc.

2010-06-16 Thread Michael Torrie
On 06/16/2010 04:05 PM, My Python wrote: > I would like to see some substantial example of an App written for a > Modeless Dialog (fixed size, non resizable window) (If you have used > WIndows MFC or Visual Basic you all know how elegant it is) What is elegant about a fixed-size, non-re-sizable w

Re: Python 2.4.4 Tkinter GUI Example for Modeless Dialog with Menu, Edit, List, Buttons, File Save etc.

2010-06-16 Thread Michael Torrie
On 06/17/2010 12:50 AM, Michael Torrie wrote: > On 06/16/2010 04:05 PM, My Python wrote: >> I would like to see some substantial example of an App written for a >> Modeless Dialog (fixed size, non resizable window) > > Tk? PyQt? PyGTK? wxPython? Nevermind that question. You stated that in your su

<    1   2