Re: IDE for python similar to visual basic

2009-08-28 Thread Vivian Wang
On Aug 29, 6:19 am, qwe rty wrote: > i have been searching for am IDE for python that is similar to Visual > Basic but had no luck.shall you help me please? You can try biform: http://www.bilive.com/download/Setup_BiForm_V2.1_en.msi.zip Demo: http://www.bilive.com/demo/BiForm_EN_demo.htm More

Re: Python for professsional Windows GUI apps?

2009-08-28 Thread Vivian Wang
On Aug 24, 8:08 pm, Gilles Ganault wrote: > Hello > >         I was wondering if some people in this ng use Python and some GUI > toolkit (PyWin32, wxWidgets, QT, etc.) to build professional > applications, and if yes, what it's like, the pros and cons, etc. > > I'm especially concerned about the

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Joshua Judson Rosen
Carl Banks writes: > > On Aug 28, 2:42 pm, Terry Reedy wrote: > > > Carl Banks wrote: > > > I don't think it needs a syntax for that, but I'm not so sure a method > > > to modify a value in place with a single key lookup wouldn't > > > occasioanally be useful. > > > > Augmented assignment does th

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Joshua Judson Rosen
Robert Kern writes: > > On 2009-08-28 16:42 PM, Terry Reedy wrote: > > Carl Banks wrote: > > > > > I don't think it needs a syntax for that, but I'm not so sure a > > > method to modify a value in place with a single key lookup > > > wouldn't occasioanally be useful. > > > > Augmented assignment d

Re: What python can NOT do?

2009-08-28 Thread Steven D'Aprano
On Sat, 29 Aug 2009 05:37:34 +0200, Tomasz Rola wrote: > My private list of > things that when implemented in Python would be ugly to the point of > calling it difficult: > > 1. AMB operator - my very favourite. In one sentence, either language > allows one to do it easily or one would not want t

Re: copy construtor question

2009-08-28 Thread Gabriel Genellina
En Fri, 28 Aug 2009 21:47:51 -0300, Chris Rebert escribió: On Fri, Aug 28, 2009 at 11:38 AM, xiaosong xia wrote: 2. How to make a copy constructor? Since Python lacks overloading based on parameter types, generally one does it the other way around and instead provides a method that produce

Re: how to edit .wsgi file extebtions with IDLE on windows

2009-08-28 Thread Gabriel Genellina
En Fri, 28 Aug 2009 15:31:31 -0300, gert escribió: I can't figure out how to enable the .py shell and syntax highlighting for .wsgi file extensions using IDLE for windows ? That's a Windows question, not a Python one. You have to associate the .wsgi extension with the Python.File file type

Re: Object's nesting scope

2009-08-28 Thread Gabriel Genellina
En Fri, 28 Aug 2009 15:25:55 -0300, zaur escribió: On 28 авг, 16:07, Bruno Desthuilliers wrote: zaur a écrit : > Ok. Here is a use case: object initialization. > For example, > person = Person(): >   name = "john" >   age = 30 >   address = Address(): >      street = "Green Street" >      n

Re: A lot of problem with pygame.mixer module!

2009-08-28 Thread Sébastien Ouellet
I had the same problem and struggled through every solution posted on the web. None actually helped but I discovered bbfreeze : http://pypi.python.org/pypi/bbfreeze/ It works as well as py2exe and there are no problems with pygame.mixer. It's easy to install and the example script at the end of the

Re: What python can NOT do?

2009-08-28 Thread Aahz
In article , qwe rty wrote: > >> > if you don't know the answer please don't reply >> >> I'm not sure you understand -- Being a Turing complete language, >> anything you can do in any other language, you can do in Python. >> =A0 As "r" observed, it might not be a pleasant experience (though >> th

Re: What python can NOT do?

2009-08-28 Thread Tomasz Rola
On Fri, 28 Aug 2009, qwe rty wrote: > i know that an interpreted language like python can't be used to make > an operating system or system drivers. > > what else can NOT be done in python? what are the limitations of the > language? Oh, my. And now everybody points at you this Turing-completene

Re: Select column from a list

2009-08-28 Thread Alan G Isaac
On 8/28/2009 3:45 AM hoffik wrote: > I'm quite new in Python and I have one question. I have a 2D matrix of > values stored in list (3 columns, many rows). I wonder if I can select one > column without having to go through the list with 'for' command. Not quite what you asked but ... >>> rows = [

Re: Query screen resolution?

2009-08-28 Thread Warpcat
> Your question is based upon the notion that "the screen" is a meaningful > concept. Once you move away from Windows (and systems which intentionally > try to be like Windows), that's no longer true. Good points. Always something I haven't thought of. Ok so... let's *presume* the user has a mea

Re: What python can NOT do?

2009-08-28 Thread qwe rty
On Aug 29, 5:11 am, Nobody wrote: > On Fri, 28 Aug 2009 17:26:06 -0700, qwe rty wrote: > > if you don't know the answer please don't reply > > If you don't understand the question, don't post it in the first place. don't be so angry ,not good for your health -- http://mail.python.org/mailman/lis

Re: What python can NOT do?

2009-08-28 Thread Nobody
On Fri, 28 Aug 2009 17:26:06 -0700, qwe rty wrote: > if you don't know the answer please don't reply If you don't understand the question, don't post it in the first place. -- http://mail.python.org/mailman/listinfo/python-list

Re: What python can NOT do?

2009-08-28 Thread Nobody
On Fri, 28 Aug 2009 17:31:22 -0700, r wrote: >> Since Python is Turing-complete, there's no reason a whole OS >> couldn't be authored in Python. > > Yes, and one could go from NY to LA on a unicycle but would one really > want to? Talk about some redass and blueballs! *yikes* > > Yes, if i have

Re: What python can NOT do?

2009-08-28 Thread qwe rty
On Aug 29, 4:17 am, Steven D'Aprano wrote: > On Fri, 28 Aug 2009 15:37:46 -0700, qwe rty wrote: > > i know that an interpreted language like python > > Languages are neither interpreted nor compiled. *Implementations* are > interpreted or compiled. > > Perl has only one implementation, which is in

Re: What python can NOT do?

2009-08-28 Thread qwe rty
> > if you don't know the answer please don't reply > > I'm not sure you understand -- Being a Turing complete language, > anything you can do in any other language, you can do in Python. >   As "r" observed, it might not be a pleasant experience (though > there are a lot of things I'd rather do i

Re: Query screen resolution?

2009-08-28 Thread Nobody
On Fri, 28 Aug 2009 11:13:06 -0700, AK Eric wrote: > Thought this would be easy, maybe I'm missing something :) Trying to > query the x,y resolution of my screen. I've seen this available > through http://python.net/crew/mhammond/win32/ : > > from win32api import GetSystemMetrics > print "width

Re: [OT] How do I reply to a thread by sending a message to python-list@python.org

2009-08-28 Thread Nobody
On Thu, 27 Aug 2009 05:47:50 -0400, Terry Reedy wrote: >> I use Thunderbird, and treat the list as ordinary mail. I use >> reply-all, and it seems to do the right thing. Or at least if I'm >> breaking threads, nobody has pointed it out to me yet. > > reply-all may send duplicate messages to t

Re: Transforming a str to an operator

2009-08-28 Thread Anny Mous
r wrote: > Abviously the OP is a python baby noob and casting your irrational > fear (and many others irrational fears) of eval It isn't irrational to have a healthy caution towards eval. Apart from the security issues, running code in eval takes a massive performance hit. Its about ten times s

Re: What python can NOT do?

2009-08-28 Thread Tim Chase
qwe rty wrote: On Aug 29, 3:14 am, Tim Chase wrote: what else can NOT be done in python? what are the limitations of the language? I understand there's a little trouble getting Python to prove that P=NP You'll also find that it only comes close to solving the unrestricted three-body problem a

Re: What python can NOT do?

2009-08-28 Thread Bruce C. Baker
"qwe rty" wrote in message news:00a36f89-52dd-4d90-a455-cee6a0c9d...@q5g2000yqh.googlegroups.com... >i know that an interpreted language like python can't be used to make > an operating system or system drivers. > > what else can NOT be done in python? what are the limitations of the > language?

Re: variables of the class are not available as default values?

2009-08-28 Thread Aahz
In article , Chris Rebert wrote: > >class foo: >def __init__(self, maxvalue): >self.maxvalue =3D maxvalue >self.value =3D 0 > >def put(self, value=3DNone): >self.value =3D self.value if value is None else value Stylistic nit: I'd make that self.value = v

Re: What python can NOT do?

2009-08-28 Thread Steven D'Aprano
On Fri, 28 Aug 2009 15:37:46 -0700, qwe rty wrote: > i know that an interpreted language like python Languages are neither interpreted nor compiled. *Implementations* are interpreted or compiled. Perl has only one implementation, which is interpreted (as far as I know); Java has a number of i

Re: copy construtor question

2009-08-28 Thread Chris Rebert
On Fri, Aug 28, 2009 at 11:38 AM, xiaosong xia wrote: > Hi all, > > I am trying to define a class with copy constructor as following: > > class test: > > def __init__(self, s=None): > >   self=s Python uses call-by-object (http://effbot.org/zone/call-by-object.htm), so reassigning `se

Re: What python can NOT do?

2009-08-28 Thread r
On Aug 28, 7:05 pm, Tim Chase wrote: (snip) > Since Python is Turing-complete, there's no reason a whole OS > couldn't be authored in Python. Yes, and one could go from NY to LA on a unicycle but would one really want to? Talk about some redass and blueballs! *yikes* Yes, if i have learned anyth

Re: What python can NOT do?

2009-08-28 Thread qwe rty
On Aug 29, 3:14 am, Tim Chase wrote: > >> what else can NOT be done in python? what are the limitations of the > >> language? > > > I understand there's a little trouble getting Python to prove > > that P=NP  You'll also find that it only comes close to solving > > the unrestricted three-body prob

Re: An assessment of Tkinter and IDLE

2009-08-28 Thread r
On Aug 28, 5:48 pm, Mark Roseman wrote: (snip) > Thewww.tkdocs.comsite is 'language neutral' - currently the tutorial > covers Tcl, Perl, Ruby and yes Python, and allows you to switch between > any of those languages (or show all of them). True, however the coverage is incomplete. I would back th

Re: What python can NOT do?

2009-08-28 Thread Tim Chase
what else can NOT be done in python? what are the limitations of the language? I understand there's a little trouble getting Python to prove that P=NP You'll also find that it only comes close to solving the unrestricted three-body problem and the Traveling Salesman problem is still limited

Re: why python got less developers ?

2009-08-28 Thread Aahz
In article , wrote: >Chris Rebert wrote: >> On Thu, Aug 27, 2009 at 5:34 PM, Deep_Feelings >> wrote: >>> >>> python got relatively fewer numbers of developers than other high >>> level languages like .NET , java .. etc  why ? >> >> We lack Sun and Microsoft's massive marketing departments. :) >

Re: What python can NOT do?

2009-08-28 Thread Tim Chase
qwe rty wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. As long as you are willing to write the OS hooks in C, you can write the userspace device drivers in Python: https://www.linuxquestions.org/questions/programming-9/how-

Re: What python can NOT do?

2009-08-28 Thread r
On Aug 28, 5:37 pm, qwe rty wrote: > what else can NOT be done in python? what are the limitations of the > language? Why would you even want to know what can't be done? What is it that you would like to do with Python? If you want a one size fits all language you may be looking for a very long t

Re: why python got less developers ?

2009-08-28 Thread r
On Aug 28, 10:36 am, jfabi...@yolo.com wrote: (snip) > I'm inclined to agreed.  But in recent years we lost a number of developers > to Ruby.  I don't know but I doubt Ruby has a marketing budget.  So in my > mind it is difficult for me to blame just the lack of marketing dollars for > the lost.  

Re: Colors on IDLE

2009-08-28 Thread r
Have you tried saving the files as MYScriptName.py? notice the py extension, very important ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: What python can NOT do?

2009-08-28 Thread Christian Heimes
qwe rty wrote: > i know that an interpreted language like python can't be used to make > an operating system or system drivers. > > what else can NOT be done in python? what are the limitations of the > language? Python is a high level language. It's not designed for low level stuff like bit oper

Re: cgi and POST

2009-08-28 Thread Ken Seehart
D'Arcy J.M. Cain wrote: On Fri, 28 Aug 2009 13:59:57 -0700 Ken Seehart wrote: Using cgi, how do I get the /data /(not the uri arguments) originating from a POST that did not originate from a form. You don't care where it came from. Just treat it exactly as if it came from a form.

Re: Annoying octal notation

2009-08-28 Thread Neil Hodgson
Steven D'Aprano: > Obviously I can't speak for Ken Thompson's motivation in creating this > feature, but I'm pretty sure it wasn't to save typing or space on > punchcards. The original implementation of UNIX was on a PDP-7 which was an 18-bit machine. Octal = 3 bits at a a time which evenly

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Carl Banks
On Aug 28, 2:42 pm, Terry Reedy wrote: > Carl Banks wrote: > > I don't think it needs a syntax for that, but I'm not so sure a method > > to modify a value in place with a single key lookup wouldn't > > occasioanally be useful. > > Augmented assignment does that. Internally uses two lookups, one

Re: IDE for python similar to visual basic

2009-08-28 Thread Stef Mientki
qwe rty wrote: On Aug 29, 1:22 am, Craig wrote: Try wingware i have it and i like it. --- On Fri, 8/28/09, qwe rty wrote: From: qwe rty Subject: IDE for python similar to visual basic To: python-l...@python.org Date: Friday, August 28, 2009, 5:19 PM i have been searching for am IDE

Re: IDE for python similar to visual basic

2009-08-28 Thread William
For visual designers, you may try: QTDesigner with PyQt or WxForms or WxGlade or BoaConstructor with WxPython It's not like VB.NET where you can put in callbacks write after doing layout, but some prefer the above designers to hand coding guis.  Good luck, William --- On Fri, 8/28/09, qwe rty

Re: An assessment of Tkinter and IDLE

2009-08-28 Thread Mark Roseman
r wrote: > On Aug 28, 11:12 am, Mark Roseman wrote: > > Would it be useful to link to this from the main Python Tkinter > > documentation? > > Thanks Mark, but i would hate to see more links to TCL code in the > python docs. Whats the use of Tkinter if the docs are in TCL. The www.tkdocs.com s

Re: [Tutor] Sending an email alert

2009-08-28 Thread member thudfoo
On Fri, Aug 28, 2009 at 12:00 PM, Marc wrote: [...] >     s = smtplib.SMTP('smtp.marcd.org') > > AttributeError: 'module' object has no attribute 'SMTP' > > > > The code I am trying to use is: > > > > import smtplib > [...] Make sure you do not have a file called "smtplib.py" on the your python p

Re: IDE for python similar to visual basic

2009-08-28 Thread qwe rty
On Aug 29, 1:22 am, Craig wrote: > Try wingware i have it and i like it. > > --- On Fri, 8/28/09, qwe rty wrote: > > > From: qwe rty > > Subject: IDE for python similar to visual basic > > To: python-l...@python.org > > Date: Friday, August 28, 2009, 5:19 PM > > i have been searching for am IDE

What python can NOT do?

2009-08-28 Thread qwe rty
i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of the language? -- http://mail.python.org/mailman/listinfo/python-list

Re: Object Reference question

2009-08-28 Thread josef
On Aug 27, 1:35 pm, Ethan Furman wrote: > josef wrote: > > Thanks to everyone who responded. > > > I will be going with some sort of a = MyClass(name = 'a') format. It's > > the Python way. > > > For me, it was very hard to accept that EVERYTHING is an object > > reference. And that there are no o

Re: IDE for python similar to visual basic

2009-08-28 Thread Craig
Try wingware i have it and i like it. --- On Fri, 8/28/09, qwe rty wrote: > From: qwe rty > Subject: IDE for python similar to visual basic > To: python-list@python.org > Date: Friday, August 28, 2009, 5:19 PM > i have been searching for am IDE for > python that is similar to Visual > Basic but

IDE for python similar to visual basic

2009-08-28 Thread qwe rty
i have been searching for am IDE for python that is similar to Visual Basic but had no luck.shall you help me please? -- http://mail.python.org/mailman/listinfo/python-list

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Robert Kern
On 2009-08-28 16:42 PM, Terry Reedy wrote: Carl Banks wrote: I don't think it needs a syntax for that, but I'm not so sure a method to modify a value in place with a single key lookup wouldn't occasioanally be useful. Augmented assignment does that. No, it uses one __getitem__ and one __set

"BOLLYWOOD GIRLS" ON www.e-indiangirls.blogspot.com "BOLLYWOOD ROMANTIC SCENES" www.e-indiangirls.blogspot.com "BOLLYWOOD WALLPAPERS" www.e-indiangirls.blogspot.com "BOLLYWOOD PICTURES" www.e-indian

2009-08-28 Thread saima81
"BOLLYWOOD GIRLS" ON www.e-indiangirls.blogspot.com "BOLLYWOOD ROMANTIC SCENES" www.e-indiangirls.blogspot.com "BOLLYWOOD WALLPAPERS" www.e-indiangirls.blogspot.com "BOLLYWOOD PICTURES" www.e-indiangirls.blogspot.com "BOLLYWOOD SCENES" Options "BOLLYWOOD GIRLS" ON www.e-indiangirls.blogspot.com "B

Re: cgi and POST

2009-08-28 Thread D'Arcy J.M. Cain
On Fri, 28 Aug 2009 13:59:57 -0700 Ken Seehart wrote: > Using cgi, how do I get the /data /(not the uri arguments) originating > from a POST that did not originate from a form. You don't care where it came from. Just treat it exactly as if it came from a form. -- D'Arcy J.M. Cain |

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Terry Reedy
Carl Banks wrote: I don't think it needs a syntax for that, but I'm not so sure a method to modify a value in place with a single key lookup wouldn't occasioanally be useful. Augmented assignment does that. For instance: def increment(value): return value+1 d = { 'a': 1 } d

Re: Colors on IDLE

2009-08-28 Thread vsoler
On Aug 28, 9:55 pm, Chris Rebert wrote: > On Fri, Aug 28, 2009 at 12:00 PM, vsoler wrote: > > On Aug 28, 8:58 pm, vsoler wrote: > >> Everything that I see in IDLE is in black. > > >> I have tried to add colors, without success. > > >> I've tried:  /Options/Configure IDLE/Highlighting/IDLE Classic

cgi and POST

2009-08-28 Thread Ken Seehart
I can't seem to find an answer to this simple question on the web, and the documentation doesn't seem to indicate how to do this... On the client I have: urllib.urlopen(uri, data) This does a POST, but it's not obvious to me how this maps onto the various cgi examples which assume that

Re: why python got less developers ?

2009-08-28 Thread Charles Yeomans
On Aug 28, 2009, at 1:03 AM, Esam Qanadeely wrote: who cares if a language is compiled or interpreted as long as it runs and perform the function. second thing is : even if java is faster than python , unless you are making performance critical operations : who cares? computers are getting fas

Re: Object's nesting scope

2009-08-28 Thread Mel
zaur wrote: > On 28 авг, 16:07, Bruno Desthuilliers 42.desthuilli...@websiteburo.invalid> wrote: >> zaur a écrit : >> >> >> >> > On 26 авг, 17:13, "Diez B. Roggisch" wrote: >> >> Whom am we to judge? Sure if you propose this, you have some usecases >> >> in mind - how about you present these >>

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Carl Banks
On Aug 26, 11:49 pm, RunThePun wrote: > Anybody have any more ideas? I think python should/could havev a > syntax for overriding this behaviour, i mean, obviously the complexity > of supporting all operators with the getitem syntax could introduce > alot of clutter. But maybe there's an elegant so

Re: Colors on IDLE

2009-08-28 Thread Chris Rebert
On Fri, Aug 28, 2009 at 12:00 PM, vsoler wrote: > On Aug 28, 8:58 pm, vsoler wrote: >> Everything that I see in IDLE is in black. >> >> I have tried to add colors, without success. >> >> I've tried:  /Options/Configure IDLE/Highlighting/IDLE Classic > > Couldn't finish writing...   sorry > ---

Re: comparison on list yields surprising result

2009-08-28 Thread Dr. Phillip M. Feldman
It looks as though what I should have done is the following: In [23]: array(x) > 6 Out[23]: array([False, False, False, False], dtype=bool) -- View this message in context: http://www.nabble.com/comparison-on-list-yields-surprising-result-tp25195170p25195893.html Sent from the Python - python-l

Re: Overriding iadd for dictionary like objects

2009-08-28 Thread Aahz
In article <21e57363-4e92-41cb-9907-5aef96ad0...@o15g2000yqm.googlegroups.com>, RunThePun wrote: > >Anybody have any more ideas? I think python should/could havev a >syntax for overriding this behaviour, i mean, obviously the complexity >of supporting all operators with the getitem syntax could i

how to send 100 continues in wsgi application ?

2009-08-28 Thread gert
how do you send 100 continues in a wsgi applications ? when using curl -T file http://localhost/upload.wsgi on the wsgiref.simple_server it get stuck waiting for a 100 continue import os def application(environ, response): query=os.path.join(os.path.dirname(__file__),'teemp') ran

Re: comparison on list yields surprising result

2009-08-28 Thread Diez B. Roggisch
Dr. Phillip M. Feldman schrieb: In [21]: x Out[21]: [1, 2, 3, 5] In [22]: x>6 Out[22]: True Is this a bug? In python2.x, it's the defined behavior - all types are somhow comparable. The comparison is stable (all lists compare larger to all ints), but of course this by no means well-defined.

Re: An assessment of Tkinter and IDLE

2009-08-28 Thread Michiel Overtoom
r wrote: Whats the use of Tkinter if the docs are in TCL. Just learn TCL and skip the Python middleman. But Mark's tutorial at http://www.tkdocs.com/tutorial/index.html allows you to select 'Python' as one of the languages you want to see the example code in. Too bad that the 'ttk' widget

Re: comparison on list yields surprising result

2009-08-28 Thread Diez B. Roggisch
Dr. Phillip M. Feldman schrieb: In [21]: x Out[21]: [1, 2, 3, 5] In [22]: x>6 Out[22]: True Is this a bug? In python2.x, it's the defined behavior - all types are somhow comparable. The comparison is stable (all lists compare larger to all ints), but of course this by no means well-defined.

Re: comparison on list yields surprising result

2009-08-28 Thread John Machin
On Aug 29, 5:00 am, "Dr. Phillip M. Feldman" wrote: > In [21]: x > Out[21]: [1, 2, 3, 5] > > In [22]: x>6 > Out[22]: True > > Is this a bug? No. http://docs.python.org/reference/expressions.html#notin -- http://mail.python.org/mailman/listinfo/python-list

Re: Question on the "csv" library

2009-08-28 Thread John Machin
On Aug 29, 2:35 am, vsoler wrote: > 3- Excel does not even put quotes around litteral texts, not even when > the text contains a blank Correct. Quoting is necessary only if a text field contains a delimiter (semicolon/comma), a newline, or the quote character. You can read Excel CSV output usin

Re: Colors on IDLE

2009-08-28 Thread vsoler
On Aug 28, 8:58 pm, vsoler wrote: > Everything that I see in IDLE is in black. > > I have tried to add colors, without success. > > I've tried:  /Options/Configure IDLE/Highlighting/IDLE Classic Couldn't finish writing... sorry --- Everything that I see in IDLE

comparison on list yields surprising result

2009-08-28 Thread Dr. Phillip M. Feldman
In [21]: x Out[21]: [1, 2, 3, 5] In [22]: x>6 Out[22]: True Is this a bug? -- View this message in context: http://www.nabble.com/comparison-on-list-yields-surprising-result-tp25195170p25195170.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.

Colors on IDLE

2009-08-28 Thread vsoler
Everything that I see in IDLE is in black. I have tried to add colors, without success. I've tried: /Options/Configure IDLE/Highlighting/IDLE Classic -- http://mail.python.org/mailman/listinfo/python-list

Re: Select column from a list

2009-08-28 Thread Stephen Fairchild
hoffik wrote: > > Hello, > > I'm quite new in Python and I have one question. I have a 2D matrix of > values stored in list (3 columns, many rows). I wonder if I can select one > column without having to go through the list with 'for' command. > > For example I have list called 'values'. > When

Re: Query screen resolution?

2009-08-28 Thread Warpcat
On Aug 28, 11:27 am, "Rami Chowdhury" wrote: > > But I was hoping for something built-in, and something non-OS > > specific. > > I don't know about built-ins, but I do believe that pygame (which *is*   > cross-platform) will let you get at that information: >        http://www.pygame.org/docs/ref/

copy construtor question

2009-08-28 Thread xiaosong xia
Hi all,   I am trying to define a class with copy constructor as following:   class test: def __init__(self, s=None):   self=s   x=[1,2]   y=test(x)   print y.__dict__   it gives {}   The above code doesn't work.   Questions are:   1. Can 'self ' be a class attribute? 2. How to make

Re: How to exclude "import"s from PyDoc

2009-08-28 Thread Matt Bellis
Hi Diez, Thanks for the heads up. I'll give epydoc a shot. Matt > > >    Anyone know the best way to getPyDocto ignore this (or other) > > imported module(s)? > > Don't know aboutpydoc, but epydoc (which generates much nicer docs > imho) can be forced to only include certain packages. > > Di

Re: Select column from a list

2009-08-28 Thread Dave Angel
hoffik wrote: Hello, I'm quite new in Python and I have one question. I have a 2D matrix of values stored in list (3 columns, many rows). I wonder if I can select one column without having to go through the list with 'for' command. For example I have list called 'values'. When I write 'values[0

how to edit .wsgi file extebtions with IDLE on windows

2009-08-28 Thread gert
I can't figure out how to enable the .py shell and syntax highlighting for .wsgi file extensions using IDLE for windows ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on the Web

2009-08-28 Thread Bruno Desthuilliers
John Nagle a écrit : > Bruno Desthuilliers wrote: >> If you're only writing your framework for learning purposes, you could >> as well go with Python 3, and implement everything from the ground up >> (not a trivial task FWIW). > >Python 3 isn't ready for prime time on web servers. Too many ma

Re: Object's nesting scope

2009-08-28 Thread zaur
On 28 авг, 16:07, Bruno Desthuilliers wrote: > zaur a écrit : > > > > > On 26 авг, 17:13, "Diez B. Roggisch" wrote: > >> Whom am we to judge? Sure if you propose this, you have some usecases in > >> mind - how about you present these > > > Ok. Here is a use case: object initialization. > > > For

Re: Query screen resolution?

2009-08-28 Thread Rami Chowdhury
But I was hoping for something built-in, and something non-OS specific. I don't know about built-ins, but I do believe that pygame (which *is* cross-platform) will let you get at that information: http://www.pygame.org/docs/ref/display.html#pygame.display.Info On Fri, 28 Aug 2009 11:

Query screen resolution?

2009-08-28 Thread AK Eric
Thought this would be easy, maybe I'm missing something :) Trying to query the x,y resolution of my screen. I've seen this available through http://python.net/crew/mhammond/win32/ : from win32api import GetSystemMetrics print "width =", GetSystemMetrics (0) print "height =",GetSystemMetrics (1)

Re: Question on the "csv" library

2009-08-28 Thread Hrvoje Niksic
David Smith writes: >> 2- the "C" in "CSV" does not mean "comma" for Microsoft Excel; the ";" >> comes from my regional Spanish settings > > The C really does stand for comma. I've never seen MS spit out > semi-colon separated text on a CSV format. That's because you're running MS Office in a U

Re: An assessment of Tkinter and IDLE

2009-08-28 Thread Mark Lawrence
r wrote: On Aug 28, 11:12 am, Mark Roseman wrote: Would it be useful to link to this from the main Python Tkinter documentation? Mark Thanks Mark, but i would hate to see more links to TCL code in the python docs. Whats the use of Tkinter if the docs are in TCL. Just learn TCL and skip the P

Re: An assessment of Tkinter and IDLE

2009-08-28 Thread r
On Aug 28, 11:12 am, Mark Roseman wrote: > Would it be useful to link to this from the main Python Tkinter > documentation? > > Mark Thanks Mark, but i would hate to see more links to TCL code in the python docs. Whats the use of Tkinter if the docs are in TCL. Just learn TCL and skip the Python

Re: Python on the Web

2009-08-28 Thread John Nagle
Bruno Desthuilliers wrote: If you're only writing your framework for learning purposes, you could as well go with Python 3, and implement everything from the ground up (not a trivial task FWIW). Python 3 isn't ready for prime time on web servers. Too many major modules, haven't been ported

Re: Need help with Python scoping rules

2009-08-28 Thread kj
In Ethan Furman writes: >kj wrote: >> Miles Kaufmann writes: >>>...because the suite >>>namespace and the class namespace would get out of sync when different >>>objects were assigned to the class namespace: >> >> >>>class C: >>> x = 1 >>> def foo(self): >>> print x >>> print

Re: Question on the "csv" library

2009-08-28 Thread Mark Lawrence
vsoler wrote: On Aug 28, 5:43 pm, Steven Rumbalski wrote: On Aug 27, 3:06 pm, vsoler wrote: I am trying to read a csv file generated by excel. Although I succeed in reading the file, the format that I get is not suitable for me. I've done: import csv spamReader = csv.reader(open('C:\\abc.

Re: Raw data extraction question

2009-08-28 Thread Gabriel Genellina
En Wed, 26 Aug 2009 12:18:23 -0300, Maggie escribió: i have event timing stretch of code i need to alter. here is code below: -- # we start each run with one full silent trial # creating a "stub" with the duration of a full block # less the discarded acquisitions stub = block_dur -

Re: Question on the "csv" library

2009-08-28 Thread David Smith
vsoler wrote: > > Thank you very much for all your comments. After reading them I can > conclude that: > > 1- the CSV format is not standardized; each piece of software uses it > differently True, but there are commonalities. See http://en.wikipedia.org/wiki/Comma-separated_values > > 2- the

Re: Question on the "csv" library

2009-08-28 Thread Gabriel Genellina
En Fri, 28 Aug 2009 13:35:19 -0300, vsoler escribió: On Aug 28, 5:43 pm, Steven Rumbalski wrote: On Aug 27, 3:06 pm, vsoler wrote: > I am trying to read a csv file generated by excel. > ['a;qwe;1'] > ['b;asd;2'] > ['c;zxc;3'] Thank you very much for all your comments. After reading th

Re: Object's nesting scope

2009-08-28 Thread Gabriel Genellina
En Thu, 27 Aug 2009 12:43:55 -0300, zaur escribió: On 27 авг, 19:19, Carl Banks wrote: On Aug 27, 8:01 am, zaur wrote: > On 27 авг, 18:34, Carl Banks wrote: > > The idea has been > > discussed in various forms here quite a bit over the years.  I doubt > > there's any chance it'll be accepted

Re: Question on the "csv" library

2009-08-28 Thread vsoler
On Aug 28, 5:43 pm, Steven Rumbalski wrote: > On Aug 27, 3:06 pm, vsoler wrote: > > > > > I am trying to read a csv file generated by excel. > > > Although I succeed in reading the file, the format that I get is not > > suitable for me. > > > I've done: > > > >>> import csv > > >>> spamReader = c

Re: Modules/packages by GvR?

2009-08-28 Thread Benjamin Peterson
Terry Reedy udel.edu> writes > > I am not aware of any recent stdlib modules written by Guido. I suspect > most older ones have been updated at least once by someone else. Guido wrote a good deal of the new Python 3 code. However, maintence has now turned over to over Python developers. For ex

Re: Python on the Web

2009-08-28 Thread John Nagle
Graham Dumpleton wrote: A few additional comments on top of what others have said. On Aug 26, 11:09 am, Phil wrote: As I've read elsewhere, "These days, FastCGI is never used directly. Actually, FCGI works quite well. Sitetruth's AdRater (http://www.sitetruth.com/downloads/adrater.html)

Re: An assessment of Tkinter and IDLE

2009-08-28 Thread Mark Roseman
With regard to Tkinter documentation, and in particular the newer, more modern aspects thereof (e.g. ttk, styles, etc.) please have a look at the tutorial at http://www.tkdocs.com Would it be useful to link to this from the main Python Tkinter documentation? Mark -- http://mail.python.org/mai

Re: Modules/packages by GvR?

2009-08-28 Thread Terry Reedy
Matimus wrote: On Aug 28, 7:58 am, gb345 wrote: Are there any Python-only modules or packages in the latest releases of Python 2.x or Python 3.x that were largely written by Guido van Rossum? What's the best way to find this out? I know that some modules mention the author(s) in the source co

Re: Modules/packages by GvR?

2009-08-28 Thread Mark Lawrence
[fix top posting] On Fri, Aug 28, 2009 at 8:58 AM, gb345 wrote: Are there any Python-only modules or packages in the latest releases of Python 2.x or Python 3.x that were largely written by Guido van Rossum? What's the best way to find this out? I know that some modules mention the autho

Re: Distutils evil voodoo: install into a package

2009-08-28 Thread Pavel Panchekha
> This is what whe world has created namespace-packages for. At least if > you can live with the namespace "pya" being otherwise empty. That seems like a good solution. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help with Python scoping rules

2009-08-28 Thread Ethan Furman
kj wrote: Miles Kaufmann writes: ...because the suite namespace and the class namespace would get out of sync when different objects were assigned to the class namespace: class C: x = 1 def foo(self): print x print self.x o = C() o.foo() 1 1 o.x = 2 o.foo() 1 2 B

Re: Question on the "csv" library

2009-08-28 Thread Steven Rumbalski
On Aug 27, 3:06 pm, vsoler wrote: > I am trying to read a csv file generated by excel. > > Although I succeed in reading the file, the format that I get is not > suitable for me. > > I've done: > > >>> import csv > >>> spamReader = csv.reader(open('C:\\abc.csv', 'r')) > >>> print spamReader > > <_

Re: why python got less developers ?

2009-08-28 Thread jfabiani
Chris Rebert wrote: > On Thu, Aug 27, 2009 at 5:34 PM, Deep_Feelings > wrote: >> python got relatively fewer numbers of developers than other high >> level languages like .NET , java .. etc  why ? > > We lack Sun and Microsoft's massive marketing departments. :) I'm inclined to agreed. But in r

Re: Modules/packages by GvR?

2009-08-28 Thread Matimus
On Aug 28, 7:58 am, gb345 wrote: > Are there any Python-only modules or packages in the latest releases > of Python 2.x or Python 3.x that were largely written by Guido van > Rossum?  What's the best way to find this out?  I know that some > modules mention the author(s) in the source code, but th

  1   2   >