RE: Run pyc file without specifying python path ?

2009-07-30 Thread Barak, Ron
-Original Message- From: Dave Angel [mailto:da...@ieee.org] Sent: Wednesday, July 29, 2009 21:05 To: Barak, Ron Cc: 'python-list@python.org' Subject: Re: Run pyc file without specifying python path ? Barak, Ron wrote: Hi, I wanted to make a python byte-code file

Re: Does python have the capability for driver development ?

2009-07-30 Thread Diez B. Roggisch
Nick Craig-Wood schrieb: Diez B. Roggisch de...@nospam.web.de wrote: MalC0de schrieb: hello there, I've a question : I want to know does python have any capability for using Ring0 and kernel functions for driver and device development stuff . if there's such a feature it is very good, and if

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-30 Thread Peter Otten
pdlem...@earthlink.net wrote: I've used python a few months and expected to find cmath seperately sort of as a header file. A text search failed. I now understand its in the Python Standard Library, which I assume is that big file Python30\LIBS\libpython30.a Python 3.1 is no

Re: Connecting multiple test cases in a sort of pipe

2009-07-30 Thread Diez B. Roggisch
Raghuram Devarakonda schrieb: Hi, I have three functions - create(), list(), and delete(). create() creates a new name in the file system hierarchy while list() displays all such created names and delete() removes them. I would like to write test cases for each of these functions, say,

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-30 Thread Chris Rebert
On Wed, Jul 29, 2009 at 11:41 PM, Peter Otten__pete...@web.de wrote: pdlem...@earthlink.net wrote: I've used python a few months and expected to find cmath seperately sort of as a header file.  A text search failed.  I now understand its in the Python Standard Library, which I assume is that

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-30 Thread Peter Otten
Chris Rebert wrote: On Wed, Jul 29, 2009 at 11:41 PM, Peter Otten__pete...@web.de wrote: pdlem...@earthlink.net wrote: I've used python a few months and expected to find cmath seperately sort of as a header file. A text search failed. I now understand its in the Python Standard Library,

beautiful soup

2009-07-30 Thread xubin.cz
hi, everyone Is there any pakage or module handling html document like beautiful soup? thanks a lot -- http://mail.python.org/mailman/listinfo/python-list

Re: beautiful soup

2009-07-30 Thread Diez B. Roggisch
xubin.cz schrieb: hi, everyone Is there any pakage or module handling html document like beautiful soup? why don't you *use* beautiful soup? It is a module... Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: beautiful soup

2009-07-30 Thread Masklinn
On 30 Jul 2009, at 09:30 , Diez B. Roggisch wrote: xubin.cz schrieb: hi, everyone Is there any pakage or module handling html document like beautiful soup? why don't you *use* beautiful soup? It is a module... Or lxml, which works a bit better than BF 3.1 (post parser change) nowadays. --

Re: Does python have the capability for driver development ?

2009-07-30 Thread Michel Claveau - MVP
Hi! Python is interpreted No. Python is compiled (-- .pyc) But the term to compile is not always unambiguous... And the notion of compiler is not attached to Python (the language), but is attached to the implementation. @+ MCI -- http://mail.python.org/mailman/listinfo/python-list

Bug in IEHtmlWindow?

2009-07-30 Thread Massi
Hi everyone, I'm trying to use IEHtmlWindow in my application (python 2.5, wxpython 2.8 on win xp). Everything is ok, but I encountered a problem which also affects the demo. If I make a research on google a strange message appears, saying (I'll try to translate from italian): Error during

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Marcus Wanner wrote: cut Look for example to libusb, which provides a userspace environment and pyusb which uses that and provides an interface to Python. iicr pyusb uses a c interface to libusb, not python... According to them they use ctypes indeed. Sorry if I was misleading in my

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Michel Claveau - MVP wrote: Hi! Python is interpreted No. Python is compiled (-- .pyc) But the term to compile is not always unambiguous... And the notion of compiler is not attached to Python (the language), but is attached to the implementation. @+ MCI Well the pyc, which I thought

string.Template issue

2009-07-30 Thread Javier Collado
Hello, In the string.Template documentation (http://docs.python.org/library/string.html) it's explained that if a custom regular expression for pattern substitution is needed, it's possible to override idpattern class attribute (whose default value is [_a-z][_a-z0-9]*). However, if the custom

Re: Does python have the capability for driver development ?

2009-07-30 Thread Christian Heimes
Martin P. Hellwig wrote: Well the pyc, which I thought was the Python bytecode, is then interpreted by the VM. Python is often referred as byte-code interpreted language. Most modern languages are interpreted languages. The list [1] is rather long. Technically speaking even native code is

Re: Run pyc file without specifying python path ?

2009-07-30 Thread PythonAB
Hi Dave, Your solution sort of defeats my intended purpose (sorry for not divulging my 'hidden agenda'). I wanted my application to hide the fact that it's a python script, and look as much as possible like it's a compiled program. The reason I don't just give my user a py file, is that I

Pyplot

2009-07-30 Thread Kaan AKŞİT
I am a newbee in Python. I have some problem with usage of Pyplot. I have a loop that creates plot in every end of it. Problem starts here: The first plot is fine but the second one is plotted onto the first plot. I use: plt.cla() plt.draw() plt.hold(False) plt.close() plt.clf() but nothing

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Christian Heimes
Barak, Ron wrote: Your solution sort of defeats my intended purpose (sorry for not divulging my 'hidden agenda'). I wanted my application to hide the fact that it's a python script, and look as much as possible like it's a compiled program. The reason I don't just give my user a py file, is

Re: Pyplot

2009-07-30 Thread Kaan AKŞİT
Please help me I have been dealing with this little piece of code for 2 days. I am stuck and loosing time with it. plt.figure(count) plt.xlabel(Time steps) plt.ylabel(Values) plt.title(Output of ADCs) plt.plot(timing,adc0)

Can you easy_install from your localhost?

2009-07-30 Thread Ronn Ross
I have a package i would like to store locally. If it is stored locally can I do something like ' easy_install http://localhost/package ' ? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: set variable to looping index?

2009-07-30 Thread Bearophile
Martin: for f in var1_fn, var2_fn, var3_fn:     if f.split('.')[0] == 'var1':         var1 = call_some_function(f)         .         .         .       etc As usual I have big problems in understanding what you want to do. Please, show an example of the contents of var1_fn, var2_fn, etc.

Compiling Python for uCLinux appliance?

2009-07-30 Thread Gilles Ganault
Hello I just got a small appliance based on a Blackfin CPU with 64MB RAM and 258MB NAND flash. Using the stock software, there's about 30MB of RAM left. Besides C/C++ and shel scripts, I was wondering if it were realistic to upload a few Python scripts in such a small appliance? Thank you. --

Re: Can you easy_install from your localhost?

2009-07-30 Thread Christian Heimes
Ronn Ross schrieb: I have a package i would like to store locally. If it is stored locally can I do something like ' easy_install http://localhost/package ' ? Thanks You can do: easy_install /path/to/package-0.1.tar.gz or you can put your packages into

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-30 Thread Steven D'Aprano
On Wed, 29 Jul 2009 21:34:07 -0700, Chris Rebert wrote: The difference is that it handles complex numbers, whereas the plain math module doesn't. I would guess the reason there are separate modules is for performance, so as to avoid having to dispatch on type at runtime. But this is only a

Help on Reading Attached Image on Excel

2009-07-30 Thread eman
Anyone know how to read included images in Excel using Python? I've tried xlrd and pyexcelerator, but i couldn't figure out how to do it. If anyone has experience in this, please help. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-30 Thread Chris Rebert
On Thu, Jul 30, 2009 at 3:10 AM, Steven D'Apranoste...@remove.this.cybersource.com.au wrote: On Wed, 29 Jul 2009 21:34:07 -0700, Chris Rebert wrote: The difference is that it handles complex numbers, whereas the plain math module doesn't. I would guess the reason there are separate modules is

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Steven D'Aprano
On Thu, 30 Jul 2009 07:01:28 +0100, Barak, Ron wrote: I wanted my application to hide the fact that it's a python script, and look as much as possible like it's a compiled program. What do you think the c in .pyc stands for? What it's not is a compiled to machine-code stand alone executable.

Re: socket send

2009-07-30 Thread Francesco Bochicchio
On Jul 30, 5:52 am, NighterNet darkne...@gmail.com wrote: I am trying to figure out how to send text or byte in python 3.1. I am trying to send data to flash socket to get there. I am not sure how to work it. buff= 'id=' , self.id , ':balive=False\n' clientSock.send(buff); Try putting a 'b'

Re: Confessions of a Python fanboy

2009-07-30 Thread Marco Mariani
r wrote: My adventures in Ruby. Oh, it's you. Good boy. Now, why don't you have a look at javascript and come back in six months? Or better yet, haskell and twelve months. thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: New implementation of re module

2009-07-30 Thread Wolfgang Rohdewald
On Tuesday 28 July 2009, Christopher Arndt wrote: setup(name='regex', version='1.0', py_modules = ['regex'], ext_modules=[Extension('_regex', ['_regex.c'])], ) Also, you need to copy unicodedata_db.h from the Modules directory of the Python source tree to your working

RE: Run pyc file without specifying python path ?

2009-07-30 Thread Barak, Ron
From: PythonAB [mailto:pyt...@rgbaz.eu] Sent: Thursday, July 30, 2009 12:18 To: Barak, Ron Cc: 'Dave Angel'; 'python-list@python.org' Subject: Re: Run pyc file without specifying python path ? Hi Dave, Your solution sort of defeats my intended purpose (sorry

Python processors? : WAS Re: Does python have the capability for driver development ?

2009-07-30 Thread Francesco Bochicchio
On Jul 30, 11:10 am, Christian Heimes li...@cheimes.de wrote: Martin P. Hellwig wrote: Well the pyc, which I thought was the Python bytecode, is then interpreted by the VM. Python is often referred as byte-code interpreted language. Most modern languages are interpreted languages. The list

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Chris Rebert
On Thu, Jul 30, 2009 at 3:42 AM, Barak, Ronron.ba...@lsi.com wrote: From: PythonAB [mailto:pyt...@rgbaz.eu] Sent: Thursday, July 30, 2009 12:18 To: Barak, Ron Cc: 'Dave Angel'; 'python-list@python.org' Subject: Re: Run pyc file without specifying python

Re: New implementation of re module

2009-07-30 Thread MRAB
Wolfgang Rohdewald wrote: On Tuesday 28 July 2009, Christopher Arndt wrote: setup(name='regex', version='1.0', py_modules = ['regex'], ext_modules=[Extension('_regex', ['_regex.c'])], ) Also, you need to copy unicodedata_db.h from the Modules directory of the Python source tree to

Re: Confessions of a Python fanboy

2009-07-30 Thread Masklinn
On 30 Jul 2009, at 06:04 , alex23 wrote: On Jul 30, 1:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly Ruby -- obj.m1.m2.m3 -- sweeet! Man, i must admit i really like this, and your code will look so much cleaner.

Re: Does underscore has any special built-in meaningin Python ?

2009-07-30 Thread Bruno Desthuilliers
Ben Finney a écrit : dandi kain dandi.k...@gmail.com writes: What is the functionality of __ or _ , leading or trailing an object , class ot function ? OP Please note that in Python, classes and functions are objects too. But anyway, these underscores are part of *identifiers*, not objects

Re: Confessions of a Python fanboy

2009-07-30 Thread superpollo
Masklinn wrote: ... That's an interesting point, but not relevant at the end of the day: `foo.length` and `length(foo)` have the same practicality. On the other hand Ruby can be praised for the coherence: everything's a method period end of the story; while Python does have a dichotomy

Re: Looking for a dream language: sounds like Python to me.

2009-07-30 Thread ray
Where can I find a Python functionality like simulink  ? Stef, I saw this at: http://showmedo.com/videotutorials/video?name=743fromSeriesID=743 Ray -- http://mail.python.org/mailman/listinfo/python-list

Re: Confessions of a Python fanboy

2009-07-30 Thread Jean-Michel Pichavant
superpollo wrote: Masklinn wrote: ... That's an interesting point, but not relevant at the end of the day: `foo.length` and `length(foo)` have the same practicality. On the other hand Ruby can be praised for the coherence: everything's a method period end of the story; while Python does

Re: Python processors? : WAS Re: Does python have the capability for driver development ?

2009-07-30 Thread Chris Rebert
On Thu, Jul 30, 2009 at 3:49 AM, Francesco Bochicchiobieff...@gmail.com wrote: On Jul 30, 11:10 am, Christian Heimes li...@cheimes.de wrote: Martin P. Hellwig wrote: Well the pyc, which I thought was the Python bytecode, is then interpreted by the VM. Python is often referred as byte-code

Re: New implementation of re module

2009-07-30 Thread Wolfgang Rohdewald
On Thursday 30 July 2009, MRAB wrote: There are other lines which are similar, eg line 1487. Do they all give the same/similar error with your compiler? yes. The full output with gcc-4.3: notebook:~/kmj/src$ LANG=C python setup.py build running build running build_py running build_ext

Re: Confessions of a Python fanboy

2009-07-30 Thread Masklinn
On 30 Jul 2009, at 14:03 , superpollo wrote: Masklinn wrote: ... That's an interesting point, but not relevant at the end of the day: `foo.length` and `length(foo)` have the same practicality. On the other hand Ruby can be praised for the coherence: everything's a method period end of

Regexp problem

2009-07-30 Thread Beldar
Hi there! I have a problem and i'm not very good at regular expressions. I have a text like lalala lalala tiruri beldar-is-listening tiruri lalala I need a regexp to get the 'beldar' part, the format is 'something-is-listening', i need to get the something part, use it in my code, and then

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-30 Thread Nobody
On Wed, 29 Jul 2009 23:24:11 -0500, pdlemper wrote: The following numerical approximation for Euler's Gamma function is found in http://en.wikipedia.org/wiki/Lanczos_approximation from cmath import * This works in Python 3.0 But I can't figure out where it gets cmath.Searching

Image merging

2009-07-30 Thread James Matthews
Hi, I need to create an app that takes to images and mergers them. After googling around I have found 4 graphic library's that I can use. However since I am new to image programming can you please tell me which one you think would be the best. The ones I found were cairographics PIL Imagemagick

Re: Run pyc file without specifying python path ?

2009-07-30 Thread PythonAB
On 30 jul 2009, at 12:57, Chris Rebert wrote: On Thu, Jul 30, 2009 at 3:42 AM, Barak, Ronron.ba...@lsi.com wrote: From: PythonAB [mailto:pyt...@rgbaz.eu] Sent: Thursday, July 30, 2009 12:18 To: Barak, Ron Cc: 'Dave Angel'; 'python-list@python.org' Subject:

Re: New implementation of re module

2009-07-30 Thread MRAB
Wolfgang Rohdewald wrote: On Thursday 30 July 2009, MRAB wrote: There are other lines which are similar, eg line 1487. Do they all give the same/similar error with your compiler? yes. The full output with gcc-4.3: notebook:~/kmj/src$ LANG=C python setup.py build running build running

RE: Run pyc file without specifying python path ?

2009-07-30 Thread Dave Angel
Barak, Ron wrote: -Original Message- From: Dave Angel [mailto:da...@ieee.org] Sent: Wednesday, July 29, 2009 21:05 To: Barak, Ron Cc: 'python-list@python.org' Subject: Re: Run pyc file without specifying python path ? Barak, Ron wrote: Hi, I wanted to make a python byte-code

Re: Regexp problem

2009-07-30 Thread Tim Chase
I have a problem and i'm not very good at regular expressions. I have a text like lalala lalala tiruri beldar-is-listening tiruri lalala I need a regexp to get the 'beldar' part, the format is 'something-is-listening', i need to get the something part, use it in my code, and then replace the

Re: Regexp problem

2009-07-30 Thread MRAB
Beldar wrote: Hi there! I have a problem and i'm not very good at regular expressions. I have a text like lalala lalala tiruri beldar-is-listening tiruri lalala I need a regexp to get the 'beldar' part, the format is 'something-is-listening', i need to get the something part, use it in my code,

Re: New implementation of re module

2009-07-30 Thread Wolfgang Rohdewald
On Thursday 30 July 2009, MRAB wrote: So it complains about: ++(RE_CHAR*)context-text_ptr but not about: ++info-repeat.count Does this mean that the gcc compiler thinks that the cast makes it an rvalue? I'm using Visual C++ 2008 Express Edition, which doesn't complain. What

Re: Python ctypes on win64

2009-07-30 Thread ulf
On Jul 25, 3:09 am, a...@pythoncraft.com (Aahz) wrote: In article f415d834-b2ac-4036-afb1-a12c79480...@i6g2000yqj.googlegroups.com, Thanks, I'll try there. ulf  wfl...@gmail.com wrote: Does anybody know if python includes a win64 version ofctypes? According to the documentation it should

Re: Does python have the capability for driver development ?

2009-07-30 Thread Dave Angel
Martin P. Hellwig wrote: div class=moz-text-flowed style=font-family: -moz-fixedMichel Claveau - MVP wrote: Hi! Python is interpreted No. Python is compiled (-- .pyc) But the term to compile is not always unambiguous... And the notion of compiler is not attached to Python (the language),

Re: New implementation of re module

2009-07-30 Thread Wolfgang Rohdewald
On Thursday 30 July 2009, Wolfgang Rohdewald wrote: so I did the conversion mentioned there. This works: I actually do not know if it works - but it compiles. -- Wolfgang -- http://mail.python.org/mailman/listinfo/python-list

Re: Does python have the capability for driver development ?

2009-07-30 Thread Ben Finney
Michel Claveau - MVPenleverlesx_xx...@xmclavxeaux.com writes: Hi! Python is interpreted No. Yes. The same Python code is both interpreted and compiled so as to run it. Python is compiled (-- .pyc) The Python bytecode (the contents of the compiled ‘foo.pyc’ file) is then interpreted by

Re: Regexp problem

2009-07-30 Thread Beldar
On 30 jul, 15:07, MRAB pyt...@mrabarnett.plus.com wrote: Beldar wrote: Hi there! I have a problem and i'm not very good at regular expressions. I have a text like lalala lalala tiruri beldar-is-listening tiruri lalala I need a regexp to get the 'beldar' part, the format is

Re: PyPDF and print restrictions

2009-07-30 Thread Chris Curvey
On Jul 27, 4:16 pm, Chris Curvey ccur...@gmail.com wrote: Has anyone out there been able to enforce print restrictions on a PDF document by usingPyPDF? The documentation for encrypt states:  # @param user_pwd The user password, which allows for opening and reading  # the PDF file with the

Re: Regexp problem

2009-07-30 Thread Marcus Wanner
On 7/30/2009 9:32 AM, Beldar wrote: On 30 jul, 15:07, MRAB pyt...@mrabarnett.plus.com wrote: Beldar wrote: Hi there! I have a problem and i'm not very good at regular expressions. I have a text like lalala lalala tiruri beldar-is-listening tiruri lalala I need a regexp to get the 'beldar'

Re: New implementation of re module

2009-07-30 Thread Piet van Oostrum
MRAB pyt...@mrabarnett.plus.com (M) wrote: M Hi all, M I've been working on a new implementation of the re module. The details M are at http://bugs.python.org/issue2636, specifically from M http://bugs.python.org/issue2636#msg90954. I've included a .pyd file for M Python 2.6 on Windows if you

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Dave Angel wrote: cut definition/interpretation of compiling Ah yes, we thread on the territory of word definition and difference in interpretation. Any argument is doomed to fail if not agreed or at least taken in perspective of the terminology used by users. I could be (well it is quite

Re: Semaphore Techniques

2009-07-30 Thread Piet van Oostrum
Carl Banks pavlovevide...@gmail.com (CB) wrote: CB On Jul 29, 7:14 am, Piet van Oostrum p...@cs.uu.nl wrote: Carl Banks pavlovevide...@gmail.com (CB) wrote: CB On Jul 28, 3:15 pm, John D Giotta jdgio...@gmail.com wrote: I'm looking to run a process with a limit of 3 instances, but each

Re: gamma approximation : what is module cmath and where is it located ?

2009-07-30 Thread Dave Angel
pdlem...@earthlink.net wrote: from cmath import * snip What is cmath, where did it come from and how does it differ from the standard math module ? Dave WB3DWE I saw the number 4 in silver, Guido (apologies to Wm

Re: socket send

2009-07-30 Thread Mark Tolonen
NighterNet darkne...@gmail.com wrote in message news:55aba832-df6d-455f-bf34-04d37eb06...@i4g2000prm.googlegroups.com... I am trying to figure out how to send text or byte in python 3.1. I am trying to send data to flash socket to get there. I am not sure how to work it. buff= 'id=' , self.id

Re: No PyPI search for 3.x compatible packages

2009-07-30 Thread Francesco Bochicchio
On 30 Lug, 01:55, Neil Hodgson nyamatongwe+thun...@gmail.com wrote:    There appears to be no way to search PyPI for packages that are compatible with Python 3.x. There are classifiers for 'Programming Language' including 'Programming Language :: Python :: 3' but that seems to be for

Re: Regexp problem

2009-07-30 Thread Peter Brett
Marcus Wanner marc...@cox.net writes: On 7/30/2009 9:32 AM, Beldar wrote: On 30 jul, 15:07, MRAB pyt...@mrabarnett.plus.com wrote: Beldar wrote: Hi there! I have a problem and i'm not very good at regular expressions. I have a text like lalala lalala tiruri beldar-is-listening tiruri

Re: No PyPI search for 3.x compatible packages

2009-07-30 Thread Paul Moore
2009/7/30 Francesco Bochicchio bieff...@gmail.com: On 30 Lug, 01:55, Neil Hodgson nyamatongwe+thun...@gmail.com wrote:    There appears to be no way to search PyPI for packages that are compatible with Python 3.x. There are classifiers for 'Programming Language' including 'Programming Language

Re: Does python have the capability for driver development ?

2009-07-30 Thread Dave Angel
Martin P. Hellwig wrote: div class=moz-text-flowed style=font-family: -moz-fixedDave Angel wrote: cut definition/interpretation of compiling Ah yes, we thread on the territory of word definition and difference in interpretation. Any argument is doomed to fail if not agreed or at least taken

[ANN] pyKook 0.0.2 - a simple build tool similar to Make or Ant

2009-07-30 Thread kwatch
Hi, I have released pyKook 0.0.2. http://pypi.python.org/pypi/Kook/0.0.2 http://www.kuwata-lab.com/kook/ http://www.kuwata-lab.com/kook/pykook-users-guide.html Overview pyKook is a simple build tool similar to Make, Ant, Rake, or SCons. pyKook regards software project as cooking.

Re: Very Strange Problem

2009-07-30 Thread Simon Forman
On Wed, Jul 29, 2009 at 3:10 PM, Omer Khalidomer.kha...@cern.ch wrote: Hi Dave, Thanks for your reply. I actually didn't cut and paste my code as it was dispersed in different places, i typed the logic behind my code in the email (and obiviously made some typos, indentations is some thing

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, Dave Angel da...@dejaviewphoto.com wrote: Steven makes some good points. You have to define what level of clever you're protecting from. A determined hacker will get in no matter what you do, unless you want to ship the program in a proprietary embedded system, encased in

Re: Does python have the capability for driver development ?

2009-07-30 Thread Ben Finney
Martin P. Hellwig martin.hell...@dcuktec.org writes: Machine Code: Whatever the machine executes, it could be that the CPU uses an abstraction of microcode to do this but from the perspective of the user, this is all done in the same 'black box' This requires, of course, defining what is the

Re: Does python have the capability for driver development ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, Martin P. Hellwig martin.hell...@dcuktec.org wrote: Michel Claveau - MVP wrote: Python is interpreted No. Python is compiled (-- .pyc) But the term to compile is not always unambiguous... And the notion of compiler is not attached to Python (the language), but is attached

Re: Connecting multiple test cases in a sort of pipe

2009-07-30 Thread Raghuram Devarakonda
On Jul 30, 2:43 am, Diez B. Roggisch de...@nospam.web.de wrote: Write a TestCase-subclass that simply works like this: class FileTests(TestCase): def test_create(self): self.created_file = create() assert something def test_list(self): self.test_create()

Re: Does python have the capability for driver development ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, Dave Angel da...@ieee.org wrote: As far as I know, nobody has yet built a microcode implementation of a Python VM (Virtual Machine). Nor have I seen one for the Java VM. Didn't Sun or somebody do one 10-12 years ago? Or did I misinterpret some press release or something?

Use existing IE cookie

2009-07-30 Thread KB
Hi there, Relevant versions: Python 2.5, Vista Home, IE7 I am trying to scrape a website I have browsed manually in the past, and also manually selected my options, and now want python to use my existing cookie from the manual browse when downloading data. Using:

RE: Run pyc file without specifying python path ?

2009-07-30 Thread Barak, Ron
Hi Dave, On second thoughts, I may have a problem implementing the wrapper solution, because my actual test_pyc.pyc, needs to parse its command line. Namely, the actual call to test_pyc.pyc looks something like this: $ python test_pyc.py -U dave -PpasswoRD -C CreateMcGroupOnVolume --SVMs_IPs

Re: Use existing IE cookie

2009-07-30 Thread Diez B. Roggisch
KB wrote: Hi there, Relevant versions: Python 2.5, Vista Home, IE7 I am trying to scrape a website I have browsed manually in the past, and also manually selected my options, and now want python to use my existing cookie from the manual browse when downloading data. Using:

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, Barak, Ron ron.ba...@lsi.com wrote: Hi Dave, On second thoughts, I may have a problem implementing the wrapper solution, because my actual test_pyc.pyc, needs to parse its command line. Namely, the actual call to test_pyc.pyc looks something like this: $ python test_pyc.py

Re: Use existing IE cookie

2009-07-30 Thread KB
Using:http://code.activestate.com/recipes/80443/ Thanks for the prompt reply, Diez! Using the above I have found the name of the cookie (I did google how to use IE cookies in python and that was the best match) but it only tells me the name of the cookie, not how to use it. Any clues? TIA!

Help with Regex for domain names

2009-07-30 Thread Feyo
I'm trying to figure out how to write efficiently write a regex for domain names with a particular top level domain. Let's say, I want to grab all domain names with country codes .us, .au, and .de. I could create three different regexs that would work: regex = re.compile(r'[\w\-\.]+\.us) regex =

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Ben Finney wrote: Martin P. Hellwig martin.hell...@dcuktec.org writes: Machine Code: Whatever the machine executes, it could be that the CPU uses an abstraction of microcode to do this but from the perspective of the user, this is all done in the same 'black box' This requires, of course,

Re: Use existing IE cookie

2009-07-30 Thread Diez B. Roggisch
KB wrote: Using:http://code.activestate.com/recipes/80443/ Thanks for the prompt reply, Diez! Using the above I have found the name of the cookie (I did google how to use IE cookies in python and that was the best match) but it only tells me the name of the cookie, not how to use it.

Re: Does python have the capability for driver development ?

2009-07-30 Thread MRAB
Dave Angel wrote: [snip] As far as I know, nobody has yet built a microcode implementation of a Python VM (Virtual Machine). Nor have I seen one for the Java VM. However, in the early 80's there was a microcode implementation of the P-system VM. It was never a commercial success, but it

Re: Does python have the capability for driver development ?

2009-07-30 Thread MRAB
Ben Finney wrote: Martin P. Hellwig martin.hell...@dcuktec.org writes: Machine Code: Whatever the machine executes, it could be that the CPU uses an abstraction of microcode to do this but from the perspective of the user, this is all done in the same 'black box' This requires, of course,

Re: Help with Regex for domain names

2009-07-30 Thread Tim Daneliuk
Feyo wrote: I'm trying to figure out how to write efficiently write a regex for domain names with a particular top level domain. Let's say, I want to grab all domain names with country codes .us, .au, and .de. I could create three different regexs that would work: regex =

Re: Help with Regex for domain names

2009-07-30 Thread MRAB
Feyo wrote: I'm trying to figure out how to write efficiently write a regex for domain names with a particular top level domain. Let's say, I want to grab all domain names with country codes .us, .au, and .de. I could create three different regexs that would work: regex =

Re: Use existing IE cookie

2009-07-30 Thread KB
What does you full example look like, including the cookie-acquisition-stuff? Diez I ran them seperately, hoping for a clue as to what my cookiejar was. The cookie-acquisition stuff returns screener.ashx?v=151 when I search with my domain I am interested in. I have tried

Re: socket send

2009-07-30 Thread NighterNet
On Jul 30, 6:56 am, Mark Tolonen metolone+gm...@gmail.com wrote: NighterNet darkne...@gmail.com wrote in message news:55aba832-df6d-455f-bf34-04d37eb06...@i4g2000prm.googlegroups.com... I am trying to figure out how to send text or byte in python3.1. I am trying to send data to

Re: Confessions of a Python fanboy

2009-07-30 Thread Colin J. Williams
Some have treated this as a troll. I don't. r wrote: [snip] 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly Ruby -- obj.m1.m2.m3 -- sweeet! Man, i must admit i really like this, and your code will look so much cleaner. +1 2.) the .each method

Re: Use existing IE cookie

2009-07-30 Thread Diez B. Roggisch
KB wrote: What does you full example look like, including the cookie-acquisition-stuff? Diez I ran them seperately, hoping for a clue as to what my cookiejar was. The cookie-acquisition stuff returns screener.ashx?v=151 when I search with my domain I am interested in. I have tried

Re: Confessions of a Python fanboy

2009-07-30 Thread Falcolas
On Jul 29, 9:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly   Ruby -- obj.m1.m2.m3  -- sweeet! Man, i must admit i really like this, and your code will look so much cleaner. I personally would not prefer this, and

Re: Use existing IE cookie

2009-07-30 Thread KB
On Jul 30, 9:23 am, Diez B. Roggisch de...@nospam.web.de wrote: KB wrote: What does you full example look like, including the cookie-acquisition-stuff? Diez I ran them seperately, hoping for a clue as to what my cookiejar was. The cookie-acquisition stuff returns

ANN: Leo 4.6.1 final released

2009-07-30 Thread Edward K Ream
Leo 4.6.1 final is now available at: http://sourceforge.net/project/showfiles.php?group_id=3458package_id=29106 Leo is a text editor, data organizer, project manager and much more. See: http://webpages.charter.net/edreamleo/intro.html Leo 4.6.1 fixes several minor bugs in Leo 4.6. The

Re: Confessions of a Python fanboy

2009-07-30 Thread Inky 788
On Jul 30, 12:04 am, alex23 wuwe...@gmail.com wrote: On Jul 30, 1:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly   Ruby -- obj.m1.m2.m3  -- sweeet! Man, i must admit i really like this, and your code will look

Re: socket send

2009-07-30 Thread Francesco Bochicchio
On 30 Lug, 18:06, NighterNet darkne...@gmail.com wrote: On Jul 30, 6:56 am, Mark Tolonen metolone+gm...@gmail.com wrote: NighterNet darkne...@gmail.com wrote in message news:55aba832-df6d-455f-bf34-04d37eb06...@i4g2000prm.googlegroups.com... I am trying to figure out how to send text

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Dave Angel
Barak, Ron wrote: Hi Dave, On second thoughts, I may have a problem implementing the wrapper solution, because my actual test_pyc.pyc, needs to parse its command line. Namely, the actual call to test_pyc.pyc looks something like this: $ python test_pyc.py -U dave -PpasswoRD -C

Re: Confessions of a Python fanboy

2009-07-30 Thread r
On Jul 30, 11:31 am, Falcolas garri...@gmail.com wrote: On Jul 29, 9:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly   Ruby -- obj.m1.m2.m3  -- sweeet! Man, i must admit i really like this, and your code will

Re: Confessions of a Python fanboy

2009-07-30 Thread Masklinn
On 30 Jul 2009, at 18:31 , Falcolas wrote: On Jul 29, 9:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly Ruby -- obj.m1.m2.m3 -- sweeet! Man, i must admit i really like this, and your code will look so much cleaner.

Re: Confessions of a Python fanboy

2009-07-30 Thread Masklinn
On 30 Jul 2009, at 19:01 , Inky 788 wrote: On Jul 30, 12:04 am, alex23 wuwe...@gmail.com wrote: On Jul 30, 1:06 pm, r rt8...@gmail.com wrote: 1.) No need to use () to call a function with no arguments. Python -- obj.m2().m3() --ugly Ruby -- obj.m1.m2.m3 -- sweeet! Man, i must admit i

NASA using Python / Django for NEBULA (cloud comp.)

2009-07-30 Thread Mehdi H
Hello Python devs! I'm supporting NASA on their NEBULA project and they're looking for Python / Django experts to join their team here in Mountain View, CA. If you're interested, let me know and we can talk more on how they're using Django in their environment! Thanks, Mehdi --

  1   2   3   >