Hello all,
Is there any way to list out all the properties (name,
type, size) and attributes( Accesstime, mod time, archived or readonly
etc) of a folder and its contents recursively. Should I need ot go
inside each and every directory to list them? This has to be for
Windows.
I'm reading the docs for the parser module and I'm confused.
http://docs.python.org/library/parser.html
The doc make a number of references to the file "example.py", and says:
"All source files mentioned here which are not part of the Python
installation are located in the Demo/parser/ director
I'm trying to run Django from Apache using FastCGI in a shared hosting
environment on DH. I've installed python 2.5.2 onto my home
environment. And all the necessary libraries including lxml 2.1.3,
libxml2, libxslt, flup, etc.
I'm facing a strange issue with lxml, which occurs only when it is
use
Aahz" a...@pyft.com wrote:
8<
> .. Because the name "Python" is derived from the
> comedy TV show "Monty Python", stupid jokes are common in the Python
> community.)
Sacrilege!
A joke based on the Monty Python series is BY DEFIN
wrote:
> I'm filing 160 million data points into a set of bins based on their
> position. At the moment, this takes just over an hour using interval
So why do you not make four sets of bins - one for each core of your quad,
and split the points into quarters, and run four processes, and merge
On Mar 20, 7:26 am, Steven D'Aprano wrote:
> "All source files mentioned here which are not part of the Python
> installation are located in the Demo/parser/ directory of the
> distribution."
>
> http://docs.python.org/library/parser.html#information-discovery
>
> What distribution? What does this
"MRAB" wrote:
BJörn Lindqvist wrote:
8< ---
>> For example, to find the email you can use a simple regexp. If there
>> is a match you can be certain that that is the authors email. But what
>> algorithms can you use to figure out the other information?
>>
>Tricky! :-)
>
>
Hi everyone,
is there a sufficiently easy possibility for a Python function to find
out whether it has been called from a try-block or not?
try:
print "Calling foo"
foo()
except:
print "Got exception"
In the example above, foo() should be able to 'see' that it was called
from a try block,
On Fri, Mar 20, 2009 at 1:32 AM, wrote:
> Hi everyone,
>
> is there a sufficiently easy possibility for a Python function to find
> out whether it has been called from a try-block or not?
>
> try:
> print "Calling foo"
> foo()
> except:
> print "Got exception"
>
> In the example above, foo() s
venutaurus...@gmail.com wrote:
Hello all,
Is there any way to list out all the properties (name,
type, size) and attributes( Accesstime, mod time, archived or readonly
etc) of a folder and its contents recursively. Should I need ot go
inside each and every directory to list them? This
On Mar 20, 4:36 am, akineko wrote:
> Hello everyone,
>
> I have started using multiprocessing module, which is now available
> with Python 2.6.
> It definitely opens up new possibilities.
>
> Now, I developed a small GUI package, which is to be used from other
> programs.
> It uses multiprocessing
2009/3/20 Hendrik van Rooyen :
> A joke based on the Monty Python series is BY DEFINITION not stupid!
But may get /too/ silly.
--
Tim Rowe
--
http://mail.python.org/mailman/listinfo/python-list
Tim Roberts wrote:
> bearophileh...@lycos.com wrote:
>>
>>In Python 3 those lines become shorter:
>>
>>for k, v in a.items():
>>{k: v+1 for k, v in a.items()}
>
> That's a syntax I have not seen in the 2-to-3 difference docs, so I'm not
> familiar with it. How does that cause "a" to be updated?
On Fri, Mar 20, 2009 at 2:09 AM, wrote:
> On Mar 20, 9:44 am, Chris Rebert wrote:
>> On Fri, Mar 20, 2009 at 1:32 AM, wrote:
>> > Hi everyone,
>>
>> > is there a sufficiently easy possibility for a Python function to find
>> > out whether it has been called from a try-block or not?
>>
>> > try
"Bruce C. Miller" writes:
> On Mar 7, 6:52 pm, Xah Lee wrote:
>> Of interest:
>>
>> • Why Can't You Be Normal?
>
> Though I doubt this will do any good, I'll offer some advice that
> hasn't been mentioned here and solved a lot of the problems I've had
> early in life with resistance to overly-em
Ben Finney writes:
> Writing a Python program to become a Unix daemon is relatively
> well-documented: there's a recipe for detaching the process and
> running in its own process group. However, there's much more to a
> Unix daemon than simply detaching.
[…]
> My searches for such functionality
Greetings All,
I have huge number of HTML files, all in english. I also have their
counterpart files in Spanish. The non english files have their look
and feel a little different than their english counterpart.
My task is to make sure that the English HTML files contain the
Spanish text, with ret
On Fri, Mar 20, 2009 at 9:59 AM, pranav wrote:
> Greetings All,
>
> I have huge number of HTML files, all in english. I also have their
> counterpart files in Spanish. The non english files have their look
> and feel a little different than their english counterpart.
>
> My task is to make sure t
On Mar 20, 1:00 am, Vizcayno wrote:
> Hi:
> I wrote a Python program which, during execution, shows me messages on
> console indicating at every moment the time and steps being performed
> so I can have a 'log online' and guess remaining time for termination,
> I used many 'print' instructions to
On Mar 20, 1:58 pm, Tino Wildenhain wrote:
> venutaurus...@gmail.com wrote:
> > Hello all,
> > Is there any way to list out all the properties (name,
> > type, size) and attributes( Accesstime, mod time, archived or readonly
> > etc) of a folder and its contents recursively. Should I n
venutaurus...@gmail.com wrote:
Hello all,
Is there any way to list out all the properties (name,
type, size) and attributes( Accesstime, mod time, archived or readonly
etc) of a folder and its contents recursively. Should I need ot go
inside each and every directory to list them? This
Hoi,
as I got no answers with the previous question (subject: disabling
compiler flags in distutils), I thought I should ask the question in a
different way: Is there an option to set the compiler flags for a C/C++
extension in distutils? There is the extra_compile_args-option in the
Extension
On Mar 20, 9:44 am, Chris Rebert wrote:
> On Fri, Mar 20, 2009 at 1:32 AM, wrote:
> > Hi everyone,
>
> > is there a sufficiently easy possibility for a Python function to find
> > out whether it has been called from a try-block or not?
>
> > try:
> > print "Calling foo"
> > foo()
> > except:
>
Ben Finney writes:
> I've submitted PEP 3143 http://www.python.org/dev/peps/pep-3143/>
> to meet this need, and have re-worked an existing library into a new
> ‘python-daemon’ http://pypi.python.org/pypi/python-daemon/>
> library, the reference implementation.
>
> Now I need wider testing and sc
Hello there,
let's suppose I have the following matrix:
mat = [[1,2,3], [3,2,4], [7,8,9], [6,2,9]]
where [.. , .. , ..] are the rows.
I am interested into getting the "row index" of all the matrix rows
where a certain number occurs.
For example for 9 I should get 2 and 3 (starting from 0).
For
qq13234...@gmail.com schrieb:
I want to make a bean with Jython and how to make it via Jython ?
By subclassing a java interface. That's all you need.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Mar 20, 2009 at 3:50 AM, Alexzive wrote:
> Hello there,
>
> let's suppose I have the following matrix:
>
> mat = [[1,2,3], [3,2,4], [7,8,9], [6,2,9]]
>
> where [.. , .. , ..] are the rows.
>
> I am interested into getting the "row index" of all the matrix rows
> where a certain number occu
Alexzive wrote:
Hello there,
let's suppose I have the following matrix:
mat = [[1,2,3], [3,2,4], [7,8,9], [6,2,9]]
where [.. , .. , ..] are the rows.
I am interested into getting the "row index" of all the matrix rows
where a certain number occurs.
For example for 9 I should get 2 and 3 (star
On Mar 20, 11:03 am, "Martin v. Löwis" wrote:
> > Any idea on why this is happening?
>
> Can you provide a complete example? Your code looks correct, and should
> just work.
>
> How do you know the result contains only 't' (i.e. how do you know it
> does not contain 'e', 's', 't')?
>
> Regards,
>
pranav wrote:
I am sure there is a python way of solving this problem.
The common sense approach (nothing to do with python) would be to
rewrite everything to be dynamically generated with a template language
- in python those would be TAL, mako, genshi, jinja, whatever ...
anything is bett
On Mar 20, 10:16 am, Chris Rebert wrote:
> On Fri, Mar 20, 2009 at 2:09 AM, wrote:
> > On Mar 20, 9:44 am, Chris Rebert wrote:
> >> On Fri, Mar 20, 2009 at 1:32 AM, wrote:
> >> > Hi everyone,
>
> >> > is there a sufficiently easy possibility for a Python function to find
> >> > out whether it
el...@cmbi.ru.nl schrieb:
On Mar 20, 10:16 am, Chris Rebert wrote:
On Fri, Mar 20, 2009 at 2:09 AM, wrote:
On Mar 20, 9:44 am, Chris Rebert wrote:
On Fri, Mar 20, 2009 at 1:32 AM, wrote:
Hi everyone,
is there a sufficiently easy possibility for a Python function to find
out whether it h
Aahz wrote:
In article <9a5d59e1-2798-4864-a938-9b39792c5...@s9g2000prg.googlegroups.com>,
Raymond Hettinger wrote:
Here's a new, fun recipe for you guys:
http://code.activestate.com/recipes/576694/
That is *sick* and perverted.
I'm not sure why.
Would it be less sick if it had been call
Many Thanks guys!
and what if I need to look ONLY into the second and third columns,
excluding the first item of each rows?
for example if x = 3 I need to get [0] and not [0,1]
many thanks, Alex
2009/3/20 Tino Wildenhain :
> Alexzive wrote:
>>
>> Hello there,
>>
>> let's suppose I have the fo
Sreejith K wrote:
> Hi,
>
> >>> snapdir = './mango.txt_snaps'
> >>> snap_cnt = 1
> >>> block = 0
> >>> import os
> >>> os.chdir('/mnt/gfs_local')
> >>> snap = open(snapdir + '/snap%s/%s' % (repr(snap_cnt), repr(block)),'r')
> >>> snap.read()
> 'dfdfdgagdfgdf\ngdgfadgagadg\nagafg\n\nfs\nf\nsadf\n\
On Mar 20, 3:53 pm, Marco Mariani wrote:
> pranav wrote:
> > I am sure there is a python way of solving this problem.
>
> The common sense approach (nothing to do with python) would be to
> rewrite everything to be dynamically generated with a template language
> - in python those would be TAL, ma
On Fri, Mar 20, 2009 at 4:34 AM, Alessandro Zivelonghi
wrote:
> Many Thanks guys!
>
> and what if I need to look ONLY into the second and third columns,
> excluding the first item of each rows?
>
> for example if x = 3 I need to get [0] and not [0,1]
indices = [i for i, row in enumerate(mat) if
I am considering teaching a beginning programming course using Python.
I would like to prepare my class handouts in such a way that I can
import the Python code from real ".py" files directly into the
documents. This way I can run real unit tests on the code to confirm
that they work as expected.
Tim Golden wrote:
...
and do the following:
from winsys import fs
for f in fs.flat ("c:/temp"):
f.dump ()
^ eeek!
But btw, what extra information would it give?
Regards
Tino
smime.p7s
Description: S/MIME Cryptographic Signature
--
http://mail.python.org/mailman/listinfo/python-
venutaurus...@gmail.com wrote:
On Mar 20, 1:58 pm, Tino Wildenhain wrote:
venutaurus...@gmail.com wrote:
Hello all,
...
smime.p7s
4KViewDownload
Thanks for your suggestion. By the way the attachment which have added
has some unknown file extension. May I know how can I view it?
This is
Tino Wildenhain wrote:
Tim Golden wrote:
...
and do the following:
from winsys import fs
for f in fs.flat ("c:/temp"):
f.dump ()
^ eeek!
Was the k! for the space before the bracket
(which, for some unaccountable reason disturbs
some people)? Or for the idea of dumping data
ou
On Mar 7, 6:52 pm, Xah Lee wrote:
> Of interest:
>
> • Why Can't You Be Normal?
Though I doubt this will do any good, I'll offer some advice that
hasn't been mentioned here and solved a lot of the problems I've had
early in life with resistance to overly-emotional negative reactions
to my opinion
Benjamin Peterson wrote:
> Márcio Faustino gmail.com> writes:
> >
> > Executing the example below doesn't produce the expected behavior, but
> > using the commented code does. Is this normal, or is it a problem with
> > Python? I've tested it with version 2.6.1 on Windows XP.
> >
> > Thanks,
>
En Thu, 19 Mar 2009 19:33:36 -0300, Ryan Kelly escribió:
newCylinderTempertature = newCylinderTemperature + deltaTemp
Take a careful look at the variable name here: "Tempertature". Python's
dynamic nature provides a lot of wonderful benefits, but you've just hit
one of the drawbacks
pranav wrote:
On Mar 20, 3:53 pm, Marco Mariani wrote:
pranav wrote:
I am sure there is a python way of solving this problem.
The common sense approach (nothing to do with python) would be to
rewrite everything to be dynamically generated with a template language
- in python those would be TA
2009/3/20 pranav :
> Greetings All,
>
> I have huge number of HTML files, all in english. I also have their
> counterpart files in Spanish. The non english files have their look
> and feel a little different than their english counterpart.
>
> My task is to make sure that the English HTML files con
Michele Simionato wrote:
On Mar 20, 12:58 pm, grkunt...@gmail.com wrote:
I am considering teaching a beginning programming course using Python.
I would like to prepare my class handouts in such a way that I can
import the Python code from real ".py" files directly into the
documents. This way I
On Mar 19, 10:52 pm, Márcio Faustino wrote:
> Hi,
>
> Executing the example below doesn't produce the expected behavior, but
> using the commented code does. Is this normal, or is it a problem with
> Python?
It is a common gotcha. Notice that it has nothing to do with lambda
functions, you
would
hi all..
I want* to add speech recognition *to my application for *disabled persons*.
(running in python 2.6 with wxpython 2.8.9..)
*problem:*
actually i have some buttons scanned one by one.. button name is 'add' and
if i tell 'add' then add button click event must be performed..
For that i nee
So simple :) thanks!
--
http://mail.python.org/mailman/listinfo/python-list
I want to make a bean with Jython and how to make it via Jython ?
--
http://mail.python.org/mailman/listinfo/python-list
On 2009-03-20 12:13, abhi wrote:
> On Mar 20, 11:03 am, "Martin v. Löwis" wrote:
>>> Any idea on why this is happening?
>> Can you provide a complete example? Your code looks correct, and should
>> just work.
>>
>> How do you know the result contains only 't' (i.e. how do you know it
>> does not c
alex23 wrote:
> On Mar 20, 1:42 am, "Emanuele D'Arrigo" wrote:
> > I just had a bit of a shiver for something I'm doing often in my code
> > but that might be based on a wrong assumption on my part. Take the
> > following code:
> >
> > pattern = "aPattern"
> >
> > compiledPatterns = [ ]
> > compi
On Mar 20, 12:58 pm, grkunt...@gmail.com wrote:
> I am considering teaching a beginning programming course using Python.
> I would like to prepare my class handouts in such a way that I can
> import the Python code from real ".py" files directly into the
> documents. This way I can run real unit te
On Mar 20, 1:44 pm, Tim Golden wrote:
> Michele Simionato wrote:
> > One word: Sphinx.
>
> And the second word(s):
>
> .. literalinclude:: example.py
>
> TJG
The interesting thing is that Sphinx uses pygments
and can highlight any code fragment, not only Python
code. For instance, last week I di
On Fri, 20 Mar 2009 20:58:58 +1100, Ben Finney
wrote:
Ben Finney writes:
Writing a Python program to become a Unix daemon is relatively
well-documented: there's a recipe for detaching the process and
running in its own process group. However, there's much more to a
Unix daemon than simply de
En Fri, 20 Mar 2009 09:28:08 -0300, R. David Murray
escribió:
Benjamin Peterson wrote:
Márcio Faustino gmail.com> writes:
>
> Executing the example below doesn't produce the expected behavior, but
> using the commented code does. Is this normal, or is it a problem with
> Python? I've tested
Emanuele D'Arrigo a écrit :
Hi everybody,
I just had a bit of a shiver for something I'm doing often in my code
but that might be based on a wrong assumption on my part.
Do not assume. Either check or use another solution. My 2 cents...
Take the
following code:
pattern = "aPattern"
compile
I am trying to build package "pyprocessing" for python 2.5
I am using sun machine with Solaris 5.8
drok...@himalaya:~/modules_python/processing-0.52
(Deepak:)uname -a
SunOS himalaya 5.8 Generic_117350-35 sun4u sparc SUNW,Sun-Fire
While building the package I get below warnings.
(Deepak:)python
I want* to add speech recognition *to my application for *disabled persons*.
(running in python 2.6 with wxpython 2.8.9..)
*problem:*
too many asterisks? ;-)
actually i have some buttons scanned one by one.. button name is 'add' and
if i tell 'add' then add button click event must be performe
pranav wrote:
I am sure there is a python way of solving this problem.
The common sense approach (nothing to do with python) would be to
rewrite everything to be dynamically generated with a template language
- in python those would be TAL, mako, genshi, jinja, whatever ...
anything is better t
Deepak Rokade wrote:
> How can I get rid of this ?
> Is this package not available for sun solaris ?
Apparently Solaris doesn't support sem_timedwait(). You have to disable
the feature in setup.py::
HAVE_SEM_TIMEDWAIT=0
Why are you using pyprocessing instead of multiprocessing?
Christian
--
Hi,
Is thera any way for a program to choose between 32-bit or 64-bit dynamically?
Thanks,
Srini
Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 20, 5:09 pm, Tim Golden wrote:
> Tino Wildenhain wrote:
> > Tim Golden wrote:
> > ...
> >> and do the following:
>
> >>
> >> from winsys import fs
>
> >> for f in fs.flat ("c:/temp"):
> >> f.dump ()
> > ^ eeek!
>
> Was the k! for the space before the bracket
> (which, for som
Hi!
On Mar 20, 1:06 am, Terry Reedy wrote:
>
> What you wrote are two nested classes, not functions.
Ooops .. yes of course .. simple mistake (it was late .. :)
> In my opinion,
> neither should be nested. Nothing is gained and something is lost.
> Neither are used by client; indeed both use
On Fri, 20 Mar 2009 21:47:00 +1100, Ben Finney
wrote:
[snip]
Somewhat by accident I noticed this other part of the PEP:
Other Python daemon implementations that differ from this PEP:
[snip]
* Twisted [twisted]_ includes, perhaps unsurprisingly, an
implementation of a process daemonisat
This did not wok.
I continued to get those warning and Import Error.
I wanr through documentation of multiprocessing and it looks almost similar
to processing module.
Any advantages of multiprocessing module ?
On Fri, Mar 20, 2009 at 6:53 PM, Christian Heimes wrote:
> Deepak Rokade wrote:
>
Hi,
I am using Leopard and MacPython, and I would like to access a USB
device. I have installed libusb, and now I have tried to compile PyUSB
from:
http://sourceforge.net/projects/pyusb/
But when I compile I get lots of errors, ie:
pcfr147:pyusb-0.4.1 david$ python setup.py install
running insta
venutaurus...@gmail.com wrote:
Thank you for your suggestion but.. I'll have around 1000 such files
in the whole directory and it becomes hard to manage such output
because again I've to take this snapshot before backing up the data
and have to do the same and compare both when the data gets rest
Deepak Rokade wrote:
> This did not wok.
> I continued to get those warning and Import Error.
>
> I wanr through documentation of multiprocessing and it looks almost similar
> to processing module.
> Any advantages of multiprocessing module ?
You may have to disable more features and recompile e
In article ,
Nigel Rantor wrote:
>Aahz wrote:
>> In article
>> <9a5d59e1-2798-4864-a938-9b39792c5...@s9g2000prg.googlegroups.com>,
>> Raymond Hettinger wrote:
>>>
>>> Here's a new, fun recipe for you guys:
>>>
>>> http://code.activestate.com/recipes/576694/
>>
>> That is *sick* and perverted.
On Mar 20, 4:43 pm, "R. David Murray" wrote:
> Sreejith K wrote:
> > Hi,
>
> > >>> snapdir = './mango.txt_snaps'
> > >>> snap_cnt = 1
> > >>> block = 0
> > >>> import os
> > >>> os.chdir('/mnt/gfs_local')
> > >>> snap = open(snapdir + '/snap%s/%s' % (repr(snap_cnt), repr(block)),'r')
> > >>> snap
Michele Simionato wrote:
The interesting thing is that Sphinx uses pygments
and can highlight any code fragment, not only Python
code. For instance, last week I did some experiment
with Sphinx to convert my "Adventures of a Pythonista
in Schemeland" (which contains Scheme code) to PDF
and it work
Hello all,
I am curious why nested classes don't seem to be used much in Python.
I see them as a great way to encapsulate related information, which is
a
good thing.
In my other post "improve this newbie code/nested functions in
Python?"
(I accidentally referred to nested functions rather nested
On Mar 20, 2009, at 9:48 AM, Dr Mephesto wrote:
Hi,
I am using Leopard and MacPython, and I would like to access a USB
device. I have installed libusb, and now I have tried to compile PyUSB
from:
http://sourceforge.net/projects/pyusb/
But when I compile I get lots of errors, ie:
Hi Dr. M.,
On 11/03/09 - 05:05, Luca wrote:
> There is standard or sugested way in python to read the content of a P7M file?
>
> I don't need no feature like verify sign, or sign using a certificate.
> I only need to extract the content file of the p7m (a doc, a pdf, ...)
For PDF files you can just remove t
Great ! It worked.
I set HAVE_FD_TRANSFER = 0 and now that is working.
I guess this feature should be for distributing task to remote machines...
I do not require it as of now but any idea when this will be supported in
multiprocessing ?
Is this code not considered to support sun Solaris environmen
Hello there,
I'd like to get the same result of set() but getting an indexable
object.
How to get this in an efficient way?
Example using set
A = [1, 2, 2 ,2 , 3 ,4]
B= set(A)
B = ([1, 2, 3, 4])
B[2]
TypeError: unindexable object
Many thanks, alex
--
http://mail.python.org/mailman/listinfo/py
On Mar 20, 3:05 pm, Tim Golden wrote:
> Michele Simionato wrote:
>
> >http://www.phyast.pitt.edu/~micheles/scheme/TheAdventuresofaPythonist...
>
> > (I think the OP may be interested in how the PDF output of
> > Sphinx-generated documents may look like).
>
> That looks really snappy. Do you have t
[posted and e-mailed, please respond to newsgroup]
In article <2961e0af-d99b-4d5e-a280-f521ce7fa...@e10g2000vbe.googlegroups.com>,
msoulier wrote:
>
>I'm using the Python packaged with CentOS 4.7, which is a patched
>2.3.4. Yes, ancient but I can't do anything about it.
That's not ancient -- ma
Chris Rebert wrote:
On Fri, Mar 20, 2009 at 4:34 AM, Alessandro Zivelonghi
wrote:
Many Thanks guys!
and what if I need to look ONLY into the second and third columns,
excluding the first item of each rows?
for example if x = 3 I need to get [0] and not [0,1]
indices = [i for i, row in enum
On Fri, 2009-03-20 at 07:16 -0700, Alexzive wrote:
> Hello there,
>
> I'd like to get the same result of set() but getting an indexable
> object.
> How to get this in an efficient way?
>
> Example using set
>
> A = [1, 2, 2 ,2 , 3 ,4]
> B= set(A)
> B = ([1, 2, 3, 4])
>
> B[2]
> TypeError: unin
Hi all,
I've been reading/posting to usenet since the 80s with a variety of
tools (vn, and most recently Thunderbird) but since my ISP
(TimeWarner) no longer provides usenet feeds I'm stuck.
I am not crazy about the web interface via google groups, is
there another way to read/post this in a nice
I'd almost like to think there are a bunch
of nice python programs out there that to
this :-)
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 2009-03-20 at 07:42 -0700, Esmail wrote:
> Hi all,
>
> I've been reading/posting to usenet since the 80s with a variety of
> tools (vn, and most recently Thunderbird) but since my ISP
> (TimeWarner) no longer provides usenet feeds I'm stuck.
>
> I am not crazy about the web interface via
Dear Fellow programmers,
I'm using Python scripts too organize some rather large datasets
describing DNA variation. Information is read, processed and written
too a file in a sequential order, like this
1+
1-
2+
2-
etc.. The files that i created contain positional information
(nucleotide position
"Esmail" wrote in message
news:03081704-17b5-4c7d-82db-8efb7ebce...@q11g2000yqh.googlegroups.com...
Hi all,
I've been reading/posting to usenet since the 80s with a variety of
tools (vn, and most recently Thunderbird) but since my ISP
(TimeWarner) no longer provides usenet feeds I'm stuck.
I
On Mar 19, 2:02 am, Shah Sultan Alam wrote:
> Hi ,
> I am using following code to create a graph
> def plot_plot():
> ax = pylab.subplot(111)
> for count in range(len(yaxes_values)):
> pylab.subplots_adjust(left=0.13, bottom=0.21,
> right=0.90, top=0.90,wspace=0.20, hspa
You could use:
B=list(set(A)).sort()
Hope that helps.
T
--
http://mail.python.org/mailman/listinfo/python-list
http://www.telegraph.co.uk/news/newstopics/howaboutthat/5018294/Pub-evacuated-after-Monty-Python-prop-mistaken-for-grenade.html
--
Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/
"Programming language design is not a rational science. Most reasoning
about it is at be
On Fri, 2009-03-20 at 07:54 -0700, thomasvang...@gmail.com wrote:
> You could use:
> B=list(set(A)).sort()
> Hope that helps.
Which will assign None to B.
sorted(list(... or B.sort() is probably what you meant.
--
http://mail.python.org/mailman/listinfo/python-list
thomasvang...@gmail.com wrote:
You could use:
B=list(set(A)).sort()
Hope that helps.
That would leave a B with value None :-)
B=list(sorted(set(A))
could work.
smime.p7s
Description: S/MIME Cryptographic Signature
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, 20 Mar 2009 at 07:09, Sreejith K wrote:
On Mar 20, 4:43?pm, "R. David Murray" wrote:
Sreejith K wrote:
Hi,
snapdir = './mango.txt_snaps'
snap_cnt = 1
block = 0
import os
os.chdir('/mnt/gfs_local')
snap = open(snapdir + '/snap%s/%s' % (repr(snap_cnt), repr(block)),'r')
snap.read()
Tino Wildenhain wrote:
thomasvang...@gmail.com wrote:
You could use:
B=list(set(A)).sort()
Hope that helps.
That would leave a B with value None :-)
B=list(sorted(set(A))
could work.
sorted() accepts an iterable, eg a set, and returns a list:
B = sorted(set(A))
--
http://mail.python.org/m
On Mar 20, 9:48 am, Christian Meesters wrote:
> as I got no answers with the previous question (subject: disabling
> compiler flags in distutils), I thought I should ask the question in a
> different way: Is there an option to set the compiler flags for a C/C++
> extension in distutils? There is t
On Mar 20, 9:54 am, "thomasvang...@gmail.com"
wrote:
> You could use:
> B=list(set(A)).sort()
> Hope that helps.
> T
That may hurt more than help, sort() only works in-place, and does
*not* return the sorted list. For that you want the global built-in
sorted:
>>> data = map(int,"6 1 3 2 5 2 5 4
thomasvang...@gmail.com wrote:
Dear Fellow programmers,
I'm using Python scripts too organize some rather large datasets
describing DNA variation. Information is read, processed and written
too a file in a sequential order, like this
1+
1-
2+
2-
etc.. The files that i created contain positional
Thanks.
I found some more info that might help, if I understood it :)From the
main PyUSB page, at http://pyusb.berlios.de/ , its says:
"PyUSB uses the libusb to do its work, so, any system which has Python
and libusb should work for PyUSB."
I have installed the OSX version of libusb, and it puts
On Mar 20, 9:58 am, Ben Finney wrote:
> Ben Finney writes:
> > Writing a Python program to become a Unix daemon is relatively
> > well-documented: there's a recipe for detaching the process and
> > running in its own process group. However, there's much more to a
> > Unix daemon than simply detac
Emanuele Rocca wrote:
> On 11/03/09 - 05:05, Luca wrote:
>> There is standard or sugested way in python to read the content of a P7M
>> file?
>>
>> I don't need no feature like verify sign, or sign using a certificate.
>> I only need to extract the content file of the p7m (a doc, a pdf, ...)
>
>
1 - 100 of 227 matches
Mail list logo