Re: python simply not scaleable enough for google?

2009-11-11 Thread Vincent Manis
On 2009-11-11, at 14:31, Alain Ketterlin wrote: > Terry Reedy writes: > >> I can imagine a day when code compiled from Python is routinely >> time-competitive with hand-written C. > > Have a look at > http://code.google.com/p/unladen-swallow/downloads/detail?name=Unladen_Swallow_PyCon.pdf&can=2&

Re: Python & Go

2009-11-11 Thread Vincent Manis
On 2009-11-11, at 21:27, Mensanator wrote: >> Go doesn't support inheritance, so C++ is pretty much out. C >> is a lot closer, but still not all that close. OK, if that's the case (I haven't read the Go documents), then Go is nothing like Python, no matter how many or few semicolons there are in

Re: python simply not scaleable enough for google?

2009-11-12 Thread Vincent Manis
When I was approximately 5, everybody knew that higher level languages were too slow for high-speed numeric computation (I actually didn't know that then, I was too busy watching Bill and Ben the Flowerpot Men), and therefore assembly languages were mandatory. Then IBM developed Fortran, and hig

Re: Does turtle graphics have the wrong associations?

2009-11-12 Thread Vincent Manis
On 2009-11-12, at 11:36, AK Eric wrote: > On Nov 12, 11:31 am, Terry Reedy wrote: >> Alf P. Steinbach wrote: >>> One reaction to >> http://preview.tinyurl.com/ProgrammingBookP3> has been that turtle >>> graphics may be off-putting to some readers because it is associated >>> with children's learni

Re: Does turtle graphics have the wrong associations?

2009-11-12 Thread Vincent Manis
On 2009-11-12, at 19:13, Peter Nilsson wrote: > My recollection is that many children struggled with Turtle > graphics because they had very little concept of trigonometry. > [Why would they? Many wouldn't learn for another 2-10 years.] > Adults tend to have even less concept since they almost neve

Re: python simply not scaleable enough for google?

2009-11-12 Thread Vincent Manis
On 2009-11-12, at 23:19, Steven D'Aprano wrote: > On Thu, 12 Nov 2009 22:20:11 -0800, Vincent Manis wrote: > > Vincent, could you please fix your mail client, or news client, so > that it follows the standard for mail and news (that is, it has a > hard-break after 68

Re: python simply not scaleable enough for google?

2009-11-13 Thread Vincent Manis
On 2009-11-13, at 12:46, Brian J Mingus wrote: > You're joking, right? Try purchasing a computer manufactured in this > millennium. Monitors are much wider than 72 characters nowadays, old timer. I have already agreed to make my postings VT100-friendly. Oh, wait, the VT-100, or at least some mode

Re: python simply not scaleable enough for google?

2009-11-13 Thread Vincent Manis
On 2009-11-13, at 15:32, Paul Rubin wrote: > This is Usenet so > please stick with Usenet practices. Er, this is NOT Usenet. 1. I haven't, to the best of my recollection, made a Usenet post in this millennium. 2. I haven't fired up a copy of rn or any other news reader in at least 2 deca

Re: python simply not scaleable enough for google?

2009-11-13 Thread Vincent Manis
On 2009-11-13, at 17:42, Robert Brown wrote, quoting me: > ... Python *the language* is specified in a way that > makes executing Python programs quickly very very difficult. That is untrue. I have mentioned before that optional declarations integrate well with dynamic languages. Apart from C

Re: python simply not scaleable enough for google?

2009-11-13 Thread Vincent Manis
On 2009-11-13, at 18:02, Robert Brown wrote: > Common Lisp and Scheme were designed by people who wanted to write complicated > systems on machines with a tiny fraction of the horsepower of current > workstations. They were carefully designed to be compiled efficiently, which > is not the case wi

Re: python simply not scaleable enough for google?

2009-11-13 Thread Vincent Manis
On 2009-11-13, at 19:53, Paul Rubin wrote: > "Robert P. J. Day" writes: >> http://groups.google.com/group/unladen-swallow/browse_thread/thread/4edbc406f544643e?pli=1 >> thoughts? > > I'd bet it's not just about multicore scaling and general efficiency, > but also the suitability of the language

Re: python simply not scaleable enough for google?

2009-11-13 Thread Vincent Manis
On 2009-11-13, at 22:51, Alf P. Steinbach wrote: > It's sort of hilarious. It really is, see below. > So no, it's not a language that is slow, it's of course only concrete > implementations that may have slowness flavoring. And no, not really, they > don't, because it's just particular aspects

Re: python simply not scaleable enough for google?

2009-11-14 Thread Vincent Manis
On 2009-11-13, at 23:20, Robert Brown wrote, quoting me: > On 2009-11-13, at 17:42, Robert Brown wrote, quoting me: > >>> ... Python *the language* is specified in a way that >>> makes executing Python programs quickly very very difficult. > >> That is untrue. I have mentioned before that opti

Re: python simply not scaleable enough for google?

2009-11-14 Thread Vincent Manis
On 2009-11-13, at 23:39, Robert Brown wrote, quoting me: > Common Lisp blends together features of previous Lisps, which were designed to > be executed efficiently. Operating systems were written in these variants. > Execution speed was important. The Common Lisp standardization committee > inclu

Re: python simply not scaleable enough for google?

2009-11-14 Thread Vincent Manis
On 2009-11-14, at 00:22, Alf P. Steinbach wrote, in response to my earlier post. > Anyways, it's a good example of focusing on irrelevant and meaningless > precision plus at the same time utilizing imprecision, higgedly-piggedly as > it suits one's argument. Mixing hard precise logic with imprec

Re: python simply not scaleable enough for google?

2009-11-14 Thread Vincent Manis
On 2009-11-14, at 01:11, Alf P. Steinbach wrote: >> OK, now we've reached a total breakdown in communication, Alf. You appear >> to take exception to distinguishing between a language and its >> implementation. > > Not at all. > > But that doesn't mean that making that distinction is always mean

A different take on finding primes

2009-11-14 Thread Vincent Davis
different depending on the time give, 2min or 2 hours. I assume a sieve solution would be best for larger times. When the numbers get really large checking to see if they are a prime gets costly. So what do you think? *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <h

Re: python simply not scaleable enough for google?

2009-11-14 Thread Vincent Manis
This whole thread has now proceeded to bore me senseless. I'm going to respond once with a restatement of what I originally said. Then I'm going to drop it, and never respond to the thread again. Much of what's below has been said by others as well; I'm taking no credit for it, just trying to pu

speed question, reading csv using takewhile() and dropwhile()

2010-02-19 Thread Vincent Davis
mbda trow: '[OUTLIERS]' not in trow, list(dropwhile(lambda drow: '[MASKS]' not in drow, read))) mask = [row for row in mask_rows if row][3:] outlier_rows = dropwhile(lambda drows: '[OUTLIERS]' not in drows, read) outlier = [row for row in out

Re: speed question, reading csv using takewhile() and dropwhile()

2010-02-19 Thread Vincent Davis
o open them as needed. I guess part of it is that they are about 5mb so I guess it might be disk speed in part. Thanks *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincentdavis> On Fri, Feb 19,

Re: speed question, reading csv using takewhile() and dropwhile()

2010-02-20 Thread Vincent Davis
Thanks for the help, this is considerably faster and easier to read (see below). I changed it to avoid the "break" and I think it makes it easy to understand. I am checking the conditions each time slows it but it is worth it to me at this time. Thanks again Vincent def read_data_fil

Not sure why this is filling my sys memory

2010-02-20 Thread Vincent Davis
getsizeof() returns 6424 bytes for the alldata . So I am not sure what is happening. Any ideas Thanks *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincentdavis> -- http://mail.python.org/mailman/listinfo/python-list

Re: Not sure why this is filling my sys memory

2010-02-20 Thread Vincent Davis
> Code is below, The files are about 5mb and 230,000 rows. When I have 43 > files of them and when I get to the 35th (reading it in) my system gets so > slow that it is nearly functionless. I am on a mac and activity monitor > shows that python is using 2.99GB of memory (of 4GB). (python 2.6 64bit)

Re: speed question, reading csv using takewhile() and dropwhile()

2010-02-20 Thread Vincent Davis
a separate question "Why is this filling my sys memory" or something like that is the subject. I might be that my 1yr old son has been trying to help for the last hour. It is very distracting. *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdav

Re: Not sure why this is filling my sys memory

2010-02-20 Thread Vincent Davis
he whole array "astype()" I think. What I don't get is that it show the size of the dict with all the data to have only 6424 bytes. What is using up all the memory? *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://

Re: Not sure why this is filling my sys memory

2010-02-20 Thread Vincent Davis
files of 43 using 6424 bytes of memory *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincentdavis> On Sat, Feb 20, 2010 at 7:40 PM, sstein...@gmail.com wrote: > > On Feb 20, 2010, at 9:21 PM, Vincent D

Re: Not sure why this is filling my sys memory

2010-02-21 Thread Vincent Davis
, I also had pympler suggested. http://stackoverflow.com/questions/2306523/reading-text-files-into-list-then-storing-in-dictionay-fills-system-memory-a Thanks again *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linke

PyScripter Logo

2010-03-29 Thread Vincent MAILLE
Hi, Where can I find a image of the snake PyScipter in high quality ? Thnaks, Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: How to keep effects of image filters going for some seconds?

2010-04-03 Thread Vincent Ren
On Mar 22, 6:00 am, Terry Reedy wrote: > On 3/21/2010 3:23 AM, Ren Wenshan wrote: > > > > > Hello, every pythoner. > > > Firstly, I want to mention that English is my second language, so > > maybe there are some sentences which makes you confused, sorry. > > > I have been learning Panda3D, an open

Download an attachment from an IMAP email

2011-02-03 Thread Vincent Davis
ERVER, IMAP_PORT) rc, resp = M.login('x@', 'X') print rc, resp M.select('[Gmail]/All Mail') M.search(None, 'FROM', 'some...@logitech.com') #M.fetch(121, '(body[header.fields (subject)])') M.fetch(121, '(RFC822)') -- Th

Re: Download an attachment from an IMAP email

2011-02-04 Thread Vincent Davis
hgc On Thu, Feb 3, 2011 at 6:52 PM, Kushal Kumaran < kushal.kumaran+pyt...@gmail.com > wrote: > On Fri, Feb 4, 2011 at 3:44 AM, Vincent Davis > wrote: > > I have a few emails I am trying to download from my google account. I > seem > > to be getting the message but

Setting a python application as the default app to open a file on a mac?

2010-04-25 Thread Vincent Davis
and got a solution using automator. http://superuser.com/questions/134594/set-default-open-with-app-to-a-python-program-on-a-mac I am asking the question on this list to see if there is another (better?) way. python32 is an terminal alias to the 32 bit python version on my machine. *Vincent Dav

Simple game like graphics

2010-04-27 Thread Vincent Davis
tutorial/documentation you would recommend. Thanks *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincentdavis> -- http://mail.python.org/mailman/listinfo/python-list

Bug Search Browser Plugin (Firefox)

2010-04-30 Thread Vincent Davis
The Bug Search Browser Plugin (Firefox) <http://python.org/dev/searchplugin> does not seem to install. http://www.python.org/dev/searchplugin/ *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincent

Re: jpeg package

2010-05-01 Thread Vincent Davis
This gets you the cached page link<http://webcache.googleusercontent.com/search?q=cache:Tjn4WG8auGIJ:www.emilas.com/jpeg/+http://www.emilas.com/jpeg/&cd=2&hl=en&ct=clnk&gl=us&client=firefox-a> I also fond some of the source pages in googles cache *Vincent

Encrypt password within source code.

2010-05-05 Thread Vincent Davis
ce code? I though about openID but don't really know anything about it. *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincentdavis> -- http://mail.python.org/mailman/listinfo/python-list

Re: Encrypt password within source code.

2010-05-05 Thread Vincent Davis
Thanks for the replies I though the answer was no. Vincent On Wed, May 5, 2010 at 7:48 PM, Tim Chase wrote: > On 05/05/2010 08:12 PM, Vincent Davis wrote: > >> I can't think of a way to do this, not sure it is possible but I feel as >> though I might not know what I don&

2to3 as a unittest

2010-05-06 Thread Vincent Davis
I have used 2to3 from the command line. is there a way to run it as a unittest. Actually I guess my question is; is there a built in utility for running py3 compatibility on source code as a unittest? *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.

is there a functional assert(x==y, 'error msg')

2010-05-07 Thread Vincent Davis
Is there a functional assert(x==y, 'error msg') ? I can only find the assert that is used like; assert x==y, 'error msg' *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincentdavi

Re: is there a functional assert(x==y, 'error msg')

2010-05-07 Thread Vincent Davis
On Fri, May 7, 2010 at 8:38 PM, James Mills wrote: > On Sat, May 8, 2010 at 12:04 PM, Vincent Davis > wrote: > >> Is there a functional assert(x==y, 'error msg') ? >> I can only find the assert that is used like; >> assert x==y, 'error msg'

Re: Need help with my 1st python program

2010-05-08 Thread Vincent Davis
alue from? >>> >> >> Pressure is a term for barometric pressure, and is understood by Conky, >> which this program is designed to work with, and is understood by >> weather.com. But the value it passes to conky is metric, and I want it to >> display in imperia

Re: Access to comp.lang.python

2010-05-16 Thread Vincent Davis
I have no problem with threads Using gmail in a browser. That said I like how google groups handles email. I am also ways having to fix the reply on this list to send back to the list and not to the list and the last author. If someone knows a way to fix that I would be happy to hear it. Vincent

Is this an ok thing to do in a class

2010-05-17 Thread Vincent Davis
;> afoo = foo('b') >>> afoo.x 2 >>> afoo.A 1 >>> afoo.letter['a'] 1 >>> afoo.letter.items() [('a', 1), ('c', 3), ('b', 2)] *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vince

Re: Is this an ok thing to do in a class

2010-05-18 Thread Vincent Davis
Thanks for the feed back Vincent On Tue, May 18, 2010 at 8:50 AM, Bruno Desthuilliers wrote: > Simon Brunning a écrit : > >> On 18 May 2010 06:21:32 UTC+1, Vincent Davis >> wrote: >> >>> Just wondering if there is a problem with mixing a dictionary into a >

how to cause a request for a missing class attribute cause its calculation

2010-05-18 Thread Vincent Davis
alled. Thanks *Vincent Davis 720-301-3003 * vinc...@vincentdavis.net my blog <http://vincentdavis.net> | LinkedIn<http://www.linkedin.com/in/vincentdavis> -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this an ok thing to do in a class

2010-05-18 Thread Vincent Davis
d . But that does make me thing of something I had not. >>> afoo.letter['a'] = 345 >>> afoo.A 1 Thats kinda a bummer, whats a good way to make sure affo.A gets updated? Vincent > > ~Ethan~ > > -- > http://mail.python.org/mailman/listinfo/python-l

Re: Is this an ok thing to do in a class

2010-05-18 Thread Vincent Davis
On Tue, May 18, 2010 at 3:15 PM, Ethan Furman wrote: > Vincent Davis wrote: > >> >> What you are pointing out is that the assignment is not reversed . But >> that does make me thing of something I had not. >> >> >>> afoo.letter['a'] = 345

Re: sound effects in python

2010-05-18 Thread Vincent Davis
There was a talk at pycon about this. Sounded interecting but I don't know much about it. http://us.pycon.org/2010/conference/schedule/event/136/ Vincent On Tue, May 18, 2010 at 4:05 PM, Astan Chee wrote: > Hi, > I have a sound file (e.g. .wav; .mp3, etc) in python that I'd

__str__ for each function in a class

2010-05-18 Thread Vincent Davis
def y(self): """I'm the 'x' property.""" self._y = self.new*-1 return self._y ... >>> print(class.x) x >>> print(class.y) - y - *Vincent Davis 720-301-3003 * vinc...@vinc

Re: Python Script for Website Mirroring

2010-05-19 Thread Vincent Davis
Probably need a little more info to help. Are you running both sites, are there database involved? If it is a simple site you could just transfer with ftp and have the script updated any urls. Vincent On Wed, May 19, 2010 at 8:21 AM, Kevin Rea wrote: > Hello Folks: > > Can y

Re: speed up a numpy code with huge array

2010-05-25 Thread Vincent Davis
It makes me think you are filling you available memory and using the disk as cache. If this happens things will get real slow. You might take a look at your system resources when this is running. I don't have much else to offer and could be completely wrong. Vincent On Tue, May 25, 2010 at

Question about permutations (itertools)

2010-05-31 Thread Vincent Davis
ations_with_replacement('01',3)) ('0', '0', '0') ('0', '0', '1') ('0', '1', '1') ('1', '1', '1') Is it possible to get combinations_with_replacement to return numbers rather than strings? (see above) Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about permutations (itertools)

2010-05-31 Thread Vincent Davis
On Mon, May 31, 2010 at 8:17 AM, Xavier Ho wrote: > >> >>> list(combinations_with_replacement('01',3)) >> ('0', '0', '0') >> ('0', '0', '1') >> ('0', '1', '1') >> ('1', '1', '1') >> >> Is it possible to get combinations_with_replacement to return numbers >> rather than strings? (see above) >

Challenging Job Opportunity for a C# Architect/ Developer

2010-06-01 Thread Suganthi Vincent
Hi My name is Suganthi Vincent and I’m with Metabyte, Inc. I have a challenging Job Opportunity for a C# Architect/ Developer, a 4 months contract to hire opportunity located in Wheeling, IL. Please find the job details. Title: C# Architect/ Developer Location: Wheeling, IL Rates: Market Rate

Re: Python Jobs

2010-06-09 Thread Vincent Davis
ge 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 been meaning to go to one of the meetups. Vincent > -- > http://mail.python.org/mailman/listinfo/python-list > > -- http://mail.python.org/mailman/listinfo/python-list

lambda question

2010-06-11 Thread Vincent Davis
d = dict(s=set) In [32]: d['s'](x) Out[32]: set([1, 2, 3, 4, 5]) but not sure how to add the len() and thought maybe the answer in a lambda function. I know I could def a function but would prefer to keep it all on one line. Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: lambda question

2010-06-12 Thread Vincent Davis
On Fri, Jun 11, 2010 at 10:11 PM, Ian Kelly wrote: > On Fri, Jun 11, 2010 at 9:31 PM, Vincent Davis > wrote: >> Starting with an example. >> In [23]: x = [1,2,3,4,4,4,5,5,3,2,2,] >> In [24]: y = set(x) >> In [25]: y >> Out[25]: set([1, 2, 3, 4, 5]) >>

getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Vincent Davis
this? Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Vincent Davis
ke sure I am clear. This is only an issue within the interactive python for the python dist I have built from source not other pythons or terminal in general. I look into the commands you suggested more but ESC-k and ESC-j don't sound very appealing to me. Thanks Vincent > > -Gerry >

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Vincent Davis
On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong wrote: > On 14-6-2010 1:19, Vincent Davis wrote: >> >> I just installed 2.6 and 3.1 from current maintenance source on Mac >> OSx. When I am running as an interactive terminal session the up arrow >> does not scroll th

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-14 Thread Vincent Davis
On Mon, Jun 14, 2010 at 6:49 AM, Thomas Jollans wrote: > On 06/14/2010 02:37 PM, Vincent Davis wrote: >> On Sun, Jun 13, 2010 at 6:24 PM, Irmen de Jong >> wrote: >>> On 14-6-2010 1:19, Vincent Davis wrote: >>>> >>>> I just installed 2.6 and 3.1

Installing or adding python dev installed python.

2010-06-19 Thread Vincent Davis
there a good place for me to better understand what python-dev is and how to get it installed on osx? Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

Python script to install python

2010-07-08 Thread Vincent Davis
. Any pointers? Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script to install python

2010-07-08 Thread Vincent Davis
his as root > make install > # you probably don't want to be root anymore > cd .. > rm -rf whatever > > ######## Ok I'll take your advice and just use a shell script. I am on osx by the way. Thanks Vincent > > If you are on windows I assume a

calculating a self.value, self.randomnum = normalvariate(x, y)

2009-06-19 Thread Vincent Davis
I can thing of to do this is is with a while statement and that seems more complicated than necessary. I would really like to keep it on one line. How would I do that? Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo/python-list

Re: calculating a self.value, self.randomnum = normalvariate(x, y)

2009-06-20 Thread Vincent Davis
ution again (this is what I was thinking) I think this is still what I want but I should look up the implications of each. The problem I have with the clamp is that the tails in the sample could be large. Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: calculating a self.value, self.randomnum = normalvariate(x, y)

2009-06-20 Thread Vincent Davis
it would be a truncated skewed normal. i.e. scores range from 0-100, mean is 80. For my I realize this is venturing more into statistics. Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Re: calculating a self.value, self.randomnum = normalvariate(x, y)

2009-06-20 Thread Vincent Davis
is the way to go. Trying to combine learning python and simulating the medical residency application process has been interesting. Here is a graph of past test results, I relize they are not on a 0 - 100 score but they is easy to address [image: step1_score_distribution_custom.GIF] Thanks Vincent

python needs a tutorial for install and setup on a Mac

2009-06-21 Thread Vincent Davis
ow to look. Thanks Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: python needs a tutorial for install and setup on a Mac

2009-06-22 Thread Vincent Davis
load/mac/ and the pages linked from it? Yes I have as I am sure tkp...@hotmail.com and did not find it usefull, or I should say only a little. So I still have no answer, There seems to be a need but, no one has said "post it hear" or volunteered to help. Am I going about thi

Infinite loops and synchronization

2009-07-12 Thread Vincent Gulinao
lst = list() (lst populated by async twisted deferred callbacks) while True: if len(lst) == SOME_NUMBER: return lst Q1: is this a common OK practice? I'm worried infinite loops hogs memory. Q2: operating on list from threads (mostly appends) must be safe, right (synchroni

Print value CLOB via cx_Oracle

2009-07-28 Thread Vincent Vega
x_Oracle.CLOB) cursor.callfunc(fun_name, cx_Oracle.CLOB, y) When I print variable 'y' I receive: > How can I get value variable 'y'??? How read ??? Vincent Vega Note: Off course y.read() does not work, cause 'y'is CLOB not LOB. (see datatypes table in site: http://

Re: Print value CLOB via cx_Oracle

2009-07-29 Thread Vincent Vega
On 28 Lip, 20:02, Vincent Vega wrote: > Hi, > > I call function in Oracle database use cx_Oracle. > In standard I define: > > db       = cx_Oracle.connect(username, password, tnsentry) > cursor  = db.cursor() > > I create variable 'y' (result function 

Re: bzr 2.2.1 released !

2010-09-29 Thread Vincent Ladeuil
>>>>> Sridhar Ratnakumar writes: > Hi, > It seems that you forgot to update PyPI - which lists 2.1.0rc1 as the latest version. > -srid This should be fixed now. Let us know if you encounter problems. Vincent -- http://mail.python.org/mailman/listinfo/python-list

get python bit version as in (32 or 64)

2010-10-19 Thread Vincent Davis
How do I get the bit version of the installed python. In my case, osx python2.7 binary installed. I know it runs 64 bt as I can see it in activity monitor. but how do I ask python? sys.version '2.7 (r27:82508, Jul 3 2010, 21:12:11) \n[GCC 4.0.1 (Apple Inc. build 5493)]' -- Thanks Vin

Re: get python bit version as in (32 or 64)

2010-10-19 Thread Vincent Davis
On Tue, Oct 19, 2010 at 3:29 PM, Philip Semanchuk wrote: > > On Oct 19, 2010, at 5:18 PM, Vincent Davis wrote: > >> How do I get the bit version of the installed python. In my case, osx >> python2.7 binary installed. I know it runs 64 bt as I can see it in >> activit

Re: get python bit version as in (32 or 64)

2010-10-19 Thread Vincent Davis
On Tue, Oct 19, 2010 at 3:55 PM, Philip Semanchuk wrote: > > On Oct 19, 2010, at 5:38 PM, Hexamorph wrote: > >> On 19.10.2010 23:18, Vincent Davis wrote: >>> How do I get the bit version of the installed python. In my case, osx >>> python2.7 binary installed. I k

dist-packages or site-packages in Python 3.2 ?

2013-05-07 Thread Vincent Vande Vyvre
27;/usr/lib/python3.2/site_packages') and, also, created a file __init__.py in /site-packages but that's not solved the problem. Thanks for your advices. -- Vincent V.V. Oqapy <https://launchpad.net/oqapy> . Qarte <https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager> -- http://mail.python.org/mailman/listinfo/python-list

Fwd: Re: python script is not running

2013-05-18 Thread Vincent Vande Vyvre
Message original Sujet: Re: python script is not running Date : Sat, 18 May 2013 12:36:55 +0200 De :Vincent Vande Vyvre Pour : Avnesh Shakya Le 18/05/2013 12:12, Avnesh Shakya a écrit : hi, i want to run python script which generating data into json fromat

Re: python script is not running

2013-05-18 Thread Vincent Vande Vyvre
nterpreter. It just needs to be done with a full path. ChrisA Not necessary, I use crontab without problem with this line: 25 16 18 5 * export DISPLAY=:0 & LC_CTYPE="fr_FR.utf-8" Lang="fr_FR.utf-8" python /usr/bin/qarte -a 1 ... on Ubuntu. -- Vincent V.V. Oqapy <

Strange behaviour with os.linesep

2013-07-23 Thread Vincent Vande Vyvre
outf.write(s.replace('\n', L_SEP)) write() -- The syntax `s.replace('\n', L_SEP)`is required for portability. Regards - Vincent V.V -- http://mail.python.org/mailman/listinfo/python-list

Re: Strange behaviour with os.linesep

2013-07-23 Thread Vincent Vande Vyvre
Le 23/07/2013 14:39, Jason Swails a écrit : On Tue, Jul 23, 2013 at 7:42 AM, Vincent Vande Vyvre mailto:vincent.vandevy...@swing.be>> wrote: On Windows a script where de endline are the system line sep, the files are open with a double line in Eric4, Notepad++ or Gedit but

Re: Strange behaviour with os.linesep

2013-07-23 Thread Vincent Vande Vyvre
Le 23/07/2013 15:10, Vincent Vande Vyvre a écrit : The '\n' are in the original file. I've tested these other versions: --- def write(): strings = ['# -*- coding: utf-8 -*-\n', 'import os\n',

Re: Strange behaviour with os.linesep

2013-07-24 Thread Vincent Vande Vyvre
Le 23/07/2013 17:25, Steven D'Aprano a écrit : On Tue, 23 Jul 2013 13:42:13 +0200, Vincent Vande Vyvre wrote: On Windows a script where de endline are the system line sep, the files are open with a double line in Eric4, Notepad++ or Gedit but they are correctly displayed in the MS Bloc-

Re: Python script help

2013-07-30 Thread Vincent Vande Vyvre
Le 30/07/2013 18:10, cool1...@gmail.com a écrit : What if I want to use only Python? is that possible? using lib and lib2? Have a look here: http://bazaar.launchpad.net/~vincent-vandevyvre/qarte/trunk/view/head:/parsers.py This script get a web page and parse it to find downloadable objects

Re: [newbie] Python and Qt4 Designer

2012-07-11 Thread Vincent Vande Vyvre
> > if __name__ == "__main__": > import sys > app = QtGui.QApplication(sys.argv) > Form = QtGui.QWidget() > ui = Ui_Form() > ui.setupUi(Form) > Form.show() > sys.exit(app.exec_()) > > > thanks in advance > jean Connect

Re: Python and Qt4 Designer

2012-07-12 Thread Vincent Vande Vyvre
On 12/07/12 08:42, Jean Dubois wrote: > On 12 jul, 02:59, Vincent Vande Vyvre > wrote: >> On 11/07/12 17:37, Jean Dubois wrote: >> >> >> >> >> >> >> >>> I'm trying to combine python-code made with QT4 designer with plain >&g

Re: Python and Qt4 Designer

2012-07-15 Thread Vincent Vande Vyvre
the quit menu item is pressed). > > Probably a complete working example is what you need to see, that is > documented. I primarily work with Gtk, but I'll whip up a Qt one > tomorrow if I can. Rusi is not the op, and his question is about these lines app = None if ( not app

Re: QVariant.toPyObject()

2012-07-20 Thread Vincent Vande Vyvre
. > > Of course QString is a python object but then QVariant is too. > > I think you post on the bad mailing list. -- Vincent V.V. Oqapy <https://launchpad.net/oqapy> . Qarte <https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager> -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamically scheduling Cron Jobs for Python Scripts.

2012-09-06 Thread Vincent Vande Vyvre
meeting. > I want to re run the script at that schedule time to send me a email. > How can I do that? > > Plz Help Have a look at python-crontab http://pypi.python.org/pypi?name=python-crontab&:action=display -- Vincent V.V. Oqapy <https://launchpad.net/oqapy> . Qarte

Re: pyQT performance?

2012-09-10 Thread Vincent Vande Vyvre
ntially in the imaging domain (viewing, transformation) and I've never seen a difference of processing speed with the same applications written in C++. Qt + Python, a very good association. -- Vincent V.V. Oqapy <https://launchpad.net/oqapy> . Qarte <https://launchpad.net/qarte> .

How to export a logging level?

2012-09-25 Thread Vincent Vande Vyvre
object): def __init__(self, main, lvl): logger.setLevel(lvl) If I set the level to logging.DEBUG I can see all infos from the main but anything from my module. Thanks for your advice. -- Vincent V.V. Oqapy <https://launchpad.net/oqapy> . Qarte <https://launchpad.net/qarte

Re: How to export a logging level?

2012-09-25 Thread Vincent Vande Vyvre
Le 25/09/12 19:01, Peter Otten a écrit : > Vincent Vande Vyvre wrote: > >> In my application I import a module and I want to set the same logging >> level as the main app to this module. > Isn't that the default? If you set the logging level with basicConfig() that &g

Re: How to export a logging level?

2012-09-25 Thread Vincent Vande Vyvre
_name__) >> >> class MyClass(object): >> def __init__(self, main, lvl): >> logger.setLevel(lvl) >> >> If I set the level to logging.DEBUG I can see all infos from the main >> but anything >> from my module. >> >> Thanks for your

Re: PYTHON - Using Mosaic Qt Developer Suite with Qt Designer

2012-11-03 Thread Vincent Vande Vyvre
that when I open Qt Designer > the graphing widgets are not there to use. > > I was hoping to get some tips or advice on why this is not working. > > > Thanks in Advance, > > Zerina What plugin?, his name, eventually the link where you've downloaded it. And what graphin

Re: Writing Donald E. Knuth based code in Python, cont'd

2012-11-12 Thread Vincent Vande Vyvre
s text self.app = self.listofPerm.append(self.a[1:self.n+1]) return self.E2 # next state: E2 append() return None and self.app is no longer used in the code. Missing something ? -- Vincent V.V. Oqapy <https://launchpad.net/oqapy> . Qarte <https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager> -- http://mail.python.org/mailman/listinfo/python-list

Re: UI error for pycharm

2012-11-24 Thread Vincent Vande Vyvre
pplication(sys.argv) form = Form() form.show() app.exec_() > > > I had this error , how to fix them ? > > Code: > C:\Python27\python.exe "C:/Users/denial/PycharmProjects/currency > project/alarm.py" > Traceback (most recent call last): > File "C:/Users

Re: modify image and save with exif data

2012-12-16 Thread Vincent Vande Vyvre
= pyexiv2.ImageMetadata(img.jpg) self.data.read() tag = "Exif.Image.ImageWidth" try: self.data[tag].value = sizes[0] except: self.data[tag] = pyexiv2.ExifTag(tag, sizes[0]) ------- A more complete example: ht

Re: problem with exam task for college

2013-01-07 Thread Vincent Vande Vyvre
0, 0.05) self.gas = vector(sin(self.angle), cos(self.angle)) elif key == "up": self.deviate() def deviate(self): # Set modified velocity self.frame.velocity += self.gas self.frame.pos += self.frame.velocity #

Re: please i need explanation

2013-01-11 Thread Vincent Vande Vyvre
f *= n n -= 1 return f Try it. -- Vincent V.V. Oqapy <https://launchpad.net/oqapy> . Qarte <https://launchpad.net/qarte> . PaQager <https://launchpad.net/paqager> -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   >