Thanks, for the link
--
http://mail.python.org/mailman/listinfo/python-list
"Robert Brewer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Brane wrote:
> can someone please give me some info regarding subject
>
>http://sourceforge.net/projects/mysql-python
>
>Ask a broad question...
>
>
>Robert Brewer
Robert, the question was about 'mssql', not 'mysql'. As f
"Chris Lasher" <[EMAIL PROTECTED]> writes:
> Forgive my ignorance, but what does using mmap do for the script? My
> guess is that it improves performance, but I'm not sure how. I read the
> module documentation and the module appears to be a way to read out
> information from memory (RAM maybe?).
On Fri, 14 Jan 2005 09:12:49 -0500, Tim Peters <[EMAIL PROTECTED]>
wrote:
>[Aki Niimura]
>> I started to use pickle to store the latest user settings for the tool
>> I wrote. It writes out a pickled text file when it terminates and it
>> restores the settings when it starts.
>...
>> I guess DOS te
Is there an Index server available in Python? For example:
I have large intranet with several servers and I would like to index
documents like search engines do. Users then can search for a domument
in ALL intranet servers like I do on Google.
Thanks for answers
L.A.
--
http://mail.python.org/ma
yuzx wrote:
>>> conn = DB2.connect(dsn='sample', uid='db2inst1', pwd='ibmdb2')
but i don't know about dsn,
If the database is DB2/400 and you try to connect from iSeries, dsn
would be '*local' for local database, or its name (not hostname or IP
address!) as returned by dsprdbdire command
[Tim Peters]
>>Yes: regardless of platform, always open files used for pickles
>> in binary mode. ...
[John Machin]
> Tim, the manual as of version 2.4 does _not_ mention the need
> to use 'b' on OSes where it makes a difference, not even in the
> examples at the end of the chapter. Further, it s
Max M wrote:
> # -*- coding: latin-1 -*-
>
> """
>
> I am currently using the datetime package, but I find that the design
> is oddly
> asymmetric. I would like to know why. Or perhaps I have misunderstood
> how it should be used?
Yes, you did. datetime.timetuple is those who want *time module* fo
Say again???
"Reinhold Birkenfeld" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
> It's me wrote:
> > Sorry if my question was a little "lazy" and yes, I was asking about the
> > "lazy evaluation". :=)
> >
> > I am surprised about this (and this can be dangerous, I guess).
> >
> > I
It's me wrote:
> Say again???
>
> "Reinhold Birkenfeld" <[EMAIL PROTECTED]> wrote in
> message news:[EMAIL PROTECTED]
>> It's me wrote:
>> > Sorry if my question was a little "lazy" and yes, I was asking about the
>> > "lazy evaluation". :=)
>> >
>> > I am surprised about this (and this can be da
In article <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]> wrote:
>
> I have a wxPython application that does a lot of things. One of them,
>in particular, I have doubts on how to implement it. Essentially, this part
>of my application calls an external executable (an oil reservoir
>simulator). What
Brian Eable wrote:
> perl -e '$a="194.109.137.226"; @a = reverse split /\./, $a; for $i
(0..3) { $sum += $a[$i]*(256**$i) } print "sum = $sum\n"'
>
> 226 + 35072 + 7143424 + 3254779904 = 3261958626
>
> http://3261958626/
>
> Which is NOT 666.
Comrade, why perl here? :)
Are you afraid python? :)
--
Peter Hansen wrote:
Paul Rubin wrote:
Simon Wittber <[EMAIL PROTECTED]> writes:
Is there a reason NOT to use them? If a classic class works fine, what
incentive is there to switch to new style classes?
Perhaps classic classes will eventually disappear?
It just means that the formerly "classic"
It's me wrote:
Say again???
Please stop top-posting -- it makes it hard to reply in context.
"Reinhold Birkenfeld" wrote...
It's me wrote:
If this is true, I would run into trouble real quick if I do a:
(1/x,1.0e99)[x==0]
Lazy evaluation: use the (x==0 and 1e99 or 1/x) form!
If you want short-circu
Peter Maas wrote:
Steven Bethard schrieb:
BJörn Lindqvist wrote:
[...]
I believe this can be nicelier written as:
if "Makefile" in basename:
+1 for "nicelier" as VOTW (Vocabulation of the week) =)
Me too, because nicelier is nicer than more nicely. :)
Is that really the niceliest way to express th
Serge Orlov wrote:
Max M wrote:
Yes, you did. datetime.timetuple is those who want *time module* format, you should use datetime.data, datetime.time, datetime.year
and so on...
As they say, if the only tool you have is timetuple, everything looks like tuple
Try this:
dt = datetime(2005, 1, 1,
Steven Bethard wrote:
> It's me wrote:
>> Say again???
>
> Please stop top-posting -- it makes it hard to reply in context.
>
>> "Reinhold Birkenfeld" wrote...
>>>It's me wrote:
If this is true, I would run into trouble real quick if I do a:
(1/x,1.0e99)[x==0]
>>>
>>>Lazy evaluation:
Thanks much..:)
On 14 Jan 2005 12:25:43 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>A search on google gave me this library, I haven't tested it though:
>http://groups-beta.google.com/group/comp.lang.python.announce/browse_frm/thread/6d3263250ed65816/291074d7bd94be63?q=com+port+python&
Michael Hobbs wrote:
Simon Wittber <[EMAIL PROTECTED]> wrote:
I've noticed that a few ASPN cookbook recipes, which are recent
additions, use classic classes.
I've also noticed classic classes are used in many places in the
standard library.
I've been using new-style classes since Python 2.2, and am
David Bear wrote:
How does one query the python environment, ie pythonhome, pythonpath,
etc.
also, are there any HOWTO's on keeping multiple versions of python
happy?
In general, (and in this case) the answer is system-specific.
You need to explain (A) what operating system, and (B) what you
mean
Michael Hoffman wrote:
David Bear wrote:
How does one query the python environment, ie pythonhome
sys.prefix
> pythonpath
sys.path
etc.
[...]
I suspect rather that the OP is looking for os.environ, as in:
[EMAIL PROTECTED] sholden]$ ENVAR=value
[EMAIL PROTECTED] sholden]$ export ENVAR
[EMAIL PRO
Have you tried using UDP instead of TCP? Also, it is common practice to
choose a random port over 1024 for opening a connection to a remote
server.
--
http://mail.python.org/mailman/listinfo/python-list
WEBoggle needs a new game board every three minutes. Boards take an
unpredictable (much less than 3min, but non-trivial) amount of time to
generate. The system is driven by web requests, and I don't want the
request that happens to trigger the need for the new board to have to
pay the time cos
Lucas Saab wrote:
Arich Chanachai wrote:
Jane wrote:
"Lucas Raab" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Jane wrote:
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
python.org = 194.109.137.226
194 + 109 + 137 + 226 = 666
What is this website with such a
On Fri, 14 Jan 2005 20:13:48 +0100, Reinhold Birkenfeld <[EMAIL PROTECTED]>
wrote:
>Bengt Richter wrote:
>> On Thu, 13 Jan 2005 08:18:25 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
>>
>>>[EMAIL PROTECTED] wrote:
In Mythical Future Python I would like to be able to use any base in
in
[EMAIL PROTECTED] wrote:
Is there an Index server available in Python? For example:
I have large intranet with several servers and I would like to index
documents like search engines do. Users then can search for a domument
in ALL intranet servers like I do on Google.
Thanks for answers
L.A.
Take
Antoon Pardon wrote:
Op 2005-01-14, Peter Maas schreef <[EMAIL PROTECTED]>:
I have summarized the discussion about the usability of lists (and
and other mutable types) as dictionary keys and put it into the
Python wiki.URL: http://www.python.org/moin/DictionaryKeys.
This summary might be used as a
Paul Rubin wrote:
"Fredrik Lundh" <[EMAIL PROTECTED]> writes:
Huh? Expressions are not statements except when they're "expression
statements"? What kind of expression is not an expression statement?
any expression that is used in a content that is not an expression
statement,
of course.
Come on
Max M wrote:
> Serge Orlov wrote:
>> Max M wrote:
>
>> Yes, you did. datetime.timetuple is those who want *time module*
>> format, you should use datetime.data, datetime.time, datetime.year
>> and so on... As they say, if the only tool you have is timetuple, everything
>> looks like tuple Try this
Bengt Richter wrote:
On 12 Jan 2005 14:46:07 -0800, "Chris Lasher" <[EMAIL PROTECTED]> wrote:
[...]
Others have probably solved your basic problem, or pointed
the way. I'm just curious.
Given that the information content is 2 bits per character
that is taking up 8 bits of storage, there must be a g
Jeff Shannon wrote:
Chris Lasher wrote:
And besides, for long-term archiving purposes, I'd expect that zip et
al on a character-stream would provide significantly better
compression than a 4:1 packed format, and that zipping the packed
format wouldn't be all that much more efficient than zipping th
On Fri, Jan 14, 2005 at 04:26:02PM -0600, Evan Simpson wrote:
> WEBoggle needs a new game board every three minutes. Boards take an
> unpredictable (much less than 3min, but non-trivial) amount of time to
> generate. The system is driven by web requests, and I don't want the
> request that happ
[Max M]
> ...
> First of, it should be possible to easily convert between the
> datetime objects.
Why? All the conversions people asked for when the module was being
designed were implemented.
> And eg. the date object doesn't have a datetime() method. Which
> it could easily have.
But not a *s
Peter Maas wrote:
I have summarized the discussion about the usability of lists (and
and other mutable types) as dictionary keys and put it into the
Python wiki.URL: http://www.python.org/moin/DictionaryKeys.
Antoon Pardon wrote:
> I had a look and I think you should correct the followingr:
>
> D
On 14 Jan 2005 07:32:06 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>Yes, my examle here is a tiny part of a larger more complex issue. My
>application is an DOM XML parser that is reading attributes one at a
you mean like blah blah and you are
grabbing things of interest out of a stream
In article <[EMAIL PROTECTED]>,
"Chris Lasher" <[EMAIL PROTECTED]> wrote:
> Hello,
> I have a rather large (100+ MB) FASTA file from which I need to
> access records in a random order. The FASTA format is a standard format
> for storing molecular biological sequences. Each record contains a
> hea
Bengt, and all,
Thanks for all the good input. The problems seems to be that .find()
is good for text files on Windows, but is not much use when it is
binary data. The script is for a Assy Language build tool, so I know
the exact seek address of the binary data that I need to replace, so
maybe
[Tim Peters]
>> That differences may exist is reflected in the C
>> standard, and the rules for text-mode files are more restrictive
>> than most people would believe.
[Irmen de Jong]
> Apparently. Because I know only about the Unix <-> Windows
> difference (windows converts \r\n <--> \n when usin
I'm looking for a solution (or ideas about a solution) to the problem
that strftime(3) and strptime(3) don't understand time increments of
less than one second. Most operating systems can provide times with
subsecond resolution and like Python I'm pretty sure Ruby, Perl and
Tcl have objects or pac
"mr_little" <[EMAIL PROTECTED]> writes:
> Brian Eable wrote:
> > perl -e '$a="194.109.137.226"; @a = reverse split /\./, $a; for $i
> (0..3) { $sum += $a[$i]*(256**$i) } print "sum = $sum\n"'
> >
> > 226 + 35072 + 7143424 + 3254779904 = 3261958626
> >
> > http://3261958626/
> >
> > Which is NOT 66
Hello everyone,
I am currently involved with a project involving instant messengers and
social networks. We really need some talented individuals to help our
team out with some Python code. Your work would be open sourced, and
you would be credited in the application itself. Compensation is
neg
Steve Holden wrote:
I suspect rather that the OP is looking for os.environ, as in:
He was using the examples of PYTHONHOME and PYTHONPATH which have
specific meanings. Using sys.prefix is better than
os.environ["PYTHONHOME"], which is unlikely to be set.
--
Michael Hoffman
--
http://mail.python.o
Denis S. Otkidach wrote:
Certainly, it can be done more efficient:
Yes, of course. I should have thought about the logic of my code before
posting. But I didn't want to spend any more time on it than I had to. ;-)
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
You could also use os.spawnl to launch it in a separate process.
--
http://mail.python.org/mailman/listinfo/python-list
jtauber schreef:
> see http://cleese.sourceforge.net/
There is not much to see there, most of the wiki is filled with spam...
--
JanC
"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
--
http://mail.python.org/mailman/listi
. # here's an example of if statement in python.
.
. x=-1
. if x<0:
. print 'neg'
. elif x==0:
. print 'zero'
. elif x==1:
. print 'one'
. else:
. print 'other'
.
. # the elif can be omitted.
. --
. # here's an example of if statement in perl
.
. $x=3
neophyte wrote:
Nick Coghlan wrote:
> Is
> this something to do with system modules being singletons?
They aren't singletons in the GoF design pattern sense. However,
Python's import
machinery operates in such a way that it takes effort to get multiple
version of
the same module into memory at the
On 14 Jan 2005 15:40:27 -0800, "yaipa" <[EMAIL PROTECTED]> wrote:
>Bengt, and all,
>
>Thanks for all the good input. The problems seems to be that .find()
>is good for text files on Windows, but is not much use when it is
>binary data. The script is for a Assy Language build tool, so I know
Did
Michael Hoffman wrote:
Denis S. Otkidach wrote:
Certainly, it can be done more efficient:
Yes, of course. I should have thought about the logic of my code before
posting. But I didn't want to spend any more time on it than I had to. ;-)
Bah, you satanic types are so lazy.
--
http://mail.python.org
engsol wrote:
I didn't fully think through my application before posting my
question. Async com port routines to handle com port interrups
only work well if one has access to the low level operating
system. In that case the receive buffer interrupt would cause
a jump to an interrupt service routine
On Wed, Jan 12, 2005 at 10:36:54PM -0800, yaipa wrote:
> What would be the common sense way of finding a binary pattern in a
> .bin file, say some 200 bytes, and replacing it with an updated pattern
> of the same length at the same offset?
>
> Also, the pattern can occur on any byte boundary in th
Lucas Raab wrote:
Sorry, the third "byte" is what I meant.
Fair enough. Note, however, that as someone pointed out,
it's actually the *fourth* of something, and it would not
necessarily be a byte. In fact, in your case, it's not:
typedef unsigned long int word32 ;
void mu(word32 *a)
{
int i ;
Interesting discussion. My own thoughts:
http://www.oreillynet.com/pub/wlg/6224
http://www.oreillynet.com/pub/wlg/6225
Meanwhile, please don't make the mistake of bothering with XQuery.
It's despicable crap. And a huge impedance mismatch with Python.
--Uche
--
http://mail.python.org/mailman/l
Peter Hansen wrote:
So why duplicate the posts by posting them to the newsgroups?
Because he's a well-known pest.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Yes I'm / Learning from falling / Hard lessons
--
101 - 154 of 154 matches
Mail list logo