John Machin wrote:
>Duncan Booth wrote:
>
>
>>John Machin wrote:
>>
>>
>>
>>
So, my question is: does the Python API containe fonctions like
'get_argc()' and 'get_argv()' ?
>>>If you can't see them in the documentation, they aren't there. If they
>>>aren't the
On Monday 20 June 2005 06:39 am, Kent Johnson wrote:
> Terry Hancock wrote:
> > Okay, you may want a more elegant way to do this and other people
> > have already responded to that point, but you do at least know you
> > can just give it a new name:
> >
> > import _bright
> > bright = _bright
>
>
Dear Andrea Griffini,
Thanks for explaning this tricky underneath stuff.
Xah
[EMAIL PROTECTED]
∑ http://xahlee.org/
Andrea Griffini wrote:
> On Sun, 19 Jun 2005 22:25:13 -0500, Terry Hancock
> <[EMAIL PROTECTED]> wrote:
>
> >> PS is there any difference between
> >> t=t+[li]
> >> t.append(li)
Dear All,
In Php the following headers base we can clean
the cache in the url "header('Cache-Control:
no-store, no-cache, must-revalidate'); "
I want to know Php equivalent headers in Python-cgi
If anybody know regarding this kindly mail me.
regards,
Prabahar
__
kj wrote:
> I am hoping that it may be better this time around. For one thing,
> like Perl, Python was then (and maybe still is) a "work in progress."
> So I figure that Python scoping may have improved since then. Even
> if not, I think that Python is mature enough by now that adequate
> alterna
First I have to admit that my English isn't good enough. I'm still
studying and sometimes I just can't express what I want to express.
A few weeks ago I've written 'Python Builder' - a bash script that
allows anyone to download, compile (with flags given by user) and
install Python and some exter
SM Ryan wrote:
> "Kaz Kylheku" <[EMAIL PROTECTED]> wrote:
> # SM Ryan wrote:
> # > # easy way to see this, is to ask yourself: how come in mathematics
> # > # there's no such thing as "addresses/pointers/references".
> # >
> # > The whole point of Goedelisation was to add to name/value references
SM Ryan wrote:
> "Kaz Kylheku" <[EMAIL PROTECTED]> wrote:
> # SM Ryan wrote:
> # > # easy way to see this, is to ask yourself: how come in mathematics
> # > # there's no such thing as "addresses/pointers/references".
> # >
> # > The whole point of Goedelisation was to add to name/value references
Hello all,the following problem i encountered while transferring
data(mail ids) from MS-outlook to one application.Some mail ids after
came into the application looked as strange characters.Eg are [Å@ [Å.
[Å,©Ä@ ©Ä. ©Ä etc.I thought these are the Ascii characters but
i'm not quite sure about this.
"Kaz Kylheku" <[EMAIL PROTECTED]> wrote:
# SM Ryan wrote:
# > # easy way to see this, is to ask yourself: how come in mathematics
# > # there's no such thing as "addresses/pointers/references".
# >
# > The whole point of Goedelisation was to add to name/value references into
# > number theory.
#
#
Dear All,
In Php the following headers base we can clean
the cache in the url
"header('Cache-Control: no-store, no-cache,
must-revalidate'); "
I want to know Php equivalent headers in Python-cgi
If any know regarding this kindly mail me.
regards,
Prabahar
__
Using code objects?
===
As an OO exercise I have a factory pattern that returns class objects that
each have an "action" method. ClassObj.action() in turn returns a code
object in my recursive process loop.
I create the code objects as a one time step outside my factory pattern
Lawrence DâOliveiro wrote:
> In article <[EMAIL PROTECTED]>,
> "Xah Lee" <[EMAIL PROTECTED]> wrote:
>
> >A[n] easy way to see this, is to ask yourself: how come in mathematics
> >there's no such thing as "addresses/pointers/references".
>
> Yes there are such things in mathematics, though not ne
SM Ryan wrote:
> # easy way to see this, is to ask yourself: how come in mathematics
> # there's no such thing as "addresses/pointers/references".
>
> The whole point of Goedelisation was to add to name/value references into
> number theory.
Is that so? That implies that there is some table where
[Timothy Smith]
> i want to run my sql statements on a seperate thread to prevent my app
> from stop responding to input (atm is says "not responding" under
> windows until the sql is finished)
> but i'm hesitant because i have to still support win9x and i'm not sure
> how well this will play.
All
i want to run my sql statements on a seperate thread to prevent my app
from stop responding to input (atm is says "not responding" under
windows until the sql is finished)
but i'm hesitant because i have to still support win9x and i'm not sure
how well this will play.
--
http://mail.python.org/
Thank you Steven and Konstantin, that clears things up.
Sometimes I forget how incomplete my Python Essential Reference is.
James
On Monday 20 June 2005 05:40 pm, Steven Bethard wrote:
> Well, it's not a bug, because that's what the documentation says it'll do:
>
> "The second object is used to
I note that the help() function of interactive python can determine
all available modules:
[EMAIL PROTECTED] ~]$ python
Python 2.4 (#1, Mar 31 2005, 15:26:02)
[GCC 3.2.3 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help()
:-/ You're right!
--
http://mail.python.org/mailman/listinfo/python-list
On 6/21/05, Steven Bethard <[EMAIL PROTECTED]> wrote:
> James Stroud wrote:
> P.S. If you insist on using the two argument version of raise, you can
> do it like this:
>
> py> class E(Exception):
> ... def __init__(self, atup):
> ... Exception.__init__(self, "Error with %s-%s" % atup)
On 6/21/05, James Stroud <[EMAIL PROTECTED]> wrote:
> Hello All,
>
> Is this a bug?
No, it works as documented. You should've consulted language reference:
http://docs.python.org/ref/raise.html
- kv
--
http://mail.python.org/mailman/listinfo/python-list
James Stroud wrote:
> Hello All,
>
> Is this a bug? Why is this tuple getting unpacked by raise? Am I missing some
> subtle logic? Why does print not work the same way as raise? Both are
> statements. Why does raise need to be so special?
>
> py> sometup = 1,2
> py> print sometup
> (1, 2)
> py>
On 6/20/05, David Bear <[EMAIL PROTECTED]> wrote:
> I have a file that contains lists -- python lists. sadly, these
> are not pickled. These are lists that were made using
> a simple print list statement.
Sad, indeed. But what kind of objects they held? Only ints? Ints and
strings? Arbitrary objec
"Oliver Albrecht" <[EMAIL PROTECTED]> wrote ...
> Has some one an sodoku-task-generator?
Sudoku puzzles can be generated (and solved) online at
http://act365.com/sudoku/
--
http://mail.python.org/mailman/listinfo/python-list
Python will help you as a novice for these reasons:
1. Help you to learn programming concepts and develop good habits.
2. Powerful Standard Library to help you do more advanced things.
3. Smooth, shallow learning curve, e.g. hello world is:
print "Hello World"
So you can do simple th
Hello All,
Is this a bug? Why is this tuple getting unpacked by raise? Am I missing some
subtle logic? Why does print not work the same way as raise? Both are
statements. Why does raise need to be so special?
py> sometup = 1,2
py> print sometup
(1, 2)
py> print 1,2,3, sometup
1 2 3 (1, 2)
py> c
Rune Strand wrote:
> But iif it are many lists in the file and they're organised like this:
>
> ['a','b','c','d','e']
> ['a','b','c','d','e']
> ['A','B','C','D','E'] ['X','F','R','E','Q']
>
> I think this'll do it
>
> data = open('the_file', 'r').read().split(']')
>
> lists = []
> for el in dat
I am trying to install MySQL-Python 0.9.1 on my Solaris 8 system. The
system has Python 2.3.3 and Mysql 4.0.21 installed.
This is where I downloaded the distribution of the Mysql-python
package:
http://www.ravenbrook.com/project/p4dti/import/2001-10-16/MySQL-python-0.9.1/MySQL-python-0.9.1.tar.g
On 6/20/05, Sebastian Bassi <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am using HTMLgen. It is very nice. But I can't make it to
> generate an arbitrary command.
> For example I want to output this:
>
> type="image/svg+xml" name="wmap" wmode="transparent">
Works for me...
>>> d = HTMLgen.BasicD
Oliver Andrich wrote:
> 2005/6/21, Konstantin Veretennicov <[EMAIL PROTECTED]>:
>
>>It does, as long as headline and caption *can* actually be encoded as
>>macroman. After you decode headline from utf-8 it will be unicode and
>>not all unicode characters can be mapped to macroman:
>>
>>
>u'\u0
"Claudio Grondi" <[EMAIL PROTECTED]> writes:
>
> What has it all to do with Python? To be not fully off-topic, I
> suggest here, that it is much easier to discuss programming
> related matters (especially in case of Python :-) or mathematics
> than any other subjects related to nature, because pr
Andrew Dalke <[EMAIL PROTECTED]> writes:
> Andrea Griffini wrote:
> > Wow... I always get surprises from physics. For example I
> > thought that no one could drop confutability requirement
> > for a theory in an experimental science...
>
> Some physicists (often mathematical physicists) propose
>
Andrea Griffini <[EMAIL PROTECTED]> writes:
> On Tue, 14 Jun 2005 16:40:42 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote:
>
> >Um, you didn't do the translation right.
>
> Whoops.
>
> So you know assembler, no other possibility as it's such
> a complex language that unless someone already knows i
On Sun, 19 Jun 2005 22:25:13 -0500, Terry Hancock
<[EMAIL PROTECTED]> wrote:
>> PS is there any difference between
>> t=t+[li]
>> t.append(li)
>
>No, but
Yes, a big one. In the first you're creating a new list
and binding the name t to it, in the second you're extending
a list by adding one more
On 6/20/05, Michael Hoffman <[EMAIL PROTECTED]> wrote:
> Paul Watson wrote:
>
> > While printf() does tightly control formatting in C, it does not in
> > Python.
>
> There is no printf() in Python. You should not think of print as being a
> Python version of printf.
For quick and simple removal
But iif it are many lists in the file and they're organised like this:
['a','b','c','d','e']
['a','b','c','d','e']
['A','B','C','D','E'] ['X','F','R','E','Q']
I think this'll do it
data = open('the_file', 'r').read().split(']')
lists = []
for el in data:
el = el.replace('[', '').strip()
You can add Australia to the list :)
Any volunteers for a fourth continent? Antarctica, perhaps? ;)
- Jordan
--
http://mail.python.org/mailman/listinfo/python-list
If you decide to steer clear of eval, the following comes close to what
you want, and is somewhat Pythonic (I feel):
def back_to_list(str):
return str.strip("[]").split(", ")
>>> s = "[1, 2, 3, 4, 5, 6]"
>>> back_to_list(s)
['1', '2', '3', '4', '5', '6']
So parsing the list structure is prett
2005/6/21, Konstantin Veretennicov <[EMAIL PROTECTED]>:
> It does, as long as headline and caption *can* actually be encoded as
> macroman. After you decode headline from utf-8 it will be unicode and
> not all unicode characters can be mapped to macroman:
>
> >>> u'\u0160'.encode('utf8')
> '\xc5\x
On 6/20/05, Oliver Andrich <[EMAIL PROTECTED]> wrote:
> Does the following code write headline and caption in
> MacRoman encoding to the disk?
>
> f = codecs.open(outfilename, "w", "macroman")
> f.write(headline)
It does, as long as headline and caption *can* actually be encoded as
macrom
Be careful, though - make sure you can absolutely trust your source of
data before calling eval on it.
If an unauthorised person could forseeably modify your file, then they
could insert a string containing arbitrary Python code into it in place
of your list, and then running your program would ca
Oliver Andrich wrote:
> Well, I narrowed my problem down to writing a macroman or cp850 file
> using the codecs module. The rest was basically a misunderstanding
> about codecs module and the wrong assumption, that my input data is
> iso-latin-1 encode. It is UTF-8 encoded. So, curently I am at the
Paul Watson wrote:
> While printf() does tightly control formatting in C, it does not in
> Python.
There is no printf() in Python. You should not think of print as being a
Python version of printf.
--
Michael Hoffman
--
http://mail.python.org/mailman/listinfo/python-list
Jeremy Jones wrote:
> I think the only reason I read your posts is for comedy,
Indeed.
> Xah Lee wrote:
> ... [ lots of stuff, that if Xah cared about Xah would attempt to write
> better docs, rather than criticise) ...
...
>>Btw, behavior such as this one, common in imperative languages and i
Hello,
I am using HTMLgen. It is very nice. But I can't make it to generate
an arbitrary command.
For example I want to output this:
Each time I put "<" it gets escaped from HTML, instead of being inserted inside.
--
http://www.spreadfirefox.com/?q=affiliates&id=24672&t=1";>La
web sin popups
- Original Message -
From: "David Bear" <[EMAIL PROTECTED]>
> I have a file that contains lists -- python lists. sadly, these are not
> pickled. These are lists that were made using a simple print list
> statement.
>
> Is there an easy way to read this file into a list again? I'm thin
Well, I narrowed my problem down to writing a macroman or cp850 file
using the codecs module. The rest was basically a misunderstanding
about codecs module and the wrong assumption, that my input data is
iso-latin-1 encode. It is UTF-8 encoded. So, curently I am at the
point where I have my data re
I have a file that contains lists -- python lists. sadly, these are not
pickled. These are lists that were made using a simple print list
statement.
Is there an easy way to read this file into a list again? I'm thinking I
would have to
read until char = '['
read until char = " ' "
Well, rea
Has some one an sodoku-task-generator?
Here another solutions-ways:
http://www.python-forum.de/viewtopic.php?t=3378
--
input
--
http://mail.python.org/mailman/listinfo/python-list
> I know this isn't your question, but why write:
>
> > data = apply(string.replace, [data, html, char])
>
> when you could write
>
> data = data.replace(html, char)
>
> ??
Cause I guess, that I am already blind. Thanks.
Oliver
--
Oliver Andrich <[EMAIL PROTECTED]> --- http://fith
skn wrote:
> Hello,
>
> I have written a very simple java class file, which invokes a Python script
> using JEP.
>
> Code snippet:-
> ---
> Jep jep = new Jep(false);
> jep.runScript("C:\\temp\\testscript.py");
> jep.close();
>
> Now inside this Python script I want to make Java c
Oliver Andrich wrote:
> def remove_html_entities(data):
> for html, char in html2text:
> data = apply(string.replace, [data, html, char])
> return data
I know this isn't your question, but why write:
> data = apply(string.replace, [data, html, char])
when you could write
data
#! rnews 902
Newsgroups: comp.lang.python
Path:
news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!attws2!ip.att.net!NetNews1!xyzzy!nntp
From: Harry George <[EMAIL PROTECTED]>
Subject: Re: Couple functions I need, assuming th
Hi everybody,
I have to write a little skript, that reads some nasty xml formated
files. "Nasty xml formated" means, we have a xml like syntax, no dtd,
use html entities without declaration and so on. A task as I like it.
My task looks like that...
1. read the data from the file.
2. get rid of th
Kent Johnson wrote:
> Nader Emami wrote:
>> Kent Johnson wrote:
>>> Nader Emami wrote:
I have used the profile module to measure some thing as the next
command:
profile.run('command', 'file')
...How can I read (or convert) the binary file to an ascii file?
>>> Use an instance o
I am really surprised that someone hasn't mentioned Gadfly yet. It is a
quick, free, relational database written directly for Python itself.
http://gadfly.sourceforge.net/
Brian
---
Philippe C. Martin wrote:
> Hi,
>
> I am looking for a stand-alone (not client/server) database solution for
>
James wrote:
> The brain may be fine for generating Python from UML but it is MANY
> MANY orders of magnitude harder to generate UML from code with just
> your brain than using a tool (usually zero effort and error free) no
> matter how good you are at Python.
I've really only used Rational Rose,
Dennis Clark wrote:
> I'm a bit of a newb when it comes to Python, is there anyone with experience
> compiling it on Linux platforms that can offer me pointers to try this out
> myself?
Seatch for cross-compiling python patches. I'm working on an XScale255
platform with python2.2 and soon 2.3 -
Yes, I agree, but as most of the customer base I target uses the O/S that
cannot be named ;-) , file names could become a problem just as 'ln -s' is
out of the question.
Yet, this might be the best trade-off.
Regards,
Philippe
Oren Tirosh wrote:
> Philippe C. Martin wrote:
>> Hi,
>>
>> I am
Walter Roberson wrote:
> In article <[EMAIL PROTECTED]>,
> Xah Lee <[EMAIL PROTECTED]> wrote:
> >In hindsight analysis, such language behavior forces the programer to
> >fuse mathematical or algorithmic ideas with implementation details. A
> >easy way to see this, is to ask yourself: how come in ma
Dennis Clark wrote:
...
> Has anyone, or is anyone working with Python in an embedded Linux
> environment? Mine is NO where near as constrained as a cell phone since
> I've got plenty of memory to work with, I'm just running a Linux 2.4
> kernel on an ARM9 platform.
This really shouldn't be a p
Andrea Griffini wrote:
> Indeed when talking about if learning "C" can hinder
> or help learning "C++" I remember thinking that to
> learn "C++" *superficially* learning "C" first is
> surely pointless or can even hinder.
> But to learn "C++" deeply (with all its quirks) I
> think that learning "C
On 2005-06-18 05:26:13 +0100, Dennis Lee Bieber <[EMAIL PROTECTED]> said:
> On Sat, 18 Jun 2005 03:02:13 +1000, Steven D'Aprano
> <[EMAIL PROTECTED]> declaimed the following in
> comp.lang.python:
>
>>
>> The language is *always* spelt without the "a", and usually all in
>> lower-case: perl.
>>
Philippe C. Martin wrote:
> Hi,
>
> I am looking for a stand-alone (not client/server) database solution for
> Python.
>
> 1) speed is not an issue
> 2) I wish to store less than 5000 records
> 3) each record should not be larger than 16K
How about using the filesystem as a database? For the numbe
One db that is very much worth trying is Firebird. This is an open
source Interbase 6.0 (Borland product) compatible db. It is a
SourceForge project. There are three versions: the super server which
is a client/server db, classic server (the one that I am very familiar
with) which is also a clie
Thank you all for the help. This problem bothered me for 3 days, Now I
get it! You are right, it is the session cookie, after I use the
cookiejar and the opener, I got it!!! I am really glad I found this
place. Thank you again!
--
http://mail.python.org/mailman/listinfo/python-list
Nader Emami wrote:
> Kent Johnson wrote:
>
>> Nader Emami wrote:
>>
>>> L.S.,
>>>
>>> I have used the profile module to measure some thing as the next
>>> command:
>>>
>>> profile.run('command', 'file')
>>>
>>> But this make a binary file! How can I write the result of 'profile'
>>> in a ascii f
"Kay Schluehr" wrote:
> I recommend studying C++ idioms carefully.
>
> http://www1.bell-labs.com/user/cope/Patterns/C++Idioms/EuroPLoP98.html
Thanks for the link; very useful indeed.
> If Georges starts on greenfields he may have a look at Qt and it's
> object library which is not only concerned
Richard Lewis wrote:
> On Mon, 20 Jun 2005 14:27:17 +0200, "Fredrik Lundh"
> <[EMAIL PROTECTED]> said:
> >
> > well, you're messing it up all by yourself. getting rid of all the
> > codecs and
> > unicode2charrefs nonsense will fix this:
> >
> Thanks for being so patient and understanding.
>
> OK
Richard Lewis wrote:
> My code now works without generating any errors but Konqueror's KHTML
> and Embedded Advanced Text Viewer and IE5 on the Mac still show
> capital-A-with-a-tilde in all the files that have been
> generated/altered. Whereas my text editor and Mozilla show them
> correctly.
How
I developed for my former employee a thin client whose primary purpose
was AS400 connectivity. This required a fairly complex interactive
gui configuration which I wrote in Python.
This system could also be configed by a remote manager. Wrote
that also in python using UDP sockets.
The hardware was
Correct, that's not a constraint right now.
Paul Rubin wrote:
> "Philippe C. Martin" <[EMAIL PROTECTED]> writes:
>> 1) speed is not an issue
>> 2) I wish to store less than 5000 records
>> 3) each record should not be larger than 16K
>
> You don't mention whether multiple running programs need
On 20 Jun 2005 15:51:07 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote:
> Peter Hansen wrote:
>
>>> The target of the problems (my daughter) would prefer that the thousands
>>> be delimited. Is there a string function that does this?
>>
>> You refer to something like putting a comma between groups
"frost" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I am trying to login a website that using PHP and javascript. This is
> what happend if you browse that website using IE, after you login, you
> can go anywhere without enter your name and password again, as long as
> you
On Sun, 19 Jun 2005 19:11:38 -0700, frost wrote:
> Hi,
>
> I am trying to login a website that using PHP and javascript. This is
> what happend if you browse that website using IE, after you login, you
Browser remembers so called HTTP authorization header field. It sends
authorization informatio
[EMAIL PROTECTED] wrote:
> Thought I'd offer a method for solving all possible 9x9 sudoku puzzles
> in one go. It'll takes a bit of time to run however (and 9x9 seems to
> be about as big as is reasonably possible before combinatorial
> explosion completely scuppers this type of program)...
>
> B
"Philippe C. Martin" <[EMAIL PROTECTED]> writes:
> 1) speed is not an issue
> 2) I wish to store less than 5000 records
> 3) each record should not be larger than 16K
You don't mention whether multiple running programs need to use it
concurrently. That's usually done with client/server db's but i
"Charles Krug" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> The target of the problems (my daughter) would prefer that the thousands
> be delimited. Is there a string function that does this?
Be sure to use the locale approach and avoid rolling your own.
--
http://mail.py
"Aziz McTang" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Paul,
>
> Thanks for your input.
>
> As usual, hearing some answers helps formulate the question...
>
> What I'm looking for is more to learn one good, comprehensive
> programming language well than several approximatel
Thought I'd offer a method for solving all possible 9x9 sudoku puzzles
in one go. It'll takes a bit of time to run however (and 9x9 seems to
be about as big as is reasonably possible before combinatorial
explosion completely scuppers this type of program)...
Basic idea:-
Start with a grid initial
Thanks, I'm looking at KirbyBase also but wonder if it can handle bitmaps (I
could always pickle it first I guess).
Regards,
Philippe
John Abel wrote:
> Philippe C. Martin wrote:
>
>>Thank you all for your answers.
>>
>>A pure Python would have beenmy first choice. yet I now feel I should
>>
> 1. 5000 files -- my personal favourite.
You got a point
William Park wrote:
> Philippe C. Martin <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> I am looking for a stand-alone (not client/server) database solution
>> for Python.
>>
>> 1) speed is not an issue
>> 2) I wish to store less than 5000
Philippe C. Martin <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am looking for a stand-alone (not client/server) database solution
> for Python.
>
> 1) speed is not an issue
> 2) I wish to store less than 5000 records
> 3) each record should not be larger than 16K
>
> As I start with Python objects, I
OK, I'll try that too.
Regards,
Philippe
Erik Max Francis wrote:
> Philippe C. Martin wrote:
>
>> You mean pickling a dictionnary of 5000/16K objects ?
>
> Yes. You said speed was not an issue; pickling only 5000 objects, each
> no more than 16 kB, is easily handled by any remotely modern
> I assume you mean translating something like '100' to '1,000,000'?
> I don't know of an existing function that does this, but here's a
> relatively simple implementation:
>
> py> import itertools as it
> py> def add_commas(s):
> ... rev_chars = it.chain(s[::-1], it.repeat('', 2))
> ...
Philippe C. Martin wrote:
>Thank you all for your answers.
>
>A pure Python would have beenmy first choice. yet I now feel I should spend
>some time looking at PySQLite (I like the fact it's pre-compiled for
>Windows).
>
>Thanks.
>
>Philippe
>
>
>
>Philippe C. Martin wrote:
>
>
>
>>Hi,
>>
>>I am
Philippe C. Martin wrote:
> You mean pickling a dictionnary of 5000/16K objects ?
Yes. You said speed was not an issue; pickling only 5000 objects, each
no more than 16 kB, is easily handled by any remotely modern machine
(and even plenty which are not very modern).
--
Erik Max Francis && [E
[EMAIL PROTECTED] wrote:
> AhhI see. I played around with the sys.path function...and it
> looks like python automatically looks in the same directory as my
> script first. Then is searches to all the other pre-defined paths. So
> it works for me to just keep my main script in the same direc
Aziz McTang wrote:
> Hi Paul,
>
> Thanks for your input.
>
> As usual, hearing some answers helps formulate the question...
>
> What I'm looking for is more to learn one good, comprehensive
> programming language well than several approximately on an ad hoc
> basis. What I also failed to mentio
You mean pickling a dictionnary of 5000/16K objects ?
Erik Max Francis wrote:
> Philippe C. Martin wrote:
>
>> Well that would be shelve I guess ... with the restrictions I mentioned.
>
> I was talking about pickle, not shelve.
>
--
http://mail.python.org/mailman/listinfo/python-list
Peter Hansen wrote:
>> The target of the problems (my daughter) would prefer that the thousands
>> be delimited. Is there a string function that does this?
>
> You refer to something like putting a comma between groups of three
> digits, as in 1,000? This is locale-specific, and there's a "loc
Thank you all for your answers.
A pure Python would have beenmy first choice. yet I now feel I should spend
some time looking at PySQLite (I like the fact it's pre-compiled for
Windows).
Thanks.
Philippe
Philippe C. Martin wrote:
> Hi,
>
> I am looking for a stand-alone (not client/server)
Philippe C. Martin wrote:
> Well that would be shelve I guess ... with the restrictions I mentioned.
I was talking about pickle, not shelve.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
I used to walk arou
Well that would be shelve I guess ... with the restrictions I mentioned.
Regards,
Philippe
Erik Max Francis wrote:
> Philippe C. Martin wrote:
>
>> I am looking for a stand-alone (not client/server) database solution for
>> Python.
>>
>> 1) speed is not an issue
>> 2) I wish to store less t
Charles Krug wrote:
> myWords = split(aString, aChar)
>
> is depreciated but
>
> myWords = aString.split(aChgar)
>
> is not?
Yes, that's basically correct. What's deprecated are the functions in
the string module. So
string.split(a_str, b_str)
is deprecated in favor of
a_str.split
John Abel wrote:
> Gadfly
> PySQLite ( requires SQLite library )
I want to clarify this parenthetical comment, for the record. When I
first downloaded PySQLite I had already gone and installed SQLite,
thinking it was a prerequisite in that sense.
In fact, the PySQLite install includes a .pyd w
Thanks for all replies.
Ok. I agree. While printf() does tightly control formatting in C, it does
not in Python. Using write() can be used to output with no changes to the
data.
"Tim Hoffman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Paul
>
> Based on your description
On 6/20/05, skn <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have written a very simple java class file, which invokes a Python script
> using JEP.
. . .
> Now inside this Python script I want to make Java calls using JPype.
I am not familiar with either Jepp or JPype, but I spotted this
snippet on
Philippe C. Martin wrote:
> I am looking for a stand-alone (not client/server) database solution for
> Python.
>
> 1) speed is not an issue
> 2) I wish to store less than 5000 records
> 3) each record should not be larger than 16K
>
> As I start with Python objects, I thought of using shelve, but
AhhI see. I played around with the sys.path function...and it
looks like python automatically looks in the same directory as my
script first. Then is searches to all the other pre-defined paths. So
it works for me to just keep my main script in the same directory as
the two modules I'm using
1 - 100 of 160 matches
Mail list logo