Re: regarding the dimensions in gui

2010-06-10 Thread Shashwat Anand
Do you realize you are spamming the list. You generally fire one question and wait rather than supplying us a bunch of questions. And please stop using 'sir' for heaven's sake. I realize you are from India and it is a culture there but people don't use it in mailing lists. Thanks. On Thu, Jun 10,

Re: How to read source code of python?

2010-06-10 Thread Ian Kelly
On Wed, Jun 9, 2010 at 11:54 PM, Benjamin Kaplan wrote: > On Wed, Jun 9, 2010 at 10:25 PM, Qijing Li wrote: >> Thanks for your reply. >> I'm trying to understand python language deeply and  use it efficiently. >> For example: How the operator "in" works on list? the running time is >> be O(n)?  i

Re: grep command

2010-06-10 Thread Simon Brunning
On 10 June 2010 07:38, madhuri vio wrote: > > i was wondering bout the usage and syntax of > grep command..can u tall me its syntax so that > i can use it and proceed...pls That's really not on topic for this list. -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

Re: capitalize() NOT the same as var[0].upper _ var[1:]

2010-06-10 Thread geremy condra
On Wed, Jun 9, 2010 at 2:10 PM, Dan Stromberg wrote: > > > On Tue, Jun 8, 2010 at 7:09 PM, alex23 wrote: >> >> I'm amazed at the endless willingness of this group to help Victor >> write his contracted project for free. >> > I don't get it.  What's wrong with helping people?  And what's it to you

Re: GUIs - A Modest Proposal

2010-06-10 Thread Gregory Ewing
Ethan Furman wrote: *Alert* Potentially dumb question following: On the MS Windows platform, Gtk is not required, just win32? That's correct. The current version of PyGUI includes a pywin32-based implementation. -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: regarding the dimensions in gui

2010-06-10 Thread Simon Brunning
On 10 June 2010 08:19, Shashwat Anand wrote: > And please stop using 'sir' for heaven's sake. Not least because list list isn't male only. -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

gui doubt

2010-06-10 Thread madhuri vio
how do i get the buttons at the bottom of the tool i create??? what is the command for side i need to mention??? -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter doubt

2010-06-10 Thread Thomas Jollans
On 06/10/2010 08:50 AM, madhuri vio wrote: > # File: hello2.py > > from Tkinter import * > > class App: > > def __init__(self, master): > > frame = Frame(master) > frame.pack() > > self.button = Button(frame, text="QUIT", fg="red", command=frame.quit) > > s

Re: How to read source code of python?

2010-06-10 Thread Thomas Jollans
On 06/10/2010 07:25 AM, Qijing Li wrote: > Thanks for your reply. > I'm trying to understand python language deeply and use it efficiently. > For example: How the operator "in" works on list? the running time is > be O(n)? if my list is sorted, what the running time would be? There is excellent

ANN: eGenix pyOpenSSL Distribution 0.10.0-1.0.0a

2010-06-10 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.10.0-1.0.0a An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface f

Re: GUIs - A Modest Proposal

2010-06-10 Thread Martin v. Loewis
Is the Tkinter GUI also the basic way that Python handles a graphics display? (I've never tried it.) No. Python, in itself, does not "handle" graphics displays at all. For any output to the graphics display, it uses some kind of library, whether it's console output, or a GUI application. One spe

Re: GUIs - A Modest Proposal

2010-06-10 Thread Gregory Ewing
Brian Blais wrote: I wonder if that sort of philosophy would work: a really nice and clear, pythonic wrapper around a sophisticated, complex, and complete GUI framework. ... Depending on how it is designed, it might even be possible to have a multi-framework wrapping, so that someone could

Re: GUIs - A Modest Proposal

2010-06-10 Thread Martin v. Loewis
That said, PerlTk didn't use Tcl did it? If you are referring to http://search.cpan.org/~srezic/Tk-804.028/ - this also has a full Tcl interpreter, in pTk/mTk, and uses Tcl_Interp and Tcl_Obj throughout. From the Perl/Tk FAQ (*): "However, from a Perl perspective, Perl/Tk does not require any

Re: How to read source code of python?

2010-06-10 Thread News123
Leon wrote: > Hi, there, > I'm trying to read the source code of python.dd > I read around, and am kind of lost, so where to start? > > Any comments are welcomed, thanks in advance. I use my favourite text editor with syntax highlighting. Next to it I use a web browser with pydoc and google. I

Re: GUIs - A Modest Proposal

2010-06-10 Thread Gregory Ewing
Brian Blais wrote: In this whole discussion, I haven't seen anyone mention wax (http:// zephyrfalcon.org/labs/wax_primer.html) Just had a quick look at that. In the third example code box: def Body(self): self.textbox = TextBox(self, multiline=1, wrap=0) self.AddComponent

Re: tkinter doubt

2010-06-10 Thread Chris Rebert
On Thu, Jun 10, 2010 at 12:48 AM, Thomas Jollans wrote: > On 06/10/2010 08:50 AM, madhuri vio wrote: >> # File: hello2.py >> >> from Tkinter import * >> >> class App: >> >>     def __init__(self, master): >> >>         frame = Frame(master) >>         frame.pack() >> >>         self.button = Butto

Re: regarding the dimensions in gui

2010-06-10 Thread Andreas Waldenburger
On Thu, 10 Jun 2010 08:37:21 +0100 Simon Brunning wrote: > On 10 June 2010 08:19, Shashwat Anand > wrote: > > And please stop using 'sir' for heaven's sake. > > Not least because list list isn't male only. > Not that I know a lot about Indian English, but I think the Indian mind tends to use

Re: using reverse in list of tuples

2010-06-10 Thread Marco Nawijn
On Jun 10, 2:39 am, james_027 wrote: > hi, > > I am trying to reverse the order of my list of tuples and its is > returning a None to me. Is the reverse() function not allow on list > containing tuples? > > Thanks, > James As the others already mentioned list.reverse() is in-place, just as for ex

Re: GUIs - A Modest Proposal

2010-06-10 Thread Gregory Ewing
Martin v. Loewis wrote: or PyGui would need to be implemented in terms of ctypes (which then would prevent its inclusion, because there is a policy that ctypes must not be used in the standard library). Is there? I wasn't aware of that. What's the reason? If it's because ctypes doesn't work

Re: regarding the dimensions in gui

2010-06-10 Thread Chris Rebert
On Thu, Jun 10, 2010 at 1:27 AM, Andreas Waldenburger wrote: > On Thu, 10 Jun 2010 08:37:21 +0100 Simon Brunning > wrote: >> On 10 June 2010 08:19, Shashwat Anand >> wrote: >> > And please stop using 'sir' for heaven's sake. >> >> Not least because list list isn't male only. > > Not that I know

Problem with libxml2/libxlst

2010-06-10 Thread CinnamonDonkey
Hi All, I could not find a dedicated libxml2/libxlst group so I thought I would see if anyone here could help. I have a system which captures the stdout from various sources and writes it into a generic xml file. This file then needs to be transformed to get the correct html format for rendering

gui related

2010-06-10 Thread madhuri vio
in this program i tried..i am getting a name error... from Tkinter import* import Tkinter a = Tk() a.title ("TOOL") entry = Tkinter.Canvas(a)#creating the canvas under the root entry.pack() #to call the packer geometry entry.crea

Re: regarding the dimensions in gui

2010-06-10 Thread Jean-Michel Pichavant
Chris Rebert wrote: On Thu, Jun 10, 2010 at 1:27 AM, Andreas Waldenburger wrote: On Thu, 10 Jun 2010 08:37:21 +0100 Simon Brunning wrote: On 10 June 2010 08:19, Shashwat Anand wrote: And please stop using 'sir' for heaven's sake. Not least because list list isn't ma

Re: gui related

2010-06-10 Thread Chris Rebert
On Thu, Jun 10, 2010 at 2:38 AM, madhuri vio wrote: > in this program i tried..i am getting a name error... > > from Tkinter import* > import Tkinter > > a = Tk() > a.title ("TOOL") > entry = Tkinter.Canvas(a)    #creating the canvas > under the root > entry.pack() 

Re: How to read source code of python?

2010-06-10 Thread pradeepbpin
On Jun 10, 1:15 pm, News123 wrote: > Leon wrote: > > Hi, there, > > I'm trying to read the source code of python.dd > > I read around, and am kind of lost, so where to start? > > > Any comments are welcomed, thanks in advance. > > I use my favourite text editor with syntax highlighting. > > Next t

Re: getting MemoryError with dicts; suspect memory fragmentation

2010-06-10 Thread Emin.shopper Martinian.shopper
Dear Dmitry, Bryan and Philip, Thanks for the suggestions. I poked around the dictionary descriptions and fiddled some more but couldn't find any obvious error. I agree it does seem odd that a 50 kb dict should fail. Eventually, I tried Dmitry suggestion of moving over to python 2.6. This took a w

xml-rpc UnicodeDecodeError

2010-06-10 Thread timothee cezard
Hi all, I'm starting to use xml-rpc module to check and potentially modify a confluence wiki but I'm getting and error on a page containing the pound (£) sign here is the code I'm using server = xmlrpclib.ServerProxy('my_server', verbose=True) token = server.confluence1.login('username','pass

Re: How do subprocess.Popen("ls | grep foo", shell=True) with shell=False?

2010-06-10 Thread Nobody
On Wed, 09 Jun 2010 21:15:48 -0700, Chris Seberino wrote: > How do subprocess.Popen("ls | grep foo", shell=True) with shell=False? The same way that the shell does it, e.g.: from subprocess import Popen, PIPE p1 = Popen("ls", stdout=PIPE) p2 = Popen(["grep", "foo"], stdin=p1.stdout, stdout

Re: GUIs - A Modest Proposal

2010-06-10 Thread Brian Blais
On Jun 10, 2010, at 4:28 , Gregory Ewing wrote: Brian Blais wrote: In this whole discussion, I haven't seen anyone mention wax (http:// zephyrfalcon.org/labs/wax_primer.html) Just had a quick look at that. In the third example code box: def Body(self): self.textbox = Tex

Re: help!!

2010-06-10 Thread z00z
On Jun 10, 1:33 am, Steven D'Aprano wrote: > On Wed, 09 Jun 2010 16:44:10 -0700, z00z wrote: > > ok when my code is like this everything works well > > > #/usr/bin/python > > input = raw_input(">> ").replace(',','\n') > > a=open("file","w") > > a.write(input) > > a.close() > > import sys,os,time,s

Re: grep command

2010-06-10 Thread D'Arcy J.M. Cain
On Thu, 10 Jun 2010 08:26:58 +0100 Simon Brunning wrote: > On 10 June 2010 07:38, madhuri vio wrote: > > i was wondering bout the usage and syntax of > > grep command..can u tall me its syntax so that > > i can use it and proceed...pls > > That's really not on topic for this list. I'm surprised

Re: help!!

2010-06-10 Thread z00z
On Jun 10, 1:33 am, Steven D'Aprano wrote: > On Wed, 09 Jun 2010 16:44:10 -0700, z00z wrote: > > ok when my code is like this everything works well > > > #/usr/bin/python > > input = raw_input(">> ").replace(',','\n') > > a=open("file","w") > > a.write(input) > > a.close() > > import sys,os,time,s

Re: Python Jobs

2010-06-10 Thread Michael Chambliss
On Wed, Jun 9, 2010 at 8:58 PM, Vincent Davis wrote: > > > You might take a look at Front Range pythoneers. The is a mailing list > an I think monthly meetups. I see some job post coma across the list > now and then. > http://www.meetup.com/frpythoneers/ > > I am also in the Denver area and have b

Simple hack to get $500 to your home

2010-06-10 Thread free money
Simple hack to get $500 to your home at http://ukfullenjoy.co.cc Due to high security risks,i have hidden the cheque link in an image. in that website on left side below search box, click on image and enter your name and address where you want to receive your cheque.please dont tell to anyone. --

numpy arrays to python compatible arrays

2010-06-10 Thread Javier Montoya
Dear all, I'm new to python and have been working with the numpy package. I have some numpy float arrays (obtained from np.fromfile and np.cov functions) and would like to convert them to simple python arrays. I was wondering which is the best way to do that? Is there any function to do that? Bes

Re: How do subprocess.Popen("ls | grep foo", shell=True) with shell=False?

2010-06-10 Thread Grant Edwards
On 2010-06-10, Chris Seberino wrote: > How do subprocess.Popen("ls | grep foo", shell=True) with shell=False? You'll have to build your own pipeline with multiple calls to subprocess > Does complex commands with "|" in them mandate shell=True? Yes. Hey, I've got a novel idea! Read the docume

Re: GUIs - A Modest Proposal

2010-06-10 Thread python
Brian, > Since many seem to be married to a particular GUI framework, I was just > suggesting that a thin wrapper around the framework might be fruitful, The guys on the Dabo project have created such a wrapper. www.dabodev.org. Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Deformed Form

2010-06-10 Thread Victor Subervi
Hi; I have a script that calls values from the form that calls it. This script imports another script: from New_Passenger import New_Passenger def create_edit_passengers3(): ... new_passengers_curr_customers = New_Passengers_Curr_Customers(customers, flights) if new_passengers_curr_customer

Re: regarding the dimensions in gui

2010-06-10 Thread Jon Clements
On 10 June, 10:40, Jean-Michel Pichavant wrote: > Chris Rebert wrote: > > On Thu, Jun 10, 2010 at 1:27 AM, Andreas Waldenburger > > wrote: > > >> On Thu, 10 Jun 2010 08:37:21 +0100 Simon Brunning > >> wrote: > > >>> On 10 June 2010 08:19, Shashwat Anand > >>> wrote: > > And please stop usi

Re: Deformed Form

2010-06-10 Thread Stephen Hansen (L/P)
On 6/10/10 7:14 AM, Victor Subervi wrote: > Hi; > I have a script that calls values from the form that calls it. This script > imports another script: > > from New_Passenger import New_Passenger > > def create_edit_passengers3(): > ... > new_passengers_curr_customers = New_Passengers_Curr_Cus

Re: function that counts...

2010-06-10 Thread Lie Ryan
On 06/10/10 09:03, Bryan wrote: > Lie Ryan wrote: >> I went through the mathematical foundation of using >> partition/distribution and inclusion-exclusion, and have written some >> code that solves a subset of the problem, feel free if you or superpollo >> are interested in continuing my answer (I

Re: Problem with libxml2/libxlst

2010-06-10 Thread CinnamonDonkey
My mistake! *doh* I had an 'disable-output-escape="YES"' when it should have been "NO". -Shaun On 10 June, 10:17, CinnamonDonkey wrote: > Hi All, > > I could not find a dedicated libxml2/libxlst group so I thought I > would see if anyone here could help. > > I have a system which captures the s

Re: How to read source code of python?

2010-06-10 Thread Floris Bruynooghe
On Jun 10, 8:55 am, Thomas Jollans wrote: > On 06/10/2010 07:25 AM, Qijing Li wrote: > > > Thanks for your reply. > > I'm trying to understand python language deeply and  use it efficiently. > > For example: How the operator "in" works on list? the running time is > > be O(n)?  if my list is sorte

Py++, boost and python type mismatch error

2010-06-10 Thread Murrgon
I have a simple C++ library (from a dll) I am attempting to make accessible through bindings to python. I used Py++ to generate some boost code for the library that I compiled into a pyd. I can import the pyd no problem into python, but I can't seem to call the functions. struct MM_Api { v

including pygments code_block directive in rst2* from docutils

2010-06-10 Thread Sean Davis
I would like to simply extend the rst2* scripts bundled with docutils to include a code_block directive. I have found a number of sites that discuss the topic, but I guess I am new enough to docutils to still be wondering how to make it actually happen. I'm looking to convert a single .rst file t

Re: Deformed Form

2010-06-10 Thread Bruno Desthuilliers
Stephen Hansen (L/P) a écrit : On 6/10/10 7:14 AM, Victor Subervi wrote: (snip) +1 for "absolutely worst framed question of the day" :) IMHO you're wasting your time. Some guys never learn, and I guess we do have a world-class all-times champion here. -- http://mail.python.org/mailman/li

Re: Problem with libxml2/libxlst

2010-06-10 Thread Stephen Hansen
On 6/10/10 7:47 AM, CinnamonDonkey wrote: > My mistake! *doh* > > I had an 'disable-output-escape="YES"' when it should have been "NO". > > -Shaun > Eeeeven though you figured out your problem: have you checked out lxml? Its extremely capable and ISTM much easier to use then whatever direct wra

Re: How do subprocess.Popen("ls | grep foo", shell=True) with shell=False?

2010-06-10 Thread Chris Seberino
On Jun 10, 6:52 am, Nobody wrote: > Without the p1.stdout.close(), if the reader (grep) terminates before > consuming all of its input, the writer (ls) won't terminate so long as > Python retains the descriptor corresponding to p1.stdout. In this > situation, the p1.wait() will deadlock. > > The c

Re: How do subprocess.Popen("ls | grep foo", shell=True) with shell=False?

2010-06-10 Thread Lie Ryan
On 06/10/10 21:52, Nobody wrote: > Spawning child processes to perform tasks > which can easily be performed in Python is inefficient Not necessarily so, recently I wrote a script which takes a blink of an eye when I pipe through cat/grep to prefilter the lines before doing further complex filteri

Re: Py++, boost and python type mismatch error

2010-06-10 Thread Thomas Jollans
On 06/10/2010 05:15 PM, Murrgon wrote: > I have a simple C++ library (from a dll) I am attempting to make > accessible through bindings to python. I used Py++ to generate some > boost code for the library that I compiled into a pyd. I can import the > pyd no problem into python, but I can't seem

Re: using reverse in list of tuples

2010-06-10 Thread Steven W. Orr
On 06/10/10 04:41, quoth Marco Nawijn: > On Jun 10, 2:39 am, james_027 wrote: >> hi, >> >> I am trying to reverse the order of my list of tuples and its is >> returning a None to me. Is the reverse() function not allow on list >> containing tuples? >> >> Thanks, >> James > > As the others already

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 3:28 am, Gregory Ewing wrote: > Brian Blais wrote: > > In this whole discussion, I haven't seen anyone mention wax (http:// > > zephyrfalcon.org/labs/wax_primer.html) > > Just had a quick look at that. In the third example code box: > >    def Body(self): >         >      self.textb

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 3:52 am, Gregory Ewing wrote: > Pywin32 does seem to have grown rather haphazardly. Some > functionality is wrapped in two different ways in different > modules, for no apparently good reason, and some other > things are wrapped incompletely or not at all. A well > thought out replacem

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread lkcl
On Jun 9, 11:03 pm, rantingrick wrote: > On Jun 9, 4:29 pm, lkcl wrote: > > > um, please don't ask me why but i foundgrail, the python-based web > >browser, and have managed to hack it into submission sufficiently to > > view e.g.http://www.google.co.uk.  out of sheer apathy i happened to > > hav

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread lkcl
On Jun 9, 10:58 pm, Thomas Jollans wrote: > give us a copy then, just for the laughs. ^^ Post it on bitbucket, > maybe? (or send me a copy and I'll do it) http://github.com/lkcl/grailbrowser remember it only works on python2.4 or less right now! -- http://mail.python.org/mailman/listinfo/pyt

Re: regarding the dimensions in gui

2010-06-10 Thread rantingrick
On Jun 10, 4:40 am, Jean-Michel Pichavant wrote: > Internet rule, number 30: > > "There are no girls on the internet" Well i hope at least your bedroom door does not still have that sign hanging... # #* *# # NO GIRLS ALLOWED! # #*

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread lkcl
On Jun 9, 11:03 pm, rantingrick wrote: > On Jun 9, 4:29 pm, lkcl wrote: > > > um, please don't ask me why but i foundgrail, the python-based web > >browser, and have managed to hack it into submission sufficiently to > > view e.g.http://www.google.co.uk.  out of sheer apathy i happened to > > hav

Re: Deformed Form

2010-06-10 Thread Victor Subervi
On Thu, Jun 10, 2010 at 10:30 AM, Stephen Hansen (L/P) wrote: > On 6/10/10 7:14 AM, Victor Subervi wrote: > > Hi; > > I have a script that calls values from the form that calls it. This > script > > imports another script: > > > > from New_Passenger import New_Passenger > > > > def create_edit_pa

Re: How to read source code of python?

2010-06-10 Thread Giampaolo Rodolà
2010/6/10 Leon : > Hi, there, > I'm trying to read the source code of python. > I read around, and am kind of lost, so where to start? > > Any comments are welcomed, thanks in advance. > -- > http://mail.python.org/mailman/listinfo/python-list > If you're interested in understanding Python interna

Re: Deformed Form

2010-06-10 Thread Stephen Hansen
On 6/10/10 10:11 AM, Victor Subervi wrote: > On Thu, Jun 10, 2010 at 10:30 AM, Stephen Hansen (L/P) pyt...@ixokai.io> wrote: >> >> But what does "cannot be called" mean? "Cannot" usually means "an error >> happened" -- in which case you shouldn't really even mention it unless >> you're gonna back

Re: Deformed Form

2010-06-10 Thread Victor Subervi
No, I think you've misunderstood because while I thought I was being clear I probably was not. So here is the complete code of create_edit_passengers3.py: #!/usr/bin/python import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.getcwd()) import MySQLdb from login import login im

Re: Deformed Form

2010-06-10 Thread Stephen Hansen
On 6/10/10 10:48 AM, Victor Subervi wrote: > Now, create_edit_passengers3() is called by the form/submit button in (you > guessed it) create_edit_passengers2.py, the latter containing a var in it > which *should* be accessible to create_edit_passengers3.py, one would think. Wait, wait, wait. If a

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread MRAB
lkcl wrote: On Jun 9, 11:03 pm, rantingrick wrote: On Jun 9, 4:29 pm, lkcl wrote: um, please don't ask me why but i foundgrail, the python-based web browser, and have managed to hack it into submission sufficiently to view e.g.http://www.google.co.uk. out of sheer apathy i happened to have

SQLite3 - How to set page size?

2010-06-10 Thread durumdara
Hi! I tried with this: import sqlite3 pdb = sqlite3.connect("./copied4.sqlite") pcur = pdb.cursor() pcur.execute("PRAGMA page_size = 65536;") pdb.commit() pcur.execute('VACUUM;') pdb.commit() pcur.execute("PRAGMA page_size") rec = pcur.fetchone() print rec pdb.close() But never I got bigger page

Re: GUIs - A Modest Proposal

2010-06-10 Thread Martin v. Loewis
or PyGui would need to be implemented in terms of ctypes (which then would prevent its inclusion, because there is a policy that ctypes must not be used in the standard library). Is there? I wasn't aware of that. What's the reason? ctypes is inherently unsafe. It must be possible to remove it

Re: SQLite3 - How to set page size?

2010-06-10 Thread Ian Kelly
On Thu, Jun 10, 2010 at 12:25 PM, durumdara wrote: > Hi! > > I tried with this: > > import sqlite3 > pdb = sqlite3.connect("./copied4.sqlite") > pcur = pdb.cursor() > pcur.execute("PRAGMA page_size = 65536;") > pdb.commit() > pcur.execute('VACUUM;') > pdb.commit() > pcur.execute("PRAGMA page_size"

Re: GUIs - A Modest Proposal

2010-06-10 Thread Emile van Sebille
On 6/10/2010 9:34 AM rantingrick said... Like it not (And i'm talking directly to all the Unix hackers here!) Win32 is here to stay! You should have realized that years ago! Frankly, I'm dropping clients that insist on windows only and am actively migrating clients to ubuntu/openoffice/firefo

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 9:34 AM, rantingrick wrote: > Like it not (And i'm talking directly to all the Unix hackers here!) > Win32 is here to stay! You should have realized that years ago! And > likewise, like it or not, GUI is here to stay. You should have also > realized that years ago (although we may be sup

Re: Java Developer with Chordiant, Hyderabad

2010-06-10 Thread Evan Plaice
You do realize that this is a python and not Java usenet group right? You'd be better off checking out comp.lang.python -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Lawrence
On 10/06/2010 23:24, Stephen Hansen wrote: [snip] P.S. Considering I almost never use tkinter, I'm confused how I somehow suddenly became a Champion of Tkinter Inclusiveness. FWIW I've never used any GUI in Python. I'd see your involvement on this thread as being more like a Champion of Comm

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
On Thu, Jun 10, 2010 at 3:24 PM, Stephen Hansen wrote: > On 6/10/10 3:17 PM, geremy condra wrote: >> I mostly agree with you, but as Stephen points out you can't exactly >> count on it being present now either, which more or less renders any >> guarantee of backwards compatibility moot IMO. Whats

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 5:17 pm, geremy condra wrote: > Whats the practical > difference between telling somebody that either tkinter works out of > the box or they'll have to satisfy an extra dependency and just telling > them that they'll have to satisfy an additional dependency in the first > place? BIG +

Re: numpy arrays to python compatible arrays

2010-06-10 Thread Philip Semanchuk
On Jun 10, 2010, at 9:58 AM, Javier Montoya wrote: Dear all, I'm new to python and have been working with the numpy package. I have some numpy float arrays (obtained from np.fromfile and np.cov functions) and would like to convert them to simple python arrays. I was wondering which is the best

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 1:14 PM, Ethan Furman wrote: > Stephen Hansen wrote: >> Another thing you can look at is QT/PyQT. If you're doing GPL'd >> software, that might be a very good solution for you-- you can design >> your whole app in the beautiful QTDesigner, and the .ui files can be >> used in any language

Re: GUIs - A Modest Proposal

2010-06-10 Thread Benjamin Kaplan
On Thu, Jun 10, 2010 at 9:34 AM, rantingrick wrote: > On Jun 10, 3:52 am, Gregory Ewing wrote: > >> Pywin32 does seem to have grown rather haphazardly. Some >> functionality is wrapped in two different ways in different >> modules, for no apparently good reason, and some other >> things are wrapp

Re: regarding the dimensions in gui

2010-06-10 Thread Phlip
On Jun 10, 10:00 am, rantingrick wrote: > On Jun 10, 4:40 am, Jean-Michel Pichavant > wrote: > > > Internet rule, number 30: > > > "There are no girls on the internet" > > Well i hope at least your bedroom door does not still have that sign > hanging... > >  # >  #*      

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
On Thu, Jun 10, 2010 at 3:57 PM, rantingrick wrote: > On Jun 10, 5:17 pm, geremy condra wrote: > >> Whats the practical >> difference between telling somebody that either tkinter works out of >> the box or they'll have to satisfy an extra dependency and just telling >> them that they'll have to s

Re: Deformed Form

2010-06-10 Thread Stephen Hansen
On 6/10/10 8:35 AM, Bruno Desthuilliers wrote: > Stephen Hansen (L/P) a écrit : >> On 6/10/10 7:14 AM, Victor Subervi wrote: > (snip) >> >> +1 for "absolutely worst framed question of the day" :) > > IMHO you're wasting your time. Some guys never learn, and I guess we do > have a world-class all-t

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Mark Lawrence
On 10/06/2010 22:51, Pascal J. Bourguignon wrote: bolega writes: Which is the best implementation of LISP family of languages for real world programming ? What's the real world? What's real world programming? What's this doing on c.l.py? Regards. Mark Lawrence. -- http://mail.python.or

simple chat server

2010-06-10 Thread Burakk
Hi, I am using ubuntu lucid and i have started to learn python(vrs 3.1). I am trying to make a tutorial code(see below) work but when i run the code, open a terminal window and connect as client with telnet and type somethings and hit enter, give me error below...(the terminal says connection clos

Re: historic grail python browser "semi-recovered"

2010-06-10 Thread lkcl
On Jun 10, 6:17 pm, MRAB wrote: > lkcl wrote: > > On Jun 9, 11:03 pm, rantingrick wrote: > >> On Jun 9, 4:29 pm, lkcl wrote: > > >>> um, please don't ask me why but i foundgrail, the python-based web > >>>browser, and have managed to hack it into submission sufficiently to > >>> view e.g.http://

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 1:52 pm, Emile van Sebille wrote: > After 15 years, I don't see that MS has gotten it right yet and I'm > tired of fixing stupid windows boxes.  Talk about time sinks! And i 100% agree Emille. Just for the record i hate windows, I hate win32 programming, i hate MS office, and I hate VB

Re: GUIs - A Modest Proposal

2010-06-10 Thread rantingrick
On Jun 10, 1:56 pm, Stephen Hansen wrote: > So... uh, why again are we including it? Those people who need it, have > ready access. But what if Mark decided one day he no longer wants to support Python or Win32? How many years will it be before someone writes another? > Why not include wxPython

Re: What's the difference?

2010-06-10 Thread Ethan Furman
Anthony Papillion wrote: Someone helped me with some code yesterday and I'm trying to understand it. The way they wrote it was subjects = (info[2] for info in items) Perhaps I'm not truly understanding what this does. Does this do anything different than if I wrote for info[2] in items subj

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 12:34 PM, Evan Plaice wrote: > This is my first foray into usenet and f*** the signal to crap > ratio in here is ridiculous. I can't believe that there are 150+ > answers and little or no useful information yet That's because the question wasn't really a question. Its a political rallyi

Decimal problem

2010-06-10 Thread durumdara
Hi! In the prev. week I tested my home Python projects with KinterBasDB embedded, PsyCOPG, and SQLite. All of them worked well, and everything was good. But the database blob table deletion was slow in SQLite, so I thought I will try this with FireBird and PGSQL. Today I tried to copy the SQLit

Re: SQLite3 - How to set page size?

2010-06-10 Thread durumdara
On jún. 10, 20:39, Ian Kelly wrote: > On Thu, Jun 10, 2010 at 12:25 PM, durumdara wrote: > > Hi! > > > I tried with this: > > > import sqlite3 > > pdb = sqlite3.connect("./copied4.sqlite") > > pcur = pdb.cursor() > > pcur.execute("PRAGMA page_size = 65536;") > > pdb.commit() > > pcur.execute('VAC

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 12:36 PM, rantingrick wrote: > On Jun 10, 1:56 pm, Stephen Hansen wrote: > >> So... uh, why again are we including it? Those people who need it, have >> ready access. > > But what if Mark decided one day he no longer wants to support Python > or Win32? How many years will it be before

Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread bolega
Which is the best implementation of LISP family of languages for real world programming ? http://wiki.alu.org/Implementation Kindly pick one from commercial and one from open-source . The criteria is : libraries, gui interface and builder, libraries for TCP, and evolving needs. Please compare

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Pascal Costanza
On 10/06/2010 23:51, Pascal J. Bourguignon wrote: bolega writes: Which is the best implementation of LISP family of languages for real world programming ? What's the real world? What's real world programming? I guess somebody's just enjoying flame wars too much. Pascal -- My website: ht

Re: GUIs - A Modest Proposal

2010-06-10 Thread geremy condra
On Thu, Jun 10, 2010 at 3:02 PM, Mark Lawrence wrote: > On 10/06/2010 22:20, rantingrick wrote: > [snip most of it] > >> Free up pydev and send Tkinter to the bitbucket! > > Great idea, but lets take this further.  I don't personally like module xyz, > so let's free up pydev and send xyz to the bi

Re: What's the difference?

2010-06-10 Thread Martin
On Jun 10, 11:13 pm, Anthony Papillion wrote: > Thank you Emile and Thomas! I appreciate the help. MUCH clearer now. Also at a guess I think perhaps you wrote the syntax slightly wrong (square brackets)...you might want to look up "list comprehension" Martin -- http://mail.python.org/mailman/li

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Kenneth Tilton
bolega wrote: Which is the best implementation of LISP family of languages for real world programming ? http://wiki.alu.org/Implementation Kindly pick one from commercial and one from open-source . ACL and SBCL The criteria is : libraries, gui interface and builder, libraries for TCP, and

Re: GUIs - A Modest Proposal

2010-06-10 Thread Mark Lawrence
On 10/06/2010 22:20, rantingrick wrote: [snip most of it] Free up pydev and send Tkinter to the bitbucket! Great idea, but lets take this further. I don't personally like module xyz, so let's free up pydev and send xyz to the bitbucket because I say so. To hell with anyone elses' views, an

Re: What's the difference?

2010-06-10 Thread Emile van Sebille
On 6/10/2010 1:47 PM Anthony Papillion said... Someone helped me with some code yesterday and I'm trying to understand it. The way they wrote it was subjects = (info[2] for info in items) Perhaps I'm not truly understanding what this does. Does this do anything different than if I wrote for in

Re: numpy arrays to python compatible arrays

2010-06-10 Thread Martin
On Jun 10, 9:02 pm, Philip Semanchuk wrote: > On Jun 10, 2010, at 9:58 AM, Javier Montoya wrote: > > > Dear all, > > > I'm new to python and have been working with the numpy package. I have > > some numpy float arrays (obtained from np.fromfile and np.cov > > functions) and would like to convert t

MySQLdb problems with named pipe connection on Windows 7?

2010-06-10 Thread John Nagle
MySQLdb won't connect to my MySQL 5.1 on on Windows 7. This worked on Windows 2000, but of course I've had to reinstall everything. The MySQL command line client, "mysql", connects to the database without problems. Installed: ActiveState Python 2.6 (Win32) "mysql-essential-5.1.47.win32.

Re: Decimal problem

2010-06-10 Thread Mark Dickinson
On Jun 10, 8:45 pm, durumdara wrote: > ne 91, in fixed_conv_out_precise >     from decimal import Decimal > ImportError: cannot import name Decimal Is it possible that you've got another file called decimal.py somewhere in Python's path? What happens if you start Python manually and type 'from d

Re: Which is the best implementation of LISP family of languages for real world programming ?

2010-06-10 Thread Pascal J. Bourguignon
bolega writes: > Which is the best implementation of LISP family of languages for real > world programming ? What's the real world? What's real world programming? -- __Pascal Bourguignon__ http://www.informatimago.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-10 Thread Stephen Hansen
On 6/10/10 3:17 PM, geremy condra wrote: > I mostly agree with you, but as Stephen points out you can't exactly > count on it being present now either, which more or less renders any > guarantee of backwards compatibility moot IMO. Whats the practical > difference between telling somebody that eith

  1   2   >