Re: How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread Tim Harig
On 2010-11-29, Michel Claveau - MVP wrote: > Hello! > >> The "InternetExplorer.Application" automation object doesn't contain >> any way to manipulate tabs directly > > False. Try this example: > import win32com.client > for instance in > win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-0

Urgent requirement for Php Developer

2010-11-28 Thread Priyanka Kalpande
Urgent requirment for Python programmer. For the further details contact us on 9930698901 or eMail your resumes to hr.mana...@pfhit.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Next Melbourne PUG meeting Monday 6th of December

2010-11-28 Thread Ben Finney
Richard Jones writes: > The Melbourne Python Users Group will be meeting 6PM next Monday, the > 6th of December at RMIT University. > > For details see http://bit.ly/mpug. Or for those who prefer their URLs to avoid unnecessary points of failure, that's http://wiki.python.org/moin/MelbournePUG>.

Re: Help required with Tranformation of coordinate system

2010-11-28 Thread BansalMaddy
On Nov 29, 2:03 am, Terry Reedy wrote: > On 11/28/2010 6:36 PM, BansalMaddy wrote: > > > hi all! > > i need a help in python! i am struggling to implement this since last > > 2/3 days. suppose i have a 2D plot (say y=x**2). > > now on the same plot i want to transform my origin of coordinate > > s

Re: How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread Michel Claveau - MVP
Hello! > The "InternetExplorer.Application" automation object doesn't contain > any way to manipulate tabs directly False. Try this example: import win32com.client for instance in win32com.client.Dispatch('{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'): print instance," URL :",instance.Loc

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread Raymond Hettinger
On Nov 28, 4:36 am, coldpizza wrote: > Did you try google code search? It is *not* the same as google code > hosting. > The site ishttp://www.google.com/codesearchand you can select Python > in the 'language' dropdown. Yes, I use Google's code search frequently and did try it for super(). However

How do you find out what's happening in a process?

2010-11-28 Thread Leo Jay
Hi all, I'd like to know how do you guys find out what's happening in your code if the process seems not work. In java, I will use jstack to check stacks of threads and lock status. But I don't know how to do it in python. -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/pyt

How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread He Jibo
Hi, I am writing a small program, which needs to get the URL of the active tab in either of firefox, internet exploerer or chrome. My need is similar as the one posted at, http://stackoverflow.com/questions/3631216/how-do-i-get-the-url-of-the-visible-tab-in-firefox-ie-chrome I did a lot of Googlin

Next Melbourne PUG meeting Monday 6th of December

2010-11-28 Thread Richard Jones
Hi all, The Melbourne Python Users Group will be meeting 6PM next Monday, the 6th of December at RMIT University. For details see http://bit.ly/mpug. -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite date fields

2010-11-28 Thread Tim Roberts
Duncan Booth wrote: >Tim Roberts wrote: > >>>However, when it comes to writing-back data to the table, SQLite is >>>very forgiving and is quite happy to store '25/06/2003' in a date >>>field, >> >> SQLite is essentially typeless. ALL fields are stored as strings, >> with no interpretation. Y

ANN: ActivePython 2.6.6.17 is now available

2010-11-28 Thread Sridhar Ratnakumar
ActiveState is pleased to announce ActivePython 2.6.6.17, a complete, ready-to-install binary distribution of Python 2.6. http://www.activestate.com/activepython/downloads What's New in ActivePython-2.6.6.17 === *Release date: 19-Nov-2010* New Features & Upg

Re: Help required with Tranformation of coordinate system

2010-11-28 Thread Terry Reedy
On 11/28/2010 6:36 PM, BansalMaddy wrote: hi all! i need a help in python! i am struggling to implement this since last 2/3 days. suppose i have a 2D plot (say y=x**2). now on the same plot i want to transform my origin of coordinate system to a point (x',y' on this curve and again create a new p

Re: list of regex special characters

2010-11-28 Thread Ben Finney
Tim Chase writes: > On 11/28/2010 05:58 PM, goldtech wrote: > > I am looking for a list of special character in python regular > > expressions that need to be escaped if you want their literal > > meaning. > > Trust the re module to tell you: > > >>> import re > >>> chars = [chr(i) for i in ran

Re: list of regex special characters

2010-11-28 Thread Tim Chase
On 11/28/2010 05:58 PM, goldtech wrote: I am looking for a list of special character in python regular expressions that need to be escaped if you want their literal meaning. I searched and can not find the list. Any help appreciated. Trust the re module to tell you: >>> import re >>> chars

Re: list of regex special characters

2010-11-28 Thread Ben Finney
goldtech writes: > I am looking for a list of special character in python regular > expressions that need to be escaped if you want their literal meaning. You can avoid caring about that by using ‘re.escape’, which escapes any characters in its input character that are not alphanumeric. > I sea

list of regex special characters

2010-11-28 Thread goldtech
I am looking for a list of special character in python regular expressions that need to be escaped if you want their literal meaning. I searched and can not find the list. Any help appreciated. -- http://mail.python.org/mailman/listinfo/python-list

Help required with Tranformation of coordinate system

2010-11-28 Thread BansalMaddy
hi all! i need a help in python! i am struggling to implement this since last 2/3 days. suppose i have a 2D plot (say y=x**2). now on the same plot i want to transform my origin of coordinate system to a point (x',y' on this curve and again create a new plot with origin at x',y') can somebody help

Re: Comparing floats

2010-11-28 Thread Nobody
On Sat, 27 Nov 2010 18:23:48 -0500, Terry Reedy wrote: >> Therefore, to implement this multiplication operation I need to have a >> way to verify that the float tuples C and D are "equal". > > I might try the average relative difference: > sum(abs((i-j)/(i+j)) for i,j in zip(C,D))/n # assuming le

Re: Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-28 Thread Terry Reedy
On 11/28/2010 3:47 PM, pyt...@bdurham.com wrote: I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title. After much head scratching and a peek at the Tkinter.py source, I realized that all Tkinter classes are old-style classes (even und

Re: remote control firefox with python

2010-11-28 Thread News123
On 11/28/2010 06:19 PM, Tim Harig wrote: > On 2010-11-28, News123 wrote: >> Thanks in advance for any pointers ideas. > > google XPCOM thanks a lot -- http://mail.python.org/mailman/listinfo/python-list

Re: Standard module implementation

2010-11-28 Thread Chris Rebert
On Sun, Nov 28, 2010 at 6:08 AM, candide wrote: > I was wondering if all the standard module are implemented in C. For > instance, I can't find a C implementation for the minidom xml parser under > Python 2.6. As was already said, no; a significant portion if not the majority of the std lib is wr

Using property() to extend Tkinter classes but Tkinter classes are old-style classes?

2010-11-28 Thread python
I had planned on subclassing Tkinter.Toplevel() using property() to wrap access to properties like a window's title. After much head scratching and a peek at the Tkinter.py source, I realized that all Tkinter classes are old-style classes (even under Python 2.7). 1. Is there a technical reason wh

Re: How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread Tim Harig
On 2010-11-28, He Jibo wrote: > I did a lot of Googling, and get the following code. The following > code can get the url of the first tab in internet explorer. My > question is, how can I get the url of the current active tab? Thanks. It would be beneficial to know what your ultimate goal is. T

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread André Malo
* Steve Holden wrote: > Even inheritance itself isn't as useful as it at first > appears, and composition turns out in practice to be much more useful. > That goes double for multiple inheritance. Amen. nd -- my @japh = (sub{q~Just~},sub{q~Another~},sub{q~Perl~},sub{q~Hacker~}); my $japh = q[su

Re: Subprocesses and Ctrl-C handling on windows

2010-11-28 Thread Perry Johnson
On 2010-11-28, Perry Johnson wrote: > I have a python script which spawns a subprocess that takes a few > seconds to complete. If I hit Ctrl-C while the subprocess is > executing, sometimes the python script and the subprocess end silently > and I get back to the shell prompt and sometimes I get t

Re: Python 3.1.3

2010-11-28 Thread Roy Smith
In article <53c154fa-e957-4266-ad12-eaf8c2ef3...@35g2000prt.googlegroups.com>, Gnarlodious wrote: > Well I don't know what a readline is, but I upgraded from 3.1.1 and it > was working fine. > > I might also add that the downarrow is also broken: ^[[B > > -- Gnarlie Readline is the (very coo

Re: TDD in python

2010-11-28 Thread Terry Reedy
On 11/28/2010 5:58 AM, Rustom Mody wrote: Does anyone know of something like this for python? http://www.vimeo.com/13240481 "This is the first in a series of videos demonstrating TDD in C++ using the Eclipse CDT and CppUTest" TDD = Test-Driven Development is a development philosophy applica

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread Kirill Simonov
Hi Raymond, We've been using cooperative inheritance to implement stacked utilities such as WSGI middleware or connecting to a database. An example of a WSGI middleware stack: # Declare the interface and provide the default implementation. class WSGI(Utility): def __call__(self, environ,

Getting current time zone in Python in tzinfo format not implemented

2010-11-28 Thread John Nagle
Getting the local time zone in Python is rather difficult. As of 2008, two articles indicate that the current mechanisms totally suck: "Python and time zones part 2: The beast returns!": http://regebro.wordpress.com/2008/05/10/python-and-time-zones-part-2-the-beast-returns/ "Time zones in Py

nike jordan shoes coach, chane bag COOGI

2010-11-28 Thread dgf dg
=== http://www.stefsclothes.net === Handbags(Coach lv fendi d&g) $35 Tshirts (Polo ,ed hardy,lacoste) $16 Jean(True Religion,ed hardy,coogi) $30 Sunglasses(Oakey,coach,gucci,Armaini) $16 New era cap $15 Bikini (Ed hardy,polo) $25 http://www.stefsclothes.net -- http://mail.python.org

Re: remote control firefox with python

2010-11-28 Thread Tim Harig
On 2010-11-28, News123 wrote: > Thanks in advance for any pointers ideas. google XPCOM -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1.3

2010-11-28 Thread Ned Deily
In article , Roy Smith wrote: > I'm seeing the same behavior on a build I did of > > Python 3.2a4+ (py3k:86538, Nov 19 2010, 20:52:31) > > last week, also on 10.6.5. From the configure output, it looks like it > found readline: > > py3k$ grep -i readline config.status > D["HAVE_LIBREADLINE"

Re: Python 3.1.3

2010-11-28 Thread Ned Deily
In article <2b22dfa0-41d5-4047-8cfe-7a18e00e3...@o23g2000prh.googlegroups.com>, Gnarlodious wrote: > Ah yes, sorry. > This is Mac OSX 10.6.5, I did it build from the file at > http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tgz For Python 3.1 on OS X, you'll need to supply a version of the

Re: Python 3.1.3

2010-11-28 Thread Gnarlodious
Well I don't know what a readline is, but I upgraded from 3.1.1 and it was working fine. I might also add that the downarrow is also broken: ^[[B -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1.3

2010-11-28 Thread Roy Smith
In article <2b22dfa0-41d5-4047-8cfe-7a18e00e3...@o23g2000prh.googlegroups.com>, Gnarlodious wrote: > Ah yes, sorry. > This is Mac OSX 10.6.5, I did it build from the file at > http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tgz > > -- Gnarlie I'm seeing the same behavior on a build I did

Re: Python 3.1.3

2010-11-28 Thread Gnarlodious
Ah yes, sorry. This is Mac OSX 10.6.5, I did it build from the file at http://www.python.org/ftp/python/3.1.3/Python-3.1.3.tgz -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3.1.3

2010-11-28 Thread Stefan Behnel
Gnarlodious, 28.11.2010 16:35: Don't know why, but in Terminal the uparrow now gives me: ^[[A which means I no longer have history scrolling. You seem to be mailing from a Mac, is that the system you're having this problem with? Did you build Python yourself or use a provided binary? (and,

send free sms to any mobile in the world

2010-11-28 Thread mohammed_a_o
send free sms to any mobile in the world http://www.phpforweb.com/askany/sms.php?sms -- http://mail.python.org/mailman/listinfo/python-list

Subprocesses and Ctrl-C handling on windows

2010-11-28 Thread Perry Johnson
I have a python script which spawns a subprocess that takes a few seconds to complete. If I hit Ctrl-C while the subprocess is executing, sometimes the python script and the subprocess end silently and I get back to the shell prompt and sometimes I get the KeyboardInterrupt exception. Is there any

Re: Python 3.1.3

2010-11-28 Thread Gnarlodious
Don't know why, but in Terminal the uparrow now gives me: ^[[A which means I no longer have history scrolling. -- Gnarlie -- http://mail.python.org/mailman/listinfo/python-list

remote control firefox with python

2010-11-28 Thread News123
Hi, I wondered whether there is a simpe way to 'remote' control fire fox with python. With remote controlling I mean: - enter a url in the title bar and click on it - create a new tab - enter another url click on it - save the html document of this page - Probably the most difficult one: emulat

How do I get the URL of the active tab in Firefox/IE/Chrome?

2010-11-28 Thread He Jibo
Hi, I am writing a small program, which needs to get the URL of the active tab in either of firefox, internet exploerer or chrome. My need is similar as the one posted at, http://stackoverflow.com/questions/3631 ... -ie-chrome I did a lot of Googling, and get the following code. The following code

Re: google group api with python

2010-11-28 Thread News123
On 11/27/2010 11:51 PM, macroasm wrote: > hi. i want google group with send python. how do user api. Hi macroasm, You will probably increase tha amount of replies if you elaborate on your question. I personally do not really understand what you exactly asked for. -- http://mail.python.org

Re: TDD in python

2010-11-28 Thread Stefan Behnel
Rustom Mody, 28.11.2010 11:58: Does anyone know of something like this for python? http://www.vimeo.com/13240481 The page seems to require a recent version of the Flash player. Could you describe what exactly you are looking for? Stefan -- http://mail.python.org/mailman/listinfo/python-lis

Re: Standard module implementation

2010-11-28 Thread Benjamin Kaplan
On Sun, Nov 28, 2010 at 9:08 AM, candide wrote: > I was wondering if all the standard module are implemented in C. For > instance, I can't find a C implementation for the minidom xml parser under > Python 2.6. > -- No they aren't. A good chunk of the standard library is implemented in Python. Whi

Standard module implementation

2010-11-28 Thread candide
I was wondering if all the standard module are implemented in C. For instance, I can't find a C implementation for the minidom xml parser under Python 2.6. -- http://mail.python.org/mailman/listinfo/python-list

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread Mark Wooding
Steve Holden writes: > It isn't. Even inheritance itself isn't as useful as it at first > appears, and composition turns out in practice to be much more useful. > That goes double for multiple inheritance. Composition /with a convenient notation for delegation/ works fairly well. Indeed, this c

Re: Needed: Real-world examples for Python's Cooperative Multiple Inheritance

2010-11-28 Thread coldpizza
On Nov 24, 11:08 pm, Raymond Hettinger wrote: > I'm writing-up more guidance on how to use super() and would like to > point at some real-world Python examples of cooperative multiple > inheritance. > > Google searches take me to old papers for C++ and Eiffel, but that > don't seem to be relevant

TDD in python

2010-11-28 Thread Rustom Mody
Does anyone know of something like this for python? http://www.vimeo.com/13240481 -- http://mail.python.org/mailman/listinfo/python-list

Re: Kind of plugin system

2010-11-28 Thread Gaëtan Podevijn
Hello, Thank you both, I'll look at this in more depth ! Regards, Gaëtan 2010/11/27 Marc-Andre Belzile > I guess you could just define an entry-point in your source provider files > that would return a specific instance of an InformationProvider class. This > entry-point would be called by you

Re: Comparing floats

2010-11-28 Thread Peter Otten
kj wrote: > I understand that, in Python 2.7 and 3.x >= 3.1, when the interactive > shell displays a float it shows "the shortest decimal fraction that > rounds correctly back to the true binary value". Is there a way > to access this rounding functionality from code that must be able > to run un