EPD 5.0 released

2009-08-29 Thread Ilan Schnell
Hello, I am pleased to announce that EPD (Enthought Python Distribution) version 5.0.0 has been released. You may find more information about EPD, as well as download a 30 day free trial, here: http://www.enthought.com/products/epd.php This release contains updates to a large

ANN: cssutils 0.9.6b4

2009-08-29 Thread Christof Hoeke
what is it -- A Python package to parse and build CSS Cascading Style Sheets. (Not a renderer though!) about this release -- 0.9.6b4 is a bugfix release. main changes + BUGFIX: Issue #29 fixed. Double defined namespaces are replaced with a single (the

Re: Python for professsional Windows GUI apps?

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

Monitoring stdout in (more or less) real time

2009-08-29 Thread ivanko . rus
Hello to everyone! I am making a program that will be a GTK+ frontend to ffmpeg. Naturally, one of the main functions is parsing ffmpeg's output. It's pretty simple when I, for example, retrieve information about a file (the program finishes and I read the output). But it also needs to parse

Re: IDE for python similar to visual basic

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

Re: Overriding iadd for dictionary like objects

2009-08-29 Thread Steven D'Aprano
On Sat, 29 Aug 2009 01:23:59 -0400, Joshua Judson Rosen wrote: Robert Kern robert.k...@gmail.com writes: On 2009-08-28 16:42 PM, Terry Reedy wrote: Carl Banks wrote: I don't think it needs a syntax for that, but I'm not so sure a method to modify a value in place with a single key

Re: Monitoring stdout in (more or less) real time

2009-08-29 Thread Gabriel Genellina
En Sat, 29 Aug 2009 03:28:26 -0300, ivanko@gmail.com escribió: Hello to everyone! I am making a program that will be a GTK+ frontend to ffmpeg. Naturally, one of the main functions is parsing ffmpeg's output. It's pretty simple when I, for example, retrieve information about a file (the

Python Noob - gui module, book, annoying questions

2009-08-29 Thread Pherdnut
I want to write cross-platform stuff. Any opinions on the best GUI module for that? I like a good juicy, but concise book for reading on my commute downtown. I was thinking of checking Python in a Nutshell. Good? Bad? Better? Is 3.0+ more object based? I'm actually an FED and one of the things I

Re: (Simple?) Unicode Question

2009-08-29 Thread Thorsten Kampe
* Rami Chowdhury (Thu, 27 Aug 2009 09:44:41 -0700) Further, does anything, except a printing device need to know the encoding of a piece of text? Python needs to know if you are processing the text. I may be wrong, but I believe that's part of the idea between separation of string and

Re: Object's nesting scope

2009-08-29 Thread zaur
On 29 авг, 08:37, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Fri, 28 Aug 2009 15:25:55 -0300, zaur szp...@gmail.com escribió: On 28 авг, 16:07, Bruno Desthuilliers bruno. 42.desthuilli...@websiteburo.invalid wrote: zaur a écrit : Ok. Here is a use case: object initialization.

Re: comparison on list yields surprising result

2009-08-29 Thread Hendrik van Rooyen
On Friday 28 August 2009 21:00:31 Dr. Phillip M. Feldman wrote: In [21]: x Out[21]: [1, 2, 3, 5] In [22]: x6 Out[22]: True Is this a bug? No, it is a feature, so that you can use sorted on this: [[1,2,3,4,5],6] - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: What python can NOT do?

2009-08-29 Thread Hendrik van Rooyen
On Saturday 29 August 2009 02:14:39 Tim Chase wrote: I've also been sorely disappointed by Python's ability to make a good chocolate cream silk pie. This is not pythons fault - it is yours, for failing to collaborate with a good hardware designer for the robotics. - Hendrik --

Combining C and Python programs

2009-08-29 Thread Sortie
I want to write a program that will use ode for the physics simulation, whose python bindings are outdated. So I'm writing the physics engine in C and want to write the drawing code in Python. What will be the best way of making those two programs work together? THe physics engine won't have

Re: comparison on list yields surprising result

2009-08-29 Thread Steven D'Aprano
On Sat, 29 Aug 2009 09:36:38 +0200, Hendrik van Rooyen wrote: On Friday 28 August 2009 21:00:31 Dr. Phillip M. Feldman wrote: In [21]: x Out[21]: [1, 2, 3, 5] In [22]: x6 Out[22]: True Is this a bug? No, it is a feature, so that you can use sorted on this: [[1,2,3,4,5],6] If it's

Re: Combining C and Python programs

2009-08-29 Thread Hendrik van Rooyen
On Saturday 29 August 2009 09:54:15 Sortie wrote: I want to write a program that will use ode for the physics simulation, whose python bindings are outdated. So I'm writing the physics engine in C and want to write the drawing code in Python. What will be the best way of making those two

Re: (Simple?) Unicode Question

2009-08-29 Thread Steven D'Aprano
On Sat, 29 Aug 2009 09:34:43 +0200, Thorsten Kampe wrote: * Rami Chowdhury (Thu, 27 Aug 2009 09:44:41 -0700) Further, does anything, except a printing device need to know the encoding of a piece of text? Python needs to know if you are processing the text. Python only needs to know when

SEI Job Opening

2009-08-29 Thread bilawal samoon
SEI is seeking a FT, YR Photovoltaic Technical Manager. If you are a team player with a minimum of 4 years PV installation, curriculum and education development, management experience, the ability to multitask, strong verbal and written communication skills, and a sense of humor, SEI invites you

IDE for Python

2009-08-29 Thread Thangappan.M
Dear all, Please suggest some good IDE for python.I am working in linux platform. -- Regards, Thangappan.M -- http://mail.python.org/mailman/listinfo/python-list

Re: Overriding iadd for dictionary like objects

2009-08-29 Thread Carl Banks
On Aug 28, 10:37 pm, Joshua Judson Rosen roz...@geekspace.com wrote: Carl Banks pavlovevide...@gmail.com writes: On Aug 28, 2:42 pm, Terry Reedy tjre...@udel.edu wrote: Carl Banks wrote: I don't think it needs a syntax for that, but I'm not so sure a method to modify a value in

Re: Colors on IDLE

2009-08-29 Thread vsoler
On Aug 29, 1:27 am, r rt8...@gmail.com wrote: Have you tried saving the files as MYScriptName.py? notice the py extension, very important ;) That was it!!! I see the colors again. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: why python got less developers ?

2009-08-29 Thread paul
Deep_Feelings schrieb: python got relatively fewer numbers of developers than other high level languages like .NET , java .. etc why ? Besides the marketing argument, python never had a hype. Both PHP and ruby(Rails to be precise) got widespread because they could at one point do one thing

Re: Colors on IDLE

2009-08-29 Thread Thorsten Kampe
* vsoler (Sat, 29 Aug 2009 04:01:46 -0700 (PDT)) On Aug 29, 1:27 am, r rt8...@gmail.com wrote: Have you tried saving the files as MYScriptName.py? notice the py extension, very important ;) That was it!!! I see the colors again. Thank you. I suggest you start using familiar technical

gettext translate problem

2009-08-29 Thread Marek Wawrzyczek
Hi, I've got the following code in main.py file: import gettext import os t = gettext.translation(__file__.split('.')[0], os.getcwd()) _ = t.lgettext if __name__=='__main__': print _(Hello) then I call: xgettext main.py and after that I call: msgfmt messages.po wchich produces the

Re: Annoying octal notation

2009-08-29 Thread Grant Edwards
On 2009-08-28, Neil Hodgson nyamatongwe+thun...@gmail.com wrote: Steven D'Aprano: Obviously I can't speak for Ken Thompson's motivation in creating this feature, but I'm pretty sure it wasn't to save typing or space on punchcards. The original implementation of UNIX was on a PDP-7

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

2009-08-29 Thread gert
On Aug 29, 6:43 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Fri, 28 Aug 2009 15:31:31 -0300, gert gert.cuyk...@gmail.com escribió: I can't figure out how to enable the .py shell and syntax highlighting for .wsgi file extensions using IDLE for windows ? That's a Windows question,

Is behavior of += intentional for int?

2009-08-29 Thread zaur
Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type copyright, credits or license() for more information. a=1 x=[a] id(a)==id(x[0]) True a+=1 a 2 x[0] 1 I thought that += should only change the value of the int object. But += create

Re: Is behavior of += intentional for int?

2009-08-29 Thread Paul McGuire
On Aug 29, 7:45 am, zaur szp...@gmail.com wrote: Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type copyright, credits or license() for more information. a=1 x=[a] id(a)==id(x[0]) True a+=1 a 2 x[0] 1 I thought that +=

the best book for learning python !?

2009-08-29 Thread Momen
-- http://mail.python.org/mailman/listinfo/python-list

Re: Blank Line at Program Exit

2009-08-29 Thread Nitebirdz
On Sun, Aug 23, 2009 at 09:07:53PM +0800, Steven Woody wrote: Hi, I am using cywin on XP. Sorry for the late reply. I've been too busy with some personal matters. It'd seem to me that you're better off taking this issue to the Cygwin mailing lists, since it doesn't seem to be related to

Re: Is behavior of += intentional for int?

2009-08-29 Thread Günther Dietrich
zaur szp...@gmail.com wrote: Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type copyright, credits or license() for more information. a=1 x=[a] id(a)==id(x[0]) True a+=1 a 2 x[0] 1 I thought that += should only change the value of

Re: csv module and None values

2009-08-29 Thread JKPeck
On Aug 25, 8:49 am, Peter Otten __pete...@web.de wrote: JKPeck wrote: On Aug 24, 10:43 pm, John Yeung gallium.arsen...@gmail.com wrote: On Aug 24, 5:00 pm, Peter Otten __pete...@web.de wrote: If I understand you correctly the csv.writer already does what you want:

Re: break unichr instead of fix ord?

2009-08-29 Thread rurpy
On 08/28/2009 02:12 AM, Martin v. Löwis wrote: [I reordered the quotes from your previous post to try and get the responses in a more coherent order. No intent to take anything out of context...] Nothing else in the PEP seems remotely relevant. [to providing justification for the behavior of

Re: Python for professsional Windows GUI apps?

2009-08-29 Thread erikj
On Aug 27, 2:31 pm, Neuruss luis...@gmail.com wrote: On 26 ago, 05:29, erikj tw55...@gmail.com wrote: Hi, You could have a look at Camelot, to see if it fits your needs :http://www.conceptive.be/projects/camelot/ it was developed with cross platform business apps in mind.  when

Re: What python can NOT do?

2009-08-29 Thread Timothy N. Tsvetkov
On Aug 29, 4:26 am, qwe rty hkh00...@gmail.com wrote: On Aug 29, 3:14 am, Tim Chase python.l...@tim.thechases.com wrote: what else can NOT be done in python? what are the limitations of the language? I understand there's a little trouble getting Python to prove that P=NP  You'll

Re: Combining C and Python programs

2009-08-29 Thread Diez B. Roggisch
Sortie schrieb: I want to write a program that will use ode for the physics simulation, whose python bindings are outdated. So I'm writing the physics engine in C and want to write the drawing code in Python. What will be the best way of making those two programs work together? THe physics

Re: What python can NOT do?

2009-08-29 Thread Tomasz Rola
On Sat, 29 Aug 2009, Timothy N. Tsvetkov wrote: On Aug 29, 4:26 am, qwe rty hkh00...@gmail.com wrote: On Aug 29, 3:14 am, Tim Chase python.l...@tim.thechases.com wrote: what else can NOT be done in python? what are the limitations of the language? [...] I forgot about solving

Re: Is behavior of += intentional for int?

2009-08-29 Thread Gary Herron
zaur wrote: Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type copyright, credits or license() for more information. a=1 x=[a] id(a)==id(x[0]) True a+=1 a 2 x[0] 1 I thought that += should only

Re: Colors on IDLE

2009-08-29 Thread vsoler
On Aug 29, 1:34 pm, Thorsten Kampe thors...@thorstenkampe.de wrote: * vsoler (Sat, 29 Aug 2009 04:01:46 -0700 (PDT)) On Aug 29, 1:27 am, r rt8...@gmail.com wrote: Have you tried saving the files as MYScriptName.py? notice the py extension, very important ;) That was it!!! I see the

AutoIt/Autohotkey Python library for Linux

2009-08-29 Thread cryzed
Hey, maybe some of you are familiar with the tools AutoIt () and Autohotkey () for Windows - I was wondering if you knew about Python libraries which provide similiar functionality for Python programs under Linux. That said, those libraries would have to rely on X11 internally to provide their

Re: Is behavior of += intentional for int?

2009-08-29 Thread Günther Dietrich
Paul McGuire pt...@austin.rr.com wrote: What exactly are you trying to do? I think, he wants to kind of dereference the list element. So that he can write a += 1 instead of long_name_of_a_list_which_contains_data[mnemonic_pointer_name] += 1 Regards, Günther --

Re: Transforming a str to an operator

2009-08-29 Thread r
On Aug 28, 8:43 pm, Anny Mous b1540...@tyldd.com wrote: It isn't irrational to have a healthy caution towards eval. Ignorance is never an excuse for stupidity. No caution is needed if you know how to properly use eval. You can't shoot yourself in the foot without first pulling the trigger.

Re: Transforming a str to an operator

2009-08-29 Thread MRAB
r wrote: On Aug 28, 8:43 pm, Anny Mous b1540...@tyldd.com wrote: It isn't irrational to have a healthy caution towards eval. Ignorance is never an excuse for stupidity. No caution is needed if you know how to properly use eval. You can't shoot yourself in the foot without first pulling the

AutoIt/Autohotkey-like library for Linux

2009-08-29 Thread cryzed
Hey, maybe some of you are familiar with the tools AutoIt (http://www.autoitscript.com/autoit3/) and Autohotkey (http://www.autohotkey.com/) for Windows - I was wondering if you knew about Python libraries which provide similiar functionality for Python programs under Linux. That said, those

Re:IDE for Python

2009-08-29 Thread ivanko . rus
29.08.2009 4:14 пользователь Thangappan.M thangappan...@gmail.com написал: Dear all, Please suggest some good IDE for python.I am working in linux platform. -- Regards, Thangappan.M You can use Eclipse + PyDev or Emacs+PythonMode . Also there are Anjuta and Code:Blocks, but they are

Re: break unichr instead of fix ord?

2009-08-29 Thread Steven D'Aprano
On Sat, 29 Aug 2009 07:38:51 -0700, rurpy wrote: Then, the next question is why is it implemented that way, to which the answer is because the PEP says so. Not at all a satisfying answer unless one believes in PEPal infallibility. :-) Not at all. You don't have to believe that PEPs are

Re: Is behavior of += intentional for int?

2009-08-29 Thread zaur
On 29 авг, 20:25, Günther Dietrich gd_use...@spamfence.net wrote: Paul McGuire pt...@austin.rr.com wrote: What exactly are you trying to do? I think, he wants to kind of dereference the list element. So that he can write a += 1 instead of

Re: What python can NOT do?

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

Re: What python can NOT do?

2009-08-29 Thread John Haggerty
Theoretically a microkernel could be used to do the stuff python directly couldn't do and the rest could be done once an interpreter was loaded in theory. On Fri, Aug 28, 2009 at 4:37 PM, qwe rty hkh00...@gmail.com wrote: i know that an interpreted language like python can't be used to make an

Re: Combining C and Python programs

2009-08-29 Thread Philip Semanchuk
On Aug 29, 2009, at 3:54 AM, Sortie wrote: I want to write a program that will use ode for the physics simulation, whose python bindings are outdated. So I'm writing the physics engine in C and want to write the drawing code in Python. What will be the best way of making those two programs

Re: IDE for Python

2009-08-29 Thread Diogo Neves
Is IDLE (the editor that comes with Python) good? I'm just starting now, but it looks ok. 2009/8/29 ivanko@gmail.com 29.08.2009 4:14 пользователь Thangappan.M thangappan...@gmail.com написал: Dear all, Please suggest some good IDE for python.I am working in linux

Re: Is behavior of += intentional for int?

2009-08-29 Thread Steven D'Aprano
On Sat, 29 Aug 2009 11:11:43 -0700, zaur wrote: I thought that int as object will stay the same object after += but with another integer value. My intuition said me that int object which represent integer value should behave this way. If it did, then you would have this behaviour: n = 3

Re: (Simple?) Unicode Question

2009-08-29 Thread Nobody
On Sat, 29 Aug 2009 08:26:54 +, Steven D'Aprano wrote: Python only needs to know when you convert the text to or from bytes. I can do this: s = hello t = world print(' '.join([s, t])) hello world and not need to care anything about encodings. So long as your terminal has a

Sqlite format string

2009-08-29 Thread Sergio Charpinel Jr.
Hi, I have this statement cursor.execute(SELECT * from session_attribute WHERE sid=%s, ( user )) and I'm receiving this error : TypeError: not all arguments converted during string formatting What is wrong ? -- Sergio Roberto Charpinel Jr. -- http://mail.python.org/mailman/listinfo/python-list

Re:Re: Monitoring stdout in (more or less) real time

2009-08-29 Thread ivanko . rus
29.08.2009 2:21 пользователь Gabriel Genellina gagsl-...@yahoo.com.ar написал: En Sat, 29 Aug 2009 03:28:26 -0300, ivanko@gmail.com escribió: Hello to everyone! I am making a program that will be a GTK+ frontend to ffmpeg. Naturally, one of the main functions is parsing ffmpeg's

Re: Is behavior of += intentional for int?

2009-08-29 Thread AggieDan04
On Aug 29, 8:08 am, Paul McGuire pt...@austin.rr.com wrote: On Aug 29, 7:45 am, zaur szp...@gmail.com wrote: Python 2.6.2 (r262:71600, Apr 16 2009, 09:17:39) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type copyright, credits or license() for more information. a=1 x=[a]

Re:Re: IDE for python similar to visual basic

2009-08-29 Thread ivanko . rus
29.08.2009 1:32 пользователь Vivian Wang icevi.ic...@gmail.com написал: On Aug 29, 6:19 am, qwe rty hkh00...@gmail.com wrote: i have been searching for am IDE for python that is similar to Visual Basic but had no luck.shall you help me please? You can try biform:

weak reference callback

2009-08-29 Thread Paul Pogonyshev
Hi, Is weak reference callback called immediately after the referenced object is deleted or at arbitrary point in time after that? I.e. is it possible to see a dead reference before the callback is called? More formally, will this ever raise? callback_called = False def note_deletion

Re: Sqlite format string

2009-08-29 Thread Tim Chase
I have this statement cursor.execute(SELECT * from session_attribute WHERE sid=%s, ( user )) and I'm receiving this error : TypeError: not all arguments converted during string formatting Two possibilities occur to me: 1) the 2nd parameter to execute() usually needs to be a tuple (or maybe a

Re: weak reference callback

2009-08-29 Thread Christian Heimes
Paul Pogonyshev wrote: Hi, Is weak reference callback called immediately after the referenced object is deleted or at arbitrary point in time after that? I.e. is it possible to see a dead reference before the callback is called? More formally, will this ever raise? callback_called

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

2009-08-29 Thread Gabriel Genellina
En Sat, 29 Aug 2009 17:14:14 -0300, gert gert.cuyk...@gmail.com escribió: On Aug 29, 9:31 pm, Chris Rebert c...@rebertia.com wrote: On Sat, Aug 29, 2009 at 5:40 AM, gertgert.cuyk...@gmail.com wrote: On Aug 29, 6:43 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Fri, 28 Aug 2009

Re: An assessment of the Unicode standard

2009-08-29 Thread Chris Jones
On Sat, Aug 29, 2009 at 07:12:26PM EDT, Stephen Hansen wrote: Unicode (*puke*) seems nothing more than a brain fart of morons. And sadly it was created by CS majors who i assumed used logic and deductive reasoning but i must be wrong. Why should the larger world keep supporting such

Re: break unichr instead of fix ord?

2009-08-29 Thread rurpy
On 08/29/2009 12:06 PM, Steven D'Aprano wrote: [...] The reasons for the current behavior so far: 1. What you propose would break the property unichr(i) always returns a string of length one, if it returns anything at all. Yes. And i don't see the problem with that. Why is that

Determining the metaclass

2009-08-29 Thread casebash
Hi all, I cannot determine if a class is an instance of a particular metaclass. Here is my best attempt class tmp(type): ... pass ... def c(metaclass=tmp): ... pass ... isinstance(c, tmp) False isinstance(c.__class__, tmp) False Can anyone explain why this fails? Thanks very much,

Re: break unichr instead of fix ord?

2009-08-29 Thread rurpy
On 08/29/2009 01:43 PM, Vlastimil Brom wrote: 2009/8/29ru...@yahoo.com: On 08/28/2009 02:12 AM, Martin v. Löwis wrote: So far, it seems not and that unichr/ord is a poster child for purity beats practicality. -- http://mail.python.org/mailman/listinfo/python-list As Mark

Re: An assessment of the Unicode standard

2009-08-29 Thread John Machin
On Aug 30, 8:46 am, r rt8...@gmail.com wrote: Take for instance the Chinese language with it's thousands of characters and BS, it's more of an art than a language.  Why do we need such complicated languages in this day and time. Many languages have been perfected, (although not perfect) far

Re: An assessment of the Unicode standard

2009-08-29 Thread Neil Hodgson
r: Unicode (*puke*) seems nothing more than a brain fart of morons. And sadly it was created by CS majors who i assumed used logic and deductive reasoning but i must be wrong. Why should the larger world keep supporting such antiquated languages and character sets through Unicode? What

Re: Determining the metaclass

2009-08-29 Thread Carl Banks
On Aug 29, 5:12 pm, casebash walkr...@gmail.com wrote: Hi all, I cannot determine if a class is an instance of a particular metaclass. Here is my best attempt class tmp(type): ...     pass ... def c(metaclass=tmp): ...     pass ... isinstance(c, tmp) False isinstance(c.__class__,

Permanently adding to the Python path in Ubuntu

2009-08-29 Thread Chris Colbert
I'm having an issue with sys.path on Ubuntu. I want some of my home built packages to overshadow the system packages. Namely, I have built numpy 1.3.0 from source with atlas support, and I need it to overshadow the system numpy 1.2.1 which I had to drag along as a dependency for other stuff. I

Re: An assessment of the Unicode standard

2009-08-29 Thread r
On Aug 29, 7:20 pm, John Machin sjmac...@lexicon.net wrote: On Aug 30, 8:46 am, r rt8...@gmail.com wrote: The Chinese language is more widely spoken than English, is quite capable of expression in ASCII (r tongzhi shi sha gua) and doesn't have those pesky it's/its problems. Oh yes of course

Re: Why does this group have so much spam?

2009-08-29 Thread r
On Aug 29, 7:18 pm, casebash walkr...@gmail.com wrote: So much of it could be removed even by simple keyword filtering. A more interesting question is what morons are responding to this spam and enticing the spammers to proliferate their garbage? Do people actually see a spam like Phallus

Re: An assessment of the Unicode standard

2009-08-29 Thread Benjamin Peterson
Neil Hodgson nyamatongwe+thunder at gmail.com writes: \\ Unicode was developed by corporations from the US left coast in order to sell their products in foreign markets at minimal cost. Like Sanskrit or Snowman language? -- http://mail.python.org/mailman/listinfo/python-list

Re: What python can NOT do?

2009-08-29 Thread AggieDan04
On Aug 28, 7:05 pm, Tim Chase python.l...@tim.thechases.com wrote: qwe rty wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. As long as you are willing to write the OS hooks in C, you can write the userspace device drivers

Re: copy construtor question

2009-08-29 Thread Jan Kaliszewski
28-08-2009 o 20:38:30 xiaosong xia xiaosong...@yahoo.com wrote: I am trying to define a class with copy constructor as following:   class test: def __init__(self, s=None):   self=s   x=[1,2]   y=test(x)   print y.__dict__   it gives {}   The above code doesn't work. And cannot,

Re: (Simple?) Unicode Question

2009-08-29 Thread Steven D'Aprano
On Sat, 29 Aug 2009 20:09:12 +0100, Nobody wrote: On Sat, 29 Aug 2009 08:26:54 +, Steven D'Aprano wrote: Python only needs to know when you convert the text to or from bytes. I can do this: s = hello t = world print(' '.join([s, t])) hello world and not need to care anything

Re: An assessment of the Unicode standard

2009-08-29 Thread Neil Hodgson
Benjamin Peterson: Like Sanskrit or Snowman language? Sanskrit is mostly written in Devanagari these days which is also useful for selling things to people who speak Hindi and other Indian languages. Not sure if you are referring to the ☃ snowman character or Arctic region languages like

Re: Sqlite format string

2009-08-29 Thread Cameron Simpson
On 29Aug2009 17:27, Sergio Charpinel Jr. sergiocharpi...@gmail.com wrote: | Hi, | I have this statement cursor.execute(SELECT * from session_attribute WHERE | sid=%s, ( user )) | and I'm receiving this error : | | TypeError: not all arguments converted during string formatting | | What is wrong

Re: Permanently adding to the Python path in Ubuntu

2009-08-29 Thread Sean DiZazzo
On Aug 29, 5:39 pm, Chris Colbert sccolb...@gmail.com wrote: I'm having an issue with sys.path on Ubuntu. I want some of my home built packages to overshadow the system packages. Namely, I have built numpy 1.3.0 from source with atlas support, and I need it to overshadow the system numpy 1.2.1

Re: An assessment of the Unicode standard

2009-08-29 Thread Anny Mous
r wrote: Of the many things that divide us such as race, color, religion, geography, blah, the most perplexing and devastating seems to be why have we not accepted a single global language for all to speak. I agree 1000% and obviously we should make Klingon that global language. Or possibly

Re: why python got less developers ?

2009-08-29 Thread kennyken747
On Aug 29, 6:16 am, paul p...@subsignal.org wrote: Deep_Feelings schrieb: python got relatively fewer numbers of developers than other high level languages like .NET , java .. etc  why ? Besides the marketing argument, python never had a hype. Both PHP and ruby(Rails to be precise) got

Re: An assessment of the Unicode standard

2009-08-29 Thread Chris Jones
On Sat, Aug 29, 2009 at 11:07:17PM EDT, Neil Hodgson wrote: Benjamin Peterson: Like Sanskrit or Snowman language? Sanskrit is mostly written in Devanagari these days which is also useful for selling things to people who speak Hindi and other Indian languages. Is the implication that the

Re: IDE for python similar to visual basic

2009-08-29 Thread Che M
On Aug 28, 6:19 pm, qwe rty hkh00...@gmail.com wrote: i have been searching for am IDE for python that is similar to Visual Basic but had no luck.shall you help me please? Boa Constructor. IDE/visual GUI-builder/sizer support, lots of other goodies. Not actively maintained, though, and some

Re: What python can NOT do?

2009-08-29 Thread Che M
On Aug 28, 6:37 pm, qwe rty hkh00...@gmail.com wrote: i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of the language? Now that you have some good answers, may I ask

Re: What python can NOT do?

2009-08-29 Thread Michael Torrie
qwe rty wrote: On Aug 29, 5:11 am, Nobody nob...@nowhere.com wrote: On Fri, 28 Aug 2009 17:26:06 -0700, qwe rty wrote: if you don't know the answer please don't reply If you don't understand the question, don't post it in the first place. don't be so angry ,not good for your health You

Re: Python Noob - gui module, book, annoying questions

2009-08-29 Thread Che M
On Aug 29, 3:20 am, Pherdnut erik.rep...@gmail.com wrote: I want to write cross-platform stuff. Any opinions on the best GUI module for that? I like a good juicy, but concise book for reading on my commute downtown. I was thinking of checking Python in a Nutshell. Good? Bad? Better? Is

Re: break unichr instead of fix ord?

2009-08-29 Thread Dieter Maurer
Martin v. Löwis mar...@v.loewis.de writes on Fri, 28 Aug 2009 10:12:34 +0200: The PEP says: * unichr(i) for 0 = i 2**16 (0x1) always returns a length-one string. * unichr(i) for 2**16 = i = TOPCHAR will return a length-one string on wide Python builds. On

Re: Why does this group have so much spam?

2009-08-29 Thread Bruce C. Baker
casebash walkr...@gmail.com wrote in message news:7294bf8b-9819-4b6d-92b2-afc1c8042...@x6g2000prc.googlegroups.com... So much of it could be removed even by simple keyword filtering. Assuming this is a serious question: 1. comp.lang.python has relatively little spam, compared to others. 2.

Re: An assessment of the Unicode standard

2009-08-29 Thread John Nagle
r wrote: I was reading the thread here... http://groups.google.com/group/comp.lang.python/browse_thread/thread/db90a9629b92aab0/b0385050b4c6c84e?hl=enlnk=raot#b0385050b4c6c84e and it raised some fundamental philophosical questions Rant ignored. Actually, Python 3.x seems finally to

Re: An assessment of the Unicode standard

2009-08-29 Thread Terry Reedy
r wrote: natural languages and Unicode. Which IMO * Unicode* is simply a monkey patch for this soup of multiple languages we have to deal with in programming and communication. A somewhat fair charactierization. [snip] everyone happy? A sort of Utopian free-language-love-fest-kinda- thing?

Re: An assessment of the Unicode standard

2009-08-29 Thread steve
On 08/30/2009 04:16 AM, r wrote: I was reading the thread here... http://groups.google.com/group/comp.lang.python/browse_thread/thread/db90a9629b92aab0/b0385050b4c6c84e?hl=enlnk=raot#b0385050b4c6c84e ... ... It's called evolution people! Ever heard of science? So ditch the useless Unicode and

Re: What python can NOT do?

2009-08-29 Thread Terry Reedy
exar...@twistedmatrix.com wrote: For my part, I will agree with John. I feel like Python's big shortcomings stem from the areas he mentioned. They're related to each other as well - the lack of a standard hampers the development of a less naive interpreter (either one based on CPython or

Re: An assessment of the Unicode standard

2009-08-29 Thread Steven D'Aprano
On Sun, 30 Aug 2009 03:07:17 +, Neil Hodgson wrote: Not sure if you are referring to the ☃ snowman character or Arctic region languages like Canadian Aboriginal syllabic writing like ᐲᐦᒑᔨᕽ which were added to Unicode 8 years after the initial version. I'd guess that was added from

Re: An assessment of the Unicode standard

2009-08-29 Thread Steven D'Aprano
On Sat, 29 Aug 2009 22:14:55 -0700, John Nagle wrote: It may be a bit much that Unicode supports Cretan Linear B. Thousands of historians who need to discuss Linear B would disagree. Well, hundreds. There are tens of thousands of characters available. If there's room for chess pieces,

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

2009-08-29 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6800 ___ ___ Python-bugs-list

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

2009-08-29 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: There is no OS level API to kill threads. Python does not kill threads. When you exec, your entire process should be replaced by the OS, threads shouldn't matter they should simply disappear just as the rest of your process state does. This

[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Here's a new version. Now it works with all the major browsers and it's more usable. I tested it on the following browsers, and I didn't notice any problem/bug: Firefox 2.0/3.0/3.5; Internet Explorer 6/7/8; Opera 9.64; Chrome 2.0; Konqueror

[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Removed file: http://bugs.python.org/file14794/sidebar.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___

[issue3143] Make the left sidebar in the doc collapsible

2009-08-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: Added file: http://bugs.python.org/file14800/sidebar.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3143 ___

[issue2057] difflib: add patch capability

2009-08-29 Thread Alexander Stanley
Changes by Alexander Stanley l...@swixel.net: -- nosy: +swixel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2057 ___ ___ Python-bugs-list mailing

[issue6750] threading issue in __builtins__.print

2009-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch looks ok to me. It should be noted that TextIOWrapper was not designed to be thread-safe at all (neither the Python nor the C version); but admittedly it is more common to write() than to read() from multiple threads, so fixing this

[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

2009-08-29 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is quite a reasonable request indeed. -- nosy: +pitrou priority: - normal stage: - needs patch versions: -Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org

  1   2   >