On Aug 1, 11:52 pm, Ian Clark <[EMAIL PROTECTED]> wrote:
> Gerard Flanagan wrote:
> > (snip)
>
> > def tostring(data):
> > return tuple(strftime(x) for x in data[:2]) + data[2:]
>
> Hrmm, not sure that having a function named tostring() that returns a
> tuple is the best idea. ;)
>
oops! SAD (
On Thu, 02 Aug 2007 06:32:11 +, james_027 wrote:
> hi
>
> for example I have this dictionary
>
> dict = {'name':'james', 'language':'english'}
First of all, this is a bad name because it shadows (overwrites) the
reference to the builtin constructor, `dict`.
> value = 'sex' in dict and dic
I am working with Python 2.5 and Postgresql 8.2.4.
I would like to know how to perform the backup and restore operations
on postgresql through a python API (e.g. psycopg2).
Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
On 8/1/07, Robert Dailey <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm well aware of the datetime module, however it is really inconsistent
> and useless to me. In order to do any arithmetic on time objects, I have to
> use the 'timedelta' class, which doesn't even allow me to do all the math I
> want
Adam Kubica a écrit :
> After some king of brain fucked tries, I found:
>
> zlib.decompress( data ) #equivalent gzdecompress()
> zlib.decompress( data, -zlib.MAX_WBITS ) #equivalent gzdeflate()
Note: you can also use encode() and decode() methods on the string
containing your data, specifying 'z
james_027 wrote:
> hi
>
> for example I have this dictionary
>
> dict = {'name':'james', 'language':'english'}
>
> value = 'sex' in dict and dict['sex'] or 'unknown'
>
> is a right pythonic of doing this one? I am trying to get a value from
> the dict, but if the key doesn't exist I will provide on
Damjan a écrit :
> Is there some project that implements web access to an IMAP store?
>
> Maybe something AJAXy like http://roundcube.net/??
I dont know if this fill your need, but in my Python bookmarks, for
webmail I have a reference to NiMail (http://www.nimail.org/).
A+
Laurent.
--
http:/
james_027 wrote:
> hi
>
> for example I have this dictionary
>
> dict = {'name':'james', 'language':'english'}
>
> value = 'sex' in dict and dict['sex'] or 'unknown'
>
> is a right pythonic of doing this one? I am trying to get a value from
> the dict, but if the key doesn't exist I will provid
james_027 <[EMAIL PROTECTED]> wrote in news:1186036331.304916.304020
@e9g2000prf.googlegroups.com:
> hi
>
> for example I have this dictionary
>
> dict = {'name':'james', 'language':'english'}
>
> value = 'sex' in dict and dict['sex'] or 'unknown'
>
> is a right pythonic of doing this one? I a
[EMAIL PROTECTED] (Alex Martelli) wrote in news:1i26u6o.pthuan2j7nufN%
[EMAIL PROTECTED]:
> Alex Popescu <[EMAIL PROTECTED]> wrote:
>...
>> Have you seen/heard of Jim lately? Cause I haven't. By the time he
was
>> the lead of the AspectJ team his charismatic presence was everywhere
(at
>> le
Edward O'Connor a écrit :
>> Could anyone put me on the right track to developing Python with emacs
>> please : modes to consider, debugging etc hopefully all within emacs.
>
> Personally, I prefer the python.el that ships with Emacs 22 to the
> python-mode.el from python.org. It seems more like o
Hi
Welcome to python !
there a a few suggestions in ur code which is a good practice to follow.
In the snippet:
> > for x in range(len(x_value)):
> > x_co = float(x_value[x])-float(x_value[x+1])
> > y_co = float(y_value[x])-float(y_value[x+1])
> > z_co = floa
hg a écrit :
(snip)
> Are there any cscope & ECB equivalent for Python ?
ECB (assuming we're talking about the same thing, ie Emacs Code Browser)
works just fine with Python.
--
http://mail.python.org/mailman/listinfo/python-list
greg <[EMAIL PROTECTED]> writes:
> Be careful with this. If you have two values that are
> very close together, but on different sides of a rounding
> boundary, they will end up as distinct keys even though
> they "should" be regarded as equal.
I don't think this is a big problem. It will only gi
james_027 a écrit :
> hi
>
> for example I have this dictionary
>
> dict = {'name':'james', 'language':'english'}
>
> value = 'sex' in dict and dict['sex'] or 'unknown'
>
> is a right pythonic of doing this one?
No. The first problem is that using 'dict' as an identifier, you're
shadowing the
Bruno Desthuilliers <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Steven D'Aprano a écrit :
> (snip)
>
>> Instead of doing:
>
>> if callable(function): function()
>>
>> you should do:
>>
>> try:
>> function()
>> except TypeError:
>> pass
>
> There are time where you may want
Hi,
what if we're not dealing with dict? is there a pythonic way of doing
ternary? the bool ? x:y
Thanks
james
--
http://mail.python.org/mailman/listinfo/python-list
beginner a écrit :
> Hi,
>
> In order to print out the contents of a list, sometimes I have to use
> very awkward constructions. For example, I have to convert the
> datetime.datetime type to string first, construct a new list,
s/list/tuple/
> and then
> send it to print. The following is an exa
Il Thu, 02 Aug 2007 13:54:46 +1000, John McMonagle ha scritto:
> What window manager are you using ?
Hi John,
I'm using gnome, with gdm. Do you think the problem is this? I'm going to
try with another one ...
bye
--
http://mail.python.org/mailman/listinfo/python-list
On 18:23 Wed 01 Aug , Steve Holden wrote:
> Joshua J. Kugler wrote:
> > On Wednesday 01 August 2007 13:53, Robert Dailey wrote:
> >> He's secretly an employee of Wing IDE in disguise!!!
> >
> > Sorry to destroy your conspiracy theories, but no, I've never been employed
> > by Wing IDE in any f
I've tried to use Twm and SURPRISE! it works!!!
Can you say why? How can I fix the prob with Gnome?
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
james_027 a écrit :
> Hi,
>
> what if we're not dealing with dict? is there a pythonic way of doing
> ternary? the bool ? x:y
Python 2.5 introduced the following syntax:
expr1 if condition else expr2
In older Python versions, one has to use and/or (like you wrongly did)
or tuple/dict dispatch
-- Forwarded message --
From: cpmishra <[EMAIL PROTECTED]>
Date: Aug 2, 11:37 am
Subject: No module named DBUtils.PooledDB
To: comp.lang.python
Hi all
I have used DBUtil with python2.4. when we run to program in
dos command ,successfully run but when we run in apache ser
i dont know how to convert a txt file into a zip file
(i.e.,)i have a file named packages and i want the packages file with
a ".gz" extension by implementing a python program
--
http://mail.python.org/mailman/listinfo/python-list
Neil Cerutti wrote:
> On 2007-08-01, Cameron Laird <[EMAIL PROTECTED]> wrote: .
>> I want to re-emphasize the "triple-quote it" tip mentioned
>> earlier in this thread. I think the original questioner
>> will find this quite satisfying, if I understand his situ-
>> ation at all.
>>
>> *I* ce
Alex Popescu a écrit :
> Bruno Desthuilliers <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
(snip)
>> if hasattr(obj, '__call__'):
>># it's a callable
>>
>> but I don't find it so Pythonic to have to check for a __magic__
>> method.
>
> It looks like Python devs have decided it is Py
John K Masters wrote:
> On 18:23 Wed 01 Aug , Steve Holden wrote:
>> Joshua J. Kugler wrote:
>>> On Wednesday 01 August 2007 13:53, Robert Dailey wrote:
He's secretly an employee of Wing IDE in disguise!!!
>>> Sorry to destroy your conspiracy theories, but no, I've never been employed
>>>
Edward O'Connor <[EMAIL PROTECTED]> writes:
>> Could anyone put me on the right track to developing Python with emacs
>> please : modes to consider, debugging etc hopefully all within emacs.
>
> Personally, I prefer the python.el that ships with Emacs 22 to the
> python-mode.el from python.org. It
I know I can use a variable in regular expressions. I want to use a
regex to find something based on the beginning of the string. I am
using yesterday's date to find all of my data from yesterday.
Yesterday's date is 20070731, and assigned to the variable
"yesterday_date". I want to loop thru a dir
cpmishra wrote:
> Hi all
>I have used DBUtil in mysql databse. when we run to program in
> dos command ,successfully run but when we run in apache server
> (locally)with modepython then given error.Pls give me suggation
>
> error:
> No module named DBUtils.PooledDB
>
It seems likely that
On 2007-08-02, at 13:43, [EMAIL PROTECTED] wrote:
> I know I can use a variable in regular expressions. I want to use a
> regex to find something based on the beginning of the string. I am
> using yesterday's date to find all of my data from yesterday.
> Yesterday's date is 20070731, and assigned
Hi everybody ,
I am a beginner in python,
I have to fetch the redundant entries from a file,
code:
import re
L = []
fh = open('ARCHITECTURE_MAIN.txt','r')
for line in fh.readlines():
data =line.strip()
# splitted = data.split('#')
L.append(data)
fh.close()
M
On Aug 2, 4:31 am, [EMAIL PROTECTED] wrote:
>
> i want the packages file with
> a ".gz" extension by implementing a python program
http://docs.python.org/lib/module-gzip.html
--
http://mail.python.org/mailman/listinfo/python-list
...
> Yesterday's date is 20070731, and assigned to the variable
> "yesterday_date". I want to loop thru a directory and find all of the
> yesterday's data ONLY IF the feature class has the date at the
> BEGINNING of the filename.
...
> I can't figure out the
> syntax of inserting the "^" into the
En Wed, 01 Aug 2007 20:14:06 -0300, Raj B <[EMAIL PROTECTED]> escribió:
> Consider a new-style class
>
> class rabbit(object):
>def __init__(self,c):
> self.color = c
>
> r1=rabbit("blue")
> r2=rabbit("purple")
>
> Which C struct in the Python implementation is used to represen
Hi
pls redefine ur problem.
I donot understand what u wanted to accomplish .
is it that u wanted to check and represent the redundant entry numbers as
one entry or is it
with the isoform id as a single entry and without considering other data
like start and stop ?
also observe that when u consi
Hi all!
I am embedding Python into a GUI application in a way that the GUI is
scriptable using Python.
Now I have come to a problem that when the user puts a "sys.exit(0)"
into his script to end the script, not only the script is terminated,
but also the GUI application itself. This is not the in
<[EMAIL PROTECTED]> wrote:
>I know I can use a variable in regular expressions. I want to use a
>regex to find something based on the beginning of the string.
You're coming from a Perl background, right? No-one else would
think of using a regexp for such a simple thing. There are two
things you n
On Thu, 02 Aug 2007 10:00:04 +1000, Ben Finney wrote:
> beginner <[EMAIL PROTECTED]> writes:
>
>> Thanks everyone for responding. It doesn't look like python has
>> it. I would definitely miss it. As Steve said, the nice thing about
>> __END__ is that things below __END__ do not have to have legi
On Aug 1, 3:50 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> beginner wrote:
> > Hi Everyone,
>
> > I am looking for a way to allow a standalone python process to easily
> > interactive with a few web pages. It has to be able to easily receive
> > requests from the web and post data to the we
[EMAIL PROTECTED] wrote:
> I know I can use a variable in regular expressions. I want to use a
> regex to find something based on the beginning of the string. I am
> using yesterday's date to find all of my data from yesterday.
> Yesterday's date is 20070731, and assigned to the variable
> "yesterd
On Thu, 2007-08-02 at 00:38 -0300, Gabriel Genellina wrote:
> I'd start with:
>
> select column, count(column), min(column), max(column)
> from table
> group by column
> order by count(column) desc
What's the point of including min(column) and max(column)? They're
always going to be equal to col
In <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] mentions:
>Python is a better language, with php support, anyway, but I am fed up
>with attitudes of comp.lang.perl.misc. Assholes in this newsgroup ruin
>Perl experience for everyone. Instead of being helpful, snide remarks,
>back-biting, scare tactings, a
[when replying to a mailing list or newsgroup response please make sure
you include the list as a recipient, so the whole conversation is available]
André Martins wrote:
>
>> I know I can use a variable in regular expressions. I want to use a
>> regex to find something based on the beginning o
Dear Colleague,
I would like to bring to your attention information about a
forthcoming conference and to strongly encourage you to submit a paper
or papers to it.
This is the 12th International Workshop on Combinatorial Image
Analysis (IWCIA 08) which will take place in Buffalo, USA, 7-9 April
2
On Thu, 02 Aug 2007 09:31:43 +, cool.vimalsmail wrote:
[snip]
You would be better off actually writing a sensible subject line instead
of grovelling.
Subject: How to use gzip in Python? [beginner]
Then, having written a good subject line, it might have suggested a good
search string for Goo
On Aug 1, 5:04 am, Bruno Desthuilliers wrote:
> beginner a écrit :
> (snip)
>
> > Yes exactly. I just don't want to reinvent the wheel as I imagine
> > there are already tons of libraries and frameworks that support RPC or
> > the like functions.
>
> Why go thru the pain of RPC, SOAP or such bloat
On 2007-08-02, Magnus Lycka <[EMAIL PROTECTED]> wrote:
> Neil Cerutti wrote:
>> On 2007-08-01, Cameron Laird <[EMAIL PROTECTED]> wrote: .
>>> I want to re-emphasize the "triple-quote it" tip mentioned
>>> earlier in this thread. I think the original questioner
>>> will find this quite satisfy
> I know I can use a variable in regular expressions. I want to use a
> regex to find something based on the beginning of the string. I am
> using yesterday's date to find all of my data from yesterday.
> Yesterday's date is 20070731, and assigned to the variable
> "yesterday_date". I want to loop
On Aug 2, 8:08 am, Neil Cerutti <[EMAIL PROTECTED]> wrote:
> On 2007-08-02, Magnus Lycka <[EMAIL PROTECTED]> wrote:
>
>
>
> > Neil Cerutti wrote:
> >> On 2007-08-01, Cameron Laird <[EMAIL PROTECTED]> wrote: .
> >>> I want to re-emphasize the "triple-quote it" tip mentioned
> >>> earlier in this
Hi all,
It's possible that I'm missing the obvious -- I've been up for over 24
hours and I'm most likely dehydrated from mass coffee intake, but I
figure many people in similar circumstances will be searching
comp.lang.python one day, so here goes!
class LibraryClass(object):
"""
A clas
On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
> Other than installing PIL, is there a "simple" way using Python only
> to determine if a file is a valid image file?
>
> I'd be happy if I could at least identify valid images files for gif,
> jpeg and png. Pointers to existing modules or exa
On Aug 2, 8:51 am, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Thu, 02 Aug 2007 09:31:43 +, cool.vimalsmail wrote:
>
> [snip]
>
> You would be better off actually writing a sensible subject line instead
> of grovelling.
>
> Subject: How to use gzip in Python? [beginner]
>
> Then, having wri
On Aug 2, 6:49 am, [EMAIL PROTECTED] wrote:
> Hi all,
>
> It's possible that I'm missing the obvious -- I've been up for over 24
> hours and I'm most likely dehydrated from mass coffee intake, but I
> figure many people in similar circumstances will be searching
> comp.lang.python one day, so here
Rohan wrote:
> I would like to get a list of sub directories in a directory.
> If I use os.listdir i get a list of directories and files in that .
> i only want the list of directories in a directory and not the files
> in it.
> anyone has an idea regarding this.
>
import os
listofdirs=[d for d i
On Thursday 02 August 2007, André wrote:
> On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
> > Other than installing PIL, is there a "simple" way using Python only
> > to determine if a file is a valid image file?
> >
> > I'd be happy if I could at least identify valid images files for gif,
>
André wrote:
> On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
>> Other than installing PIL, is there a "simple" way using Python only
>> to determine if a file is a valid image file?
>>
>> I'd be happy if I could at least identify valid images files for gif,
>> jpeg and png. Pointers to exi
On Aug 2, 7:08 am, [EMAIL PROTECTED] wrote:
> On Aug 2, 6:49 am, [EMAIL PROTECTED] wrote:
>
>
>
> > Hi all,
>
> > It's possible that I'm missing the obvious -- I've been up for over 24
> > hours and I'm most likely dehydrated from mass coffee intake, but I
> > figure many people in similar circumst
On Aug 2, 9:35 am, Thomas Jollans <[EMAIL PROTECTED]> wrote:
> On Thursday 02 August 2007, André wrote:
>
> > On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
> > > Other than installing PIL, is there a "simple" way using Python only
> > > to determine if a file is a valid image file?
>
> > > I
André napisał(a):
>> Other than installing PIL, is there a "simple" way using Python only
>> to determine if a file is a valid image file?
>>
>> I'd be happy if I could at least identify valid images files for gif,
>> jpeg and png. Pointers to existing modules or examples would be
>> appreciated
On Aug 2, 11:34 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
> André napisa³(a):
>
> >> Other than installing PIL, is there a "simple" way using Python only
> >> to determine if a file is a valid image file?
>
> >> I'd be happy if I could at least identify valid images files for gif,
> >> jpeg and pn
Other than installing PIL, is there a "simple" way using Python only
to determine if a file is a valid image file?
I'd be happy if I could at least identify valid images files for gif,
jpeg and png. Pointers to existing modules or examples would be
appreciated.
The reason why I'd prefer not usi
On Aug 2, 1:55 am, Acm <[EMAIL PROTECTED]> wrote:
> I am working with Python 2.5 and Postgresql 8.2.4.
>
> I would like to know how to perform the backup and restore operations
> on postgresql through a python API (e.g. psycopg2).
>
> Thank you.
I don't know much about postgres, but here's what m
On Aug 2, 11:38 am, [EMAIL PROTECTED] wrote:
> On Aug 2, 9:35 am, Thomas Jollans <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Thursday 02 August 2007, André wrote:
>
> > > On Aug 2, 11:14 am, André <[EMAIL PROTECTED]> wrote:
> > > > Other than installing PIL, is there a "simple" way using Python only
>
On Aug 1, 5:45 pm, "Joshua J. Kugler" <[EMAIL PROTECTED]> wrote:
> I tend to let questions slide when they are answered in the documentation or
> on the web site. Maybe theWingdevelopers/support personnel are the same
> way.
Just to clarify: We never do that. If you don't hear from us in
respon
André wrote:
> Other than installing PIL, is there a "simple" way using Python only
> to determine if a file is a valid image file?
>
> I'd be happy if I could at least identify valid images files for gif,
> jpeg and png. Pointers to existing modules or examples would be
> appreciated.
>
> The
On Aug 2, 3:32 am, Bruno Desthuilliers wrote:
> beginner a écrit :
>
> > Hi,
>
> > In order to print out the contents of a list, sometimes I have to use
> > very awkward constructions. For example, I have to convert the
> > datetime.datetime type to string first, construct a new list,
>
> s/list/t
On Aug 1, 6:42 pm, John K Masters <[EMAIL PROTECTED]> wrote:
> To suggest that, because the autocompletion worked on one method of a
> module and not on another was because I had not configured the
> PYTHONPATH properly is at least insulting.
We certainly didn't intend to be insulting. This it th
> From: Joshua J. Kugler
>
> I am getting results like these with the time module:
>
> >>> import time
> >>> int(time.mktime(time.strptime('2007-03-11 02:00:00', '%Y-%m-%d
%H:%M
> %S')))
> 1173610800
> >>> int(time.mktime(time.strptime('2007-03-11 03:00:00', '%Y-%m-%d
%H:%M
> %S')))
> 1173610800
On Aug 1, 8:50 pm, Gary Herron <[EMAIL PROTECTED]> wrote:
> Walker Lindley wrote:
> > OK, I'm back with another networking question. I'm trying to seend
> > large amounts of information over TCP (the length of data being given
> > to send() is on the order of 16000 characters in length).
> > Unfort
Hey everyone. I have been working with python for a couple years now,
but just recently built my first program with a GUI. I decided to
start with Tkinter since it is included with the base package,
although wxWindows will likely be my next choice. Tkinter seems to be
pretty slow for my needs.
On 02/08/07, Beema shafreen <[EMAIL PROTECTED]> wrote:
> Hi everybody ,
> I am a beginner in python,
> I have to fetch the redundant entries from a file,
>
> code:
>
> import re
> L = []
> fh = open('ARCHITECTURE_MAIN.txt',
> 'r')
> for line in fh.readlines():
> data =line.st
Bruno Desthuilliers <[EMAIL PROTECTED]>
wrote:
> Alex Popescu a écrit :
> > Bruno Desthuilliers <[EMAIL PROTECTED]> wrote in
> > news:[EMAIL PROTECTED]:
> (snip)
> >> if hasattr(obj, '__call__'):
> >># it's a callable
> >>
> >> but I don't find it so Pythonic to have to check for a __magic__
[EMAIL PROTECTED] wrote:
> On Aug 2, 7:08 am, [EMAIL PROTECTED] wrote:
>> On Aug 2, 6:49 am, [EMAIL PROTECTED] wrote:
>>
>>
>>
>>> Hi all,
>>> It's possible that I'm missing the obvious -- I've been up for over 24
>>> hours and I'm most likely dehydrated from mass coffee intake, but I
>>> figure ma
Hello,
I am trying to promote python in my job, my collegue only see matlab
and microsoft scripting language.
I understood that there willl be no backward compatibility between
python 2.x and 3.0, does it means that:
- my script using pywin32 for the COM layer and scipy for the maths
won't work
beginner a écrit :
> On Aug 1, 5:04 am, Bruno Desthuilliers [EMAIL PROTECTED]> wrote:
>> beginner a écrit :
>> (snip)
>>
>>> Yes exactly. I just don't want to reinvent the wheel as I imagine
>>> there are already tons of libraries and frameworks that support RPC or
>>> the like functions.
>> Why g
Hi everyone, this is my first post to this list. I am trying to create a
subclass of datetime.date and pickle it, but I get errors on loading it
back. I have created a VERY simple demo of this:
import datetime
class MyDate(datetime.date):
"""
This should be pickleable.
>>> md =
Alex Martelli a écrit :
> Bruno Desthuilliers <[EMAIL PROTECTED]>
> wrote:
>
>> Alex Popescu a écrit :
>>> Bruno Desthuilliers <[EMAIL PROTECTED]> wrote in
>>> news:[EMAIL PROTECTED]:
>> (snip)
if hasattr(obj, '__call__'):
# it's a callable
but I don't find it so Pythonic t
I was wondering if anyone could help me with cross-compiling Python
2.5.1 to a MIPS target.
The approach I'm using is based off the suggestion in the README file
that comes with the python source distribution.
I managed to get the configure script to run using the following
command line:
$ ../Py
Hello,
I am trying to get wxpython to run with python 2.5 without any success.
wx works prefectly in python 2.4. below is the error code i get when i try
to run the code.
File "demo.py", line 3, in
import Main
File "/tmp/wxPython/Main.py", line 32, in
import wx #
vml wrote:
> Hello,
>
>
> I am trying to promote python in my job, my collegue only see matlab
> and microsoft scripting language.
> I understood that there willl be no backward compatibility between
> python 2.x and 3.0, does it means that:
>
> - my script using pywin32 for the COM layer and sc
On Aug 2, 8:51 am, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Thu, 02 Aug 2007 09:31:43 +, cool.vimalsmail wrote:
>
> [snip]
>
> You would be better off actually writing a sensible subject line instead
> of grovelling.
>
> Subject: How to use gzip in Python? [beginner]
>
> Then, having wri
On 8/2/07, G <[EMAIL PROTECTED]> wrote:
> Hello,
>
>
> I am trying to get wxpython to run with python 2.5 without any success.
> wx works prefectly in python 2.4. below is the error code i get when i try
> to run the code.
> File "demo.py", line 3, in
> import Main
> File "/tmp/wxPython
G wrote:
> Hello,
>
>
> I am trying to get wxpython to run with python 2.5 without any
> success. wx works prefectly in python 2.4. below is the error code i get
> when i try to run the code.
> File "demo.py", line 3, in
> import Main
> File "/tmp/wxPython/Main.py", line 32, in
>
It looks like you are doing some sort of molecular science thing.
Have you come across openbabel and the python bindings pybel
(http://openbabel.sourceforge.net/wiki/Python#Pybel). I don't know how
well they work but they might save you some effort. Also, check out
pymol,(http://pymol.sourceforge.n
Hi,
What I am trying to do is to run a subprocess on another machine using
subprocess.Popen, this subprocess contuinue writing something into a
file when it is runing.
After submit this subprocess, I tried to open the file and readlines()
in the loop (with a delay) in the loop) when the subproces
In article <[EMAIL PROTECTED]>,
james_027 <[EMAIL PROTECTED]> wrote:
> hi
>
> for example I have this dictionary
>
> dict = {'name':'james', 'language':'english'}
>
> value = 'sex' in dict and dict['sex'] or 'unknown'
>
> is a right pythonic of doing this one? I am trying to get a value from
Bruno Desthuilliers schrieb:
> beginner a écrit :
>> On Aug 1, 5:04 am, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote:
>>> beginner a écrit :
>>> (snip)
>>>
Yes exactly. I just don't want to reinvent the wheel as I imagine
there are already tons of libraries and frameworks that support R
On 08:00 Thu 02 Aug , [EMAIL PROTECTED] wrote:
> On Aug 1, 6:42 pm, John K Masters <[EMAIL PROTECTED]> wrote:
> > To suggest that, because the autocompletion worked on one method of a
> > module and not on another was because I had not configured the
> > PYTHONPATH properly is at least insultin
"gregarican" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| friendly than Python's. Your points are well-taken in how to properly
| post and how to do your own homework. Message correct. Delivery
| lacking...
Sorry, I saw nothing rude in Steven's straightforward and indeed polite
On Aug 2, 12:41 pm, JD <[EMAIL PROTECTED]> wrote:
> Hi,
>
> What I am trying to do is to run a subprocess on another machine using
> subprocess.Popen, this subprocess contuinue writing something into a
> file when it is runing.
>
> After submit this subprocess, I tried to open the file and readline
Thanks for answering,
No, the data was writing into the file when the subprocess was
runing.
For example, every second it will write something into the file.
I tried to run another python program aside and it sucessfully read
the file when the subprocess was runing.
JD
On Aug 2, 11:00 am, Adri
hello,
I have a very strange problem and I can't find any solution for that.
I am working on an accounting package which I wish to develop in python.
the simple problem is that I want to knoe how I can know if the given
date is the nth day of a month.
for example if a customer is supposed to pay hi
On 8/1/07, hg <[EMAIL PROTECTED]> wrote:
> Are there any cscope & ECB equivalent for Python ?
ECB is not language specific. It works the same for browsing Python
code as any other language.
--
Greg Donald
http://destiney.com/
--
http://mail.python.org/mailman/listinfo/python-list
krishnakant Mane wrote:
> hello,
> I have a very strange problem and I can't find any solution for that.
> I am working on an accounting package which I wish to develop in python.
> the simple problem is that I want to knoe how I can know if the given
> date is the nth day of a month.
> for example
I was wondering if there could be an arrangement where a file could be
attached and send as an email.
For ex
f = open(add.txt,w)
f.write('python')
f.close()
Now I would like to send an email with add.txt as an attachment, is it
possible ?
some one give me a pointer towards this.
--
http://mail.p
On Aug 2, 12:31 pm, "krishnakant Mane" <[EMAIL PROTECTED]> wrote:
> hello,
> I have a very strange problem and I can't find any solution for that.
> I am working on an accounting package which I wish to develop in python.
> the simple problem is that I want to knoe how I can know if the given
> dat
On 02/08/07, Ian Clark <[EMAIL PROTECTED]> wrote:
>
> http://docs.python.org/lib/node85.html
>
I looked there even before.
but could not figure out what the code did.
I know in that variable called s there was a string in a valid date format.
but when datetime.strptime was used, I did not understa
JD wrote:
> Hi,
>
> What I am trying to do is to run a subprocess on another machine using
> subprocess.Popen, this subprocess contuinue writing something into a
> file when it is runing.
>
> After submit this subprocess, I tried to open the file and readlines()
> in the loop (with a delay) in th
"vml" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| I am trying to promote python in my job, my collegue only see matlab
| and microsoft scripting language.
| I understood that there willl be no backward compatibility between
| python 2.x and 3.0, does it means that:
Most of the
1 - 100 of 191 matches
Mail list logo