Re: allow line break at operators

2011-08-14 Thread Tim Roberts
Steven D'Aprano wrote: > >The only exception I can think of is *very* early Fortran, and that rightly >is considered a mistake. Fortran 77 used to treat whitespace as always >optional, so that in Python terms this: > >forxinrange(42) > >would be parsed as this: > >for x in range(42) Absolutely tr

Re: allow line break at operators

2011-08-14 Thread Seebs
On 2011-08-15, Chris Rebert wrote: > On Sun, Aug 14, 2011 at 6:54 PM, Steven D'Aprano > wrote: >> As a rule, chaining method calls risks violating the Law of Demeter. Just >> sayin'. > Not in the specific case of fluent interfaces[1] though, which could > have been what Seebach had in mind. They

Re: allow line break at operators

2011-08-14 Thread Seebs
On 2011-08-15, Steven D'Aprano wrote: >> Interesting! I tend to really like the ability to chain methods, >> depending >> on context. I find the side-effect/expression mix pretty normal, so I'm >> used to it. > As a rule, chaining method calls risks violating the Law of Demeter. Just > sayin'.

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Seebs
On 2011-08-15, Steven D'Aprano wrote: > And yet, here you are, engaging him in conversation and feeding him the > attention he craves :( Many cultures have a tradition of almsgiving. -s -- Copyright 2011, all wrongs reversed. Peter Seebach / usenet-nos...@seebs.net http://www.seebs.net/log/ <-

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Christophe Chong
I can't tell which comments are sarcastic On Aug 14, 2011, at 18:35, rantingrick wrote: > On Aug 14, 5:01 pm, Dave Angel wrote: > >> Interesting that when you complain about other's grammatical typos, >> you're so careless with your own. >> >> know -> now >> i -> I >> accustom -> accustomed >

Re: Problem installing 3.2.1 on a Linux server

2011-08-14 Thread Terry Reedy
On 8/14/2011 8:56 PM, John S James wrote: Thanks, your reply helped. The problem seems to be the autoconfig -- I was using version 2.59 instead of 2.68. However, the host will not let users install 2.68. So I'm sending them feedback, suggesting a number of reasons for supporting 3.2 for their se

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread rantingrick
On Aug 14, 7:56 pm, Steven D'Aprano wrote: > Chris Angelico wrote: > > I think you need to start a blog, Rick. > > You'd be easier to ignore. > > And yet, here you are, engaging him in conversation and feeding him the > attention he craves :( Yes, Steven loves rule # 2. Second only to the strawme

Re: allow line break at operators

2011-08-14 Thread Chris Rebert
On Sun, Aug 14, 2011 at 6:54 PM, Steven D'Aprano wrote: > Seebs wrote: >> Interesting!  I tend to really like the ability to chain methods, >> depending >> on context.  I find the side-effect/expression mix pretty normal, so I'm >> used to it. > > As a rule, chaining method calls risks violating

Re: Commands for changing ownership of a file

2011-08-14 Thread Michael Poeltl
in python-3.2.1 I'm using os.system() again, from time to time maybe that's the one you were looking for? >>> os.system('chown user:group /tmp/f') 0 >>> os.system('ls -l /tmp/f') -rw-r--r-- 1 user group 0 Aug 15 03:52 /tmp/f and besides os.chown() (where you ned the uid and gid), you could also u

Re: allow line break at operators

2011-08-14 Thread Steven D'Aprano
Seebs wrote: > On 2011-08-14, Steven D'Aprano > wrote: >> The way I see it, if something operates by side-effect, then it has no >> business being treated as an expression. Which I later withdrew. > Interesting! I tend to really like the ability to chain methods, > depending > on context. I

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread rantingrick
On Aug 14, 5:01 pm, Dave Angel wrote: > Interesting that when you complain about other's grammatical typos, > you're so careless with your own. > > know -> now > i -> I > accustom -> accustomed > the this -> this > > I'm inclined to ignore typos in emails except in the case where the > intent is

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Steven D'Aprano
Chris Angelico wrote: > I think you need to start a blog, Rick. > > You'd be easier to ignore. And yet, here you are, engaging him in conversation and feeding him the attention he craves :( -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: same code to login,one is ok,another is not

2011-08-14 Thread Steven D'Aprano
守株待兔 wrote: > 1.http://www.renren.com/Login.do > it is ok,my code: [...] > 2.https://passport.baidu.com/?login > can't login,my code: [...] Do you have a question, or are you just sharing the bad news? Websites may choose to respond to login attempts differently. Some may require cookies, some m

Re: Problem installing 3.2.1 on a Linux server

2011-08-14 Thread John S James
Thanks, your reply helped. The problem seems to be the autoconfig -- I was using version 2.59 instead of 2.68. However, the host will not let users install 2.68. So I'm sending them feedback, suggesting a number of reasons for supporting 3.2 for their server accounts, including: * Popularity of P

Re: pythonw.exe

2011-08-14 Thread Terry Reedy
On 8/14/2011 10:30 AM, Nobody wrote: The main use for pythonw.exe is if you write a GUI program in Python (using e.g. TkInter, wxPython, etc) and you want it to be able to run it from an icon (desktop, start menu) without it opening a console window (running a console executable from an icon wil

same code to login,one is ok,another is not

2011-08-14 Thread 守株待兔
1.http://www.renren.com/Login.do it is ok,my code: import cookielib, urllib2, urllib cj = cookielib.CookieJar() opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj)) exheaders = [("User-Agent","Mozilla/4.0 (compatible; MSIE 7.1; Windows NT 5.1; SV1)"),] opener.addheaders=exheaders ur

Re: Relative import from script with same name as package

2011-08-14 Thread Oktay Şafak
14.08.2011 21:48, OKB (not okblacke) yazmış: =?UTF-8?B?T2t0YXkgxZ5hZmFr?= wrote: It appears that Python is reading "import thetest" as importing thetest.py (the same file that is currently being run). When it tries to run that file a second time, the relative import fails

Re: Data issues with Django and Apache

2011-08-14 Thread John Gordon
In <09dcb0e2-a8ae-4dfd-9e27-94b32188e...@glegroupsg2000goo.googlegroups.com> Daniel Roseman writes: > Like I say, though, it would really help if you showed the relevant code. I know. But trimming the code down to where it would be fit for posting is a moderately big job and I'm somewhat press

Re: Commands for changing ownership of a file

2011-08-14 Thread Chris Rebert
On Sun, Aug 14, 2011 at 3:56 PM, Jason Hsu wrote: > I have a script that I execute as root, but I need to change the > ownership of the files created in the script to that of my username. > In GNU Bash, the command is something like "chown myusername:users". > What's the equivalent Python command?

Commands for changing ownership of a file

2011-08-14 Thread Jason Hsu
I have a script that I execute as root, but I need to change the ownership of the files created in the script to that of my username. In GNU Bash, the command is something like "chown myusername:users". What's the equivalent Python command? I know that there is a command that uses numbers for the

Re: allow line break at operators

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 11:46 PM, Roy Smith wrote: > In article , >  Dave Angel wrote: > >> The thing that confuses people is that not only is the part up to and >> through the domain name is case-insensitive, but that simple pages on >> Windows become case-insensitive for the remainder simply be

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 11:01 PM, Dave Angel wrote: > I'm inclined to ignore typos in emails except in the case where the intent > is to abuse others. > +1 QOTW. It is, however, a well-known tradition that spelling/grammar flames should contain one spelling/grammer error. Oh, I just did it myse

Re: allow line break at operators

2011-08-14 Thread Roy Smith
In article , Dave Angel wrote: > > URLs are most certainly not case insensitive. Parts of them may be > > (i.e. the scheme and host parts), but not the stuff after the hostname. > > > The thing that confuses people is that not only is the part up to and > through the domain name is case-insens

Re: pythonw.exe

2011-08-14 Thread Seebs
On 2011-08-14, Chris Angelico wrote: > Just to confuse things even further, it's not unlikely that a Mac or > Linux or Windows computer will have DOSBox installed. Is *that* DOS? > Technically no, but practically yes. Depending on how you define "unlikely", I'd guess it is. Assume that "unlikely

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Dave Angel
On 01/-10/-28163 02:59 PM, rantingrick wrote: On Aug 14, 12:57 am, rantingrick wrote: 9. Never use the word "previously" or the phrase "in the past"; just dumb it down with "used to". I had forgot to mention one other usage of "used to": WRONG: "I used to not like indention but know i am ver

Re: Re: allow line break at operators

2011-08-14 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Roy Smith wrote: In article<4e47db26$0$30002$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: Er, most URLs are case insensitive, at least the most common ones, including HTTP and HTTPS. So I don't quite see why you think this was a Whoops. URLs are mos

Re: allow line break at operators

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 10:27 AM, Ben Finney wrote: > The house lights need to be controlled by someone who knows when the > movie's end signal should be sent. What is our ending signal if we're > watching it from media in our home, and no-one in the house knows when > the movie ends? > If you're

Re: pythonw.exe

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 9:20 PM, harrismh777 wrote: > ... yup, ... was helping my little sis with her iMac over the phone from > four states away and had her open a terminal for some  magic... and it took > her exactly 1.03 seconds to say, "Oh, the iMac has DOS installed in the > utilities folder!

Re: pythonw.exe

2011-08-14 Thread harrismh777
Thorsten Kampe wrote: You're misunderstanding what people mean by "DOS prompt". They don't mean "this is the DOS command shell", they mean "this is DOS". ... yup, ... was helping my little sis with her iMac over the phone from four states away and had her open a terminal for some magic... and

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread harrismh777
Chris Angelico wrote: I lolled about this one, e.g. I laughed out loud. But where are the tulips and windmills > for extra credit? > > Greetings from a Dutchman! Is partial credit available for part-Dutch people, e.g. those with at least two grandparents from Holland? ... do we get extra c

Re: pythonw.exe

2011-08-14 Thread Thorsten Kampe
* Chris Angelico (Sun, 14 Aug 2011 16:52:05 +0100) > On Sun, Aug 14, 2011 at 3:30 PM, Nobody wrote: > > BTW, unless you're using Windows 95/98/ME, you don't have a "DOS > > Prompt". The command prompt in Windows NT/2000/XP/Vista/7 isn't DOS. > > I don't see this as any sloppier than referring to

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Tim Chase
On 08/14/2011 12:38 PM, Chris Angelico wrote: On Sun, Aug 14, 2011 at 6:21 PM, rantingrick wrote: WRONG: "We are supposed to write clean code but i am not used to that" RIGHT: "We are required to write clean code however i am not accustom to that way of thinking. Since when are we required t

Re: allow line break at operators

2011-08-14 Thread Seebs
On 2011-08-14, Teemu Likonen wrote: > I understand that Python philosophy does not value freedom of expression > that much. It values a general Pythonic rule which must obeyed and is > called "readability". Other languages give too little or too much > freedom. :-) There is an interesting tradeof

Re: allow line break at operators

2011-08-14 Thread Seebs
On 2011-08-14, Steven D'Aprano wrote: > Seebs wrote: >> "Destroy data" is a sort of fungible concept. I was reading a comic book >> recently and it contained a URL for a poem which had been parodied. The >> URL had been hand-lettered... in block capitals. The actual URL had >> exactly one upper

Re: allow line break at operators

2011-08-14 Thread Seebs
On 2011-08-14, Chris Angelico wrote: > Yes. Not everything's an expression; a block of code is not an > expression that returns a code object, and variable assignment is a > statement. Some day, I'd like to play around with a language where > everything's an expression and yet it doesn't look like

Re: Relative import from script with same name as package

2011-08-14 Thread OKB (not okblacke)
=?UTF-8?B?T2t0YXkgxZ5hZmFr?= wrote: >> It appears that Python is reading "import thetest" as >> importing >> thetest.py (the same file that is currently being run). When it >> tries to run that file a second time, the relative import fails. >> > > No, there is no such thing

Re: Data issues with Django and Apache

2011-08-14 Thread Daniel Roseman
On Sunday, 14 August 2011 03:20:30 UTC+1, John Gordon wrote: > I'm devleoping a website using the Django framework along with Apache, > and I'm seeing some odd data issues. > > During the course of navigating through the website content, a user > will cause the creation of some data records with

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 6:21 PM, rantingrick wrote: > > WRONG: "We are supposed to write clean code but i am not used to that" > RIGHT: "We are required to write clean code however i am not accustom > to that way of thinking. > Since when are we required to write clean code? If I write unclean co

Re: allow line break at operators

2011-08-14 Thread Steven D'Aprano
Chris Angelico wrote: > On Sun, Aug 14, 2011 at 3:26 PM, Steven D'Aprano > wrote: >> Yes, print as a statement was a mistake. But assignment as a statement, >> not so much. Assignment as an expression in languages that have it tends >> to be associated with frequent errors. >> >> The way I see it

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread rantingrick
On Aug 14, 12:57 am, rantingrick wrote: > 9. Never use the word "previously" or the phrase "in the past"; just > dumb it down with "used to". I had forgot to mention one other usage of "used to": WRONG: "I used to not like indention but know i am very used to it" RIGHT: "Previously i lamented f

Re: os.system() on Windows in Tkinter app spawns console window

2011-08-14 Thread Kevin Walzer
On 8/13/11 1:15 AM, Nobody wrote: On Fri, 12 Aug 2011 22:49:32 -0400, Kevin Walzer wrote: I'm developing a Tkinter app for a Windows customer, and the app bundles several command-line tools (ported from Unix). I call out to these console tools from the Tkinter app via os.system(). However, in t

Re: monitor mouse coordinates in real-time

2011-08-14 Thread Jabba Laci
I'm trying something similar. In the thread there is a variable which is modified by the parent. However, the thread doesn't quit the infinite loop. If someone could provide a patch, that'd be really useful. Thanks, Laszlo On Sun, Aug 14, 2011 at 13:00, TheSaint wrote: > Jabba Laci wrote: > >>

Python 3.2.2rc1

2011-08-14 Thread Martin v. Löwis
On behalf of the Python development team, I'm happy to announce the first release candidate of the Python 3.2.2 maintenance release (3.2.2rc1). Python 3.2.2 fixes `a regression `_ in the ``urllib.request`` module that prevented opening many HTTP resources correctly wi

Re: pythonw.exe

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 3:30 PM, Nobody wrote: > BTW, unless you're using Windows 95/98/ME, you don't have a > "DOS Prompt". The command prompt in Windows NT/2000/XP/Vista/7 isn't DOS. > I don't see this as any sloppier than referring to "opening a prompt" when you mean "opening up a windowed co

Re: allow line break at operators

2011-08-14 Thread Roy Smith
In article <4e47db26$0$30002$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > Er, most URLs are case insensitive, at least the most common ones, including > HTTP and HTTPS. So I don't quite see why you think this was a Whoops. URLs are most certainly not case insensitive. Parts of

Re: allow line break at operators

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 3:26 PM, Steven D'Aprano wrote: > Yes, print as a statement was a mistake. But assignment as a statement, not > so much. Assignment as an expression in languages that have it tends to be > associated with frequent errors. > > The way I see it, if something operates by side-

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Kevin Walzer
I'd like to post a detailed response, e.g. a point-by-point engagement with Rantingrick's list, but as I lack time, this will have to suffice: http://xkcd.com/386/ There! Can I get my community pin now? :-) -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- http://mail.python.org/mailm

Re: login with urllib2

2011-08-14 Thread Chris Rebert
2011/8/14 守株待兔 <1248283...@qq.com>: > please to see my code: > import urllib > import urllib2 > > url = 'http://hi.baidu.com/' > values = {'username' : '**','password' : '**' } > > data = urllib.urlencode(values) > req = urllib2.Request(url,data) > response = urllib2.urlopen(req) > the_page

Re: login with urllib2

2011-08-14 Thread Rafael Durán Castañeda
I'm not sure but you probably need using HTTPS handler, but without exact error code/message... On 14/08/11 16:50, 守株待兔 wrote: please to see my code: import urllib import urllib2 url = 'http://hi.baidu.com/' values = {'username' : '**','password' : '**' } data = urllib.urlencode(value

login with urllib2

2011-08-14 Thread 守株待兔
please to see my code: import urllib import urllib2 url = 'http://hi.baidu.com/' values = {'username' : '**','password' : '**' } data = urllib.urlencode(values) req = urllib2.Request(url,data) response = urllib2.urlopen(req) the_page = response.read() i can't to login ,why?username and

Re: pythonw.exe

2011-08-14 Thread Nobody
On Sun, 14 Aug 2011 06:23:45 -0700, Ronald Reynolds wrote: > in my python directory there is a python.exe file which I understand > completely but there is also a pythonw.exe DOS seems to honor the pythonw > command (No error message) but nothing happens. What is pythonw.exe? Windows distinguishe

Re: allow line break at operators

2011-08-14 Thread Steven D'Aprano
Seebs wrote: > "Destroy data" is a sort of fungible concept. I was reading a comic book > recently and it contained a URL for a poem which had been parodied. The > URL had been hand-lettered... in block capitals. The actual URL had > exactly one upper case letter in it. > > Whoops. Er, most U

Re: pythonw.exe

2011-08-14 Thread Irmen de Jong
On 14-8-2011 15:23, Ronald Reynolds wrote: > Dear Python Friends: > in my python directory there is a python.exe file which I understand > completely but there is also a pythonw.exe DOS seems to honor the pythonw > command (No error message) but nothing happens. What is pythonw.exe? > Also is ther

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 2:21 PM, Irmen de Jong wrote: > On 14-8-2011 7:57, rantingrick wrote: >> 8. Use "e.g." as many times as you can! (e.g. e.g.) If you use "e.g." >> more than ten times in a single post, you will get an invite to >> Guido's next birthday party; where you'll be forced to do sho

pythonw.exe

2011-08-14 Thread Ronald Reynolds
Dear Python Friends: in my python directory there is a python.exe file which I understand completely but there is also a pythonw.exe DOS seems to honor the pythonw command (No error message) but nothing happens. What is pythonw.exe? Also is there a way to invoke idle from the DOS prompt? I tried

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Irmen de Jong
On 14-8-2011 7:57, rantingrick wrote: > 8. Use "e.g." as many times as you can! (e.g. e.g.) If you use "e.g." > more than ten times in a single post, you will get an invite to > Guido's next birthday party; where you'll be forced to do shots whist > walking the balcony railing wearing wooden shoes!

Re: question

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 1:36 PM, Abhishek Jain wrote: > ## this is to find the 1000th prime number > > number = 3 > while number < 1: >     ###initialize stuff >     counter = 1 I think your main problem here, and you have several, is with this variable 'counter'. Have a really good think abo

Re: question

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 1:36 PM, Abhishek Jain wrote: > Please respond fast Just to let you know, this isn't usually the best way to ask for help. You're mostly there with the correct way to ask questions; you've posted your code, said what it ought to do, and said what it's actually doing; but I

question

2011-08-14 Thread Abhishek Jain
Hello all, I wrote a python program to find the 1000th prime no. The program isn't working as it should be. Please tell what the error is: ## this is to find the 1000th prime number number = 3 while number < 1: ###initialize stuff counter = 1 ###initializing list to check primari

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 11:58 AM, Alister Ware wrote: > That would mark the first constructive action from rantingnick ever > > Surely that would mark the end of the sentient universe? Only if he actually did it. Many's the time people have called for him to write a PEP, or (better still) to writ

Re: monitor mouse coordinates in real-time

2011-08-14 Thread TheSaint
Jabba Laci wrote: > Could you please help me out how to close the application correctly? > I think you should put a flag into the code, which the parent might modify it, so it will tell the child process to quit. Then the flag should need to be read periodically to know whether is time to quit.

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Alister Ware
On Sun, 14 Aug 2011 02:54:44 -0500, Andrew Berg wrote: > On 2011.08.14 12:57 AM, rantingrick wrote: >> Follow these simply rules to become an accepted member of the Python >> community. > Sounds good. You should consider submitting this as a PEP. That would mark the first constructive action from

Re: Relative import from script with same name as package

2011-08-14 Thread Oktay Şafak
14.08.2011 00:39, OKB (not okblacke) yazmış: I'm using Python 2.6.5. I have a directory structure like this: thetest/ __init__.py thetest.py theother.py __init__.py is an empty file. theother.py contains a function foo(). The package is accessible from sys.path

Re: indentation

2011-08-14 Thread TheSaint
Amit Jaluf wrote: > is it necessary indentation in python ? > Try without and report it -- http://mail.python.org/mailman/listinfo/python-list

Re: allow line break at operators

2011-08-14 Thread Ethan Furman
Ben Finney wrote: Chris Angelico writes: On Sun, Aug 14, 2011 at 8:10 AM, Steven D'Aprano wrote: Do you get worried by books if the last page doesn't include the phrase "The End"? These days, many movies include an extra clip following the credits. When the clip finishes, and the screen go

Re: allow line break at operators

2011-08-14 Thread Teemu Likonen
* 2011-08-14T09:34:26+01:00 * Chris Angelico wrote: > Some day, I'd like to play around with a language where everything's > an expression and yet it doesn't look like LISP - just for the fun of > it. It probably won't be any more useful for real world coding, but > it'd be fun to tinker with. Of

Re: allow line break at operators

2011-08-14 Thread Ben Finney
Chris Angelico writes: > On Sun, Aug 14, 2011 at 8:10 AM, Steven D'Aprano > wrote: > > Do you get worried by books if the last page doesn't include the > > phrase "The End"? These days, many movies include an extra clip > > following the credits. When the clip finishes, and the screen goes > >

Re: allow line break at operators

2011-08-14 Thread Ben Finney
Seebs writes: > I was utterly dumbfounded when I found out that "print" in Python is a > kind of statement, not a function or something comparable. (This seems > to have changed recentlyish.) It has long been recognised as a wart, but it required waiting for an opportunity for breaking backward

Re: allow line break at operators

2011-08-14 Thread Chris Rebert
On Sun, Aug 14, 2011 at 1:34 AM, Chris Angelico wrote: > Yes. Not everything's an expression; a block of code is not an > expression that returns a code object, and variable assignment is a > statement. Some day, I'd like to play around with a language where > everything's an expression and yet i

monitor mouse coordinates in real-time

2011-08-14 Thread Jabba Laci
Hi, I wrote a simple GUI with pygtk to monitor mouse coordinates in real-time. It works but when I close the application, the thread doesn't stop and I can't figure out how to terminate it. Here is the current source: https://gist.github.com/1144708 (83 lines). Could you please help me out how to

Re: How do I convert String into Date object

2011-08-14 Thread Sibylle Koczian
Am 13.08.2011 21:26, schrieb MrPink: I have file of records delimited by spaces. I need to import the date string and convert them into date datatypes. '07/27/2011' 'Event 1 Description' '07/28/2011' 'Event 2 Description' '07/29/2011' 'Event 3 Description' I just discovered that my oDate is not

Re: allow line break at operators

2011-08-14 Thread Chris Angelico
On Sun, Aug 14, 2011 at 8:10 AM, Steven D'Aprano wrote: > Do you get worried by books if the last page doesn't include the phrase "The > End"? These days, many movies include an extra clip following the credits. > When the clip finishes, and the screen goes dark, how long do you sit > waiting befo

Re: allow line break at operators

2011-08-14 Thread Seebs
On 2011-08-14, Steven D'Aprano wrote: > Seebs wrote: >> I guess... The parser is explicitly pushing those tokens, but I can't >> *SEE* those tokens. If I am looking at the end of a really long >> thing, and I see: >> >> blah >> blah >> >> I only know what's happe

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Seebs
On 2011-08-14, rantingrick wrote: > Follow these simply rules to become an accepted member of the Python > community. > 1. Bash rantingrick and Xah Lee every chance you get. ... If I'd known you were in the same category as him, I wouldn't have needed to wait until now to know to plonk you. -s

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Andrew Berg
On 2011.08.14 12:57 AM, rantingrick wrote: > Follow these simply rules to become an accepted member of the Python > community. Sounds good. You should consider submitting this as a PEP. -- CPython 3.2.1 | Windows NT 6.1.7601.17592 | Thunderbird 5.0 PGP/GPG Public Key ID: 0xF88E034060A78FCB -- ht

Re: allow line break at operators

2011-08-14 Thread Steven D'Aprano
Seebs wrote: > I guess... The parser is explicitly pushing those tokens, but I can't > *SEE* those tokens. If I am looking at the end of a really long > thing, and I see: > > blah > blah > > I only know what's happening if I have absolute confidence that the > in