In message
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] wrote:
> On Jul 27, 10:55 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED]
> central.gen.new_zealand> wrote:
>> In message
>> <[EMAIL PROTECTED]>,
>>
>>
>>
>> [EMAIL PROTECTED] wrote:
>> > On Jul 26, 6:47 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED]
>> > c
Lawrence D'Oliveiro schrieb:
In message
<[EMAIL PROTECTED]>,
sturlamolden wrote:
Basically it forks twice ...
What's the advantage of forking twice over forking once and calling setsid?
http://code.activestate.com/recipes/278731/
See the comments.
Diez
--
http://mail.python.org/mailman/li
castironpi <[EMAIL PROTECTED]> writes:
>> I think you misunderstood him. What he wants is to write
>>
>> class foo:
>> def bar(arg):
>> self.whatever = arg + 1
>>
>> instead of
>>
>> class foo:
>> def bar(self, arg)
>> self.whatever = arg + 1
>>
>> so 'self' should *automaticall
Hi,
Could someone suggest me better python modules for developing web programming
related projects like web-pages download and uopload??
Thanks,
Srini
Explore your hobbies and interests. Go to
http://in.promos.yahoo.com/groups/
--
http://mail.python.org/mailman/listinfo/python-list
Michael Torrie <[EMAIL PROTECTED]> writes:
> Colin J. Williams wrote:
>>>
>>> def fun( ., cat):
>>>
>> I don't see the need for the comma in fun.
>
> It (the entire first variable!) is needed because a method object is
> constructed from a normal function object:
>
> def method(self,a,b):
>
On Fri, 25 Jul 2008 08:08:57 -0700, Iain King wrote:
> On Jul 25, 3:39 pm, Suresh Pillai <[EMAIL PROTECTED]> wrote:
>> That's a good comparison for the general question I posed. Thanks.
>> Although I do believe lists are less than ideal here and a different
>> data structure should be used.
>>
>>
Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
> The fact that a function is defined within a class statement doesn't
> imply any "magic", it just creates a function object, bind it to a
> name, and make that object an attribute of the class. You have the
> very same result by defining the functio
"Russ P." <[EMAIL PROTECTED]> writes:
> The issue here has nothing to do with the inner workings of the Python
> interpreter. The issue is whether an arbitrary name such as "self"
> needs to be supplied by the programmer.
>
> All I am suggesting is that the programmer have the option of
> replacing
On Fri, 25 Jul 2008 09:22:06 -0600, Matthew Fitzgibbons wrote:
> As for different data structures, it largely depends on how you need to
> access the data. If you don't need to index the data, just loop through
> it, you might try a linked list. The performance hit in (2) is coming
> from the list
Michael Torrie <[EMAIL PROTECTED]> writes:
> I think the biggest reason why an implicit self is bad is because it
> prevents monkey-patching of existing class objects. Right now I can add
> a new method to any existing class just with a simple attribute like so
> (adding a new function to an exist
On Fri, 25 Jul 2008 05:46:56 -0700, Iain King wrote:
> or 3. build a new list every iteration intead of deleting from the old
> one:
>
> while processing:
> new_off_list = []
> for x in off_list:
> if goes_on(x):
> on_list.append(x)
> else:
> new_of
Michael Torrie was kind enough to say:
> Of course any time you send coherent numbers over the network, I highly
> recommend you use what's called network byte order. In C, you'd use the
> htonl() call, and then when pulling it off the wire on the other end
> you'd use ntohl(). If you don't the
Hi!
I have a component, and a tool in Delphi.
I wanna call it from Python.
I can implement all things I need into a Delphi generated DLL.
It is ok, I can use this DLL from Python, but the DLL procedure needs a
callback procedure to return the partially output, and needs a python
passed variable
En Mon, 28 Jul 2008 01:43:52 -0300, Henry Chang <[EMAIL PROTECTED]> escribió:
> try optparse :)
> http://docs.python.org/lib/module-optparse.html
(optparse might be too much for a single argument)
> On Sun, Jul 27, 2008 at 9:13 PM, aditya shukla
> <[EMAIL PROTECTED]>wrote:
>
>> in other words i
On Fri, 25 Jul 2008 17:05:27 -0400, Terry Reedy wrote:
> If the nodes do not have to be processed in any particular order, then
> you could keep them either in a dict, with the value being either On or
> Off (True,False)(plus connection data) or a pair of sets, one for On and
> one for Off. The a
On Jul 28, 1:55 am, Lawrence D'Oliveiro <[EMAIL PROTECTED]
central.gen.new_zealand> wrote:
> In message
> <[EMAIL PROTECTED]>,
>
>
>
> [EMAIL PROTECTED] wrote:
> > On Jul 27, 10:55 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED]
> > central.gen.new_zealand> wrote:
> >> In message
> >> <[EMAIL PROTECTED]
Hi.
I'm a Java guy and I'm playing around Python these days...
In Java, we organize our classes into packages and then jarring the
packages into JAR files.
What are modules in Python?
What is the equivalent of modules in Java?
Please correct me if I'm wrong:
I saved my Python code under the file
[EMAIL PROTECTED] wrote:
> Hi!
>
> I have a component, and a tool in Delphi.
> I wanna call it from Python.
>
> I can implement all things I need into a Delphi generated DLL.
> It is ok, I can use this DLL from Python, but the DLL procedure needs a
> callback procedure to return the partially ou
Nikolaus Rath wrote:
> No, but it could work like this:
>
> def a(x, y):
> self.x = x
> self.y = y
>
Frankly this would make reading and debugging the code by a third party
to be a nightmare. Rather than calling the variable self as I did in my
example, I could it in a much better way
Nikolaus Rath wrote:
> Thats true. But out of curiosity: why is changing the interpreter such
> a bad thing? (If we suppose for now that the change itself is a good
> idea).
Round and round and round we go.
Because by doing as you suggest you'd be altering the internal
consistency of how python d
Hello,
From `pydoc os`:
symlink(...)
symlink(src, dst)
Create a symbolic link pointing to src named dst.
Is there any reason why this is so deliberately confusing? Why is the
target of the symlink, the think where it points *to*, called the
`src`? It seems to me tha
Well, I have a look to into compiler module and gave it a try using
compiler.parseFile and compiler.walk but I haven't got what I need
here.
--
http://mail.python.org/mailman/listinfo/python-list
Nikolaus Rath wrote:
> Hello,
>
>>From `pydoc os`:
>
> symlink(...)
> symlink(src, dst)
>
> Create a symbolic link pointing to src named dst.
>
>
> Is there any reason why this is so deliberately confusing? Why is the
> target of the symlink, the think where it poi
On Jul 28, 3:07 pm, "Russ P." <[EMAIL PROTECTED]> wrote:
> What was "suggested in rejected" on the thread you pointed me to was
> not what I suggested. Not even close. Get it, genius?
*sigh* Clearly I don't have better things to do right now than waste
my time.
You wrote:
> So why not allow somet
En Sun, 27 Jul 2008 15:26:39 -0300, Themistoklis Bourdenas <[EMAIL PROTECTED]>
escribió:
> Hi, is there any possible way to get the class or class name inside a method
> decorator? For example in the code sample below:
>
> def decorate(func):
> print type(func)
> return func
>
> class myclass
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
> Nikolaus Rath wrote:
>
>> Hello,
>>
>>>From `pydoc os`:
>>
>> symlink(...)
>> symlink(src, dst)
>>
>> Create a symbolic link pointing to src named dst.
>>
>>
>> Is there any reason why this is so deliberately confusin
Hi,
Sorry for replying so late. Your MUA apparently messes up the
References:, so I saw you reply only now and by coincidence.
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes:
> Nikolaus Rath schrieb:
>> Hello,
>>
>> I am really surprised that I am asking this question on the mailing
>> list, but I
Suresh Pillai:
> Or 4, since the order of my nodes doesn't matter: swap the node to be
> deleted with the last node in the list and then remove the last node of
> the list. This is the fastest to date, if using native structures, for
> low number nodes being deleted per cycle (def if only deletin
I am trying to use a webservice with SOAPpy:
import SOAPpy
intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl";
intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl)
The resulting error message is posted below. If I understand it right,
XMLSchema.py complains about the importe
pigmartian <[EMAIL PROTECTED]> wrote:
> I'm writing a program that uses functionality from two different sets of
> cdlls which reside in two different directories, call them 'libA.dll'
> and 'libB.dll'. Although I don't directly use it, both directories
> contain a dll with the same name, a
Dear Guru,
Sudhakar Chavali wrote:
Hi
I have created a group called architectgurus (http://groups.google.com/
group/architectgurus) or [EMAIL PROTECTED] .
Irrespective of technology, vendor, domain I will be discussing and
share my thoughts in homogenous and harmonious way. If you are
intereste
En Thu, 24 Jul 2008 12:02:00 -0300, Lanny <[EMAIL PROTECTED]> escribió:
> I've used glob.glob to get a list of files in a directory
> and now I want to use os.system to execute one of
> those files, the problem is that python automatically
> puts a escape charater infront of the back slashes
> so
Gerhard Häring wrote:
> Dear Guru,
>
> Sudhakar Chavali wrote:
>> Hi
>>
>> I have created a group called architectgurus (http://groups.google.com/
>> group/architectgurus) or [EMAIL PROTECTED] .
>> Irrespective of technology, vendor, domain I will be discussing and
>> share my thoughts in homoge
On Jul 28, 9:54 am, Hussein B <[EMAIL PROTECTED]> wrote:
> Hi.
> I'm a Java guy and I'm playing around Python these days...
> In Java, we organize our classes into packages and then jarring the
> packages into JAR files.
> What are modules in Python?
An importable or runable (i.e. script) collecti
I've seen examples for HTTP and FTP use, but not for simply any TCP data on
any port, which is what I require. Can anyone please point me in the right
direction?
TIA
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 28, 6:55 am, Floris Bruynooghe <[EMAIL PROTECTED]>
wrote:
> On Jul 28, 9:54 am, Hussein B <[EMAIL PROTECTED]> wrote:
>
> > Hi.
> > I'm a Java guy and I'm playing around Python these days...
> > In Java, we organize our classes into packages and then jarring the
> > packages into JAR files.
>
Hussein B wrote:
> Hi.
> I'm a Java guy and I'm playing around Python these days...
> In Java, we organize our classes into packages and then jarring the
> packages into JAR files.
> What are modules in Python?
> What is the equivalent of modules in Java?
Read the docs:
http://docs.python.org/tu
Michael Torrie wrote:
Colin J. Williams wrote:
def fun( ., cat):
I don't see the need for the comma in fun.
It (the entire first variable!) is needed because a method object is
constructed from a normal function object:
def method(self,a,b)
Gary wrote:
> I've seen examples for HTTP and FTP use, but not for simply any TCP data
> on any port, which is what I require. Can anyone please point me in the
> right direction?
For what? How to use such a thing, a transparent proxy? There is nothing to
it, just plug it between your router and
Alan Franzoni wrote:
Michael Torrie was kind enough to say:
Of course any time you send coherent numbers over the network, I highly
recommend you use what's called network byte order I'm sure python
has some convention in the struct module for dealing with this.
Not in the struct module;
On Mon, Jul 28, 2008 at 5:45 AM, Scott David Daniels
<[EMAIL PROTECTED]> wrote:
> Alan Franzoni wrote:
>>
>> Michael Torrie was kind enough to say:
>>
>>> Of course any time you send coherent numbers over the network, I highly
>>> recommend you use what's called network byte order I'm sure pyt
On Mon, 28 Jul 2008 10:44:18 +0200, Suresh Pillai wrote:
> Since I am doing A LOT of loops over the nodes and the number of nodes
> is also huge, my concern using sets is that in order to iterate over the
> set in each step of my simulation, the set items need to be converted to
> a list every tim
On Jul 26, 12:43 pm, Stef Mientki <[EMAIL PROTECTED]> wrote:
> hello,
>
> In a program I want to download (updated) files from google code (not
> the svn section).
> I could find a python script to upload files,
> but not for downloading.
>
> Anyone has a hint or a solution ?
>
> thanks,
> Stef Mie
On 25 Jul, 20:05, sturlamolden <[EMAIL PROTECTED]> wrote:
> On Jul 25, 8:37 pm, Johny <[EMAIL PROTECTED]> wrote:
>
> > Is it possible to run a Python program as daemon?
> > Thanks
>
> Here is an example on how to run a Python script as a Unix daemon:
>
> http://svn.plone.org/svn/collective/bda.daem
Hussein B <[EMAIL PROTECTED]> wrote:
> If I have a couple of modules, is there a way to package them? or
> there is no such a thing in Python?
>
>
It sounds rather as though you haven't yet gone through the Python
tutorial. You really should read it, even if you just skim through it to
see wh
Hi,
I'm trying to handle data passed to Py Callback which is called from
C dll. Callback passes data to another thread using Queue module and
there the data are printed out.
If data is printed out in a callback itself it's ok. If I put on
queue and next get from queue in another thread script p
Russ P. a écrit :
On Jul 27, 12:39 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
Derek Martin a écrit :
On Sun, Jul 27, 2008 at 08:19:17AM +, Steven D'Aprano wrote:
You take the name down to a single letter. As I suggested in an earlier
post on this thread, why not take it down to
Russ P. a écrit :
On Jul 27, 3:11 pm, "Russ P." <[EMAIL PROTECTED]> wrote:
On Jul 27, 12:39 pm, Bruno Desthuilliers
<[EMAIL PROTECTED]> wrote:
Derek Martin a écrit :
On Sun, Jul 27, 2008 at 08:19:17AM +, Steven D'Aprano wrote:
You take the name down to a single letter. As I suggested i
Hi there. I am trying to download a file(sn.last) from a public FTP
server with the following code:
from ftplib import FTP
ftp=FTP('tgftp.nws.noaa.gov')
ftp.login()
ftp.cwd('SL.us008001/DF.of/DC.radar/DS.81dpr/SI.kbuf')
ftp.retrbinar('RETR sn.last', open(mydpa,'wb').write)
ftp.quit()
but got an
waldek wrote:
> Hi,
>
> I'm trying to handle data passed to Py Callback which is called from
> C dll. Callback passes data to another thread using Queue module and
> there the data are printed out.
>
> If data is printed out in a callback itself it's ok. If I put on
> queue and next get from q
Hi there,
Is it possible to get a 2.4 dll of python for Windows easily? I need
it to use python as scripting language for Vim.
Regards,
Guillermo
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 28, 12:34 am, Gary Herron <[EMAIL PROTECTED]> wrote:
> This will work as you wish:
> math.floor(x+0.5)
This works fine for positive x but what about negative:
>>> round(2.5)
3.0
>>> floor(2.5 + 0.5)
3.0
>>> round(-2.5)
-3.0
>>> floor(-2.5 + 0.5)
-2.0
Maybe:
def round2(x):
return m
On Jul 28, 4:54 am, Hussein B <[EMAIL PROTECTED]> wrote:
> Hi.
> I'm a Java guy and I'm playing around Python these days...
> In Java, we organize our classes into packages and then jarring the
> packages into JAR files.
> What are modules in Python?
> What is the equivalent of modules in Java?
I'
Cutting to the crux of the discussion...
On Sun, 27 Jul 2008 23:45:26 -0700, Carl Banks wrote:
> I want something where "if x" will do but a simple explicit test won't.
Explicit tests aren't simple unless you know what type x is. If x could
be of any type, you can't write a simple test. Does x
waldek schrieb:
> Hi,
>
> I'm trying to handle data passed to Py Callback which is called from
> C dll. Callback passes data to another thread using Queue module and
> there the data are printed out.
>
> If data is printed out in a callback itself it's ok. If I put on
> queue and next get from
On Jul 28, 8:11 am, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Hussein B <[EMAIL PROTECTED]> wrote:
> > If I have a couple of modules, is there a way to package them? or
> > there is no such a thing in Python?
>
> It sounds rather as though you haven't yet gone through the Python
> tutorial. You rea
Suresh Pillai <[EMAIL PROTECTED]> wrote:
> [ ... ] is
>there any way to iterate over the items in a set other than converting to
>a list or using the pop() method.
Er, how about directly iterating over the set?
--
\S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/
"Frankly I have no
On Sun, 27 Jul 2008 21:42:37 -0700, Russ P. wrote:
>> +1 QOTW
>
> Do you realize what an insult that is to everyone else who has posted
> here in the past week?
Actually I don't. I hadn't realised that when a person believes that
somebody has made an especially clever, witty, insightful or fun
On Mon, 28 Jul 2008 15:04:43 +0200, Suresh Pillai wrote:
> I could of course use the old trick of using a dictionary with 'None'
> values and then using iterkeys(). But I thought sets were supposed to
> replace this. So maybe I should be asking a more basic question: is
> there any way to iterat
Chaps,
I've been looking at the following recipe for generating a GUID
http://code.activestate.com/recipes/163604/ however I note that its about 6
years old. Has python since adopted an internal module for GUID generation?
Or is this 3rd part module still the best option?
Cheers,
Robert
On 2008-07-28, Nikolaus Rath <[EMAIL PROTECTED]> wrote:
> Hello,
>
>>From `pydoc os`:
>
> symlink(...)
> symlink(src, dst)
>
> Create a symbolic link pointing to src named dst.
>
>
> Is there any reason why this is so deliberately confusing? Why is the
> target of the s
Robert Rawlins wrote:
I’ve been looking at the following recipe for generating a GUID
http://code.activestate.com/recipes/163604/ however I note that its
about 6 years old. Has python since adopted an internal module for GUID
generation? Or is this 3^rd part module still the best option?
Not
Stefan Behnel <[EMAIL PROTECTED]> wrote:
>Using my system Python (2.5.1 on Ubunutu Gutsy):
>
> $ strace -e open python -c '' 2>&1 | wc -l
> 551
> $ strace -e open python -c '<><<' 2>&1 | wc -l
> 4631
>
>Using a self-built Python I have lying around:
>
> $ strace -e open python2.3 -c '' 2>&1 |
> Not only is the answer, Yes:
>
> http://docs.python.org/lib/module-uuid.html
>
> but it's just featured as Doug Hellmann's module of the Week:
>
> http://blog.doughellmann.com/2008/07/pymotw-uuid.html
>
> TJG
Thanks Tim,
Perfect!
Robert
--
http://mail.python.org/mailman/listinfo/python-list
Trent Mick <[EMAIL PROTECTED]> wrote:
> I happy to announce that ActiveState Code has been taken out of beta.
> This is the new site replacing the ASPN Cookbooks -- in particular the
> Python Cookbook.
>
> http://code.activestate.com/
Looks great and much faster than the old site!
Mind
On Mon, 28 Jul 2008 15:04:43 +0200, Suresh Pillai wrote:
> On Mon, 28 Jul 2008 10:44:18 +0200, Suresh Pillai wrote:
>
>> Since I am doing A LOT of loops over the nodes and the number of nodes
>> is also huge, my concern using sets is that in order to iterate over
>> the set in each step of my sim
Hi there,
I have the following situation (I tryed to minimize the code to concentrate
on the issue):
>>> class A(object):
def __getattr__(self, name):
print 'A.__getattr__'
if name == 'a': return 1
raise AttributeError('%s not found in A' % name)
>>> class B(object):
def __getattr__(self,
On 28 Jul 2008 14:07:44 GMT, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Sun, 27 Jul 2008 21:42:37 -0700, Russ P. wrote:
>
> >> +1 QOTW
> >
> > Do you realize what an insult that is to everyone else who has posted
> > here in the past week?
>
> Actually I don't. I hadn't realised that when
On Jul 28, 2:27 pm, "Harry" <[EMAIL PROTECTED]> wrote:
> Hi there. I am trying to download a file(sn.last) from a public FTP
> server with the following code:
>
> from ftplib import FTP
> ftp=FTP('tgftp.nws.noaa.gov')
> ftp.login()
> ftp.cwd('SL.us008001/DF.of/DC.radar/DS.81dpr/SI.kbuf')
> ftp.retr
srinivasan srinivas wrote:
Hi,
Could someone suggest me better python modules for developing web programming
related projects like web-pages download and uopload??
Thanks,
Srini
Explore your hobbies and interests. Go to
http://in.promos.yahoo.com/groups/
urllib, urllib2, httplib
All
Hi Fredrik and Terry,
Well I got this on IDLE I think I have done something wrong.
>>> import codecs
>>> f = open("C:\Documents and Settings\admin\My Documents\corpus\dainaikAikya
>>> collected by sushant.txt","r", "utf_8")
Traceback (most recent call last):
File "", line 1, in
f = open(
On 28 Jul, 16:15, Sion Arrowsmith <[EMAIL PROTECTED]>
wrote:
> Stefan Behnel <[EMAIL PROTECTED]> wrote:
> >Blame Ubuntu/Debian.
>
> I'd be wary about including Debian in that blame. Using 4.0 here,
> with a 2.4.4 default and a 2.5.0 straight from the package:
[...]
I can imagine that some of the
Hi all,
I'd like to use the pygments syntax highlighting module from within a
JAVA application. While I understand how to use Jython to execute a
script file or interpret single statements, I don't know how I can use
a whole module (i.e. the several files pygments consists of). In order
to deploy
Atul. wrote:
Hi Fredrik and Terry,
Well I got this on IDLE I think I have done something wrong.
import codecs
f = open("C:\Documents and Settings\admin\My Documents\corpus\dainaikAikya collected by
sushant.txt","r", "utf_8")
Traceback (most recent call last):
File "", line 1, in
f =
In article <[EMAIL PROTECTED]>,
"Enrico" <[EMAIL PROTECTED]> wrote:
> Hi there,
> I have the following situation (I tryed to minimize the code to concentrate
> on the issue):
>
> >>> class A(object):
> def __getattr__(self, name):
> print 'A.__getattr__'
> if name == 'a': return 1
> raise
Scott David Daniels was kind enough to say:
> Alan Franzoni wrote:
> Please don't pass this misinformation along.
>
> In the struct module document, see the section on the initial character:
> Character Byte order Size and alignment
>@ nativenative
>=
Short question:
Is there a good library for generating HTML-style tables with the equivalent
of colspans, automatically sized columns, etc. that can render directly to
PDF?
Longer question:
I'm re-doing a big chunk of locally-written code. I have a
report-generating function that takes a list o
Christof Winter wrote, On 28.07.2008 12:32:
I am trying to use a webservice with SOAPpy:
import SOAPpy
intact_wsdl = "http://www.ebi.ac.uk/intact/binary-search-ws/binarysearch?wsdl";
intact_serv = SOAPpy.WSDL.Proxy(intact_wsdl)
[...]
My question:
- Is there a problem with the WSDL file being
braver <[EMAIL PROTECTED]> writes:
> with open(src) as readin, open(dst,"w") as writin: # WRONG: comma
> doesn't work
> ...
> -- so that you have transactional safety for two file descriptors?
use contextlib.nexted().
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, Tim that did work. I will proceed with my playing around now.
Thanks a ton.
Atul.
>
> Only slightly. You're importing the codecs module
> but you're not using it. So you're *actually* using
> the built-in open function, which doesn't have an
> encoding parameter. It does have a third para
Manuel Vazquez Acosta wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Just test for maxint value:
from sys import maxint
if maxint >> 33:
print "more than 32 bits" # probably 64
else:
print "32 bits"
I believe that was already suggested in this thread. That test will just
Nick Craig-Wood wrote:
Trent Mick <[EMAIL PROTECTED]> wrote:
I happy to announce that ActiveState Code has been taken out of beta.
This is the new site replacing the ASPN Cookbooks -- in particular the
Python Cookbook.
http://code.activestate.com/
Looks great and much faster than the
Paul Rubin wrote:
> braver <[EMAIL PROTECTED]> writes:
>> with open(src) as readin, open(dst,"w") as writin: # WRONG: comma
>> doesn't work
>> ...
>> -- so that you have transactional safety for two file descriptors?
>
> use contextlib.nexted().
You mean contextlib.nested I guess. Didn't kno
On 28 Jul., 06:42, "Russ P." <[EMAIL PROTECTED]> wrote:
> On Jul 27, 8:58 pm, castironpi <[EMAIL PROTECTED]> wrote:
>
> > On Jul 27, 2:39 pm, Bruno Desthuilliers
>
> > <[EMAIL PROTECTED]> wrote:
> > > Derek Martin a écrit :
> > > > It's bad programming, but the world is full of bad programmers, and
On 2008-07-28, Alan Franzoni <[EMAIL PROTECTED]> wrote:
> Scott David Daniels was kind enough to say:
>
>> Alan Franzoni wrote:
>
>> Please don't pass this misinformation along.
>>
>> In the struct module document, see the section on the initial character:
>> Character Byte order Size and ali
Kirk Strauser wrote:
Short question:
Is there a good library for generating HTML-style tables with the equivalent
of colspans, automatically sized columns, etc. that can render directly to
PDF?
Longer question:
I'm re-doing a big chunk of locally-written code. I have a
report-generating funct
Hello all,
I am using os.popen to get a list returned of vpopmail users,
something like this
x = os.popen('/home/vpopmail/bin/vuserinfo -n -D mydomain.com).readlines()
x returns a list, of usernames, and I am trying to append the usernames with
the domain like so
for line i
On Jul 26, 7:08 am, "D'Arcy J.M. Cain" <[EMAIL PROTECTED]> wrote:
> On Sat, 26 Jul 2008 14:07:52 +1000
>
> Ben Finney <[EMAIL PROTECTED]> wrote:
> > > sys.stdout = n
>
> > Re-binds the name 'sys.stdout' to the object already referenced by the
> > name 'n'. No objects are changed by this; only b
On Jul 26, 9:19 am, Andrew <[EMAIL PROTECTED]> wrote:
> bukzor wrote:
> from os.path import abspath, realpath
> realpath(path.__file__.rstrip("c"))
>
> > '/home/bgolemon/python/symlinks/path.py'
>
> realpath(abspath(path.__file__.rstrip("c")))
>
> > '/home/bgolemon/python/symlinks/sy
domain.strip()
Assuming domain is the string with the newline.
-Steve Johnson
On Jul 28, 2008, at 1:32 PM, Support Desk wrote:
Hello all,
I am using os.popen to get a list returned of vpopmail
users, something like this
x = os.popen('/home/vpopmail/bin/vuserinfo -n -D
mydomai
Support Desk wrote:
Hello all,
I am using os.popen to get a list returned of vpopmail
users, something like this
x = os.popen('/home/vpopmail/bin/vuserinfo -n -D mydomain.com).readlines()
x returns a list, of usernames, and I am trying to append the
usernames with the do
On 28 Jul., 18:55, Trent Mick <[EMAIL PROTECTED]> wrote:
> Nick Craig-Wood wrote:
> > Trent Mick <[EMAIL PROTECTED]> wrote:
> >> I happy to announce that ActiveState Code has been taken out of beta.
> >> This is the new site replacing the ASPN Cookbooks -- in particular the
> >> Python Cookbook.
On 28 jul 2008, at 03.59, William McBrine wrote:
On Sun, 13 Jul 2008 00:58:59 +0200, Python.Arno wrote:
http://undefined.org/python/py2app.html
py2app bundles Python itself into the app, right? I wonder, is there
no
way to create an app bundle that relies on the existing installation
of
Hi Hussein,
Basically a module is a FILE and is considered as a singleton model. Yes
ur wow.py assumption is correct.
I recommend getting Mark Lutz Learning Python book to get you started.
Marcus.CM
Hussein B wrote:
Hi.
I'm a Java guy and I'm playing around Python these days...
In Java, we o
Hi ,
I hope this doesnt invite flames.but for webpages i suggest stick
with php...
I'm outta here.wooosh
srinivasan srinivas wrote:
Hi,
Could someone suggest me better python modules for developing web programming
related projects like web-pages download and uopload??
Thanks,
Sr
On Jul 28, 10:34 am, bukzor <[EMAIL PROTECTED]> wrote:
> On Jul 26, 9:19 am, Andrew <[EMAIL PROTECTED]> wrote:
>
>
>
> > bukzor wrote:
> > from os.path import abspath, realpath
> > realpath(path.__file__.rstrip("c"))
>
> > > '/home/bgolemon/python/symlinks/path.py'
>
> > realpath(abs
I would recommend dive into python. Its available free online (just google
it) and it tries to teach you python, not programming which unfortunately
many books try to do. It assumes that you already have some experience with
C++ or Java and contradicts python syntax/semantics to those languages. Ve
On Tue, 29 Jul 2008 02:00:54 +0800
"Marcus.CM" <[EMAIL PROTECTED]> wrote:
> I hope this doesnt invite flames.but for webpages i suggest stick
> with php...
Oh, come on. You're just asking for it. :-)
[Turns flame thrower to low setting]
OK, here is why I don't like PHP. When I am creatin
On Jul 28, 2:26 am, Nikolaus Rath <[EMAIL PROTECTED]> wrote:
> castironpi <[EMAIL PROTECTED]> writes:
> >> I think you misunderstood him. What he wants is to write
>
> >> class foo:
> >> def bar(arg):
> >> self.whatever = arg + 1
>
> >> instead of
>
> >> class foo:
> >> def bar(self, a
On Mon, 28 Jul 2008 19:51:26 +0200, Tommy Nordgren wrote:
> There is Platypus, a general open source program to wrap a script
> in an Macintosh (GUI) Application.
Thanks. I tried Platypus, and it's close to what I want. But I still
can't seem to get rid of the small "Console" window that pops up
1 - 100 of 201 matches
Mail list logo