Re: A curses-game I need help with.

2006-10-10 Thread Gasten
Ben Finney wrote: > If you have a problem you'd like a lot of people to look at, the most > effective way is to make a short, complete example that demonstrates > exactly the problem you're trying to understand. I should make a demo, you say? I'm gonna do that next time. Thanks. -- http://mail.p

Re: Initialization of variables using no-arg constructor

2006-10-10 Thread jordanrastrick
Just to expand a little on what others have already said - not only is the total = list[0] etc.approach more readable, idiomatic, and elegant, IMO its more semantically correct. Your constraint that list[0].__class__ has a no-arg constructor is not strong enough; a more subtle and potentially bug-

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Hendrik van Rooyen
"Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > In message <[EMAIL PROTECTED]>, Hendrik van > Rooyen wrote: > > > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > > > > 8< > > > >> I wonder if we need another "middle" field for holding

Re: Dive Into Java?

2006-10-10 Thread Theerasak Photha
On 10/9/06, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Mon, 09 Oct 2006 15:31:56 +0200, "Diez B. Roggisch" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > > C++ has a lot of wicked, complicated features like overloadable assignment > > statements and so on, misses GC

Re: Everything is a distributed object

2006-10-10 Thread Nick Vatamaniuc
See here: http://wiki.python.org/moin/DistributedProgramming -Nick V. Martin Drautzburg wrote: > Hello all, > > I've seen various attempts to add distributed computing capabilities on top > of an existing language. For a true distributed system I would expect it to > be possible to instantiate o

Re: Encode differences between idle python and python

2006-10-10 Thread Gabriel Genellina
At Tuesday 10/10/2006 02:44, [EMAIL PROTECTED] wrote: >Hello: >Under win32 XP y select python command line and execute next code with >results indicated: > >Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit >(Intel)] on >Type "help", "copyright", "credits" or "license" for more info

Re: Names changed to protect the guilty

2006-10-10 Thread Antoon Pardon
On 2006-10-09, Aahz <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Antoon Pardon <[EMAIL PROTECTED]> wrote: >>On 2006-10-08, Aahz <[EMAIL PROTECTED]> wrote: >>> In article <[EMAIL PROTECTED]>, John J. Lee <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] (Aahz) writes: > > T

Re: Everything is a distributed object

2006-10-10 Thread Hendrik van Rooyen
"Martin Drautzburg" <[EMAIL PROTECTED]> wrote: > Hello all, > > I've seen various attempts to add distributed computing capabilities on top > of an existing language. For a true distributed system I would expect it to > be possible to instantiate objects of a remote class or to subclass a > remot

Re: News on versions modules for Python-2.5?

2006-10-10 Thread michels
Méta-MCI schrieb: > Hi, all! > > > Any news, on release Python-2.5 for many modules/lib? > Some exemples: > > Console (Effbot) > SciPy > Iconvcodec > DirectPython > SendKeys > Dislin > PyGame > Twain > etc. > > Dislin is recompiled for Python 2.5 and Win

Re: A curses-game I need help with.

2006-10-10 Thread Gasten
Rob Wolfe wrote: > > while running: > > key_command = game.mainwin.getch() > > # I've moved erasing messages here > game.msg.ereasMsg() Man... I didn't even think of that. It's embarassing. Thanks. It works perfect now. Again, thanks. Gasten -- http://mail.python

Re: OT: Sarcasm and irony (was: Dive Into Java?)

2006-10-10 Thread bryan rasmussen
> > > > > E. g. [in Java there is] no operator overloading, but "+" > > > concatenation of strings. What if you'd like to implement your own > > > string-derived class? Ah, never mind. Operator overloading is > > > bad(tm) ;) <= Irony, definitely > > > > Definitely? That one strikes me more as sarc

Re: (semi-troll): Is Jython development dead?

2006-10-10 Thread Steve Holden
Ray wrote: > [EMAIL PROTECTED] wrote: > >>Is Jython development dead or has it just seemed that way for over a >>year?. The jython.org website has a recent new appearance (but no new >>content) and there is some message traffic on the developer site at >>Sourceforge. However nothing has been rele

Re: Names changed to protect the guilty

2006-10-10 Thread Antoon Pardon
On 2006-10-10, Ben Finney <[EMAIL PROTECTED]> wrote: > "Andy Salnikov" <[EMAIL PROTECTED]> writes: > >> "Aahz" <[EMAIL PROTECTED]> wrote: >> > Antoon Pardon <[EMAIL PROTECTED]> wrote: >> >>The problem is there is also ground for bugs if you don't use >> >>"blah is True". If some application natural

Re: does raw_input() return unicode?

2006-10-10 Thread Duncan Booth
"Stuart McGraw" <[EMAIL PROTECTED]> wrote: > So, does raw_input() ever return unicode objects and if > so, under what conditions? > It returns unicode if reading from sys.stdin returns unicode. Unfortunately, I can't tell you how to make sys.stdin return unicode for use with raw_input. I tried

Re: does raw_input() return unicode?

2006-10-10 Thread Martin v. Löwis
Stuart McGraw schrieb: > So, does raw_input() ever return unicode objects and if > so, under what conditions? At the moment, it only returns unicode objects when invoked in the IDLE shell, and only if the character entered cannot be represented in the locale's charset. Regards, Martin -- http://

Re: OT: Sarcasm and irony

2006-10-10 Thread Steve Holden
bryan rasmussen wrote: E. g. [in Java there is] no operator overloading, but "+" concatenation of strings. What if you'd like to implement your own string-derived class? Ah, never mind. Operator overloading is bad(tm) ;) <= Irony, definitely >>> >>>Definitely? That one strikes me mo

Re: does raw_input() return unicode?

2006-10-10 Thread Theerasak Photha
On 10/10/06, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Stuart McGraw schrieb: > > So, does raw_input() ever return unicode objects and if > > so, under what conditions? > > At the moment, it only returns unicode objects when invoked > in the IDLE shell, and only if the character entered cannot

Re: Python component model

2006-10-10 Thread Nick Vatamaniuc
Edward Diener No Spam wrote: > Michael wrote: > > Edward Diener No Spam wrote: > > > >> Has there ever been, or is there presently anybody, in the Python > >> developer community who sees the same need and is working toward that > >> goal of a common component model in Python, blessed and encourag

Re: A curses-game I need help with.

2006-10-10 Thread Jia Lu
> try: > import curses > except ImportError: > print "Missing the Curses-library." > print "Please install the curses-library correctly." > SystemExit ~ Does this work ? Maybe *raise SystemExit* ?? -- http://mail.python.org/mailman/listinfo

Re: OT: Sarcasm and irony

2006-10-10 Thread Theerasak Photha
On 10/10/06, Steve Holden <[EMAIL PROTECTED]> wrote: > ... in America. It's well-known among Brits that Americans don't > understand irony. They can be pretty oblique when it come to sarcasms > too, for that matter. Ford Prefect: "What?" -- Theerasak -- http://mail.python.org/mailman/listinfo/p

Re: Python component model

2006-10-10 Thread Paul Rubin
"Nick Vatamaniuc" <[EMAIL PROTECTED]> writes: > Python does not _need_ a component model just as you don't _need_ a RAD > IDE tool to write Python code. The reason for having a component model > or a RAD IDE tool is to avoid writing a lot of boiler plate code. It's also so that applications writte

How to find a file or a device is currently used by which process or which program ?

2006-10-10 Thread [EMAIL PROTECTED]
Hi, When I want to uninstall my usb disk on windows, the operating systems sometimes tells me the device is being used by other program. But I can't find which program is using it. Can I do this using python ? Thanks. xiaojf -- http://mail.python.org/mailman/listinfo/python-list

Re: does raw_input() return unicode?

2006-10-10 Thread Fredrik Lundh
Theerasak Photha wrote: >>> So, does raw_input() ever return unicode objects and if >>> so, under what conditions? >> >> At the moment, it only returns unicode objects when invoked >> in the IDLE shell, and only if the character entered cannot >> be represented in the locale's charset. > > Why o

Re: Python component model

2006-10-10 Thread Fredrik Lundh
Edward Diener No Spam wrote: >> Why not propose something. That is the easiest way to get things moving. > > How does one do that ? Propose something here on this NG or is there > some other official way ? the first step towards a successful Python proposal is to stop quoting the entire thread

Re: How to find a file or a device is currently used by which process or which program ?

2006-10-10 Thread Gabriel Genellina
At Tuesday 10/10/2006 05:17, [EMAIL PROTECTED] wrote: When I want to uninstall my usb disk on windows, the operating systems sometimes tells me the device is being used by other program. But I can't find which program is using it. Can I do this using python ? I don't know with Python, but Proc

Re: does raw_input() return unicode?

2006-10-10 Thread Theerasak Photha
On 10/10/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Martin was probably thinking of the standard distribution. > > The 2.3 note says that "raw_input() *can* return Unicode", not that it > "should" or "must" do it. Practically speaking, at the heart of the matter: as of Python 2.5 final, does

Converting MSWord Docs to PDF

2006-10-10 Thread [EMAIL PROTECTED]
Hello, this is my first message sent to the python-list, so forgive any irregularities. is it possible to convert MSword docs into PDF format? i told my future employer that i could, because i knew of the COM scripting abilites that activePython had. and i knew there was modules for PDF creation

Re: Python component model

2006-10-10 Thread Diez B. Roggisch
Paul Rubin schrieb: > "Nick Vatamaniuc" <[EMAIL PROTECTED]> writes: >> Python does not _need_ a component model just as you don't _need_ a RAD >> IDE tool to write Python code. The reason for having a component model >> or a RAD IDE tool is to avoid writing a lot of boiler plate code. > > It's als

Re: Python component model

2006-10-10 Thread Fredrik Lundh
Nick Vatamaniuc wrote: > At the same time one could claim that Python already has certain > policies that makes it seem as if it has a component model. every Python object surely qualifies as a component, for any non-myopic definition of that word, and everything inside a Python program is an o

Re: Tkinter: Making a window disappear

2006-10-10 Thread Eric Brunel
On Mon, 09 Oct 2006 11:08:39 +0200, Claus Tondering <[EMAIL PROTECTED]> wrote: > I just solved the problem myself: > > I wrote: >> self.destroy() > > Writing "self.master.destroy()" instead does the trick. As an alternative (which is better IMHO), you may consider specializing Top

Re: Where is Python in the scheme of things?

2006-10-10 Thread Theerasak Photha
On 10/9/06, Magnus Lycka <[EMAIL PROTECTED]> wrote: > gord wrote: > > As a complete novice in the study of Python, I am asking myself where this > > language is superior or better suited than others. For example, all I see in > > the tutorials are lots of examples of list processing, arithmetic > >

Re: does raw_input() return unicode?

2006-10-10 Thread Fredrik Lundh
Theerasak Photha wrote: > Practically speaking, at the heart of the matter: as of Python 2.5 > final, does or can raw_input() return Unicode under the appropriate > circumstances, according to user wishes? didn't Martin just answer that question? -- http://mail.python.org/mailman/listinfo/pyt

Re: Everything is a distributed object

2006-10-10 Thread Diez B. Roggisch
Martin Drautzburg schrieb: > Hello all, > > I've seen various attempts to add distributed computing capabilities on top > of an existing language. For a true distributed system I would expect it to > be possible to instantiate objects of a remote class or to subclass a > remote class and other stu

Re: OT: Sarcasm and irony

2006-10-10 Thread bryan rasmussen
On 10/10/06, Steve Holden <[EMAIL PROTECTED]> wrote: > bryan rasmussen wrote: > E. g. [in Java there is] no operator overloading, but "+" > concatenation of strings. What if you'd like to implement your own > string-derived class? Ah, never mind. Operator overloading is > bad(tm) ;)

Re: does raw_input() return unicode?

2006-10-10 Thread Theerasak Photha
On 10/10/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Theerasak Photha wrote: > > > Practically speaking, at the heart of the matter: as of Python 2.5 > > final, does or can raw_input() return Unicode under the appropriate > > circumstances, according to user wishes? > > didn't Martin just answer

Re: Converting MSWord Docs to PDF

2006-10-10 Thread Sybren Stuvel
[EMAIL PROTECTED] enlightened us with: > is it possible to convert MSword docs into PDF format? Yes, it is. check out http://www.stuvel.eu/ooo-python#header3. It's about converting Excel to PDF, but it equally applies to MSWord. Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ -- htt

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Oct 10)

2006-10-10 Thread Stephan Diehl
Cameron Laird wrote: > goon summarizes WSGI resources: > http://groups.google.com/group/comp.lang.python/msg/f7d67bc039748792 > THE wsgi resource at the moment is http://wsgi.org . (sorry, I've missed the original thread) Stephan -- http://mail.python.org/mailman/listinfo/python-lis

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Roel Schroeven
Hendrik van Rooyen schreef: > "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: > > >> In message <[EMAIL PROTECTED]>, Hendrik van >> Rooyen wrote: >> >>> "Lawrence D'Oliveiro" <[EMAIL PROTECTED]> wrote: >>> >>> 8< >>> I wonder if we nee

Re: Newbie - Stuck

2006-10-10 Thread Theerasak Photha
On 10/9/06, Christoph Haas <[EMAIL PROTECTED]> wrote: > Yes, I know Perl makes "0" from anything that doesn't look like a number > but Python's principle is to never hide errors while Perl makes certain > assumptions. So Python prefers to complain. And raises real exceptions moreover, instead of

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Theerasak Photha
On 10/7/06, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > Just because most Western designers of databases do it wrong doesn't mean > that a) you should do it wrong, or b) they will continue to do it wrong > into the future, as increasing numbers of those designers come from Asian > and other n

Re: OT: Sarcasm and irony

2006-10-10 Thread Steve Holden
bryan rasmussen wrote: > On 10/10/06, Steve Holden <[EMAIL PROTECTED]> wrote: > >>bryan rasmussen wrote: >> >>E. g. [in Java there is] no operator overloading, but "+" >>concatenation of strings. What if you'd like to implement your own >>string-derived class? Ah, never mind. Operator

Re: operator overloading + - / * = etc...

2006-10-10 Thread Theerasak Photha
On 9 Oct 2006 11:27:40 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > I honestly don't see why "variable" would be an inappropiate word to use. > AFAIU, python assignment seems to behave much like lisp and smalltalk > and I never heard that those communities found the word "variable" > inappropia

Jython Sounds Examples

2006-10-10 Thread Ian Vincent
I have been hunting around Google hits for any source code examples of using sound (preferably WAV) under Jython with no success (minus several using other toolkits such as JNRI and JES). Does anybody know if any such examples exist and if so, I would be grateful for a pointer in their directio

Re: A problem about File path encode

2006-10-10 Thread Gabriel Genellina
At Monday 9/10/2006 22:14, Kevien Lee wrote: There is a problem about File path encode ,when i want to parse an xml file. xmldoc=minidom.parse("D:\Downloads\1.xml") IOError: [Errno 2] No such file or directory: 'D:\\Downloads\x01.xml' See the red line.the file path"D:\Downloads\1.xml" au

Re: Python component model

2006-10-10 Thread Steve Holden
Diez B. Roggisch wrote: > Paul Rubin schrieb: > >>"Nick Vatamaniuc" <[EMAIL PROTECTED]> writes: >> >>>Python does not _need_ a component model just as you don't _need_ a RAD >>>IDE tool to write Python code. The reason for having a component model >>>or a RAD IDE tool is to avoid writing a lot of

Re: Everything is a distributed object

2006-10-10 Thread Steve Holden
Martin Drautzburg wrote: > Hello all, > > I've seen various attempts to add distributed computing capabilities on top > of an existing language. For a true distributed system I would expect it to > be possible to instantiate objects of a remote class or to subclass a > remote class and other stuff

Re: Converting MSWord Docs to PDF

2006-10-10 Thread Steve Holden
Sybren Stuvel wrote: > [EMAIL PROTECTED] enlightened us with: > >>is it possible to convert MSword docs into PDF format? > > > Yes, it is. check out http://www.stuvel.eu/ooo-python#header3. It's > about converting Excel to PDF, but it equally applies to MSWord. > However, this assumed perfect i

Re: People's names (was Re: sqlite3 error)

2006-10-10 Thread Steve Holden
Theerasak Photha wrote: > On 10/7/06, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > > >>Just because most Western designers of databases do it wrong doesn't mean >>that a) you should do it wrong, or b) they will continue to do it wrong >>into the future, as increasing numbers of those designer

Re: operator overloading + - / * = etc...

2006-10-10 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-08 11:44:18 +0100: > That's because assignment isn't an operator - that's why (for example) > > print x = 33 > > would be a syntax error. This is a deliberate design decision about > which, history shows, there is little use complaining. Just to clarify: n

Re: Converting MSWord Docs to PDF

2006-10-10 Thread Alan Franzoni
Il Tue, 10 Oct 2006 01:27:35 -0700, [EMAIL PROTECTED] ha scritto: > is it possible to convert MSword docs into PDF format? > i told my future employer that i could, because i knew > of the COM scripting abilites that activePython had. > and i knew there was modules for PDF creation such as > repor

Re: OT: Sarcasm and irony

2006-10-10 Thread Max M
bryan rasmussen skrev: > On 10/10/06, Steve Holden <[EMAIL PROTECTED]> wrote: >> ... in America. It's well-known among Brits that Americans don't >> understand irony. They can be pretty oblique when it come to sarcasms >> too, for that matter. > > is that 'in America' meant to be an addendum

Re: operator overloading + - / * = etc...

2006-10-10 Thread Fredrik Lundh
Roman Neuhauser wrote: > People who complain often fail to see how > >x = foo() >while x: >process(x) >x = foo() > >is safer than > >while x = foo(): >process(x) that's spelled: for x in foo(): process(x) in Python, or, if foo() just refuses b

Re: OT: Sarcasm and irony

2006-10-10 Thread bryan rasmussen
On 10/10/06, Max M <[EMAIL PROTECTED]> wrote: > bryan rasmussen skrev: > > On 10/10/06, Steve Holden <[EMAIL PROTECTED]> wrote: > > >> ... in America. It's well-known among Brits that Americans don't > >> understand irony. They can be pretty oblique when it come to sarcasms > >> too, for that matte

Re: operator overloading + - / * = etc...

2006-10-10 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > or for the perhaps-overly-clever hackers, > > for x in iter(lambda: foo() or None, None): > process(x) for x in takewhile(foo() for _ in repeat(None)): process (x) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-10 Thread Bruno Desthuilliers
Marc 'BlackJack' Rintsch wrote: (snip) Python itself is a RAD tool. +1 QOTW -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for p in '[EMAIL PROTECTED]'.split('@')])" -- http://mail.python.org/mailman/listinfo/python-list

Re: operator overloading + - / * = etc...

2006-10-10 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > or for the perhaps-overly-clever hackers, > > for x in iter(lambda: foo() or None, None): > process(x) for x in takewhile(bool, (foo() for _ in repeat(None))): process(x) Meh, both are ugly. -- http://mail.python.org/mailman/listi

Re: People's names

2006-10-10 Thread Jorge Godoy
"Theerasak Photha" <[EMAIL PROTECTED]> writes: > Also 'da' for Portuguese, which means roughly same as > Nederlands/Vlaams. Maybe. As usual: IANAE. It looks like the same but at least here in Brasil it isn't considered for sorting ("da Silva" should be sorted under "Silva", "de Souza" under "Souz

Re: operator overloading + - / * = etc...

2006-10-10 Thread Antoon Pardon
On 2006-10-10, Paul Rubin wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> writes: >> or for the perhaps-overly-clever hackers, >> >> for x in iter(lambda: foo() or None, None): >> process(x) > > for x in takewhile(foo() for _ in repeat(None)): >process (x) >>> for x in takewhile(foo

Re: People's names

2006-10-10 Thread Jorge Godoy
Steve Holden <[EMAIL PROTECTED]> writes: > It seems like some sort of free text search on a "full name" field looks like > the only realistic globally-acceptable (?) option. This is what we opted doing. Normalization to this level wouldn't add much since there are a lot of "Smith"s that aren't r

Re: Python component model

2006-10-10 Thread Diez B. Roggisch
>> Nope. Things like CORBA and COM do have that property, but e.g. the Java >> beans spec has only a meaning inside the VM. Not sure about .NET, but I >> can imagine there it's the same thing. >> > Well the .NET component model is specifically designed to be > cross-language, but that's a feature

Re: Python component model

2006-10-10 Thread Paul Boddie
Edward Diener No Spam wrote: > > In the typical RAD development environment, a particular component model > allows one to drop components, which are classes corresponding to a > particular inner representation which tells the development environment > what are the "properties" and "events" of that

How to share session with IE

2006-10-10 Thread zdp
Hello! I need to process some webpages of a forum which is powered by discuz!. When I login, there are some options about how long to keep the cookies: forever, month, week, et al. If I choose forever, I don't need to login each time, and When I open the internet explorer I can access any pages d

Re: Python component model

2006-10-10 Thread Steve Holden
Diez B. Roggisch wrote: [...] >>Just the same, one can use IronPython to call components written in >>other languages. And, I believe, vice versa. > > > Sure, as I can do it in jython. But the key point is: can your ordinary > python-object be published as a component? At least for jython I can >

Re: operator overloading + - / * = etc...

2006-10-10 Thread Paul Rubin
Antoon Pardon <[EMAIL PROTECTED]> writes: > >>> for x in takewhile(foo() for _ in repeat(None)): > ... print x > ... > Traceback (most recent call last): > File "", line 1, in ? > TypeError: takewhile expected 2 arguments, got 1 Yeah, I cancelled and posted a followup for x in takewhile(boo

Re: How to share session with IE

2006-10-10 Thread Bernard
Hello Dapu, You can do the same thing as IE on your forum using urllib2 and cookielib. In short you need to code a small webcrawler. I can give you my browser module if necessary. You might not have the time to fiddle with the coding part or my browser module so you can also use this particularly

Re: operator overloading + - / * = etc...

2006-10-10 Thread Antoon Pardon
On 2006-10-10, Paul Rubin wrote: > "Fredrik Lundh" <[EMAIL PROTECTED]> writes: >> or for the perhaps-overly-clever hackers, >> >> for x in iter(lambda: foo() or None, None): >> process(x) > > for x in takewhile(bool, (foo() for _ in repeat(None))): > process(x) > > Meh, both ar

Re: Python component model

2006-10-10 Thread Michael Sparks
Edward Diener No Spam wrote: > Michael wrote: > > Edward Diener No Spam wrote: > > > >> Has there ever been, or is there presently anybody, in the Python > >> developer community who sees the same need and is working toward that > >> goal of a common component model in Python, blessed and encourage

Linting python code...

2006-10-10 Thread Andrew Markebo
Alalalala lint.. alalalala lint... Ehm :-) Are there any python-code linter out there - or the code is so easy to write that it always is so perfekt? :-) /Andy -- Don't walk in front of me, I might be unable to follow you. Don't walk after me, I might be unable to lead you. Just w

Re: Linting python code...

2006-10-10 Thread Christoph Haas
On Tuesday 10 October 2006 14:06, Andrew Markebo wrote: > Are there any python-code linter out there PyLint (http://www.logilab.org/projects/pylint) PyChecker (http://pychecker.sf.net) Christoph -- http://mail.python.org/mailman/listinfo/python-list

Re: Linting python code...

2006-10-10 Thread skip
Christoph> On Tuesday 10 October 2006 14:06, Andrew Markebo wrote: >> Are there any python-code linter out there Christoph> PyLint (http://www.logilab.org/projects/pylint) Christoph> PyChecker (http://pychecker.sf.net) New kid on the block: PyFlakes http://divmod.org/trac/wi

Re: OT: Sarcasm and irony

2006-10-10 Thread Max M
bryan rasmussen skrev: > Well irony originally started out as a very specific concept of the > Ancient Greek drama, this is what we nowadays refer to as Dramatic > Irony but it is the original irony. Irony then became a literary > concept for plot elements similar to Dramatic irony in books, or a

Re: operator overloading + - / * = etc...

2006-10-10 Thread Paul Rubin
Antoon Pardon <[EMAIL PROTECTED]> writes: > Suppose one has the following intention in mind: > > while x = setup(): > if y = pre_process() in ErrorCondition: > break > post_process(y) > else: > NormalTermination() Maybe we need a new itertools function: def forever(func,

Tkinter: populating Mac Help menu?

2006-10-10 Thread Edward K. Ream
Hello all, Creating a 'Help' menu 'by hand' on the Mac does not work, or rather, it creates a *second* Help menu. There are hints about how to do this at: http://tkinter.unpythonic.net/wiki/Widgets/Menu but so far those hints have not been enough :-) The following statements are the r

Using Gnutar to remove a list of files

2006-10-10 Thread cmacn024
Hi folks, I've got a question for yas. I'm trying to write code that will open up a gzipped tar file using gnutar, and copy the list of files(including their directories) to a list variable in python. From there, I want to go through the list and delete those files from my system. That part is e

Re: Using Gnutar to remove a list of files

2006-10-10 Thread Gerrit Holl
On 2006-10-10 14:35:30 +0200, [EMAIL PROTECTED] wrote: > Hi folks, I've got a question for yas. I'm trying to write code that > will open up a gzipped tar file using gnutar, and copy the list of > files(including their directories) to a list variable in python. From > there, I want to go through

Re: Dive Into Java?

2006-10-10 Thread Bjoern Schliessmann
Dan Bishop wrote: > On Oct 9, 11:40 am, Bjoern Schliessmann >> String eggs = new String(); >> >> The latter seems totally unnecessary to me, as well as being too >> verbose > It is! All you have to write is > > String eggs = ""; > > Unfortunately, the other object types don't have literals.

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Nick Vatamaniuc wrote: > Edward Diener No Spam wrote: >> Michael wrote: > > Python does not _need_ a component model just as you don't _need_ a RAD > IDE tool to write Python code. The reason for having a component model > or a RAD IDE tool is to avoid writing a lot of boiler plate code. > Python

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Paul Rubin wrote: > "Nick Vatamaniuc" <[EMAIL PROTECTED]> writes: >> Python does not _need_ a component model just as you don't _need_ a RAD >> IDE tool to write Python code. The reason for having a component model >> or a RAD IDE tool is to avoid writing a lot of boiler plate code. > > It's also

Re: Using Gnutar to remove a list of files

2006-10-10 Thread Rob Williscroft
wrote in news:[EMAIL PROTECTED] in comp.lang.python: > Hi folks, I've got a question for yas. I'm trying to write code that > will open up a gzipped tar file using gnutar, and copy the list of > files(including their directories) to a list variable in python. From > there, I want to go through

Re: Python component model

2006-10-10 Thread Richard Brodie
"Edward Diener No Spam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Thinking in Java or C++" as opposed to Python does not mean anything to me > as a general > statement. I am well aware of the difference between statically and > dynamically typed > languages but why this

Re: Using Gnutar to remove a list of files

2006-10-10 Thread cmacn024
Yeah, I got it working with tarfile. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Dive Into Java?

2006-10-10 Thread Diez B. Roggisch
>> For example: the overloading of assignment operators, casting >> operators, copy constructors and the like that, and the fact that >> one of them is possibly chosen in absence of the other. > > Isn't the overloading concept an effect of type strength? In Java, > you'd have to overload them too.

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Diez B. Roggisch wrote: > Paul Rubin schrieb: >> "Nick Vatamaniuc" <[EMAIL PROTECTED]> writes: >>> Python does not _need_ a component model just as you don't _need_ a RAD >>> IDE tool to write Python code. The reason for having a component model >>> or a RAD IDE tool is to avoid writing a lot of bo

Re: A curses-game I need help with.

2006-10-10 Thread Rainy
Gasten wrote: > Rob Wolfe wrote: > > > while running: > > > key_command = game.mainwin.getch() > > > > # I've moved erasing messages here > > game.msg.ereasMsg() > > Man... I didn't even think of that. It's embarassing. Thanks. It works > perfect now. Again, thanks.

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Steve Holden wrote: > Diez B. Roggisch wrote: > [...] >>> Just the same, one can use IronPython to call components written in >>> other languages. And, I believe, vice versa. >> >> >> Sure, as I can do it in jython. But the key point is: can your ordinary >> python-object be published as a componen

Re: Python component model

2006-10-10 Thread Fredrik Lundh
"Edward Diener No Spam" wrote: > A RAD IDE tool to hook up components into an application or library ( > module in Python ) has nothing to do with terseness and everything to do > with ease of programming. python already has excellent and ridiculously easy-to-program ways to hook things up. afte

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Fredrik Lundh wrote: > Nick Vatamaniuc wrote: > >> At the same time one could claim that Python already has certain >> policies that makes it seem as if it has a component model. > > every Python object surely qualifies as a component, for any non-myopic > definition of that word, and everything

Re: OT: Sarcasm and irony

2006-10-10 Thread bryan rasmussen
> bryan rasmussen skrev: > > > Well irony originally started out as a very specific concept of the > > Ancient Greek drama, this is what we nowadays refer to as Dramatic > > Irony but it is the original irony. Irony then became a literary > > concept for plot elements similar to Dramatic irony in b

Logic Programming

2006-10-10 Thread MaR
Yes! The question rears its head once again! ;o) I have done some search and trial and horrors.. (PyLog has vanished?) But I fail to find anything useful when it comes to do Logic Programming (e.g. Prolog'ish) in the context of Python. And yes, I tend to beleive that I need to! No, I do not really

Re: Python component model

2006-10-10 Thread Fredrik Lundh
Edward Diener No Spam wrote: > There's no doubt that Python's excellent introspection mechanism allows > an outside RAD-like tool to inspect the workings of any Python object. > But that does not make it a component model in my original use of the > term on this thread. A RAD tool needs to know wh

Re: Python component model

2006-10-10 Thread Edward Diener No Spam
Michael Sparks wrote: > Edward Diener No Spam wrote: >> Michael wrote: >>> Edward Diener No Spam wrote: >>> Has there ever been, or is there presently anybody, in the Python developer community who sees the same need and is working toward that goal of a common component model in Pyth

Using the imp module

2006-10-10 Thread Claus Tondering
I understand that you can use the imp module to programmatically mimic the "import xyzzy" statement. But is there any way to programmatically mimic the "from xyzzy import *" statment? -- Claus Tondering -- http://mail.python.org/mailman/listinfo/python-list

Re: Dive Into Java?

2006-10-10 Thread Christophe
Diez B. Roggisch a écrit : > The code _generated_ by the java compiler, and the C++ compiler, is not the > issue here. If you as a programmer can write "a" + "b", its fine. Which is > a thing to reach in C++, a bazillion of string-classes have been > written > > > and in C++, you can do: > >

Re: (semi-troll): Is Jython development dead?

2006-10-10 Thread John Roth
Ray wrote: > > So, what is your main concern here that 2.1 doesn't address? Because if > your concern is that you're using a dead thing as your environment, > it's rising from the dead. But if your concern is that you want to use > features in Python 2.4 in Jython, might as well look for other >

Re: Python component model

2006-10-10 Thread Tim Chase
> There's no doubt that Python's excellent introspection mechanism allows > an outside RAD-like tool to inspect the workings of any Python object. > But that does not make it a component model in my original use of the > term on this thread. A RAD tool needs to know what properties and events >

Re: Logic Programming

2006-10-10 Thread Boris Borcic
I believe some work has been down in pypy to bring logic programming to python. You might ask pypy-dev Google leads to http://codespeak.net/pypy/dist/pypy/doc/howto-logicobjspace-0.9.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Using the imp module

2006-10-10 Thread Fredrik Lundh
Claus Tondering wrote: >I understand that you can use the imp module to programmatically mimic > the "import xyzzy" statement. "imp" sounds like overkill for that purpose; the usual way is do do that is to explicitly call __import__: xyzzy = __import__("xyzzy") > But is there any way to pro

Re: Using the imp module

2006-10-10 Thread Steve Holden
Claus Tondering wrote: > I understand that you can use the imp module to programmatically mimic > the "import xyzzy" statement. > > But is there any way to programmatically mimic the "from xyzzy import > *" statment? > See the docs for __import__(). I think imp is pretty much dead nowadays. reg

Re: Encode differences between idle python and python

2006-10-10 Thread pretoriano_2001
Gabriel, Peter: Many thanks for your clear answers!! Best regards. Vizcayno -- http://mail.python.org/mailman/listinfo/python-list

Re: Python component model

2006-10-10 Thread Diez B. Roggisch
> While I understand dynamic typing, I still think it is possible to > create attributes in a Python component model which could tell a RAD > tool what type the attribute will encompass for the purpose of > properties and events. Obviously a "name, type" tuple, among other > possible information wo

  1   2   3   >