Re: io module and pdf question

2013-06-24 Thread rusi
On Tuesday, June 25, 2013 9:48:44 AM UTC+5:30, jyou...@kc.rr.com wrote: > 1. Is there another way to get metadata out of a pdf without having to > install another module? > 2. Is it safe to assume pdf files should always be encoded as latin-1 (when > trying to read it this way)? Is there a chanc

Unable to import NHunspell.dll using ctypes in Python

2013-06-24 Thread akshay . ksth
Im required to import ha certain dll called 'NHunspell.dll' which is used for Spell Checking purposes. I am using Python for the software. Although I checked out several websites to properly use ctypes, I have been unable to load the dll properly. When I use this code. from ctypes import *

Re: Is this PEP-able? fwhile

2013-06-24 Thread rusi
On Tuesday, June 25, 2013 4:44:44 AM UTC+5:30, alex23 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): > > Nice idiom -- thanks Yes it does not correspond to a takewhile (or break in the control stru

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 6:41 PM, wu wei 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 basically just tak

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

2013-06-24 Thread Chris Rebert
On Jun 24, 2013 5:36 AM, 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 likewise written in P

Re: Is this PEP-able? fwhile

2013-06-24 Thread Benjamin Kaplan
On Mon, Jun 24, 2013 at 8:54 PM, Chris Angelico wrote: > On Tue, Jun 25, 2013 at 12:01 PM, rusi 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 'conti

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 som

Re: Is this PEP-able? fwhile

2013-06-24 Thread Chris Angelico
On Tue, Jun 25, 2013 at 12:01 PM, rusi 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 break

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 emotional

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 (thou

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 conf

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. Confi

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

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 a

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

2013-06-24 Thread Roy Smith
In article , 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 I prefer: Quite Wonderful Electronic Rollout Tool -- http://m

Re: Is this PEP-able? fwhile

2013-06-24 Thread wu wei
On Tue, Jun 25, 2013 at 10:19 AM, Fábio Santos 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 > and I just wanted to

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 25 Jun 2013 01:08, "alex23" 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

Re: n00b question on spacing

2013-06-24 Thread Mark Janssen
On Mon, Jun 24, 2013 at 4:48 PM, alex23 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 the

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 troubl

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

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: http://docs.pyth

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 25 Jun 2013 00:31, "alex23" wrote: > > On 25/06/2013 6:12 AM, Ian Kelly wrote: >> >> On Mon, Jun 24, 2013 at 1:52 PM, 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. >

Re: (newbye) exceptions list for python3 classes

2013-06-24 Thread Ben Finney
chrem 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 exceptions you can actually deal

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, 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 alternative is thi

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 fo

Re: Python development tools

2013-06-24 Thread Ben Finney
rusi 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 saying that

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 25 Jun 2013 00:06, "Fábio Santos" 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: Is this PEP-able? fwhile

2013-06-24 Thread Chris Angelico
On Tue, Jun 25, 2013 at 8:43 AM, Ian Kelly wrote: > On Mon, Jun 24, 2013 at 4:41 PM, Fábio Santos > wrote: >> >> On 24 Jun 2013 22:29, "Ian Kelly" wrote: >>> >>> On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos >>> wrote: >>> > This can probably be best achieved by adding to the existing for loop

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 appro

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 breaking_out_of_nested_loops_t

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 25 Jun 2013 00:04, "MRAB" wrote: > > On 24/06/2013 23:35, Chris Angelico wrote: >> >> On Tue, Jun 25, 2013 at 8:30 AM, 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 comp

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 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 Ian Kelly
On Mon, Jun 24, 2013 at 4:35 PM, Chris Angelico wrote: > On Tue, Jun 25, 2013 at 8:30 AM, 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

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On 24 Jun 2013 22:29, "Ian Kelly" wrote: > > On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos 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

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
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. > > from minor_gripes import breaking_ou

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 4:41 PM, Fábio Santos wrote: > > On 24 Jun 2013 22:29, "Ian Kelly" wrote: >> >> On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos >> wrote: >> > This can probably be best achieved by adding to the existing for loop, >> > so maybe taking advantage of the existing for...if synt

Re: Is this PEP-able? fwhile

2013-06-24 Thread Chris Angelico
On Tue, Jun 25, 2013 at 8:30 AM, 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 breakin

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 -- http://mail.

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

Re: Is this PEP-able? fwhile

2013-06-24 Thread Chris Angelico
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? I think that's the solution: teach people that loops are there to be interrupted and manipulated. And then it's a s

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

2013-06-24 Thread John Gordon
In Dave Angel 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 called isWhite. > > > Actually that's irrelevant. Whether

(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: Python development tools

2013-06-24 Thread Cameron Simpson
On 24Jun2013 14:28, Grant Edwards wrote: | On 2013-06-23, cutems93 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 1) vi/

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: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos 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 comprehensions and generat

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 3:01 PM, Ian Kelly wrote: > On Mon, Jun 24, 2013 at 2:34 PM, Fábio Santos > 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? > >

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 To: jimjhb Cc: python-list Sent: Mon, Jun 24, 2013 4:34 pm Subject: Re: Is this PEP-able? fwhile On Mon, Jun 24, 2013 at 8:52 PM, wrote: > Syntax: > > fwhile X in L

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 (don't

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 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 = False

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, 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, though; it's fine for

Re: Is this PEP-able? fwhile

2013-06-24 Thread Joshua Landau
On 24 June 2013 20:52, 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 motivation

Re: Is this PEP-able? fwhile

2013-06-24 Thread Fábio Santos
On Mon, Jun 24, 2013 at 8:52 PM, 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:12, John Gordon 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 presses button-1.

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: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 1:52 PM, 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 begin? -- htt

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: What's wrong with this code? (UnboundLocalError: local variable referenced before assignment)

2013-06-24 Thread John Gordon
In 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 = False > else: > w.itemc

Re: Is this PEP-able? fwhile

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 1:52 PM, 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 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 wh

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 (wh

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

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 cl

Re: Loop Question

2013-06-24 Thread Dave Angel
On 06/24/2013 03:00 PM, John Gordon wrote: In =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= writes: while True: username = raw_input("Please enter your username: ") password = raw_input("Please enter your password: ") if username == "john doe" and password == "fopwpo":

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

2013-06-24 Thread Fábio Santos
On 24 Jun 2013 13:39, 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 that it uses Pytho

Re: Loop Question

2013-06-24 Thread John Gordon
In =?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?= writes: > > while True: > > username = raw_input("Please enter your username: ") > > password = raw_input("Please enter your password: ") > > > > if username == "john doe" and password == "fopwpo": > > print "Login Suc

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

Re: Loop Question

2013-06-24 Thread Chris “Kwpolska” Warrick
On Mon, Jun 24, 2013 at 8:42 PM, John Gordon wrote: > In > 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

Re: Loop Question

2013-06-24 Thread John Gordon
In 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 cooperate...where does the while statement belong? while T

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: 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: Looking for a name for a deployment framework...

2013-06-24 Thread Neil Cerutti
On 2013-06-24, MRAB 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 >>> deployments? >>>

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 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. On the other h

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

2013-06-24 Thread Ian Kelly
On Mon, Jun 24, 2013 at 9:00 AM, Rotwang 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 behaviour, and

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

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 wrote: On Fri, Jun 21, 2013 at 7:15 PM, Steven D'Aprano 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 "MutableArgumentWarning". *school-

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 for

Re: Python development tools

2013-06-24 Thread Grant Edwards
On 2013-06-23, cutems93 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 tools. -- Grant

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 wrote: > On 06/23/2013 07:58 PM, Stefan Urbanek wrote: > >> If you have any comments, suggestions or questions, le

Re: Default Value

2013-06-24 Thread Grant Edwards
On 2013-06-22, Ian Kelly wrote: > On Fri, Jun 21, 2013 at 7:15 PM, Steven D'Aprano > 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 "MutableArgumentWarning". *school-bell* >>> I not

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 Succ

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 simi

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. Esp

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

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 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 as familiar with MI. OK, fair e

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 suppor

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/

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 -- http://mail.python.org/mailman/listinfo

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 wrote: > >> On Sun, 23 Jun 2013 15:24:14 -0400, Roy Smith wrote: >> >> > In article <51c74373$0$2$c3e8da3$54964...@news.astraweb.com>, >> > Steven D'A

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. So