asciitable 0.7.0

2011-07-05 Thread Tom Aldcroft
Version 0.7.0 of asciitable (an extensible module for reading and writing ASCII tables) is now available. This release includes the following key features: - Added support for reading and writing LaTeX tables (contributed by Moritz Guenther). - Improved the CDS reader by better supporting

PyCon DE 2011 - Call for Proposals extended to July 15, 2011

2011-07-05 Thread Mike Müller
PyCon DE 2011 - Deadline for Proposals extended to July 15, 2011 The deadline for talk proposals is extended to July 15, 2011. You would like to talk about your Python project to the German-speaking Python community? Just submit

Python SDK for Windows 2011.07.03 released

2011-07-05 Thread erikj
we are pleased to announce a new release of our Python SDK for Windows more info at : http://www.python-camelot.com/cpd.html Changes --- a number of packages have been updated, including the Spyder IDE, and some new packages have been added. What is it The PythonSDK for

[RELEASED] Python 3.2.1 rc 2

2011-07-05 Thread Georg Brandl
On behalf of the Python development team, I am pleased to announce the second release candidate of Python 3.2.1. Python 3.2.1 will the first bugfix release for Python 3.2, fixing over 120 bugs and regressions in Python 3.2. For an extensive list of changes and features in the 3.2 line, see

ANN: Portable Python 2.7.2.1 released

2011-07-05 Thread Perica Zivkovic
Dear people, I would like to announce new release of Portable Python based on Python 2.7.2. Included in this release: - * PyScripter v2.4.1 * NymPy 1.6.0 * SciPy 0.90 * Matplotlib 1.0.1 * PyWin32 216 * Django 1.3 * PIL 1.1.7 * Py2Exe 0.6.9 * wxPython 2.8.12.0

[ANN] guiqwt v2.1.4

2011-07-05 Thread Pierre.RAYBAUT
Hi all, I am pleased to announce that `guiqwt` v2.1.4 has been released. Based on PyQwt (plotting widgets for PyQt4 graphical user interfaces) and on the scientific modules NumPy and SciPy, guiqwt is a Python library providing efficient 2D data-plotting features (curve/image visualization and

ANN: python-ldap 2.4.1

2011-07-05 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.1 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Seeking feedback on new Python development platform

2011-07-05 Thread Cameron Weiss
Hello there! We have just released a Python development environment that is configured to quickly deploy on a variety of cloud providers (Rackspace, Amazon, GoGrid, SoftLayer, etc). We want it to be useful to the Python community so are seeking feedback and suggestions. You can spin it up for free

Embedding a thin python

2011-07-05 Thread victor lucio
Hi All, I would like to remove some modules for embedding a thin python. how to do that? I would be grateful for your suggestions -- http://mail.python.org/mailman/listinfo/python-list

imp.find_module don't found my module but standard import statement can import this module… why ?

2011-07-05 Thread Stéphane Klein
Hi, I would like import some module dynamically. First, I install js.jquery $ pip install js.jquery Here, I would like import js module. import imp imp.find_module(js) Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named js import js I can't

Re: Implicit initialization is EVIL!

2011-07-05 Thread Robin Becker
On 03/07/2011 23:21, Chris Angelico wrote: . var(0x14205359) x # Don't forget to provide an address where the object will be located x=42 did you forget to specify the memory bank and computer (and presumably planet etc etc) -molly-coddled-ly yrs- Robin Becker --

Re: Problem!!

2011-07-05 Thread Nobody
On Sun, 03 Jul 2011 16:58:24 -0700, amir chaouki wrote: the problem is when i use the seek function on windows it gives me false results other then the results on *ux. the file that i work with are very large about 10mb. This is probably an issue with how the underlying C functions behave on

wx MenuItem - icon is missing

2011-07-05 Thread Laszlo Nagy
def onPopupMenu(self,evt): menu = wx.Menu() for title,bitmap in self.getPopupMenuItems(): item = wx.MenuItem(None,-1,title) if bitmap: item.SetBitmap(bitmap) menu.AppendItem(item)

Secure ssl connection with wrap_socket

2011-07-05 Thread Andrea Di Mario
Hi, I'm a new python user and I'm writing a small web service with ssl. I want use a self-signed certificate like in wiki: http://docs.python.org/dev/library/ssl.html#certificates I've used wrap_socket, but if i try to use cert_reqs=ssl.CERT_REQUIRED, it doesn't work with error: urllib2.URLError:

Re: Implicit initialization is EVIL!

2011-07-05 Thread Gregory Ewing
rantingrick wrote: You say root windows are bad however any parent-child relationship has to BEGIN somewhere. There's no need for *toplevel* windows to be children of anything, though. HOWEVER any of the windows ARE in fact instances of Tk.Toplevel[1]. So they ARE all equal because they all

Re: Implicit initialization is EVIL!

2011-07-05 Thread Gregory Ewing
rantingrick wrote: Most applications consist of one main window (a Tkinter.Tk instance). You've obviously never used a Macintosh. On the Mac, it's perfectly normal for an application to open multiple documents, each in its own window, with no one window being the main window. Any of them can

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread rantingrick
On Jul 4, 2:36 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: We have different languages because different people have different ideas about what a language should be like. Ruby people like user defined control structures; Python people regard user defined control structures as an

Re: HeaderParseError

2011-07-05 Thread Thomas Guettler
On 04.07.2011 13:20, Peter Otten wrote: Thomas Guettler wrote: On 04.07.2011 11:51, Peter Otten wrote: Thomas Guettler wrote: I get a HeaderParseError during decode_header(), but Thunderbird can display the name. from email.header import decode_header Hi, I created a ticket:

embedding: how do I redirect print output?

2011-07-05 Thread Ulrich Eckhardt
Hi! I'm trying to add some scripting capabilities to an application. Since it is a GUI application, I need some way to display output from Python. For 3.x, where print is a function, I'd just exchange this function with one that redirects the output to a log window, right. However, I'm using

Re: imp.find_module don't found my module but standard import statement can import this module… why ?

2011-07-05 Thread Eric Snow
On Tue, Jul 5, 2011 at 1:36 AM, Stéphane Klein steph...@harobed.org wrote: Hi, I would like import some module dynamically. To import a module dynamically, you can use the built-in __import__ function: module = __import__(js) Even better, use importlib's import_module, which is available

Re: imp.find_module don't found my module but standard import statement can import this module… why ?

2011-07-05 Thread Stéphane Klein
Le 05/07/2011 15:44, Eric Snow a écrit : On Tue, Jul 5, 2011 at 1:36 AM, Stéphane Kleinsteph...@harobed.org wrote: Hi, I would like import some module dynamically. To import a module dynamically, you can use the built-in __import__ function: module = __import__(js) Even better, use

Re: wx MenuItem - icon is missing

2011-07-05 Thread Philip Semanchuk
On Jul 5, 2011, at 4:02 AM, Laszlo Nagy wrote: def onPopupMenu(self,evt): menu = wx.Menu() for title,bitmap in self.getPopupMenuItems(): item = wx.MenuItem(None,-1,title) if bitmap: item.SetBitmap(bitmap)

Re: Secure ssl connection with wrap_socket

2011-07-05 Thread Jean-Paul Calderone
On Jul 5, 4:52 am, Andrea Di Mario anddima...@gmail.com wrote: Hi, I'm a new python user and I'm writing a small web service with ssl. I want use a self-signed certificate like in wiki:http://docs.python.org/dev/library/ssl.html#certificates I've used wrap_socket, but if i try to use

Re: Testing if a global is defined in a module

2011-07-05 Thread Grant Edwards
On 2011-07-05, Chris Angelico ros...@gmail.com wrote: On Tue, Jul 5, 2011 at 10:01 AM, Tim Johnson t...@johnsons-web.com wrote: Steven, I'm building a documentation system. I have my own MVC framework and the goal is to have a documentation module for each project. Is there a reason for not

Re: embedding: how do I redirect print output?

2011-07-05 Thread Thomas Jollans
On 07/05/2011 02:50 PM, Ulrich Eckhardt wrote: I'm trying to add some scripting capabilities to an application. Since it is a GUI application, I need some way to display output from Python. For 3.x, where print is a function, I'd just exchange this function with one that redirects the

Re: Embedding a thin python

2011-07-05 Thread Thomas Jollans
On 07/05/2011 08:28 AM, victor lucio wrote: Hi All, I would like to remove some modules for embedding a thin python. how to do that? I would be grateful for your suggestions Start your favourite file manager and delete them. -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python 3.2 on Cygwin fails

2011-07-05 Thread David Robinow
On Mon, Jul 4, 2011 at 3:49 PM, Aly Tawfik aly.taw...@gmail.com wrote: On Jun 20, 12:44 pm, sewpafly sewpa...@gmail.com wrote: I was able to a little further by changing 2 lines in Makefile.pre.in. On line 170, changed:     DLLLIBRARY= @DLLLIBRARY@ to:     DLLLIBRARY=

Re: Implicit initialization is EVIL!

2011-07-05 Thread Steven D'Aprano
Gregory Ewing wrote: rantingrick wrote: Most applications consist of one main window (a Tkinter.Tk instance). You've obviously never used a Macintosh. On the Mac, it's perfectly normal for an application to open multiple documents, each in its own window, with no one window being the

Re: from module import * using __import__?

2011-07-05 Thread Thomas Jollans
On 07/02/2011 09:52 PM, Dan Stromberg wrote: Is there a decent way of running from variable import *? Perhaps using __import__? Does it mean using the copy module or adding an element to globals() somehow? Yes, exactly. That's what `from x import *` does: Get the module, and then add all

Re: embedding: how do I redirect print output?

2011-07-05 Thread Steven D'Aprano
Ulrich Eckhardt wrote: Hi! I'm trying to add some scripting capabilities to an application. Since it is a GUI application, I need some way to display output from Python. For 3.x, where print is a function, I'd just exchange this function with one that redirects the output to a log window,

Re: can I package a distutil based python app in deb?

2011-07-05 Thread Thomas Jollans
On 06/26/2011 07:59 PM, hackingKK wrote: Hello all, I guess the subject line says it all. I want to package a python app to deb. I have 3 interesting issues with it. 1, I would want it to run on Ubuntu 10.04, Ubuntu 10.10, Ubuntu 11.04 and Debian 5. 2, the package depends on another python

Re: module problem on windows 64bit

2011-07-05 Thread Thomas Jollans
On 06/27/2011 06:59 PM, miamia wrote: Hello, on 32-bit windows everything works ok but on 64-bit win I am getting this error: Traceback (most recent call last): File app.py, line 1040, in do_this_now File kinterbasdb\__init__.pyc, line 119, in module File

Re: Implicit initialization is EVIL!

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 12:25 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Gregory Ewing wrote: You've obviously never used a Macintosh. On the Mac, it's perfectly normal for an application to open multiple documents, each in its own window, with no one window being the

Re: embedding: how do I redirect print output?

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 12:36 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: print Hello world dlrow olleH You, sir, have a warped and twisted mind. And I love it!! Now to secretly put code into some module somewhere and wait for people to start tearing their hair out

Re: Testing if a global is defined in a module

2011-07-05 Thread Tim Johnson
* Ian Kelly ian.g.ke...@gmail.com [110704 20:37]: It sounds like what you really want is to detect the names *exported* by the module, then. i Yes! Why not do it the same way Python does it? If the module defines an __all__ attribute, then it is taken to be a sequence of strings which

Implicit initialization is EXCELLENT

2011-07-05 Thread Steven D'Aprano
This is not strictly Python, although it is peripherally relevant. Some month or three ago, I read an article or blog post about API design, specifically the wrong-headedness of insisting that callers manually initialise instances using a separate step after creation. The argument goes, if your

Re: Implicit initialization is EVIL!

2011-07-05 Thread nn
On Jul 4, 11:35 am, Robin Becker ro...@reportlab.com wrote: On 03/07/2011 23:21, Chris Angelico wrote: . var(0x14205359) x   # Don't forget to provide an address where the object will be located x=42 did you forget to specify the memory bank and computer (and

Re: Testing if a global is defined in a module

2011-07-05 Thread Grant Edwards
On 2011-07-05, Tim Johnson t...@johnsons-web.com wrote: * Ian Kelly ian.g.ke...@gmail.com [110704 20:37]: It sounds like what you really want is to detect the names *exported* by the module, then. i Yes! Why not do it the same way Python does it? If the module defines an __all__

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Corey Richardson
Excerpts from rantingrick's message of Tue Jul 05 07:42:39 -0400 2011: I was thinking more about this comment and it occurred to me that Python does have user controlled data structures. Just because there is no top level syntax like ruby does not mean these do not exists. You only have to

Re: Implicit initialization is EVIL!

2011-07-05 Thread Robin Becker
On 05/07/2011 16:33, nn wrote: .. Ah, I see we have a mainframe programmer among us ... :-) so long since I manipulated the switches of that old pdp-8 -anciently yrs- Robin Becker -- http://mail.python.org/mailman/listinfo/python-list

VIDEOS FOR HOT GUYS

2011-07-05 Thread SAHITHI
FOR GOOD JOBS SITES TO YOU http://goodjobssites.blogspot.com/ FOR HOT PHOTOVIDEOS KATRINA KAIF IN BEAUTIFUL RED DRESS http://southactresstou.blogspot.com/2011/05/katrina-kaif_22.html

Re: Testing if a global is defined in a module

2011-07-05 Thread Waldek M.
Dnia Tue, 5 Jul 2011 14:11:56 + (UTC), Grant Edwards napisał(a): Because those specially-formatted comments are wrong. ... because? Not in sarcasm mode; just curious why you don't like them. Br. Waldek -- http://mail.python.org/mailman/listinfo/python-list

Re: Testing if a global is defined in a module

2011-07-05 Thread Steven D'Aprano
Waldek M. wrote: Dnia Tue, 5 Jul 2011 14:11:56 + (UTC), Grant Edwards napisał(a): Because those specially-formatted comments are wrong. ... because? Not in sarcasm mode; just curious why you don't like them. Because unless you are extremely disciplined, code and the comments describing

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread sal migondis
On Jul 4, 10:31 pm, alex23 wuwe...@gmail.com wrote: rantingrick rantingr...@gmail.com wrote: I believe (unlike most people) that nature is striving for perfection Your belief is wrong. Nature doesn't strive for _anything_. Things in the world are either fit enough to continue their existence

Question about how to get line buffering from paramiko

2011-07-05 Thread Steven W. Orr
I'm writing a program that uses paramiko to run a lot of commands over ssh. Some of the commands take time to run and they write to stdout and stderr as a normal part of their operation so that we can see progress happening. I can't seem to get the output from the remote commands (which is

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread Michel Claveau - MVP
Hi! +1 @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread Ian Kelly
On Mon, Jul 4, 2011 at 12:36 AM, Xah Lee xah...@gmail.com wrote: So, a solution by regex is out. Actually, none of the complications you listed appear to exclude regexes. Here's a possible (untested) solution: div class=img ((?:\s*img src=[^.]+\.(?:jpg|png|gif) alt=[^]+ width=[0-9]+

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread Mel
Steven D'Aprano wrote: [ ... ] Python generally follows this design. Apart from files, I can't easily think off the top of my head of any types that require a separate open/start/activate call before they are usable. It's also relevant to tkinter, which will implicitly create a root window for

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread Stefaan Himpe
Hello, I agree with the contents of this post. I see a similar problem with API's requiring to initialize all kinds of data using setters/properties instead of receiving it in the initializer (or constructor). Python generally follows this design. Apart from files, I can't easily think off

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread Xah Lee
On Jul 4, 12:13 pm, S.Mandl stefanma...@web.de wrote: Nice. I guess that XSLT would be another (the official) approach for such a task. Is there an XSLT-engine for Emacs? -- Stefan haven't used XSLT, and don't know if there's one in emacs... it'd be nice if someone actually give a

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread Xah Lee
On Jul 5, 12:17 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Jul 4, 2011 at 12:36 AM, Xah Lee xah...@gmail.com wrote: So, a solution by regex is out. Actually, none of the complications you listed appear to exclude regexes.  Here's a possible (untested) solution: div class=img

ANN: python-ldap 2.4.1

2011-07-05 Thread Michael Ströder
Find a new release of python-ldap: http://pypi.python.org/pypi/python-ldap/2.4.1 python-ldap provides an object-oriented API to access LDAP directory servers from Python programs. It mainly wraps the OpenLDAP 2.x libs for that purpose. Additionally it contains modules for other LDAP-related

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread Xah Lee
On Jul 5, 12:17 pm, Ian Kelly ian.g.ke...@gmail.com wrote: On Mon, Jul 4, 2011 at 12:36 AM, Xah Lee xah...@gmail.com wrote: So, a solution by regex is out. Actually, none of the complications you listed appear to exclude regexes.  Here's a possible (untested) solution: div class=img

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Andrew Berg
On 2011.07.05 01:14 PM, sal migondis wrote: How could a belief be wrong? Beliefs aren't subjective. One's taste in music, for example, is largely subjective and can't be right or wrong, but a belief (which has to do with facts) certainly can be. What do you think will be the eventual outcome

Re: embedding: how do I redirect print output?

2011-07-05 Thread Andrew Berg
On 2011.07.05 10:20 AM, Chris Angelico wrote: You, sir, have a warped and twisted mind. And I love it!! Now to secretly put code into some module somewhere and wait for people to start tearing their hair out wait, did I say that out loud? from pytroll import print --

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread John Gordon
In BEJQp.25947$Sr.7633@newsfe12.ams2 Stefaan Himpe stefaan.hi...@gmail.com writes: Now, I have an ulterior motive in raising this issue... I can't find the original article I read! My google-fu has failed me (again...). I don't suppose anyone can recognise it and can point me at it? My

write file

2011-07-05 Thread miguel olivares varela
Hi, i got a csv file that i need to modify and create a new one, i have no problem to read mi 'test.cvs' which is the source file but when i try to create a new one with the modifications i only got the first row in my 'out.csv' file. I think there is somethng wrong in my loop because i

Re: write file

2011-07-05 Thread Dan Stromberg
What's date_cdr supposed to be? Is your exception handler doing unusual things with sys.exit? Did you try to run this? When I try to run it, it fails to compile. You might want to try opening your output file once and writing to it repeatedly, then close()ing it after all your writes are

How do twisted and multiprocessing.Process create zombies?

2011-07-05 Thread bitcycle
In python, using twisted loopingcall, multiprocessing.Process, and multiprocessing.Queue; is it possible to create a zombie process. And, if so, then how? -- http://mail.python.org/mailman/listinfo/python-list

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread John Gordon
In iuvu5p$g1n$1...@reader1.panix.com John Gordon gor...@panix.com writes: which praised the bendfists of implicit initialization. Wow, that's quite a typo! I meant benefits, of course. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is

RE: write file

2011-07-05 Thread miguel olivares varela
What's date_cdr supposed to be? It was a mistake it should be date_source Is your exception handler doing unusual things with sys.exit? Not really Did you try to run this? When I try to run it, it fails to compile. it compiles i have no problems with the compilation. The issue is the

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread Ian Kelly
On Tue, Jul 5, 2011 at 2:37 PM, Xah Lee xah...@gmail.com wrote: but in anycase, i can't see how this part would work p class=cpt((?:[^]|(?!/p))+)/p It's not that different from the pattern 「alt=[^]+」 earlier in the regex. The capture group accepts one or more characters that either aren't '',

Re: write file

2011-07-05 Thread Benjamin Kaplan
On Jul 5, 2011 2:28 PM, miguel olivares varela klica_...@hotmail.com wrote: Hi, i got a csv file that i need to modify and create a new one, i have no problem to read mi 'test.cvs' which is the source file but when i try to create a new one with the modifications i only got the first row in

Re: emacs lisp text processing example (html5 figure/figcaption)

2011-07-05 Thread S.Mandl
haven't used XSLT, and don't know if there's one in emacs... it'd be nice if someone actually give a example... Hi Xah, actually I have to correct myself. HTML is not XML. If it were, you could use a stylesheet like this: ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 4:14 AM, sal migondis salmi...@gmail.com wrote: On Jul 4, 10:31 pm, alex23 wuwe...@gmail.com wrote: rantingrick rantingr...@gmail.com wrote: What do you think will be the eventual outcome of the human existence Alex? Since you have no imagination i will tell you, a

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread rantingrick
On Jul 5, 11:04 am, Corey Richardson kb1...@aim.com wrote: How is giving the sort method a function by which to determine the relative value of objects a control structure? Do you know what a control structure is? It's something that you use to modify control flow: if foo = bar:         foo

Re: Implicit initialization is EVIL!

2011-07-05 Thread rantingrick
On Jul 5, 10:17 am, Chris Angelico ros...@gmail.com wrote: It's actually quite easy to implement this, even if you _are_ forced to have one primary window. You just have an invisible primary whose sole purpose is to be the application, and then everything else is secondary windows. Kinda

Re: Testing if a global is defined in a module

2011-07-05 Thread Grant Edwards
On 2011-07-05, Waldek M. wm@localhost.localdomain wrote: Dnia Tue, 5 Jul 2011 14:11:56 + (UTC), Grant Edwards napisa?(a): Because those specially-formatted comments are wrong. ... because? In my experience, they're wrong because somebody changes the code and not the comments. Not in

Re: Implicit initialization is EVIL!

2011-07-05 Thread rantingrick
On Jul 5, 11:00 am, Web Dreamer webdrea...@nospam.fr wrote: What he means is that On Mac, if you close all windows, the application is still running. Then that is NOT closing windows that is only ICONIFIYING/HIDING them. Let's use the correct lingo people! --

Re: Testing if a global is defined in a module

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 3:36 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Because unless you are extremely disciplined, code and the comments describing them get out of sync. Quote: At Resolver we've found it useful to short-circuit any doubt and just refer to comments in

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 8:35 AM, rantingrick rantingr...@gmail.com wrote: You're the best enemy a person could have. Thank you. *bows* Compliments are made to be returned, and this one is particularly well suited. *bow* Chris Angelico -- http://mail.python.org/mailman/listinfo/python-list

Re: Implicit initialization is EVIL!

2011-07-05 Thread rantingrick
On Jul 5, 6:14 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: rantingrick wrote: Most applications consist of one main window (a Tkinter.Tk instance). You've obviously never used a Macintosh. On the Mac, it's perfectly normal for an application to open multiple documents, each in

Re: wx MenuItem - icon is missing

2011-07-05 Thread Laszlo Nagy
1. Post a complete example that demonstrates the problem so that we don't have to dummy up a wx app ourselves to try your code. import sys import wx from wx.lib.embeddedimage import PyEmbeddedImage img = PyEmbeddedImage(

Re: Implicit initialization is EVIL!

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 8:42 AM, rantingrick rantingr...@gmail.com wrote: Chris are you playing devils advocate (for my team). I am confused? :-) I say whatever I choose to say. Don't pigeon-hole me into on your team or not on your team or devil's advocate or whatever. And at two in the morning,

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Tim Chase
On 07/05/2011 05:35 PM, rantingrick wrote: One thing is for sure, i always get a giggle from your self defeating posts. You're the best enemy a person could have. Thank you. *bows* Every time I see a rantingrick post, it's like watching the Black Knight scene from the Holy Grail yet again.

Re: wx MenuItem - icon is missing

2011-07-05 Thread Philip Semanchuk
On Jul 5, 2011, at 3:32 PM, Laszlo Nagy wrote: 1. Post a complete example that demonstrates the problem so that we don't have to dummy up a wx app ourselves to try your code. [code sample snipped] Under windows, this displays the icon for the popup menu item. Under GTK it doesn't

Re: Implicit initialization is EVIL!

2011-07-05 Thread rantingrick
On Jul 5, 6:20 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Jul 6, 2011 at 8:42 AM, rantingrick rantingr...@gmail.com wrote: [...] On Jul 5, 11:00 am, Web Dreamer webdrea...@nospam.fr wrote: What he means is that On Mac, if you close all windows, the application is still running.

Re: Implicit initialization is EVIL!

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 9:47 AM, rantingrick rantingr...@gmail.com wrote: Then that is NOT closing windows that is only ICONIFIYING/HIDING them. Let's use the correct lingo people! Actually, it IS closing those windows. Why wouldn't it be? [...] The memory used by that window can be

Re: Implicit initialization is EVIL!

2011-07-05 Thread rantingrick
On Jul 5, 6:54 pm, Chris Angelico ros...@gmail.com wrote: To do what for me? Close windows? Reclaim memory? Terminate applications? I don't understand your bogglement. ClaimA: I made claim that Tkinter's window hierarchy is not only normal, but justified in modern GUI programming. ClaimB: You

Re: Implicit initialization is EVIL!

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 10:15 AM, rantingrick rantingr...@gmail.com wrote: On Jul 5, 6:54 pm, Chris Angelico ros...@gmail.com wrote: To do what for me? Close windows? Reclaim memory? Terminate applications? I don't understand your bogglement. ClaimA: I made claim that Tkinter's window

Re: How do twisted and multiprocessing.Process create zombies?

2011-07-05 Thread Stefan Behnel
bitcycle, 05.07.2011 23:52: In python, using twisted loopingcall, multiprocessing.Process, and multiprocessing.Queue; is it possible to create a zombie process. And, if so, then how? I think it's best to consult your local Voodoo master on the matter of zombie creation processes. That

Re: Implicit initialization is EVIL!

2011-07-05 Thread rantingrick
On Jul 5, 7:34 pm, Chris Angelico ros...@gmail.com wrote: Actually, everything you do requires the underlying window manager, otherwise you're just painting your own pixels on the screen. And I never said that this model was possible in some and not others. (Although it's a bit harder with

Re: web browsing short cut

2011-07-05 Thread Dustin Cheung
Hey, I am looking into Tkinter. But i am not sure if it will actually work. This maybe a crazy idea but i was wondering if i can put a web browser in the frame. I have tried to use Tkinter to resize and place the windows to certain areas of the screen but that's not working or the way im

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread rantingrick
On Jul 4, 6:24 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: rantingrick wrote: Some people want to make Python more dynamic. Some want it to be less dynamic. Some care about integrating it with Java or .Net, some don't care about either. Some are interested in clever

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread rantingrick
On Jul 5, 10:26 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: This is not strictly Python, although it is peripherally relevant. Some month or three ago, I read an article or blog post about API design, specifically the wrong-headedness of insisting that callers manually

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 11:07 AM, rantingrick rantingr...@gmail.com wrote: On Jul 4, 6:24 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Define best for all, and try not to make it what Rick wants. You want features? And remember i am talking about scripting/glue level

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 11:53 AM, rantingrick rantingr...@gmail.com wrote: So you would start drivers education class with road construction? Or the history of the internal combustion engine? Who cares about actually *driving* the car. I believe that starting driver ed with some basics of how

Should ctypes handle mis-matching structure return ABI between mingw and MSVC?

2011-07-05 Thread Just Fill Bugs
According the Bug 36834 of gcc, there is a mis-matching between mingw and MSVC when a struct was returned by value from a C function. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36834 Should ctypes handle this situation automatically somehow? A ctypes discussion on 2009:

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread rantingrick
On Jul 5, 9:44 pm, Chris Angelico ros...@gmail.com wrote: On Wed, Jul 6, 2011 at 11:53 AM, rantingrick rantingr...@gmail.com wrote: So you would start drivers education class with road construction? Or the history of the internal combustion engine? Who cares about actually *driving* the

hai

2011-07-05 Thread http://123maza.com/65/chill155/
http://123maza.com/65/chill155/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 1:45 PM, rantingrick rantingr...@gmail.com wrote: If you force too much on people, they'll go elsewhere.  Why all this running away with tail between legs?  Do these these people have extremely small eggs?  I wish they would stand firm and put up a fight  instead

Microsoft GUIs (was: The end to all language wars and the great unity API to come!) (OT)

2011-07-05 Thread Andrew Berg
On 2011.07.05 09:31 PM, Chris Angelico wrote: I've said for a while that Microsoft could do far worse than to turn Windows into a GUI that sits on top of a Unix-derived kernel. They won't do it, though, because it would be tantamount to admitting both that Unix is superior to Windows, AND that

Re: Microsoft GUIs (was: The end to all language wars and the great unity API to come!) (OT)

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 2:13 PM, Andrew Berg bahamutzero8...@gmail.com wrote: On 2011.07.05 09:31 PM, Chris Angelico wrote: I've said for a while that Microsoft could do far worse than to turn Windows into a GUI that sits on top of a Unix-derived kernel. They won't do it, though, because it

Re: Microsoft GUIs

2011-07-05 Thread Andrew Berg
On 2011.07.05 11:25 PM, Chris Angelico wrote: Suppose I gave you a computer that had GNOME ported to Windows, and used the purplish palette that Ubuntu 10.10 uses, and had a Windows port of bash as its most convenient terminal. Members of this list will doubtless have no problem duck-typing

Re: Microsoft GUIs (was: The end to all language wars and the great unity API to come!) (OT)

2011-07-05 Thread Dan Stromberg
On Tue, Jul 5, 2011 at 9:13 PM, Andrew Berg bahamutzero8...@gmail.comwrote: On 2011.07.05 09:31 PM, Chris Angelico wrote: I've said for a while that Microsoft could do far worse than to turn Windows into a GUI that sits on top of a Unix-derived kernel. They won't do it, though, because it

Re: Microsoft GUIs

2011-07-05 Thread Andrew Berg
On 2011.07.06 12:03 AM, Dan Stromberg wrote: I disagree. The stuff endusers tend to use is polished to some extent, but the backend is verging on hideous. If a developer complains about the ugly internal structure yeah, but you say that just because you're a computer person / geek.

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Andrew Berg
On 2011.07.06 12:26 AM, Dennis Lee Bieber wrote: On Tue, 05 Jul 2011 16:01:57 -0500, Andrew Berg bahamutzero8...@gmail.com declaimed the following in gmane.comp.python.general: On 2011.07.05 01:14 PM, sal migondis wrote: How could a belief be wrong? Beliefs aren't subjective. One's

Re: Microsoft GUIs

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 2:53 PM, Andrew Berg bahamutzero8...@gmail.com wrote: Let Microsoft play with, and sell, pretty GUIs and pretty apps. I completely disagree. MS sucks at making GUIs. I never said they were good at making GUIs. I said they were good at selling GUIs. Dan is right about

Re: The end to all language wars and the great unity API to come!

2011-07-05 Thread Chris Angelico
On Wed, Jul 6, 2011 at 3:26 PM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Wed, 6 Jul 2011 12:31:02 +1000, Chris Angelico ros...@gmail.com declaimed the following in gmane.comp.python.general: Democracy DOES NOT WORK. Plain and simple. You cannot build a programming language

[issue12499] textwrap.wrap: add control for fonts with different character widths

2011-07-05 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: About the patch: the function should not be passed to the constructor, it could be a regular method that can be overridden in subclasses. -- nosy: +amaury.forgeotdarc ___ Python tracker

  1   2   3   >