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 S

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

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 executi

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Marcus Wanner wrote: 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 explanati

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 though

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 pat

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 inte

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 works

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 fi

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) plt.plot(

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,

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

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 /some/directory/simple/packagename/pa

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

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'Aprano 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 for performance, >> so as t

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 executa

Re: socket send

2009-07-30 Thread Francesco Bochicchio
On Jul 30, 5:52 am, NighterNet 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' before the co

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 workin

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 for

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 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 [1] is r

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Chris Rebert
On Thu, Jul 30, 2009 at 3:42 AM, Barak, Ron 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 path ? > > >

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

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 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. How do you

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

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

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 be

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=743&fromSeriesID=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 h

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 Bochicchio wrote: > On Jul 30, 11:10 am, Christian Heimes 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.

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 build

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 t

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 repla

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".S

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 Imagemagic

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, Ron 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 wi

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 build_

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 fil

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 who

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

Re: Python ctypes on win64

2009-07-30 Thread ulf
On Jul 25, 3:09 am, a...@pythoncraft.com (Aahz) wrote: > In article , Thanks, I'll try there. > > ulf   wrote: > > >Does anybody know if python includes a win64 version ofctypes? > > >According to the documentation it should be included - at least > >there's no special remarks for win64, and I hav

Re: Does python have the capability for driver development ?

2009-07-30 Thread Dave Angel
Martin P. Hellwig wrote: 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 W

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 - MVP" 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 the run-time Python int

Re: Regexp problem

2009-07-30 Thread Beldar
On 30 jul, 15:07, MRAB 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 > > 'something-is-listening',

Re: PyPDF and print restrictions

2009-07-30 Thread Chris Curvey
On Jul 27, 4:16 pm, Chris Curvey 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 restrictio

Re: Regexp problem

2009-07-30 Thread Marcus Wanner
On 7/30/2009 9:32 AM, Beldar wrote: On 30 jul, 15:07, MRAB 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 'somethin

Re: New implementation of re module

2009-07-30 Thread Piet van Oostrum
> MRAB (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 want to try it

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Dave Angel wrote: 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 likely) wrong in my interpretation of the ter

Re: Semaphore Techniques

2009-07-30 Thread Piet van Oostrum
> Carl Banks (CB) wrote: >CB> On Jul 29, 7:14 am, Piet van Oostrum wrote: >>> > Carl Banks (CB) wrote: >>> >CB> On Jul 28, 3:15 pm, John D Giotta wrote: >>> >>> I'm looking to run a process with a limit of 3 instances, but each >>> >>> execution is over a crontab interval. I've been in

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 * 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 Carlos Wil

Re: socket send

2009-07-30 Thread Mark Tolonen
"NighterNet" 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 , ':balive=False\

Re: No PyPI search for 3.x compatible packages

2009-07-30 Thread Francesco Bochicchio
On 30 Lug, 01:55, Neil Hodgson 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 implementation language since there

Re: Regexp problem

2009-07-30 Thread Peter Brett
Marcus Wanner writes: > On 7/30/2009 9:32 AM, Beldar wrote: >> On 30 jul, 15:07, MRAB 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

Re: No PyPI search for 3.x compatible packages

2009-07-30 Thread Paul Moore
2009/7/30 Francesco Bochicchio : > On 30 Lug, 01:55, Neil Hodgson 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

Re: Does python have the capability for driver development ?

2009-07-30 Thread Dave Angel
Martin P. Hellwig wrote: Dave Angel wrote: 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 likely) wrong in my

[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. Term

Re: Very Strange Problem

2009-07-30 Thread Simon Forman
On Wed, Jul 29, 2009 at 3:10 PM, Omer Khalid 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 else) but my Plea

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, Dave Angel 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 epoxy. That won't stop

Re: Does python have the capability for driver development ?

2009-07-30 Thread Ben Finney
"Martin P. Hellwig" 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 machine. Python byte

Re: Does python have the capability for driver development ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, Martin P. Hellwig 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 to the i

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" 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 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? Off to google.

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: http://code.activestate.com/reci

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

Re: Run pyc file without specifying python path ?

2009-07-30 Thread Grant Edwards
On 2009-07-30, 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 -P

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

Re: Does python have the capability for driver development ?

2009-07-30 Thread Martin P. Hellwig
Ben Finney wrote: "Martin P. Hellwig" 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 machin

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

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 exis

Re: Does python have the capability for driver development ?

2009-07-30 Thread MRAB
Ben Finney wrote: "Martin P. Hellwig" 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 machin

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.compile(r'

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.compile(r'[\w\-\.]+\

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 urllib2.HTTP

Re: socket send

2009-07-30 Thread NighterNet
On Jul 30, 6:56 am, "Mark Tolonen" wrote: > "NighterNet" 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 flashsocketto get there. I am not sure how t

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 me

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

Re: Confessions of a Python fanboy

2009-07-30 Thread Falcolas
On Jul 29, 9:06 pm, r 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 woul

Re: Use existing IE cookie

2009-07-30 Thread KB
On Jul 30, 9:23 am, "Diez B. Roggisch" 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 "screener.ash

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=3458&package_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 highlight

Re: Confessions of a Python fanboy

2009-07-30 Thread Inky 788
On Jul 30, 12:04 am, alex23 wrote: > On Jul 30, 1:06 pm, r 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 > > clean

Re: socket send

2009-07-30 Thread Francesco Bochicchio
On 30 Lug, 18:06, NighterNet wrote: > On Jul 30, 6:56 am, "Mark Tolonen" wrote: > > > > > > > "NighterNet" 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 s

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 CreateMcGroupOn

Re: Confessions of a Python fanboy

2009-07-30 Thread r
On Jul 30, 11:31 am, Falcolas wrote: > On Jul 29, 9:06 pm, r 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 > > cle

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

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 wrote: On Jul 30, 1:06 pm, r 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

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 -- http://mail.p

Re: Pyplot

2009-07-30 Thread Robert Kern
On 2009-07-30 04:02, Kaan AKŞİT wrote: 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)

Re: Help with Regex for domain names

2009-07-30 Thread Feyo
On Jul 30, 11:56 am, MRAB wrote: > 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 rege

Re: Confessions of a Python fanboy

2009-07-30 Thread r
On Jul 30, 12:15 pm, Masklinn wrote: [snip] > Furthermore Ruby has a pretty nice convention (sadly not used enough I   > think) taken from Scheme where it's possible to postfix a method name   > with "!" (note: the "!" is part of the name, there's no magic) to   > indicate that this method modifie

Re: Help with Regex for domain names

2009-07-30 Thread rurpy
On Jul 30, 9:56 am, MRAB wrote: > 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 regex

Re: Does python have the capability for driver development ?

2009-07-30 Thread Michael Torrie
MalC0de wrote: > please introduce me some resource for system programming, I know that > python is very well at system programming level. > thanks Although it is possible (as others have said) to embed Python the interpreter into a driver, no one has done that that I know of. You'd have to write

  1   2   >