Hamburg Pythoneers Monthly Meeting: May, 16

2007-05-15 Thread Bastian Bowe
+ Hamburg Python User Group April Meeting + I am pleased to announce our next user group meeting: Wednesday, May 16, 2007 at 7:00pm Location: DDD Design GmbH, Jarrestrasse 46, 22303 Hamburg. Berthold Höllmann talks about two topics: - numpy - The fundamental package needed for

PyPy EU project period finishing up

2007-05-15 Thread holger krekel
Hi all, puh! ... The 28 months of the PyPy[*] EU project period have been an intense experience on many levels. We wrote a summary of results, development methods and experiences here: http://codespeak.net/pypy/extradoc/eu-report/PYPY-EU-Final-Activity-Report.pdf and are now heading for the

Pydev 1.3.3 Released

2007-05-15 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.3 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions:

removing spaces between 2 names

2007-05-15 Thread saif . shakeel
Hi, Suppose i have a string stored in variable,how do i remove the space between them,like if i have the name: USDT request in a variable.i need USDTrequest,without any space . Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: removing spaces between 2 names

2007-05-15 Thread Steven Howe
[EMAIL PROTECTED] wrote: Hi, Suppose i have a string stored in variable,how do i remove the space between them,like if i have the name: USDT request in a variable.i need USDTrequest,without any space . Thanks from string import replace st = 'abcd acdfgxtit'

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
Paul Rubin wrote: Stefan Behnel [EMAIL PROTECTED] writes: But then, where's the problem? Just stick to accepting only patches that are plain ASCII *for your particular project*. There is no feature that has ever been proposed for Python, that cannot be supported with this argument. If you

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
Paul Rubin wrote: Stefan Behnel [EMAIL PROTECTED] writes: But then, where's the problem? Just stick to accepting only patches that are plain ASCII *for your particular project*. There is no feature that has ever been proposed for Python, that cannot be supported with this argument. If you

Re: Sorting troubles

2007-05-15 Thread Terry Reedy
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | Teach said that the optimal threshold in hybrids is 14-16, but guess | he wasn't so right after all =\\ The overhead of using insertion sort | on a longer list turns out to be faster than just piling on | recursions, when confronted

Re: removing spaces between 2 names

2007-05-15 Thread 7stud
On May 15, 12:14 am, Steven Howe [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Hi, Suppose i have a string stored in variable,how do i remove the space between them,like if i have the name: USDT request in a variable.i need USDTrequest,without any space . Thanks

Re: Trying to choose between python and java

2007-05-15 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Anthony Irwin wrote: #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute the program with java -jar program.jar There are .egg files but usually distributing a program consisting of several files isn't a

Re: removing spaces between 2 names

2007-05-15 Thread half . italian
On May 14, 11:00 pm, [EMAIL PROTECTED] wrote: Hi, Suppose i have a string stored in variable,how do i remove the space between them,like if i have the name: USDT request in a variable.i need USDTrequest,without any space . Thanks s = jk hij ght print .join(s.split( ))

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Mon, 14 May 2007 18:30:42 +0200, [EMAIL PROTECTED] wrote: [snip] Can a discussion about support for non-english identifiers (1) conducted in a group where 99.9% of the posters are fluent speakers of english (2), have any chance of being objective or fair? Agreed. Although probably

Re: Trying to choose between python and java

2007-05-15 Thread Terry Reedy
Anthony Irwin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | #2 What database do people recommend for using with python that is | easy to distribute across linux, mac, windows. Check out the sqlite3 module. (But I have not used it yet). | #5 someone said that they used to use

Re: Trying to choose between python and java

2007-05-15 Thread Steven Howe
Anthony Irwin wrote: Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 07:15:21 +0200, ZeD [EMAIL PROTECTED] wrote: Neil Hodgson wrote: Ada 2005 allows Unicode identifiers and even includes the constant '?' in Ada.Numerics. ^^^ this. is. cool. Yeah, right... The problems begin... Joke aside, this just means that I won't ever be

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
Eric Brunel wrote: On Tue, 15 May 2007 07:15:21 +0200, ZeD [EMAIL PROTECTED] wrote: Neil Hodgson wrote: Ada 2005 allows Unicode identifiers and even includes the constant '?' in Ada.Numerics. ^^^ this. is. cool. Yeah, right... The problems begin... Joke aside, this just means

Distributing programs depending on third party modules.

2007-05-15 Thread Tina I
Hi list, Is there a preferred way to distribute programs that depends on third party modules like PyQt, Beautifulsoup etc? I have used setuptools and just having the setup script check for the existence of the required modules. If they're not found I have it exit with a message that it need

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Antoon Pardon
On 2007-05-15, Paul Rubin http wrote: Stefan Behnel [EMAIL PROTECTED] writes: But then, where's the problem? Just stick to accepting only patches that are plain ASCII *for your particular project*. There is no feature that has ever been proposed for Python, that cannot be supported with

Re: removing spaces between 2 names

2007-05-15 Thread Ant
On May 15, 7:41 am, 7stud [EMAIL PROTECTED] wrote: On May 15, 12:14 am, Steven Howe [EMAIL PROTECTED] wrote: ... from string import replace st = 'abcd acdfgxtit' st.replace(' ','') 'abcdacdfgxtit' ... The methods in the string module are deprecated. Skip the import and use a

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Duncan Booth
Bruno Desthuilliers [EMAIL PROTECTED] wrote: Stefan Behnel a écrit : Bruno Desthuilliers wrote: but CS is english-speaking, period. That's a wrong assumption. I've never met anyone *serious* about programming and yet unable to read and write CS-oriented technical English. I don't

Re: Trying to choose between python and java

2007-05-15 Thread Paul Melis
Anthony Irwin wrote: Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Hendrik van Rooyen
Anders J. Munch wrote: Hendrik van Rooyen wrote: And we have been through the Macro thingy here, and the consensus seemed to be that we don't want people to write their own dialects. Macros create dialects that are understood only by the three people in your project group. It's

Re: [ANN] Update to Python Quick Reference Card (for Python 2.4) (v0.67)

2007-05-15 Thread jean-michel bain-cornu
PC-cillin flagged this as a dangerous web site. An explanation would be fine about *why* the web site is flagged as dangerous... -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to choose between python and java

2007-05-15 Thread Ant
On May 15, 6:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute the program with java -jar program.jar As someone else has said, Python has eggs:

Re: Trying to choose between python and java

2007-05-15 Thread half . italian
#3 Is there any equivalent to jfreechart and jfreereport (http://www.jfree.org for details) in python. ChartDirector http://www.advsofteng.com/download.html Again, not free for commercial use, but very versatile. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing programs depending on third party modules.

2007-05-15 Thread Bruno Desthuilliers
Tina I a écrit : Hi list, Is there a preferred way to distribute programs that depends on third party modules like PyQt, Beautifulsoup etc? I have used setuptools and just having the setup script check for the existence of the required modules. If they're not found I have it exit with a

Re: Trying to choose between python and java

2007-05-15 Thread Bruno Desthuilliers
Anthony Irwin a écrit : Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can

Re: How to calculate definite integral with python

2007-05-15 Thread J. Robertson
[EMAIL PROTECTED] wrote: I'm trying to do some integral calculation. I have searched the web, but haven't found any useful information. Will somebody point me to the right resources on the web for this job ? Thanks a lot. ps. Can numpy be used for this job?* * It can be done with

Re: Trying to choose between python and java

2007-05-15 Thread Bruno Desthuilliers
Steven Howe a écrit : (snip) Flame war? Here amongst all the reasonable adults programmers? It never happens. Lol ! +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 09:38:38 +0200, Duncan Booth [EMAIL PROTECTED] wrote: Recently there has been quite a bit of publicity about the One Laptop Per Child project. The XO laptop is just beginning rollout to children and provides two main programming environments: Squeak and Python. It is an

Re: removing spaces between 2 names

2007-05-15 Thread Steven D'Aprano
On Mon, 14 May 2007 23:14:23 -0700, Steven Howe wrote: [EMAIL PROTECTED] wrote: Hi, Suppose i have a string stored in variable,how do i remove the space between them,like if i have the name: USDT request in a variable.i need USDTrequest,without any space . Thanks

Re: Sorting troubles

2007-05-15 Thread Steven D'Aprano
On Mon, 14 May 2007 21:45:26 -0700, seyensubs wrote: Ah, I see, just slicing it like that.. nice! But after doing some timing tests, the version that's in place and using partitions is about twice faster than the non hybrid qSort. The hybrid one, with insertionsSort used for smaller lists

Re: Trying to choose between python and java

2007-05-15 Thread Gabriel Genellina
En Tue, 15 May 2007 05:43:36 -0300, Bruno Desthuilliers [EMAIL PROTECTED] escribió: Is code written today likely to still work in 5+ years or do they depreciate stuff and you have to update? I still use code written more than five years ago. Just as an example, PIL (Python Imaging Library)

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
Eric Brunel wrote: You have a point here. When learning to program, or when programming for fun without any intention to do something serious, it may be better to have a language supporting native characters in identifiers. My problem is: if you allow these, how can you prevent them from going

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Anton Vredegoor
Duncan Booth wrote: Recently there has been quite a bit of publicity about the One Laptop Per Child project. The XO laptop is just beginning rollout to children and provides two main programming environments: Squeak and Python. It is an exciting thought that that soon there will be

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Steven D'Aprano
On Sun, 13 May 2007 23:00:16 -0700, Alex Martelli wrote: Steven D'Aprano [EMAIL PROTECTED] wrote: automated -- if the patch uses an unexpected #-*- coding: blah line, or No need -- a separate PEP (also by Martin) makes UTF-8 the default encoding, and UTF-8 can encode any Unicode

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Steven D'Aprano
On Sun, 13 May 2007 23:00:17 -0700, Alex Martelli wrote: Aldo Cortesi [EMAIL PROTECTED] wrote: Thus spake Steven D'Aprano ([EMAIL PROTECTED]): If you're relying on cursory visual inspection to recognize harmful code, you're already vulnerable to trojans. What a daft thing to say. How

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Thorsten Kampe
* Eric Brunel (Tue, 15 May 2007 10:52:21 +0200) On Tue, 15 May 2007 09:38:38 +0200, Duncan Booth [EMAIL PROTECTED] wrote: Recently there has been quite a bit of publicity about the One Laptop Per Child project. The XO laptop is just beginning rollout to children and provides two main

Re: Subprocess with and without shell

2007-05-15 Thread Nick Craig-Wood
George Sakkis [EMAIL PROTECTED] wrote: I'm trying to figure out why Popen captures the stderr of a specific command when it runs through the shell but not without it. IOW: cmd = [my_exe, arg1, arg2, ..., argN] if 1: # this captures both stdout and stderr as expected pipe = Popen('

Re: Trying to choose between python and java

2007-05-15 Thread Nick Craig-Wood
Anthony Irwin [EMAIL PROTECTED] wrote: #4 If I write a program a test it with python-wxgtk2.6 under linux are the program windows likely to look right under windows and mac? wx adopts the native look and feel for the platform. I've used it under linux and windows where it looks fine! I've

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Steven D'Aprano
On Sun, 13 May 2007 21:21:57 -0700, Paul Rubin wrote: Steven D'Aprano [EMAIL PROTECTED] writes: password_is_correct is all ASCII. How do you know that? What steps did you take to ascertain it? Why would I care? I don't bother to check it is ASCII because it makes no difference whether it

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Duncan Booth
Eric Brunel [EMAIL PROTECTED] wrote: On Tue, 15 May 2007 09:38:38 +0200, Duncan Booth [EMAIL PROTECTED] wrote: Recently there has been quite a bit of publicity about the One Laptop Per Child project. The XO laptop is just beginning rollout to children and provides two main programming

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Duncan Booth
Anton Vredegoor [EMAIL PROTECTED] wrote: Whatever you make of my position I would appreciate if you'd not directly conclude that I'm just being arrogant or haven't thought about the matter if I am of a different opinion than you. Sorry, I do apologise if that came across as a personal attack

Iron Python

2007-05-15 Thread Jon Harrop
Anybody tried it? -- Dr Jon D Harrop, Flying Frog Consultancy The F#.NET Journal http://www.ffconsultancy.com/products/fsharp_journal/?usenet -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 11:25:50 +0200, Thorsten Kampe [EMAIL PROTECTED] wrote: * Eric Brunel (Tue, 15 May 2007 10:52:21 +0200) On Tue, 15 May 2007 09:38:38 +0200, Duncan Booth [EMAIL PROTECTED] wrote: Recently there has been quite a bit of publicity about the One Laptop Per Child

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: I agree that code posted to comp.lang.python should use english identifiers and that it is worth considering to use english identifiers in open source code that is posted to a public OS project site. Note that I didn't say ASCII identifiers but plain english identifiers.

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Marc 'BlackJack' Rintsch schrieb: You find it in the sources by the line number from the traceback and the letters can be copy'n'pasted if you don't know how to input them with your keymap or keyboard layout. Typing them is not the only problem. They might not even *display* correctly if you

Re: Iron Python

2007-05-15 Thread Jarek Zgoda
Jon Harrop napisał(a): Anybody tried it? Me. -- Jarek Zgoda We read Knuth so you don't have to. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: Marc 'BlackJack' Rintsch schrieb: You find it in the sources by the line number from the traceback and the letters can be copy'n'pasted if you don't know how to input them with your keymap or keyboard layout. Typing them is not the only problem. They might not even

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Steven D'Aprano schrieb: How is that different from misreading disk_burnt = True as disk_bumt = True? In the right (or perhaps wrong) font, like the ever-popular Arial, the two can be visually indistinguishable. Or call versus cal1? That is the wrong question. The right question is: Why do you

Re: Iron Python

2007-05-15 Thread John Machin
On May 15, 8:05 pm, Jarek Zgoda [EMAIL PROTECTED] wrote: Jon Harrop napisa³(a): Anybody tried it? Me. Me too. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: Ok, but then maybe that code just will not become Open Source. There's a million reasons code cannot be made Open Source, licensing being one, lack of resources being another, bad implementation and lack of documentation being important also. But that won't change by

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Aldo Cortesi
Thus spake Steven D'Aprano ([EMAIL PROTECTED]): Me, I try to understand a patch by reading it. Call me old-fashioned. I concur, Aldo. Indeed, if I _can't_ be sure I understand a patch, I don't accept it -- I ask the submitter to make it clearer. Yes, but there is a huge gulf between

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread HYRY
- should non-ASCII identifiers be supported? why? Yes. I want this for years. I am Chinese, and teaching some 12 years old children learning programming. The biggest problem is we cannot use Chinese words for the identifiers. As the program source becomes longer, they always lost their thought

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: you have failed to do that, in my opinion. All you have presented are vague notions of rare and isolated use-cases. I don't think software development at one of the biggest banks in Germany can be considered a rare and isolated use case. Admittedly, it's done in Java,

Re: Trying to choose between python and java

2007-05-15 Thread Paul Boddie
On 15 May, 07:30, Anthony Irwin [EMAIL PROTECTED] wrote: I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program

Re: time format

2007-05-15 Thread Paul Boddie
On 15 May, 12:29, Alchemist [EMAIL PROTECTED] wrote: How can I format a ctime() object? Can anyone give me (or lead me to) an example of a solution to my problem? Use time.strftime. See... http://docs.python.org/lib/module-time.html#tex2html122 Paul --

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: My personal take on this is: search-and-replace is easier if you used well chosen identifiers. Which is easier if you used your native language for them, which in turn is easier if you can use the proper spellings. I strongly disagree with this. My native language is

HappyDoc, Jython and docstrings

2007-05-15 Thread Ant
Hi All, I'm looking to provide online python documentation for several jython modules: does anyone know if there are tools to create documentation from docstrings that work in Jython? Jython doesn't provide the pydoc module. I've looked into HappyDoc, which is supposed to work on jython as well

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Marco Colombo
On 13 Mag, 17:44, Martin v. Löwis [EMAIL PROTECTED] wrote: - should non-ASCII identifiers be supported? why? Yes. For the same reason non-ASCII source files are supported. - would you use them if it was possible to do so? in what cases? Yes. In the same cases I'd use: 1) non-English comments;

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Steven D'Aprano schrieb: A Python project that uses Urdu identifiers throughout is just as useless to me, from a code-exchange point of view, as one written in Perl. That's because you can't read it, not because it uses Unicode. It could be written entirely in ASCII, and

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: go to is not meant for clarity, nor does it encourage code readability. Some people would argue that position. But that's what this PEP is about. IMHO, this PEP does not encourage clarity and readability, it discourages it. Identifiers which my terminal cannot even

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: Programming is such an English-dominated culture that I even think in English about it. That's sad. My experience is: If you know so little technical English that you cannot come up with well chosen English identifiers, you need to learn it. :) This is not about

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: Sounds like high time for an editor that supports the project team in their work, don't you think? I think your argument about isolated projects is flawed. It is not at all unusual for code that was never intended to be public, whose authors would have sworn that it will

howto get function from module, known by string names?

2007-05-15 Thread dmitrey
hi all, can anyone explain howto get function from module, known by string names? I.e. something like def myfunc(module_string1, func_string2, *args): eval('from ' + module_string1 + 'import ' + func_string2') return func_string2(*args) or, if it's impossible, suppose I have some

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: René Fleschenberg wrote: you have failed to do that, in my opinion. All you have presented are vague notions of rare and isolated use-cases. I don't think software development at one of the biggest banks in Germany can be considered a rare and isolated use case. And

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: Stefan Behnel schrieb: René Fleschenberg wrote: you have failed to do that, in my opinion. All you have presented are vague notions of rare and isolated use-cases. I don't think software development at one of the biggest banks in Germany can be considered a rare and

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: Stefan Behnel schrieb: Sounds like high time for an editor that supports the project team in their work, don't you think? I think your argument about isolated projects is flawed. It is not at all unusual for code that was never intended to be public, whose authors

Re: howto get function from module, known by string names?

2007-05-15 Thread Carsten Haese
On 15 May 2007 04:29:56 -0700, dmitrey wrote hi all, can anyone explain howto get function from module, known by string names? I.e. something like def myfunc(module_string1, func_string2, *args): eval('from ' + module_string1 + 'import ' + func_string2') return

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Thorsten Kampe
* Eric Brunel (Tue, 15 May 2007 11:51:20 +0200) On Tue, 15 May 2007 11:25:50 +0200, Thorsten Kampe [EMAIL PROTECTED] wrote: * Eric Brunel (Tue, 15 May 2007 10:52:21 +0200) On Tue, 15 May 2007 09:38:38 +0200, Duncan Booth [EMAIL PROTECTED] wrote: Recently there has been quite a bit of

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: René Fleschenberg wrote: Programming is such an English-dominated culture that I even think in English about it. That's sad. I don't think so. It enables me to communicate about that topic with a very broad range of other people, which is A Good Thing. My experience

Re: Simulating simple electric circuits

2007-05-15 Thread Bjoern Schliessmann
Bjoern Schliessmann wrote: class Source(object): Little bug: The __init__ method of class Source should look like this. def __init__(self, ID, neighbour = None): self.connections = [] self.ID = ID if neighbour: self.connections.append(neighbour) Regards, Björn -- BOFH excuse

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: Admittedly, it's done in Java, but why should Python fail to support unicode identifiers in the way Java does? Your example does not prove much. The fact that some people use non-ASCII identifiers when they can does not at all prove that it would be a serious problem

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: Stefan Behnel schrieb: Admittedly, it's done in Java, but why should Python fail to support unicode identifiers in the way Java does? Your example does not prove much. The fact that some people use non-ASCII identifiers when they can does not at all prove that it

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: I think your argument about isolated projects is flawed. It is not at all unusual for code that was never intended to be public, whose authors would have sworn that it will never ever be need to read by anyone except themselves, to surprisingly go public at some point in

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Thorsten Kampe
* René Fleschenberg (Tue, 15 May 2007 13:17:13 +0200) Steven D'Aprano schrieb: A Python project that uses Urdu identifiers throughout is just as useless to me, from a code-exchange point of view, as one written in Perl. That's because you can't read it, not because it uses

Pydev 1.3.3 Released

2007-05-15 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.3 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights in Pydev Extensions:

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: Please try to understand that the fact that certain bad practices are possible today is no valid argument for introducing support for more of them! You're not trying to suggest that writing code in a closed area project is a bad habit, are you? What would be bad about

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Stefan Behnel schrieb: 1) Which additional potential for bugs and which hindrances for code-sharing do you see with the with-statement? I'm not sufficiently used to it to understand it immediately when I read it. http://www.python.org/dev/peps/pep-0343/ It is not that hard to grasp. So I

Re: customary way of keeping your own Python and module directory in $HOME

2007-05-15 Thread timw.google
On May 14, 8:55 pm, [EMAIL PROTECTED] wrote: On May 14, 6:00 pm, James Stroud [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [snip], but on *nix, you can compile python with the --prefix= option set to a directory in your home dir and install there. Check. I recommend having your

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Thorsten Kampe schrieb: Identifiers which my terminal cannot even display surely are not very readable. This PEP is not about you. It's about people who write in their native language and who are forced to use a dodgy transcription from characters of their own language to ASCII. It is

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: Now you are starting to troll? Sorry, I was omitting the signs of sarcasm as I thought that would be clear from the previous posts in this thread (which I was citing). Feel free to re-read my post. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Iron Python

2007-05-15 Thread BartlebyScrivener
On May 15, 5:22 am, John Machin [EMAIL PROTECTED] wrote: Anybody tried it? Me. Me too. Anybody like it? rd -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Thorsten Kampe
* René Fleschenberg (Tue, 15 May 2007 14:04:07 +0200) Thorsten Kampe schrieb: Because keywords are not meant meant to extended or manipulated or something similar by the programmers. Keywords are well known and only a limited set of words. That's why you can't use keywords as

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Thorsten Kampe schrieb: That is a reason to actively encourage people to write their code in English whereever possible, not one to allow non-ASCII identifiers, which might even do the opposite. There is no reason to encourage or discourage people in which language to write their code.

Re: Recursion limit problems

2007-05-15 Thread Diez B. Roggisch
with the same hash value. That is, you should define __hash__ and one of (__cmp__ or __eq__). __neq__ (inequality) isn't required nor used by dict/set implementation. (Anyway, Python will transform a!=b into not(a==b), if __neq__ isn't defined). Neither , =, , = are used. No, it won't:

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
René Fleschenberg wrote: Thorsten Kampe schrieb: Identifiers which my terminal cannot even display surely are not very readable. This PEP is not about you. It's about people who write in their native language and who are forced to use a dodgy transcription from characters of their own

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Thorsten Kampe
* René Fleschenberg (Tue, 15 May 2007 14:19:46 +0200) Thorsten Kampe schrieb: Identifiers which my terminal cannot even display surely are not very readable. This PEP is not about you. It's about people who write in their native language and who are forced to use a dodgy transcription

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Thorsten Kampe schrieb: It is impossible to write Python in a native language other than English even with the implementation of this PEP. All you get is a weird mixture of English identifiers from various libraries and identifiers in your native language. You have a few English keywords

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Thorsten Kampe
* René Fleschenberg (Tue, 15 May 2007 14:27:26 +0200) Thorsten Kampe schrieb: That is a reason to actively encourage people to write their code in English whereever possible, not one to allow non-ASCII identifiers, which might even do the opposite. There is no reason to encourage or

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Thorsten Kampe
* René Fleschenberg (Tue, 15 May 2007 14:35:33 +0200) Thorsten Kampe schrieb: It is impossible to write Python in a native language other than English even with the implementation of this PEP. All you get is a weird mixture of English identifiers from various libraries and identifiers in

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Anton Vredegoor
HYRY wrote: - should non-ASCII identifiers be supported? why? Yes. I want this for years. I am Chinese, and teaching some 12 years old children learning programming. The biggest problem is we cannot use Chinese words for the identifiers. As the program source becomes longer, they always lost

Antwort: How to calculate definite integral with python

2007-05-15 Thread Roland Puntaier
Searching the web I have found: from numpy import * def simple_integral(func,a,b,dx = 0.001): return sum(map(lambda x:dx*x, func(arange(a,b,dx simple_integral(sin,0,2*pi) Or in http://pylab.sourceforge.net/ quadrature.py Cheers. [EMAIL PROTECTED] schrieb am 15.05.2007 04:23:00:

pyshell and unum hint

2007-05-15 Thread Stephen_B
I like to have unum units imported automatically on my PYTHONSTARTUP since I'm always converting things, and I also like to use pyshell. They conflict for some reason I don't understand (pyshell doesn't like the Unum.as method, maybe since it will be a keyword): 1.0*IN.as(M) File input, line 1

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Eric Brunel
On Tue, 15 May 2007 14:14:33 +0200, Stefan Behnel [EMAIL PROTECTED] wrote: René Fleschenberg wrote: Please try to understand that the fact that certain bad practices are possible today is no valid argument for introducing support for more of them! You're not trying to suggest that writing

Storing and searching nodes of a tree

2007-05-15 Thread [EMAIL PROTECTED]
Hi, I have a tree data structure and I name each node with the following convention: a |---aa ||--- aaa ||--- aab | |---ab | |---ac I use these names as keys in a dictionary, and store node's data. Now given a name like abc, I want to find the key with the following rule: If the key

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread René Fleschenberg
Thorsten Kampe schrieb: Just by repeating yourself you don't make your point more valid. You are doing just the same. Your argument that encouraging code-sharing is not a worthwhile goal is an ideologic one, just as the opposite argument is, too (I do think that code sharing is very different

Urgently looking for Python with Django Developers - London

2007-05-15 Thread IT Recruiter
About Me: I am an IT Resourcing Consultant providing unique staffing services to my client based in London. I am looking for a superstar using his web development skills to manage and improve the frontend as well as backend coding of the website. Client: A web based mobile auction and shopping

Re: PEP 3131: Supporting Non-ASCII Identifiers

2007-05-15 Thread Stefan Behnel
Anton Vredegoor wrote: The older they get the harder it is for them to learn language. By withholding them English language experience at an early age you are doing them a disservice because later on they will have more trouble. What does withholding mean here? Remember: we're talking about

Re: Subprocess with and without shell

2007-05-15 Thread George Sakkis
On May 15, 5:30 am, Nick Craig-Wood [EMAIL PROTECTED] wrote: George Sakkis [EMAIL PROTECTED] wrote: I'm trying to figure out why Popen captures the stderr of a specific command when it runs through the shell but not without it. IOW: cmd = [my_exe, arg1, arg2, ..., argN] if 1: # this

  1   2   3   4   >