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 m

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "Kevin Walzer" 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 discriminates many potenti

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).

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 > 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 your_list to a

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

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 fu

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 w

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: myobj.somemethod(somevalu

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. I

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 con

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/ --exec-prefix /usr/local/inst/ My problem is when starting one of the versions from /usr/local, sys.prefix is set as

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

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(),

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 Dir

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 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 but trick

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 23, 11:31 am, rantingrick wrote: > On Jan 22, 6:07 pm, rantingrick 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 > who shares my in-depth knowledge of

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 23, 8:48 pm, Steven D'Aprano 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 tools that use the Windows 95 style

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 2:56 am, "Martin v. Loewis" 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?. Has anybody te

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 23, 5:13 pm, Steven D'Aprano 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. > Step 2: Steal working file

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 23, 7:12 pm, rantingrick wrote: > On Jan 23, 5:23 pm, Kevin Walzer 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 of the Tkinter wrapper for the ttk

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 23, 7:33 pm, rantingrick wrote: > On Jan 23, 7:16 pm, Kevin Walzer 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... > > > > --- > > >   Challenge

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 7:13 am, Bryan 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 use widget X". Al

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 12:06 am, rusi wrote: > On Jan 24, 9:16 am, "Littlefield, Tyler" 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 coding in C/C++ segfaults are a d

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "Bryan" 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 linux. That's also quite

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 7:24 am, Bryan wrote: > On Jan 24, 12:06 am, rusi wrote: > > > On Jan 24, 9:16 am, "Littlefield, Tyler" 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 issu

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 : > On Jan 24, 2:56 am, "Martin v. Loewis" 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 mentio

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 t

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 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 with wxPython. A

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 7:48 am, Kevin Walzer 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 in > this thread

Re: WxPython versus Tkinter.

2011-01-24 Thread Mike Driscoll
On Jan 24, 7:24 am, Bryan wrote: > On Jan 24, 12:06 am, rusi wrote: > > > On Jan 24, 9:16 am, "Littlefield, Tyler" 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 issu

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 8:49 am, Mike Driscoll wrote: > On Jan 24, 7:24 am, Bryan 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 bump up the average. > > I've only

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 = (?Pre_section)|?Pre_se

Re: WxPython versus Tkinter.

2011-01-24 Thread Grant Edwards
On 2011-01-24, 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. Rantingrick thinks certain threads belong to him. 'nuf said. -- Grant Edwards grant.b.edw

Re: WxPython versus Tkinter.

2011-01-24 Thread Grant Edwards
On 2011-01-24, Corey Richardson 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 write code th

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 wrote: > On 2011-01-24, 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. > > Rantingrick thinks certain threads belong to him.

Re: WxPython versus Tkinter.

2011-01-24 Thread Mike Driscoll
On Jan 24, 9:02 am, rantingrick wrote: > On Jan 24, 8:49 am, Mike Driscoll wrote: > > > On Jan 24, 7:24 am, Bryan 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 seve

Re: [Code Challenge] WxPython versus Tkinter.

2011-01-24 Thread Ethan Furman
Octavian Rasnita wrote: From: "rantingrick" 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~ -- http://mail.python.org/mailman

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "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

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 calculate

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 t

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 10:38 am, Mike Driscoll 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. -- http://mail.python.org/mailman/listi

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

2011-01-24 Thread rantingrick
On Jan 22, 2:22 pm, Rikishi42 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 wrote: > 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

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" whe

Re: WxPython versus Tkinter.

2011-01-24 Thread Mark Roseman
"Octavian Rasnita" 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 hence Tkinter)

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. http://wiki.python.org/mo

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 11:39 am, Mark Roseman wrote: >  "Octavian Rasnita" 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

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 Pytho

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 7:27 am, "Octavian Rasnita" wrote: > From: "Bryan" > > > 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 atkinterprogram t

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 12:00 pm, Bryan 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 internationalization and Guido t

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 7:32 am, rantingrick wrote: > On Jan 24, 7:24 am, Bryan wrote: > > > On Jan 24, 12:06 am, rusi wrote: > > > > On Jan 24, 9:16 am, "Littlefield, Tyler" 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 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~ -- http://mail.python.org/mailman/

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 12:11 pm, Bryan 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 you seem to want t

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++). Linux

Re: WxPython versus Tkinter.

2011-01-24 Thread Noah Hall
On Mon, Jan 24, 2011 at 5:57 PM, rantingrick 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 speech from our c

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 8:15 am, rantingrick wrote: > On Jan 24, 6:33 am, Bryan 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 s

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 12:21 pm, "Littlefield, Tyler" 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 this is an ironic

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 8:49 am, Mike Driscoll 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 words, I appreci

Re: WxPython versus Tkinter.

2011-01-24 Thread Mark Roseman
"Littlefield, Tyler" 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 the knowledge a

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 12:05 pm, rantingrick wrote: > On Jan 24, 12:00 pm, Bryan 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 offere

Re: WxPython versus Tkinter.

2011-01-24 Thread MRAB
On 24/01/2011 18:05, rantingrick wrote: On Jan 24, 12:00 pm, Bryan 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. Uni

Re: WxPython versus Tkinter.

2011-01-24 Thread Bryan
On Jan 24, 12:31 pm, "Littlefield, Tyler" 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, open source

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, 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. Rantingrick thinks certain threads belong to him. 'nuf said.

Re: WxPython versus Tkinter.

2011-01-24 Thread MRAB
On 24/01/2011 18:48, rantingrick wrote: On Jan 24, 12:21 pm, "Littlefield, Tyler" 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

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 bo

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" 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 interpret

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 ad

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 1:34 pm, MRAB 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 to merely insult just to

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 1:57 pm, Robin Dunn wrote: > On Jan 23, 4:31 pm, "Martin v. Loewis" wrote: > > > > WxPython Challenge 1 code updated... > > > >  * Fixed tab traveral > > >  * Removed hand-holding code > > >  * Removed some cruft > > > >  https://sites.google.com/site/thefutureofpython/home/code-challe

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 22, 6:07 pm, rantingrick 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 wrote: > On Jan 24, 1:57 pm, Robin Dunn 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 militant and zealotty and honor >

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 1:23 pm, Bryan 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 point. My point wasn't t

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 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'

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 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 topics and it would be

Re: [Code Challenge] WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "Ethan Furman" > Octavian Rasnita wrote: >> From: "rantingrick" >>> 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 i

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "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. Is the discrimination legal in your country

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "Mark Roseman" > 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 readers are always a

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "Bryan" 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 course it's possible. If y

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "MRAB" > On 24/01/2011 18:05, rantingrick wrote: >> On Jan 24, 12:00 pm, Bryan 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 c

Re: WxPython versus Tkinter.

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

Re: WxPython versus Tkinter.

2011-01-24 Thread Octavian Rasnita
From: "Mark Roseman" > "Littlefield, Tyler" 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

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 th

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 : This thread has been an eye opener for myself [...] > we cannot even work together to get some simple code debugged. Aha! So you want

Re: WxPython versus Tkinter.

2011-01-24 Thread rantingrick
On Jan 24, 2:49 pm, Bryan wrote: > On Jan 24, 2:33 pm, rantingrick 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 do

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, Tyler" wrote: [...snip: good dis

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 ... >>> f>5 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 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 technology. These thing

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" wrote: > > > > WxPython Challenge 1 code updated... > > > >  * Fixed tab traveral > > >  * Removed hand-holding code > > >  * Removed some cruft > > > >  https://sites.google.com/site/thefutureofpython/home/code-challen

Re: WxPython versus Tkinter.

2011-01-24 Thread Littlefield, Tyler
>It would be great if the Tk/Tkinter developers would be interested in making >this GUI lib accessible. They're not going to do it without knowing what makes accessible accessible, and why it needs to be so. So, rather than tell the world about how -some- blind people want to be like sighted peo

  1   2   >