[ANNOUNCE] python-gtkmvc 1.99.1

2010-12-30 Thread Roberto Cavada
We are proud to announce that version 1.99.1 of pygtkmvc has been released. Project homepage: http://apps.sourceforge.net/trac/pygtkmvc/wiki Download: http://sourceforge.net/projects/pygtkmvc/ == About pygtkmvc == pygtkmvc is a fully Python-based implementation of the

[ANN] python-gtkmvc 1.99.1

2010-12-30 Thread Roberto Cavada
We are proud to announce that version 1.99.1 of pygtkmvc has been released. Project homepage: http://apps.sourceforge.net/trac/pygtkmvc/wiki Download: http://sourceforge.net/projects/pygtkmvc/ == About pygtkmvc == pygtkmvc is a fully Python-based implementation of the

Re: Does Python 3.1 accept \r\n in compile()?

2010-12-30 Thread jmfauth
On 30 Dez., 00:11, Terry Reedy tjre...@udel.edu wrote: On 12/29/2010 4:06 PM, jmfauth wrote: On 29 Dez., 21:14, Terry Reedytjre...@udel.edu  wrote: On 12/29/2010 2:31 PM, Terry Reedy wrote: Changed in version 3.2: Allowed use of Windows and Mac newlines. Also input in 'exec' mode does

os.path.isfile and wildcard for directory name

2010-12-30 Thread smainklh
Hi everyone, I'm just beginning to learn python language and i'm trying to do something and i can't figure it out. I want to test if a file exists but my path contain a directory name that differs from a server to another. In shell i would have done something like that : #!/bin/bash

Re: os.path.isfile and wildcard for directory name

2010-12-30 Thread Javier Collado
Hello, 2010/12/30 smain...@free.fr: How can i do the same thing (wildcard in a directory name) in python please ? You can get the contents of a directory with os.listdir and filter with fnmatch.fnmatch more or less as in the example from the documentation: - import fnmatch

Re: Removing an attribute from html with Regex

2010-12-30 Thread Stefan Behnel
Selvam, 30.12.2010 08:30: I have some HTML string which I would like to feed to BeautifulSoup. But, One malformed attribute breaks BeautifulSoup. p style='terp_header' wrong_tag=' text1 ' text2 ' and 'para' ' class='terp_header' My String/p Didn't try with BS (and you forgot to say

Re: os.path.isfile and wildcard for directory name

2010-12-30 Thread Cameron Simpson
On 30Dec2010 09:36, smain...@free.fr smain...@free.fr wrote: | I want to test if a file exists but my path contain a directory name that | differs from a server to another. | In shell i would have done something like that : | #!/bin/bash | mypath=/dire*/directory02/ | myfile=filename | myfile=toto

Re: os.path.isfile and wildcard for directory name

2010-12-30 Thread Peter Otten
smain...@free.fr wrote: I'm just beginning to learn python language and i'm trying to do something and i can't figure it out. I want to test if a file exists but my path contain a directory name that differs from a server to another. In shell i would have done something like that :

Re: Digitally Signing a XML Document (using SHA1+RSA or SHA1+DSA)

2010-12-30 Thread Jorgen Grahn
On Tue, 2010-12-28, Adam Tauno Williams wrote: On Tue, 2010-12-28 at 03:25 +0530, Anurag Chourasia wrote: Hi All, I have a requirement to digitally sign a XML Document using SHA1+RSA or SHA1+DSA Could someone give me a lead on a library that I can use to fulfill this requirement?

Re: Digitally Signing a XML Document (using SHA1+RSA or SHA1+DSA)

2010-12-30 Thread Stefan Behnel
Jorgen Grahn, 30.12.2010 10:41: If you really *do* have a requirement to make the result XML-like and incompatible with anything else, I'm afraid you're on your own Well, there's always xmlsec if you need it. http://www.aleksey.com/xmlsec/ Stefan --

Embedding a Python IDE on Windows based Application

2010-12-30 Thread Sathish S
Hi Ppl, I'm trying to use python for a macro recorder. In short I have a windows based application, which has a macro recorder. The macros are captured as a python script and when the script is executed they accomplish the user action done on my application. I've written python scripts that can

Re: os.path.isfile and wildcard for directory name

2010-12-30 Thread smainklh
Hi Cameron, Ok, i'll try that :) Thanks Smaine Selon Cameron Simpson c...@zip.com.au: On 30Dec2010 09:36, smain...@free.fr smain...@free.fr wrote: | I want to test if a file exists but my path contain a directory name that | differs from a server to another. | In shell i would have done

Is there anyway to run JavaScript in python?

2010-12-30 Thread crow
Hi, I'm writing a test tool to simulate Web browser. Is there anyway to run JavaScript in python? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Adam Skutt
On Dec 29, 7:48 pm, Octavian Rasnita orasn...@gmail.com wrote: First, the interface should look exactly as the native interfaces for each system named, and it should provide the same features, because otherwise the interface would look strange for all the users on all the operating systems.

Re: Is there anyway to run JavaScript in python?

2010-12-30 Thread Roy Smith
In article a05193b8-46cd-4d17-a8d4-fb9106d3a...@n32g2000pre.googlegroups.com, crow wen...@gmail.com wrote: Hi, I'm writing a test tool to simulate Web browser. Is there anyway to run JavaScript in python? Thanks in advance. The answer to the question you asked is, Probably. You might want

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Kevin Walzer
On 12/29/10 6:58 PM, rantingrick wrote: The answer is simple. We need a 100% Python GUI. A GUI coded in Python from top to bottom. A GUI that is cross platform to the big three (Windows, Linux, and Mac). A GUI that not only is easy as Tkinter but also a GUI that can be manipulated by the average

Re: Is there anyway to run JavaScript in python?

2010-12-30 Thread Martin v. Loewis
Am 30.12.2010 14:52, schrieb crow: Hi, I'm writing a test tool to simulate Web browser. Is there anyway to run JavaScript in python? Thanks in advance. See PyV8: http://pypi.python.org/pypi/PyV8 Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 8:59 am, Kevin Walzer k...@codebykevin.com wrote: On 12/29/10 6:58 PM, rantingrick wrote: Any GUI framework is going to require at least some heavy lifting in C, C++ or Objective-C (depending on the platform). A pure-Python approach to GUI development is technically infeasible.

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Hank Fay
On Thursday, December 30, 2010 9:59:09 AM UTC-5, kw wrote: Any GUI framework is going to require at least some heavy lifting in C, C++ or Objective-C (depending on the platform). A pure-Python approach to GUI development is technically infeasible. -- Kevin Walzer Code by Kevin

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Stefan Behnel
rantingrick, 30.12.2010 00:58: So what should we do? The answer is simple. We need a 100% Python GUI. A GUI coded in Python from top to bottom. A GUI that is cross platform to the big three (Windows, Linux, and Mac). A GUI that not only is easy as Tkinter but also a

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Kevin Walzer
On 12/30/10 10:24 AM, rantingrick wrote: On Dec 30, 8:59 am, Kevin Walzerk...@codebykevin.com wrote: On 12/29/10 6:58 PM, rantingrick wrote: Any GUI framework is going to require at least some heavy lifting in C, C++ or Objective-C (depending on the platform). A pure-Python approach to GUI

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Kevin Walzer
On 12/30/10 10:28 AM, Hank Fay wrote: On Thursday, December 30, 2010 9:59:09 AM UTC-5, kw wrote: Any GUI framework is going to require at least some heavy lifting in C, C++ or Objective-C (depending on the platform). A pure-Python approach to GUI development is technically infeasible. --

Re: How to initialize each multithreading Pool worker with an individual value?

2010-12-30 Thread Aahz
In article mailman.61.1291152972.2649.python-l...@python.org, Valery Khamenya khame...@gmail.com wrote: However it doesn't look possible to use it to initialize each Pool's worker with some individual value (I'd wish to be wrong here) So, how to initialize each multithreading Pool worker with

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Kevin Walzer
On 12/30/10 10:52 AM, Stefan Behnel wrote: rantingrick, 30.12.2010 00:58: So what should we do? The answer is simple. We need a 100% Python GUI. A GUI coded in Python from top to bottom. A GUI that is cross platform to the big three (Windows, Linux, and Mac). A GUI that

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 9:52 am, Stefan Behnel stefan...@behnel.de wrote: I hope you invested as much time into writing this expose as you did searching the web before writing it. And ditto to you. If you would have followed the thread so far, in my second post i said... However i need to stress that my

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Stefan Behnel
rantingrick, 30.12.2010 17:02: On Dec 30, 9:52 am, Stefan Behnel wrote: I hope you invested as much time into writing this expose as you did searching the web before writing it. in my second post i said... However i need to stress that my intention is towards a 100% Python GUI. Not a

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread python
These days, Tkinter has pretty much everything that other GUI toolkits have: tree views, multi-column listboxes, plus all the basics, available through the core widget, the themed ttk widgets, or extension packages. ***Today, there's no excuse for developing an ugly Tk GUI--if a new Tk app

Re: How to initialize each multithreading Pool worker with an individual value?

2010-12-30 Thread Adam Tauno Williams
On Thu, 2010-12-30 at 08:01 -0800, Aahz wrote: In article mailman.61.1291152972.2649.python-l...@python.org, Valery Khamenya khame...@gmail.com wrote: However it doesn't look possible to use it to initialize each Pool's worker with some individual value (I'd wish to be wrong here) So, how to

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 9:51 am, Kevin Walzer k...@codebykevin.com wrote: Tcl is not a domain-specific language for creating GUI's. Tcl is a full-featured, general-purpose programming language that is a peer to Python in its capabilities, Anybody can gloat and gush about their favorite programming

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 10:02 am, Kevin Walzer k...@codebykevin.com wrote: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This library isn't much different from other Python GUI toolkits--it's dependent on underlying, rather large, platform-specific implementations--but it provides an even

Tkinter accessability options (was Re: Tkinter: The good, the bad, and the ugly!)

2010-12-30 Thread python
Octavian, Not all the people were happy because the darkness disappeared partially for some of them and more and more blind people started to use a computer, and discovered that the Tk interfaces are absolutely inaccessible for them. Might this package help? (I have no experience with this

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Hank Fay
That (the desktop app issue) was the big game-change for me. It looks like a desktop app, it acts like a desktop app, and our enterprise customers would be delighted to a) have no installs to do for fat clients; or b) not have to run a TS or Citrix farm. --

Re: Tkinter accessability options (was Re: Tkinter: The good, the bad, and the ugly!)

2010-12-30 Thread Octavian Rasnita
From: pyt...@bdurham.com Subject: Tkinter accessability options (was Re: Tkinter: The good, the bad, and the ugly!) Octavian, Not all the people were happy because the darkness disappeared partially for some of them and more and more blind people started to use a computer, and

Re: default argument in method

2010-12-30 Thread DevPlayer
There's some_object.some_method.func_defaults and some_function.func_defaults both are a settable attribute. How to set the methods func_defaults? You'd have to have code in _getattribute__(yourmethod) if not __getattr__(yourmethod) def __getattribute__(self, attr): if attr == self.my_method:

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Steven D'Aprano
On Thu, 30 Dec 2010 07:24:04 -0800, rantingrick wrote: Also one could argue that C and Python are very similar. One could also argue that black is white, that diamond is softer than chalk, and that bananas are a type of spaceship. Doesn't make it so. How to add two numbers in C: #include

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Terry Reedy
On 12/30/2010 10:51 AM, Kevin Walzer wrote: In 2010, Tk only lacks two major features common to GUI toolkits: 1. A cross-platform printing API. This is mainly an issue on Windows, which lacks a rich command-line printing framework. The canvas widget can generate PostScript, Uh. 1. Postscript

Re: default argument in method

2010-12-30 Thread Steven D'Aprano
On Thu, 30 Dec 2010 11:26:50 -0800, DevPlayer wrote: There's some_object.some_method.func_defaults Not quite -- method objects don't expose the function attributes directly. You need some_object.some_method.im_func to get the function object, which then has a func_defaults attribute. and

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Mel
Steven D'Aprano wrote: On Thu, 30 Dec 2010 07:24:04 -0800, rantingrick wrote: Also one could argue that C and Python are very similar. One could also argue that black is white, that diamond is softer than chalk, and that bananas are a type of spaceship. Doesn't make it so. How to add

OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread harijay
Hi, I am writing some multithreaded code which aims to automate three sequential data processing applications and distribute the processing on my 16GB RAM, 64 bit Ubuntu box running Python 2.6.5 The basic class that orchestrates these jobs use Queue.Queue() to feed the product of the first job

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread Thomas L. Shinnick
At 03:46 PM 12/30/2010, harijay wrote: Hi, I am writing some multithreaded code which aims to automate three sequential data processing applications and distribute the processing on my 16GB RAM, 64 bit Ubuntu box running Python 2.6.5 The basic class that orchestrates these jobs use

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Kevin Walzer
On 12/30/10 12:36 PM, rantingrick wrote: On Dec 30, 9:51 am, Kevin Walzerk...@codebykevin.com wrote: Tcl is not a domain-specific language for creating GUI's. Tcl is a full-featured, general-purpose programming language that is a peer to Python in its capabilities, Anybody can gloat and

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread Terry Reedy
On 12/30/2010 4:46 PM, harijay wrote: OSError: [Errno 26] Text file busy error Searching 'errno 26', the third Google response suggests that you are trying to write to a file (especially an executable or shared library?) that is already in use. Perhaps just trying to read when locked will

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 1:51 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: How to add two numbers in C: [...snip code example...] None of the three are exactly clones of each other, but it seems to me that Tcl and Python are quite close in spirit, if not syntax. Yes i'll agree to that

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 4:44 pm, Kevin Walzer k...@codebykevin.com wrote: You can build web servers, database tools, FTP clients, test suite/automation tools, chat clients, and drivers of other CLI tools with Tcl, just to name a few. Ok, thats swell. But do you have any real examples, links, or some

Re: Building sys.path at run-time?

2010-12-30 Thread Jon Clements
On Dec 30, 4:24 am, Roy Smith r...@panix.com wrote: In article 87k4irhpoa@benfinney.id.au,  Ben Finney ben+pyt...@benfinney.id.au wrote: Roy Smith r...@panix.com writes: I've got a problem that I'm sure many people have solved many times. Our project has a bunch of python scripts

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Arndt Roger Schneider
rantingrick schrieb: On Dec 29, 6:41 pm, Gerry Reno gr...@verizon.net wrote: wxPython looks good but I don't see anyone developing support for things like smartphones. No wx is not the answer to our problems Rather: ... to *your* problem... Also, what do you think about frameworks

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread harijay
I am writing to a unique script file . Each script file has prefixes like script1.sh script2.sh and they reside in different directories . The scripts will never trample each other since they are all sequential and shell scripts and no directory will have more than one shell script. The only

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Kevin Walzer
On 12/30/10 6:17 PM, rantingrick wrote: Ok, thats swell. But do you have any real examples, links, or some evidence of this? Or are we witnessing more wishful thinking? http://tcl.apache.org/rivet/ http://www.amsn-project.net/ http://thecoccinella.org/

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Robert
On 2010-12-30 13:04:19 -0500, rantingrick said: On Dec 30, 10:02 am, Kevin Walzer k...@codebykevin.com wrote: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This library isn't much different from other Python GUI toolkits--it's dependent on underlying, rather large,

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Robert
On 2010-12-30 11:02:46 -0500, rantingrick said: On Dec 30, 9:52 am, Stefan Behnel stefan...@behnel.de wrote: I hope you invested as much time into writing this expose as you did searching the web before writing it. And ditto to you. If you would have followed the thread so far, in my second

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Robert
On 2010-12-30 18:12:21 -0500, rantingrick said: On Dec 30, 1:51 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: How to add two numbers in C: [...snip code example...] None of the three are exactly clones of each other, but it seems to me that Tcl and Python are quite close

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 6:32 pm, Robert sigz...@gmail.com wrote: Exactly how is Tcl too limited in your view? Well Robert if have explain to you why C and Python make Tcl look limited by comparison then explaining will probably do neither of us any good. But if you think Tcl is so great by all means go spend

Re: using python ftp

2010-12-30 Thread Stefan Schwarzer
Hello Matt, On 2010-12-23 01:03, Matt Funk wrote: i was wondering whether someone can point me whether the following already exists. I want to connect to a server , download various files (for whose name i want to be able to use a wildcard), and store those files in a given location on the

Re: Catching user switching and getting current active user from root on linux

2010-12-30 Thread Aahz
In article ff3a2b89-2586-43d2-ae5a-490384687...@32g2000yqz.googlegroups.com, mpnordland mpnordl...@gmail.com wrote: First, to pacify those who hate google groups: What is a good usenet client? trn3.6 ;-) -- Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/ Think of

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Gerry Reno
For those that are lurking, this might provide a little background: http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong Essentially, there is nothing wrong with Tcl and Tkinter. They are part of a long evolutionary chain of how we got to where we are today. They deserve to

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Katie T
On Thu, Dec 30, 2010 at 12:15 AM, rantingrick rantingr...@gmail.com wrote: However i need to stress that my intention is towards a 100% Python GUI. Not a binding, not a wrapping (except for OS calls!) but a *real* Python GUI. The only thing that i know of at this point is pyGUI although there

Management careers.

2010-12-30 Thread gaurav
Big chance in Management careers. Careers recruitment in Management work. http://topcareer.webs.com/executivemanager.htm http://topcareer.webs.com/executivemanager.htm Government Jobs in site lot of opportunities for graduates. http://rojgars1.webs.com/gov.htm

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Robert
On 2010-12-30 19:43:21 -0500, Gerry Reno said: For those that are lurking, this might provide a little background: http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong Essentially, there is nothing wrong with Tcl and Tkinter. They are part of a long evolutionary chain of

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Robert
On 2010-12-30 19:46:24 -0500, rantingrick said: On Dec 30, 6:32 pm, Robert sigz...@gmail.com wrote: Exactly how is Tcl too limited in your view? Well Robert if have explain to you why C and Python make Tcl look limited by comparison then explaining will probably do neither of us any good.

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread Steven D'Aprano
On Thu, 30 Dec 2010 13:46:35 -0800, harijay wrote: [...] But I get the same OSError: [Errno 26] Text file busy error Everytime I run the same job queue a different part of the job fails. Unfortunately I dont see anybody else reporting this OSError. ANy help in troubleshooting my newbie

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 6:43 pm, Gerry Reno gr...@verizon.net wrote: For those that are lurking, this might provide a little background:    http://journal.dedasys.com/2010/03/30/where-tcl-and-tk-went-wrong That was a great and thought provoking article Gerry. Thanks! --

Career in IT and management

2010-12-30 Thread gaurav
Latest job listing with IT manager job search and government jobs http://topcareer.webs.com/itmanagement.htm Are you looking for a job in government, this is the right place to start. http://rojgars1.webs.com/gov.htm http://printmediajobs.webs.com/fl.htm --

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 7:54 pm, Katie T ka...@coderstack.co.uk wrote: It's very hard to write a good gui framework, very very few people have managed to do it well. This is a very good point Katie. Creating a Python GUI is a huge undertaking and it will take much time to work out the bugs. A truly

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 8:41 pm, Robert sigz...@gmail.com wrote: On 2010-12-30 19:46:24 -0500, rantingrick said: Just to clarify...I like Python. I am learning it at the moment. Glad to have you aboard Robert! 3. What is your opinion of Tkinter as to it's usefulness within the stdlib? No, I really

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Gerry Reno
On 12/30/2010 10:28 PM, rantingrick wrote: Hmm, wxPython is starting to look like the answer to all our problems. WxPython already has an IDE so there is no need to rewrite IDLE completely. What do we have to loose by integrating wx into the stdlib, really? In the spirit of batteries

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Robert
On 2010-12-30 22:06:57 -0500, rantingrick said: What is your opinion (or anyone) on wxPython? Ok, I am curious again. Have you even tried wxPython or PySide/PyQt? -- Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Robert
On 2010-12-30 22:44:52 -0500, Gerry Reno said: On 12/30/2010 10:28 PM, rantingrick wrote: Hmm, wxPython is starting to look like the answer to all our problems. WxPython already has an IDE so there is no need to rewrite IDLE completely. What do we have to loose by integrating wx into the

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Robert
On 2010-12-30 22:28:39 -0500, rantingrick said: On Dec 30, 8:41 pm, Robert sigz...@gmail.com wrote: On 2010-12-30 19:46:24 -0500, rantingrick said: Just to clarify...I like Python. I am learning it at the moment. Glad to have you aboard Robert! Thanks! 3. What is your opinion of

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Steven D'Aprano
On Thu, 30 Dec 2010 23:04:33 -0500, Robert wrote: The second way the Tcl community irks me is the not invented here attitude. I like the syntax of Tcl and I like the community. They are some good folks. Try asking I want to build a Nagios clone in Tcl type question and invariably you get

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 9:44 pm, Gerry Reno gr...@verizon.net wrote: In the spirit of batteries included, Python needs to have something in the stdlib as far as gui.  But it cannot be overwhelming. Agreed! The problem with wx is that it is BIG.  And so if we want something like wx to be in the stdlib

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 9:51 pm, Robert sigz...@gmail.com wrote: Ok, I am curious again. Have you even tried wxPython or PySide/PyQt? Yes i have used wxPython on a few projects and was very happy with the feature rich nature of it. I found previously (with Tkinter) i would have to build my own compound

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread Adam Skutt
On Dec 30, 11:24 pm, rantingrick rantingr...@gmail.com wrote: The problem with wx is that it is BIG.  And so if we want something like wx to be in the stdlib then it would have to be refactored so that there was a small basic wx that was part of stdlib and then import

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 10:04 pm, Robert sigz...@gmail.com wrote: wxPython is really good. The downside is that is shows (or did show) its C++ roots. Well i will admit the api is not as simplistic as Tkinter. However i noticed over time that wx had started adopting a slight Tkinter feel to the API and that

Re: Tkinter: The good, the bad, and the ugly!

2010-12-30 Thread rantingrick
On Dec 30, 10:41 pm, Adam Skutt ask...@gmail.com wrote: On Dec 30, 11:24 pm, rantingrick rantingr...@gmail.com wrote: Exactly! All we need to do is replace the existing Tkinter with a small sub-set of wxPython widgets that mirrors exactly what we have now... Toplevel Label Entry

Re: OSError: [Errno 26] Text file busy during subprocess.check_call() :seems os dependent

2010-12-30 Thread Nobody
On Thu, 30 Dec 2010 13:46:35 -0800, harijay wrote: Each Thread receives a dynamically generated shell script from some classes I wrote and then runs the script using subprocess.call([shell_script_file.sh]) But I get the same OSError: [Errno 26] Text file busy error Text file busy aka

Change in scope of handled exception variable in Python 3?

2010-12-30 Thread Baptiste Lepilleur
Hi, I stumbled on a small bug with httplib2 that I reduced to the example below. It seems that with Python 3, when an exception is handled it unbound the previously declared local variable. This did not occurs with Python 2.5. It is a Python 3 feature? I did not find anything in the what's news,

Python3 Web Framework

2010-12-30 Thread Aman
Hey all... I just started with Python, and I chose Python3 because it seemed a subtle choice as compared to doing Pthon 2.x now and then porting to Python3.x later... I plan to start with Web Development soon... I wanted to know what all web frameworks are available for Python3... I heard the

Put up or shut up (Was Re: Tkinter: The good, the bad, and the ugly!)

2010-12-30 Thread Owen Jacobson
On 2010-12-30 12:36:05 -0500, rantingrick said: On Dec 30, 9:51 am, Kevin Walzer k...@codebykevin.com wrote: Tcl is not a domain-specific language for creating GUI's. Tcl is a full-featured, general-purpose programming language that is a peer to Python in its capabilities, Anybody can gloat

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-30 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Actually, it looks like PEP 3131 and the Language Reference [1] still disagree. The latter says: identifier ::= id_start id_continue* which should probably be identifier ::= xid_start xid_continue* instead. Interesting.

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Hearty +1. I have the hope of putting this in 3.3, and for that I'd like to see how the code matures, which is much easier when in version control. -- ___ Python tracker rep...@bugs.python.org

[issue3232] Wrong str-bytes conversion in Lib/encodings/idna.py

2010-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Arguably, it is not a bug if codec's decode method rejects unicode strings with a TypeError. Agreed, but it would be better if it did so deliberately and explicitly, rather than as a result of a bogus forward-port ;) --

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-12-30 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I think the proposal is that fixing this minefield can wait until Python 3.3 (or even 3.4, or later). That is what I was thinking. (Alex: You might not know that Martin was the main proponent of non-ASCII identifiers, so this assessment should

[issue10794] Infinite recursion while garbage collecting loops indefinitely

2010-12-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Normally you should never call __del__, OTOH the issue is the same with a class like:: class A: def close(self): self.close() def __del__(self): self.close() The problem is not with _infinite_ recursion,

[issue10794] Infinite recursion while garbage collecting loops indefinitely

2010-12-30 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Precision: with new-styles classes (or py3k) the limit is PyTrash_UNWIND_LEVEL-2. This does not change anything to the problem. -- ___ Python tracker rep...@bugs.python.org

[issue10796] readline completion flaw

2010-12-30 Thread rheise
New submission from rheise ralfhe...@freenet.de: Python's readline library generates out of the choices provided by a custom completion function the wrong terminal input. Say, the completion function suggests 'foobar' and 'foobaz' as matching completion strings, readline should produce the

[issue6210] Exception Chaining missing method for suppressing context

2010-12-30 Thread Patrick W.
Patrick W. p...@borntolaugh.de added the comment: Nick Coghlan (ncoghlan) at 2010-12-29 08:46 (UTC): No, the context must always be included unless explicitly suppressed. Then there should be some actually working way to suppress it, right? I think the standard behaviour that automatically

[issue10795] standard library do not use ssl as recommended

2010-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There are open issues for specific modules: #8808 for imaplib, #8809 for smtplib. In 3.2, poplib already has support for SSL contexts, as do ftplib, http.client and nntplib. If I'm missing a module please tell me. -- resolution: -

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-30 Thread Mark Roddy
Changes by Mark Roddy markro...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file20193/py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10786 ___

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-30 Thread Mark Roddy
Changes by Mark Roddy markro...@gmail.com: Added file: http://bugs.python.org/file20194/py32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10786 ___

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-30 Thread Mark Roddy
Mark Roddy markro...@gmail.com added the comment: All patches change the default value of stream to None in the constructor, and set it to the current to sys.stderr if the argument is None. Unit tests included to check this behavior. Also, the patch against Python 3.1 adds the

[issue10794] Infinite recursion while garbage collecting loops indefinitely

2010-12-30 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: FWIW, the example pasted in the bug was the smallest one he could come up with. in reality we were never calling .__del__() explicitly. We ran into the problem due to a __del__ method triggering a __getattr__ call and the __getattr__ ending up

[issue10681] PySlice_GetIndices() signature changed

2010-12-30 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: For reference, this seems to affect SWIG, specifically, I'm seeing build failures using: /usr/share/swig/2.0.1/python/pycontainer.swg from swig-2.0.1 See downstream build failure report for znc, which uses swig to generate python 3

[issue6632] Include more fullwidth chars in the decimal codec

2010-12-30 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I wonder if the issues raised here can be neatly addressed by applying NFKC normalization before string to number conversion. This will convert full-width variants to ASCII and also eliminate digit/decimal differences.

[issue9893] Usefulness of the Misc/Vim/ files?

2010-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alright, let me change my opinion: Let’s replace the Vim files by a README.vim file explaining where to get good helper files (like Misc/README.emacs added in r85927). Then I will learn how to manage my Vim configuration to keep it updated

[issue1816] sys.cmd_flags patch

2010-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ve recently remarked that -i maps to both sys.flags.inspect and sys.flags.interactive. Is this behavior useful? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue6210] Exception Chaining missing method for suppressing context

2010-12-30 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: using `None` as the cause of an exception would be the best solution in my opinion: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6210

[issue6210] Exception Chaining missing method for suppressing context

2010-12-30 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: using `None` as the cause of an exception would be the best solution in my opinion: +1 We are talking about context, not cause. -- ___ Python tracker rep...@bugs.python.org

[issue1284670] Allow to restrict ModuleFinder to get direct dependencies

2010-12-30 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The depth parameter idea sounds like YAGNI, so let’s stay with a recurse boolean :) -- assignee: - eric.araujo nosy: -BreamoreBoy, misc_from_metz stage: unit test needed - patch review versions: +Python 3.3 -Python 3.2

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-12-30 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The project is now at: https://code.google.com/p/mrab-regex/ Unfortunately it doesn't have the revision history. I don't know why not. -- ___ Python tracker rep...@bugs.python.org

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2010-12-30 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed to py3k in revision 87582. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10786 ___

  1   2   >