Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Arnaud Delobelle
Erik Max Francis writes: > Patrick Maupin wrote: >> On Feb 28, 9:18 pm, Steven D'Aprano > Wait a minute... if JSON is too >> hard to edit, and RSON is a *superset* of >>> JSON, that means by definition every JSON file is also a valid RSON file. >>> Since JSON is too hard to manually edit, so is R

Re: taking python enterprise level?...

2010-03-01 Thread D'Arcy J.M. Cain
On Mon, 1 Mar 2010 16:20:06 -0800 (PST) mdipierro wrote: > Joins are the bottle neck of most web app that relay on relational > databases. That is why non-relational databases such as Google App > Engine, CouchDB, MongoDB do not even support Joins. You have to try to > minimize joins as much as po

[no subject]

2010-03-01 Thread Vaidehi Pawar
http://adimteknikhirdavat.com/James.html The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/ -- http://mail.python.org/mailman/listinfo/python-list

How to find an COM object in using of pywin32

2010-03-01 Thread Steven Woody
Hi, I want to interactive with an OLE application with pywin32. The problem is I get totally no idea how to find the object in OLEView and how to figure out it's interface. With pywin32's example, I even don't understand that in the below statement, win32com.client.Dispatch('Excel.Application

Re: Adding to a module's __dict__?

2010-03-01 Thread Chris Rebert
On Mon, Mar 1, 2010 at 8:27 PM, Roy Smith wrote: > >From inside a module, I want to add a key-value pair to the module's > __dict__.  I know I can just do: > > FOO = 'bar' > > at the module top-level, but I've got 'FOO' as a string and what I > really need to do is > > __dict__['Foo'] = 'bar' > >

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Terry Reedy
On 3/1/2010 7:56 PM, Patrick Maupin wrote: On Mar 1, 5:57 pm, Erik Max Francis wrote: Patrick Maupin wrote: This not only seriously stretching the meaning of the term "superset" (as Python is most definitely not even remotely a superset of JSON), but Well, you are entitled to that opinion, bu

Adding to a module's __dict__?

2010-03-01 Thread Roy Smith
>From inside a module, I want to add a key-value pair to the module's __dict__. I know I can just do: FOO = 'bar' at the module top-level, but I've got 'FOO' as a string and what I really need to do is __dict__['Foo'] = 'bar' When I do that, I get "NameError: name '__dict__' is not defined".

Re: New User

2010-03-01 Thread Shashwat Anand
for beginners : http://openbookproject.net/thinkcs/python/english2e/index.html python cookbook - 2 by alex martelli is fantastic if you have your basics cleared. On Tue, Mar 2, 2010 at 8:09 AM, Niranjan Kumar Das wrote: > Hello Group, > I am starting to programme in python 1st time. Just thought

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Kirill Simonov
Patrick Maupin wrote: On Mon, Mar 1, 2010 at 8:02 PM, Kirill Simonov wrote: BTW, congratulations on slogging through the YAML grammar to generate such a good working C library! That must have been a tremendous effort. The trick was to completely ignore the grammar described in the specifica

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Kirill Simonov
Patrick Maupin wrote: Kirill: Thank you for your constructive criticism. This is the gem that made it worthwhile to post my document. I think all of your points are spot-on, and I will be fixing the documentation. You are welcome. Despite what others have been saying, I don't think this ar

New User

2010-03-01 Thread Niranjan Kumar Das
Hello Group, I am starting to programme in python 1st time. Just thought i will ask the group members about some well known useful books. I am looking for books at two level. a) For beginers b) For Advaced user Appreciate your help and suggestion in the matter. Thanks, Niranjan -- http://mail.p

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mon, Mar 1, 2010 at 8:02 PM, Kirill Simonov wrote: BTW, congratulations on slogging through the YAML grammar to generate such a good working C library! That must have been a tremendous effort. Regards, Pat -- http://mail.python.org/mailman/listinfo/python-list

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
Kirill: Thank you for your constructive criticism. This is the gem that made it worthwhile to post my document. I think all of your points are spot-on, and I will be fixing the documentation. I can well believe that the C implementation of YAML is much faster than the Python one, but I am aimin

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Kirill Simonov
Patrick Maupin wrote: All: Finding .ini configuration files too limiting, JSON and XML to hard to manually edit, and YAML too complex to parse quickly, I have started work on a new configuration file parser. I'd like to note that with the optional libyaml bindings, the PyYAML parser is pretty

Re: How to use python to register a service (an existing .exe file)

2010-03-01 Thread Eman
On Feb 15, 4:10 pm, News123 wrote: > Hi, > > Is there a python way to register new windows services. > > I am aware of the > instsrv.exe program, which can be used to install services. > I could use subprocess.Popen to call > > instsrv.exe "service_name" program.exe > > but wondered, whether there

Re: Docstrings considered too complicated

2010-03-01 Thread Roy Smith
In article , MRAB wrote: > Ah, yes, Star Trek (the original series). > > If they transported down to a planet and there was a man in a red shirt > who you'd never seen before, he'd be the one to die! :-) Of course. Everybody knows there's an endless supply of red shirts. -- http://mail.pytho

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Kirill Simonov
Erik Max Francis wrote: Daniel Fetchinson wrote: it is my goal (which I may or may not be smart enough to reach) to write a module that anybody would want to use; But you are working on a solution in search of a problem. The really smart thing to do would be pick something more useful to work

Re: Method / Functions - What are the differences?

2010-03-01 Thread John Posner
On 3/1/2010 2:59 PM, Bruno Desthuilliers wrote: Answer here: http://groups.google.com/group/comp.lang.python/tree/browse_frm/thread/bd71264b6022765c/3a77541bf9d6617d#doc_89d608d0854dada0 I really have to put this in the wiki :-/ Bruno, I performed a light copy-edit of your writeup and put i

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 5:57 pm, Erik Max Francis wrote: > Patrick Maupin wrote: > This not only seriously stretching the meaning of the term "superset" > (as Python is most definitely not even remotely a superset of JSON), but Well, you are entitled to that opinion, but seriously, if I take valid JSON, replac

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 5:33 pm, Erik Max Francis wrote: > Psst.  That you're allowed to present the idea that you think is good > doesn't mean that other people aren't allowed to respond and point out > that in their opinion it's not such a good idea.  You don't own this or > any other thread. Absolutely, but

Re: Py2exe - Bad File Descriptor

2010-03-01 Thread T
On Feb 28, 10:00 pm, Dennis Lee Bieber wrote: > On Sun, 28 Feb 2010 13:22:19 -0800 (PST), T > declaimed the following in gmane.comp.python.general: > > > Sorry for the lack of code - yes, it does try to write to the > > console.  From what I'm finding, this error may be due to the fact > > that t

Re: taking python enterprise level?...

2010-03-01 Thread mdipierro
On Mar 1, 6:32 am, simn_stv wrote: ... > > > You have to follow some tricks: > > > 1) have the web server serve static pages directly and set the pragma > > cache expire to one month > > 2) cache all pages that do not have forms for at least few minutes > > 3) avoid database joins > > but this wou

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Erik Max Francis
Patrick Maupin wrote: On Feb 28, 9:18 pm, Steven D'Aprano > Wait a minute... if JSON is too hard to edit, and RSON is a *superset* of JSON, that means by definition every JSON file is also a valid RSON file. Since JSON is too hard to manually edit, so is RSON. Well, Python is essentially a sup

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Erik Max Francis
Patrick Maupin wrote: On Mar 1, 12:03 pm, Paul Rubin wrote: But you are working on a solution in search of a problem. The really smart thing to do would be pick something more useful to work on. We don't need another configuration language. I can't even say "yet another" because there's alr

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Erik Max Francis
Daniel Fetchinson wrote: it is my goal (which I may or may not be smart enough to reach) to write a module that anybody would want to use; But you are working on a solution in search of a problem. The really smart thing to do would be pick something more useful to work on. We don't need anothe

Re: Variable definition

2010-03-01 Thread Rhodri James
On Mon, 01 Mar 2010 18:07:17 -, Raphael Mayoraz wrote: Thanks for your answer. However, your solution changes the key name in the dictionary. That's not what I want I need to do. What I want is to define a new variable which name is define as a string: 'myPrefx' + key. In the example I

Re: PyQt4.7 and PyQwt5.2.0

2010-03-01 Thread Gib Bogle
Gib Bogle wrote: I installed the latest PyQt (4.7-1), then PyQwt 5.2.0, which was built with PyQt4.5.4. This line import PyQt4.Qwt5 as Qwt fails to load the DLL. Could this be the result of not using PyQt4 4.5.4? I guess I can answer my own question. As far as I can determine, PyQwt 5.2.0

Call for Participation: CHR Summer School

2010-03-01 Thread Jon Sneyers
- Call for Participation - First International Summer School on CHR: Programming and Reasoning with Rules and Constraints August 30 - September 3 2010 Leuven, Belgium Website: http://www.cs.kuleuven.be/~dtai/CHR/summerschool *

Re: Docstrings considered too complicated

2010-03-01 Thread Ben Finney
Andreas Waldenburger writes: > On Mon, 01 Mar 2010 18:42:17 +0100 Jean-Michel Pichavant > wrote: > > > Andreas Waldenburger wrote: > > [snip] > > > Back in the software world: Those guys write code that works. It > > > does what it's supposed to do. Why should we care where they put > > > their

Re: Class attributes / methods..... full Python script

2010-03-01 Thread MRAB
Gabor Urban wrote: Hi guys, thanks for the ideas. Here you are the code. Not transcoded from Java for I do not know Java enough.. I am scanning an XML file, and have a large ammount of logging. Any ideas are wellcome as before Thnx Code:> #- #

Re: Class attributes / methods..... full Python script

2010-03-01 Thread Peter Otten
Gabor Urban wrote: > thanks for the ideas. Here you are the code. Not transcoded from Java > for I do not know Java enough.. > > I am scanning an XML file, and have a large ammount of logging. > > Any ideas are wellcome as before > > Thnx > > Code:> > packages.append(Package) Replace

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Emile van Sebille
On 3/1/2010 1:02 PM Philip Semanchuk said... * You had floppies? Bleddy luxury! We wrote our data on wood pulp we'd chewed ourselves and dried into paper, using drops of our own blood to represent 1s and 0s. You had left-over blood?!! Emile :) -- http://mail.python.org/mailman/listinfo/python

How to crash CPython 3.1.1 in Windows XP

2010-03-01 Thread Alf P. Steinbach
How to crash CPython 3.1.1 in Windows XP: python -c "import os; os.spawnl( os.P_WAIT, 'blah' )" I reported this as a bug, http://bugs.python.org/issue8036> Workaround: it seems that spawnl is happy with an absolute path as second arg, followed by a third arg which should be the name of the p

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 2:42 pm, Paul Rubin wrote: > Patrick Maupin writes: > > But for my use-case, YAML is irretrievably broken.  Sure, it looks > > reasonably nice, but it increases regression runtime unacceptably. > > How big are the files that you want to parse with it?  Sheesh. Tiny, but over and over.

Re: Docstrings considered too complicated

2010-03-01 Thread Mark Lawrence
Andreas Waldenburger wrote: On Mon, 01 Mar 2010 18:42:17 +0100 Jean-Michel Pichavant wrote: Andreas Waldenburger wrote: [snip] Back in the software world: Those guys write code that works. It does what it's supposed to do. Why should we care where they put their comments? If you've bought

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Philip Semanchuk
On Mar 1, 2010, at 3:08 PM, Paul Rubin wrote: Patrick Maupin writes: One of my complaints. If you had read the document you would have seen others. I actually have several complaints about YAML, but I tried to write a cogent summary. Yaml sucks, but seems to have gotten some traction rega

Building Python with Scons

2010-03-01 Thread Gerhard Häring
I'm setting up a third-party library project (similar to the one in Google Chromium) where I use SCons as build tool. Now I need to integrate Python, too. Has anybody written a Scons script for Python 2.x or 3.x, yet? -- Gerhard -- http://mail.python.org/mailman/listinfo/python-list

Re: Method / Functions - What are the differences?

2010-03-01 Thread Bruno Desthuilliers
Michael Rudolf a écrit : > Out of curiosity I tried this and it actually worked as expected: > class T(object): > x=[] > foo=x.append > def f(self): > return self.x > > t=T() t.f() > [] T.foo(1) t.f() > [1] > > At first I thought "hehe, alwa

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Paul Rubin
Patrick Maupin writes: > But for my use-case, YAML is irretrievably broken. Sure, it looks > reasonably nice, but it increases regression runtime unacceptably. How big are the files that you want to parse with it? Sheesh. > Well, I've looked at the YAML parser and I can assure you that I will

Class attributes / methods..... full Python script

2010-03-01 Thread Gabor Urban
Hi guys, thanks for the ideas. Here you are the code. Not transcoded from Java for I do not know Java enough.. I am scanning an XML file, and have a large ammount of logging. Any ideas are wellcome as before Thnx Code:> #- ## Generate CSV from O

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 2:08 pm, Paul Rubin wrote: > Yaml sucks, but seems to have gotten some traction regardless. Yes, that's actually one of the reasons I want to do this. I've heard that some of the YAML people want that in the standard library, and IMHO that would be a huge mistake. > Therefore the Pyt

Re: Docstrings considered too complicated

2010-03-01 Thread Andreas Waldenburger
On Mon, 01 Mar 2010 18:42:17 +0100 Jean-Michel Pichavant wrote: > Andreas Waldenburger wrote: > [snip] > > Back in the software world: Those guys write code that works. It > > does what it's supposed to do. Why should we care where they put > > their comments? > > > > > If you've bought the co

Re: Docstrings considered too complicated

2010-03-01 Thread Andreas Waldenburger
On Mon, 01 Mar 2010 11:42:16 -0600 Robert Kern wrote: > On 2010-03-01 11:22 , Andreas Waldenburger wrote: > > > Back in the software world: Those guys write code that works. It > > does what it's supposed to do. Why should we care where they put > > their comments? > > Software usually needs to

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Paul Rubin
Patrick Maupin writes: > One of my complaints. If you had read the document you would have > seen others. I actually have several complaints about YAML, but I > tried to write a cogent summary. Yaml sucks, but seems to have gotten some traction regardless. Therefore the Python principle of "the

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 1:37 pm, Paul Rubin wrote: > There are in fact quite a few--json, yaml, .ini, xml, Python literals > (http://code.activestate.com/recipes/364469-safe-eval/), s-expressions, > actual Python code that the application can import, and so forth. Yes, I know about those. > The problem isn't

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Paul Rubin
Patrick Maupin writes: > - There is a preexisting file format suitable for my needs, so I > should not invent another one. There are in fact quite a few--json, yaml, .ini, xml, Python literals (http://code.activestate.com/recipes/364469-safe-eval/), s-expressions, actual Python code that the appl

Re: AOP decorator?

2010-03-01 Thread Jon Clements
On Mar 1, 4:22 pm, gentlestone wrote: > Hi, > > suppose my source code looks like: > >   import aspect_xy >   class Basic(object, aspect_xy.Basic): >     pass # basic attributes and methods ... > > and the source code of aspect_xy.p

Re: AOP decorator?

2010-03-01 Thread Terry Reedy
On 3/1/2010 11:22 AM, gentlestone wrote: Hi, suppose my source code looks like: import aspect_xy class Basic(object, aspect_xy.Basic): pass # basic attributes and methods ... As a sidenote, this violates my understanding of aspect-oriented programmi

Best auto insurance company // Best auto insurance company /// Best auto insurance company ///

2010-03-01 Thread coolboy8
VISIT http://alturl.com/8xs8 -- http://mail.python.org/mailman/listinfo/python-list

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 12:40 pm, Daniel Fetchinson wrote: > > But you are working on a solution in search of a problem.  The really > > smart thing to do would be pick something more useful to work on.  We > > don't need another configuration language.  I can't even say "yet > > another" because there's alread

Re: Variable definition

2010-03-01 Thread John Posner
On 3/1/2010 1:07 PM, Raphael Mayoraz wrote: John Posner wrote: On 2/26/2010 6:32 PM, Raphael Mayoraz wrote: Hello, I'd like to define variables with some specific name that has a common prefix. Something like this: varDic = {'red': 'a', 'green': 'b', 'blue': 'c'} for key, value in varDic.iter

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
> > Certainly. The PEP format is a useful one. I've used it myself for some numpy > design documents. But can you see why people might get confused about your > intentions when you call it a draft PEP and post it to python-dev? If you stop > calling it a PEP and stop talking about putting it in the

Re: [newbie] - python list into a sql query

2010-03-01 Thread Rami Chowdhury
On Monday 01 March 2010 09:54:20 João wrote: > Hi. > > Can someone guide me into getting this to work? It's just really > querying a DB of an Autodiscovery tool to have a bunch of updated dns > files. I wouldn't be building SQL queries by hand if I could avoid it -- is this just a few one-off sc

Re: python shell crashing on paste

2010-03-01 Thread Leo
Thanks for responding Michel. It looks like its an issue with pyreadline - http://ipython.scipy.org/moin/PyReadline/Intro - causing the crash. I'm working with the author of it on trying to get the issue figured out. It's not related to UAC. -- --Leo On Feb 23, 10:41 pm, "Michel Claveau - MVP" w

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 12:03 pm, Paul Rubin wrote: > But you are working on a solution in search of a problem.  The really > smart thing to do would be pick something more useful to work on.  We > don't need another configuration language.  I can't even say "yet > another" because there's already a "yet anoth

Re: [newbie] - python list into a sql query

2010-03-01 Thread MRAB
João wrote: Hi. Can someone guide me into getting this to work? It's just really querying a DB of an Autodiscovery tool to have a bunch of updated dns files. (Thought I'm still building the first script steps) I was able to successfully query the DB against a single groupid, but am failing in pa

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Daniel Fetchinson
>> it is my goal (which I may or may not be smart enough to reach) to >> write a module that anybody would want to use; > > But you are working on a solution in search of a problem. The really > smart thing to do would be pick something more useful to work on. We > don't need another configuratio

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Paul Rubin
Patrick Maupin writes: > it is my goal (which I may or may not be smart enough to reach) to > write a module that anybody would want to use; But you are working on a solution in search of a problem. The really smart thing to do would be pick something more useful to work on. We don't need anoth

Re: Variable definition

2010-03-01 Thread Raphael Mayoraz
John Posner wrote: On 2/26/2010 6:32 PM, Raphael Mayoraz wrote: Hello, I'd like to define variables with some specific name that has a common prefix. Something like this: varDic = {'red': 'a', 'green': 'b', 'blue': 'c'} for key, value in varDic.iteritems(): 'myPrefix' + key = value No trick

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Robert Kern
On 2010-03-01 11:34 , Patrick Maupin wrote: On Mar 1, 11:13 am, Robert Kern wrote: Ignore it. That comment really doesn't apply to this case. That's for things that only make sense in the language or standard library, like context managers. For libraries like this, Steven's summary is correct.

[newbie] - python list into a sql query

2010-03-01 Thread João
Hi. Can someone guide me into getting this to work? It's just really querying a DB of an Autodiscovery tool to have a bunch of updated dns files. (Thought I'm still building the first script steps) I was able to successfully query the DB against a single groupid, but am failing in passing a list o

Re: Verifying My Troublesome Linkage Claim between Python and Win7

2010-03-01 Thread W. eWatson
On 2/23/2010 6:04 PM, Aahz wrote: In article, W. eWatson wrote: My claim is that if one creates a program in a folder that reads a file in the folder it and then copies it to another folder, it will read the data file in the first folder, and not a changed file in the new folder. I'd apprecia

Re: Is there a better way to do this?

2010-03-01 Thread Richard Brodie
"Matt Mitchell" wrote in message news:mailman.65.1267464765.23598.python-l...@python.org... > My initial idea was to make a list of all the different > ways "project" has been capitalized in my repo and try each one. The > code looks like this: I would use pysvn.Client.list to get a list of fi

Re: Docstrings considered too complicated

2010-03-01 Thread Robert Kern
On 2010-03-01 11:22 , Andreas Waldenburger wrote: Back in the software world: Those guys write code that works. It does what it's supposed to do. Why should we care where they put their comments? Software usually needs to be maintained and extended over the course of its lifetime. The origina

Re: Docstrings considered too complicated

2010-03-01 Thread Jean-Michel Pichavant
Andreas Waldenburger wrote: On Tue, 02 Mar 2010 03:18:30 +1100 Lie Ryan wrote: On 03/02/10 00:09, Andreas Waldenburger wrote: On Mon, 1 Mar 2010 05:01:49 -0800 (PST) alex23 wrote: Andreas Waldenburger wrote: But as I said: a) I am (we are) not in a position to imp

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 11:13 am, Robert Kern wrote: > Ignore it. That comment really doesn't apply to this case. That's for things > that only make sense in the language or standard library, like context > managers. > For libraries like this, Steven's summary is correct. It needs to have a > useful > life as

Is there a better way to do this?

2010-03-01 Thread Matt Mitchell
Hi, I wrote a python script that uses pysvn to export projects from an svn repo I have. The repo has hundreds of projects in it with a directory structure that is pretty uniform however it's not exactly uniform because of the capitalization. I.e.: \root \project English \Stuff \Stu

Re: Docstrings considered too complicated

2010-03-01 Thread Andreas Waldenburger
On Tue, 02 Mar 2010 03:18:30 +1100 Lie Ryan wrote: > On 03/02/10 00:09, Andreas Waldenburger wrote: > > On Mon, 1 Mar 2010 05:01:49 -0800 (PST) alex23 > > wrote: > > > >> Andreas Waldenburger wrote: > >>> But as I said: a) I am (we are) not in a position to impose this > >>> (We don't work wit

Re: Sample code usable Tkinter listbox

2010-03-01 Thread rantingrick
On Mar 1, 6:19 am, "Alf P. Steinbach" wrote: > >         kw.setdefault('activestyle', 'none') > > Hm, let me steal this line... Thanks! Yes! the default activestyle is quite annoying! -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for an Application

2010-03-01 Thread Arnaud Delobelle
Greg Lindstrom writes: > A few months ago there was a post dealing with an application that > would power scripts based on graphical snippets of the screen. > Essentially, the script would "look" for a match with what you pasted > into it. I don't recall the name of the application, but would li

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Robert Kern
On 2010-03-01 10:08 , Patrick Maupin wrote: On Feb 28, 9:18 pm, Steven D'Aprano Come back when you actually have MANY users other than yourself using this is real-world projects. Until then, it is too early to even consider adding it the std library. Python comes with batteries included, but n

Re: DreamPie - The Python shell you've always dreamed about!

2010-03-01 Thread Noam Yorav-Raphael
Can you try DreamPie 1.0.1 and say if it still happens? There's a bug report system at launchpad.net/dreampie. Thanks, Noam -- http://mail.python.org/mailman/listinfo/python-list

Re: DreamPie - The Python shell you've always dreamed about!

2010-03-01 Thread Noam Yorav-Raphael
This is most probably a bug discovered in DreamPie 1.0 (See https://bugs.launchpad.net/dreampie/+bug/525652 ) Can you try to download DreamPie 1.0.1, and if it still happens, report a bug? Thanks! Noam -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for an Application

2010-03-01 Thread Shashwat Anand
project sikuli : http://groups.csail.mit.edu/uid/sikuli/ On Mon, Mar 1, 2010 at 8:49 PM, Greg Lindstrom < greg.lindst...@novasyshealth.com> wrote: > A few months ago there was a post dealing with an application that would > power scripts based on graphical snippets of the screen. Essentially, th

Looking for an Application

2010-03-01 Thread Greg Lindstrom
A few months ago there was a post dealing with an application that would power scripts based on graphical snippets of the screen. Essentially, the script would "look" for a match with what you pasted into it. I don't recall the name of the application, but would like to try it. Does anyone r

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 12:39 am, John Nagle wrote: > Patrick Maupin wrote: > > All: > > > Finding .ini configuration files too limiting, JSON and XML to hard to > > manually edit, and YAML too complex to parse quickly, I have started > > work on a new configuration file parser. > >     You're not supposed to e

AOP decorator?

2010-03-01 Thread gentlestone
Hi, suppose my source code looks like: import aspect_xy class Basic(object, aspect_xy.Basic): pass # basic attributes and methods ... and the source code of aspect_xy.py is: class Basic(obj

Re: Docstrings considered too complicated

2010-03-01 Thread Lie Ryan
On 03/02/10 00:09, Andreas Waldenburger wrote: > On Mon, 1 Mar 2010 05:01:49 -0800 (PST) alex23 > wrote: > >> Andreas Waldenburger wrote: >>> But as I said: a) I am (we are) not in a position to impose this (We >>> don't work with the code, we just run the software). >> >> I personally believe t

Re: loop through each line in a text file

2010-03-01 Thread qtrimble
On Feb 26, 6:19 pm, ru...@yahoo.com wrote: > On Feb 26, 2:21 pm, qtrimble wrote: > > > > > On Feb 26, 4:14 pm, OdarR wrote: > > > > > > below is just a sample.  There are well over 500,000 lines that need > > > > processed. > > > > > wer1999001 > > > >       31.2234      82.2367 > > > >       37

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Feb 28, 9:18 pm, Steven D'Aprano > Wait a minute... if JSON is too hard to edit, and RSON is a *superset* of > JSON, that means by definition every JSON file is also a valid RSON file. > Since JSON is too hard to manually edit, so is RSON. Well, Python is essentially a superset of JSON, with st

Re: How to end TCP socket data while using readline()?

2010-03-01 Thread Arjun Chennu
It DOES seem like only when the connection socket is closed via conn.close() that the data is flushed and the 'waiting' ends. So with the earlier suggestion that I open one file-obj for reading and one for writing, I still cannot acheive two-way communication because I need to close the connection

Re: How to end TCP socket data while using readline()?

2010-03-01 Thread Arjun Chennu
Thanks for the feedback. Opening a separate file-obj for writing and for reading is just what I've been trying, but I don't seem to get it to work. I'm new to python and I'm not sure if I'm missing the intricacy of some command. Please help: Here is my server snippet: (conn, addr) =

Re: Docstrings considered too complicated

2010-03-01 Thread MRAB
Jean-Michel Pichavant wrote: MRAB wrote: Gregory Ewing wrote: Mel wrote: You could think of it as a not bad use of the design principle "Clear The Simple Stuff Out Of The Way First". Destinations are commonly a lot simpler than sources That's not usually true in assembly languages, though

Re: Class attributes / methods lost?

2010-03-01 Thread Jean-Michel Pichavant
Gabor Urban wrote: Hi guys, I am building a nested data structure with the following compontens: <> class Item: def __init__(self, pId, pChange, pComment): self.ID = pId self.Delta = pChange self.Comment = pComment def PrintItem(self): str = '%s,%s,%s'%

Re: Permission Problem

2010-03-01 Thread Victor Subervi
Never mind. I figured out my error. beno On Mon, Mar 1, 2010 at 10:02 AM, Victor Subervi wrote: > Hi; > I encountered and solved this problem before with the help of the list, but > it's back, and I've reviewed and done everything I was shown to do last > time, so I'm lost. Here's the script: > >

Re: taking python enterprise level?...

2010-03-01 Thread D'Arcy J.M. Cain
On Mon, 1 Mar 2010 06:42:28 -0800 (PST) simn_stv wrote: > On Feb 26, 10:19 am, "Diez B. Roggisch" wrote: > > So when you talk about ACKs, you don't mean these on the TCP-level > > (darn, whatever iso-level that is...), but on some higher level? > > i think its on the TCP that he's referring to o

Re: taking python enterprise level?...

2010-03-01 Thread simn_stv
On Feb 26, 10:19 am, "Diez B. Roggisch" wrote: > Am 26.02.10 05:01, schrieb D'Arcy J.M. Cain: > > > > > On Fri, 26 Feb 2010 01:12:00 +0100 > > "Diez B. Roggisch" wrote: > >>> That better way turned out to asynchronous update transactions. All we > >>> did was keep feeding updates to the remote s

Re: taking python enterprise level?...

2010-03-01 Thread D'Arcy J.M. Cain
On Mon, 1 Mar 2010 04:11:07 -0800 (PST) simn_stv wrote: > > All of the above (and much more complexity not even discussed here) was > > handled by Python code and database manipulation. There were a few > > bumps along the way but overall it worked fine. If we were using C or > > even assembler

Re: Class attributes / methods lost?

2010-03-01 Thread Peter Otten
Gabor Urban wrote: > I am building a nested data structure with the following compontens: > Any idea is wellcome. The error messages suggest that you are using classes where you should be using class instances, but you don't provide the code where this problem originates. The code you do gi

Class attributes / methods lost?

2010-03-01 Thread Gabor Urban
Hi guys, I am building a nested data structure with the following compontens: <> class Item: def __init__(self, pId, pChange, pComment): self.ID = pId self.Delta = pChange self.Comment = pComment def PrintItem(self): str = '%s,%s,%s'%(self.ID,self.Delta,s

Permission Problem

2010-03-01 Thread Victor Subervi
Hi; I encountered and solved this problem before with the help of the list, but it's back, and I've reviewed and done everything I was shown to do last time, so I'm lost. Here's the script: #!/usr/bin/python import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.getcwd()) from l

python socket service related question!

2010-03-01 Thread elca
Hello,All im totally new to socket programming in python. i was read some tutorial and manual, but i didn't found what i want to make python related socket script in manual or tutorial. i want to make socket script which can send some info to server and also receive some info from server. For ex

ANN: A new version (0.2.4) of the Python module which wraps GnuPG has been released.

2010-03-01 Thread Vinay Sajip
A new version of the Python module which wraps GnuPG has been released. What Changed? = This is a minor enhancement release. See the project website ( http://code.google.com/p/python-gnupg/ ) for more information. The current version passes all tests on Windows (Python 2.4, 2.5, 2.6,

connect with me

2010-03-01 Thread sayed jewel21
dear guys you can do subscribe with site easily- http://freelivestreamonlinepctv.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Docstrings considered too complicated

2010-03-01 Thread Andreas Waldenburger
On Mon, 1 Mar 2010 05:01:49 -0800 (PST) alex23 wrote: > Andreas Waldenburger wrote: > > But as I said: a) I am (we are) not in a position to impose this (We > > don't work with the code, we just run the software). > > I personally believe that the end users have _every_ right to impose > qualit

Re: Docstrings considered too complicated

2010-03-01 Thread alex23
Andreas Waldenburger wrote: > But as I said: a) I am (we are) not in a position to impose this (We > don't work with the code, we just run the software). I personally believe that the end users have _every_ right to impose quality requirements on code used within their business...although I may

Re: Detecting new removable drives in Linux

2010-03-01 Thread Stefan Behnel
Bart Smeets, 01.03.2010 10:48: > I'm trying to write a script which detects when a new removable drive is > connected to the computer. On #python I was advised to use the > dbus-bindings. However the documentation on this is limited. Does anyone > know of an example of how I can detect new removabl

Re: taking python enterprise level?...

2010-03-01 Thread simn_stv
On Feb 26, 10:32 am, mdipierro wrote: > 100,000 hits a day is not a low. I get that some day on my web server > without problem and without one request dropped. > > Most frameworks web2py, Django, Pylons can handle that kind of load > since Python is not the bottle neck. taking a look at django ri

Re: taking python enterprise level?...

2010-03-01 Thread simn_stv
On Feb 25, 5:18 pm, "D'Arcy J.M. Cain" wrote: > On Thu, 25 Feb 2010 15:29:34 + > "Martin P. Hellwig" wrote: > > > On 02/25/10 13:58, D'Arcy J.M. Cain wrote: > > > On Thu, 25 Feb 2010 02:26:18 -0800 (PST) > > > > > Our biggest problem was in > > > a network heavy element of the app and that w

Re: pythonpath

2010-03-01 Thread Albert Hopkins
On Mon, 2010-03-01 at 02:48 -0800, luca72 wrote: > Sorry for my stupid question if i have to load module from a folder i > have to append it to the sys path the folder? > ex: > if my folder module is /home/lucak904/Scrivania/Luca/enigma2 > i do this : > import sys > sys.path.append('/home/lucak90

  1   2   >