Earn $2 Per Click For Free Join Make Money

2011-01-29 Thread Ravi chandran
www.workfrominter.com -- http://mail.python.org/mailman/listinfo/python-list

multiple values for keyword argument

2011-01-29 Thread Tobias Blass
Hi all I'm just learning python and use it to write a GUI (with Tkinter) for a C program I already wrote. When trying to execute the program below I get the following error message. Traceback (most recent call last): File "./abirechner.py", line 64, in win =MainWin() File "./abirechner.

Re: Use the Source Luke

2011-01-29 Thread TP
On Fri, Jan 28, 2011 at 10:32 AM, Raymond Hettinger wrote: > I hoping a new trend will start with dev's putting direct > source code links in their documentation: > >  http://rhettinger.wordpress.com/2011/01/28/open-your-source-more/ > > I'm looking for more examples of projects that routinely > l

Re: multiple values for keyword argument

2011-01-29 Thread Francesco Bochicchio
On 29 Gen, 12:10, Tobias Blass wrote: > Hi all > I'm just learning python and use it to write a GUI (with Tkinter) for a C > program I already wrote. When trying to execute the program below I get the > following error message. > > Traceback (most recent call last): >   File "./abirechner.py", lin

Re: multiple values for keyword argument

2011-01-29 Thread Tobias Blass
On Sat, 29 Jan 2011, Francesco Bochicchio wrote: >On 29 Gen, 12:10, Tobias Blass wrote: >> Hi all >> I'm just learning python and use it to write a GUI (with Tkinter) for a C >> program I already wrote. When trying to execute the program below I get the >> following error message. >> >> Traceba

EARN 1000 DOLLARS PER DAY - WITHOUT INVESTMENT

2011-01-29 Thread success all
http://USAforextradingonline.blogspot.com http://USAforextradingonline.blogspot.com http://USAforextradingonline.blogspot.com http://USAforextradingonline.blogspot.com http://USAforextradingonline.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple values for keyword argument

2011-01-29 Thread Frank Dierkes
On Sat, 29 Jan 2011 14:18:30 +0100, Tobias Blass wrote: > On Sat, 29 Jan 2011, Francesco Bochicchio wrote: > >>> class MainWin(Frame): >>>         def create_edit(row,self): >>> def create_edit(self, row): >> >> >> > Ok it works now. So the problem was that python requires 'self' to be

Re: multiple values for keyword argument

2011-01-29 Thread Peter Otten
Tobias Blass wrote: > > > On Sat, 29 Jan 2011, Francesco Bochicchio wrote: > >>On 29 Gen, 12:10, Tobias Blass wrote: >>> Hi all >>> I'm just learning python and use it to write a GUI (with Tkinter) for a >>> C program I already wrote. When trying to execute the program below I >>> get the foll

Re: multiple values for keyword argument

2011-01-29 Thread Roy Smith
In article <8qijsgfgu...@mid.dfncis.de>, Frank Dierkes wrote: > Naming the first parameter self is only a convention. It could be any > other name, too. But it shouldn't. The use of "self" is so universal that using anything else will just make your code more difficult for other people to u

Re: multiple values for keyword argument

2011-01-29 Thread Ethan Furman
Roy Smith wrote: In article <8qijsgfgu...@mid.dfncis.de>, Frank Dierkes wrote: Naming the first parameter self is only a convention. It could be any other name, too. But it shouldn't. The use of "self" is so universal that using anything else will just make your code more difficult for ot

Re: multiple values for keyword argument

2011-01-29 Thread Tobias Blass
On Sat, 29 Jan 2011, Peter Otten wrote: >Tobias Blass wrote: > >> >> >> On Sat, 29 Jan 2011, Francesco Bochicchio wrote: >> >>>On 29 Gen, 12:10, Tobias Blass wrote: Hi all I'm just learning python and use it to write a GUI (with Tkinter) for a C program I already wrote. When t

Re: Use the Source Luke

2011-01-29 Thread Miki
Clojure a "source" that shows the source of a function (doh!). It's probably easy to implement in Python with the inspect module. Sadly this won't work for built-ins. Clojure's irc clojurebot will answer "source " with a link to github that points to the first line of definition. -- http://mail

Distress sale/JBR/1 Bed /AED790sqft / 15th floor/050-8320722

2011-01-29 Thread PETER WONG F H (+971 50 8320722)
Distress sale/JBR/1 Bed /AED790sqft / 15th floor/050-8320722 JBR Lower Price AED790per/sqft 15th floor 1,465.90sqft(AED1,160,000.00) +Transfer Fee 2 % + Broker Fee 2% JBR Apartments Located near to Dubai Marina and lying in a beach front location comprises the area of JBR or Jumeirah Beach Reside

[ANN] python-ghostscript 0.4

2011-01-29 Thread Hartmut Goebel
Announcing: python-ghostscript 0.4 A Python-Interface to the Ghostscript C-API using ctypes :Copyright: GNU Public License v3 (GPLv3) :Author: Hartmut Goebel :Homepage: http://bitbucket.org/htgoebel/python-ghostscript :Download:

Re: how to read the last line of a huge file???

2011-01-29 Thread Aahz
In article , John O'Hagan wrote: > >file.seek takes an optional 'whence' argument which is 2 for the end, so you >can just work back from there till you hit the first newline that has anything >after it: > > >def lastline(filename): >offset = 0 >line = '' >with open(filename) as f: >

Re: multiple values for keyword argument

2011-01-29 Thread patty
> Roy Smith wrote: >> In article <8qijsgfgu...@mid.dfncis.de>, >> Frank Dierkes wrote: >> >>> Naming the first parameter self is only a convention. It could be any >>> other name, too. >> >> But it shouldn't. The use of "self" is so universal that using anything >> else will just make your code

Re: how to read the last line of a huge file???

2011-01-29 Thread Tim Chase
On 01/26/2011 04:59 AM, Xavier Heruacles wrote: I have do some log processing which is usually huge. The length of each line is variable. How can I get the last line?? Don't tell me to use readlines or something like linecache... I wrote a modestly tested version (including missing terminal-EO

Re: Use the Source Luke

2011-01-29 Thread Raymond Hettinger
On Jan 29, 3:22 am, TP wrote: > On Fri, Jan 28, 2011 at 10:32 AM, Raymond Hettinger wrote: > > I hoping a new trend will start with dev's putting direct > > source code links in their documentation: > > >  http://rhettinger.wordpress.com/2011/01/28/open-your-source-more/ > > > I'm looking for mor

Looking for Remote Python Project

2011-01-29 Thread joy99
Dear Room, I am a Python Programmer from India(New Delhi Region), and I worked for quite a long time in Bangalore. I have been working in Python for the last 4 years or so. I have successfully built around 15 projects in Python. I am looking for some remote Python Projects, which can be done from

Re: Use the Source Luke

2011-01-29 Thread Ben Finney
rusi writes: > On Jan 29, 4:10 am, Ben Finney wrote: > > I have a quibble with the framing: > > > > > The rest of the blame lies with installers. They all treat > > > human-readable scripts like they were binaries and tuck the code > > > away in a dark corner. > > Consider this example: > The em

Re: multiple values for keyword argument

2011-01-29 Thread Ben Finney
Tobias Blass writes: > Ok it works now. So the problem was that python requires 'self' to be > the first parameter? More accurately, the instance is passed as the first parameter, and Python doesn't care what you name it. (Your fellow programmers do care, though, so please stick to the ‘self’ co

Re: multiple values for keyword argument

2011-01-29 Thread Ben Finney
pa...@cruzio.com writes: > > I, myself, use the spanish word 'yo' instead (less keystrokes, I > > hate 'self', and it amuses me); if I'm working with my numerical > > experiments I'll use 'n' or 'x'... although, when posting sample > > code to c.l.py I do try to use 'self' to avoid possible confus

Re: Looking for Remote Python Project

2011-01-29 Thread Ben Finney
joy99 writes: > I am looking for some remote Python Projects, which can be done from > home. > > If any one knows of anything, I may be helpful enough. One of the best ways to begin contributing is to fix bugs and provide patches. For Python itself, see the Python bug tracker http://bugs.python.

Re: apscheduler error

2011-01-29 Thread Aahz
In article , =?utf-8?Q?Alice_Bevan=E2=80=93McGregor?= wrote: > >A package of mine, TurboMail, suffers from the same threading issue if >used improperly; you enqueue e-mail, it starts a thread, then you >immediately exit. TM tries to work around the issue, but in most cases >that workaround do

Re: apscheduler error

2011-01-29 Thread Ben Finney
a...@pythoncraft.com (Aahz) writes: > In article , > =?utf-8?Q?Alice_Bevan=E2=80=93McGregor?= wrote: > >A package of mine, TurboMail, suffers from the same threading issue > >if used improperly; you enqueue e-mail, it starts a thread, then you > >immediately exit. > > Why not write an exit handl

Re: multiple values for keyword argument

2011-01-29 Thread Steven D'Aprano
On Sat, 29 Jan 2011 09:03:28 -0500, Roy Smith wrote: > In article <8qijsgfgu...@mid.dfncis.de>, > Frank Dierkes wrote: > >> Naming the first parameter self is only a convention. It could be any >> other name, too. > > But it shouldn't. The use of "self" is so universal that using anything > e

Re: Use the Source Luke

2011-01-29 Thread rusi
On Jan 30, 2:22 am, Ben Finney wrote: > > The “problem”, which I don't consider to be a problem per se, is one of > OS-wide policy, not “installers”. The policy is a matter of tradeoffs > across the system, and isn't “tucking the code away in a dark corner”. Earlier mail: > If you want to blame

Re: Use the Source Luke

2011-01-29 Thread Steven D'Aprano
On Sat, 29 Jan 2011 19:59:33 -0800, rusi wrote: > On Jan 30, 2:22 am, Ben Finney wrote: >> >> The “problem”, which I don't consider to be a problem per se, is one of >> OS-wide policy, not “installers”. The policy is a matter of tradeoffs >> across the system, and isn't “tucking the code away in

[pygame-bug] Pygame.cdrom bug

2011-01-29 Thread rantingrick
Hello folks, Pygame --the best little 2d game engine in Pythoina-- is great for little 2d one off games and such (or so i've heard). I really don't do much 2d graphics but pygame has some other helpful modules so i downloded it about a year or so ago although i had not used it until today. I jus

Re: [pygame-bug] Pygame.cdrom bug

2011-01-29 Thread Benjamin Kaplan
On Sat, Jan 29, 2011 at 11:25 PM, rantingrick wrote: > > Hello folks, > > Pygame  --the best little 2d game engine in Pythoina-- is great for > little 2d one off games and such (or so i've heard). I really don't do > much 2d graphics but pygame has some other helpful modules so i > downloded it ab

Re: Use the Source Luke

2011-01-29 Thread rusi
On Jan 30, 9:21 am, Steven D'Aprano wrote: > > > I think this is a fairly accurate description of (one aspect of) the > > problem. > > If you dont see it as a problem how do you explain that google can > > search the World Wide Web better than we can search our individual hard > > disks? > > I fai

Re: Use the Source Luke

2011-01-29 Thread Raymond Hettinger
On Jan 28, 3:10 pm, Ben Finney wrote: > Raymond Hettinger writes: > > The rest of the blame lies with installers. They all treat > > human-readable scripts like they were binaries and tuck the code away > > in a dark corner. > > That’s hardly a “blame” of installers. The modules are placed in suc

Re: Python critique

2011-01-29 Thread rantingrick
On Dec 10 2010, 5:15 pm, Steven D'Aprano wrote: > n = 1 > [print(n) for n in (2,)] > print n Oh *thats* why we have print as a function! I always wanted to put print in a list cmp. :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python critique

2011-01-29 Thread rantingrick
On Dec 13 2010, 4:40 am, Jean-Michel Pichavant wrote: > It's more a demonstration that you can do it with python. > The reason is that Python developpers will not put themself in the > situation where they need to use a variable 'orange' line 32 and use the > same variable 'orange' line 33 to ref

Re: multiple values for keyword argument

2011-01-29 Thread Ethan Furman
pa...@cruzio.com wrote: I, myself, use the spanish word 'yo' instead (less keystrokes, I hate 'self', and it amuses me); if I'm working with my numerical experiments I'll use 'n' or 'x'... although, when posting sample code to c.l.py I do try to use 'self' to avoid possible confusion. :) I am

Re: how to read the last line of a huge file???

2011-01-29 Thread John O'Hagan
On Sat, 29 Jan 2011, Aahz wrote: > In article , > > John O'Hagan wrote: [...] > > > >def lastline(filename): > >offset = 0 > >line = '' > >with open(filename) as f: > >while True: > >offset -= 1 > >f.seek(offset, 2) > >nextline = f.next()

Re: Looking for Remote Python Project

2011-01-29 Thread joy99
On Jan 30, 2:49 am, Ben Finney wrote: > joy99 writes: > > I am looking for some remote Python Projects, which can be done from > > home. > > > If any one knows of anything, I may be helpful enough. > > One of the best ways to begin contributing is to fix bugs and provide > patches. For Python its