[ANN] jsonrpclib-pelix 0.1.5

2013-06-24 Thread Thomas Calmant
Hi, I'm glad to announce the release of jsonrpclib-pelix 0.1.5 ! What is it ? jsonrpclib-pelix is an implementation of the JSON-RPC specification. It supports both the original 1.0 specification, as well as the 2.0 specification, which includes batch submission, keyword arguments,

[ANN] MadPUG - A New Python Users' Group in Madison, WI

2013-06-24 Thread Ian Cordasco
Hey all, I wanted to first announce a python users' group in Madison, WI and second ask that anyone with a desire to speak at the first meet-up get in touch. Devin Walters and I are using meetup.com to coordinate the event and would hope to start holding meet-ups on a regular basis. If you're

ANN: Bubbles 0.1 – Virtual Data Object Framework

2013-06-24 Thread Stefan Urbanek
Hi, I'm happy to announce new Python data framework: Bubbles Motto: Focus on the process, not the data technology. Blog post: http://blog.databrewery.org/posts/bubbles-0-1-released.html Here is a short presentation of the core concepts:

devpi-0.9.2: uploading existing archives files

2013-06-24 Thread holger krekel
devpi, the caching pypi server and its optional upload/test/install helper tool, just got a devpi-0.9.2 release. See the full updated docs here: http://doc.devpi.net Apart from some streamlining, there is a new upload option:: devpi upload --from-dir path/to/dir [--only-latest] which

XMLtoPDFBook v1.1 released: Create simple PDF books from XML text content

2013-06-24 Thread vasudevram
XMLtoPDFBook v1.1 released: XMLtoPDFBook is a program that lets you create simple PDF books from XML text content, including support for chapter numbers and names, headers and footers, automatic pagination, and page numbers. Please see this blog post about XMLtoPDFBook: XMLtoPDFBook now

[ANN] pypiserver 1.1.2 - minimal private pypi server

2013-06-24 Thread Ralf Schmitt
Hi, I've just uploaded pypiserver 1.1.2 to the python package index. pypiserver is a minimal PyPI compatible server. It can be used to serve a set of packages and eggs to easy_install or pip. pypiserver is easy to install (i.e. just 'pip install pypiserver'). It doesn't have any external

Re: Python development tools

2013-06-24 Thread rusi
On Monday, June 24, 2013 11:04:48 AM UTC+5:30, cutems93 wrote: Alright. Thanks everyone for your responses. I just want to know what tools are GENERALLY used by professional developers. I am helping somebody who wants to know about software that he might use in his project. He does not know

Re: Python development tools

2013-06-24 Thread Ben Finney
rusi rustompm...@gmail.com writes: I dont know what you mean my 'scripting' Any time someone has shown me a “Python script”, I don't see how it's different from what I'd call a “Python program”. So I just mentally replace “scripting with “programming”. -- \ “Dvorak users of the

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Steven D'Aprano
On Mon, 24 Jun 2013 02:53:06 +0100, Rotwang wrote: On 23/06/2013 18:29, Steven D'Aprano wrote: On Sat, 22 Jun 2013 23:40:53 -0600, Ian Kelly wrote: [...] Can you elaborate or provide a link? I'm curious to know what other reason there could be for magic methods to behave differently from

Re: Python development tools

2013-06-24 Thread rusi
On Monday, June 24, 2013 11:50:38 AM UTC+5:30, Ben Finney wrote: rusi writes: I dont know what you mean my 'scripting' Any time someone has shown me a “Python script”, I don't see how it's different from what I'd call a “Python program”. So I just mentally replace “scripting with

Re: Making a pass form cgi = webpy framework

2013-06-24 Thread Νίκος
Στις 24/6/2013 7:37 πμ, ο/η Michael Torrie έγραψε: Why use mako's approach which requires 2 files(an html template and the actual python script rendering the data) when i can have simple print statements inside 1 files(my files.py script) ? After all its only one html table i wish to display.

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Steven D'Aprano
On Sun, 23 Jun 2013 21:38:33 -0400, Roy Smith wrote: In article 51c7a087$0$2$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 23 Jun 2013 15:24:14 -0400, Roy Smith wrote: In article

Re: ANN: Bubbles 0.1 – Virtual Data Object Framework

2013-06-24 Thread Dariusz Suchojad
On 06/23/2013 07:58 PM, Stefan Urbanek wrote: If you have any comments, suggestions or questions, let me know. Hi Stefan, GH readme links to http://bubbles.databrewery.org/ but this page times out, can't connect to it. cheers, -- Dariusz Suchojad --

Re: Loop Question

2013-06-24 Thread christhecomic
Here is my code...I'm using 2.7.5 username=raw_input(Please enter your username: ) password=raw_input(Please enter your password: ) if username == john doe and password == fopwpo: print Login Successful else: print Please try again -- http://mail.python.org/mailman/listinfo/python-list

Looking for a name for a deployment framework...

2013-06-24 Thread jonathan . slenders
Hi all, Any suggestions for a good name, for a framework that does automatic server deployments? It's like Fabric, but more powerful. It has some similarities with Puppet, Chef and Saltstack, but is written in Python. Key points are that it uses Python, but is still very declarative and

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Roy Smith
In article 51c7fe14$0$29973$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Mixins are such a limited version of MI that it's often not even counted as MI, and even when it is, being familiar with mixins is hardly sufficient to count yourself

Re: Looking for a name for a deployment framework...

2013-06-24 Thread Roy Smith
In article 8b0d8931-cf02-4df4-8f17-a47ddd279...@googlegroups.com, jonathan.slend...@gmail.com wrote: Hi all, Any suggestions for a good name, for a framework that does automatic server deployments? It's like Fabric, but more powerful. It has some similarities with Puppet, Chef and

Re: Don't feed the troll...

2013-06-24 Thread Antoon Pardon
Op 23-06-13 16:29, ru...@yahoo.com schreef: On 06/21/2013 01:32 PM, Antoon Pardon wrote: Op 19-06-13 23:13, ru...@yahoo.com schreef: The troll is outside the volition of the group and so his appearance is effectively an act of nature. This seems a rather artificial division. Especially

Re: Looking for a name for a deployment framework...

2013-06-24 Thread MRAB
On 24/06/2013 13:50, Roy Smith wrote: In article 8b0d8931-cf02-4df4-8f17-a47ddd279...@googlegroups.com, jonathan.slend...@gmail.com wrote: Hi all, Any suggestions for a good name, for a framework that does automatic server deployments? It's like Fabric, but more powerful. It has some

Re: Loop Question

2013-06-24 Thread rusi
On Monday, June 24, 2013 5:42:51 PM UTC+5:30, christ...@gmail.com wrote: Here is my code...I'm using 2.7.5 username=raw_input(Please enter your username: ) password=raw_input(Please enter your password: ) if username == john doe and password == fopwpo: print Login Successful else:

Re: Default Value

2013-06-24 Thread Grant Edwards
On 2013-06-22, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Jun 21, 2013 at 7:15 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 21 Jun 2013 23:49:51 +0100, MRAB wrote: On 21/06/2013 21:44, Rick Johnson wrote: [...] Which in Python would be the

Re: ANN: Bubbles 0.1 – Virtual Data Object Framework

2013-06-24 Thread Skip Montanaro
When the bubbles URL fails, Chrome suggests simply databrewery.org, which seems to work, though it has no mention of bubbles. Skip On Mon, Jun 24, 2013 at 3:54 AM, Dariusz Suchojad ds...@gefira.pl wrote: On 06/23/2013 07:58 PM, Stefan Urbanek wrote: If you have any comments, suggestions or

Re: Python development tools

2013-06-24 Thread Grant Edwards
On 2013-06-23, cutems93 ms2...@cornell.edu wrote: I am new to python development and I want to know what kinds of tools people use for python development. 1) emacs 2) Cpython 3) subversion 4) http://www.python.org/doc/ 5) comp.lang.python 99.9% of the programs I write are command-line

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Rotwang
On 24/06/2013 07:31, Steven D'Aprano wrote: On Mon, 24 Jun 2013 02:53:06 +0100, Rotwang wrote: On 23/06/2013 18:29, Steven D'Aprano wrote: On Sat, 22 Jun 2013 23:40:53 -0600, Ian Kelly wrote: [...] Can you elaborate or provide a link? I'm curious to know what other reason there could be

Re: [SPAM] Re: Default Value

2013-06-24 Thread MRAB
On 24/06/2013 15:22, Grant Edwards wrote: On 2013-06-22, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Jun 21, 2013 at 7:15 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 21 Jun 2013 23:49:51 +0100, MRAB wrote: On 21/06/2013 21:44, Rick Johnson wrote: [...] Which

Re: Making a pass form cgi = webpy framework

2013-06-24 Thread rusi
On Monday, June 24, 2013 1:02:51 PM UTC+5:30, Νίκος wrote: And also in my pelatologio.py and other script i use if statements to check if user submitted data or not so to print them on screen and then exit, like modularization. foe example: if( log ): name = log print

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Mark Janssen
Mostly I'm saying that super() is badly named. What else would you call a function that does lookups on the current object's superclasses? ^. You make a symbol for it. ^__init__(foo, bar) -- MarkJ Tacoma, Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: Python development tools

2013-06-24 Thread Wolfgang Keller
Also, I will use GUI interface for Python. What kind of widget toolkits do you recommend? I know there are GTK+ and Qt. wxPython, PyGUI... Sincerely, Wolfgang -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 9:00 AM, Rotwang sg...@hotmail.co.uk wrote: On 24/06/2013 07:31, Steven D'Aprano wrote: I daresay that there are good reasons why new-style classes don't do the same thing, but the point is that had the Python devs had been sufficiently interested in keeping the old

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 9:58 AM, Mark Janssen dreamingforw...@gmail.com wrote: Mostly I'm saying that super() is badly named. What else would you call a function that does lookups on the current object's superclasses? ^. You make a symbol for it. ^__init__(foo, bar) On the one hand, eww.

Re: Looking for a name for a deployment framework...

2013-06-24 Thread Neil Cerutti
On 2013-06-24, MRAB pyt...@mrabarnett.plus.com wrote: On 24/06/2013 13:50, Roy Smith wrote: In article 8b0d8931-cf02-4df4-8f17-a47ddd279...@googlegroups.com, jonathan.slend...@gmail.com wrote: Hi all, Any suggestions for a good name, for a framework that does automatic server

Re: Looking for a name for a deployment framework...

2013-06-24 Thread Cousin Stanley
jonathan.slend...@gmail.com wrote: Any suggestions for a good name, for a framework that does automatic server deployments ? asdf : automatic server deployment framework -- Stanley C. Kitching Human Being Phoenix, Arizona -- http://mail.python.org/mailman/listinfo/python-list

Re: Loop Question

2013-06-24 Thread christhecomic
On Sunday, June 23, 2013 6:18:35 PM UTC-5, christ...@gmail.com wrote: How do I bring users back to beginning of user/password question once they fail it? thx Can't seem to get this to cooperate...where does the while statement belong? -- http://mail.python.org/mailman/listinfo/python-list

Re: Loop Question

2013-06-24 Thread John Gordon
In e41ce3a3-c8cb-4cfc-ba86-462f40f32...@googlegroups.com christheco...@gmail.com writes: On Sunday, June 23, 2013 6:18:35 PM UTC-5, christ...@gmail.com wrote: How do I bring users back to beginning of user/password question once they fail it? thx Can't seem to get this to

Re: Loop Question

2013-06-24 Thread Chris “Kwpolska” Warrick
On Mon, Jun 24, 2013 at 8:42 PM, John Gordon gor...@panix.com wrote: In e41ce3a3-c8cb-4cfc-ba86-462f40f32...@googlegroups.com christheco...@gmail.com writes: On Sunday, June 23, 2013 6:18:35 PM UTC-5, christ...@gmail.com wrote: How do I bring users back to beginning of user/password

Re: Looking for a name for a deployment framework...

2013-06-24 Thread Irmen de Jong
On 24-6-2013 20:13, Cousin Stanley wrote: jonathan.slend...@gmail.com wrote: Any suggestions for a good name, for a framework that does automatic server deployments ? asdf : automatic server deployment framework :-) wsad: wonderful serverside automatic deployments (hm, could

Re: Loop Question

2013-06-24 Thread John Gordon
In mailman.3754.1372100014.3114.python-l...@python.org =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= kwpol...@gmail.com writes: while True: username = raw_input(Please enter your username: ) password = raw_input(Please enter your password: ) if username == john doe

Re: Looking for a name for a deployment framework...

2013-06-24 Thread Fábio Santos
On 24 Jun 2013 13:39, jonathan.slend...@gmail.com wrote: Hi all, Any suggestions for a good name, for a framework that does automatic server deployments? It's like Fabric, but more powerful. It has some similarities with Puppet, Chef and Saltstack, but is written in Python. Key points are

Re: Loop Question

2013-06-24 Thread Dave Angel
On 06/24/2013 03:00 PM, John Gordon wrote: In mailman.3754.1372100014.3114.python-l...@python.org =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= kwpol...@gmail.com writes: while True: username = raw_input(Please enter your username: ) password = raw_input(Please enter your

What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread pablobarhamalzas
Hi there! I'm quite new to programming, even newer in python (this is actually the first thing I try on it), and every other topic I've seen on forums about my problem doesn't seem to help. So, the following lines are intended to draw a white square (which it does), turn it to blue when you

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread pablobarhamalzas
Just before anyone says, the reason I bind to the Canvas instead of binding directly to the rectangle is because I plan to add more squares in the future. Cheers. -- http://mail.python.org/mailman/listinfo/python-list

Is this PEP-able? fwhile

2013-06-24 Thread jimjhb
Syntax: fwhile X in ListY and conditionZ: The following would actually exactly as: for X in ListY: fwhile X in ListY and True: fwhile would act much like 'for', but would stop if the condition after the 'and' is no longer True. The motivation is to be able to make use of all the great

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread Peter Otten
pablobarhamal...@gmail.com wrote: Hi there! I'm quite new to programming, even newer in python (this is actually the first thing I try on it), and every other topic I've seen on forums about my problem doesn't seem to help. So, the following lines are intended to draw a white square (which

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread Antoon Pardon
Op 24-06-13 21:47, pablobarhamal...@gmail.com schreef: Hi there! I'm quite new to programming, even newer in python (this is actually the first thing I try on it), and every other topic I've seen on forums about my problem doesn't seem to help. So, the following lines are intended to draw a

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 1:52 PM, jim...@aol.com wrote: Syntax: fwhile X in ListY and conditionZ: The following would actually exactly as: for X in ListY: fwhile X in ListY and True: fwhile would act much like 'for', but would stop if the condition after the 'and' is no longer True.

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread John Gordon
In b3d3518a-f24a-4c32-a41a-b99145753...@googlegroups.com pablobarhamal...@gmail.com writes: isWhite = True def change(event): if event.x x1 and event.x x2 and event.y y1 and event.y y2: if isWhite: w.itemconfig(rect, fill=blue) isWhite =

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread pablobarhamalzas
Thank's to you all! Setting isWhite as global worked fine. I'll probably be back soon with another silly question, see you then :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 1:52 PM, jim...@aol.com wrote: Syntax: fwhile X in ListY and conditionZ: Also, this syntax is ambiguous. Take for example the statement: fwhile X in ListA and ListB and ListC and ListD: At which and does the iterable expression stop and the condition expression

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread Joshua Landau
Here's a little test to make sure you understand (this is one of the most confusing parts of Python's closures in my opinion): foo = I'm foo! def working(): print(foo) def broken(): print(foo) if False: # There's no way this could cause a problem! foo = This will *never*

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread Joshua Landau
On 24 June 2013 21:12, John Gordon gor...@panix.com wrote: Since you're new to programming, this might be a bit tricky to explain, but I'll do my best. :-) The problem is that change() isn't being executed here; instead it's being executed from within root.mainloop(), whenever the user

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On Mon, Jun 24, 2013 at 8:52 PM, jim...@aol.com wrote: Syntax: fwhile X in ListY and conditionZ: The following would actually exactly as: for X in ListY: fwhile X in ListY and True: fwhile would act much like 'for', but would stop if the condition after the 'and' is no longer True.

Re: Is this PEP-able? fwhile

2013-06-24 Thread Joshua Landau
On 24 June 2013 20:52, jim...@aol.com wrote: Syntax: fwhile X in ListY and conditionZ: The following would actually exactly as: for X in ListY: fwhile X in ListY and True: fwhile would act much like 'for', but would stop if the condition after the 'and' is no longer True. The

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread Joshua Landau
On 24 June 2013 21:19, pablobarhamal...@gmail.com wrote: Thank's to you all! Setting isWhite as global worked fine. I'll probably be back soon with another silly question, see you then :) By the way, it's normally bad to use globals like this. When you're learning it's something you just do,

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread Dave Angel
On 06/24/2013 04:12 PM, John Gordon wrote: In b3d3518a-f24a-4c32-a41a-b99145753...@googlegroups.com pablobarhamal...@gmail.com writes: isWhite = True def change(event): if event.x x1 and event.x x2 and event.y y1 and event.y y2: if isWhite: w.itemconfig(rect,

Re: Is this PEP-able? fwhile

2013-06-24 Thread jimjhb
I find itertools clumsy and wordy. You shouldn't have to have a lambda expression just to break out of a for! I agree to not cater to bad practices, but if a clean improvement is possible it will practically help code overall, even if theoretically people shouldn't be adopting a practice

Re: Is this PEP-able? fwhile

2013-06-24 Thread jimjhb
Your syntax makes great sense. Avoiding new keywords is obviously preferable. -Original Message- From: Fábio Santos fabiosantos...@gmail.com To: jimjhb jim...@aol.com Cc: python-list python-list@python.org Sent: Mon, Jun 24, 2013 4:34 pm Subject: Re: Is this PEP-able? fwhile On Mon,

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 3:01 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos fabiosantos...@gmail.com wrote: This can probably be best achieved by adding to the existing for loop, so maybe taking advantage of the existing for...if syntax and adding

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos fabiosantos...@gmail.com wrote: This can probably be best achieved by adding to the existing for loop, so maybe taking advantage of the existing for...if syntax and adding for...while would be a better idea? The for...if syntax only exists for

Re: Looking for a name for a deployment framework...

2013-06-24 Thread jonathan . slenders
Thanks everyone, I'll think about it. The main reason is that I'm working on the documentation, and this a a good opportunity to think about the naming. python-deploy-framework or python-deployer could be too boring. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python development tools

2013-06-24 Thread Cameron Simpson
On 24Jun2013 14:28, Grant Edwards invalid@invalid.invalid wrote: | On 2013-06-23, cutems93 ms2...@cornell.edu wrote: | I am new to python development and I want to know what kinds of tools | people use for python development. | | 1) emacs | 2) Cpython | 3) subversion | 4)

(newbye) exceptions list for python3 classes

2013-06-24 Thread chrem
Hi, what is the best way to find out all exceptions for a class? E.g. I want to find out all exceptions related to the zipfile (I'm searching for the Bad password exception syntax). thanks for your help or feedback, Christophe -- http://mail.python.org/mailman/listinfo/python-list

Re: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread John Gordon
In mailman.3767.1372106609.3114.python-l...@python.org Dave Angel da...@davea.name writes: The problem is that change() isn't being executed here; instead it's being executed from within root.mainloop(), whenever the user presses button-1. And within root.mainloop(), there is no variable

Re: Is this PEP-able? fwhile

2013-06-24 Thread Chris Angelico
On Tue, Jun 25, 2013 at 5:52 AM, jim...@aol.com wrote: (NOTE: Many people are being taught to avoid 'break' and 'continue' at all costs... Why? Why on earth should break/continue be avoided? I think that's the solution: teach people that loops are there to be interrupted and manipulated. And

Re: (newbye) exceptions list for python3 classes

2013-06-24 Thread chrem
Le 24/06/13 23:35, chrem a écrit : Hi, what is the best way to find out all exceptions for a class? E.g. I want to find out all exceptions related to the zipfile (I'm searching for the Bad password exception syntax). thanks for your help or feedback, Christophe without exception, it shown:

Re: Is this PEP-able? fwhile

2013-06-24 Thread Tim Chase
On 2013-06-25 07:38, Chris Angelico wrote: Python has no issues with breaking out of loops, and even has syntax specifically to complement it (the 'else:' clause). Use break/continue when appropriate. from minor_gripes import breaking_out_of_nested_loops_to_top_level -tkc --

Re: Is this PEP-able? fwhile

2013-06-24 Thread Chris Angelico
On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-06-25 07:38, Chris Angelico wrote: Python has no issues with breaking out of loops, and even has syntax specifically to complement it (the 'else:' clause). Use break/continue when appropriate. from

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 4:41 PM, Fábio Santos fabiosantos...@gmail.com wrote: On 24 Jun 2013 22:29, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos fabiosantos...@gmail.com wrote: This can probably be best achieved by adding to the existing for loop,

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 24 Jun 2013 23:35, Tim Chase python.l...@tim.thechases.com wrote: On 2013-06-25 07:38, Chris Angelico wrote: Python has no issues with breaking out of loops, and even has syntax specifically to complement it (the 'else:' clause). Use break/continue when appropriate. from minor_gripes

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 24 Jun 2013 22:29, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos fabiosantos...@gmail.com wrote: This can probably be best achieved by adding to the existing for loop, so maybe taking advantage of the existing for...if syntax and adding for...while

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 4:35 PM, Chris Angelico ros...@gmail.com wrote: On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-06-25 07:38, Chris Angelico wrote: Python has no issues with breaking out of loops, and even has syntax specifically to complement it

Re: Is this PEP-able? fwhile

2013-06-24 Thread MRAB
On 24/06/2013 23:35, Chris Angelico wrote: On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-06-25 07:38, Chris Angelico wrote: Python has no issues with breaking out of loops, and even has syntax specifically to complement it (the 'else:' clause). Use

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 25 Jun 2013 00:04, MRAB pyt...@mrabarnett.plus.com wrote: On 24/06/2013 23:35, Chris Angelico wrote: On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase python.l...@tim.thechases.com wrote: On 2013-06-25 07:38, Chris Angelico wrote: Python has no issues with breaking out of loops, and even has

Re: Is this PEP-able? fwhile

2013-06-24 Thread Mark Lawrence
On 24/06/2013 23:30, Tim Chase wrote: On 2013-06-25 07:38, Chris Angelico wrote: Python has no issues with breaking out of loops, and even has syntax specifically to complement it (the 'else:' clause). Use break/continue when appropriate. from minor_gripes import

Re: Is this PEP-able? fwhile

2013-06-24 Thread Tim Chase
On 2013-06-24 23:39, Fábio Santos wrote: On 24 Jun 2013 23:35, Tim Chase wrote: On 2013-06-25 07:38, Chris Angelico wrote: Python has no issues with breaking out of loops, and even has syntax specifically to complement it (the 'else:' clause). Use break/continue when appropriate.

Re: Is this PEP-able? fwhile

2013-06-24 Thread Chris Angelico
On Tue, Jun 25, 2013 at 8:43 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Jun 24, 2013 at 4:41 PM, Fábio Santos fabiosantos...@gmail.com wrote: On 24 Jun 2013 22:29, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos fabiosantos...@gmail.com wrote:

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 25 Jun 2013 00:06, Fábio Santos fabiosantos...@gmail.com wrote: I like how discussions on this list tend to go off topic ;) And now I'm off topic myself :( -- http://mail.python.org/mailman/listinfo/python-list

Re: Python development tools

2013-06-24 Thread Ben Finney
rusi rustompm...@gmail.com writes: On Monday, June 24, 2013 11:50:38 AM UTC+5:30, Ben Finney wrote: Any time someone has shown me a “Python script”, I don't see how it's different from what I'd call a “Python program”. So I just mentally replace “scripting with “programming”. If you are

Re: (newbye) exceptions list for python3 classes

2013-06-24 Thread alex23
On 25/06/2013 7:43 AM, chrem wrote: Le 24/06/13 23:35, chrem a écrit : what is the best way to find out all exceptions for a class? E.g. I want to find out all exceptions related to the zipfile (I'm searching for the Bad password exception syntax). The only way is to look at the source code

Re: Is this PEP-able? fwhile

2013-06-24 Thread alex23
On 25/06/2013 6:12 AM, Ian Kelly wrote: On Mon, Jun 24, 2013 at 1:52 PM, jim...@aol.com wrote: Syntax: fwhile X in ListY and conditionZ: fwhile would act much like 'for', but would stop if the condition after the 'and' is no longer True. I would advocate using the break myself. Another

Re: (newbye) exceptions list for python3 classes

2013-06-24 Thread Ben Finney
chrem usenetnos...@chr1st0ph9.eu writes: Hi, Howdy, congratulations on finding the Python programming language. what is the best way to find out all exceptions for a class? Python is not Java. Your program doesn't need to know everything that might happen; you should catch only those

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 25 Jun 2013 00:31, alex23 wuwe...@gmail.com wrote: On 25/06/2013 6:12 AM, Ian Kelly wrote: On Mon, Jun 24, 2013 at 1:52 PM, jim...@aol.com wrote: Syntax: fwhile X in ListY and conditionZ: fwhile would act much like 'for', but would stop if the condition after the 'and' is no longer

Re: n00b question on spacing

2013-06-24 Thread alex23
On 23/06/2013 3:43 AM, Mark Janssen wrote: There was a recent discussion about this (under implicit string concatenation). It seems this is a part of the python language specification that was simply undefined. It's part of the language reference, not an accidental artifact:

Re: What is the semantics meaning of 'object'?

2013-06-24 Thread Steven D'Aprano
On Mon, 24 Jun 2013 08:58:23 -0700, Mark Janssen wrote: Mostly I'm saying that super() is badly named. What else would you call a function that does lookups on the current object's superclasses? ^. You make a symbol for it. ^__init__(foo, bar) If you want Perl, you can find it here:

Re: Is this PEP-able? fwhile

2013-06-24 Thread alex23
On 25/06/2013 9:35 AM, Fábio Santos wrote: I'd probably just go with a generator expression to feed the for loop: for X in (i for i in ListY if conditionZ): That is nice but it's not lazy. If the condition or the iterables took too long to compute, it would be

Re: n00b question on spacing

2013-06-24 Thread Mark Janssen
On Mon, Jun 24, 2013 at 4:48 PM, alex23 wuwe...@gmail.com wrote: On 23/06/2013 3:43 AM, Mark Janssen wrote: There was a recent discussion about this (under implicit string concatenation). It seems this is a part of the python language specification that was simply undefined. It's part of

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 25 Jun 2013 01:08, alex23 wuwe...@gmail.com wrote: On 25/06/2013 9:35 AM, Fábio Santos wrote: I'd probably just go with a generator expression to feed the for loop: for X in (i for i in ListY if conditionZ): That is nice but it's not lazy. If the condition or

Re: Is this PEP-able? fwhile

2013-06-24 Thread wu wei
On Tue, Jun 25, 2013 at 10:19 AM, Fábio Santos fabiosantos...@gmail.com wrote: for X in (i for i in open('largefile') if is_part_of_header(i)): The above code would be wasting time on IO and processing. It would load another line and calculate the condition for every line of the large file

Re: Looking for a name for a deployment framework...

2013-06-24 Thread Roy Smith
In article kqa28v$4us$1...@dont-email.me, Cousin Stanley cousinstan...@gmail.com wrote: jonathan.slend...@gmail.com wrote: Any suggestions for a good name, for a framework that does automatic server deployments ? asdf : automatic server deployment framework I prefer: Quite

Re: Is this PEP-able? fwhile

2013-06-24 Thread rusi
On Tuesday, June 25, 2013 3:08:57 AM UTC+5:30, Chris Angelico wrote: On Tue, Jun 25, 2013 at 5:52 AM, wrote: (NOTE: Many people are being taught to avoid 'break' and 'continue' at all costs... Why? Why on earth should break/continue be avoided? Because breaks and continues are just

Re: (newbye) exceptions list for python3 classes

2013-06-24 Thread Dave Angel
On 06/24/2013 05:43 PM, chrem wrote: Le 24/06/13 23:35, chrem a écrit : Hi, what is the best way to find out all exceptions for a class? E.g. I want to find out all exceptions related to the zipfile (I'm searching for the Bad password exception syntax). thanks for your help or feedback,

Re: Python development tools

2013-06-24 Thread Reed Xia
在 2013年6月24日星期一UTC+8上午4时40分07秒,cutems93写道: Hello, I am new to python development and I want to know what kinds of tools people use for python development. I went to Python website and found several tools. 1. Automated Refactoring Tools 2. Bug Tracking 3. Configuration And

Re: Python development tools

2013-06-24 Thread rusi
On Tuesday, June 25, 2013 4:41:22 AM UTC+5:30, Ben Finney wrote: rusi writes: I dont however think that the two philosophies are the same. See http://www.tcl.tk/doc/scripting.html That essay constrasts “scripting” versus “system programming”, a useful (though terminologically confusing)

Re: Python development tools

2013-06-24 Thread MRAB
On 25/06/2013 03:24, rusi wrote: On Tuesday, June 25, 2013 4:41:22 AM UTC+5:30, Ben Finney wrote: rusi writes: I dont however think that the two philosophies are the same. See http://www.tcl.tk/doc/scripting.html That essay constrasts “scripting” versus “system programming”, a useful

Re: Python development tools

2013-06-24 Thread rusi
On Tuesday, June 25, 2013 8:09:19 AM UTC+5:30, MRAB wrote: And convenience for the programmer. Manipulating long texts using variable-length strings? Yes, I know it's inefficient, but it's still faster than doing it by hand! Well... did not say it because it tends to be emotionally

Re: Is this PEP-able? fwhile

2013-06-24 Thread Chris Angelico
On Tue, Jun 25, 2013 at 12:01 PM, rusi rustompm...@gmail.com wrote: On Tuesday, June 25, 2013 3:08:57 AM UTC+5:30, Chris Angelico wrote: On Tue, Jun 25, 2013 at 5:52 AM, wrote: (NOTE: Many people are being taught to avoid 'break' and 'continue' at all costs... Why? Why on earth should

io module and pdf question

2013-06-24 Thread jyoung79
Would like to get your opinion on this. Currently to get the metadata out of a pdf file, I loop through the guts of the file. I know it's not the greatest idea to do this, but I'm trying to avoid extra modules, etc. Adobe javascript was used to insert the metadata, so the added data looks

Re: Is this PEP-able? fwhile

2013-06-24 Thread Benjamin Kaplan
On Mon, Jun 24, 2013 at 8:54 PM, Chris Angelico ros...@gmail.com wrote: On Tue, Jun 25, 2013 at 12:01 PM, rusi rustompm...@gmail.com wrote: On Tuesday, June 25, 2013 3:08:57 AM UTC+5:30, Chris Angelico wrote: On Tue, Jun 25, 2013 at 5:52 AM, wrote: (NOTE: Many people are being taught to

Re: Looking for a name for a deployment framework...

2013-06-24 Thread Chris Rebert
On Jun 24, 2013 5:36 AM, jonathan.slend...@gmail.com wrote: Hi all, Any suggestions for a good name, for a framework that does automatic server deployments? It's like Fabric, but more powerful. It has some similarities with Puppet, Chef and Saltstack, but is written in Python. Er, Salt is

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 6:41 PM, wu wei wuwe...@gmail.com wrote: It's still possible by raising a StopIteration within the condition function: def is_part_of_header(x): if header_condition: return True else: raise StopIteration Which is

[issue18234] Unicodedata module should provide access to codepoint aliases

2013-06-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 23.06.2013 22:43, Alexander Belopolsky wrote: Alexander Belopolsky added the comment: unicodedata.name() was discussed in #12353 (msg144739) where MvL argued that misspelled names are better than corrected because they are more likely to appear

  1   2   3   >