A container object provides a method that returns an iterator object.
I need to iterate the sequence with that iterator, but need to skip
the first item. I can only iterate the whole sequence with:
for x in container.iterChildren():
How to skip the first item? It seems that it's a simple question.
Prof. William Battersea schrieb:
Hello,
Suppose I have a Vista machine called VISTA and an XP machine called
XP in a workgroup named WORKGROUP. Physically they're connected to a
router and I can see lists of public and shared files on each of them.
How do I address these for IO?
A search sugges
pyglet 1.1 has been released, with many new features since pyglet 1.0
(scroll down for details).
http://www.pyglet.org
---
pyglet provides an object-oriented programming interface for
developing games and other visually-rich applications for Windows, Mac
OS X and Linux. Some of the features of p
En Sun, 10 Aug 2008 17:21:13 -0300, Christian Heimes <[EMAIL PROTECTED]>
escribi�:
Calvin Spealman wrote:
dont quote me but i do think this check is being removed.
No, the check hasn't been removed - technically speaking. In Python 3.0
the behavior of the method descriptor has been change
I am pleased to announce papyros-0.2, the second alpha release of
papyros: http://code.google.com/p/papyros/.
Compared to the initial release 14 months ago, only the basic goal has
remained the same; both the API and the internals have been thoroughly
revamped. Some of the highlights are:
- As sim
En Thu, 07 Aug 2008 06:22:31 -0300, Ren ChunYi <[EMAIL PROTECTED]>
escribi�:
Does anyone here have some doc like WinCVS API? I'm reading WinCvs
integrated Macros, but someplace make me puzzle.
Better ask those questions in the WinCVS mailing list (or Yahoo group:
http://tech.groups.yahoo.
En Thu, 07 Aug 2008 19:08:56 -0300, Lisa Frauens <[EMAIL PROTECTED]>
escribi�:
I see there is an initial directory option in askopenfilename. However,
I want the initial directory to be the last directory used in a prior
execution of my script. Is there a way to force the askopenfilename
On Aug 12, 12:03 am, "Support Desk" <[EMAIL PROTECTED]> wrote:
> Google does'nt allow use of their API's anymore, I belive Yahoo has one
Are you sure?
"Google Custom Search enables you to search over a website or a
collection of websites. You can harness the power of Google to create
a search eng
En Wed, 06 Aug 2008 01:55:10 -0300, castironpi <[EMAIL PROTECTED]>
escribi�:
Do you know if uncooperative (not necc'ly malicious) code could
interfere:
__builtin__.int= None
__builtin__.int
__builtin__.int= type( 0 )
__builtin__.int
? Or would PyImport_Import(s) create a namespace that h
Hi,
[EMAIL PROTECTED] wrote:
> how can I combine some dynamically generated html code (using python) with
> the output of a urllib.openurl() call?
Why reinvent the wheel? Try one of the existing web frameworks. There may be a
learning curve for most of them, but you may also end up doing things t
En Thu, 07 Aug 2008 10:03:59 -0300, David Dean <[EMAIL PROTECTED]>
escribi�:
Is there a way for a python program start another python program, and
then continue, without waiting for the second program to finish?
os.startfile() seems to be what I want on windows, but I need it to work
on lin
> ./Parser/asdl_c.py -h ./Include ./Parser/Python.asdl
> Must specify exactly one output file
> make: *** [Include/Python-ast.h] Error 1
>
> Am I doing something wrong? If not, how do I work around this error?
For some reason, the getopt module in your host's python cannot process
the command li
Thank you for all your responses. I've tried the permutations road
(thank you to all those of you who have suggested it) and it takes %*&
%^ long :-) As expected. I've solved it a different way, which runs
through the 26 spots by just adding one at a time if available. Still
takes a long time, but
srinivasan srinivas wrote:
> Could someone suggest me ways to convert PDF files to HTML files??
> Does Python have any modules to do that job??
PDFMiner is a set of CLI tools written in Python, one of which
converts PDF to text, HTML and more:
http://www.unixuser.org/~euske/python/pdfminer/index.h
En Mon, 11 Aug 2008 12:58:00 -0300, Cromulent
<[EMAIL PROTECTED]> escribi�:
Okay I'm having a few issues with this and I can't seem to get it sorted
out (most likely due to my inexperience with Python).
Here is my Python code:
def fileInput():
data = []
s = raw_input("Please ent
On Aug 11, 7:34 pm, [EMAIL PROTECTED] wrote:
> Mensanator:
>
> > Ever tried to iterate 403 septillion times?
>
> The OP is talking about formulas, like:
> X + Y * Z = W
> Where X, Y, Z, W distinct and in [1, 26], so you have C(26, 4)
> combinations that's way less than 26!
>
> >>> binomial(26, 4)
>
En Mon, 11 Aug 2008 19:19:19 -0300, tow <[EMAIL PROTECTED]>
escribi�:
I have a python script (part of a django application, if it makes any
difference) which is exhibiting the following behaviour:
import my_module # succeeds
imp.find_module("my_module") # fails, raising ImportError
which is
Hello,
Suppose I have a Vista machine called VISTA and an XP machine called
XP in a workgroup named WORKGROUP. Physically they're connected to a
router and I can see lists of public and shared files on each of them.
How do I address these for IO?
A search suggested that the form open(r"\\server\f
alex23 wrote:
On Aug 12, 12:03 pm, Brad <[EMAIL PROTECTED]> wrote:
So let's say I want to edit this file and change Volume from 940 to 950.
Personally, I'd recommend avoiding re and sticking with the standard
string functions.
Something like this should be pretty effective:
open('outfile','
En Mon, 11 Aug 2008 18:47:53 -0300, <[EMAIL PROTECTED]> escribi�:
BTW, you are right about me not having a clue about http. It's the first
time I try to do something with it. May be you could point me out to
some good links where I can learn.
This topic was discussed some time ago - perhaps
well maybe am over-advertising .. excuse me ...
am new to python but my
"algo-comping cs.sco with python" thang kinda got lauched after all
so decided to move from java to python to do these thangs
completly platform independently
oh .. am just curious who are the guys over here composing weird
On Aug 8, 6:07 am, Mike Driscoll <[EMAIL PROTECTED]> wrote:
> On Aug 6, 8:07 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote:
>
> > >>> import os
> > >>> foo = os.system('whoami')
> > kevin
> > >>> print foo
> > 0
> > >>>
>
> > The standard output of the system command 'whoami' is my login name. Yet
On Aug 12, 12:03 pm, Brad <[EMAIL PROTECTED]> wrote:
> So let's say I want to edit this file and change Volume from 940 to 950.
Personally, I'd recommend avoiding re and sticking with the standard
string functions.
Something like this should be pretty effective:
>>> open('outfile','w').writeline
John:
> "append"? Don't you mean "add"???
Yes, that is what I meant, my apologies.
> What you need to do is practice translating from your
> requirements into Python, and it's not all that hard:
>
> "run a loop through foo" -> for key in foo:
> "match any of its keys that also exist in bar" -> i
First of all, I apologize if this would be more appropriate for python-
dev, but I don't normally subscribe to that list, and felt it would also
be of general use, so
I'm having problems building the latest Python 2.6 and 3.0 from
subversion, and I'm not sure how to resolve the problem. In
Hi, what I'd like to do is edit an input file for a calculation with
Python. Let's say that I have an input file like the following
-->>
BLAH BLAH BLAH
Other inputs, Volume 940 m^3, maybe some more stuff
STUFF STUFF
-->>
So let's say I
Kevin Walzer wrote:
>>> import os
>>> foo = os.system('whoami')
kevin
>>> print foo
0
>>>
The standard output of the system command 'whoami' is my login name. Yet
the value of the 'foo' object is '0,' not 'kevin.' How can I get the
value of 'kevin' associated with foo?
Hi Kevin, check
norseman wrote:
Tim;
Finally got a chance to test your snippet. Thank you for it!
I took the liberty of flushing it out a bit.
#!/---
#
import os
import win32com.client
excel = win32com.client.Dispatch( 'Excel.Application' )
excel.Visible=1# shows the spread
On Aug 12, 10:36 am, norseman <[EMAIL PROTECTED]> wrote:
> Tim;
> Finally got a chance to test your snippet. Thank you for it!
>
> I took the liberty of flushing it out a bit.
>
> #!/---
> #
> import os
> import win32com.client
>
> excel = win32com.client.Dispatch( 'Excel.A
On Aug 11, 2:41 pm, Johannes Bauer <[EMAIL PROTECTED]> wrote:
> Hello group,
>
> I'm having a seemingly simple problem. I want to generate a hierarchy of
> modules, like this one:
>
> GenerationScripts/
> GenerationScripts/dhcp
> GenerationScripts/bind9
>
> And the files:
>
> GenerationScripts/dhcp
Tim;
Finally got a chance to test your snippet. Thank you for it!
I took the liberty of flushing it out a bit.
#!/---
#
import os
import win32com.client
excel = win32com.client.Dispatch( 'Excel.Application' )
excel.Visible=1# shows the spreadsheet (can be
Mensanator:
> Ever tried to iterate 403 septillion times?
The OP is talking about formulas, like:
X + Y * Z = W
Where X, Y, Z, W distinct and in [1, 26], so you have C(26, 4)
combinations that's way less than 26!
>>> binomial(26, 4)
14950
So this can be solved with a xcombinations() generator.
On Aug 12, 9:14 am, Brandon <[EMAIL PROTECTED]> wrote:
> I wasn't sure about the update method either, since AFAICT (not far)
> the values would in fact update, not append as I needed them to.
"append"? Don't you mean "add"???
> But
> the iteritems and get combo definitely worked for me.
Under s
On Aug 11, 3:53 pm, Tobiah <[EMAIL PROTECTED]> wrote:
> On Mon, 11 Aug 2008 13:46:10 -0700, Tobiah wrote:
> > On Sat, 09 Aug 2008 08:07:26 -0700, Mensanator wrote:
>
> >> 40329146112660563558400
>
> > I think it's only 4 septillion.
>
> I meant to say 403.
Whatever.
Ever tried to iterate 403
I wasn't sure about the update method either, since AFAICT (not far)
the values would in fact update, not append as I needed them to. But
the iteritems and get combo definitely worked for me.
Thank you for the suggested link. I'm familiar with that page, but my
skill level isn't so far along yet
On Aug 12, 2:52 am, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Mon, 11 Aug 2008 00:27:46 -0700, Brandon wrote:
> > This should be pretty simple: I have two dictionaries, foo and bar. I
> > am certain that all keys in bar belong to foo as well, but I also know
> > that not a
On Aug 11, 5:17 am, [EMAIL PROTECTED] wrote:
> for similar tasks, I use pexpecthttp://pypi.python.org/pypi/pexpect.
>
> spawning bash process and simulate an interactive session. Here sending ls
> command, retrieving results and exiting. In the spawned process ssh or any
> other command, is just
"Harder to say what you want to do than to just do it."
The truly terrible thing is when you know that's the case even as
you're saying it. Thanks for the help, all!
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
[CODE]
f = StringIO.StringIO()
pylab.savefig(f)
return 'data:image/png,' + urllib.quote(f.getvalue())
[/CODE]
This works fine in Firefox, but not in IE7. Any ideas why?
Yes. Internet Explorer doesn't support the "data:" URI scheme.
--
Carsten Haese
http:/
On Mon, Aug 11, 2008 at 11:55 AM, Rob Cakebread <[EMAIL PROTECTED]> wrote:
>
> yolk 0.4.1 has been released. This is mainly a bugfix release.
>
> Changes:
>
> * Added HTTP proxy support for XML-RPC
> * -f is now case-insensitive
> * -S does not return the entire PyPI index if a package doesn't e
>> You should be using compile with the "single" start symbol, and then
>> use eval on the resulting code option.
>>
>>
> thanks Martin,
> but when I read the doc (of one of the many) "compile" functions,
> I see 2 problems:
> - I still have to provide "kind" as exec or eval
No, you can also us
I have a python script (part of a django application, if it makes any
difference) which is exhibiting the following behaviour:
import my_module # succeeds
imp.find_module("my_module") # fails, raising ImportError
which is completely baffling me. According to sys.path, both should
fail; the direct
btw, credits for the code shown below also for:
http://bitworking.org/news/Sparklines_in_data_URIs_in_Python
[EMAIL PROTECTED] wrote :
> This makes sense. Thanks!
>
> I managed to get what I wanted with something similar to what you suggested:
>
> [CODE]
> print "Content-Type: text/html\n\n"
>
Stef Mientki wrote:
Steven D'Aprano wrote:
The best solution is not to re-invent the wheel: "import code" is the
way to emulate Python's interactive interpreter.
sorry, but that confuses me even more,
"The code module provides facilities to implement read-eval-print loops
in Python. Two cl
Martin v. Löwis wrote:
So AFAIK, sometimes I've to use eval and sometimes I need exec,
so I use the following code (global / local dictionary parameters are
left out in this example):
Is this the (most) correct / elegant way, or are there better solutions ?
You should be using compile wi
This makes sense. Thanks!
I managed to get what I wanted with something similar to what you suggested:
[CODE]
print "Content-Type: text/html\n\n"
html="""
data analysis site
This is a test
After image text
"""
print html
On Aug 11, 9:56 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Diez B. Roggisch schrieb:
>
>
>
> > ff schrieb:
> >> Is it possible to create custom PyQt4 Slots, i have searched high and
> >> low to no avail;
>
> >> I have an application that can set animation speed to different
> >> levels, i
>> def create_request(url, headers):
>> headers.update(DEFAULT_HEADERS)
>> req = urllib2.Request(url, None, headers)
>> # ...
>> return req
>>
>> but of course this second example does the Wrong Thing, replacing
>> explicit headers with default values.
>
> There's a second code s
> So AFAIK, sometimes I've to use eval and sometimes I need exec,
> so I use the following code (global / local dictionary parameters are
> left out in this example):
>
>
> Is this the (most) correct / elegant way, or are there better solutions ?
You should be using compile with the "single" sta
On 11 ago, 22:29, Hartmut Goebel <[EMAIL PROTECTED]> wrote:
> > I'm developing an application with some reports and we're looking for
> > advice. This reports should be openoffice.org .odf files, pdf files,
> > and perhaps microsoft word files (.doc, .docx?) and must be digitally
> > signed. Is ou
Diez B. Roggisch schrieb:
ff schrieb:
Is it possible to create custom PyQt4 Slots, i have searched high and
low to no avail;
I have an application that can set animation speed to different
levels, i want the user to alter this, now quite clearly i can write a
single function to control setting
On Mon, 11 Aug 2008 13:46:10 -0700, Tobiah wrote:
> On Sat, 09 Aug 2008 08:07:26 -0700, Mensanator wrote:
>
>> 40329146112660563558400
>
> I think it's only 4 septillion.
I meant to say 403.
** Posted from http://www.teranews.com **
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 11 Aug 2008 13:46:10 -0700, Tobiah wrote:
> On Sat, 09 Aug 2008 08:07:26 -0700, Mensanator wrote:
>
>> 40329146112660563558400
>
> I think it's only 4 septillion.
I meant 403.
** Posted from http://www.teranews.com **
--
http://mail.python.org/mailman/listinfo/python-list
ff schrieb:
Is it possible to create custom PyQt4 Slots, i have searched high and
low to no avail;
I have an application that can set animation speed to different
levels, i want the user to alter this, now quite clearly i can write a
single function to control setting any speed with something li
On Sat, 09 Aug 2008 08:07:26 -0700, Mensanator wrote:
> 40329146112660563558400
I think it's only 4 septillion.
Perfectly manageable.
** Posted from http://www.teranews.com **
--
http://mail.python.org/mailman/listinfo/python-list
Is it possible to create custom PyQt4 Slots, i have searched high and
low to no avail;
I have an application that can set animation speed to different
levels, i want the user to alter this, now quite clearly i can write a
single function to control setting any speed with something like:
def setSp
sapsi <[EMAIL PROTECTED]> wrote:
> I have a C function f(void**,int *), in which it writes some
> information (it is a RGB32 image).
>
> Here is what i do
> rowlength=c_int()
> data=c_void_p()
> d=pointer(data)
> f(d,byref(rowlength)
> The call works (no segmentation fault), now how do i a
please respond with resume. Candidates must be in the USA.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm developing an application with some reports and we're looking for
advice. This reports should be openoffice.org .odf files, pdf files,
and perhaps microsoft word files (.doc, .docx?) and must be digitally
signed. Is out there some kind of libraries to ease this tasks?
For signing you c
[EMAIL PROTECTED] a écrit :
Sorry, my fault...
I am trying to build a web application for data analysis. Basically
some data will be read from a database and passed to a python script
(myLibs.py) to build an image as follows.
[CODE]
f=urllib.urlopen("http://localhost/path2Libs/myLibs.py",urlli
It would be also nice to see python on an iPhone
On Mon, Aug 11, 2008 at 8:29 AM, Timothy Grant <[EMAIL PROTECTED]>wrote:
> On Sun, Aug 10, 2008 at 9:54 PM, <[EMAIL PROTECTED]> wrote:
> > I'm looking for a version of Python for Blackberry mobile phones - has
> > anyone heard of such a thing? I'v
Johannes Bauer a écrit :
Hello group,
I'm having a seemingly simple problem. I want to generate a hierarchy of
modules, like this one:
GenerationScripts/
GenerationScripts/dhcp
GenerationScripts/bind9
And the files:
GenerationScripts/dhcp/__init__.py
GenerationScripts/bind9/generator.py
Gen
What about pexpect?
http://www.noah.org/wiki/Pexpect
-Original Message-
From: Alan Franzoni [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2008 5:41 AM
To: python-list@python.org
Subject: Re: SSH utility
James Brady was kind enough to say:
> Hi all,
> I'm looking for a python lib
On Mon, Aug 11, 2008 at 12:13 PM, Dave Webster <[EMAIL PROTECTED]> wrote:
> Thanks, Timothy. I'm pretty sure that there is no such thing as a "beautiful"
> implementation of double-metaphone but I would personally like to have a copy
> of your python implementation. I have a fairly elegant versio
The Grant Institute: Certificate in Professional Program Development and Grant Communication
will be held at the University of Phoenix - Burlington Campus, August 18 - 22, 2008. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible
Thanks, Timothy. I'm pretty sure that there is no such thing as a "beautiful"
implementation of double-metaphone but I would personally like to have a copy
of your python implementation. I have a fairly elegant version of the original
metaphone algorithm I wrote myself (in PERL, many years ago) b
Hello,
I have a C function f(void**,int *), in which it writes some
information (it is a RGB32 image).
Here is what i do
rowlength=c_int()
data=c_void_p()
d=pointer(data)
f(d,byref(rowlength)
The call works (no segmentation fault), now how do i access the data
in d? Because i need to pass it to a
Hello group,
I'm having a seemingly simple problem. I want to generate a hierarchy of
modules, like this one:
GenerationScripts/
GenerationScripts/dhcp
GenerationScripts/bind9
And the files:
GenerationScripts/dhcp/__init__.py
GenerationScripts/bind9/generator.py
GenerationScripts/bind9/__ini
2008/8/9 dusans <[EMAIL PROTECTED]>
> Is there a py module, which would get me information of a movie file:
> - resolution
> - fps
> --
> http://mail.python.org/mailman/listinfo/python-list
>
if you have linux installed you can use gstreamer and the bindings pygst
-tobias
--
http://mail.python.o
[EMAIL PROTECTED] wrote:
> Hi,
>
> Thanks for your patience.
>
> I got the text displayed in the web browser with the following code:
>
> [CODE]
> f=StringIO.StringIO()
> f.write('data analysis site')
> f.write("This is a trial test")
> f.write("")
>
> print "Content-type: text/html\n"
> print
[EMAIL PROTECTED] wrote:
Hello,
I've installed Eclipse, Python 2.5 and wxPython on Ubuntu 8.04. The
problem is that I can't get code completion for wx module. I don't
know if it occurs the same with other libraries outside the python
"core".
If I compile/run my code containing the wx library, I
On Mon, Aug 11, 2008 at 8:44 AM, Casey <[EMAIL PROTECTED]> wrote:
> My first thought is that you should be looking at implementations of
> Hamming Distance. If you are actually looking for something like
> SOUNDEX you might also want to look at the double metaphor algorithm,
> which is significant
dusans wrote:
> Is there a py module, which would get me information of a movie file:
> - resolution
> - fps
http://doc.freevo.org/2.0/Kaa#head-919960011a3523a465d1cacc57f2f8e7b0e8ad00
(I haven't used it myself)
Peter
--
http://mail.python.org/mailman/listinfo/python-list
> Maybe the following syntax would be even more intuitive:
>
> def foo(a: "a info", b: "b info") return "ret info" raise "exc info":
> return "hello world"
>
> I don't know how determined the "->" syntax is already.
That seems much more intuitive and extensible. The "->" syntax has
always
On Mon, Aug 11, 2008 at 10:05 AM, <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks for your patience.
>
> I got the text displayed in the web browser with the following code:
>
> [CODE]
> f=StringIO.StringIO()
> f.write('data analysis site')
> f.write("This is a trial test")
> f.write("")
>
> print "Co
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> dict1.update(dict2) is of course equivalent to this code:
>
> for key, value in dict2.iteritems():
> dict1[key] = value
>
> Note that it replaces values in dict1 with the value taken from dict2. I
> don't know about other people, but I more often
Steven D'Aprano wrote:
On Mon, 11 Aug 2008 17:26:56 +0200, Stef Mientki wrote:
I'm trying to make an editor with an integrated Shell.
...
Is this the (most) correct / elegant way, or are there better solutions
?
The best solution is not to re-invent the wheel: "import code"
dict1.update(dict2) is of course equivalent to this code:
for key, value in dict2.iteritems():
dict1[key] = value
Note that it replaces values in dict1 with the value taken from dict2. I
don't know about other people, but I more often want to keep the values
in dict1 regardless of what's in
Peter Otten wrote:
Kris Kennaway wrote:
Peter Otten wrote:
[EMAIL PROTECTED] wrote:
On Aug 10, 10:10 pm, Kris Kennaway <[EMAIL PROTECTED]> wrote:
jlist wrote:
I think what makes more sense is to compare the code one most
typically writes. In my case, I always use range() and never use
psyc
>
> Is this related to minifloats?
>
> http://en.wikipedia.org/wiki/Minifloat
>
Strictly speaking, yes, although after a brief introduction to the
general idea, the entry on that page focuses entirely on the
interpretation of the values as integers. My code *only* represents
the values in the same
Peter Otten:
> In general I think that if you want to promote a particular coding style you
> should pick an example where you can demonstrate actual benefits.
That good thing is that Python 3 has only xrange (named range), so
this discussion will be mostly over ;-)
Bye,
bearophile
--
http://mail
Hi,
Thanks for your patience.
I got the text displayed in the web browser with the following code:
[CODE]
f=StringIO.StringIO()
f.write('data analysis site')
f.write("This is a trial test")
f.write("")
print "Content-type: text/html\n"
print f.getvalue()
f.close()
[/CODE]
Now I am trying to pu
On Mon, 11 Aug 2008 00:27:46 -0700, Brandon wrote:
> This should be pretty simple: I have two dictionaries, foo and bar. I
> am certain that all keys in bar belong to foo as well, but I also know
> that not all keys in foo exist in bar. All the keys in both foo and bar
> are tuples (in the bigra
Kris Kennaway wrote:
> Peter Otten wrote:
>> [EMAIL PROTECTED] wrote:
>>
>>> On Aug 10, 10:10 pm, Kris Kennaway <[EMAIL PROTECTED]> wrote:
jlist wrote:
> I think what makes more sense is to compare the code one most
> typically writes. In my case, I always use range() and never use
>
Hello there
I am confused in the usage/differences of pympi and threading in python.
What I want to do it to run multiple MCMC simulations by dividing the number
of the chains I want to run on number of the processors available. Some
methods need to be synchronized/locked until some addition opera
On Mon, Aug 11, 2008 at 12:26 PM, <[EMAIL PROTECTED]> wrote:
> I have tried calling a script containing the code below from a web browser
> and it did not get the text.
You quoted my post that answered this question, but did not implement
either of the two solutions I suggested. I continue to s
On 11 Aug., 11:41, Gerhard Häring <[EMAIL PROTECTED]> wrote:
> Kay Schluehr wrote:
> > P4D = E4X style embedded DSL for Python but without E and X.
> > The main feature of P4D 1.2 are *Bytelets*. While the primary purpose
> > of P4D 1.1 was the support textual data which can be considered as
> > is
On Sun, 10 Aug 2008 16:34:34 -0400, Rob Clewley wrote:
> Dear Pythonistas,
>
> How many times have we seen posts recently along the lines of "why is it
> that 0.1 appears as 0.10001 in python?" that lead to posters
> being sent to the definition of the IEEE 754 standard and the decima
On Mon, 11 Aug 2008 17:26:56 +0200, Stef Mientki wrote:
> I'm trying to make an editor with an integrated Shell.
...
> Is this the (most) correct / elegant way, or are there better solutions
> ?
The best solution is not to re-invent the wheel: "import code" is the way
to emulate Python's intera
I have tried calling a script containing the code below from a web browser and
it did not get the text.
[CODE]
#!c:/Python25/python.exe -u
import StringIO
f=StringIO.StringIO()
f.write('data analysis site')
f.write("This is a trial test")
f.write("")
print "Content-type: text/html\n"
print f.r
In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> John Krukoff:
> > One possibility for the performance difference, is that as I understand
> > it the psyco developer has moved on to working on pypy, and probably
> > isn't interested in keeping psyco updated and optimized for new python
Okay I'm having a few issues with this and I can't seem to get it
sorted out (most likely due to my inexperience with Python).
Here is my Python code:
def fileInput():
data = []
s = raw_input("Please enter the filename to process (enter full path
if not in current directory): ")
if you need a good python ide with great code completition, then why
don't you try WingIde.
On 11 kol, 10:49, [EMAIL PROTECTED] wrote:
> On 11 ago, 04:34, "SPE - Stani's Python Editor"
>
>
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > On 10 aug, 20:42, [EMAIL PROTECTED] wrote:
>
> > > Hello,
>
> > > I'
My first thought is that you should be looking at implementations of
Hamming Distance. If you are actually looking for something like
SOUNDEX you might also want to look at the double metaphor algorithm,
which is significantly harder to implement but provides better
matching and is less susceptibl
On Sun, Aug 10, 2008 at 9:10 PM, ssecorp <[EMAIL PROTECTED]> wrote:
> If I have an expression like "bob marley" and I want to match
> everything with one letter wrong, how would I do?
> so "bob narely" and "vob marley" should match etc.
At one point I needed something like this so did a straight p
On Sun, Aug 10, 2008 at 9:54 PM, <[EMAIL PROTECTED]> wrote:
> I'm looking for a version of Python for Blackberry mobile phones - has
> anyone heard of such a thing? I've been googling this topic without success.
>
> Thanks,
> Malcolm
My understanding is that the BB's run Java, so there *may* be s
Sorry, my fault...
I am trying to build a web application for data analysis. Basically some data
will be read from a database and passed to a python script (myLibs.py) to build
an image as follows.
[CODE]
f=urllib.urlopen("http://localhost/path2Libs/myLibs.py",urllib.urlencode(TheData))
print "
hello,
I'm trying to make an editor with an integrated Shell.
>>So when type:
2+5
>>I want the answer on the next line:
7
>>When I type:
myvar = 55
myvar
>>I want the value of myvar:
55
So AFAIK, sometimes I've to use eval and sometimes I need exec,
so I use the following code (global / local
On Aug 11, 9:18 am, slais-www <[EMAIL PROTECTED]> wrote:
> Before I set out to reinvent the wheel.
>
> I want a dictionary-like structure for which most lookups will be on a
> key that is not in the "dictionary"; in which case I want a key/value
> returned which is the closest key that is less than
You might try subprocess, first of all. Use it to launch zlogin and
then treat it like a shell and write 'zonename\n' to its stdin, to
simulate running it as a user. This is a good bet, but I don't have
either available to try it. The subprocess documentation covers
invoking a process and writing t
1 - 100 of 144 matches
Mail list logo