Release: DirectPython 0.6

2006-10-10 Thread Heikki Salo
A new version of DirectPython is now available at http://directpython.sourceforge.net/ What is it? --- DirectPython is a C++ extension to the Python programming language which provides basic access to DirectX (9.0c) API, including Direct3D, DirectSound, DirectShow and DirectInput. The

Re: Encode differences between idle python and python

2006-10-10 Thread Peter Otten
[EMAIL PROTECTED] wrote: u=u'áéíóú' u u'\xe1\xe9\xed\xf3\xfa' print u áéíóú a=u.encode('latin-1') a '\xe1\xe9\xed\xf3\xfa' print a ßÚݾ· That means that Python is better at guessing the correct encoding than you are. Here's how you can make it share its secrets: import sys

Re: Can't get around IndexError: list index out of range

2006-10-10 Thread Steve Holden
MonkeeSage wrote: On Oct 9, 2:31 am, Steve Holden [EMAIL PROTECTED] wrote: Keep right on guessing. I hope I'm not offending one whom I consider to be much more skilled and versed than I am, not only in python, but in programming in general; but I must say: it seems you are being rather

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. --

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

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 the bin/binte part

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, and is in

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

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 information.

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: The following line of lightly

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 remote class

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 Windows. The new

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 --

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 sarcasm. Well irony

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 released for

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 naturally seems to ask for a

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 what I

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 --

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 more as sarcasm. Well

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 be

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 encouraged by those

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* ?? --

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 --

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 written in

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 only IDLE? Does

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 in

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

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 or can

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 also so that

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

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 Toplevel

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? /F --

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 stuff

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) ;) = Irony, definitely

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 that

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/ --

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-list

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 need another middle field for holding

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

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 overloading is bad(tm) ;) =

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 inappropiate to

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

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 pathD:\Downloads\1.xml auto

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 boiler plate code.

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 like

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 import of

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 designers come

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: not

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

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 to what I

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 be turned

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 matter. is that

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. --

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 Souza, de Melo

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

2006-10-10 Thread Antoon Pardon
On 2006-10-10, Paul Rubin http 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() for _ in

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 Smiths that aren't

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 of

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

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 say no,

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 stdin, line 1, in ? TypeError: takewhile expected 2 arguments, got 1 Yeah, I cancelled and posted a followup for x in takewhile(bool,

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 http 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 are ugly.

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 encouraged by those

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

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

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, *args,

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

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

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 the

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. LOL. Sun likes

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 is

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 so that

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 should

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. Or am I

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 boiler plate

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. Gasten By

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 component? At least for

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. after

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 inside

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 books, or

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

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 what

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 Python, blessed and

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: char *a =

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

  1   2   3   >