ANN: pyftpdlib 0.6.0 released

2011-01-24 Thread Giampaolo Rodola
Hi, I'm pleased to announce release 0.6.0 of Python FTP Server library (pyftpdlib). http://code.google.com/p/pyftpdlib/ === About === Python FTP server library provides an high-level portable interface to easily write asynchronous FTP servers with Python. Based on asyncore framework

attend

2011-01-24 Thread wenhao zhang
attend Join -- http://mail.python.org/mailman/listinfo/python-list

I'm interested in calculating time down to the femtosecond.

2011-01-24 Thread Slie
I found that there was a code submission at NumPy 1.4 but I can not find in the documentation search for Date nor have found anything other then that discussion of the ability. Anyone have any ideas suggestions? I just want my program to be able to calculate it nothing special. Thanks, --

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
I also have a segfault. You should fix that, rantingrick It's clear that the mighty text editor he's wielding in his arena of champions while taking on the world all by himself does not come with a debugger, or even the ability to run the code. Might I suggest throwing your current weapon of

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: Kevin Walzer k...@codebykevin.com The ttk::treeview widget can also function as a multi-column listbox, and can include both tree and multi-column listbox features in a single window. It's a very flexible widget. But unfortunately it is not accessible for screen readers and it

Re: documentation / reference help

2011-01-24 Thread Peter Otten
Scott Meup wrote: I'm trying tolearn Python. The documentation tells syntax, and other things about a command. But for too many commands, it doesn't tell what it does. for instance, in VB the 'return' command tells the program what line to execute after some event (usually an error). In

Re: A and B but not C in list

2011-01-24 Thread Peter Otten
Ian Kelly wrote: On Sun, Jan 23, 2011 at 2:34 PM, Christian Heimes li...@cheimes.de wrote: your_set = set(your_list) if your_set.issuperset(set([A, B])) and your_set.isdisjoint(set([C, D])): if your_set.intersection([A, B, C, D]) == set([A, B]): ... You can avoid converting

Re: WxPython versus Tkinter.

2011-01-24 Thread Martin v. Loewis
Well i did expect that you would at least include some info as to your OS and version. OS is Linux, wxPython is Debian python-wxgtk2.6 2.6.3.2.2-5+b1. That would be helpful also. Obviously the wx.ImageList is barfing. Do you have the Bitmap folder containing the three images. Did you try to

Re: Converting functions

2011-01-24 Thread iu2
On Jan 24, 9:51 am, Peter Otten __pete...@web.de wrote: iu2 wrote: I'm trying to convert functions - pass a few functions to a converting function, which change their behaviour and return the changed functions: def cfuncs(*funcs):         n = []         for f in funcs:            

Re: Converting functions

2011-01-24 Thread Peter Otten
iu2 wrote: I thought a function definition creates a closure around all used vars. As I understand now only variables that are passed as function arguments can participate in a closure. No, it's just that all closures see the value of a variable at the time when the closure is run, not when

Behaviour-based interface/protocol implementation?

2011-01-24 Thread Alan Franzoni
Hello, I'd like to have a system which lets me do certain actions if the duck-type of a certain objects matches what I expect, i.e. I'd like to have a formalization of what it's sometimes done through getattr() calls: if getattr(myobj, somemethod, None) is not None:

List behaviours with Clustering Algorithm

2011-01-24 Thread James Ravenscroft
Dear All, I am currently trying to write a simple Agglomerative Clustering algorithm which sorts through my MP3 collection and uses associated Last.FM tags to cluster files into 'genres'. Unfortunately, I'm having some trouble with my algorithm and some tracks are ending up in multiple clusters.

Re: Converting functions

2011-01-24 Thread Edmunds Cers
Peter Otten __pete...@web.de writes: I don't know how to express it more clearly, so here's another example: def f(): ... def g(): return a * a ... def h(): return a + a ... a = 5 ... return g, h ... g, h = f() g(), h() (25, 10) IMHO this whole confusion just shows

Multiple python installations mix their sys.prefix

2011-01-24 Thread Tech Support Box
Hi there I have several versions of python2.4 installed: - the OS, rpm-installed one in /usr - Several other versions in /usr/local, installed with --prefix /usr/ local/inst-shared/version --exec-prefix /usr/local/inst/version My problem is when starting one of the versions from /usr/local,

Re: List behaviours with Clustering Algorithm

2011-01-24 Thread Peter Otten
James Ravenscroft wrote: Dear All, I am currently trying to write a simple Agglomerative Clustering algorithm which sorts through my MP3 collection and uses associated Last.FM tags to cluster files into 'genres'. Unfortunately, I'm having some trouble with my algorithm and some tracks are

Re: Converting functions

2011-01-24 Thread Peter Otten
Edmunds Cers wrote: Peter Otten __pete...@web.de writes: I don't know how to express it more clearly, so here's another example: def f(): ... def g(): return a * a ... def h(): return a + a ... a = 5 ... return g, h ... g, h = f() g(), h() (25, 10) IMHO this whole

Re: Multiple python installations mix their sys.prefix

2011-01-24 Thread shrikant kesharwani
Hi, I have a web page through this page when I try to add a new user then users created successfully but when try resetting their password then I am getting errors? add New user successfully public static void AddUser(ADUser adUser) { // Local variables

Re: A and B but not C in list

2011-01-24 Thread Christian Heimes
Am 24.01.2011 04:05, schrieb Ian Kelly: On Sun, Jan 23, 2011 at 2:34 PM, Christian Heimes li...@cheimes.de wrote: your_set = set(your_list) if your_set.issuperset(set([A, B])) and your_set.isdisjoint(set([C, D])): if your_set.intersection([A, B, C, D]) == set([A, B]): ... Ingenious

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 23, 11:31 am, rantingrick rantingr...@gmail.com wrote: On Jan 22, 6:07 pm, rantingrick rantingr...@gmail.com wrote: I await any challengers... So far only trolls (besides Terry, Octavian, D'Aprano) have replied. In my time here within the Python community i have only met one person

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 23, 8:48 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: When I run the code snippet Martin provided under Linux, the file selection box shows files in columns. That's part of the reason why I consider it ugly -- I'm an old Mac guy, and I still dislike file selection

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 2:56 am, Martin v. Loewis mar...@v.loewis.de wrote: Well Rick, this doesn't make look wxPython any better. Well Martin this seems to be a Linux problem. And it may be a debian problem. Every Google search i landed on with wxPython+imagelist +sefault the user mentioned debian...hmm?.

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 23, 5:13 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sun, 23 Jan 2011 12:23:13 -0800, rantingrick wrote: I am not trying to create a working file browser so you can steal my code. Dammit! There goes my brilliant idea for getting rich. Step 1: Start company.

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 23, 7:12 pm, rantingrick rantingr...@gmail.com wrote: On Jan 23, 5:23 pm, Kevin Walzer k...@codebykevin.com wrote: I found this code in the Demo/tkinter/ttk directory of the Python 2.7.1 source distribution. I'm NOT the author (credit should probably go to Guilherme Polo, developer

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 23, 7:33 pm, rantingrick rantingr...@gmail.com wrote: On Jan 23, 7:16 pm, Kevin Walzer k...@codebykevin.com wrote: On 1/23/11 8:12 PM, rantingrick wrote: The only way i can respond to this is to quite the requirements for my challenge...

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 7:13 am, Bryan bryan.oak...@gmail.com wrote: So, what you're saying is, the real challenge you are presenting is using the toolkit of your choice, open up a wx.ListCtrl widget. read the very first post which outlines the challenge. If you want a fair challenge don't say you can't

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 12:06 am, rusi rustompm...@gmail.com wrote: On Jan 24, 9:16 am, Littlefield, Tyler ty...@tysdomain.com wrote: Of course as Steven pointed out wx is written in C++ which is almost certainly where the crash is occurring. But this is technical nitpicking. The real issue is that when

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: Bryan bryan.oak...@gmail.com It would be hard (but not impossible, by any stretch) for me to duplicate your code. Certainly, it would take more lines of code but that's about it. OTOH, it would be very difficult indeed to create a tkinter program that works on windows but segfaults on

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 7:24 am, Bryan bryan.oak...@gmail.com wrote: On Jan 24, 12:06 am, rusi rustompm...@gmail.com wrote: On Jan 24, 9:16 am, Littlefield, Tyler ty...@tysdomain.com wrote: Of course as Steven pointed out wx is written in C++ which is almost certainly where the crash is occurring.

Re: WxPython versus Tkinter.

2011-01-24 Thread Peter Otten
rantingrick wrote: I am demanding that from now on, you must have at least a 120 or higher IQ before participating in any of my threads. You mean, you are putting yourself in your own killfile ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-24 Thread Giampaolo Rodolà
2011/1/24 rantingrick rantingr...@gmail.com: On Jan 24, 2:56 am, Martin v. Loewis mar...@v.loewis.de wrote: Well Rick, this doesn't make look wxPython any better. Well Martin this seems to be a Linux problem. And it may be a debian problem. Every Google search i landed on with

Re: [Code Challenge] WxPython versus Tkinter.

2011-01-24 Thread Kevin Walzer
On 1/24/11 1:52 AM, Octavian Rasnita wrote: Well, I have also tested the program dirbrowser.py, but it is not decent at all. I have tested it with JAWS screen reader and it is absolutely inaccessible. The single accessible things in it are the title bar which is tk. It can't compare with the

Re: WxPython versus Tkinter.

2011-01-24 Thread Kevin Walzer
On 1/24/11 8:24 AM, rantingrick wrote: Bryan you are clearly an idiot. I am demanding that from now on, you must have at least a 120 or higher IQ before participating in any of my threads. Really, if you are an idiot then you should not be allowed to vote or reproduce. However for this group i

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
Or you have started to use Linux and now you don't care about the majority of users that need to use a screen reader? I said nothing the like. TkInter does have problemns with Jaws, but I'm not going to sit here and say the same thing over and over as you are doing. Get off the soapbox already.

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 6:33 am, Bryan bryan.oak...@gmail.com wrote: I think I'm qualified, though I guess only you can tell me if I measure up to your standards. Go on... I have 15 years or so of tk development, though admittedly mostly with Tcl. Most recently I've spent about the past year and a half

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 7:48 am, Kevin Walzer k...@codebykevin.com wrote: Rick, I've tried to give you the benefit of the doubt during this discussion, but I've had enough. Bryan Oakley is no idiot. He is obviously lying to discredit me. And I have posted evidence of his hyperbole. You said elsewhere

Re: WxPython versus Tkinter.

2011-01-24 Thread Mike Driscoll
On Jan 24, 7:24 am, Bryan bryan.oak...@gmail.com wrote: On Jan 24, 12:06 am, rusi rustompm...@gmail.com wrote: On Jan 24, 9:16 am, Littlefield, Tyler ty...@tysdomain.com wrote: Of course as Steven pointed out wx is written in C++ which is almost certainly where the crash is occurring.

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 8:49 am, Mike Driscoll kyoso...@gmail.com wrote: On Jan 24, 7:24 am, Bryan bryan.oak...@gmail.com wrote: In my experience, segfaults with wxPython aren't daily, but they are pretty much weekly. There are weeks that can go by without them, but then I'll have several in a week to

Re: Short circuting

2011-01-24 Thread Mauro Caceres
Another option could be something like this: You can add ids to your regexp, so you can retrive them latter using groupdict. Once you have the ids in place, you can join in a new regexp with the | operator which is not greedy, it will stop after the first match. pattern =

Re: WxPython versus Tkinter.

2011-01-24 Thread Grant Edwards
On 2011-01-24, rantingrick rantingr...@gmail.com wrote: Bryan you are clearly an idiot. I am demanding that from now on, you must have at least a 120 or higher IQ before participating in any of my threads. Rantingrick thinks certain threads belong to him. 'nuf said. -- Grant Edwards

Re: WxPython versus Tkinter.

2011-01-24 Thread Grant Edwards
On 2011-01-24, Corey Richardson kb1...@aim.com wrote: Python (and supposedly wxPython) are cross-platform. Code that runs on one should run on the other unmodified. No, that's not what cross-platform really means. Cross-platform means that it's possible (and reasonably stright-forward) to

Re: A and B but not C in list

2011-01-24 Thread Boris Borcic
Terry Reedy wrote: The straightforward code if a in L and b in L and c not in L and d not in L scans the list 4 times. of course for a single scan one can setify the list and write S=set(L) if a in S and b in S and c not in S and d not in S or even, I guess, something like {a,b} = S and

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 10:13 am, Grant Edwards inva...@invalid.invalid wrote: On 2011-01-24, rantingrick rantingr...@gmail.com wrote: Bryan you are clearly an idiot. I am demanding that from now on, you must have at least a 120 or higher IQ before participating in any of my threads. Rantingrick

Re: WxPython versus Tkinter.

2011-01-24 Thread Mike Driscoll
On Jan 24, 9:02 am, rantingrick rantingr...@gmail.com wrote: On Jan 24, 8:49 am, Mike Driscoll kyoso...@gmail.com wrote: On Jan 24, 7:24 am, Bryan bryan.oak...@gmail.com wrote: In my experience, segfaults with wxPython aren't daily, but they are pretty much weekly. There are weeks that

Re: [Code Challenge] WxPython versus Tkinter.

2011-01-24 Thread Ethan Furman
Octavian Rasnita wrote: From: rantingrick rantingr...@gmail.com WxPython versus Tkinter (A code battle to the death!) by Rick Johnson. [...] Octavian, Please do not repost rr's crap in its entirety, or you'll find yourself added to many killfiles -- just like he is. ~Ethan~ --

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: Littlefield, Tyler ty...@tysdomain.com Or you have started to use Linux and now you don't care about the majority of users that need to use a screen reader? I said nothing the like. TkInter does have problemns with Jaws, but I'm not going to sit here and say the same thing over and

Which is the best book to learn python

2011-01-24 Thread santosh hs
Hi All, i am beginner to python please tell me which is the best available reference for beginner to start from novice -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm interested in calculating time down to the femtosecond.

2011-01-24 Thread Robert Kern
On 1/23/11 12:43 AM, Slie wrote: I found that there was a code submission at NumPy 1.4 but I can not find in the documentation search for Date nor have found anything other then that discussion of the ability. Anyone have any ideas suggestions? I just want my program to be able to

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 7:32 am, Peter Otten __pete...@web.de wrote: rantingrick wrote: I am demanding that from now on, you must have at least a 120 or higher IQ before participating in any of my threads. You mean, you are putting yourself in your own killfile ;) :) Actually i never use the

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 10:38 am, Mike Driscoll kyoso...@gmail.com wrote: I haven't gotten my ideas fleshed out yet. When I do, I will describe them. I look forward to any proposals and i would like to be a part of this challenge both for wxPython and Tkinter since i have used both. --

Re: Need GUI pop-up to edit a (unicode ?) string

2011-01-24 Thread rantingrick
On Jan 22, 2:22 pm, Rikishi42 skunkwo...@rikishi42.net wrote: I'm in need for a graphical pop-up that will display a (unicode ?) string in a field, allow the user to change it and return the modified string. Maybe also keep the original one displayed above it. Something like this:

Re: Which is the best book to learn python

2011-01-24 Thread srinivas hn
search for byte of python in google its good book for beginners . . CHEERS CNA 9986229891 On Mon, Jan 24, 2011 at 10:39 PM, santosh hs santosh.tron...@gmail.comwrote: Hi All, i am beginner to python please tell me which is the best available reference for beginner to start from novice

Re: Which is the best book to learn python

2011-01-24 Thread Jean-Michel Pichavant
santosh hs wrote: Hi All, i am beginner to python please tell me which is the best available reference for beginner to start from novice Hi, You could have searched the archive, this question was raised many times. http://wiki.python.org/moin/IntroductoryBooks I read Learning Python when

Re: WxPython versus Tkinter.

2011-01-24 Thread Mark Roseman
Octavian Rasnita orasn...@gmail.com wrote: But unfortunately it is not accessible for screen readers and it discriminates many potential users. Octavian, thank you for very clearly making and repeating your point about screen readers. It is very obvious that at this point in time Tk (and

Re: Which is the best book to learn python

2011-01-24 Thread Colin J. Williams
On 24-Jan-11 12:38 PM, Jean-Michel Pichavant wrote: santosh hs wrote: Hi All, i am beginner to python please tell me which is the best available reference for beginner to start from novice Hi, You could have searched the archive, this question was raised many times.

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 11:39 am, Mark Roseman m...@markroseman.com wrote:  Octavian Rasnita orasn...@gmail.com wrote: But unfortunately it is not accessible for screen readers and it discriminates many potential users. Octavian, thank you for very clearly making and repeating your point about screen

Re: Which is the best book to learn python

2011-01-24 Thread Krzysztof Bieniasz
Dnia Mon, 24 Jan 2011 09:09:31 -0800, santosh hs napisał(a): Hi All, i am beginner to python please tell me which is the best available reference for beginner to start from novice For most CS stuff O'Reilly is most often a good bet. Therefore I think you'll find Mark Lutz's Learning Python

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 7:27 am, Octavian Rasnita orasn...@gmail.com wrote: From: Bryan bryan.oak...@gmail.com It would be hard (but not impossible, by any stretch) for me to duplicate your code. Certainly, it would take more lines of code but that's about it. OTOH, it would be very difficult indeed

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 12:00 pm, Bryan bryan.oak...@gmail.com wrote: Accessibility, like internationalization, is something few programmers spend much time thinking about. Thats another uninformed statement by you we can add to the mountains of useless cruft you have offered so far. Unicode IS

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 7:32 am, rantingrick rantingr...@gmail.com wrote: On Jan 24, 7:24 am, Bryan bryan.oak...@gmail.com wrote: On Jan 24, 12:06 am, rusi rustompm...@gmail.com wrote: On Jan 24, 9:16 am, Littlefield, Tyler ty...@tysdomain.com wrote: Of course as Steven pointed out wx is written in

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
Hello, I have been on another list with Octavian, and he takes his accessibility a bit to seriously. If things went his way, he wants laws where -everything- has to be accessible, and it is illegal not to do so. As a sidenote, I would like to preface everything I'm going to say by mentioning

Re: WxPython versus Tkinter.

2011-01-24 Thread Ethan Furman
Mark Roseman wrote: I don't object and in fact commend you for advocating for accessibility. I do feel you are not acknowledging and fully respecting that others may be in situations where accessibility may not be the primary concern. Well said. ~Ethan~ --

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 12:11 pm, Bryan bryan.oak...@gmail.com wrote: It is a provable fact that wxPython segfaults. You yourself proved that. That is, in and of itself, *not* a reason to pick some other toolkit. It's merely a datapoint. It's not a datapoint you can just sweep under the rug, however, like

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
Bryan: Here's a pretty good list for you. Windows: Jaws for Windows (http://freedomscientific.com). Not free, but you get a 40 minute demo before you need to reboot. Nonvisual Desktop Access: http://www.nvda-project.org/ Free, open source, written in python (with some core stuff in c/c++).

Re: WxPython versus Tkinter.

2011-01-24 Thread Noah Hall
On Mon, Jan 24, 2011 at 5:57 PM, rantingrick rantingr...@gmail.com wrote: Why don't you just tell him to shut the hell up Mark? accidentally quoting me too much. You guys are very disappointing to this community. Everyone here needs a voice. We must never engage in behaviors that would limit

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 8:15 am, rantingrick rantingr...@gmail.com wrote: On Jan 24, 6:33 am, Bryan bryan.oak...@gmail.com wrote: I think I'm qualified, though I guess only you can tell me if I measure up to your standards. Go on... I have 15 years or so of tk development, though admittedly mostly

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 12:21 pm, Littlefield, Tyler ty...@tysdomain.com wrote: [...snip: good discussion...] Rather, I believe those pushing accessibility should concentrate on the root cause; that of fixing TKInter, and not forcing everyone else to use a different library. Now you go too far! And

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 8:49 am, Mike Driscoll kyoso...@gmail.com wrote: Bryan, on the other hand, has been aTkinterluminary who has helped me in the past when I was learningTkinterand I won't be too surprised if he helps me again. I'm sorry he's had so much trouble with wx though. Thanks for the kind

Re: WxPython versus Tkinter.

2011-01-24 Thread Mark Roseman
Littlefield, Tyler ty...@tysdomain.com wrote: Rather, I believe those pushing accessibility should concentrate on the root cause; that of fixing TKInter, and not forcing everyone else to use a different library. Here, here. From my queries to some of the Tcl/Tk folks, it seems that while

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 12:05 pm, rantingrick rantingr...@gmail.com wrote: On Jan 24, 12:00 pm, Bryan bryan.oak...@gmail.com wrote: Accessibility, like internationalization, is something few programmers spend much time thinking about. Thats another uninformed statement by you we can add to the

Re: WxPython versus Tkinter.

2011-01-24 Thread MRAB
On 24/01/2011 18:05, rantingrick wrote: On Jan 24, 12:00 pm, Bryanbryan.oak...@gmail.com wrote: Accessibility, like internationalization, is something few programmers spend much time thinking about. Thats another uninformed statement by you we can add to the mountains of useless cruft you

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 12:31 pm, Littlefield, Tyler ty...@tysdomain.com wrote: Bryan: Here's a pretty good list for you. Windows: Jaws for Windows (http://freedomscientific.com). Not free, but you get a 40 minute demo before you need to reboot. Nonvisual Desktop Access:http://www.nvda-project.org/ Free,

Re: WxPython versus Tkinter.

2011-01-24 Thread Emile van Sebille
On 1/24/2011 8:13 AM Grant Edwards said... On 2011-01-24, rantingrickrantingr...@gmail.com wrote: Bryan you are clearly an idiot. I am demanding that from now on, you must have at least a 120 or higher IQ before participating in any of my threads. Rantingrick thinks certain threads belong

Re: WxPython versus Tkinter.

2011-01-24 Thread MRAB
On 24/01/2011 18:48, rantingrick wrote: On Jan 24, 12:21 pm, Littlefield, Tylerty...@tysdomain.com wrote: [...snip: good discussion...] Rather, I believe those pushing accessibility should concentrate on the root cause; that of fixing TKInter, and not forcing everyone else to use a

how to tell if cursor is sqlite.Cursor or psycopg2.Cursor

2011-01-24 Thread dmaziuk
Hi everyone, I've wrapper class around some sql statements and I'm trying to add a method that does: if my_cursor is a sqlite cursor, then run select last_insert_rowid() else if it's a psycopg2 cursor, then run select currval( 'my_sequence' ) etc. The best I can come up with is import both

Re: Convert month name to month number faster

2011-01-24 Thread Crawford, Ellen
-- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-24 Thread Robin Dunn
On Jan 23, 4:31 pm, Martin v. Loewis mar...@v.loewis.de wrote: WxPython Challenge 1 code updated...  * Fixed tab traveral  * Removed hand-holding code  * Removed some cruft  https://sites.google.com/site/thefutureofpython/home/code-challenges Good luck! Still crashes the

Re: Python 3.1 cx_Oracle 5.0.2 ImportError: DLL load failed: The specified module could not be found.

2011-01-24 Thread thompjs
I'm having similar issue but everything seems to be installed in correct places. Loaded CX_ORACLE.PYD at address 0x6BD8. Successfully hooked module. Loaded OCI.DLL at address 0x1000. Successfully hooked module. Unloaded CX_ORACLE.PYD at address 0x6BD8. Unloaded OCI.DLL at address

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 1:34 pm, MRAB pyt...@mrabarnett.plus.com wrote: [snip] I'd like to invoke Godwin's law at this point. Actually no. And i'll give good reason. Tyler's argument, which lacked greatly in compassion for people with disabilities brought out my accusation. It was not an accusation meant

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 1:57 pm, Robin Dunn ro...@alldunn.com wrote: On Jan 23, 4:31 pm, Martin v. Loewis mar...@v.loewis.de wrote: WxPython Challenge 1 code updated...  * Fixed tab traveral  * Removed hand-holding code  * Removed some cruft  

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 22, 6:07 pm, rantingrick rantingr...@gmail.com wrote: I await any challengers... CODE UPDATE * fixed linux whiners bug https://sites.google.com/site/thefutureofpython/home/code-challenges -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-24 Thread Robin Dunn
On Jan 24, 12:03 pm, rantingrick rantingr...@gmail.com wrote: On Jan 24, 1:57 pm, Robin Dunn ro...@alldunn.com wrote: BTW, on behalf of the wxPython community I'd like to apologize for the havoc caused by the flaming troll escaping from his cage.  In general wxPython users are much less

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 1:23 pm, Bryan bryan.oak...@gmail.com wrote: Ok, great. You've identified one programmer who thinks about internationalization. Not much of a compelling argument there. Oh Bryan your view so simplistic. There is a whole world out there you know. However, I think you missed my

Re: how to tell if cursor is sqlite.Cursor or psycopg2.Cursor

2011-01-24 Thread Jon Clements
On Jan 24, 7:44 pm, dmaziuk dmaz...@bmrb.wisc.edu wrote: Hi everyone, I've wrapper class around some sql statements and I'm trying to add a method that does:   if my_cursor is a sqlite cursor, then run select last_insert_rowid()   else if it's a psycopg2 cursor, then run select currval(

Re: how to tell if cursor is sqlite.Cursor or psycopg2.Cursor

2011-01-24 Thread MRAB
On 24/01/2011 19:44, dmaziuk wrote: Hi everyone, I've wrapper class around some sql statements and I'm trying to add a method that does: if my_cursor is a sqlite cursor, then run select last_insert_rowid() else if it's a psycopg2 cursor, then run select currval( 'my_sequence' ) etc.

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 2:33 pm, rantingrick rantingr...@gmail.com wrote: Yes and you made your selfishness quite clear! Be careful my friend, because as Tyler found out, this mindset becomes a slippery slope *very* quickly! I merely made the observation that most programmers don't think about these

Re: [Code Challenge] WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: Ethan Furman et...@stoneleaf.us Octavian Rasnita wrote: From: rantingrick rantingr...@gmail.com WxPython versus Tkinter (A code battle to the death!) by Rick Johnson. [...] Octavian, Please do not repost rr's crap in its entirety, or you'll find yourself added to many killfiles

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: Littlefield, Tyler ty...@tysdomain.com Hello, I have been on another list with Octavian, and he takes his accessibility a bit to seriously. If things went his way, he wants laws where -everything- has to be accessible, and it is illegal not to do so. Is the discrimination legal in

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: Mark Roseman m...@markroseman.com Octavian, thank you for very clearly making and repeating your point about screen readers. It is very obvious that at this point in time Tk (and hence Tkinter) is not a suitable candidate if screen readers are an important concern. The screen

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: Bryan bryan.oak...@gmail.com I wish I could respond to that, but I have no experience with screen readers. Are there any free ones, or ones with free trials, that I could try out? I'm not yet convinced it's any better or worse than wxPython since you're only a single datapoint, but of

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: MRAB pyt...@mrabarnett.plus.com On 24/01/2011 18:05, rantingrick wrote: On Jan 24, 12:00 pm, Bryanbryan.oak...@gmail.com wrote: Accessibility, like internationalization, is something few programmers spend much time thinking about. Thats another uninformed statement by you we can add

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: rantingrick rantingr...@gmail.com Obviously it would be awesome, but I think Octavian is just focusing on himself, and not the actual big picture here. sarcasum Yes Octavian is the only disabled person in the world. What a selfish, selfish person he is. Shame on you Octavian, Shame on

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: Mark Roseman m...@markroseman.com Littlefield, Tyler ty...@tysdomain.com wrote: Rather, I believe those pushing accessibility should concentrate on the root cause; that of fixing TKInter, and not forcing everyone else to use a different library. Here, here. From my queries to

Re: List behaviours with Clustering Algorithm

2011-01-24 Thread James Ravenscroft
Peter I can't run your code because you didn't make it standalone, Thanks for the heads up, I've made a simple version of the clusterer which you can view on pastebin: http://pastebin.com/7HmAkmfj If you have time to look through my code I would be very grateful! but in your case that

Re: WxPython versus Tkinter.

2011-01-24 Thread Ethan Furman
On Sun, 23 Jan 2011 12:23:13 -0800, rantingrick wrote: I am not trying to create a working file browser so you can steal my code. 2011/1/24 rantingrick rantingr...@gmail.com: This thread has been an eye opener for myself [...] we cannot even work together to get some simple code debugged.

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 2:49 pm, Bryan bryan.oak...@gmail.com wrote: On Jan 24, 2:33 pm, rantingrick rantingr...@gmail.com wrote: Yes and you made your selfishness quite clear! Be careful my friend, because as Tyler found out, this mindset becomes a slippery slope *very* quickly! I merely made the

Re: WxPython versus Tkinter.

2011-01-24 Thread Neil Hodgson
Octavian Rasnita: There are no many people that know about this thing, but there are standards like MSAA that can be followed by them if they really want to offer accessibility. I guess that if Tkinter would support MSAA (Microsoft Active Accessibility) in its Windows version, the screen

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
RR, you idiot. Did you -not- read that I was blind and using a screen reader? And wasn't it -you- yelling at someone about reading and comprehention? On 1/24/2011 12:34 PM, MRAB wrote: On 24/01/2011 18:48, rantingrick wrote: On Jan 24, 12:21 pm, Littlefield, Tylerty...@tysdomain.com wrote:

why are functions greater than numbers?

2011-01-24 Thread Alan
Why do function objects compare in this way to numbers? Thanks, Alan Isaac def f(): return ... f5 True -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 3:47 pm, Neil Hodgson nhodg...@bigpond.net.au wrote:    Making Tk as accessible as Windows or GTK+ would be a huge job. Not if we used the underlying MS library! Windows has such a rich library why not use it? Why must we constantly re-invent the wheel? Windowing GUIs are not recent

Re: WxPython versus Tkinter.

2011-01-24 Thread Infinity77
On Jan 24, 9:57 pm, Robin Dunn wrote: On Jan 23, 4:31 pm, Martin v. Loewis mar...@v.loewis.de wrote: WxPython Challenge 1 code updated...  * Fixed tab traveral  * Removed hand-holding code  * Removed some cruft  

  1   2   3   >