Re: Issue with wxPython GUI

2007-11-12 Thread Laszlo Nagy
> > *New Problem: *I am opening and executing a script from the GUI. The > script has a many log messages, > which it posts on some shared memory. The GUI reads the messages from > the shared memory, > in the Idle loop. But the script is huge and so the logging is not > run-time. > Rather this

Issue with wxPython GUI

2007-11-12 Thread tarun
Hi All, I've a probelm and solution for it to build the preface. Below it is the new problem I'm facing. Can someone help me out? *Problem:* I've have created a GUI (using wxPython widgets) where in I've a message log window (A TextCtrl window). I've a router.dll that helps me putting in message

Concept of God in Islam

2007-11-12 Thread abdo911
WAMY Series: On Islam No.9.Introduction God's Attributes The Oneness of God The Believer's Attitude Introduction It is a known fact that every language has one or more terms that are used in reference to God and sometimes to lesser deities. This is not the case with Allah. Allah is the personal na

Re: Arrays

2007-11-12 Thread John Machin
Bernard wrote: > On 12 nov, 20:19, "Gordon C" <[EMAIL PROTECTED]> wrote: > > Absolute newbie here. In spite of the Python Software Foundation tutorial's > > (http://www.python.org/doc/current/tut/tut.html) use of the array > > declaration > > array(type[,initializer]), the Python interpreter doe

2007.comp.lang.python

2007-11-12 Thread ashik
comp.lang.python.com http://www.freewebs.com/thuiss/ http://indianfriendfinder.com/go/g906725-pmem -- http://mail.python.org/mailman/listinfo/python-list

Can we get rid of unrelated non-python posts?

2007-11-12 Thread Bruce
I joined this to read about python. Please don't respond and move to another list. Thanks! -Bruce -- http://mail.python.org/mailman/listinfo/python-list

pyopenglcontext binaries for 2.5 on win32

2007-11-12 Thread gz
no, I don't have them... I need them :) I'd like to thank Giovanni Bajo for providing binaries for the various package dependencies, and geting me going with pyopengl. Unfortunately I only menaged to run a basic example, where there's no animation. The glwindow only get's redrawn when it's resize

PyCon 2008 Call for proposals

2007-11-12 Thread Dougn
Proposals for PyCon 2008 talks & tutorials are now being accepted. The deadline for proposals is November 16. http://pycon.blogspot.com/2007/10/call-for-talk-tutorial-proposals.html PyCon 2008 will be held in Chicago, Illinois, USA, from March 13-20. Tutorial Day: Half-Day Tutorials Do you enjoy

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-12 Thread Tonico
On Nov 11, 12:10 am, [EMAIL PROTECTED] wrote: .. As long as you're not a biased, full-of-hatred, antisemite bigot... Regards Tonio -- http://mail.python.org/mailman/listinfo/python-list

hopping in a list

2007-11-12 Thread Beema shafreen
hi everybody, I have a created list, my code: res_value = [] fh = open('test','r') for line in fh.readlines(): data = line.strip().split('\t') current_span = data[3].strip() probe = data[2].strip() length = data[4].strip() res_value.append(cu

Re: Define key in nlargest() of heapq?

2007-11-12 Thread Davy
Hi Raymond, Your code work well, thank you :) Best regards, Davy On Nov 13, 11:33 am, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > On Nov 12, 6:56 pm, Davy <[EMAIL PROTECTED]> wrote: > > > I have a dictionary with n elements, and I want to get the m(m<=n) > > keys with the largest values. > >

Re: Binary search tree

2007-11-12 Thread Terry Reedy
"Scott SA" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On 11/12/07, Scott SA ([EMAIL PROTECTED]) wrote: | I decided to test the speeds of the four methods: | |set_example |s = set() |for url in urls: |if not url in s: |s.add(url)

Re: 911 was a hoax!

2007-11-12 Thread Shane Geiger
ChairmanOfTheBored, Since a friend of mine found in his WTC dust little iron-rich spheres because I asked him to look for them, I have verification for myself what RJ Lee Group already stated in their report: These iron-rich spheres are characteristic of the WTC dust. This is evidence of tempera

Re: Override method name and original method access

2007-11-12 Thread Donn Ingle
> You need to be a new-style class (that is, you must inherit from > object) for super() to work. Problem is that my classes inherit already, from others I wrote. So, should I explicitly put (object) into the ones at the top? > Other than that, you are using it > correctly here. Well, even with

Re: persisting data within a module

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 12, 5:30 pm, "Peter J. Bismuti" <[EMAIL PROTECTED]> wrote: > I'm having trouble understanding how namespaces work in modules. I want to > execute a module within the interpreter and then have values that are > calculated persist so that other modules that get executed can retrieve them. >

templatetaizing exceptions

2007-11-12 Thread alf
Hi, I have a few places in the code where I use: try: code_block except A: exception_handling the code block is different each time while exception_handling the same. What would be the best technique to abstract that out? -- A. -- http://mail

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-12 Thread zionist . news
On Nov 12, 5:39 pm, ChairmanOfTheBored <[EMAIL PROTECTED]> wrote: > On Mon, 12 Nov 2007 22:07:39 -, [EMAIL PROTECTED] wrote: > >On Nov 12, 11:29 am, "radiosrfun" <[EMAIL PROTECTED]> wrote: > > >> It was MUSLIMS who killed close to 3000 people of all races/religions. > > >Where is your proof ???

Re: Define key in nlargest() of heapq?

2007-11-12 Thread Raymond Hettinger
On Nov 12, 6:56 pm, Davy <[EMAIL PROTECTED]> wrote: > I have a dictionary with n elements, and I want to get the m(m<=n) > keys with the largest values. > > For example, I have dic that includes n=4 elements, I want m=2 keys > have the largest values) > dic = {0:4,3:1,5:2,7:8} > So, the the largest

Define key in nlargest() of heapq?

2007-11-12 Thread Davy
Hi all, I have a dictionary with n elements, and I want to get the m(m<=n) keys with the largest values. For example, I have dic that includes n=4 elements, I want m=2 keys have the largest values) dic = {0:4,3:1,5:2,7:8} So, the the largest values are [8,4], so the keys are [7,0]. How to do thi

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-12 Thread Danyelle Gragsone
Please 2 stop feeding the trolls.. -- http://mail.python.org/mailman/listinfo/python-list

Multithreaded Python Mysql MAC Problems

2007-11-12 Thread Raja Pradeep Rokkam
Hi All, I wrote a multithreaded crawler program in Python 2.4 using Mysql 5.045 and MySqldb version as MySql-Python 1.2.2 on MAC OS 10.4.10 . The program strangely segfaults while it is running perfectly in Ubuntu and Windows as well. The gdb stack trace of program is below: LuLu:~/tempd

Multithreaded Python Mysql MAC Problems

2007-11-12 Thread Raja
Hi All, I wrote a multithreaded crawler program in Python 2.4 using Mysql 5.045 and MySqldb version as MySql-Python 1.2.2 on MAC OS 10.4.10 . The program strangely segfaults while it is running perfectly in Ubuntu and Windows as well. The gdb stack trace of program is below: LuLu:~/tempd

Re: Arrays

2007-11-12 Thread Bernard
On 12 nov, 20:19, "Gordon C" <[EMAIL PROTECTED]> wrote: > Absolute newbie here. In spite of the Python Software Foundation tutorial's > (http://www.python.org/doc/current/tut/tut.html) use of the array > declaration > array(type[,initializer]), the Python interpreter does NOT accept the word > ar

Re: How to get a set of keys with largest values?

2007-11-12 Thread Davy
On Nov 12, 8:54 pm, Jeff <[EMAIL PROTECTED]> wrote: > Why are you doing that with key-value pairs? Why not with the array > module or lists? Hi, The original question is a bit complex. I have to implement a sparse matrix which use a dict of dict implementation. For example, sp_mat = {1:{2:1,3:4}

Arrays

2007-11-12 Thread Gordon C
Absolute newbie here. In spite of the Python Software Foundation tutorial's ( http://www.python.org/doc/current/tut/tut.html ) use of the array declaration array(type[,initializer]), the Python interpreter does NOT accept the word array! It , presumably, needs to have an import included. Coul

Re: Distributed RVS, Darcs, tech love

2007-11-12 Thread Peter J. Bismuti
Be nice. > Boy, you really have to get a clue. -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributed RVS, Darcs, tech love

2007-11-12 Thread Marc Espie
In article <[EMAIL PROTECTED]>, llothar <[EMAIL PROTECTED]> wrote: >On 21 Okt., 22:45, Lew <[EMAIL PROTECTED]> wrote: > >> Evidence is that TeX development is dead. > >Exactly and Knuths only contribution to software development was the >theory of >"literate" programming. As i said for me algorith

persisting data within a module

2007-11-12 Thread Peter J. Bismuti
I'm having trouble understanding how namespaces work in modules. I want to execute a module within the interpreter and then have values that are calculated persist so that other modules that get executed can retrieve them. For example, consider the two simple modules below. The first method f

Re: preparing data for visualization

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 12, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I would like to have my data in a format so that I can create a > > contour plot. > > > My data is in a file with a format, where there may be multiple fields > > > field = 1 > > > 1a 0 > > 2a 0 > >

Re: Populating a dictionary, fast

2007-11-12 Thread MrJean1
On MacOS** your version #!/usr/bin/python v = {} for line in open('keys.txt'): v[long(line.strip())] = True using these keys takes 24.9 secs with ActivePython 2.5.1 and 212.3 secs with Apple's Python 2.3.5. However, this version #!/usr/bin/py

Re: Help needed!

2007-11-12 Thread SMALLp
I forgot, I'm using wxPython "SMALLp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm new in python and i got lost. > > Ima building an aplication that add's 2 panels and menu bar to the window. > So i made base class that makes window, menuBarClass that inherits > mainWindowCl

Help needed!

2007-11-12 Thread SMALLp
I'm new in python and i got lost. Ima building an aplication that add's 2 panels and menu bar to the window. So i made base class that makes window, menuBarClass that inherits mainWindowClass. Problem is with PanelClass that would need to inherit MainWindowClass to add panels. So if someone ha

Re: preparing data for visualization

2007-11-12 Thread John Machin
[EMAIL PROTECTED] wrote: > I would like to have my data in a format so that I can create a > contour plot. > > My data is in a file with a format, where there may be multiple fields > > field = 1 > > 1a 0 > 2a 0 The above is NOT consistent with the later listing of your data file. [bi

Re: optional arguments with compact reporting in optparse

2007-11-12 Thread Steven Bethard
braver wrote: > Steve -- thanks for your pointer to argparse, awesome progress -- > optional arguments. > > However, I still wonder how I do reporting. The idea is that there > should be a list with tuples of the form: > > (short, long, value, help) > > -- for all options, regardless of whether

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-12 Thread thermate
On Nov 12, 11:29 am, "radiosrfun" <[EMAIL PROTECTED]> wrote: > It was MUSLIMS who killed close to 3000 people of all races/religions. Where is your proof ? Where is the Anthrax Mailer ?? His proof that the moslems did not do it is painted all over the internet in

preparing data for visualization

2007-11-12 Thread Bryan . Fodness
I would like to have my data in a format so that I can create a contour plot. My data is in a file with a format, where there may be multiple fields field = 1 1a 0 2a 0 3a 5 4a 5 5a 5 6a 5 7a 5 8a 5 9a 0 10a 0 1b 0 2b 0 3b 5 4b

Re: imaplib unexpected error

2007-11-12 Thread KeefTM
On Nov 12, 1:46 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > KeefTM wrote: > > Hello, I am getting an odd error when trying to establish an IMAP > > connection: > > > File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/ > > imaplib.py", line 904, in _get_response > > raise se

Re: imaplib unexpected error

2007-11-12 Thread Laszlo Nagy
KeefTM wrote: > Hello, I am getting an odd error when trying to establish an IMAP > connection: > > File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/ > imaplib.py", line 904, in _get_response > raise self.abort("unexpected response: '%s'" % resp) > imaplib.abort: unexpecte

Re: Populating a dictionary, fast

2007-11-12 Thread Istvan Albert
On Nov 12, 12:39 pm, "Michael Bacarella" <[EMAIL PROTECTED]> wrote: > The win32 Python or the cygwin Python? > > What CPU architecture? it is the win32 version, a dual core laptop with T5220 Core 2 -- http://mail.python.org/mailman/listinfo/python-list

Re: imaplib unexpected error

2007-11-12 Thread KeefTM
Nevermind. It always seems I figure out what I did wrong right after I post. Turns out I was using the wrong port. On Nov 12, 12:51 pm, KeefTM <[EMAIL PROTECTED]> wrote: > Hello, I am getting an odd error when trying to establish an IMAP > connection: > > File "/Library/Frameworks/Python.framewo

Re: Transfer socket connection between programs

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 12, 1:41 pm, JamesHoward <[EMAIL PROTECTED]> wrote: > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. It seems to be a > problem of getting access to

Re: Transfer socket connection between programs

2007-11-12 Thread marek . rocki
JamesHoward napisa (a): > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. It seems to be a > problem of getting access to a programs private memory space and >

imaplib unexpected error

2007-11-12 Thread KeefTM
Hello, I am getting an odd error when trying to establish an IMAP connection: File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/ imaplib.py", line 904, in _get_response raise self.abort("unexpected response: '%s'" % resp) imaplib.abort: unexpected response: '220 libertydis

Re: Questions about remembering and caching function arguments

2007-11-12 Thread Aurélien Campéas
thebjorn a écrit : > On Nov 12, 1:05 am, "Anand Patil" <[EMAIL PROTECTED]> > wrote: >> Hi all, >> >> I have two questions about a class, which we'll call MyWrapperClass, >> in a package to which I'm contributing. >> >> 1) MyWrapperClass wraps functions. Each instance has an attribute >> called 'val

Re: Transfer socket connection between programs

2007-11-12 Thread Laszlo Nagy
JamesHoward wrote: > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. It seems to be a > problem of getting access to a programs private memory space and > gi

Re: Information manager/organizer with tags question.

2007-11-12 Thread andrei . avk
On Nov 12, 2:24 pm, Aaron Watters <[EMAIL PROTECTED]> wrote: > On Nov 11, 5:44 pm, [EMAIL PROTECTED] wrote: > > > Hello, > > > I would like to write an information manager/organizer type of app but > > first I'd like to ask if there is something like that already... > > Your outline sounds like a k

Re: Python-URL! - weekly Python news and links (Nov 12)

2007-11-12 Thread Aurélien Campéas
Laszlo Nagy a écrit : > Gabriel Genellina wrote: >> QOTW: "AOP is a programming paradigm in the same way indie is a genre of >> film." - Carl Banks >> http://groups.google.com/group/comp.lang.python/msg/224e922a3e1a8638 >> > I was following links and hit PEP 246 here: > > http://www.python

Re: Transfer socket connection between programs

2007-11-12 Thread Grant Edwards
On 2007-11-12, JamesHoward <[EMAIL PROTECTED]> wrote: >> Private memory has nothing to do with it. The connection is a >> data structure that lives in kernel space, not in user space. >> Even if you could grant another process access to your "private >> memory space", it wouldn't help you "transf

Re: Transfer socket connection between programs

2007-11-12 Thread JamesHoward
On Nov 12, 12:50 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-11-12, JamesHoward <[EMAIL PROTECTED]> wrote: > > > Does anyone know any method to have one program, acting as a > > server transfer a socket connection to another program? > > The only way I know of is to use fork. When you f

Re: Transfer socket connection between programs

2007-11-12 Thread Paul Rubin
JamesHoward <[EMAIL PROTECTED]> writes: > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. You have to use an out of band communication mechanism. On Linux

Re: Override method name and original method access

2007-11-12 Thread Laszlo Nagy
Donn Ingle wrote: > In an unusual twist of code I have a subclass which overrides a method but > it also needs to call the original method: > > class One: > def add (self, stuff): > self.stuff.append(stuff) > > class Two(One): > def __init__(self, otherstuff): > (otherstuff) #otherstuff must

Re: Override method name and original method access

2007-11-12 Thread Chris Mellon
On Nov 12, 2007 1:41 PM, Donn Ingle <[EMAIL PROTECTED]> wrote: > In an unusual twist of code I have a subclass which overrides a method but > it also needs to call the original method: > > class One: > def add (self, stuff): > self.stuff.append(stuff) > > class Two(One): > def __init__(self, ot

Re: Python-URL! - weekly Python news and links (Nov 12)

2007-11-12 Thread Carl Banks
On Nov 12, 2:46 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > Gabriel Genellina wrote: > > QOTW: "AOP is a programming paradigm in the same way indie is a genre of > > film." - Carl Banks > >http://groups.google.com/group/comp.lang.python/msg/224e922a3e1a8638 > > I was following links and hit P

Re: Transfer socket connection between programs

2007-11-12 Thread Grant Edwards
On 2007-11-12, JamesHoward <[EMAIL PROTECTED]> wrote: > Does anyone know any method to have one program, acting as a > server transfer a socket connection to another program? The only way I know of is to use fork. When you fork a process, all open file-descriptors (including network connections)

Re: optional arguments with compact reporting in optparse

2007-11-12 Thread braver
Steve -- thanks for your pointer to argparse, awesome progress -- optional arguments. However, I still wonder how I do reporting. The idea is that there should be a list with tuples of the form: (short, long, value, help) -- for all options, regardless of whether they were specified on the comm

Re: why there is no pythonscript insine web browsers?

2007-11-12 Thread Daniel Fetchinson
> I'm an old programmer coming from a cobol background and started to > learn python. I'm using javasript for web based applications but after I > started to learn python, the javascript language started to seem ugly to > me. Now I'm wondering why there is java support on web browsers but no > pyth

Re: Python-URL! - weekly Python news and links (Nov 12)

2007-11-12 Thread Laszlo Nagy
Gabriel Genellina wrote: > QOTW: "AOP is a programming paradigm in the same way indie is a genre of > film." - Carl Banks > http://groups.google.com/group/comp.lang.python/msg/224e922a3e1a8638 > I was following links and hit PEP 246 here: http://www.python.org/dev/peps/pep-0246/ On that

Re: python - an eggs...

2007-11-12 Thread Diez B. Roggisch
bruce schrieb: > hey dietz... > > if you give me your email i'll correspond with you directly.. > but yeah, you are a jerk. in that you make assumptions that may/may not be > correct, but you appear to have a holier than thou mentality... > > i did download the setuptools tar file i read thro

Transfer socket connection between programs

2007-11-12 Thread JamesHoward
Does anyone know any method to have one program, acting as a server transfer a socket connection to another program? I looked into transferring the connection via xml rpc to no avail. It seems to be a problem of getting access to a programs private memory space and giving another program access t

Override method name and original method access

2007-11-12 Thread Donn Ingle
In an unusual twist of code I have a subclass which overrides a method but it also needs to call the original method: class One: def add (self, stuff): self.stuff.append(stuff) class Two(One): def __init__(self, otherstuff): (otherstuff) #otherstuff must go into list within the parent. #Th

Re: Python iPod challenge

2007-11-12 Thread jose Barcelona
Gabriel, Now it works fine with FIREFOX , SAFARI and MSIE. (MSIE didnt like the the way prototype.js deals with CR LF) > BTW, why do you require JS? The python interpreter comunicates back and forth via a widget just like gmail XD. Sorry for that. Anyway we stil need volunteers... ht

RE: crawler in python and mysql

2007-11-12 Thread Adam Pletcher
In the standard Python install (Windows 2.5, at least), there's there's a couple example scripts you might find useful: \Tools\webchecker\webchecker.py Crawls specified URL, checking for broken links. \Tools\webchecker\websucker.py Variant on the above that archives the specified site lo

Re: Populating a dictionary, fast [SOLVED]

2007-11-12 Thread Paul Rubin
"Michael Bacarella" <[EMAIL PROTECTED]> writes: > > id2name[key >> 40][key & 0x100] = name > Oops, typo. It's actually: > Id2name[key >> 40][key & 0xff] = name Are you saying this is a patch that appeared after python 2.3? Somehow I don't think it's come up in this threa

Re: Information manager/organizer with tags question.

2007-11-12 Thread Aaron Watters
On Nov 11, 5:44 pm, [EMAIL PROTECTED] wrote: > Hello, > > I would like to write an information manager/organizer type of app but > first I'd like to ask if there is something like that already... Your outline sounds like a killer app, and I don't know of anything like it (especially for free). Ho

Re: Binary search tree

2007-11-12 Thread Scott SA
On 11/12/07, Scott SA ([EMAIL PROTECTED]) wrote: Uhm sorry, there is a slightly cleaner way of running the second option I presented (sorry for the second post). >If you would find an index and count useful, you could do something like this: > >for idx in range(len(urls)): >uniqu

webbrowser.open still gives problem with file://

2007-11-12 Thread krishnakant Mane
hello, some days bac I posted a problem about webbrowser.open() not opening the file on the local machine. I get a few responses and I tryed working it out. I also refered to the cookbook example posted on that thread. I still can't figure out why webbrowser.open("file:///home/krishna/documents/tut

Re: OT: concatenating targets for python with (eg.) Gnu make

2007-11-12 Thread Carl Banks
On Nov 12, 1:22 pm, Jon Nicoll <[EMAIL PROTECTED]> wrote: > My question is, how can I specify a makefile rule so that *all* of the > changed .A files are invoked on the AtoB command line - ie if 1.A, 2.A > and 3.A are newer than 1.B, 2.B, 3.B, I want make to invoke > > AtoB.py 1.A 2.A 3.A 4.A > > r

Python-URL! - weekly Python news and links (Nov 12)

2007-11-12 Thread Gabriel Genellina
QOTW: "AOP is a programming paradigm in the same way indie is a genre of film." - Carl Banks http://groups.google.com/group/comp.lang.python/msg/224e922a3e1a8638 "I really like Python's notion of having just one data type: the duck." - itsme http://groups.google.com/group/comp.lang.perl.m

RE: python - an eggs...

2007-11-12 Thread bruce
hey dietz... if you give me your email i'll correspond with you directly.. but yeah, you are a jerk. in that you make assumptions that may/may not be correct, but you appear to have a holier than thou mentality... i did download the setuptools tar file i read through the txt files that came w

Re: Rothschilds own half the worlds wealth directly and indirectly thru zionist proxies Re: Bill Gates was never the Richest man on earth

2007-11-12 Thread Robert J. Kolker
[EMAIL PROTECTED] wrote: > > You would learn a lot MORE if you listened to the videos whose links > are provided. > Please share these links anonymously with your friends, neighbors or > anyone whose email you know. > > Spread quality knowledge. That means the Goyim own the other half. So what

crawler in python and mysql

2007-11-12 Thread Fabian López
Hi, I would like to write a code that needs to crawl an url and take all the HTML code. I have noticed that there are different opensource webcrawlers, but they are very extensive for what I need. I only need to crawl an url, and don't know if it is so easy as using an html parser. Is it? Which lib

Re: why there is no pythonscript insine web browsers?

2007-11-12 Thread Diez B. Roggisch
Timuçin Kızılay wrote: > I'm an old programmer coming from a cobol background and started to > learn python. I'm using javasript for web based applications but after I > started to learn python, the javascript language started to seem ugly to > me. Now I'm wondering why there is java support on we

RE: python - an eggs...

2007-11-12 Thread Diez B. Roggisch
bruce wrote: > diez... > > i was being polite in thanking you for your input/thoughts... i actually > had read what you'd posted, as i stated. Really? Did you? Here your third question: -3rd question.. in searching the 'net, it appears that i have to download setuptools in order to get easy_ins

Re: Rothschilds own half the worlds wealth directly and indirectly thru zionist proxies Re: Bill Gates was never the Richest man on earth

2007-11-12 Thread Simon Spiegel
On 2007-11-12 18:57:07 +0100, [EMAIL PROTECTED] said: > On Nov 11, 5:48 am, "GOH, Kheng-Swee" <[EMAIL PROTECTED]> > wrote: >> On Tue, 06 Nov 2007 17:53:01 -, [EMAIL PROTECTED] wrote: >> >> ... >> >>> Using an innovative system of pigeons >>> for communication and encoded letters, ... >> >>

why there is no pythonscript insine web browsers?

2007-11-12 Thread Timuçin Kızılay
I'm an old programmer coming from a cobol background and started to learn python. I'm using javasript for web based applications but after I started to learn python, the javascript language started to seem ugly to me. Now I'm wondering why there is java support on web browsers but no python sup

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-12 Thread zionist . news
On Nov 10, 3:02 pm, ChairmanOfTheBored <[EMAIL PROTECTED]> wrote: > On Sat, 10 Nov 2007 22:10:15 -, [EMAIL PROTECTED] wrote: > >The mapping of Muslim communities > > You're a goddamned retard. A Jew hacker in California admits distributing malware that let him steal usernames and passwords f

Rothschilds own half the worlds wealth directly and indirectly thru zionist proxies Re: Bill Gates was never the Richest man on earth

2007-11-12 Thread zionist . news
On Nov 11, 5:48 am, "GOH, Kheng-Swee" <[EMAIL PROTECTED]> wrote: > On Tue, 06 Nov 2007 17:53:01 -, [EMAIL PROTECTED] wrote: > > ... > > >Using an innovative system of pigeons > >for communication and encoded letters, ... > > I didn't believe you until I read that part. It all makes sense now!

RE: Populating a dictionary, fast [SOLVED SOLVED]

2007-11-12 Thread Michael Bacarella
> > You can download the list of keys from here, it's 43M gzipped: > > http://www.sendspace.com/file/9530i7 > > > > and see it take about 45 minutes with this: > > > > $ cat cache-keys.py > > #!/usr/bin/python > > v = {} > > for line in open('keys.txt'): > > v[long(line.strip())] = True

Re: Using python as primary language

2007-11-12 Thread Rhamphoryncus
On Nov 12, 2:28 am, "Martin Vilcans" <[EMAIL PROTECTED]> wrote: > On Nov 10, 2007 12:48 AM, Rhamphoryncus <[EMAIL PROTECTED]> wrote: > > > On Nov 9, 1:45 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > > > 2. If micro-locked Python ran, say, half as fast, then you can have a lot > > > of IPC (interp

RE: Populating a dictionary, fast

2007-11-12 Thread Michael Bacarella
> > and see it take about 45 minutes with this: > > > > $ cat cache-keys.py > > #!/usr/bin/python > > v = {} > > for line in open('keys.txt'): > > v[long(line.strip())] = True > > On my system (windows vista) your code (using your data) runs in: > > 36 seconds with python 2.4 > 25 seconds

RE: Populating a dictionary, fast [SOLVED]

2007-11-12 Thread Michael Bacarella
> id2name[key >> 40][key & 0x100] = name Oops, typo. It's actually: Id2name[key >> 40][key & 0xff] = name -- http://mail.python.org/mailman/listinfo/python-list

Re: how to know if folder contents have changed

2007-11-12 Thread Martin Marcher
2007/11/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Why not use the file creation/modification timestamps? because you'd have to a) create a thread that pulls all the time for changes or b) test everytime for changes fam informs in a notification like way. Personally I'd create a "hidden" cach

Re: how to know if folder contents have changed

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 11, 11:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > i am trying to create a cache of digitized values of around 100 > image files in a folder..In my program i would like to know from time > to time if a new image has been added or removed from the folder.. > Why not use th

Re: reading file objects in chunks

2007-11-12 Thread Marc 'BlackJack' Rintsch
On Mon, 12 Nov 2007 17:47:29 +0100, Martin Marcher wrote: > I'd really like something nicer than > > chunksize = 26 > f = file("datafile.dat", buffering=chunksize) > > chunk = f.read(chunksize) > while len(chunk) == chunksize: > compute_data(chunk) > f.read(chunksize) > > I just don't feel

RE: python - an eggs...

2007-11-12 Thread bruce
diez... i was being polite in thanking you for your input/thoughts... i actually had read what you'd posted, as i stated. in act, i did manage to get things working, thanks to you. but your comment about "ignoring pointers" indicates that you are a jerk, so... i now find your emails/tone offensi

Re: Moving from java to python.

2007-11-12 Thread Larry Bates
Paul Hankin wrote: > On Nov 12, 3:25 pm, "[EMAIL PROTECTED]" > <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I have recently been learning python, and coming from a java >> background there are many new ways of doing things that I am only just >> getting to grips with. >> >> I wondered if anyone could ta

Re: PyGilState_Ensure interrupts python critical sections

2007-11-12 Thread Chris Mellon
On Nov 12, 2007 6:56 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > I have a native windows thread in a c python module which calls into > python code and adds an item to a data structure (a home-grown > circular buffer). At the same time my main python application is > removing items from this data str

Re: Looking for a good Python environment

2007-11-12 Thread VSmirk
On Nov 11, 4:39 pm, Paul Rubin wrote: > Russell Warren <[EMAIL PROTECTED]> writes: > > Wing now has multi-threaded debugging. > > Cool, is it windows-only? I'm using Linux. > > > A quick look at the current state of SPE shows that it now has multi- > > threaded debugging

reading file objects in chunks

2007-11-12 Thread Martin Marcher
Hi, I'm looking for something that will give me an iterator to a file-(like)-object. I have large files with only a single line in it that have fixed length fields like, record length is 26bytes, dataA is 10 bytes, dataB is 16 bytes. Now when I made my parsing stuff but can't find anything that w

Re: Moving from java to python.

2007-11-12 Thread Tim Chase
> def __init__(self, connections = None, uid = None): > """ > Args: > [connections - a list of (connected node, weight) tuples. ] > [uid - an identifier for comparisons.] > """ > self._connected = [] > self._weights = [] > > if connections: >

Re: Moving from java to python.

2007-11-12 Thread Hrvoje Niksic
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > def __init__(self, connections = None, uid = None): You can use connections=(), so you don't need the "if" below. In fact, you can further write: for node, weight in connections: self._connected.append(node) self._weigh

Re: regex that is equivalent to perl's syntax

2007-11-12 Thread Tim Chase
> does python's re library have a similar capability of the perls > regular expression to > search for pattern that appears a variable number of times within the > lower and upper bounds given? For example, what is the python's > equivalent to the following perl's search string? > m/^\S{1,8}\.\S{0,

Re: regex that is equivalent to perl's syntax

2007-11-12 Thread Marc 'BlackJack' Rintsch
On Mon, 12 Nov 2007 07:38:57 -0800, Lee Sander wrote: > does python's re library have a similar capability of the perls > regular expression to > search for pattern that appears a variable number of times within the > lower and upper bounds given? For example, what is the python's > equivalent to

Re: Moving from java to python.

2007-11-12 Thread Paul Hankin
On Nov 12, 3:25 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I have recently been learning python, and coming from a java > background there are many new ways of doing things that I am only just > getting to grips with. > > I wondered if anyone could take a look at a few pieces of c

Re: Populating a dictionary, fast

2007-11-12 Thread Jeffrey Froman
Hrvoje Niksic wrote: > Note that both machines are x86_64.  Please try your test on a 32-bit > machine and report the results.  I suspect performance won't degrade > there. This theory seems to be supported by my findings. Running the test on a 32-bit machine took 45 seconds, while the same test

regex that is equivalent to perl's syntax

2007-11-12 Thread Lee Sander
hi, does python's re library have a similar capability of the perls regular expression to search for pattern that appears a variable number of times within the lower and upper bounds given? For example, what is the python's equivalent to the following perl's search string? m/^\S{1,8}\.\S{0,3}/ whic

Re: Moving from java to python.

2007-11-12 Thread Jarek Zgoda
[EMAIL PROTECTED] napisał(a): > def getConnected(self): > return self._connected No need to use accessors. Just plain attribute lookup is sufficient. -- Jarek Zgoda Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101 "We read Knuth so you don't have to." (Tim Pet

Moving from java to python.

2007-11-12 Thread [EMAIL PROTECTED]
Hi, I have recently been learning python, and coming from a java background there are many new ways of doing things that I am only just getting to grips with. I wondered if anyone could take a look at a few pieces of code I have written to see if there are any places where I am still using java-

Re: Some "pythonic" suggestions for Python

2007-11-12 Thread Hrvoje Niksic
Loic Mahe <[EMAIL PROTECTED]> writes: > Chris M write : >> Multi-return value lambda? Just so you know, there is no concept of >> returning more than one value from a function. > > I wrote: >> * multi return value lambda > > I meant: multiple return statement, not return multiple values > > pseudo

Re: which tool to use?

2007-11-12 Thread Yoram Hekma
On Sun, Nov 11, 2007 at 01:06:35PM -0500, Brian Blais wrote: > Hello, > > I'm looking for a system for managing submissions of proposals, with > multiple parts, and possible updating of those parts by the user (so it > needs some basic version control). There has to be some sort of > permission

  1   2   >