Re: Python 3D CAD -- need collaborators, or just brave souls :)

2009-02-12 Thread greg
rantingrick wrote: It has long been my dream to create an open source 3D CAD program and I have a real good idea of the UI design Have you seen Sketchup? http://sketchup.google.com/ It has an amazingly intuitive user interface, much better than any other 3D modeller I've seen. Anyone

Re: Breaking Python list into set-length list of lists

2009-02-12 Thread John Machin
On Feb 12, 6:46 pm, Gerard Flanagan grflana...@gmail.com wrote: Jason wrote: Hey everyone-- I'm pretty new to Python, I need to do something that's incredibly simple, but combing my Python Cookbook googling hasn't helped me out too much yet, and my brain is very, very tired flaccid @

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

2009-02-12 Thread WP
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 = None if sbml_doc.getNumErrors() 0: print 'I

Re: Embed a web browser into a page

2009-02-12 Thread Diez B. Roggisch
Carbon Man wrote: Hi, I need to embed a web browser into a python page. I am coming from the MS world where I created an app that all of it's interfaces were actually web pages rendered in an Internet Explorer activex control. There was a object hook that allowed you to call into the host

Re: ANN: Python 2.6 Quick Reference available

2009-02-12 Thread Krzysztof Retel
On Feb 12, 12:54 am, pyt...@bdurham.com wrote: Richard, An excellent tool. Great job!!! Thank you for sharing this with the Python community. Regards, Malcolm Many thanks Richard and Josh. I've just started my adventure with Python, and this document will help me a lot. Cheers, K --

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

2009-02-12 Thread Eric Brunel
On Thu, 12 Feb 2009 06:06:06 +0100, argo...@gmail.com 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 this page:

Re: best way to serve wsgi with multiple processes

2009-02-12 Thread Robin Becker
Graham Dumpleton wrote: . requests. If the work is indeed long running, the backend process would normally just acknowledge the request and not wait. The web page would return and it would be up to user to then somehow occassionally poll web server, manually or by AJAX, to see how

Match items in large list

2009-02-12 Thread Fisherking
Hi, I hope you can help me with this optimizing problem! I have a large list of dictionaries (about 250 000 of them). Two or more of these dictionaries contains the same data (not more than five or six of them per item) e.g. [{'a':1,'b':'2','c':3} , {'d': 4,'e':'5','f':6},{'a':1,'b':'2','c':3} ,

Re: Another optimization request :-)

2009-02-12 Thread andrew cooke
jeffg wrote: To be honest, this is not my code and I'm new to python. It's part of the open source project NetworkX, but I'm using this one call extensively. I'm also not that familiar with the math behind the physics. I'll read the documents and see if I can figure it out. :-) Thank you

Re: Match items in large list

2009-02-12 Thread Paul Rubin
Fisherking anders.mac...@gmail.com writes: Which are the best way of searching through the list and extract the items that are the same. Sort the list, then scan through looking for duplicates, which will be adjacent to each other. -- http://mail.python.org/mailman/listinfo/python-list

Re: Match items in large list

2009-02-12 Thread Martin
Hi, 2009/2/12 Paul Rubin http: Fisherking anders.mac...@gmail.com writes: Which are the best way of searching through the list and extract the items that are the same. hmmm how about using sqlites in memory database and let SQL take care of finding that for you? hth Martin --

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

2009-02-12 Thread Bruno Desthuilliers
WP a écrit : 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 = None if sbml_doc.getNumErrors() 0:

Re: Functional schmunctional...

2009-02-12 Thread Steve Holden
Hendrik van Rooyen wrote: Steve Holden stenweb.com wrote: Jeez, doesn't anyone read the fine manual any more? I hope this was just an academic exercise. socket.inet_ntoa(struct.pack(!l, 10)) '59.154.202.0' Holden's rule: when it looks simple enough to be worth including in the

Re: Match items in large list

2009-02-12 Thread Peter Otten
Fisherking wrote: I hope you can help me with this optimizing problem! I have a large list of dictionaries (about 250 000 of them). Two or more of these dictionaries contains the same data (not more than five or six of them per item) e.g. [{'a':1,'b':'2','c':3} , {'d':

Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread W. eWatson
It appears if one moves between IDLE and pythonWin (pyWin) that two separate loops (threads?) can occur, and that IDLE can produce incorrect results. Since I have preferred IDLE over pyWin, that leaves me currently in a quandry. How do I renew these processes, so that I can proceed with IDLE?

Re: Library similar to UserAgent (perl)

2009-02-12 Thread Diez B. Roggisch
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, that also provide th browser functionality to let the site believe that

xacml api info request

2009-02-12 Thread Oguz Yarimtepe
I am looking for how can i use XACML with Python. Anybody who had used xacml with python or and idea? Thanx. -- Oğuz Yarımtepe www.loopbacking.info -- http://mail.python.org/mailman/listinfo/python-list

Re: cannot install

2009-02-12 Thread Benjamin Kaplan
On Thu, Feb 12, 2009 at 3:41 AM, Vladimír Župka vzu...@volny.cz wrote: Here is config.log: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by python configure 3.0, which was generated by GNU

[ANN] TracShell 0.1 released

2009-02-12 Thread J Kenneth King
I tend to work a lot with Trac for project management and have always found the browser interface to be a productivity killer. I always wanted a simple command-line interface to Trac, but having never found one I found a little free time and got off my laurels to make one. TracShell 0.1 is an

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Diez B. Roggisch
W. eWatson wrote: It appears if one moves between IDLE and pythonWin (pyWin) that two separate loops (threads?) can occur, and that IDLE can produce incorrect results. Since I have preferred IDLE over pyWin, that leaves me currently in a quandry. How do I renew these processes, so that I can

An executable operational semantics for Python

2009-02-12 Thread gideon
Hi everybody, I've recently finished my Master's thesis on the semantics of Python. In my thesis I define the semantics of Python by rewriting an abstract machine. The sources that are used to produce my thesis can also be compiled into a working interpreter. Hence I call it an 'executable'

Re: TracShell 0.1 released

2009-02-12 Thread Krzysztof Retel
On 12 Feb, 14:06, J Kenneth King ja...@agentultra.com wrote: I tend to work a lot with Trac for project management and have always found the browser interface to be a productivity killer. I always wanted a simple command-line interface to Trac, but having never found one I found a little free

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread W. eWatson
Diez B. Roggisch wrote: W. eWatson wrote: It appears if one moves between IDLE and pythonWin (pyWin) that two separate loops (threads?) can occur, and that IDLE can produce incorrect results. Since I have preferred IDLE over pyWin, that leaves me currently in a quandry. How do I renew these

cx_Oracle-5.0 Problem

2009-02-12 Thread Brandon Taylor
Hello everyone, I'm Brandon Taylor, senior web developer with the University of Texas at Austin. We're using Python 2.6.1 and having a lot of difficulty getting the cx_Oracle-5.0 library to install on one of our MacBooks running OS X 10.5.6. We can get cx_Oracle to compile, but after running

Re: how can this iterator be optimized?

2009-02-12 Thread josh logan
On Feb 11, 8:22 pm, Basilisk96 basilis...@gmail.com wrote: Hello all, I have the following function that uses an intermediate iterator rawPairs: def MakePairs(path):     import os     import operator     join = os.path.join     rawPairs = (         (join(path, s), func(s))         for

Re: TracShell 0.1 released

2009-02-12 Thread J Kenneth King
Krzysztof Retel krzysztof.re...@googlemail.com writes: On 12 Feb, 14:06, J Kenneth King ja...@agentultra.com wrote: I tend to work a lot with Trac for project management and have always found the browser interface to be a productivity killer. I always wanted a simple command-line interface to

Re: Could you recommend job schedulling solution?

2009-02-12 Thread redbaron
I think parallel python will take of that for you (http://www.parallelpython.com/) I've found that RPyC (http://rpyc.wikidot.com/) is quite usefull for my task. It allows me to build RPC service which accepts ordinary python function from client and return result in synchronous or

some history of computing and celebrities [was lisp machine keyboards]

2009-02-12 Thread Xah Lee
On Feb 12, 7:28 am, Xah Lee xah...@gmail.com wrote: lisp machine keyboards. • Knite keyboard. I think this is one of the earlist.http://world.std.com/~jdostale/kbd/Knight.html • Symbolics earlier style keyboard (PN 364000), by Peter

Re: cx_Oracle-5.0 Problem

2009-02-12 Thread redbaron
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 idea about all missing symbols. The names of missed

Read Only attributes, auto properties and getters and setters

2009-02-12 Thread TechieInsights
Ok, so I noticed some of the modules (such as many of the datetime attributes) are read-only, which means the __setattr__ and __set__ methods are intercepted... pretty easy. I am looking for a way to automate this. The real goal is not to have read only attributes, but to have getters and

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Diez B. Roggisch
Done that. Been there. It doesn't work. If I take another py tkinter program and run it in IDLE, it *will work*. The current program goes boom. That's pure luck then. IDLE is written in Tkinter, and *running* Tkinter apps inside of it is bound to fail sooner or later. Failure might be as

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

2009-02-12 Thread TechieInsights
Oh... one other thing that would be really cool is to do this with AOP/ descriptors! I just haven't been able to get that to work either. Basics... @readonly class MyClass(object): def __init__(self, x): self.set_x(x) def get_x(self): return

Embarrasing questio

2009-02-12 Thread Catherine Heathcote
But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Embarrasing questio

2009-02-12 Thread TechieInsights
On Feb 12, 9:03 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) Thanks. if i % 3 == 0 or i % 5 == 0 --

Re: Embarrasing questio

2009-02-12 Thread TechieInsights
On Feb 12, 9:03 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) Thanks. in 2.5 and above you can do if any(i%3 == 0, i%5 ==

Re: Breaking Python list into set-length list of lists

2009-02-12 Thread MRAB
Mensanator wrote: On Feb 11, 10:58�pm, Jason elgrandchig...@gmail.com wrote: Hey everyone-- I'm pretty new to Python, I need to do something that's incredibly simple, but combing my Python Cookbook googling hasn't helped me out too much yet, and my brain is very, very tired flaccid @ the

Re: Embarrasing questio

2009-02-12 Thread Aahz
In article zkxkl.34048$sp5.7...@text.news.virginmedia.com, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) if i % 3 == 0 or i % 5

Re: Embarrasing questio

2009-02-12 Thread Catherine Heathcote
TechieInsights wrote: On Feb 12, 9:03 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) Thanks. if i % 3 == 0 or i % 5 == 0

Re: An executable operational semantics for Python

2009-02-12 Thread bearophileHUGS
gideon: I've recently finished my Master's thesis on the semantics of Python. In my thesis I define the semantics of Python by rewriting an abstract machine. The sources that are used to produce my thesis can also be compiled into a working interpreter. Hence I call it an 'executable'

Re: Another optimization request :-)

2009-02-12 Thread bearophileHUGS
On Feb 12, 2:48 am, jeffg jeffgem...@gmail.com wrote: If anyone wants to take this on... I would really really like to have the spring_layout modified to support multi-threading if at all possible. You can start creating a compiled Python extension using ShedSkin, it may be enough. Bye,

Re: Embarrasing questio

2009-02-12 Thread Michele Simionato
On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote: On Feb 12, 9:03 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 ==

Re: Embarrasing questio

2009-02-12 Thread km
Hi, you could do it this way also : if i in [3,5]: do something... KM ~ On Fri, Feb 13, 2009 at 1:19 AM, Michele Simionato michele.simion...@gmail.com wrote: On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote: On Feb 12, 9:03 am, Catherine Heathcote

Re: Embarrasing questio

2009-02-12 Thread Catherine Heathcote
Aahz wrote: In article zkxkl.34048$sp5.7...@text.news.virginmedia.com, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i % 3 == 0 || i % 5 == 0) if i % 3

Re: Embarrasing questio

2009-02-12 Thread Tim Rowe
2009/2/12 km srikrishnamo...@gmail.com: Hi, you could do it this way also : if i in [3,5]: do something... True, you could do it, but it would be wrong. The original is true for i = 6, 9, 10, 12 and so on, but yours doesn't seem to be... -- Tim Rowe --

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

2009-02-12 Thread josh logan
On Feb 12, 10:58 am, TechieInsights gdoerm...@gmail.com wrote: Oh... one other thing that would be really cool is to do this with AOP/ descriptors!  I just haven't been able to get that to work either. Basics... @readonly class MyClass(object):         def __init__(self, x):                

Re: Embarrasing questio

2009-02-12 Thread TechieInsights
On Feb 12, 9:19 am, Michele Simionato michele.simion...@gmail.com wrote: On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote: On Feb 12, 9:03 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying

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

2009-02-12 Thread TechieInsights
On Feb 12, 9:27 am, josh logan dear.jay.lo...@gmail.com wrote: On Feb 12, 10:58 am, TechieInsights gdoerm...@gmail.com wrote: Oh... one other thing that would be really cool is to do this with AOP/ descriptors!  I just haven't been able to get that to work either. Basics... @readonly

Re: Match items in large list

2009-02-12 Thread MRAB
Fisherking wrote: Hi, I hope you can help me with this optimizing problem! I have a large list of dictionaries (about 250 000 of them). Two or more of these dictionaries contains the same data (not more than five or six of them per item) e.g. [{'a':1,'b':'2','c':3} , {'d':

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Mike Driscoll
On Feb 12, 8:57 am, W. eWatson notval...@sbcglobal.net wrote: Diez B. Roggisch wrote: W. eWatson wrote: It appears if one moves between IDLE and pythonWin (pyWin) that two separate loops (threads?) can occur, and that IDLE can produce incorrect results. Since I have preferred IDLE over

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread W. eWatson
I simply ask, How do I get around the problem? -- W. eWatson (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7 N, 121° 2' 32 W, 2700 feet Web Page: www.speckledwithstars.net/ --

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread W. eWatson
As with Diez, I simply ask, How do I get around the problem? Are you two telling me that it is impossible? OK, here's my offer to both of you. Do you have IDLE for Python 2.5 and have good familiarity with Tkinter? If so, I'll send you the code and you can try it yourself. My guess is that

Re: openOffic, windows, and Python 2.5

2009-02-12 Thread John Fabiani
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 include the Python

Spam

2009-02-12 Thread Kottiyath
Hi, There seems to be lot of spam coming in this newsgroup. Is it possible to have some mechanism similar to say - slashdot - wherein mails can be moderated by any of the usual users? This is required only for people who is posting for the first time (or people who has been rated spam

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread W. eWatson
W. eWatson wrote: As with Diez, I simply ask, How do I get around the problem? Are you two telling me that it is impossible? OK, here's my offer to both of you. Do you have IDLE for Python 2.5 and have good familiarity with Tkinter? If so, I'll send you the code and you can try it yourself.

Re: Spam

2009-02-12 Thread Stephen Hansen
There seems to be lot of spam coming in this newsgroup. Is it possible to have some mechanism similar to say - slashdot - wherein mails can be moderated by any of the usual users? This is required only for people who is posting for the first time (or people who has been rated spam

Re: Spam

2009-02-12 Thread Stephen Hansen
C.P.L C.L.P even. Ahem. --S -- http://mail.python.org/mailman/listinfo/python-list

Re: Embarrasing questio

2009-02-12 Thread MRAB
Michele Simionato wrote: On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote: On Feb 12, 9:03 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||? Just trying to do something simple, the python equivilent of: if(i

Re: Spam

2009-02-12 Thread Tim Chase
If you subscribe to C.P.L as a mailing list instead of a newsgroup, I believe most of the spam gets filtered out at the mailing list-news group gateway by the Python.org spam filters... At least no spam in my Gmail spam folder appears to be flagged from this group(at a very brief glance) so they

Re: Avoiding argument checking in recursive calls

2009-02-12 Thread Terry Reedy
Steven D'Aprano wrote: On Wed, 11 Feb 2009 04:31:10 -0500, Terry Reedy wrote: Steven D'Aprano ste...@remove.this.cybersource.com.au writes: def fact(n): if n 0: raise ValueError if n = 0: return 1 return fact(n-1)*n At the risk of premature optimization, I wonder if there is an

Re: zlib interface semi-broken

2009-02-12 Thread Travis
So I've submitted a patch to bugs.python.org to add a new member called is_finished to the zlib decompression object. Issue 5210, file 13056, msg 81780 -- Crypto ergo sum. http://www.subspacefield.org/~travis/ Do unto other faiths as you would have them do unto yours. If you are a spammer,

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

2009-02-12 Thread TechieInsights
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): processed = [] getter =

Re: Spam

2009-02-12 Thread TechieInsights
On Feb 12, 10:23 am, Tim Chase python.l...@tim.thechases.com wrote: If you subscribe to C.P.L as a mailing list instead of a newsgroup, I believe most of the spam gets filtered out at the mailing list-news group gateway by the Python.org spam filters... At least no spam in my Gmail spam

Re: Match items in large list

2009-02-12 Thread Terry Reedy
Fisherking wrote: Hi, I hope you can help me with this optimizing problem! I have a large list of dictionaries (about 250 000 of them). Two or more of these dictionaries contains the same data (not more than five or six of them per item) e.g. [{'a':1,'b':'2','c':3} , {'d':

how to distribute python extensions independently of python

2009-02-12 Thread Travis
So, Recently I made a fix to the zlib module that I need for use at work. I would like other employees to be able to use it without recompiling python. I assume I can just rename it and distribute it as a python extension. I was wondering how I can provide a way for other employees to build

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Diez B. Roggisch
W. eWatson wrote: As with Diez, I simply ask, How do I get around the problem? Are you two telling me that it is impossible? YES. That's what we and all the others who answered to you in the other thread are telling you, repeatedly. It is impossible. Really. No kidding. For sure. Jawoll, ganz

Re: Spam

2009-02-12 Thread andrew cooke
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 (I assume it carries

Re: Embarrasing questio

2009-02-12 Thread Michele Simionato
On Feb 12, 6:22 pm, MRAB goo...@mrabarnett.plus.com wrote: Michele Simionato wrote: On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote: On Feb 12, 9:03 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I just cant find it. How do I do an or, as in c/c++'s ||?

Re: how to distribute python extensions independently of python

2009-02-12 Thread andrew cooke
You might want to read https://www.dfwpython.org/repo/Presentations/2008-10-04-PyArkansas-PythonEggsIntro/eggs-introduction.pdf It covers a lot of ground; I used it to work out how to distribute a pure Python package, but I am sure it mentions compiled packages too. In my case I ended up using

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Scott David Daniels
W. eWatson wrote: As with Diez, I simply ask, How do I get around the problem? Are you two telling me that it is impossible? OK, here's my offer to both of you. Do you have IDLE for Python 2.5 and have good familiarity with Tkinter? If so, I'll send you the code and you can try it yourself.

something wrong with isinstance

2009-02-12 Thread maksym . kaban
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 want to serialize these objects to

Re: Untangling pythonWin and IDLE Processes on XP Pro

2009-02-12 Thread Terry Reedy
W. eWatson wrote: As with Diez, I simply ask, How do I get around the problem? Are you two telling me that it is impossible? Try this analogy. One television, two stubborn kids that want to watch different programs. One has the remote, the other the buttons on the TV. What happens? How

Re: Embarrasing questio

2009-02-12 Thread Hrvoje Niksic
Michele Simionato michele.simion...@gmail.com writes: On Feb 12, 6:22 pm, MRAB goo...@mrabarnett.plus.com wrote: Michele Simionato wrote: On Feb 12, 5:07 pm, TechieInsights gdoerm...@gmail.com wrote: On Feb 12, 9:03 am, Catherine Heathcote catherine.heathc...@gmail.com wrote: But I

Re: Spam

2009-02-12 Thread Grant Edwards
On 2009-02-12, andrew cooke and...@acooke.org 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

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

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)

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

2009-02-12 Thread josh logan
On Feb 12, 12:27 pm, TechieInsights gdoerm...@gmail.com 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,

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 its

Re: Spam

2009-02-12 Thread Aahz
In article mailman.9420.1234462487.3487.python-l...@python.org, andrew cooke and...@acooke.org 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,

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

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. ]::. --

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

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

__import__ Confusion

2009-02-12 Thread scott . bronson . nelson
Can someone explain to me what's going on here? __import__('some.package.module', {}, {}, []) module 'some' from 'some/__init__.py' __import__('some.package.module', {}, {}, ['']) module 'some.package.module' from 'some/package/module.py' (Note that '' is two single quotes) Thanks, Scott --

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 class

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

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

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

Re: __import__ Confusion

2009-02-12 Thread Benjamin Peterson
scott.bronson.nelson at gmail.com writes: Can someone explain to me what's going on here? __import__('some.package.module', {}, {}, []) module 'some' from 'some/__init__.py' __import__('some.package.module', {}, {}, ['']) module 'some.package.module' from 'some/package/module.py' As

Re: cx_Oracle-5.0 Problem

2009-02-12 Thread Brandon Taylor
On Feb 12, 9:31 am, redbaron ivanov.ma...@gmail.com 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

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

2009-02-12 Thread J Kenneth King
azrael jura.gro...@gmail.com 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.

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

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

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

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?

Re: Can't load smtplib

2009-02-12 Thread Jean-Paul Calderone
On Thu, 12 Feb 2009 11:40:57 -0800 (PST), S-boy sushibo...@gmail.com 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,

Re: something wrong with isinstance

2009-02-12 Thread maksym . kaban
On 12 фев, 21:49, redbaron ivanov.ma...@gmail.com 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: 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 class 'worldmap.GeoMap' worldmap.GeoMap object at 0x01DD17B0 Just looks well, isn't it? i have no idea what's wrong So then how do you know isinstance is evaluating to False?

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

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

  1   2   3   4   5   >