Re: Fast GUI pipemeter: gprog

2010-03-06 Thread Dan Stromberg
On Mar 4, 4:25 pm, Dan Stromberg wrote: > Python folk: Any guesses why a simple file.read(blocksize) would have > such an affinity for returning 16K when redirected from /dev/zero?  If > I run the program against a file on disk, it gets larger blocksizes > fine. Never mind - it was a bug in my c

Re: start function in new process

2010-03-06 Thread wongjoek...@yahoo.com
On 5 mrt, 21:40, "Martin P. Hellwig" wrote: > On 03/05/10 20:09, wongjoek...@yahoo.com wrote: > > > > > On 5 mrt, 21:02, "Martin P. Hellwig" > > wrote: > >> On 03/05/10 19:45, wongjoek...@yahoo.com wrote: > > >>> On 5 mrt, 20:40, "Martin P. Hellwig" > >>> wrote: > On 03/05/10 19:21, wongjoek.

compiler with python

2010-03-06 Thread mohamed issolah
hey, How can I construct a compiler with python just for informatiom ., I have habit to construct it with C language, sorry for my english ;-) -- issolah mohamed -- http://mail.python.org/mailman/listinfo/python-list

Building Python-2.6.4 on G/L: can't build in _ssl support.

2010-03-06 Thread Alan Mackenzie
Hi, Python! I build Python-2.6.4 on my GNU/Linux (Debian Sarge) box. I get a warning message "Failed to find the necessary bits to build these modules: _ssl ... RTFS to find out what!". I need _ssl for an application. So, I look at setup.py in the top directory. It seems that _ssl needs

Re: compiler with python

2010-03-06 Thread Dave Angel
mohamed issolah wrote: hey, How can I construct a compiler with python just for informatiom ., I have habit to construct it with C language, sorry for my english ;-) You need to tell us what you're really trying to do, what tools you're willing to use, and probably why you want it. And if

Import problem

2010-03-06 Thread Johny
I have this directory structure C: \A __init__.py amodule.py \B __init__.py bmodule.py \D __init__.py dmodule.py and I want to import bmodule.py C:\>cd \ C:\>python Python 2.5 (r25:51908, Sep 19 2006, 09:

Re: start function in new process

2010-03-06 Thread Martin P. Hellwig
On 03/06/10 09:45, wongjoek...@yahoo.com wrote: Yes, I saw this example also before. HOwever what I want is to call an internal function which gets a reference of another internal function as input and not calling an external program. Do you have any example on that with subprocess module ? Tha

compiler with python

2010-03-06 Thread mohamed issolah
hey, I want to create a compiler which transform a code like pascal code (that what I do in C) to "quad" In C, I use BISON and FLEX tools. -- issolah mohamed -- http://mail.python.org/mailman/listinfo/python-list

"olivia wilde" "olivia williams" "olivia" "olivia" "olivia" "virgin women" "virgin girl test" on http://sexyandpretty-girls.blogspot.com/ "torrie wilson playboy march 2004" "torrie wilson" "torrie wi

2010-03-06 Thread Naeem
"olivia wilde" "olivia williams" "olivia" "olivia" "olivia" "virgin women" "virgin girl test" on http://sexyandpretty-girls.blogspot.com/ "torrie wilson playboy march 2004" "torrie wilson" "torrie wilson no clothes" "torrie wilson 2009" ""olivia wilde" "olivia williams" "olivia" "olivia" "olivia" "

Re: Import problem

2010-03-06 Thread Steven D'Aprano
On Sat, 06 Mar 2010 03:53:53 -0800, Johny wrote: import sys sys.path.append('C:\\A') from A.B import bmodule > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named A.B The current directory is irrelevant, except that it is automatically added

Call for Paper The International Journal of Computer Science (IJCS)

2010-03-06 Thread editor ijcs
Call for Paper The International Journal of Computer Science (IJCS) publishes original papers on all subjects relevant to computer science, communication network, and information systems. The highest priority will be given to those contributions concerned with a discussion of the background of a pr

intersting datt with girls.......sign in to this website

2010-03-06 Thread karan arjun
RE U WANT RUSSIAN GIRL FRIENDS... WEBPAGE ---> http://123maza.com/hashan/ -- http://mail.python.org/mailman/listinfo/python-list

Re: compiler with python

2010-03-06 Thread Dave Angel
mohamed issolah wrote: 2010/3/6 Dave Angel mohamed issolah wrote: hey, How can I construct a compiler with python just for informatiom ., I have habit to construct it with C language, sorry for my english ;-) You need to tell us what you're really trying to do, what tool

Re: best practices: is collections.defaultdict my friend or not?

2010-03-06 Thread Bruno Desthuilliers
Pete Emerson a écrit : (snip) > I'm really liking the rigid flexibility I'm experiencing with python > so far. "rigid flexibility" !-) +1 QOTW - and welcome on board BTW. -- http://mail.python.org/mailman/listinfo/python-list

Re: Building Python-2.6.4 on G/L: can't build in _ssl support.

2010-03-06 Thread Anssi Saari
Alan Mackenzie writes: > Hi, Python! > > I build Python-2.6.4 on my GNU/Linux (Debian Sarge) box. I get a warning > message "Failed to find the necessary bits to build these modules: > _ssl ... RTFS to find out what!". At a guess, you're missing libssl-dev. You might consider installing p

Escape curly bracket together to a variable extension

2010-03-06 Thread Joan Miller
How to escape the first '}' in the next string? s = "}\n{0}".format('foo') -- http://mail.python.org/mailman/listinfo/python-list

Re: Escape curly bracket together to a variable extension

2010-03-06 Thread Alf P. Steinbach
* Joan Miller: How to escape the first '}' in the next string? s = "}\n{0}".format('foo') s = "}}\n{0}".format('foo') Cheers & hth., - Alf -- http://mail.python.org/mailman/listinfo/python-list

Re: Escape curly bracket together to a variable extension

2010-03-06 Thread Gary Herron
Joan Miller wrote: How to escape the first '}' in the next string? s = "}\n{0}".format('foo') >>> "}}\n{0}".format('foo') '}\nfoo' Gary Herron -- http://mail.python.org/mailman/listinfo/python-list

Re: compiler with python

2010-03-06 Thread Steven Howe
Is it possible he's talking about a 'quad core'? as in a CPU? In that case I think he wants to optimize a python program for a multiprocessor core with four processors. sph On 03/06/2010 07:56 AM, Dave Angel wrote: mohamed issolah wrote: 2010/3/6 Dave Angel mohamed issolah wrote: hey,

Re: compiler with python

2010-03-06 Thread Alf P. Steinbach
Since Mohamed is talking about compilation I think it's more likely he's talking about an intermediate program represention based on quad tuples like (OP, DESTINATION, ARG1, ARG2) Cheers, - Alf * Steven Howe: Is it possible he's talking about a 'quad core'? as in a CPU? In that case I thi

compiler with python

2010-03-06 Thread mohamed issolah
hey, yes quad = quad tuple like ("+",x1,x2,temp) I work in linux example : my parser with flex : -- issolah mohamed token.l Description: Binary data -- http://mail.python.org/mailman/listinfo/python-list

[RELEASED] Python 3.1.2 release candidate

2010-03-06 Thread Benjamin Peterson
On behalf of the Python development team, I'm pleased to announce a release candidate for the second bugfix release of the Python 3.1 series, Python 3.1.2. This bug fix release fixes numerous issues found in 3.1.1. This release candidate has been released to solicit testing and feedback over an p

Re: Conditional based on whether or not a module is being used

2010-03-06 Thread Vinay Sajip
On Mar 5, 9:29 pm, Pete Emerson wrote: > > I have written my first module called "logger" that logs to syslog via > the syslog module but also allows forloggingto STDOUT in debug mode > at multiple levels (to increase verbosity depending on one's need), or > both. I've looked at theloggingmodule a

[RELEASED] Python 2.7 alpha 4

2010-03-06 Thread Benjamin Peterson
On behalf of the Python development team, I'm overjoyed to announce the fourth alpha release of Python 2.7. Python 2.7 is scheduled (by Guido and Python-dev) to be the last major version in the 2.x series. Though more major releases have not been absolutely ruled out, it's likely that the 2.7 rel

Re: Sample code usable Tkinter listbox

2010-03-06 Thread rantingrick
Opps: found a few errors in that last ScrolledListbox class, try this one... import Tkinter as tk from Tkconstants import * class ScrolledList(tk.Listbox): def __init__(self, master, **kw): self.frame = tk.Frame(master) self.frame.rowconfigure(0, weight=1) self.frame

Re: Conditional based on whether or not a module is being used

2010-03-06 Thread Pete Emerson
On Mar 6, 2:38 pm, Vinay Sajip wrote: > On Mar 5, 9:29 pm, Pete Emerson wrote: > > > > > I have written my first module called "logger" that logs to syslog via > > the syslog module but also allows forloggingto STDOUT in debug mode > > at multiple levels (to increase verbosity depending on one's

python b.python 8 works on XP but not on Vista?

2010-03-06 Thread Isaac Gouy
At the command prompt: python b.py 8 works fine on both XP and Vista python b.python 8 works on XP (and Linux) but on Vista python b.python 8 ImportError: No module named b ? -- http://mail.python.org/mailman/listinfo/python-list

async notification handling w/o threads/polling (similiar to kill -hup)?

2010-03-06 Thread News123
Hi, I'd like to notify python processes asynchronously. at notification time a callback should be called The solution should be working on linux and Windows. I could add a wrapper to switch between a windows / linux implementation though If possible I'd like to avoid - having to poll for an ext

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread Chris Rebert
On Sat, Mar 6, 2010 at 3:53 PM, Isaac Gouy wrote: > At the command prompt: > >   python b.py 8 > works fine on both XP and Vista > >   python b.python 8 > works on XP (and Linux) > > but on Vista > >   python b.python 8 > > ImportError: No module named b > > ? Code please. Also, .python is not a

Re: async notification handling w/o threads/polling (similiar to kill -hup)?

2010-03-06 Thread News123
News123 wrote: > Hi, > > I'd like to notify python processes asynchronously. > at notification time a callback should be called > > The solution should be working on linux and Windows. > > I could add a wrapper to switch between a windows / linux implementation > though > > If possible I'd like

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread Isaac Gouy
On Mar 6, 4:02 pm, Chris Rebert wrote: > On Sat, Mar 6, 2010 at 3:53 PM, Isaac Gouy wrote: > > At the command prompt: > > >   python b.py 8 > > works fine on both XP and Vista > > >   python b.python 8 > > works on XP (and Linux) > > > but on Vista > > >   python b.python 8 > > > ImportError: No

Re: indentation error

2010-03-06 Thread Tim Roberts
asit wrote: > >According to me, indentation is ok. but the python interpreter gives >an indentation error > >[asit ~/py] $ python search.py > File "search.py", line 7 >findResults = string.split(commandOutput, "\n") > ^ >IndentationError: unind

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread Chris Rebert
On Sat, Mar 6, 2010 at 4:42 PM, Isaac Gouy wrote: > On Mar 6, 4:02 pm, Chris Rebert wrote: >> On Sat, Mar 6, 2010 at 3:53 PM, Isaac Gouy wrote: >> > At the command prompt: >> >> >   python b.py 8 >> > works fine on both XP and Vista >> >> >   python b.python 8 >> > works on XP (and Linux) >> >>

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread Isaac Gouy
On Mar 6, 4:53 pm, Chris Rebert wrote: > On Sat, Mar 6, 2010 at 4:42 PM, Isaac Gouy wrote: > > On Mar 6, 4:02 pm, Chris Rebert wrote: > >> On Sat, Mar 6, 2010 at 3:53 PM, Isaac Gouy wrote: > >> > At the command prompt: > > >> >   python b.py 8 > >> > works fine on both XP and Vista > > >> >   p

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread sstein...@gmail.com
On Mar 6, 2010, at 8:23 PM, Isaac Gouy wrote: > On Mar 6, 4:53 pm, Chris Rebert wrote: >> On Sat, Mar 6, 2010 at 4:42 PM, Isaac Gouy wrote: >>> On Mar 6, 4:02 pm, Chris Rebert wrote: On Sat, Mar 6, 2010 at 3:53 PM, Isaac Gouy wrote: > At the command prompt: >> > python b.py 8

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread Steven D'Aprano
On Sat, 06 Mar 2010 21:10:02 -0500, sstein...@gmail.com wrote: > On Mar 6, 2010, at 8:23 PM, Isaac Gouy wrote: > >> On Mar 6, 4:53 pm, Chris Rebert wrote: >>> On Sat, Mar 6, 2010 at 4:42 PM, Isaac Gouy wrote: On Mar 6, 4:02 pm, Chris Rebert wrote: > On Sat, Mar 6, 2010 at 3:53 PM, Isa

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread Isaac Gouy
On Mar 6, 6:50 pm, Steven D'Aprano wrote: > On Sat, 06 Mar 2010 21:10:02 -0500, sstein...@gmail.com wrote: > > On Mar 6, 2010, at 8:23 PM, Isaac Gouy wrote: > > >> On Mar 6, 4:53 pm, Chris Rebert wrote: > >>> On Sat, Mar 6, 2010 at 4:42 PM, Isaac Gouy wrote: > On Mar 6, 4:02 pm, Chris Reber

yappi v0.42 released

2010-03-06 Thread k3xji
Hi all, yappi(yet another python profiler with multithreading support) released. See: http://code.google.com/p/yappi/ Thanks, -- http://mail.python.org/mailman/listinfo/python-list

Re: python b.python 8 works on XP but not on Vista?

2010-03-06 Thread Steven D'Aprano
On Sat, 06 Mar 2010 19:04:56 -0800, Isaac Gouy wrote: > That was "Thanks." as in problem solved. > > When the code switches on multiprocessing.cpu_count() - single core vs > multicore matters. I'm glad you solved your problem. Out of curiosity, what was the fault? Not the condition that leads t

Asynchronous HTTP client

2010-03-06 Thread Ping
Hi, I'm trying to find a way to create an asynchronous HTTP client so I can get responses from web servers in a way like async_http_open('http://example.com/', callback_func) # immediately continues, and callback_func is called with response as arg when it is ready It seems twisted can do it