The Python: Rag March issue available

2010-03-01 Thread Bernard Czenkusz
The March issue of The Python: Rag is available at: http://tinyurl.com/pyrag2010-03 with previous issues available at the web site: http://www.pythonrag.org or http://groups.google.co.uk/group/pythonrag -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python

BetterBatch 0.9.5 released - Added For loops and Parallel sections

2010-03-01 Thread mark . m . mcmahon
From: mark.m.mcma...@gmail.com To: python-annou...@python.org Hi, The 0.9.5 release of BetterBatch is now available. BetterBatch is designed as a middle ground between batch files and more powerful languages (Python, shell scripting, etc). The project is hosted on code.google.com:

Pygments 1.3 Schneeglöckchen released

2010-03-01 Thread Georg Brandl
I've just uploaded the Pygments 1.3 packages to CheeseShop. Pygments is a generic syntax highlighter written in Python. Download it from http://pypi.python.org/pypi/Pygments, or look at the demonstration at http://pygments.org/demo. As always, many thanks go to Tim Hatch for writing or

[ANN] argparse 1.1 - Command-line parsing library

2010-03-01 Thread Steven Bethard
=== Announcing argparse 1.1 === The argparse module provides an easy, declarative interface for creating command line tools, which knows how to: * parse the arguments and flags from sys.argv * convert arg strings into objects for your program * format and

Re: Six Minutes and fourty two seconds

2010-03-01 Thread Anthra Norell
Tobiah wrote: Now that I use python, this is the amount of time per day that I spend adding forgotten semicolons while debugging other languages. What compels you to write Python code without semicolons? Frederic -- http://mail.python.org/mailman/listinfo/python-list

Detecting new removable drives in Linux

2010-03-01 Thread Bart Smeets
Hello, 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 removable drives? Thanks in advance!

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

2010-03-01 Thread Chris Withers
Aahz wrote: In article 4b79e28c$0$4610$426a7...@news.free.fr, News123 news...@free.fr wrote: 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

Re: Docstrings considered too complicated

2010-03-01 Thread Jean-Michel Pichavant
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, where the source and

pythonpath

2010-03-01 Thread luca72
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/lucak904/Scrivania/Luca/enigma2') If this is correct why when i

Re: Starting Python from the terminal with no welcome message

2010-03-01 Thread candide
Tim Chase a écrit : bash$ python -ic to get a python shell without the banner. Works fine. thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list

Re: taking python enterprise level?...

2010-03-01 Thread simn_stv
On Feb 25, 12:21 pm, Martin P. Hellwig martin.hell...@dcuktec.org wrote: On 02/25/10 10:26, simn_stv wrote: cut what i am concerned about is scalability and efficiency, well, as far as the 'core' is concerned. would python be able to manage giving me a solid 'core' and will i be able to

Re: pythonpath

2010-03-01 Thread 刘宇辉
Sorry for my stupid question if i have to load module from a folder ihave 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/lucak904/Scrivania/Luca/enigma2') If this is correct why when i write:

Re: taking python enterprise level?...

2010-03-01 Thread simn_stv
On Feb 25, 5:18 pm, D'Arcy J.M. Cain da...@druid.net wrote: On Thu, 25 Feb 2010 15:29:34 + Martin P. Hellwig martin.hell...@dcuktec.org wrote: On 02/25/10 13:58, D'Arcy J.M. Cain wrote: On Thu, 25 Feb 2010 02:26:18 -0800 (PST) cut Our biggest problem was in a network heavy

Re: Detecting new removable drives in Linux

2010-03-01 Thread Albert Hopkins
On Mon, 2010-03-01 at 10:48 +0100, Bart Smeets wrote: Hello, 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

Re: Sample code usable Tkinter listbox

2010-03-01 Thread Alf P. Steinbach
* rantingrick: kw.setdefault('activestyle', 'none') Hm, let me steal this line... Thanks! Cheers, - Alf -- http://mail.python.org/mailman/listinfo/python-list

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

Re: taking python enterprise level?...

2010-03-01 Thread simn_stv
On Feb 25, 5:18 pm, D'Arcy J.M. Cain da...@druid.net wrote: On Thu, 25 Feb 2010 15:29:34 + Martin P. Hellwig martin.hell...@dcuktec.org wrote: On 02/25/10 13:58, D'Arcy J.M. Cain wrote: On Thu, 25 Feb 2010 02:26:18 -0800 (PST) cut Our biggest problem was in a network heavy

Re: taking python enterprise level?...

2010-03-01 Thread simn_stv
On Feb 26, 10:32 am, mdipierro massimodipierr...@gmail.com 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.

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 removable

Re: Docstrings considered too complicated

2010-03-01 Thread alex23
Andreas Waldenburger use...@geekmail.invalid 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

Re: Docstrings considered too complicated

2010-03-01 Thread Andreas Waldenburger
On Mon, 1 Mar 2010 05:01:49 -0800 (PST) alex23 wuwe...@gmail.com wrote: Andreas Waldenburger use...@geekmail.invalid 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

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

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,

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

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

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 =

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

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 nany...@googlemail.com 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

Re: taking python enterprise level?...

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

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 nany...@googlemail.com wrote: On Feb 26, 10:19 am, Diez B. Roggisch de...@nospam.web.de 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

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 victorsube...@gmail.comwrote: 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.

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 =

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

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 qtrim...@gmail.com wrote: On Feb 26, 4:14 pm, OdarR olivier.da...@gmail.com wrote: snip below is just a sample.  There are well over 500,000 lines that need processed. wer1999001       31.2234      

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 wuwe...@gmail.com wrote: Andreas Waldenburger use...@geekmail.invalid 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

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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 12:39 am, John Nagle na...@animats.com 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

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

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, the

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

Re: Looking for an Application

2010-03-01 Thread Arnaud Delobelle
Greg Lindstrom greg.lindst...@novasyshealth.com 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

Re: Sample code usable Tkinter listbox

2010-03-01 Thread rantingrick
On Mar 1, 6:19 am, Alf P. Steinbach al...@start.no 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: Docstrings considered too complicated

2010-03-01 Thread Andreas Waldenburger
On Tue, 02 Mar 2010 03:18:30 +1100 Lie Ryan lie.1...@gmail.com wrote: On 03/02/10 00:09, Andreas Waldenburger wrote: On Mon, 1 Mar 2010 05:01:49 -0800 (PST) alex23 wuwe...@gmail.com wrote: Andreas Waldenburger use...@geekmail.invalid wrote: But as I said: a) I am (we are) not in a

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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 11:13 am, Robert Kern robert.k...@gmail.com 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

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 lie.1...@gmail.com wrote: On 03/02/10 00:09, Andreas Waldenburger wrote: On Mon, 1 Mar 2010 05:01:49 -0800 (PST) alex23 wuwe...@gmail.com wrote: Andreas Waldenburger use...@geekmail.invalid wrote:

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

Re: Is there a better way to do this?

2010-03-01 Thread Richard Brodie
Matt Mitchell mmitch...@transparent.com 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

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 articlehm0jn4$tn...@news.eternal-september.org, W. eWatsonwolftra...@invalid.com 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

[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

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 Kernrobert.k...@gmail.com 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,

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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Paul Rubin
Patrick Maupin pmau...@gmail.com 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

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 configuration

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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 12:03 pm, Paul Rubin no.em...@nospam.invalid 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

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 -

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

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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 12:40 pm, Daniel Fetchinson fetchin...@googlemail.com 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

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

Re: AOP decorator?

2010-03-01 Thread Jon Clements
On Mar 1, 4:22 pm, gentlestone tibor.b...@hotmail.com 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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Paul Rubin
Patrick Maupin pmau...@gmail.com 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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 1:37 pm, Paul Rubin no.em...@nospam.invalid 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.

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Paul Rubin
Patrick Maupin pmau...@gmail.com 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

Re: Docstrings considered too complicated

2010-03-01 Thread Andreas Waldenburger
On Mon, 01 Mar 2010 11:42:16 -0600 Robert Kern robert.k...@gmail.com 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

Re: Docstrings considered too complicated

2010-03-01 Thread Andreas Waldenburger
On Mon, 01 Mar 2010 18:42:17 +0100 Jean-Michel Pichavant jeanmic...@sequans.com 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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 2:08 pm, Paul Rubin no.em...@nospam.invalid 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

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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Paul Rubin
Patrick Maupin pmau...@gmail.com 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

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, always fun to play around with python.

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: 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 pmau...@gmail.com 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

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 jeanmic...@sequans.com 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: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 2:42 pm, Paul Rubin no.em...@nospam.invalid wrote: Patrick Maupin pmau...@gmail.com 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?  

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

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

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 Package

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: Docstrings considered too complicated

2010-03-01 Thread Ben Finney
Andreas Waldenburger use...@geekmail.invalid writes: On Mon, 01 Mar 2010 18:42:17 +0100 Jean-Michel Pichavant jeanmic...@sequans.com 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

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

Re: Variable definition

2010-03-01 Thread Rhodri James
On Mon, 01 Mar 2010 18:07:17 -, Raphael Mayoraz may...@netplus.ch 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.

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

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 no.em...@nospam.invalid 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

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

Re: taking python enterprise level?...

2010-03-01 Thread mdipierro
On Mar 1, 6:32 am, simn_stv nany...@googlemail.com 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

Re: Py2exe - Bad File Descriptor

2010-03-01 Thread T
On Feb 28, 10:00 pm, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 28 Feb 2010 13:22:19 -0800 (PST), T misceveryth...@gmail.com 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

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 5:33 pm, Erik Max Francis m...@alcyone.com 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.

Re: Draft PEP on RSON configuration file format

2010-03-01 Thread Patrick Maupin
On Mar 1, 5:57 pm, Erik Max Francis m...@alcyone.com 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

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

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: Docstrings considered too complicated

2010-03-01 Thread Roy Smith
In article mailman.59.1267456634.23598.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com 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.

  1   2   >