Re: Use the Source Luke

2011-01-31 Thread Stephen Hansen
On 1/31/11 10:38 PM, rantingrick wrote: > On Feb 1, 12:25 am, rusi wrote: >> In short (at the risk of belonging to the equivalence class of others >> whose names start with R) I would suggest a 4th point: Code cruft > Oh rusi, just come out of the closet already we accept you! :-) First tonight,

Re: Use the Source Luke

2011-01-31 Thread rantingrick
On Feb 1, 12:25 am, rusi wrote: > In short (at the risk of belonging to the equivalence class of others > whose names start with R) I would suggest a 4th point: Code cruft Oh rusi, just come out of the closet already we accept you! :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Use the Source Luke

2011-01-31 Thread rusi
The following, meant for this thread, went to another my mistake :-) -- On Feb 1, 1:35 am, Raymond Hettinger wrote: > However, even the parts of the standard library written in pure Python > don't seem to be getting read anymore, so I'm still inclined to > attribute the is

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rusi
On Feb 1, 11:14 am, rusi wrote: > On Feb 1, 1:35 am, Raymond Hettinger wrote: snipped O O wrong thread... sorry! -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rusi
On Feb 1, 1:35 am, Raymond Hettinger wrote: > However, even the parts of the standard library written in pure Python > don't seem to be getting read anymore, so I'm still inclined to > attribute the issue to 1) inconvenient placement of source code, > 2) a largish code base, and 3) possibly a cult

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Stephen Hansen
On 1/31/11 9:26 PM, rantingrick wrote: > Oh, and Trish, if you are out there and you would like a "personal" > introduction to Python programming i would be very happy to give you > some very, very, private lessons using my python... > . > . > . > . > . > interpretor. *wink* > > ;-) You are d

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rantingrick
On Jan 31, 9:24 pm, Giampaolo Rodolà wrote: > Actually I don't even understand how can IDLE source code quality have > anything to do with python success or future adoption, as you implied > in your statements. Well thats because you are not looking at this from the correct perspective. Every pi

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rantingrick
On Jan 31, 4:38 pm, Robert wrote: > I think it would be interesting as well. H, I am about to do the > O'Reilly series that Steve Holden did for Python. Did you see the video Steve Holden did with Trish Gray? Just for fun fast forward to 0:03:30. Just as Trish comments about Python diversity

Re: how to modify axis tick values exponential value location in matplotlib

2011-01-31 Thread Rajendra prasad Gottipati
not able to change the location of exponent/offset label in the axis, in case of multiple y axis exponent/offset label of one axis is overwriting other axis value, how to control the location of this lable(like 1e8).Can anybody help me solving this issue. On Sun, Jan 30, 2011 at 9:55 AM, Rajendra

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rantingrick
On Jan 31, 4:17 pm, Kevin Walzer wrote: > Rick, > > I've spent a fair amount of time in the IDLE source tree, putting > together patches for various Mac-specific bugs and submitting them to > the Python tracker, and I agree the code is crufty and disorganized. It > is certainly not an example of c

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

2011-01-31 Thread Kushal Kumaran
On Tue, Feb 1, 2011 at 9:12 AM, Alan Meyer wrote: > On 01/26/2011 04:22 PM, MRAB wrote: >> >> On 26/01/2011 10:59, 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 >>> re

Converting getCSS Count Code from java to python

2011-01-31 Thread SMERSH009
Hi, I'd love some help converting this code to the python equivalent: private int getCSSCount(String aCSSLocator){ String jsScript = "var cssMatches = eval_css(\"%s\", window.document);cssMatches.length;"; return Integer.parseInt(selenium.getEval(String.format(jsScript, aCSSLocator))); }

Re: Looking for Remote Python Project

2011-01-31 Thread Alan Meyer
On 01/29/2011 04:19 PM, joy99 wrote: 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 P

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

2011-01-31 Thread Alan Meyer
On 01/26/2011 04:22 PM, MRAB wrote: On 26/01/2011 10:59, 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... Seek to somewhere near the end

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Giampaolo Rodolà
2011/1/31 rantingrick : > In an ideal world it should be the first place you look when wanting > to learn how to build medium sized GUI projects with the built-in > Tkinter module. I wouldn't do that, and thankfully in the *real* world what is considered more important usually gets more attention.

Re: Running python scripts from the command line.

2011-01-31 Thread Nanderson
On Jan 31, 6:54 pm, Benjamin Kaplan wrote: > On Mon, Jan 31, 2011 at 9:43 PM, Nanderson > > > > > > > > > > wrote: > > I've recently started to program. Python is my first language, so I'm > > a complete beginner. I've been trying to call python scripts from the > > command line by entering this

Re: Running python scripts from the command line.

2011-01-31 Thread Benjamin Kaplan
On Mon, Jan 31, 2011 at 9:43 PM, Nanderson wrote: > I've recently started to program. Python is my first language, so I'm > a complete beginner. I've been trying to call python scripts from the > command line by entering this command into it: > python test.py > > But it gives me this error mes

Running python scripts from the command line.

2011-01-31 Thread Nanderson
I've recently started to program. Python is my first language, so I'm a complete beginner. I've been trying to call python scripts from the command line by entering this command into it: >>>python test.py But it gives me this error message: >>>python test.py File "", line 1 python test.py

Re: multiple values for keyword argument

2011-01-31 Thread Westley Martínez
In Python, self is simply the standard name used. You can use any name. Consider this: >>> class Spam: ... def __init__(self): ... print(self) ... self = 'eggs' ... print(self) ... >>> spam = Spam() <__main__.Spam object at 0xb7224b4c> eggs When we have an

Re: multiple values for keyword argument

2011-01-31 Thread Patty
>- Original Message - >From: Westley Martínez >To: python-list@python.org >Sent: Monday, January 31, 2011 3:27 PM >Subject: Re: multiple values for keyword argument >http://en.wikipedia.org/wiki/Self_(computer_science) Hello Westley: Thank you for the reference. I sa

Re: simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-01-31 Thread Jean-Paul Calderone
On Jan 31, 5:28 pm, Gelonida wrote: > Hi, > > Normally I use following code snippet to quickly test a wsgi module > without a web server. > > import wsgi_lib.server > wsgi_lib.server.run(application, port=port) > > However Now I'd like to test a small wsgi module on a rather old host > ( Python 2.

Re: Determine from a HTTP request if the user is on a Smart Phone, IE, Firefox

2011-01-31 Thread Ben Finney
Sascha writes: > I am returning specialised website html according to what platform the > user is on. Is there a way to determine if the user is on a Smart > Phone or on IE or on Firefox? The HTTP standard defines the “User-Agent” field, to be sent as part of the request header http://en.wikiped

Re: Determine from a HTTP request if the user is on a Smart Phone, IE, Firefox

2011-01-31 Thread Vivek Shrivastava
> > its userAgent or UserAgent String. Though its easy to send request with > any( fake) userAgent but its industry standard to get browser information > from userAgent only. > > http://www.useragentstring.com/pages/useragentstring.php > > > > On Mon, Jan 31, 2011 at 2:46 PM, James Mills > wrote:

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Stephen Hansen
On 1/31/11 10:12 AM, rantingrick wrote: > -- rr: disappointed and annoyed! tl;dr You did this one before, I swear. You're running out of material. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog: http://meh.ixokai.io/ signature.asc Desc

Re: Determine from a HTTP request if the user is on a Smart Phone, IE, Firefox

2011-01-31 Thread James Mills
On Tue, Feb 1, 2011 at 8:16 AM, Sascha wrote: > I am returning specialised website html according to what platform the > user is on. Is there a way to determine if the user is on a Smart > Phone or on IE or on Firefox? I have an iPad and just wrote a simple demo app to test this: http://prologic

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Westley Martínez
alias idle='vim' : D On Mon, 2011-01-31 at 09:39 -0800, rantingrick wrote: > IDLE: A cornicopia of mediocrity and obfuscation. > -- by Rick Johnson > > > IDLE --which is the Python Integrated Development and Learning > Environment-- was once the apple of Guido's eye but has since > degenerated

Re: Determine from a HTTP request if the user is on a Smart Phone, IE, Firefox

2011-01-31 Thread Chris Rebert
On Mon, Jan 31, 2011 at 2:16 PM, Sascha wrote: > Hello > > I am returning specialised website html according to what platform the > user is on. Is there a way to determine if the user is on a Smart > Phone or on IE or on Firefox? Yes, the "User-Agent" HTTP header: http://en.wikipedia.org/wiki/Use

Re: multiple values for keyword argument

2011-01-31 Thread Westley Martínez
http://en.wikipedia.org/wiki/Self_(computer_science) On Mon, 2011-01-31 at 13:20 -0800, Patty wrote: > - Original Message - > From: "Jean-Michel Pichavant" > To: > Cc: > Sent: Monday, January 31, 2011 11:35 AM > Subject: Re: multiple values for keyword argument > > > > pa...@cruzio.

Re: Use the Source Luke

2011-01-31 Thread Steven D'Aprano
On Mon, 31 Jan 2011 12:35:12 -0800, Raymond Hettinger wrote: > However, even the parts of the standard library written in pure Python > don't seem to be getting read anymore, so I'm still inclined to > attribute the issue to 1) inconvenient placement of source code, 2) a > largish code base, and 3

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Robert
On 2011-01-31 17:17:06 -0500, Kevin Walzer said: It certainly would be interesting to see a fresh approach to IDLE, and I think the scope of such a project would be much easier for a single person to manage than would replacing Tkinter in the stdlib with another GUI toolkit, such as wxPython, o

simplest way to create simple standalone wsgi server without import wsgi_lib.server

2011-01-31 Thread Gelonida
Hi, Normally I use following code snippet to quickly test a wsgi module without a web server. import wsgi_lib.server wsgi_lib.server.run(application, port=port) However Now I'd like to test a small wsgi module on a rather old host ( Python 2.4.3 ) where I don't have means to update python. Is

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Kevin Walzer
Rick, I've spent a fair amount of time in the IDLE source tree, putting together patches for various Mac-specific bugs and submitting them to the Python tracker, and I agree the code is crufty and disorganized. It is certainly not an example of current best practices in Tkinter development. T

Determine from a HTTP request if the user is on a Smart Phone, IE, Firefox

2011-01-31 Thread Sascha
Hello I am returning specialised website html according to what platform the user is on. Is there a way to determine if the user is on a Smart Phone or on IE or on Firefox? Using python &/or examining HTTP packets? -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Robert
On 2011-01-31 15:19:44 -0500, rantingrick said: On Jan 31, 1:32 pm, Giampaolo Rodolà wrote: So what you're actually telling is that Python won't survive another 10 years because: - IDLE is it's default editor Well not solely because IDLE is the default editor. IDLE is very useful to newcomm

Re: Use the Source Luke

2011-01-31 Thread Emile van Sebille
On 1/31/2011 12:35 PM Raymond Hettinger said... That would explain why fewer people look at the C source code. However, even the parts of the standard library written in pure Python don't seem to be getting read anymore, so I'm still inclined to attribute the issue to 1) inconvenient placement o

Re: Understanding def foo(*args)

2011-01-31 Thread Ben Finney
"Rob Richardson" writes: > My thanks both to the original poster and to JM for an excellent answer. > I saw this syntax for the first time recently, and I've been curious > about it too. Would it be correct of me to assume that you have not worked through the entire Python tutorial http://docs.p

Re: multiple values for keyword argument

2011-01-31 Thread Patty
- Original Message - From: "Jean-Michel Pichavant" To: Cc: Sent: Monday, January 31, 2011 11:35 AM Subject: Re: multiple values for keyword argument pa...@cruzio.com wrote: I have been avoiding understanding this 'self', [snip] Regards, Patty What is to be understood ?? sel

Re: Python metaclass and UML

2011-01-31 Thread James Mills
On Tue, Feb 1, 2011 at 6:04 AM, Laszlo Nagy wrote: > How should I represent a Python metaclass on an UML class diagram? I know > how to represent composition, aggregation and inheritance. But not sure > about metaclasses. What kind of arrow or line should I use between a class > and its metaclass?

Re: Python metaclass and UML

2011-01-31 Thread Ian Kelly
On Mon, Jan 31, 2011 at 1:04 PM, Laszlo Nagy wrote: > How should I represent a Python metaclass on an UML class diagram? I know > how to represent composition, aggregation and inheritance. But not sure > about metaclasses. What kind of arrow or line should I use between a class > and its metaclass

Python metaclass and UML

2011-01-31 Thread Laszlo Nagy
How should I represent a Python metaclass on an UML class diagram? I know how to represent composition, aggregation and inheritance. But not sure about metaclasses. What kind of arrow or line should I use between a class and its metaclass? Is there a standard for this? Thanks, Laszlo -- h

Re: Use the Source Luke

2011-01-31 Thread rantingrick
On Jan 30, 10:50 am, rusi wrote: > I note particularly the disclaimer that it was removed from wikipedia > [Like when censors stuff you know it > deserves a second look ;-) ] Oh you mean that channel that *claims* to provide a specific type of "programming" however they really provide *anything

Re: Use the Source Luke

2011-01-31 Thread Raymond Hettinger
On Jan 30, 6:47 am, Tim Wintle wrote: > +1 - I think the source links are very useful (and thanks for pushing > them). Happy to do it. > However I think the biggest changes that have probably happened with > python itself are: > >  (1) More users for whom this is their first language. >  (2) CS

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rantingrick
On Jan 31, 1:32 pm, Giampaolo Rodolà wrote: > So what you're actually telling is that Python won't survive another > 10 years because: > > - IDLE is it's default editor Well not solely because IDLE is the default editor. IDLE is very useful to newcommers and could be made even more useful however

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Giampaolo Rodolà
So what you're actually telling is that Python won't survive another 10 years because: - IDLE is it's default editor - idlelib directory is the first place you should look every time you need an inspiration on how code should be written - code in idlelib directory sucks That's an interesting poin

Re: multiple values for keyword argument

2011-01-31 Thread Jean-Michel Pichavant
pa...@cruzio.com wrote: I have been avoiding understanding this 'self', [snip] Regards, Patty What is to be understood ?? self references the instance. Did I miss something ? JM -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rantingrick
PLEASE KINDLY IGNORE MY FIRST TWO POSTS: Due to some errors i need to repost. Thank you. IDLE: A cornicopia of mediocrity and obfuscation. -- by Rick Johnson IDLE --which is the Python Integrated Development and Learning Environment-- was once the apple of Guido's eye but has since degenerat

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread Littlefield, Tyler
However we cannot blame the current maintainer... You seem to still not know who -we- is. rewrite your message using I in place of we, and you'll be on the right track. -- http://mail.python.org/mailman/listinfo/python-list

Re: Would like to add an "upload" facility to my web site

2011-01-31 Thread Nitin Pawar
On Mon, Jan 31, 2011 at 11:16 PM, Google Poster wrote: > On Jan 31, 11:36 am, Luis M. González wrote: > > On Jan 31, 1:50 pm, Ramon F Herrera wrote: > > > > > > > > > On Jan 31, 10:49 am, Ramon F Herrera wrote: > > > > > > (newbie alert) > > > > > > This is what I have so far: > > > > > >http:

Re: multiple values for keyword argument

2011-01-31 Thread patty
> On 29 January 2011 18:39, 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

Re: WxPython versus Tkinter.

2011-01-31 Thread sturlamolden
On 23 Jan, 01:07, rantingrick wrote: > It is time to prove once and for all how dated and worthless Tkinter > is compared to wxPython. Yes, WxPython is not as advanced as i would > like it to be for a 21st century GUI library. So use PyQt instead. > However compared to > Tkinter, Wx is light ye

Re: IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rantingrick
On Jan 31, 11:39 am, rantingrick wrote: In my original post i showed this code #-- Puesdo Code --# # in editor window __init__ self.autocomplete = AutoComplete(blah) # in editor window onKeyPress(blah) if key == 'Tab' and blah: self.autocomplete.show_tip(blah) elif key == 'E

Re: Would like to add an "upload" facility to my web site

2011-01-31 Thread Google Poster
On Jan 31, 11:36 am, Luis M. González wrote: > On Jan 31, 1:50 pm, Ramon F Herrera wrote: > > > > > On Jan 31, 10:49 am, Ramon F Herrera wrote: > > > > (newbie alert) > > > > This is what I have so far: > > > >http://patriot.net/~ramon/upload_facility.html > > > > The code is shown below. It see

Re: Would like to add an "upload" facility to my web site

2011-01-31 Thread Google Poster
On Jan 31, 11:36 am, Luis M. González wrote: > On Jan 31, 1:50 pm, Ramon F Herrera wrote: > > > > > On Jan 31, 10:49 am, Ramon F Herrera wrote: > > > > (newbie alert) > > > > This is what I have so far: > > > >http://patriot.net/~ramon/upload_facility.html > > > > The code is shown below. It see

IDLE: A cornicopia of mediocrity and obfuscation.

2011-01-31 Thread rantingrick
IDLE: A cornicopia of mediocrity and obfuscation. -- by Rick Johnson IDLE --which is the Python Integrated Development and Learning Environment-- was once the apple of Guido's eye but has since degenerated into madness many years ago and remains now as the shining jewel "show piece" on the prove

Re: Would like to add an "upload" facility to my web site

2011-01-31 Thread Luis M . González
On Jan 31, 1:50 pm, Ramon F Herrera wrote: > On Jan 31, 10:49 am, Ramon F Herrera wrote: > > > > > > > > > > > (newbie alert) > > > This is what I have so far: > > >http://patriot.net/~ramon/upload_facility.html > > > The code is shown below. It seems I need that actual script that > > performs t

Cast to a method pointer in ctypes

2011-01-31 Thread Andrew Evans
How can I cast to a method pointer in ctypes. for example this in C int (*func)(); func = (int (*)()) expl; (int)(*func)(); How can I do this in ctypes using Python? I couldn't find the info I needed to be able to do this *cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: Would like to add an "upload" facility to my web site

2011-01-31 Thread Miki
One way is http://pythonwise.blogspot.com/2007/03/pushing-data-easy-way.html :) This list a good place to ask, you can try StackOverflow as well. -- http://mail.python.org/mailman/listinfo/python-list

Re: Would like to add an "upload" facility to my web site

2011-01-31 Thread Ramon F Herrera
On Jan 31, 10:49 am, Ramon F Herrera wrote: > (newbie alert) > > This is what I have so far: > > http://patriot.net/~ramon/upload_facility.html > > The code is shown below. It seems I need that actual script that > performs the file transfer. I would prefer it in Python. > > TIA, > > -Ramon > > --

Would like to add an "upload" facility to my web site

2011-01-31 Thread Ramon F Herrera
(newbie alert) This is what I have so far: http://patriot.net/~ramon/upload_facility.html The code is shown below. It seems I need that actual script that performs the file transfer. I would prefer it in Python. TIA, -Ramon --- Name of file to be

Re: Python critique

2011-01-31 Thread sturlamolden
On 11 Des 2010, 00:09, Antoine Pitrou wrote: > >     Probably the biggest practical problem with CPython is > > that C modules have to be closely matched to the version of > > CPython.  There's no well-defined API that doesn't change. > > Please stop spreading FUD:http://docs.python.org/c-api/ind

Re: Python critique

2011-01-31 Thread sturlamolden
On 10 Des 2010, 21:02, John Nagle wrote: >     Probably the biggest practical problem with CPython is > that C modules have to be closely matched to the version of > CPython.  There's no well-defined API that doesn't change. ctypes and DLLs in plain C do not change, and do not depend on CPython

Re: XML to dict(d)

2011-01-31 Thread Stefan Behnel
Daniel Stender, 31.01.2011 15:14: I've found that there is the library python-dictdlib for concatenating dict dictionaries, what would be the best way to "de-XML" the source file? How do you want to the dict to look like? What's in should be the "search word", the rest altogether belonging t

Re: XML to dict(d)

2011-01-31 Thread Daniel Stender
>> I've found that there is the library python-dictdlib for concatenating >> dict dictionaries, what would >> be the best way to "de-XML" the source file? > > How do you want to the dict to look like? > > Stefan What's in should be the "search word", the rest altogether belonging to that in a

RE: Understanding def foo(*args)

2011-01-31 Thread Rob Richardson
My thanks both to the original poster and to JM for an excellent answer. I saw this syntax for the first time recently, and I've been curious about it too. RobR -- http://mail.python.org/mailman/listinfo/python-list

Re: XML to dict(d)

2011-01-31 Thread Stefan Behnel
Daniel Stender, 31.01.2011 13:45: we are trying to convert a Sanskrit dictionary which is in a "homegrown" XML format into dict(d), the input file goes like this: 200akAlikam2a-kAlikam ind. immediately MBh.000173 2,2 266 110akAlya2a-kAlya mfn. unseasonable.000174 2,2 267 110ak

Re: XML to dict(d)

2011-01-31 Thread Neil Cerutti
On 2011-01-31, Daniel Stender wrote: > Hi guys, > > we are trying to convert a Sanskrit dictionary which is in a > "homegrown" XML format into dict(d), the input file goes like > this: xml.etree.ElementTree will parse your file and return it as a hierarchy of dict-like Element objects. -- Neil

XML to dict(d)

2011-01-31 Thread Daniel Stender
Hi guys, we are trying to convert a Sanskrit dictionary which is in a "homegrown" XML format into dict(d), the input file goes like this: 200akAlikam2a-kAlikam ind. immediately MBh. 000173 2,2 266 110akAlya2a-kAlya mfn. unseasonable. 000174 2,2 267 110akAsAra1a-kAsAra m. N._of_a_teacher B

Re: Pickling/Unpickling python Exceptions

2011-01-31 Thread Sergey Lukin
Is anybody there to help me out ? On Thu, Jan 27, 2011 at 4:49 PM, Sergey Lukin wrote: > Hi all, > > I'm migrating code from python 2.4 to python 2.6 and I've got into troubles > with pickling/unpickling python Exceptions. > The following code works fine in 2.4 but not in 2.6. > See Exception1

Re: Understanding def foo(*args)

2011-01-31 Thread Jean-Michel Pichavant
sl33k_ wrote: Hi, I am struggling to grasp this concept about def foo(*args). Also, what is def bar(*args, *kwargs)? Isnt it like self must be the first parameter to the method/function? If not what are the exceptions? Also, can the terms method and function be used interchangeably? TIA "

Re: Style question: Nicknames for deeply nested objects

2011-01-31 Thread Jean-Michel Pichavant
Gerald Britton wrote: Hi all, Today I was thinking about a problem I often encounter. [snip] 1. You need to call this thing many times with different arguments, so you wind up with: x = some.deeply.nested.object.method(some.other.deeply.nested.object.value1) y = some.deeply.nested.obj

[RELEASED] Python 3.2 rc 2

2011-01-31 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm quite happy to announce the second release candidate of Python 3.2. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x

Re: multiple values for keyword argument

2011-01-31 Thread Simon Brunning
On 29 January 2011 18:39, 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 c

Option in Management careers.

2011-01-31 Thread gaurav
Rush for career in computer and government jobs potential revenue. http://rojgars1.webs.com/gov.htmhttp://rojgars.webs.com/bankingjobs.htm Huge chance in Management careers. Management careers for you. http://managementjobs.webs.com/pm.htm http://topcareer.webs.com/humanresourcemgmt.htm -- h