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

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: 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: 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

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: 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

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

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: 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

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

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: 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/

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: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: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 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 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 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 , 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: 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: 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 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 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 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 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: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
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: 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: Python editing .txt file

2010-06-16 Thread MRAB
187braintr...@berkeley.edu wrote: From: MRAB mailto:pyt...@mrabarnett.plus.com>> To: python-list@python.org Date: Wed, 16 Jun 2010 03:06:58 +0100 Subject: Re: Python editing .txt file 187braintr...@berkeley.edu

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: 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, p...@informatimago.com (Pascal J. > > Bourguignon) wrote: > > >> Kryno Bosman  writes: > >>> Would you, please, be so nice to share *your* truth somewhere else? > > >>

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: 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: 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: 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, p...@informatimago.com (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: 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: 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: 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

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

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

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

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: 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: 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: 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: 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: Writing to open subprocess pipes.

2010-06-16 Thread Thomas Jollans
On 06/16/2010 10:29 PM, Brandon McGinty wrote: > All, > I have researched this both in the python documentation, and via google. > Neither subprocess nor os.popen* will do what I need. > First, I would instanshiate an ongoing shell, that would remain active > throughout the life of the socket conne

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

2010-06-16 Thread Thomas Jollans
On 06/16/2010 10:36 PM, 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 sa

Re: Writing to open subprocess pipes.

2010-06-16 Thread Stephen Hansen
On 6/16/10 1:29 PM, 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. Its not that subprocess only *allow* input and output one at a time, but that it a) provides blocking file objects by de

Re: Writing to open subprocess pipes.

2010-06-16 Thread Ian Kelly
On Wed, Jun 16, 2010 at 2:29 PM, 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. You can read output before the subprocess terminates by setting the pipe to be non-blocking: import fcntl

JBR ,Lower Market price ,Sea View and Marina View AED800per/sqft ,050-8320722

2010-06-16 Thread PETER WONG F H (+971 50 8320722)
JBR Lower market price AED800per/sqft 5 unit (3Bed + Maid)(packet) (1800sqft to 3000sqft) +Transfer Fee 2 % + Broker Fee 2% JBR Apartments Located near to Dubai Marina and lying in a beach front location comprises the area of JBR or Jumeirah Beach Residences, Comprising clusters of 6 tower covering

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Stephen Hansen
On 6/16/10 1:42 PM, Mark Lawrence wrote: > Thanks Stephen, > > But likely to be difficult as (presumably he) has already turned up this > evening as smallpox. I noticed. Reported too. Hopefully, Google'll like, ban his IP or something. Either way, I shall persistently continue to report! Even if

Re: Python Tkinter Linux Repair Question/ Python TCP Socket Example

2010-06-16 Thread My Python
1. Could u also quote some URLs for sample GUI programs written using Tkinter. I am looking for any aubstantial app that has Canvas, Frame, Button, LIstbox widgets, plus File Open/Save for simple text files. 2. Some good holistic article for positioning widgets on the frame/ canvas, basic concepts

error on exe file

2010-06-16 Thread Ahmed, Shakir
HI, I created a script to do some GIS process ( basic GIS operation exam: create shape file, project and copy) and exporting one of the output to dbf too. The Script is running without any problem where ArcGIS and python are installed. I need to runt this application where both of the applicat

Re: Python Ajuda por favor

2010-06-16 Thread Francisco Souza
Olá, esta é uma lista em inglês, você pode encontrar apoio em língua portuguesa na lista Python Brasil: http://br.groups.yahoo.com/group/python-brasil/ Forte abraço, Francisco Souza Software developer at Giran and also full time Open source evangelist at full time http://www.franciscosouza.com.br

Re: Jewish Pirates of the Caribbean

2010-06-16 Thread George Neuner
On Wed, 16 Jun 2010 17:23:35 +0200, p...@informatimago.com (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 his message puts you at risk of being

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Mark Lawrence
On 16/06/2010 21:02, Stephen Hansen wrote: On 6/16/10 12:21 PM, Mark Lawrence wrote: I actually don't know how to report such things because of the combination of c.l.py, gmane.comp.python.general and http://mail.python.org/mailman/listinfo/python-list, possibly others?. Could somebody please sh

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

2010-06-16 Thread Hartmut Goebel
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 bytecode? All that you should expect Because a)

Re: Readability (html purifier) in Python

2010-06-16 Thread Дамјан Георгиевски
>> http://lab.arc90.com/experiments/readability/ >> >> Readability is a javascript bookmarklet that "makes reading on the >> Web more enjoyable by removing the clutter around what you're >> reading." >> >> Does anyone know of something similar in Python? > > Well, that sounds like a browser tool.

Writing to open subprocess pipes.

2010-06-16 Thread Brandon McGinty
All, I have researched this both in the python documentation, and via google. Neither subprocess nor os.popen* will do what I need. First, I would instanshiate an ongoing shell, that would remain active throughout the life of the socket connection. I am trying to take commands, coming in from a s

Re: How to set up this usenet discussion?

2010-06-16 Thread Mark Lawrence
On 16/06/2010 19:55, L V wrote: I have installed pan, but I fail to make it work with "news:comp.lang.python"; I tried adding the name as a newsserver and left all other info like Port, username and password empty. Stil I don't get any messages. How to fix this. Also I'm completely new to newsgr

exceptions and unicode

2010-06-16 Thread Stuart McGraw
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 IOError, e: pass str (e) => "[Errno 2] No such file or directory: u'\

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

2010-06-16 Thread Ian Kelly
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 defined, its reference > to "a" was

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Benjamin Kaplan
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) wonderful resource for Pyth

Re: How to set up this usenet discussion?

2010-06-16 Thread Grant Edwards
On 2010-06-16, Thomas Jollans wrote: > On 06/16/2010 08:55 PM, L V wrote: >> I have installed pan, but I fail to make it work with >> "news:comp.lang.python"; >> I tried adding the name as a newsserver and left all other info like >> Port, username and password empty. >> Stil I don't get any messa

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Stephen Hansen
On 6/16/10 12:21 PM, Mark Lawrence wrote: > I actually don't know how to report such things because of the > combination of c.l.py, gmane.comp.python.general and > http://mail.python.org/mailman/listinfo/python-list, possibly others?. > Could somebody please show the correct direction? It depends

Re: Python editing .txt file

2010-06-16 Thread 187braintrust
> > From: MRAB > To: python-list@python.org > Date: Wed, 16 Jun 2010 03:06:58 +0100 > Subject: Re: Python editing .txt file > 187braintr...@berkeley.edu wrote: > >> I am trying to write a program in Python that will edit .txt log files >> that contain regression output from R. Any thoughts or sug

Re: Need to parse python dictionaries into xml

2010-06-16 Thread Stefan Behnel
abhijeet thatte, 16.06.2010 20:41: On Wed, Jun 16, 2010 at 10:57 AM, Stefan Behnel wrote: You should start by writing down the XML structure that you want to build for the above dict. That will make it clear what needs to be done. /**

Re: How do I fix this test so it runs on Windows? (it uses tzset)

2010-06-16 Thread Nobody
On Wed, 16 Jun 2010 16:30:02 +0100, Chris Withers wrote: > I'd like to make test_non_gmt_timezone at the bottom of > https://... > run on Windows, any suggestions? MSVCRT has _tzset(), which understands the TZ environment variable. http://msdn.microsoft.com/en-us/library/90s5c885%28VS.80%29.asp

virtualenv / virtualenvwrapper resetting $PATH?

2010-06-16 Thread Nan
I just installed virtualenv and virtualenvwrapper on an OS X machine (10.6). My ~/.bash_login adds a few paths to the $PATH environment variable, but upon activating a virtualenv with "workon", those paths go missing from $PATH (and are not restored when I deactivate the virtualenv either). Any s

Re: How to set up this usenet discussion?

2010-06-16 Thread Thomas Jollans
On 06/16/2010 08:55 PM, L V wrote: > I have installed pan, but I fail to make it work with > "news:comp.lang.python"; > I tried adding the name as a newsserver and left all other info like > Port, username and password empty. > Stil I don't get any messages. > How to fix this. > Also I'm completely

FBI BUStards - Jews Supplied SMALLPOX blankets to the KILL THE NATIVES

2010-06-16 Thread small Pox
"They tell how they supplied smallpox to General Amherst (Secret Relationship, pp. 111-114) to send the blankets among the Native American - it's all here. "They tell how they supplied smallpox to General Amherst (Secret Relationship, pp. 111-114) to send the blankets among the Native American - i

Re: Python editing .txt file

2010-06-16 Thread 187braintrust
MRAB mrabarnett.plus.com> writes: > input_file = open(input_path) > output_file = open(output_path, "w") > for line in input_file: > if line.startswith("factor("): > open_paren = line.find("(") > close_paren = line.find(")") > variable = line[open_paren + 1 : close_

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread geremy condra
On Wed, Jun 16, 2010 at 11:50 AM, 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 Python

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Mark Lawrence
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) wonderful resource for Python programmers? Regards, Alan Alan, From an earlier thread by St

Re: Is Scheme/LISP faster than C/C++

2010-06-16 Thread fortunatus
On Jun 14, 3:34 pm, Raymond Toy wrote: > There was even one example where the C compiler made spectacularly bad > code.  I only needed 6 pointer registers (the arch has 8), but the > compiler decided to use only one or two and spilled and reloaded them > from the stack for each use.  Yay! That's

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

2010-06-16 Thread John Nagle
On 6/15/2010 8:34 PM, Michele Simionato wrote: On Jun 16, 4:43 am, John Nagle wrote: Is it possible to override "__setattr__" of a module? I want to capture changes to global variables for debug purposes. None of the following seem to have any effect. modu.__setattr__ = myfn

How to set up this usenet discussion?

2010-06-16 Thread L V
I have installed pan, but I fail to make it work with "news:comp.lang.python"; I tried adding the name as a newsserver and left all other info like Port, username and password empty. Stil I don't get any messages. How to fix this. Also I'm completely new to newsgroups. -- http://mail.pyt

Re: Removing anti-Jewish postings from Python list

2010-06-16 Thread Stephen Hansen
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 Python programmers? The problem is, this forum has lots of access p

Re: GUIs - A Modest Proposal

2010-06-16 Thread Cameron Laird
On Jun 6, 5:49 pm, Kevin Walzer wrote: . [much wisdom, particularly in regard to Tkinter] . . > > The very diversity of GUI toolkits came into effect because Python is > very easy to extend and integrate with other C/C++ libraries. Writing a > GUI toolkit from scratch is much, muc

Re: Need to parse python dictionaries into xml

2010-06-16 Thread abhijeet thatte
On Wed, Jun 16, 2010 at 10:43 AM, Ian Kelly wrote: > On Wed, Jun 16, 2010 at 10:46 AM, abhijeet thatte > wrote: > > I am parsing some hardware format which finally I need to convert in xml. > > The intermediate step is dicts. > > So, the structure looks like this: > > > {chip_name:'myChip',chip_

Re: Need to parse python dictionaries into xml

2010-06-16 Thread abhijeet thatte
On Wed, Jun 16, 2010 at 10:57 AM, Stefan Behnel wrote: > Hi, please avoid top-posting. > > abhijeet thatte, 16.06.2010 18:46: > > On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote: >> >>> abhijeet thatte, 16.06.2010 03:05: >>> I am a novice Python user. I am using Python to parse some h

Python-URL! - weekly Python news and links (Jun 16)

2010-06-16 Thread Cameron Laird
QOTW: "Python advocacy seems to be by example, not cheerleading." - Cameron Simpson http://groups.google.com/group/comp.lang.python/msg/2cc7e643702d0ec8 The first release candidate of Python 2.7 is now available for testing: http://groups.google.com/group/comp.lang.python/t/e3cd74b1

THE JEWISH GENOCIDE OF ARMENIAN CHRISTIANS - The Jews SCREWED Everyone - Spared NO ONE !!!

2010-06-16 Thread nanothermite911fbibustards
I rcvd appreciative and supporting replies (private emails) from many of you supporting my RIGHT to FREEDOM OF SPEECH and SPREADING the TRUTH. The world is moving in the direction of the Biblical predictions. I agree to some extent that we should encourage the jews to accelerate their self-destruc

Re: Deformed Form

2010-06-16 Thread Victor Subervi
On Wed, Jun 16, 2010 at 2:09 PM, Dave Angel wrote: > Fix any one of them, and I'd probably have kept quiet. > Thanks for piping up ;) beno > > -- http://mail.python.org/mailman/listinfo/python-list

Re: Coroutines: unexpected behaviour

2010-06-16 Thread Carl Banks
On Jun 16, 5:03 am, Jérôme Mainka wrote: > Hello, > > I try to experiment with coroutines and I don't understand why this > snippet doesn't work as expected... In python 2.5 and python 2.6 I get > the following output: > > 0 > Exception exceptions.TypeError: "'NoneType' object is not callable" in

Is there a way to see why a thread is still open?

2010-06-16 Thread JohnnyFive
I've got a rather complex program that, for some reason, is not closing the completed threads when they are finished. Just to cover my bases, when using the following: temp = threading.Thread(target=self.processMessages, args=(msg, args), name="pubmsg subthread") temp.setD

Re: Deformed Form

2010-06-16 Thread Dave Angel
Victor Subervi wrote: DavidA corrects me: Since you didn't name your modules (what you persist in calling scripts), I can only guess their names from the import statements: e.g.: >from New_Passengers_Curr_Customers import New_Passengers_Curr_Customers I don't see any case differe

Re: Installing Python 3.1.2 from source, how do you resolve the sqlite3-dev dependency?

2010-06-16 Thread Philip Semanchuk
On Jun 16, 2010, at 1:29 PM, Trevor wrote: Running ubuntu 9.04 "jaunty". When I run make I get the following error: Python build finished, but the necessary bits to build these modules were not found: _sqlite3 So the easy solution is to just install the missing dependency using apt-ge

Re: Installing Python 3.1.2 from source, how do you resolve the sqlite3-dev dependency?

2010-06-16 Thread Thomas Jollans
On 06/16/2010 07:29 PM, Trevor wrote: > Running ubuntu 9.04 "jaunty". > > When I run make I get the following error: > > Python build finished, but the necessary bits to build these > modules were not found: > _sqlite3 > > > So the easy solution is to just install the missing dependency

Python Ajuda por favor

2010-06-16 Thread estimado estimado
boas eu gostaria de fazer um programa com o python mas não o sei fazer... podes-me ajudar sff. aguardo resposta cumps -- http://mail.python.org/mailman/listinfo/python-list

Re: Updating a module level shared dictionary

2010-06-16 Thread Dan Stromberg
On Tue, Jun 15, 2010 at 6:33 PM, MRAB wrote: > Vishal Rana wrote: > >> Hi, >> >> A module level dictionary 'd' and is accessed by different >> threads/requests in a django web application. I need to update 'd' every >> minute with a new data and the process takes about 5 seconds. >> What could be

Re: Need to parse python dictionaries into xml

2010-06-16 Thread Stefan Behnel
Hi, please avoid top-posting. abhijeet thatte, 16.06.2010 18:46: On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote: abhijeet thatte, 16.06.2010 03:05: I am a novice Python user. I am using Python to parse some hardware specifications and create xml files from them. I generate dict of reall

Removing anti-Jewish postings from Python list

2010-06-16 Thread Alan Harris-Reid
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 Python programmers? Regards, Alan -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python 3.1.2 from source, how do you resolve the sqlite3-dev dependency?

2010-06-16 Thread Benjamin Kaplan
On Wed, Jun 16, 2010 at 10:29 AM, Trevor wrote: > Running ubuntu 9.04 "jaunty". > > When I run make I get the following error: > >    Python build finished, but the necessary bits to build these > modules were not found: >    _sqlite3 > > > So the easy solution is to just install the missing depen

Re: Need to parse python dictionaries into xml

2010-06-16 Thread Ian Kelly
On Wed, Jun 16, 2010 at 10:46 AM, abhijeet thatte wrote: > I am parsing some hardware format which finally I need to convert in xml. > The intermediate step is dicts. > So, the structure looks like this: > {chip_name:'myChip',chip_clock:'3.07',chip_peripherals:{peripheral1:{mode:'mode1',register:{

Installing Python 3.1.2 from source, how do you resolve the sqlite3-dev dependency?

2010-06-16 Thread Trevor
Running ubuntu 9.04 "jaunty". When I run make I get the following error: Python build finished, but the necessary bits to build these modules were not found: _sqlite3 So the easy solution is to just install the missing dependency using apt-get, "sudo apt-get -f install libsqlite3-dev" b

Re: Coroutines: unexpected behaviour

2010-06-16 Thread Thomas Jollans
On 06/16/2010 06:35 PM, Steven D'Aprano wrote: > On Wed, 16 Jun 2010 05:03:13 -0700, Jérôme Mainka wrote: > >> Hello, >> >> I try to experiment with coroutines and I don't understand why this >> snippet doesn't work as expected... In python 2.5 and python 2.6 I get >> the following output: >> >> 0

Re: Coroutines: unexpected behaviour

2010-06-16 Thread Jérôme Mainka
On Jun 16, 6:35 pm, Steven D'Aprano wrote: > How bizarre is that? Sure... > I have to say that your code is horribly opaque and unclear to me. Welcome to the coroutines world :-) This is mainly a pipeline where each function suspends execution waiting for data (yield), and feeding other functi

Re: Advanced Dictionary

2010-06-16 Thread Stephen Hansen
On 6/16/10 9:34 AM, Steven D'Aprano wrote: > On Wed, 16 Jun 2010 09:17:47 -0700, Stephen Hansen wrote: > >> Leading-and-trailing double underscores are explicitly reserved for >> Python to define as Special. > > > That part is correct. But of course Python doesn't prevent you from > ignoring t

  1   2   >