On Thu, 22 Mar 2007 09:11:51 +1100, Ben Finney wrote:
> "Steven D'Aprano" <[EMAIL PROTECTED]> writes:
>
>> Is your program valuable? Is it worth money? Then the 90% of script
>> kiddies will just wait three days, and download the program off the
>> Internet after the real hackers have broken your
I'm trying to write a Digital Image Processing program using the PIL
library, and upon consultation of the Handbook I see that it seems to
have built in functions to run Edge Detection (in the ImageFilter
module), but I don't see anything about Segmentation. Are there any
built-in tools to do this
Alex Martelli wrote:
> Tom Wright <[EMAIL PROTECTED]> wrote:
>
>> real programs. I can't help thinking that there are some situations where
>> you need a lot of memory for a short time though, and it would be nice to
>> be able to use it briefly and then hand most of it back. Still, I see the
>>
Terry Reedy wrote:
> "Mark T" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> | This is interesting:
> |
> | >>> class Test(object):
> | ... def __getattribute__(self,n):
> | ... print 'reading',n
> | ... return object.__getattribute__(self,n)
> | ... def __setattr__(se
Steven D. Arnold wrote:
> Neosynapse is seeking a senior software developer located in or
Subtract ten points from your credibility for writing senior here.
> willing to relocate to the Northern VA area to join a project
> building one of the largest grid computing data platforms in the
>
Zeng Nan wrote:
> On Thu, Mar 22, 2007 at 01:26:22AM -0700, Johny wrote:
>> I have the following text
>>
>> Goods Item 146 (174459989) - OurWebSite
>>
>> from which I need to extract
>> `Goods Item 146 '
>>
>> Can anyone help with regexp?
>> Thank you for help
>> L.
>
> (Goods\s+Item\s+146\s+)
>>
> For future reference, and I hope you don't mind the lesson, the past
> tense of "bind" is "bound" (I can't state it as a firm rule, but many
> *ind words seem to go *ound: bind, find, wind [as in wrap, not blowing
> in the...], grind -> bound, found, wound [not to confuse with an
> injur
Dear list members,
I have a Perl script which crypts a password using a clearteaxt password
and a username.
Example:
username = '[EMAIL PROTECTED]'
password = 'root'
The crypted password is: 'roK20XGbWEsSM'
The crypted password always starts with the first 2 characters of the
username (
Mark T wrote:
> "Alex Martelli" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> John Nagle <[EMAIL PROTECTED]> wrote:
>>
>>> Marcin Ciura wrote:
>>>
Neither would I. I must have expressed myself not clearly enough.
Currently
x = y = z
is roughly equivalent to
>
"Virgil Dupras" <[EMAIL PROTECTED]> wrote:
> I think I see what Marcin means. The 'node' is changed too fast in the
> chain, and next is assigned to 'nextnode' instead of being assigned to
> node.
I can see why Marcin was confused. Many other languages assignment is an
expression, so a=b=c is si
I have the following text
Goods Item 146 (174459989) - OurWebSite
from which I need to extract
`Goods Item 146 '
Can anyone help with regexp?
Thank you for help
L.
--
http://mail.python.org/mailman/listinfo/python-list
Dennis Lee Bieber a écrit :
> On Thu, 22 Mar 2007 03:27:37 +1100, Steven D'Aprano
> <[EMAIL PROTECTED]> declaimed the following in
> comp.lang.python:
>
>> So what should "a b c d" be?
>>
>> (a, b, c, d)
>> a(b, c, d)
>> a(b, (c, d))
>> a(b(c, d))
>> a(b(c(d)))
>>
>> Have I missed anything? Which
On 22/03/2007 3.46, Carl Douglas wrote:
> Hi Giovanni,
>
> I was wondering if gccmrt can be used with older 3.x versions of GCC?
>
> Thanks
I think so, but I have not tried it. You just need to copy gccmrt to the bin
directory, and then copy "libmsvcrt.a" into "libmsvcr60.a", and "libmsvcrtd.a
On Thu, Mar 22, 2007 at 01:26:22AM -0700, Johny wrote:
> I have the following text
>
> Goods Item 146 (174459989) - OurWebSite
>
> from which I need to extract
> `Goods Item 146 '
>
> Can anyone help with regexp?
> Thank you for help
> L.
(Goods\s+Item\s+146\s+)
--
Zeng Nan
MY
On 22/03/2007 3.13, John Pye wrote:
>> I suggest people to try my GCC 4.1.2 binary installer for Windows which fully
>> integrates with Python and has scripts in place to solve the MSVCR71.DLL
>> problem. It was announced on this very list a few days ago:
>>
>> http://www.develer.com/oss/GccWinBin
Duncan Booth wrote:
> "Virgil Dupras" <[EMAIL PROTECTED]> wrote:
>
>> I think I see what Marcin means. The 'node' is changed too fast in the
>> chain, and next is assigned to 'nextnode' instead of being assigned to
>> node.
>
> I can see why Marcin was confused. Many other languages assignment is
Dear all,
I cannot find a solution for my problem with inserting a blob object
(>4000 in length) into an ORACLE database via ODBC.
I have tried the two ways of inserting the blob object (a zip file):
1)
fp = open("c:/test/test.zip", "r+b")
data = fp.read()
s = odbc.odbc(cs)
qry = s.cursor()
qr
Steve Holden wrote:
>> /rant
>>
> Feel better now?
Yes! But *now* I'm afraid it will have negative consequences for my
future employability. However if it will lead to adjusting the kind of
submissions at http://www.python.org/community/jobs/
it was probably worth it.
A.
'thanks for asking'
-
Godzilla wrote:
> Dear all,
>
> I cannot find a solution for my problem with inserting a blob object
> (>4000 in length) into an ORACLE database via ODBC.
>
>
> I have tried the two ways of inserting the blob object (a zip file):
>
>
> 1)
> fp = open("c:/test/test.zip", "r+b")
> data = fp.read
Anton Vredegoor wrote:
> Steven D. Arnold wrote:
>
[...]
> /rant
>
Feel better now?
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden
Recent Ramblings http://hol
Johny a écrit :
> I have the following text
>
> Goods Item 146 (174459989) - OurWebSite
>
> from which I need to extract
> `Goods Item 146 '
>
> Can anyone help with regexp?
Sure : the documentation is here:
http://docs.python.org/lib/module-re.html
And there's a nice tutorial here:
http:/
Nico Grubert <[EMAIL PROTECTED]> writes:
> Example:
>username = '[EMAIL PROTECTED]'
>password = 'root'
>
> The crypted password is: 'roK20XGbWEsSM'
that looks like you want crypt(3), not md5. See:
http://docs.python.org/lib/module-crypt.html
Sample session:
>>> import crypt
On 21 Mar, 19:11, Lew <[EMAIL PROTECTED]> wrote:
> Dr. Who wrote:
> > Don't Feed The Trolls :-)
>
> But, but - you fed me!?
>
[blah]
>
> We could put up a contest - whoever finds and corrects the most errors in the
> post wins. Ties broken by the quality of the correct explanations. Incorrect
> exp
dmitrey wrote:
> if you want
> result = func1(func2(arg))
> you should use
> result = func1 (func2 arg)
This is in conflict with current meanig, Ergo it breaks old code
rgds
\SK
--
http://mail.python.org/mailman/listinfo/python-list
swiftset wrote:
> I'm try to convert a glyph into a format I can easily numerically
> manipulate. So far I've figured out how to use ttfquery to get a list
> that represents the outline of a contour in a glyph:
>
> from ttfquery import describe, glyphquery, glyph
> f = describe.openFont("/usr/shar
Tom Wright <[EMAIL PROTECTED]> wrote:
> real programs. I can't help thinking that there are some situations where
> you need a lot of memory for a short time though, and it would be nice to
> be able to use it briefly and then hand most of it back. Still, I see the
> practical difficulties with
Godzilla wrote:
> Dear all,
>
> I cannot find a solution for my problem with inserting a blob object
> (>4000 in length) into an ORACLE database via ODBC.
>
>
> I have tried the two ways of inserting the blob object (a zip file):
>
>
> 1)
> fp = open("c:/test/test.zip", "r+b")
> data = fp.read
On 22 Mar, 10:21, "Godzilla" <[EMAIL PROTECTED]> wrote:
>
> I cannot find a solution for my problem with inserting a blob object
> (>4000 in length) into an ORACLE database via ODBC.
This brings back "happy" memories with Oracle 9i and JDBC.
> I have tried the two ways of inserting the blob objec
Cameron Laird a écrit :
> This is the first time you've received "Python-URL!" in 2007. No,
> that's not the fault of your mail server; we've just been on sabbatical.
> Now we're back.
Great ! I was a bit worried...
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
> Cameron Laird a écrit :
>> This is the first time you've received "Python-URL!" in 2007. No,
>> that's not the fault of your mail server; we've just been on sabbatical.
>> Now we're back.
>
> Great ! I was a bit worried...
>
Seconded; I've always looked forward to
Lew <[EMAIL PROTECTED]> writes:
> Xah Lee wrote:
>> In a functional language, a function can be specified by its name and
>
> Are you sure you know what a "functional language" is?
>
>> parameter specs. For example:
>> f(3)
>> f(3, [9,2])
>> f("some string")
>
> This is not really "typical" synta
On Mar 22, 10:56 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> Godzilla wrote:
> > Dear all,
>
> > I cannot find a solution for my problem with inserting a blob object
> > (>4000 in length) into an ORACLE database via ODBC.
>
> > I have tried the two ways of inserting the blob object (a zip file):
Jim Burton wrote:
> Or you could stop feeding the trolls.
People need to stop saying that. The original post was a detailed if incorrect
exposition of Java information. How in the world do you rate that trollish?
I have absolutely no reason to rate the OP as a troll or their post as trollish.
-
Lew <[EMAIL PROTECTED]> writes:
> Jim Burton wrote:
>> Or you could stop feeding the trolls.
>
> Does not apply. The OP was not being trollish
You obviously don't know Xah. He's been doing this for years, cross-
posting to various language groups trying to start an argument between
them. He even
Eric S. Johansson wrote:
> I need to to be able to conditionally log based on the method the log
> statement is in and one other factor like a log level. in order to do
> so, I need to be able to automatically find out the name of the method
> and its class but I haven't found out how to do tha
I need to to be able to conditionally log based on the method the log
statement is in and one other factor like a log level. in order to do
so, I need to be able to automatically find out the name of the method
and its class but I haven't found out how to do that yet.
for example,
class catus
Srikanth wrote:
> Hi,
>
> list.remove(item) removes the first item from the list, but how do I
> say to remove a particular index from a list without using it's value?
>
> Let's say I have 4 items in my list as
>
li = ["sri", "s", "srikanth", "s"]
>
> And if I want to remove the last item
>>> li = ["sri", "s", "srikanth", "s"]
> And if I want to remove the last item ("s"), how do I remove it?
> li.remove(-1) doesn't do it. This is my problem.
>
> Thanks,
> Srikanth
>
li.pop() will remove the last element
Cyril
--
http://mail.python.org/mailman/listinfo/python-list
Srikanth wrote:
> list.remove(item) removes the first item from the list, but how do I
> say to remove a particular index from a list without using it's value?
>
> Let's say I have 4 items in my list as
>
li = ["sri", "s", "srikanth", "s"]
>
> And if I want to remove the last item ("s"), h
Peter Otten wrote:
> Srikanth wrote:
>
>> list.remove(item) removes the first item from the list, but how do I
>> say to remove a particular index from a list without using it's value?
>>
>> Let's say I have 4 items in my list as
>>
> li = ["sri", "s", "srikanth", "s"]
>> And if I want to remo
Thanks Steve, Cyril and Peter.
>
> This, or not reading the tutorial.
>
> http://docs.python.org/tut/node7.html#SECTION00720
>
> Peter
I read this 2 months ago and I expected it to be a method of list, but
I sound like I am making an excuse. Thanks a lot.
Regards,
Srikanth
--
h
Steve Holden <[EMAIL PROTECTED]> wrote:
> Help me out here. It looks as though the real syntax should
> be something like
>
> assignment_stmt ::= (target_list "=")+ expression_list |
> (target_list "=")+ assignment_stmt
That is precisely the point. I
Hi,
list.remove(item) removes the first item from the list, but how do I
say to remove a particular index from a list without using it's value?
Let's say I have 4 items in my list as
>>> li = ["sri", "s", "srikanth", "s"]
And if I want to remove the last item ("s"), how do I remove it?
li.remov
Steve Holden wrote:
> Peter Otten wrote:
>> Srikanth wrote:
>>
>>> list.remove(item) removes the first item from the list, but how do I
>>> say to remove a particular index from a list without using it's value?
>>>
>>> Let's say I have 4 items in my list as
>>>
>> li = ["sri", "s", "srikanth"
Eric S. Johansson wrote:
> I need to to be able to conditionally log based on the method the log
> statement is in and one other factor like a log level. in order to do
> so, I need to be able to automatically find out the name of the method
> and its class but I haven't found out how to do that
Looking at different MVC frameworks from many langauges from PHP to
Python, I've concluded that the explosion of MVC frameworks is mainly
due to undisciplined & unexperienced programmers.
Nobody would argue about the separation of the layers because this is
not the problem I have with it, if anyth
> "Anton" == Anton Vredegoor <[EMAIL PROTECTED]> writes:
Anton> Steve Holden wrote:
>> Feel better now?
Anton> Yes! But *now* I'm afraid it will have negative consequences for
Anton> my future employability. However if it will lead to adjusting the
Anton> kind of submissio
Steve Holden <[EMAIL PROTECTED]> wrote:
...
> > a. fork
> > b. do the memory-hogging work in the child process
> > c. meanwhile the parent just waits
> > d. the child sends back to the parent the small results
> > e. the child terminates
> > f. the parent proceeds merrily
> >
> > I learned this
On 22 Mar, 12:45, Lew <[EMAIL PROTECTED]> wrote:
> Jim Burton wrote:
> > Or you could stop feeding the trolls.
>
> People need to stop saying that. The original post was a detailed if incorrect
> exposition of Java information. How in the world do you rate that trollish?
>
> I have absolutely no re
On Mar 22, 7:23 pm, Giovanni Bajo <[EMAIL PROTECTED]> wrote:
> I personally don't use MSYS so I don't know exactly. I use SCons too, and I
> simply run it from the normal command prompt.
>
> I *believe* it's sufficient to unpack MSYS somewhere (you can either unpack it
> *over* the directory where
On Mar 22, 2007, at 9:29 AM, [EMAIL PROTECTED] wrote:
> mickey mouse
Well, at least you spelled Mickey Mouse right... :-)
--
http://mail.python.org/mailman/listinfo/python-list
Duncan Booth wrote:
> Steve Holden <[EMAIL PROTECTED]> wrote:
>
>> Help me out here. It looks as though the real syntax should
>> be something like
>>
>> assignment_stmt ::= (target_list "=")+ expression_list |
>> (target_list "=")+ assignment_stmt
>
"jim burton" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 22 Mar, 12:45, Lew <[EMAIL PROTECTED]> wrote:
>> Jim Burton wrote:
>> > Or you could stop feeding the trolls.
>>
>> People need to stop saying that. The original post was a detailed if
>> incorrect
>> exposition of Jav
Duncan Booth wrote:
> Steve Holden <[EMAIL PROTECTED]> wrote:
>
>>> As a matter of interest do PyLint or PyChecker check for this situation
>>> (chained assignment where the target of an assignment is also a
>>> subexpression of a later assignment)?
>>>
>> Where's the published syntax for chaine
Peter Otten wrote:
> Eric S. Johansson wrote:
>
>> I need to to be able to conditionally log based on the method the log
>> statement is in and one other factor like a log level. in order to do
>> so, I need to be able to automatically find out the name of the method
>> and its class but I haven'
"cjl" <[EMAIL PROTECTED]> wrote:
> This works:
>
> for row in soup.find("table",{"class": "class_name"}):
> for cell in row:
> print cell.contents[0]
>
> Is there a better way to do this?
>
It may work for the page you are testing against, but it wouldn't work if
your page cont
Wojciech Muła wrote:
> swiftset wrote:
>
>> I'm try to convert a glyph into a format I can easily numerically
>> manipulate. So far I've figured out how to use ttfquery to get a list
>> that represents the outline of a contour in a glyph:
>>
>> from ttfquery import describe, glyphquery, glyph
>>
Hi guys. It's been a while since I've used Python, so I got a little
rusty, but I really want to start using it again, just out of habit and
for fun. Can anyone suggest a book or a website with little projects I
could work on to keep me busy?
(I do have Beginning Python with the 10 projects in
Steve Holden <[EMAIL PROTECTED]> wrote:
> In other words,
>
> assignment_stmt ::= (target_list "=") expression_list |
> (target_list "=") assignment_stmt
>
> and
>
> assignment_stmt ::= (target_list "=") assignment_stmt |
>
On Mar 22, 2007, at 10:34 AM, John Salerno wrote:
> Hi guys. It's been a while since I've used Python, so I got a little
> rusty, but I really want to start using it again, just out of habit
> and
> for fun. Can anyone suggest a book or a website with little projects I
> could work on to keep m
Hi,
the behaviour I always observed when creating instances by calling the
class A is that '__init__' is always only called when the object
returned by A.__new__ is an instance of A. This can be observed by the
following code:
class A(object):
def __new__(cls, *args, **kwds):
print "A
On Mar 21, 11:11 pm, Sander Steffann <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Op 21-mrt-2007, om 20:41 heeft [EMAIL PROTECTED] het volgende
> geschreven:
>
>
>
> > On Mar 21, 11:07 am, Jon Ribbens <[EMAIL PROTECTED]> wrote:
> >> In article <[EMAIL PROTECTED]>, Stargaming wrote:
> >>> from sys import ve
John Nagle wrote:
>
> That's fascinating. Is that a documented feature of the language,
> or a quirk of the CPython interpreter?
>
Its a documented feature of the language. From the Reference Manual:
"An assignment statement evaluates the expression list (remember that
this can be a single ex
On Mar 22, 3:26 am, "Johny" <[EMAIL PROTECTED]> wrote:
> I have the following text
>
> Goods Item 146 (174459989) - OurWebSite
>
> from which I need to extract
> `Goods Item 146 '
>
> Can anyone help with regexp?
> Thank you for help
> L.
Here's the immediate answer to your question.
import r
Johny wrote:
> I have the following text
>
> Goods Item 146 (174459989) - OurWebSite
>
> from which I need to extract
> `Goods Item 146 '
>
> Can anyone help with regexp?
> Thank you for help
> L.
In general, parsing HTML with regular expressions is a bad idea.
Usually, you use somethin
I have a problem I wonder if it has been solved before.
I have a dictionnary and I want the values in the dictionnary to be
annotated with the rank that would be obtained by sorting the values
def annotate_with_rank(my_dict):
return my_annotated_dict
In other words, any value
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:
> I don't see any problem with::
>
> if version_info[0] <= 2 and version_info[1] < 4:
> raise RuntimeError()
What if the version number is 1.5?
--
http://mail.python.org/mailman/listinfo/python-list
Dan Turk
Colorado State University
26 Rockwell Hall
Fort Collins, CO 80523-1277
USA
March 22, 2007
My name is Dan Turk, and I am a faculty member in the Department of
Computer Information Systems at Colorado State University. My
colleague, Leo Vijayasarathy, and I are conducting a study to be
Mark T wrote:
>
> "Alex Martelli" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>> John Nagle <[EMAIL PROTECTED]> wrote:
>>
>>> Marcin Ciura wrote:
>>>
>>> > Neither would I. I must have expressed myself not clearly enough.
>>> > Currently
>>> > x = y = z
>>> > is roughly equiv
dmitrey wrote:
> 1st still is shorter by 1 char; considering majority of people use
> space after comma & number of parameters can be big it yileds
> foo bar baz bar2 bar3 bar4
> vs
> foo(bar, baz, bar2, bar3, bar4)
I think most readers already agree on the ambiguities part. Now, for the
length o
I try to connect to web services (written in C#/.NET) with latest ZSI
2.0rc3 library. It just does not work.
from ZSI.ServiceProxy import ServiceProxy
wsdl = 'http://192.168.0.103/NewWebServices/TemplateInsert.asmx?wsdl'
print ServiceProxy(wsdl, tracefile=sys.stdout)
"C:\opt\Python25\lib\site-
On Mar 21, 8:47 pm, "gtb" <[EMAIL PROTECTED]> wrote:
> Greetings,
>
> Don't know the daily limit for dumb questions so I will ask one or
> more.
>
> In a function I can use the statement n =
> sys._getframe().f_code.co_name to get the name of the current
> function. Given that I can get the name ho
[EMAIL PROTECTED] wrote:
> I think the steady increase in the number of active listings over the
> past couple years bodes well for the job prospects of Python
> programmers as a whole. There are currently 99 job postings on the
> job board dating back to mid-December. A year ago there were a
Bart Willems schrieb:
> Aaah, *now* we're getting somewhere... :-)
>
>>> All he wants is something that turns 'readable,
>>> changeable python' into 'unreadable, immutable python'.
>>
>> chown scriptuser script.py # a unique user
>> chmod a-rwx script.py
>> chmod u+rx script.py
>>
>> I believe
Aaah, *now* we're getting somewhere... :-)
>> All he wants is something that turns 'readable,
>> changeable python' into 'unreadable, immutable python'.
>
> chown scriptuser script.py # a unique user
> chmod a-rwx script.py
> chmod u+rx script.py
>
> I believe that fully meets the functional r
Hi,
On 22 Mar 2007 09:41:43 -0700
"alain" <[EMAIL PROTECTED]> wrote:
> I have a problem I wonder if it has been solved before.
> I have a dictionnary and I want the values in the dictionnary to be
> annotated with the rank that would be obtained by sorting the values
>
> def annotate_with_rank(m
Hi,
We're (BBC Research) participating in Google's Summer of Code as a mentor
organisation again, and I thought it worth spreading some extra publicity
where I think there might be some interested people. (I perhaps should've
sent this sooner!)
* What's Google Summer of Code? (I suspect most pe
Lew wrote:
> Jim Burton wrote:
>> Or you could stop feeding the trolls.
>
> People need to stop saying that. The original post was a detailed if
> incorrect
> exposition of Java information. How in the world do you rate that trollish?
a) Xah's posting history.
b) the cross-posting
c) the advoc
On Mar 22, 11:21 am, Michael Bentley <[EMAIL PROTECTED]>
wrote:
> On Mar 22, 2007, at 10:34 AM, John Salerno wrote:
>
> > Hi guys. It's been a while since I've used Python, so I got a little
> > rusty, but I really want to start using it again, just out of habit
> > and
> > for fun. Can anyone sugg
On Mar 22, 9:41 am, "alain" <[EMAIL PROTECTED]> wrote:
> I have a problem I wonder if it has been solved before.
> I have a dictionnary and I want the values in the dictionnary to be
> annotated with the rank that would be obtained by sorting the values
>
> def annotate_with_rank(my_dict):
>
"Virgil Dupras" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > class Node:
> > > ... pass
> > > ...
> > node = Node()
> > nextnode = Node()
> > backup_node = node
> > node = node.next = nextnode
> > node.next is node
> > > True
> > hasattr(ba
Hi, again,
On Thu, 22 Mar 2007 18:11:46 +0100
Frank Benkstein <[EMAIL PROTECTED]> wrote:
> On 22 Mar 2007 09:41:43 -0700
> "alain" <[EMAIL PROTECTED]> wrote:
>
> > I have a problem I wonder if it has been solved before.
> > I have a dictionnary and I want the values in the dictionnary to be
> >
[EMAIL PROTECTED] writes:
>Hi,
>Given a large ascii file (delimited or fixed width) with one ID field
>and dimensions/measures fields, sorted by dimensions, I'd like to
>"flatten" or "rollup" the file by creating new columns: one for each
>combination of dimension level, and summing up measures o
Hi,
i have a problem with time in python.
1) i got 2 values from mysql db (fields are "time" type)
2) python get it as "" (why timedelta???)
3) i need to compare 2 fields with actual time ... EG:
if ArrOutputsAuto[i].TimeFrom >= GNow and ArrOutputsAuto[i].TimeTo <= GNow:
i need actual time, and
> I tried to use different library - SOAPpy, but I couldn't. It requires
> fpconst library which cannot be installed because its server does not
> respond at all. What a shit...
>
I concur! When I tried to use ZSI the first time, it turned out it has
no support for attachments. Next time I it
DB:
Thank you, that worked perfectly.
-CJL
--
http://mail.python.org/mailman/listinfo/python-list
>
> 1) i got 2 values from mysql db (fields are "time" type)
> 2) python get it as "" (why timedelta???)
> 3) i need to compare 2 fields with actual time ... EG:
> if ArrOutputsAuto[i].TimeFrom >= GNow and ArrOutputsAuto[i].TimeTo
> <= GNow:
>
> i need actual time, and 2 fields from DB in datetim
This is a test.
--
http://mail.python.org/mailman/listinfo/python-list
Michael Bentley wrote:
> Perhaps it is different where you live, but here you can put on your
> resume relevant things that aren't paying jobs. Otherwise nobody
> would ever get their first job, right?
Sure you can. But around here if one has been unemployed for a while
it's nearly impossib
On Mar 22, 2007, at 12:07 PM, Anton Vredegoor wrote:
> Agreed. There's now probably even room on the job market for those who
> don't belong to the select elite of early adopters. We might even root
> out the professionalist attitude and address the problem of tying
> people
> to their resumes.
Actually, after studying this a bit more:
http://docs.python.org/ref/assignment.html
I guess that makes sense. Sorry if I muddied the water for anyone else in my
boat:
n1 = n1.next = n2
The first thing that happens is the expression list is evaluated which is
the thing on the far right, n2. That
"alain" <[EMAIL PROTECTED]> writes:
> def annotate_with_rank(my_dict):
>
> return my_annotated_dict
>
> In other words, any value a_value would become a 2-tuple
> (a_value,rank_of_a_value)
>
> I seek an elegant solution.
Untested:
def annotate_with_rank(my_dict):
s =
Bart Willems wrote:
> dmitrey wrote:
>> 1st still is shorter by 1 char; considering majority of people use
>> space after comma & number of parameters can be big it yileds
>> foo bar baz bar2 bar3 bar4
>> vs
>> foo(bar, baz, bar2, bar3, bar4)
>
> I think most readers already agree on the ambiguiti
Steve Holden <[EMAIL PROTECTED]> writes:
> > I agree that in you example the first syntax yields a full /five/
> > spaces less than the second syntax. However, it ignores the fact
> > that if you are creating functions with that many arguments, you are
> > probably doing something wrong. Can't thos
On Mar 22, 2007, at 1:00 PM, Anton Vredegoor wrote:
> So HRM people keep asking questions like 'But
> what have you been doing?' In the end I just started my own
> company, and
> while I'm not always employed as a freelancer I can at least now
> say I'm
> running my own business.
Yeah, I've
I'll be giving a variety of Python courses this Spring. Daytime
courses are for visitors and locals who need Python training in the
shortest amount of time possible via consecutive workdays. Python is
certainly gaining momentum as our February course filled up
completely! Although I had planned
alain wrote:
> I have a problem I wonder if it has been solved before.
> I have a dictionnary and I want the values in the dictionnary to be
> annotated with the rank that would be obtained by sorting the values
>
> def annotate_with_rank(my_dict):
>
> return my_annotated_dict
>
"Steve Holden" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Terry Reedy wrote:
| > The assignment order is specified in the language reference.
|
| Where? I'm looking at
|
| http://docs.python.org/ref/assignment.html
|
| right now.
The first line of the syntax grammar is:
assi
Hi,
how can I do
* for each sub-directory of the current directory
* tar that to a tar file
* remove that sub-directory
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden <[EMAIL PROTECTED]> wrote:
>> As a matter of interest do PyLint or PyChecker check for this situation
>> (chained assignment where the target of an assignment is also a
>> subexpression of a later assignment)?
>>
> Where's the published syntax for chained assignment?
http://docs.p
1 - 100 of 180 matches
Mail list logo