www.workfrominter.com
--
http://mail.python.org/mailman/listinfo/python-list
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.
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
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
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
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
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
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
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
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
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
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
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
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:
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:
>
> 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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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()
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
37 matches
Mail list logo