Re: Break large file down into multiple files

2009-02-12 Thread brianrpsgt1
On Feb 12, 11:02 pm, "Gabriel Genellina" wrote: > En Fri, 13 Feb 2009 04:44:54 -0200, brianrpsgt1   > escribió: > > > New to python I have a large file that I need to break upinto > > multiple smallerfiles. I need to break the large fileintosections > > where there are 65535 lines and then wr

Re: Break large file down into multiple files

2009-02-12 Thread Gabriel Genellina
En Fri, 13 Feb 2009 04:44:54 -0200, brianrpsgt1 escribió: New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. I am familiar with op

Re: similar_text in python

2009-02-12 Thread Gabriel Genellina
En Fri, 13 Feb 2009 04:18:05 -0200, sudhandra selvi escribió: Does anyone know if Python has a function like similar_text in PHP. It compares two strings and returns a percentage for the match. Anyone know of anything like this in Python and would be willing to send along an example? See

Break large file down into multiple files

2009-02-12 Thread brianrpsgt1
New to python I have a large file that I need to break up into multiple smaller files. I need to break the large file into sections where there are 65535 lines and then write those sections to seperate files. I am familiar with opening and writing files, however, I am struggling with creating

Re: hpw to convert a linux python script ?

2009-02-12 Thread Stephen Hansen
> # Absolute path to the directory that holds media. > # Example: "/home/media/media.lawrence.com/" > MEDIA_ROOT = fsroot+'/Projects/PytDj/images/' > > Note that most Windows APIs allow you to use the forward slash as a > delimiter. It's mostly the command line and Windows Explorer that are > snott

similar_text in python

2009-02-12 Thread sudhandra selvi
Hi Does anyone know if Python has a function like similar_text in PHP. It compares two strings and returns a percentage for the match. Anyone know of anything like this in Python and would be willing to send along an example? thanks selvi Add more friends to your messenger and enjoy!

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Terry Reedy
W. eWatson wrote: From Diez above. What does *NOT* work is writing a Tkinter-based app in idle, and to run it *FROM INSIDE* idle. Instead, open your explorer and double-click on the pyhton-file your app is in. That's all that there is to it. So this is the absolute truth? No wiggle room? One ca

Re: A little bit else I would like to discuss

2009-02-12 Thread Terry Reedy
azrael wrote: We need better and not out of date libraries and modules. Python was build because of bad experiences of bad programing languages. I sak The Python Development team to listen to us users an developers. listen to our problems. I ask you to help update a module or package that you

Re: A little bit else I would like to discuss

2009-02-12 Thread Terry Reedy
Damon wrote: The original poster complained about needing to go off to third-party sites to hunt for software. I wonder if the Python team has ever The 'Python team' is everyone who volunteers to help. How about you? considered following the lead of miktex or R, and setting up a centralized

Re: Change in cgi module's handling of POST requests

2009-02-12 Thread Bob Kline
Joshua Kugler wrote: We just upgraded Python to 2.6 on some of our servers and a number of our CGI scripts broke because the cgi module has changed the way it handles POST requests. When the 'action' attribute was not present in the form element on an HTML page the module behaved as if the valu

Re: A little bit else I would like to discuss

2009-02-12 Thread Benjamin Kaplan
On Thu, Feb 12, 2009 at 10:16 PM, Damon wrote: > On Feb 12, 8:15 pm, Philip Semanchuk wrote: > > Let me know when Visual Studio tries to address building GUIs for > > Windows, OS X, Gnome, and KDE. Until then, you're comparing apples to > > oranges, or chalk and cheese if you're from that part of

NNTPlib encoding issue

2009-02-12 Thread mohit_ranka
I am getting unknown encoding like, "=?Utf-8?B?QWRyaWFu?= " (quotes for clarity) for name of the author from nntplib module. which seems like an encoding issue with NNTPLib module. What should i do to get author name information in human readable format. Thanks and regards, Mohit Ranka -- http://

Re: Regarding Joystick

2009-02-12 Thread Banibrata Dutta
AFAIK, the mechanism / API / protocol to actuate the Camera's tilt, pan, zoom functions are not standardized (happy to be corrected there!), so even if you find something, it'd most likely be something very specific to a particular device. As for Joystick usage, I remember seeing one thread on that

Re: Python binaries with VC++ 8.0?

2009-02-12 Thread Carl Banks
On Feb 9, 11:34 pm, Tim Roberts wrote: > Carl Banks wrote: > > >I'm pretty sure 2.6.1 is compiled with 8.0.  However, I think the > >Visual C++ 8.0 uses msvcrt90.dll. > > No, the two digits of the DLL match the version number of C++.  The > confusion arises because the product is called "Visual S

Re: A little bit else I would like to discuss

2009-02-12 Thread David Cournapeau
On Fri, Feb 13, 2009 at 12:39 PM, Damon wrote: > The original poster complained about needing to go off to third-party > sites to hunt for software. I wonder if the Python team has ever > considered following the lead of miktex or R, and setting up a > centralized (mirrored) repository of packages

Re: Scanning a file character by character

2009-02-12 Thread Rhodri James
On Fri, 13 Feb 2009 03:24:21 -, Spacebar265 wrote: On Feb 11, 1:06 am, Duncan Booth wrote: Steven D'Aprano wrote: > On Mon, 09 Feb 2009 19:10:28 -0800, Spacebar265 wrote: >> How would I do separate lines into words without scanning one character >> at a time? > Scan a line at a ti

Re: Why does way_1() obtain the correct list but way_2() gets an empty list?

2009-02-12 Thread Gabriel Genellina
En Thu, 12 Feb 2009 07:07:53 -0200, WP escribió: Hello group! This is probably a silly newbie mistake but consider the following program: import libsbml def getSBMLModel(biomodel_path): reader = libsbml.SBMLReader() sbml_doc = reader.readSBML(biomodel_path) sbml_model = No

Re: A little bit else I would like to discuss

2009-02-12 Thread Damon
On Feb 12, 8:40 pm, Christian Heimes wrote: > In your opinion all third party are bad. You like to have one monolithic > block of software. That's a typical Microsoft approach. Lot's of people > from the open source community prefer small and loosely coupled pieces > of software. One of the greates

Re: Scanning a file character by character

2009-02-12 Thread Spacebar265
On Feb 11, 1:06 am, Duncan Booth wrote: > Steven D'Aprano wrote: > > On Mon, 09 Feb 2009 19:10:28 -0800, Spacebar265 wrote: > > >> How would I do separate lines into words without scanning one character > >> at a time? > > > Scan a line at a time, then split each line into words. > > > for line i

Re: A little bit else I would like to discuss

2009-02-12 Thread Damon
On Feb 12, 8:15 pm, Philip Semanchuk wrote: > Let me know when Visual Studio tries to address building GUIs for   > Windows, OS X, Gnome, and KDE. Until then, you're comparing apples to   > oranges, or chalk and cheese if you're from that part of the world. Right now. Use Visual Studio to program

Re: getting caller

2009-02-12 Thread Gabriel Genellina
(If you aren't replying to the original message, please post an entirely *new* one to create a new thread). En Thu, 12 Feb 2009 20:25:57 -0200, Sambit Samal escribió: I need a python script , which binds at a user defind port & sends to other enity , which waits at particular port. The

Re: getting caller

2009-02-12 Thread Gabriel Genellina
En Thu, 12 Feb 2009 19:26:26 -0200, Hamish McKenzie escribió: so I'm trying to wrap some functionality around execfile but don't want to modify the way it works. specifically when you call execfile, it automatically grabs globals and locals from the frame the execfile exists in. so if

Re: A little bit else I would like to discuss

2009-02-12 Thread azrael
There is no need to make it elephant size. Python takes only 14 MB if I am not wrong. Compare 10 GB of VS package in compare with that. nothing. Python enthought edition is something really sweet. For starters, Why does Python not have a build in library to handle images. I don't get this. Why? PIL

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread W. eWatson
From Diez above. What does *NOT* work is writing a Tkinter-based app in idle, and to run it *FROM INSIDE* idle. Instead, open your explorer and double-click on the pyhton-file your app is in. That's all that there is to it. So this is the absolute truth? No wiggle room? One can never use a Tkinte

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread David Cournapeau
On Fri, Feb 13, 2009 at 10:48 AM, azrael wrote: > On Feb 12, 9:42 pm, Christian Heimes wrote: >> azrael wrote: >> > On Feb 12, 8:25 pm, J Kenneth King wrote: >> >> azrael writes: >> >>> To be honest, in compare to Visual Studio, Gui Builders for wx >> >>> widgets are really bad. >> >> That's be

Re: Ipython - Do they have a separate mailing list or newsgroup?

2009-02-12 Thread David
Chris Jones wrote: > Just wondering if ipython is supported elsewhere. Indeed, indeed: IPython-user mailing list ipython-u...@scipy.org http://lists.ipython.scipy.org/mailman/listinfo/ipython-user David -- http://mail.python.org/mailman/listinfo/python-list

Re: Ipython - Do they have a separate mailing list or newsgroup?

2009-02-12 Thread David Cournapeau
On Fri, Feb 13, 2009 at 10:48 AM, Chris Jones wrote: > Just wondering if ipython is supported elsewhere. > The ipython mailing list is there: http://projects.scipy.org/mailman/listinfo/ipython-user David -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread azrael
On Feb 12, 9:42 pm, Christian Heimes wrote: > azrael wrote: > > On Feb 12, 8:25 pm, J Kenneth King wrote: > >> azrael writes: > >>> To be honest, in compare to Visual Studio, Gui Builders for wx > >>> widgets are really bad. > >> That's because Visual Studio is a Microsoft product to build > >>

Ipython - Do they have a separate mailing list or newsgroup?

2009-02-12 Thread Chris Jones
Just wondering if ipython is supported elsewhere. Thanks, CJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Rhodri James
On Fri, 13 Feb 2009 01:16:38 -, W. eWatson wrote: Greetings and salutations. I just uninstalled all traces of (Active) pythonWin 2.5.2 from this machine, In fact, I uninstalled python 2.5.2 with IDLE from this machine. I then reinstalled the latter. Then I ran the program. XP Pro.

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread W. eWatson
Greetings and salutations. I just uninstalled all traces of (Active) pythonWin 2.5.2 from this machine, In fact, I uninstalled python 2.5.2 with IDLE from this machine. I then reinstalled the latter. Then I ran the program. XP Pro. I then went to another machine that has never had pythonWin o

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Rhodri James
On Thu, 12 Feb 2009 16:44:56 -, W. eWatson wrote: I simply ask, "How do I get around the problem?" Run your program from the command line, or by double-clicking. You've been told this several times now. -- Rhodri James *-* Wildebeeste Herder to the Masses -- http://mail.python.org/mail

Re: Thank you, Tkinter. (easy to use)

2009-02-12 Thread argo785
On Feb 12, 4:29 am, "Eric Brunel" wrote: > On Thu, 12 Feb 2009 06:06:06 +0100, wrote: > > [snip] > > > My only (minor) complaint is that Tk > > doesn't draw text antialiased in the various widgets (menus, labels, > > buttons, etc.). > >  From version 8.5 of tcl/tk, it's supposed to do it. See thi

Re: Problem with objects copying each other in memory

2009-02-12 Thread Rhodri James
On Thu, 12 Feb 2009 22:29:29 -, Cameron Pulsford wrote: Thanks, that did it! Why is that the case though? Or rather, why do the assignments to temp.x and temp.y not effect the self.x and self.y? How come I only run into the problem with the list? Variable names and assignment don't w

Re: A little bit else I would like to discuss

2009-02-12 Thread azrael
On Feb 12, 9:40 pm, Christian Heimes wrote: > azrael wrote: > > I think that there should be a list on python.org of supported or > > sugested modules for some need. For example Database access. Or GUI > > Building. It is a complete pain in the ass. Let's face the true, TK is > > out of date. Ther

Re: A little bit else I would like to discuss

2009-02-12 Thread azrael
On Feb 12, 9:24 pm, Tim Golden wrote: > Philip Semanchuk wrote: > > > On Feb 12, 2009, at 3:04 PM, azrael wrote: > > >> Why will Microsoft's products kick the ass of open source. Because > >> anyone does what he wants. Let's say There are 5 GUI libraries > >> competing against each other. Think ab

Re: A little bit else I would like to discuss

2009-02-12 Thread Jason Scheirer
On Feb 12, 12:04 pm, azrael wrote: > Sometimes I really get confused when looking out for a modul for some > kind of need. Sometimes I get frightened when I get the resaults. 8 > wraper for this, 7 wrapers for that, 10 modules for anything. Between > them are maybe some kind of small differences,

Re: New book "The Python Programming Language" by Guido van Rossum

2009-02-12 Thread Paul Rubin
Akira Kitada writes: > The Python Programming Language by Guido van Rossum, Raymond Hettinger, > Jack Diedrich, David Beazley, David Mertz, Nicholas Coghlan to be published. > http://www.amazon.co.uk/Python-Programming-Language-Guido-Rossum/dp/0132299690 Wow! But it says the pub date is 28 Aug 2

Invoking CutePDF from within Python

2009-02-12 Thread John Henry
Hi all, I have a need to invoke CutePDF from within a Python program. The program creates an EXCEL spreadsheet and set the print area and properties. Then I wish to store the spreadsheet in a PDF file. xtopdf does not work well (text only). ReportLab is an overkill. PyPDF can only shuffle PDF p

Re: Passing a variable number of arguments to a function

2009-02-12 Thread Chris Rebert
On Thu, Feb 12, 2009 at 3:44 PM, mercado wrote: > I have the following piece of code that is bugging me: > > #--- > def someFunc(arg1, arg2=True, arg3=0): > print arg1, arg2, arg3 > > someTuple = ( > ("this is a st

New book "The Python Programming Language" by Guido van Rossum

2009-02-12 Thread Akira Kitada
The Python Programming Language by Guido van Rossum, Raymond Hettinger, Jack Diedrich, David Beazley, David Mertz, Nicholas Coghlan to be published. http://www.amazon.co.uk/Python-Programming-Language-Guido-Rossum/dp/0132299690 Anyone found the TOC of this? Thanks, -- http://mail.python.org/mailm

Passing a variable number of arguments to a function

2009-02-12 Thread mercado
I have the following piece of code that is bugging me: #--- def someFunc(arg1, arg2=True, arg3=0): print arg1, arg2, arg3 someTuple = ( ("this is a string",), ("this is another string", False), ("this is a

Re: Problem with objects copying each other in memory

2009-02-12 Thread andrew cooke
the official answer to that question is here - http://docs.python.org/reference/datamodel.html?highlight=containers - at about the 6th paragraph where it talks about "containers". i think it's a hard question and really in a sense (imho) the real reason is just that this tends to be the best comp

Re: Problem with objects copying each other in memory

2009-02-12 Thread Cameron Pulsford
Thanks, that did it! Why is that the case though? Or rather, why do the assignments to temp.x and temp.y not effect the self.x and self.y? How come I only run into the problem with the list? On Feb 12, 2009, at 5:15 PM, andrew cooke wrote: you're setting the new knight's "sl" to the value

Re: getting caller

2009-02-12 Thread Sambit Samal
Hi I am new to Python world I need a python script , which binds at a user defind port & sends to other enity , which waits at particular port. The other enity will respond & Python script should receive that at the defined port The communication will happen over UDP e.g Python Appl IP: 10.1

Re: A little bit else I would like to discuss

2009-02-12 Thread r
On Feb 12, 2:04 pm, azrael wrote: > Sometimes I really get confused when looking out for a modul for some > kind of need. Sometimes I get frightened when I get the resaults. 8 > wraper for this, 7 wrapers for that, 10 modules for anything. Between > them are maybe some kind of small differences, b

Re: A little bit else I would like to discuss

2009-02-12 Thread Terry Reedy
azrael wrote: Sometimes I really get confused when looking out for a modul for some kind of need. Sometimes I get frightened when I get the resaults. 8 wraper for this, 7 wrapers for that, 10 modules for anything. Between them are maybe some kind of small differences, but to work with any of the

Re: Problem with objects copying each other in memory

2009-02-12 Thread andrew cooke
you're setting the new knight's "sl" to the value self.sl and then adding values to it. that's the same list - so you are adding values to the self.sl list when you add them to the knight's sl. this is easier to understand just by seeing the fix, which is to use: temp = Knight(self.x, self.y, s

Re: Problem with objects copying each other in memory

2009-02-12 Thread Chris Rebert
On Thu, Feb 12, 2009 at 1:57 PM, dlocpuwons wrote: > Using Python 2.6.1... > > I am (attempting) to make an A* search for a chess problem, but I am > running into a really annoying shared memory issue in my successor > function. Here it is stripped down to the important parts that relate > to my p

Re: A little bit else I would like to discuss

2009-02-12 Thread Christian Heimes
Martin wrote: [typos igored as requested ;)] > How does "small and agile" work with "batteries included"? The Python slogan says "batteries included", not "fusion reactor included". > agile:: > Would describe faster extension of the standard lib (rrd, yaml should > IMHO already be in the standa

Re: Can't load smtplib

2009-02-12 Thread S-boy
Thanks. Turns out I had a script I wrote called email.py in my Python path that was screwing things up. On Feb 12, 2:50 pm, Jean-Paul Calderone wrote: > On Thu, 12 Feb 2009 11:40:57 -0800 (PST), S-boy wrote: > >I can't seem to import smtplib in either a script or the command line > >interpreter.

Re: SOAP client

2009-02-12 Thread mk
On Feb 11, 11:20 am, Robin wrote: > On Feb 11, 3:33 pm, mk wrote: > > > Hi, > > > I'm trying to consume aSOAPweb service using Python.  So far I have > > found two libraries: SOAPpy and ZSI.  Both of them rely on PyXML which > > is no longer maintained (and there is no build for 64bit Windows and

Regarding Joystick

2009-02-12 Thread shreyas shah
Hi , I am trying to control the motion of the camera with help of joystick , i need some basic functionality where if i move a joystick to left the camera moves to the left . Can anyone help me with that ? Thanks Shreyas -- http://mail.python.org/mailman/listinfo/python-list

Problem with objects copying each other in memory

2009-02-12 Thread dlocpuwons
Using Python 2.6.1... I am (attempting) to make an A* search for a chess problem, but I am running into a really annoying shared memory issue in my successor function. Here it is stripped down to the important parts that relate to my problem. def successors(self): result = []

Re: how many databases exists?

2009-02-12 Thread Martin
Hi, you want to check the postgres documentation for that :) 2009/2/12 Rosell Pupo Polanco : > hello, i am working in pythoncard and i need to know how many databases > exist in my server POstgresql, exists some funcion in python that can help > me?? http://www.postgresql.org/docs/current/static

getting caller

2009-02-12 Thread Hamish McKenzie
so I'm trying to wrap some functionality around execfile but don't want to modify the way it works. specifically when you call execfile, it automatically grabs globals and locals from the frame the execfile exists in. so if I wrap execfile in a function, I need a way to reliably get at the cal

Re: Help: makefile in Windows

2009-02-12 Thread Scott David Daniels
Muddy Coder wrote: Hi Folks, I am learning Extending Python, by testing the demo script of Programming Python. In the book, a makefile for Linux is there, but I am using Windows currently. I wish somebody would help me to get a makefile for Windows, my makefile.linux is as below: Use distutils

Re: A little bit else I would like to discuss

2009-02-12 Thread Martin
Oh yeah and ignore my typos also :) 2009/2/12 Martin : > Hi, > > at first I wanted to file this under meta-discussions, but your lost > paragraph got me thinking... > > 2009/2/12 Christian Heimes : >> Nobody is going to stop you from creating a large bundle of useful >> extensions as long as you f

Re: A little bit else I would like to discuss

2009-02-12 Thread Martin
Hi, at first I wanted to file this under meta-discussions, but your lost paragraph got me thinking... 2009/2/12 Christian Heimes : > Nobody is going to stop you from creating a large bundle of useful > extensions as long as you follow the licenses. In fact lots of people > may appreciate a bundle

Re: Thank you, Tkinter. (easy to use)

2009-02-12 Thread argo785
On Feb 12, 4:29 am, "Eric Brunel" wrote: > On Thu, 12 Feb 2009 06:06:06 +0100, wrote: > > [snip] > > > My only (minor) complaint is that Tk > > doesn't draw text antialiased in the various widgets (menus, labels, > > buttons, etc.). > >  From version 8.5 of tcl/tk, it's supposed to do it. See thi

Re: Change in cgi module's handling of POST requests

2009-02-12 Thread Joshua Kugler
Bob Kline wrote: > [Didn't realize the mirror didn't work both ways] > > We just upgraded Python to 2.6 on some of our servers and a number of our > CGI scripts broke because the cgi module has changed the way it handles > POST requests. > When the 'action' attribute was not present in the form

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread gc_ottawa
..I come from Delphi, and compared to Delphi, even Visual Studio > vanishes ;-) ...I don't even notice the difference between Delphi (which I'm still using) > and wxPython. > > I think this story happened to other people to, > so instead of putting a lot of effort in designing and maint

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread Christian Heimes
azrael wrote: > On Feb 12, 8:25 pm, J Kenneth King wrote: >> azrael writes: >>> To be honest, in compare to Visual Studio, Gui Builders for wx >>> widgets are really bad. >> That's because Visual Studio is a Microsoft product to build >> interfaces for Microsoft products. >> >> wx on the other ha

Re: A little bit else I would like to discuss

2009-02-12 Thread Christian Heimes
azrael wrote: > I think that there should be a list on python.org of supported or > sugested modules for some need. For example Database access. Or GUI > Building. It is a complete pain in the ass. Let's face the true, TK is > out of date. There should be another one used and appended to the > stan

Re: Library similar to UserAgent (perl)

2009-02-12 Thread mattia
Il Thu, 12 Feb 2009 13:47:09 +0100, Diez B. Roggisch ha scritto: > mattia wrote: > >> Hi everybody, I'm looking for an easy way to put data in a form, then >> click the button and follow the redirect. Also I need to use cookies. I >> read that using perl this can be done using the UserAgent lib,

Re: A little bit else I would like to discuss

2009-02-12 Thread Tim Golden
Philip Semanchuk wrote: On Feb 12, 2009, at 3:04 PM, azrael wrote: Why will Microsoft's products kick the ass of open source. Because anyone does what he wants. Let's say There are 5 GUI libraries competing against each other. Think about it what could these 5 teams acomplish if they would wor

Re: hpw to convert a linux python script ?

2009-02-12 Thread Steve Holden
John Machin wrote: > On Feb 12, 7:48 am, Stef Mientki wrote: >> Alec Schueler wrote: >>> On Feb 11, 7:58 pm, Stef Mientki wrote: As there are a whole lot of these lines, in a whole lot of files, I wonder if there's a simple trick to point /usr/share/tinybldLin/ to my directo

A little bit else I would like to discuss

2009-02-12 Thread azrael
Sometimes I really get confused when looking out for a modul for some kind of need. Sometimes I get frightened when I get the resaults. 8 wraper for this, 7 wrapers for that, 10 modules for anything. Between them are maybe some kind of small differences, but to work with any of the modules, I have

Re: A little bit else I would like to discuss

2009-02-12 Thread Philip Semanchuk
On Feb 12, 2009, at 3:04 PM, azrael wrote: Why will Microsoft's products kick the ass of open source. Because anyone does what he wants. Let's say There are 5 GUI libraries competing against each other. Think about it what could these 5 teams acomplish if they would work together. Or maybe a fr

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread azrael
On Feb 12, 8:25 pm, J Kenneth King wrote: > azrael writes: > > To be honest, in compare to Visual Studio, Gui Builders for wx > > widgets are really bad. > > That's because Visual Studio is a Microsoft product to build > interfaces for Microsoft products. > > wx on the other hand is cross platfor

A little bit else I would like to discuss

2009-02-12 Thread azrael
Sometimes I really get confused when looking out for a modul for some kind of need. Sometimes I get frightened when I get the resaults. 8 wraper for this, 7 wrapers for that, 10 modules for anything. Between them are maybe some kind of small differences, but to work with any of the modules, I have

Re: Spam

2009-02-12 Thread Vincent Davis
I am a little disturbed that there are no moderators, mostly because I received an email back from the list"Your mail to 'Python-list' with the subject. Above and beyond, critique request. Is being held until the list moderator can review it for approval. The reason it is being held: Message body i

Re: Capture images in macOS X

2009-02-12 Thread Diez B. Roggisch
Jonathan Chacón schrieb: Hello, I need to capture images from the macbook webcam in leopard. Does anybody know how can I do this? Use the pyobjc bridge & some ObjectiveC-framework such as CocoaSequenceGrabber. http://www.skyfell.org/cocoasequencegrabber.html There are similar ones out ther

Re: something wrong with isinstance

2009-02-12 Thread Diez B. Roggisch
maksym.ka...@gmail.com schrieb: Hi there. now i'm a complete newbie for python, and maybe my problem is stupid but i cannot solve it myself i have an object of class GeoMap which contains lists with objects of GeoMapCell (i will not explain what they should do, hope its not important). Then i wa

Re: something wrong with isinstance

2009-02-12 Thread Paul McGuire
On Feb 12, 12:26 pm, maksym.ka...@gmail.com wrote: > > Well the output of > > > print(type(obj)) > > print(str(obj)) > > was > > > > > Just looks well, isn't it? i have no idea what's wrong So then how do you know isinstance is evaluating to False? And why do you return None if it evals to True

Re: something wrong with isinstance

2009-02-12 Thread maksym . kaban
On 12 фев, 21:49, redbaron wrote: > Don't really sure, but try to define your class as new-style one. > Like > class GeoMap(object): >    ... Sorry, it didn't work -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't load smtplib

2009-02-12 Thread Jean-Paul Calderone
On Thu, 12 Feb 2009 11:40:57 -0800 (PST), S-boy wrote: I can't seem to import smtplib in either a script or the command line interpreter. When I try to import smtp, there seems to be some kind of collision with urllib2. I get a weird error about Web server authorization, even though I'm not cal

Can't load smtplib

2009-02-12 Thread S-boy
I can't seem to import smtplib in either a script or the command line interpreter. When I try to import smtp, there seems to be some kind of collision with urllib2. I get a weird error about Web server authorization, even though I'm not calling urllib2. Any ideas on what might be causing this? H

Re: Spam

2009-02-12 Thread Terry Reedy
Terry Reedy wrote: andrew cooke wrote: A quick search on "imap nntp" turned up this list that might be useful - http://deflexion.com/messaging/ although I wonder when it was written because I remember using Aaron's RSS to email aggregator when RSS was new(!). It mentions gmane, though, which ce

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread Stef Mientki
azrael wrote: To be honest, in compare to Visual Studio, Gui Builders for wx widgets are really bad. Also completly for python there is not one good GuiBuilder. The only one I have seen that would come near VS was BoaConstructor, But the number of Bugs is just horrific. Too bad that no one is dev

Re: Spam

2009-02-12 Thread Terry Reedy
andrew cooke wrote: A quick search on "imap nntp" turned up this list that might be useful - http://deflexion.com/messaging/ although I wonder when it was written because I remember using Aaron's RSS to email aggregator when RSS was new(!). It mentions gmane, though, which certainly still exists

need help from some one who uses python-ooolib

2009-02-12 Thread Krishnakant
hello all, Has any one used python-ooolib to create open office spreadsheets? I want to know the method of merging cells using the library's calc class. happy hacking. Krishnakant. -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread J Kenneth King
azrael writes: > To be honest, in compare to Visual Studio, Gui Builders for wx > widgets are really bad. That's because Visual Studio is a Microsoft product to build interfaces for Microsoft products. wx on the other hand is cross platform and ergo, much more complicated. > Do you know if the

Re: cx_Oracle-5.0 Problem

2009-02-12 Thread Brandon Taylor
On Feb 12, 9:31 am, redbaron wrote: > > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/ > > lib/python2.6/site-packages/cx_Oracle.so, 2): Symbol not found: > > ___divdi3 > > You didn't link cx_Oracle.so all libs which it use. run "ldd -r > cx_Oracle.so" and you'll have an id

Re: __import__ Confusion

2009-02-12 Thread Benjamin Peterson
gmail.com> writes: > > Can someone explain to me what's going on here? > > >>> __import__('some.package.module', {}, {}, []) > > >>> __import__('some.package.module', {}, {}, ['']) > As documented [1], unless fromlist is not empty, the first module is returned. Use the solution at the end o

is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread azrael
To be honest, in compare to Visual Studio, Gui Builders for wx widgets are really bad. Also completly for python there is not one good GuiBuilder. The only one I have seen that would come near VS was BoaConstructor, But the number of Bugs is just horrific. Too bad that no one is developing it furth

Re: something wrong with isinstance

2009-02-12 Thread redbaron
Don't really sure, but try to define your class as new-style one. Like class GeoMap(object): ... -- http://mail.python.org/mailman/listinfo/python-list

Re: openOffic, windows, and Python 2.5

2009-02-12 Thread Terry Reedy
John Fabiani wrote: Terry Reedy wrote: John Fabiani wrote: Hi, OpenOffice 3 on windows uses python 2.3.x (I have no idea why). I presume because no one has volunteered to do the update for the Py-UNO bridge. In any case, why do you consider that to be a problem. It is common for apps to inc

Re: something wrong with isinstance

2009-02-12 Thread maksym . kaban
> Here's a crazy idea out of left field.  Just before calling > isinstance, why not try: > > print(type(obj)) > print(str(obj)) > > This may illuminate the unexpected behavior, you'll find out just what > obj has in it. > > -- Paul Well the output of > print(type(obj)) > print(str(obj)) was J

__import__ Confusion

2009-02-12 Thread scott . bronson . nelson
Can someone explain to me what's going on here? >>> __import__('some.package.module', {}, {}, []) >>> __import__('some.package.module', {}, {}, ['']) (Note that '' is two single quotes) Thanks, Scott -- http://mail.python.org/mailman/listinfo/python-list

Library similar to UserAgent (perl)

2009-02-12 Thread mattia
Hi everybody, I'm looking for an easy way to put data in a form, then click the button and follow the redirect. Also I need to use cookies. I read that using perl this can be done using the UserAgent lib, that also provide th browser functionality to let the site believe that you are getting th

Capture images in macOS X

2009-02-12 Thread Jonathan Chacón
Hello, I need to capture images from the macbook webcam in leopard. Does anybody know how can I do this? Thanks and regards Jonathan Chacón -- http://mail.python.org/mailman/listinfo/python-list

how many databases exists?

2009-02-12 Thread Rosell Pupo Polanco
hello, i am working in pythoncard and i need to know how many databases exist in my server POstgresql, exists some funcion in python that can help me?? greettings..Rosell .::[ La vida es rica en saberes, pero la vida es breve y no se vive, si no se sabe. ]::. -- http://mail.python.org/mailman

Get an image from a webcam in macOS

2009-02-12 Thread Jonathan Chacón
Hello, I can get an Image from a webcam in windows but I don't know how can I get an image from the webcam in a macbook in leopard. How can I do this? thanks and regards Jonathan Chacón -- http://mail.python.org/mailman/listinfo/python-list

Re: Spam

2009-02-12 Thread Aahz
In article , andrew cooke wrote: >Grant Edwards wrote: >>> I should be working; I will try that this evening. What was the name of >>> the client that threaded messages with a cute ascii tree?! >> >> slrn? > >i think i was remembering trn, which is now apparently dead. will try >slrn... thanks,

Re: something wrong with isinstance

2009-02-12 Thread Paul McGuire
On Feb 12, 11:53 am, maksym.ka...@gmail.com wrote: > Hi there. > now i'm a complete newbie for python, and maybe my problem is stupid > but i cannot solve it myself > > i have an object of class GeoMap which contains lists with objects of > GeoMapCell (i will not explain what they should do, hope i

Re: Read Only attributes, auto properties and getters and setters

2009-02-12 Thread josh logan
On Feb 12, 12:27 pm, TechieInsights wrote: > Ok... for some closure I have written a class to automate the > process.  It takes getters and setters and deleters and then sets the > property automatically.  Sweet! > > class AutoProperty(type): >         def __new__(cls, name, bases, methoddict): >

Help: makefile in Windows

2009-02-12 Thread Muddy Coder
Hi Folks, I am learning Extending Python, by testing the demo script of Programming Python. In the book, a makefile for Linux is there, but I am using Windows currently. I wish somebody would help me to get a makefile for Windows, my makefile.linux is as below: PYDIR= c:\Python25 PY = $(PYDIR) h

Re: Spam

2009-02-12 Thread andrew cooke
Grant Edwards wrote: >> I should be working; I will try that this evening. What was the name of >> the client that threaded messages with a cute ascii tree?! > > slrn? i think i was remembering trn, which is now apparently dead. will try slrn... thanks, andrew -- http://mail.python.org/mailma

Re: Spam

2009-02-12 Thread Grant Edwards
On 2009-02-12, andrew cooke wrote: > Can I read news via secure NNTP (nntps)? > Yes. Point your news reader towards nntps://snews.gmane.org/. > > http://www.gmane.org/faq.php > > I should be working; I will try that this evening. What was the name of > the client that threaded messages with

  1   2   >