I am new to python.
I am looking to read in a 12mb csv file, parse it, generate web pages,
summarize on a column and make drop down bottons.
Where would I be able to find sample code that does something similar
to this?
Also, I know that microsoft has put out .net beta version of it. If I
am us
I would appreciate it if somebody could tell me where I went wrong in
the following snipet:
When I run I get no result
cnt = 0
p=[]
reader = csv.reader(file("f:\webserver\inp.txt"), dialect="excel",
quotechar="'", delimiter='\t')
for line in reader:
if cnt > 6:
le("f:\webserver\inp.txt"), dialect="excel",
quotechar="'", delimiter='\t')
for line in reader:
if cnt > 6:
break
j = 0
for col in line:
p[j].append(col)
j=j+1
cnt = cnt + 1
print p
Iain Ki
Nothing got printed.
Could you tell me what would be pythonic version of what I am trying to
do?
Diez B. Roggisch wrote:
> > p[j] does not give you a reference to an element inside p. It gives
> > you a new sublist containing one element from p. You then append a
> > column to that sublist. T
I am getting
TypeError: unsubscriptable object
when specifying
for line in reader[:7]:
Steven D'Aprano wrote:
> On Tue, 04 Jul 2006 07:01:55 -0700, Roman wrote:
>
> > I would appreciate it if somebody could tell me where I went wrong in
> > the following snipet:
>
matrix
I don't get mistakes anymore. However, still nothing gets printed
Bruno Desthuilliers wrote:
> Roman wrote:
> (please dont top-post - corrected)
> >
> > Iain King wrote:
> >
> >>Roman wrote:
> >>
> >>>I would appreciate it if some
"026508050354" "5201"
01/04/1996
"000260""MO5201P" "MO 5201P TRAD BIDET FCT
LVR/H*DBM*B""204938""Moen" 0 $0.00 7.00"026508050378"
"5201P" 01/04/1996
"000264&
I am trying to filter a column in a list of all html tags.
To do that, I have setup the following statement.
row[0] = re.sub(r'<.*?>', '', row[0])
The results I get are sporatic. Sometimes two tags are removed.
Sometimes 1 tag is removed. Sometimes no tags are removed. Could
somebody tell me
ement. Hence, the line separators are going to be gone. You
mentioned the size of the string could be a factor. If so what is the
max size before I see problems?
Thanks again
Anthra Norell wrote:
> Roman,
>
> Your re works for me. I suspect you have tags spanning lines, a thing you ge
This is excellent. Thanks a lot.
Also, what made the expression greedy?
tobiah wrote:
> Roman wrote:
> > I am trying to filter a column in a list of all html tags.
> >
> > To do that, I have setup the following statement.
> >
> > row[0] = re.sub(r'<
I looked at a book called beginning python and it claims that <.*?> is
a non-greedy match.
tobiah wrote:
> > In python's RE module, they're like Perl:
> >
> > Greedy: "<.*>"
> > Nongreedy: "<.*?>"
> >
>
> Oh, I have never seen that. In that case, why
> did Roman's first example not work well fo
It turns out false alarm. It work. I had other logic in the
expression involving punctuation marks and got all confused with the
escape characters. It becomes a mess trying to keep track of all the
reserved character as you are going from module to module.
tobiah wrote:
> Roman wrote:
&g
?
>
It has very much to do with computer programming. There is program flow,
conditions, loops, variables.
Roman
--
http://mail.python.org/mailman/listinfo/python-list
Is there a package that converts a string that contains special
characters in xml to to literal value. For instance, converts string
http://myhome/¶m to http://myhome/¶m.
Thanks in advance
--
http://mail.python.org/mailman/listinfo/python-list
ing in "Esto es un ejemplo." --> should return "spanish" or ISO
code
I would prefer something more lightweight than using nltk/corpus/...
And it's ok if the success ratio is just about 90% or so.
Roman
--
http://mail.python.org/mailman/listinfo/python-list
Hi
This is what I'm looking for.
Thank you.
Roman
gene tani schrieb:
> Roman wrote:
> > Does anybody know an easy way (or tool) to guess the language of a
> > given text string?
> >
>
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/355807
On Jan 24, 3:25 pm, whatazor wrote:
> Hi all,
> I start to use this module in order to produce xml( and the make other
> things), but differently from gccxml I don't find the variable that
> set the name of the xml output file after the parsing (in gccxml is -
> fxml), so it creates temporary file
Following code works, although I'm not sure that it's exactly what you
want:
import abc
class MetaExample(abc.ABCMeta):
def __new__(mcs, name, bases, ns):
ns['cls_meth'] = mcs.cls_meth
if not 'cls_abc' in ns:
ns['cls_abc'] = mcs.cls_abc
On 04/08/09 12:20, aurelien wrote:
> Hello,
>
> I am under gNewSense, i am a newbbie on Python, i look for how change
> the color terminal when python run.
> at the step >>> all is in black and white.
> Is it possible to have the python color in the terminal ?
>
> Thanks for your help
>
> aureli
On 06/08/09 08:35, Robert Dailey wrote:
> Hey guys,
>
> I'm creating a python script that is going to try to search a text
> file for any text that matches my regular expression. The thing it is
> looking for is:
>
> FILEVERSION #,#,#,#
>
> The # symbol represents any number that can be any leng
Try to use http://pycurl.sourceforge.net/
I don't test it, but there is no problem interact with google services.
22.06.12 17:27, davecotef...@gmail.com пишет:
On Monday, 9 April 2012 20:24:54 UTC-7, CM wrote:
Shot in the dark here: has any who reads this group been successful
with getting Py
You could implement REST protocol for Grok using
http://pypi.python.org/pypi/restkit/
2012/6/25 TG
> Just hoping to get some opinions: Grok vs Django for REST? I've started
> evaluating TastyPie with Django. Is there something similar for Grok?
>
> I'm working on a project that will mostly be mo
2012/7/5 tom z
> Hi~ all,
> I encounter a odd problem, when i compile Python with PYMALLOC_DEBUG, the
> PIL module can't work fine, it always make core-dump like this
>
> [Switching to Thread 182897301792 (LWP 16102)]
> 0x004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804
>
09.07.12 13:21, cheetah ?:
I don't need it.
thanks
In python's setup.py replace:
self.detect_tkinter(inc_dirs, lib_dirs)
of
def detect_modules(self):
This will ignore the compilation of _tkinter.c and tkappinit.c of
the python distribution.
--
http://mail.python.org/mailman/list
for key in dict:
print key[0], key[1], dict[key]
10.08.2012, в 0:11, giuseppe.amatu...@gmail.com написал(а):
> Hi,
> I have a dict() unique
> like this
> {(4, 5): 1, (5, 4): 1, (4, 4): 2, (2, 3): 1, (4, 3): 2}
> and i want to print to a file without the brackets comas and semicolon in
> ord
dict.items() is a list - linear access time whereas with 'for key in dict:'
access time is constant:
http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#use-in-where-possible-1
10.08.2012, в 0:35, Tim Chase написал(а):
> On 08/09/12 15:22, Roman Vashkevich wrot
Actually, they are different.
Put a dict.{iter}items() in an O(k^N) algorithm and make it a hundred thousand
entries, and you will feel the difference.
Dict uses hashing to get a value from the dict and this is why it's O(1).
10.08.2012, в 1:21, Tim Chase написал(а):
> On 08/09/12 15:4
10.08.2012, в 1:47, Dave Angel написал(а):
> On 08/09/2012 05:34 PM, Roman Vashkevich wrote:
>> Actually, they are different.
>> Put a dict.{iter}items() in an O(k^N) algorithm and make it a hundred
>> thousand entries, and you will feel the difference.
>> Dict uses
):
> list+=[999]
> str+="sss"
>
> lista=[]
> stra=""
> lista+=[999]
> stra+="sss"
> print(lista,stra)
>
> listb=[]
> strb=""
> xx(listb,strb)
> print(listb,strb)
> --
> http://mail.python.org/mailman/listinfo/pyt
10.08.2012, в 13:28, Roman Vashkevich написал(а):
> 10.08.2012, в 13:19, Mok-Kong Shen написал(а):
>
>>
>> In an earlier question about lists, I was told about the issue of
>> creation of local names in a function. However, I still can't
>> understand why the
10.08.2012, в 14:12, Mok-Kong Shen написал(а):
> Am 10.08.2012 11:48, schrieb Roman Vashkevich:
>> [snip]
> >The function It takes list by reference and creates a new local
> > str. When it's called with listb and strb arguments, listb is passed
> > by refe
10.08.2012, в 14:12, Mok-Kong Shen написал(а):
> Am 10.08.2012 11:48, schrieb Roman Vashkevich:
>> [snip]
> >The function It takes list by reference and creates a new local
> > str. When it's called with listb and strb arguments, listb is passed
> > by refe
: Mon, 27 Feb 2012 16:51:00 +0100
From: Roman Rakus
To: xml-...@python.org
Hi,
I have concerns about PyXML and stdlib xml included directly in python.
Currently (in Fedora) python is trying to import PyXML, which means
other results when you have and haven't PyXML installed.
Furth
Hi.
How exactly jython decides is object callable or not? I defined
__call__ method but interpreter says it's still not callable.
BTW, my code works in cpython
--
http://mail.python.org/mailman/listinfo/python-list
> Perhaps if you show us what you actually do, and what happens, we might
> be able to tell you what is happening. Please COPY AND PASTE the full
> traceback.
Here is my code:
# Trying to make callable staticmethod
class sm(staticmethod):
def __call__(self, *args, **kwargs):
""" I know
at is strange. SQLite + PySQLite are IMHO no harder
to install than BerkeleyDB + Pybsddb...
> On the other
> hand, BerkeleyDB + Pybsddb worked like a charm, with no setting up (under
> Cygwin).
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
t;stream"? Then it is not
original and I already saw answers with recomendations.
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
rsing the input into XML first? Is there any point in including
unescaped code into XML document unless it is XML itself?
> Thanks.
>
>
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
you observe is the only possible one.
>
> If you want copies instead, ASK for copies...:
>
> gridSystemId = [ [None]*columns for x in xrange(rows) ]
Interesting, could not pychecker recognize such situations in Python
code and give warnings?
Sincerely yours, Roman Suzi
--
[EM
vimpst checks this and provides a suitable help.
Regards,
Roman
--
http://mail.python.org/mailman/listinfo/python-list
* Alex Martelli <[EMAIL PROTECTED]>:
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > Sorry Peter,
> >
> > Try this
> >
> > import unittest
> > import Numeric
> >
> > class myTest(unittest.TestCase):
> > def runTest(self):
> > var1 = Numeric.array([1,22])
> > var2 =
7694&release_id=374482
The date_time package was created using boost.python library and new
code generator - pyplusplus.
The boost.python library home page:
http://www.boost.org/libs/python/doc/index.html
The pyplusplus package home page: http://www.language-binding.net/
Enjoy.
Roman Yakovenko
ow how to handle type
%s' % type(x)
pgdb.InterfaceError: do not know how to handle type
(It was after I commented out exception catch:
# except:
# raise OperationalError, "internal error in '%s'" % sql
in pgdb.py to see where the error occurs)
Am I missing something obvious or is it really a bug/feature of pgdb?
python2.3
postgresql-7.2.1
almost fresh mx.DateTime
Thank you!
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
.
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 3 Jan 2005, Steven Bethard wrote:
> Roman Suzi wrote:
> > I wish lambdas will not be deprecated in Python but the key to that is
> > dropping the keyword (lambda). If anybody could think of a better syntax for
> > lambdas _with_ arguments, we could develop PEP
h to avoid using C or Pyrex in most
> obvious cases: CPython is More Than Fast Enough. In which obvious cases it's
> not enough for you?
>
> Don't misinterpret this response. I know it was a rambling. But *maybe* you
> have something to contribute to Python development, even good ideas only and
> no work.
>
> .Facundo
Sincerely yours, Roman A.Suzi
--
- Petrozavodsk - Karelia - Russia - mailto:[EMAIL PROTECTED] -
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 4 Jan 2005, Steven Bethard wrote:
>Roman Suzi wrote:
>> On Mon, 3 Jan 2005, Steven Bethard wrote:
>>
>>
>>>Roman Suzi wrote:
>>>
>>>>I wish lambdas will not be deprecated in Python but the key to that is
>>>>dropping the
ut generic programming coming into fashion anytime soon?
>That's my fear - type declarations could become one of the most abused language
>features because they'd get used too often.
>
>-Dave
>
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux Re
ow concepts are expressed informally
in the docstrings.
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 4 Jan 2005, Dave Brueck wrote:
>Roman Suzi wrote:
>>>>It may be optional in the sense that the language will
>>>>accept missing declarations but as soon as the feature
>>>>is available it will become "mandatory" to use it
>>>
On Tue, 4 Jan 2005, Dave Brueck wrote:
>> What about generic programming coming into fashion anytime soon?
>Roman, I think I've read every single thread in the past year or three
>wherein you've brought up generic programming, and I think you'd do well to
>choose
nes (which I read).
>"Python could have honest support of Concepts (url)"
- of course, right now those sources are C++-specific. But I could see that
Python has even greater potential to have concepts ahead of C++ and with
greater usefulness at the same time.
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 4 Jan 2005, Dave Brueck wrote:
>Roman Suzi wrote:
>>>The term "generic programming" is too... er... generic. :)
>> Nope. It is not generic. It has it's definition made by the co-author
>> of STL - A.Stepanov. And the Boost C++ library (many of us
On Tue, 4 Jan 2005, Michael Spencer wrote:
>Roman Suzi wrote:
>
>> Maybe this is too outlandish, but I see lambdas as a "quote" mechanism,
>> which presents a possibility to postpone (precisely control, delegate)
>> evaluation. That is, an ovehead for lambda mus
g style" which is not the case here IMHO.
So, are there any specific reasons for breaking the rules here? I think
consistent conventions are very important. Being a Java developer in the last
couple of years, i learned how practical it can be to have only one naming
style.
Best regard
On Wed, 5 Jan 2005, EP wrote:
>Roman wrote:
>
>> Maybe OP doesn't yet fully comprehend the ways of Python universe?
>
>
>
>> > Don't misinterpret this response. I know it was a rambling. But
>> *maybe* you
>> > have something to contri
ttingham University a "Workshop on
>Generic Programming", etc, etc, without fearing ambiguity.
That is why I was pretty sure people undestand me.
>Exactly what extra support Roman would want from Python for 'concepts',
>beyond that offered by, say, C++, I'm
quot; of GP is directed to formalise on concepts instead of
partial cases (design-by-contract, interfaces etc).
Thus, concepts control polymorphism not only from liberation side, but
from constraint side too. Right now concepts in Python are reused
here and there without explicit mentioning. Concep
there were no
problems. If there were, they were no greater than installing some
devel library and/or adding an include directory. So, Distutils, IMHO,
are successful.
Yes, probably there could be a no-brainer script to run install
directly from zip and/or tar.gz/bz2 file, but I usually check
md5, pgp sigs and look inside anyway before running something.
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
cc -fpic loop.c -DHAVE_CONFIG_H -lm -lpython2.4 \
-lpthread -lutil -ldl \
-I/usr/local/include/python2.4 \
-L/usr/local/lib/python2.4/config \
-o looptest
(It's on Linux RedHat 7.3)
I do not know if this is of any importance though. Probably it is
for embedded Python uses.
Sincerely yours, R
On Sun, 9 Jan 2005, Paul Rubin wrote:
>Andrey Tatarinov <[EMAIL PROTECTED]> writes:
I hope there will be
from __past__ import functional_paradigma
in Python 3 ;-)
And, also, what is the best way to replace reduce() ?
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI power
On Mon, 10 Jan 2005, Delaney, Timothy C (Timothy) wrote:
>Roman Suzi wrote:
>
>> In pure curiosity I tried to compile loop.c from Demo/embed
>> and started it with 'print 2+2'. It seems, that both 2.3 and 2.4
>> pythons have memory leaks in Py_Initial
some
>hacks? would be worth the effort? If not what can i do to use efficiently
>python modules and libraries? I recall, i didnt had this problem when doing
>small applications with a small set of modules.
>
>Sorry for my bad english.
That is it. I hate English. It has sooo much e
;, 'rlcompleter', '__file__', '_[1]', 'atexit', '__name__',
'readline', '__doc__']
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
error is fine.
>
>.Facundo
>
Probably, e need not appear in vars() at all... This is why
generator closure works fine.
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
# [EMAIL PROTECTED] / 2005-07-27 05:12:46 -0700:
> ok. did this
>
> >>> cursor.execute("DELETE FROM table WHERE autoinc > 1000")
> 245L
> >>> cursor.commit()
>
> i got an AttributeError 'Cursor' object has no attribute 'commit'
>
> hmm. what should i do now?
RTFM, e. g. here:
http://c
/pyplusplus.html )
Roman
On 9/1/05, elho <[EMAIL PROTECTED]> wrote:
> I found serveral tool for using C++ as extended languate in python - but
> what's the best / easiest to use?
>
> With C I used wrappy - not sure if it's the wright name, it's included
> since Pyth
Hi!
Just to be sure, is email package of Python 2.3 thread-safe or not
(to use, for example, in python-milter?)
Sincerely yours,
Roman A.Souzi
--
http://mail.python.org/mailman/listinfo/python-list
try http://sourceforge.net/projects/pygccxml
There are a few examples and nice ( for me ) documentation.
Roman
On Tue, 8 Feb 2005 13:35:57 +0100, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Jean de Largentaye wrote:
>
> > GCC-XML looks like a very interesting alternative,
need locking? I recall 'random' module is (was?)
unsafe - which isexplicitly stated in the docs. Can I assume that everything
else without such notice is thread-safe?
Sincerely yours,
Roman A.Souzi
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailma
On Wed, 9 Feb 2005, Antoon Pardon wrote:
Op 2005-02-09, Roman Suzi schreef <[EMAIL PROTECTED]>:
Just to be sure, is email package of Python 2.3 thread-safe or not
(to use, for example, in python-milter?)
Can I assume that everything
else without such notice is thread-safe?
I doubt it. There
On Thu, 10 Feb 2005, Antoon Pardon wrote:
Op 2005-02-09, Roman Suzi schreef <[EMAIL PROTECTED]>:
On Wed, 9 Feb 2005, Antoon Pardon wrote:
Op 2005-02-09, Roman Suzi schreef <[EMAIL PROTECTED]>:
Just to be sure, is email package of Python 2.3 thread-safe or not
(to use, for example, in p
20+ times and then give up.
Python1.5 gives segmentation fault...
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
to iterate over something useful in a message?
P.S. rfc822 has the same behaviour, at least on Python 2.3
Sincerely yours, Roman Suzi
--
[EMAIL PROTECTED] =\= My AI powered by GNU/Linux RedHat 7.3
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 20 Feb 2005, Steven Bethard wrote:
Erik Max Francis wrote:
Roman Suzi wrote:
I think that if any object (from standard library at least) doesn't support
iteration, it should clearly state so.
My guess is that 'for' causes the use of 'm[0]', which is (rightfull
27;Foo, Foo:', g(Foo(), Foo())
print 'Foo, Bar:', g(Foo(), Bar())
print 'Bar, Foo:', g(Bar(), Foo())
print 'Bar, Bar:', g(Bar(), Bar())
except Multimethod.AmbiguousMethodError:
print 'Failed due to AmbiguousMethodError'
Sin
od.Generic.__init__(self)
def PART(*args):
def make_multimethod(func):
mm = Multimethod.Method(tuple(args), func)
print func
self.add_method(mm)
return mm
return make_multimethod
self.PART = PART
self.define()
On Fri, 10 Dec 2004, Roman
approach I saw was to set LD_LIBRARY_PATH before
invoking python script. I don't like this solution.
Roman
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 31, 2005 9:20 AM, John Abel <[EMAIL PROTECTED]> wrote:
> What OS? Linux? Solaris?
Does it matter? If so, please explain why ( lack of knowledge )
I am using Linux ( Debian Surge )
Thanks
> J
>
> Roman Yakovenko wrote:
>
> >Hi. I have small problem. I ne
Thanks for help. But it is not exactly solution I am looking for. I
would like to do it from python script. For example
update_env() #<- this function will change LD_LIBRARY_PATH
import extension_that_depends_on_shared_library
Roman
On Mar 31, 2005 9:35 AM, John Abel <[EMAIL PROTECTED]&
On 31 Mar 2005 00:51:21 -0800, Serge Orlov <[EMAIL PROTECTED]> wrote:
> Roman Yakovenko wrote:
> > Hi. I have small problem. I need to load extension module that
> depends
> > on shared library. Before actually importing module I tried to edit
> > os.environ or
Hello,
I have a piece of code that gets run in a script that has its stdout
closed:
import sys
sys.stdout = sys.stderr
c = subprocess.Popen (...,
stdin = subprocess.PIPE,
stdout = subprocess.PIPE,
stderr =
# [EMAIL PROTECTED] / 2005-04-04 16:39:27 -0700:
> In short, how might I go about deleting just the contents of a file?
> I tried several methods with my limited knowledge but had no luck.
fd = open("your-file")
fd.truncate()
fd.close()
or open("your-file", "w").close()
--
How
# [EMAIL PROTECTED] / 2005-04-09 16:42:04 -0500:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
>
> > Hi,
> >
> > I'm writing a small script that generates email and I've noticed that:
> >
> > 1) one should add the 'To' and 'CC' headers to the email message
> > 2) one needs to specify the recip
# [EMAIL PROTECTED] / 2005-04-10 20:55:05 +1000:
> Hi folks,
>
> My python program needs to download a number of files. Each file comes
> as a list of mirrors of that file.
>
> Currently, I am using system (os.system) to run wget. The mechanism is
> in a loop, so that it will try all the mirr
# [EMAIL PROTECTED] / 2005-04-12 00:14:03 +0200:
>Hello,
>
> I amafraid of I will stop using semicolons in other languages after one
> or two months of python.
Writing in multiple programming languages is just like writing or
speaking in multiple human languages: you just need to
# [EMAIL PROTECTED] / 2005-04-12 03:25:33 -0700:
> QUOTE
> compile(
> pattern[, flags])
>
> Compile a regular expression pattern into a regular expression object,
> which can be used for matching using its match() and search() methods,
> described below.
>
> The expression's behaviour can be mo
# [EMAIL PROTECTED] / 2005-04-13 03:27:06 -0700:
> Bengt Richter wrote at 03:19 4/13/2005:
> This is not homework, nor am I a student, though I am trying to learn
> Python. I'm just trying to help an artist acquaintance who needs (I just
> learned) the first 3003 digits of pi to the base 12.
>
>
Hi. I would like to freeze python application on linux. There are a
few tools that make the job to be done:
freeze ( comes with python )
cx_Freeze
Gordon McMillan's installer
Is it possible to freeze python application on linux in such way that
it doesn't depends on python installed on cu
to be
installed on target machine.
May be I missed something or did not understand right the docs? Also
if I am right could you point me to "freeze" tool that doesn't require
python installed on customer computer?
For windows I have py2exe. What should I use for linux to get same af
# [EMAIL PROTECTED] / 2005-04-14 08:22:48 -0600:
> The listowner could turn on the [PYTHON] headers.
I hope they don't.
> I'm not using spambayes yet, although I'm leaning toward it, but that
> step alone could save me some work when trying to decide based on
> subject line alone whether or n
# [EMAIL PROTECTED] / 2005-04-14 09:06:08 -0600:
> Roman Neuhauser wrote:
> >
> > # [EMAIL PROTECTED] / 2005-04-14 08:22:48 -0600:
> > > The listowner could turn on the [PYTHON] headers.
> >
> > I hope they don't.
> >
>
> What'
# [EMAIL PROTECTED] / 2005-04-13 08:07:06 +1000:
> On Tue, 12 Apr 2005 13:06:36 +0200, Roman Neuhauser
> <[EMAIL PROTECTED]> wrote:
>
> >Unfortunately, the python community seems to bathe in the
> >misorganized half-documentation, see e. g.
> >http:
# [EMAIL PROTECTED] / 2005-04-17 14:59:50 +0200:
> Roman Neuhauser wrote:
>
> >>Here's a puzzle for you: Where does this list appear? What's missing?
> >>
> >>"..., Mullender, Nagata, Ng, Oner, Oppelstrup, ..."
> >
> > Sorry, I
# [EMAIL PROTECTED] / 2005-04-20 00:30:35 -0700:
> When parsing messages using python's libraries email and mailbox, the
> subject is often encoded using some kind of = notation. Apparently, the
> encoding used in this notation is specified like =?iso-8859-2?Q?=... or
> =?iso-8859-2?B?=.
That'
# [EMAIL PROTECTED] / 2005-04-22 00:13:05 -0700:
> Hello!
>
> I can't seem to get paths and variables working together:
>
> import os
> a = 'books'
> os.chdir( '/test')
> os.mkdir("/test/"a)
>
> the last line does not seem to work. os.mkdir(a) makes the directory
> books, but i want this direct
# [EMAIL PROTECTED] / 2005-04-22 08:35:33 +0100:
>
> --- Robert Kern <[EMAIL PROTECTED]> wrote:
> > praba kar wrote:
> > > In Php If I send a command to system function
> > > then It will return 1 on success and 0 on failure.
> > > So based upon that value I can to further work.
> > >
> > >
# [EMAIL PROTECTED] / 2005-04-23 15:53:17 +0200:
> Lad wrote:
>
> >Is anyone capable of providing Python advantages over PHP if there are
> >any?
>
> I am also new to python but I use php for 4 years. I can tell:
>
> - python is more *pythonic* than php
> - python has its own perfume
> http://w
Software License(
http://boost.org/more/license_info.html )
You can download it from here:
http://sourceforge.net/project/showfiles.php?group_id=118209
Pay attention: before installing pydsc you need to install PyEnchant
(http://pyenchant.sourceforge.net/).
Ideas, comments, suggestions or help
with 2.4 and
get out extra characters thanks for generator expression and .join()
integration. So now I am at 147. Probably a lot of reserve as I have 3
fors... One for just for the purpose of getting a name:
...x for x in [scalar]
Probably its time rething solution from scratch...
Roman Susi
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 182 matches
Mail list logo