ÒÊÃÉɽÈË wrote:
> i want to compare the content in excel,but i don't know whick module to use!
> can you help me?
I noticed a package on PyPi today that might be useful to you:
http://www.python.org/pypi/xlrd/0.3a1
The homepage is a little brief, so I clipped their example from the
README:
GO: www.dedTUNIA.com
Betroffen von Alopecia Areata: dedTUNIA hilft auch Ihnen
Affected by Alopecia Areata: dedTUNIA can help you too !
Affecté par l´Alopécie Areata: dedTUNIA peut vous aider !
Website in: Deutsch - English - Francais
GO: www.dedTUNIA.com
--
http://mail.python.org/mailman/lis
I am writing a utility in Python and I'd like to add a
command-line option "--mailto " that will cause an
e-mail summary to be sent to when the utility finishes
running.
My first thought was to use smtplib.sendmail(), and basically
this works like a charm, except that this function expects a
vali
If I had posted or invited the group to look at my full list of items
rather than just the python book link then I could see where you are
coming from.
If my intention was to "spam" this NG then the complaints as they were
phrased would only have served to make me more determined.
Maybe we will
Hi Lucasz,
> Thank you so much. I will ask our Plone administrator to test your
> script and I will write about result here.
You are wellcome. I think it is one of the easiest way of doing it.
> I thought also about Python script like
>
>
> //connect to database
> >>> from ZODB import FileSt
David M. Cooke wrote:
>>To solve that, I would suggest a fourth category of "arbitrary
>>ordering", but that's probably Py3k material.
>
> We've got that: use hash().
> [1+2j, 3+4j].sort(key=hash)
What about objects that are not hashable?
The purpose of arbitrary ordering would be to provide
an
greg wrote:
> David M. Cooke wrote:
>
>>>To solve that, I would suggest a fourth category of "arbitrary
>>>ordering", but that's probably Py3k material.
>>
>>We've got that: use hash().
>>[1+2j, 3+4j].sort(key=hash)
>
> What about objects that are not hashable?
>
> The purpose of arbitrary order
[snip Python port announcement]
> No reptiles were harmed in the making of these crafts.
+1 QOTW
--
http://mail.python.org/mailman/listinfo/python-list
My code is " os.system("NET SEND computer hihi") "
i use this funtion on Windows server 2003.
it's ok.
But the same code running on Windows XP SP2, it shows the command window
twice.
How do i remove the command window?
--
http://mail.python.org/mailman/listinfo/python-list
Hi again,
> I thought also about Python script like
>
>
> //connect to database
> >>> from ZODB import FileStorage, DB
> >>> storage = FileStorage.FileStorage('Data.fs')
> >>> db = DB(storage)
> >>> conn = db.open()
> >>> dbroot = conn.root()
I just found an information that may be usefu
wooks wrote:
> If I had posted or invited the group to look at my full list of items
> rather than just the python book link then I could see where you are
> coming from.
Take a look at http://www.templetons.com/brad/spamterm.html
for some of the first spams and reactions thereof.
There's a 30+ y
This may be getting somewhat OT, but I'd like to dig a little deeper into
this.
First of all, security (as in some other proces reading/disclosing the data)
is not an issue in this case. The thing is, though, a user could run the
script twice, not having closed Word after the first time. So I g
jean-marc schrieb:
> Some bits are coming back to me: the problems stemmed from adresses -
> getting the root of IIS was different so accessing files didn't work
> the same way.
thanks for that.
you are right, IIS versions are different.
Wich kind of adresses do you mean, http-adresses or paths in
Hi,
when trying to generate the wrapper classes for Microsofts ADO Library
(Version 2.8) with makepy, I run into the following problem. Here's what I
do (I use ActiveState Python 2.4.1.245)
1.) Running makepy, selecting "Microsoft ActiveX Data Object 2.8"
2.) Starting PythonWin IDE
3.) When I
You might have spotted a fairly nasty bug there!
Christopher J. Bottaro wrote:
> Hi,
> Why is there no support for explicit transactions in the DB API? I mean
> like transaction() to start the trans and commit() and rollback() would end
> the trans or something.
To quote from Date & Darwen "A Gu
"Martin Stettner" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
>
> when trying to generate the wrapper classes for Microsofts ADO Library
> [bigsnip...]
> Martin
Ok, I found some references to similar bugs at
http://www.python.org/sf/1163244,
http://www.python.org/sf/1
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sun, 12 Jun 2005, km wrote:
> hi all,
>
> can any linux command be invoked/ executed without using shell (bash) ?
> what abt security concerns ?
To answer your question fast, yes it is possible. Just pull every "bad"
block from the OS, and put
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sun, 12 Jun 2005, km wrote:
> hi all,
>
> can any linux command be invoked/ executed without using shell (bash) ?
> what abt security concerns ?
Ops, I missed the word "command" when reading your mail for the first
time, and this changes some p
wooks wrote:
> I thought that posting a link that contained the word ebay and a
> subject title of Python Developers Handbook conveyed all the relevant
> information and didn't want to patronise the NG.
>
> I have had 110 hits on the item but seem to have upset 3 people.
This statement shows a mis
As someone who like to do functional style programming, but without a
lot of training in that dept., I miss what you ask for from time to
time.
I don't want to go to much into this discussion, just comment on a tiny
little bit:
Thu, 09 Jun 2005 03:32:12 +0200 skrev David Baelde:
[snip]
>
> set_ca
Cappy2112 wrote:
> I looked at HTMLGen a while ago- I didn't see what the advantage was.
> I wrote soem code similar to the example above, to generate a page..
> It worked out fine.
>
> However, I want to add HTML ouput to many of my other python programs,
> and I don't want to re-write this for e
Hi all, I am struggling with a vb - python code conversion. I'm using
WMI to create printers on remote machines using (in VB);
set oPrinter = oService.Get("Win32_Printer").SpawnInstance_
oPrinter.DriverName = strDriver
oPrinter.PortName = strPort
oPrinter.DeviceID = strPrinter
oPrinter.Put_(
Maksim Kasimov wrote:
> hi all, sorry if i'm reposting
>
> why time.strptime and time.localtime returns tuple with different DST (9
> item of the tuple)?
I've been bitten by the quirks in the time modules so many times
that I would advice against using it for any date handling. It's
ok for time
> Most assuredly, what Terry sent you is *not* hate mail.
It was not taken as hate mail. I think Lucas got it spot on.
Thank you for the long lecture on netiquette which I didn't really
need.
Anybody who has read and understood the book "How to win friends and
influence people" would underst
Why does the following result in an IndexError?
I try to match an optional group, and then access it via its group
name. The group happens to not participate in the match, but is
obviously defined in the pattern.
The documentation says that, at least for numbered groups, "If a group
is contained in
For easier distribution. Otherwise the client computer had to have Python
installed.
Philip
"Peter Hansen" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Philip Seeger wrote:
>> I'm sorry for that newbie question but how can I compile a program (a .py
>> file) to an execut
See http://docs.python.org/lib/module-exceptions.html: EOFError gets
raised when input() or raw_input() hit an EOF condition without reading
data.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> wooks wrote:
> > I thought that posting a link that contained the word ebay and a
> > subject title of Python Developers Handbook conveyed all the relevant
> > information and didn't want to patronise the NG.
> >
> > I have had 110 hits on the item but seem to have upse
Terry Hancock wrote:
> The user with write access would run the script, causing the pyc files
> to be generated for that interpreter. Then a normal user, running an
> older Python tries to load the modules. Since a .pyc file exists, it gets
> used instead, but *oops* it's for a later version of t
Am Fri, 10 Jun 2005 17:10:23 +0800 schrieb Austin:
> My code is " os.system("NET SEND computer hihi") "
> i use this funtion on Windows server 2003.
> it's ok.
>
> But the same code running on Windows XP SP2, it shows the command window
> twice.
> How do i remove the command window?
Hi,
You ca
Philip Seeger wrote:
>>>I'm sorry for that newbie question but how can I compile a program (a .py
>>>file) to an executable file?
...
> For easier distribution. Otherwise the client computer had to have Python
> installed.
In that case, and since you appear to be running on Windows (judging by
[EMAIL PROTECTED] wrote:
> Why does the following result in an IndexError?
> I try to match an optional group, and then access it via its group
> name. The group happens to not participate in the match, but is
> obviously defined in the pattern.
>
m = re.match('(?Pmaybe)?yes', "yes")
Uh, don'
david.reitter wrote:
> So I would expect None rather than an IndexError, which is (only?)
> supposed to occur "If a string argument is not used as a group name in
> the pattern".
That is exactly what does happen.
>
> I would expect named groups and numbered groups to be behave the same
> way.
>
[Marc Wyburn]
|
| Hi all, I am struggling with a vb - python code conversion. I'm using
| WMI to create printers on remote machines using (in VB);
|
| set oPrinter = oService.Get("Win32_Printer").SpawnInstance_
|
| oPrinter.DriverName = strDriver
| oPrinter.PortName = strPort
| oPrinter.Devic
where I can find the grammar of python bytecode ? ( better if is in BCF
).
--
http://mail.python.org/mailman/listinfo/python-list
After a few posts recently, I have put together an SMTP test rig that will
receive emails and either store them to a file, write them to a console, or
both.
Does anyone have any suggestions on where I can get it hosted as a utility
for general public use?
TIA
Tim
--
http://mail.python.org/m
M1st0 wrote:
> where I can find the grammar of python bytecode ? ( better if is in BCF
> ).
There is no grammar for bytecodes - the are like assembly instructions.
And what's BCF supposed to mean - BNF is a form for grammars, BCF I
never heard of.
And besides that: tell us what you're after, we
"Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have the following problem:
> 1) I can use smtplib to send text messages
> 2) I can generate html
> 3) I want to email the html and want it to be seen by the email client as
> html.
>
> However, when I receive the
Tim Williams wrote:
> After a few posts recently, I have put together an SMTP test rig that will
> receive emails and either store them to a file, write them to a console, or
> both.
>
> Does anyone have any suggestions on where I can get it hosted as a utility
> for general public use?
>
> TI
Andrew Dalke wrote:
> import subprocess
> def gensky(hour):
> subprocess.check_call(["gensky", "3", "21", str(hour)],
>stdout = open("sky%d.rad" % (hour,), "w"))
>
>
> The main differences here are:
> - the original code didn't check the return value of os.system().
> I
[EMAIL PROTECTED] wrote:
> Hi,
>
> I am writing a Python program that needs to read XML files and contruct
> a tree object from the XML file (using wxTree).
> The XML however is not an hiearchical XML file. It contains
> and tags. The tags link the elements
> together.
Are you sure that you ge
[EMAIL PROTECTED] wrote:
> Hello,
>
> I have two modules (file1.py and file2.py)
> Is that ok in python (without any weird implication) if my module
> import each other. I mean in module file1.py there exist command import
> file2 and in module file2.py there exist command import file1?
Even if i
Ops yes is BNF :P Bacus Normal Form if I am not wrong...
However..
I'am tryng to recognizing patterns in a bytecoded file in orderd to
optimize...
But I would like to "parse" i.e reconstruct it in something like a
tree..
in order to apply rules on a tree recursively.
I have seen compile.c
Tim,
You are most correct, replace_header did the trick.
Thanks a bunch.
Philippe
Tim Williams wrote:
> "Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> I have the following problem:
>> 1) I can use smtplib to send text messages
>> 2) I can generate htm
#! rnews 2612
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: Generating HTML from python
X-Nntp-
Thanks
Walter Dörwald wrote:
> Cappy2112 wrote:
>> I looked at HTMLGen a while ago- I didn't see what the advantage was.
>> I wrote soem code similar to the example above, to generate a page..
>> It worked out fine.
>>
>> However, I want to add HTML ouput to many of my other python programs,
>>
I couldn't find any resource that addresses output from the unittest package
in python 2.4.x. I can't beleive that there isn't an output formatter/test
runner for the unittest package.. surely some needed this before.
Is there a working group or package maintainer for these kinds of features?
T
PS: Just wanted to add that HTMLGen works very well and outputs html that
wxHtmlEasyPrinting and my email client have not problem reading (I output
student grades, missing assignments, ... in tables).
The one gitch is they do not have any installation program (that I've seen)
for windows.
Regards
"Renato Ramonda" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Thomas Bartkus ha scritto:
>
> >>Then download gtk2.6 and glade for windows and then install pygtk and
> >>code away to your satisfaction! :-D
> >>
> >
> >
> > I *will* try that.
>
> On linux you probably have everything
Hi,
I want to write a small TCP Server in Python to make an IMAP Proxy for
post-processing client requests.
It is not long either complicated but needs to be very robust so...
maybe someone here has already done such a thing I can use or know where
i can get it ?
Cheers,
Tarek
--
http://mail.p
Does anyone know of a quick way of performing this:
$testVar =~ s#/mail/.*$##g
The only way I can think of doing it, is:
mailPos = testVar.find( "mail" )
remainder = testVar[ :mailPos ]
Any ideas would be appreciated. I'm iterating over a lot of entries,
and running these lines for each entr
Gregory Piñero wrote:
> I didn't see anything about mysql-devel package in the release notes.
it's there, section "Prerequisites".
> Is that something I can install all to my home directory?
never tried, but sounds hard to do. mysql-devel is a bunch of libs and
include files tied to mysql. the
On Sun, 12 Jun 2005 23:16:35 +0530, km wrote:
> hi all,
>
> can any linux command be invoked/ executed without using shell (bash) ?
py> import os
py> status = os.system("ls")
Prints the output of ls and stores the exit code into status.
py> file_list = os.popen("ls").read()
Stores the output
Mandus schrieb:
> As someone who like to do functional style programming, but without a
> lot of training in that dept., I miss what you ask for from time to
> time.
>
> I don't want to go to much into this discussion, just comment on a tiny
> little bit:
>
> Thu, 09 Jun 2005 03:32:12 +0200 skrev
Tim Williams wrote:
> After a few posts recently, I have put together an SMTP test rig that will
> receive emails and either store them to a file, write them to a console, or
> both.
Sounds interesting.
> Does anyone have any suggestions on where I can get it hosted as a utility
> for general
On 2005-06-12, km <[EMAIL PROTECTED]> wrote:
> can any linux command be invoked/executed without using shell (bash)?
Yes -- for some values of "linux command". You can execute
anything that's not a bash internal or a bash script without
using bash.
> what abt security concerns?
What about them
Dnia Fri, 10 Jun 2005 14:57:21 +0100, John Abel napisał(a):
> $testVar =~ s#/mail/.*$##g
>
> The only way I can think of doing it, is:
>
> mailPos = testVar.find( "mail" )
> remainder = testVar[ :mailPos ]
>
> Any ideas would be appreciated. I'm iterating over a lot of entries,
> and running
On 2005-06-10, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> On Sun, 12 Jun 2005 23:16:35 +0530, km wrote:
>
>> hi all,
>>
>> can any linux command be invoked/ executed without using shell (bash) ?
>
> py> import os
> py> status = os.system("ls")
>
> Prints the output of ls and stores the exit cod
JZ wrote:
>Dnia Fri, 10 Jun 2005 14:57:21 +0100, John Abel napisał(a):
>
>
>
>>$testVar =~ s#/mail/.*$##g
>>
>>The only way I can think of doing it, is:
>>
>>mailPos = testVar.find( "mail" )
>>remainder = testVar[ :mailPos ]
>>
>>Any ideas would be appreciated. I'm iterating over a lot of entr
Steven D'Aprano wrote:
>On Sun, 12 Jun 2005 23:16:35 +0530, km wrote:
>
>
>
>>hi all,
>>
>>can any linux command be invoked/ executed without using shell (bash) ?
>>
>>
>
>py> import os
>py> status = os.system("ls")
>
>Prints the output of ls and stores the exit code into status.
>
>py> fil
John Abel wrote:
> Does anyone know of a quick way of performing this:
>
> $testVar =~ s#/mail/.*$##g
Use the re (regular expression) module. Since you are iterating over a lot of
entries, it is good to compile the regular expression outside of the loop.
>>> import re
>>> mailRE = re.compile('/
hi everybody, i have a small mysql connection code
>>> import MySQLdb
>>> db=MySQLdb.Connection(host="localhost",user="root",db="nux")
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/lib/python2.3/site-packages/MySQLdb/__init__.py", line
66, in Connect
return Connection
On 2005-06-10, Mage <[EMAIL PROTECTED]> wrote:
>>py> file_list = os.popen("ls").read()
>>
>>Stores the output of ls into file_list.
>>
> These commands invoke shell indeed.
Under Unix, popen will not invoke a shell if it's passed a
sequence rather than a single string.
--
Grant Edwards
flyingfred0 wrote:
> A small software team (developers, leads and even the manager when he's
> had time) has been using (wx)Python/PostgreSQL for over 2 years and
> developed a successful 1.0 release of a client/server product.
>
> A marketing/product manager has brought in additional management
Hi, first of all sorry for boring you with a such simple request. I'm
using Python since few days, and I like it even if I'm not yet in
confidence. I'd like to organize my programs in hierarchical
structures, thus I thought that packages could be the solution,
however I have some difficulties under
Negroup wrote:
>Hi, first of all sorry for boring you with a such simple request. I'm
>using Python since few days, and I like it even if I'm not yet in
>confidence. I'd like to organize my programs in hierarchical
>structures, thus I thought that packages could be the solution,
>however I have so
M1st0 wrote:
> Ops yes is BNF :P Bacus Normal Form if I am not wrong...
>
> However..
>
> I'am tryng to recognizing patterns in a bytecoded file in orderd to
> optimize...
>
> But I would like to "parse" i.e reconstruct it in something like a
> tree..
> in order to apply rules on a tree rec
On Fri, 10 Jun 2005 15:52:28 +0200, Tarek Ziadé <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I want to write a small TCP Server in Python to make an IMAP Proxy for
>post-processing client requests.
>
>It is not long either complicated but needs to be very robust so...
>maybe someone here has already done suc
On Thu, 09 Jun 2005 08:10:09 -0400, Dan Sommers wrote:
>>> The main problem is that Python is trying to stick at least three
>>> different concepts onto the same set of operators: equivalence (are
>>> these two objects the same?), ordering (in a sorted list, which comes
>>> first?), and mathematic
Tarek> I want to write a small TCP Server in Python to make an IMAP
Tarek> Proxy for post-processing client requests.
Tarek> It is not long either complicated but needs to be very robust
Tarek> so... maybe someone here has already done such a thing I can use
Tarek> or know wh
I'd consider taking a look at the re module ;)
Andreas
On Fri, Jun 10, 2005 at 02:57:21PM +0100, John Abel wrote:
> Does anyone know of a quick way of performing this:
>
> $testVar =~ s#/mail/.*$##g
>
> The only way I can think of doing it, is:
>
> mailPos = testVar.find( "mail" )
> remainder
sinan , wrote:
> hi everybody, i have a small mysql connection code
>
>
import MySQLdb
db=MySQLdb.Connection(host="localhost",user="root",db="nux")
>
> Traceback (most recent call last):
> File "", line 1, in ?
> File "/usr/lib/python2.3/site-packages/MySQLdb/__init__.py", line
> 66,
Will McGugan wrote:
> Marketing types need a bandwagon to jump on. Point out that Google is
> used by Google, ILM and NASA.
Certainly a true statement - but I've got the sneaky suspicion that the
first google was supposed to be python.
Diez
--
http://mail.python.org/mailman/listinfo/python-lis
On Fri, 10 Jun 2005 14:13:05 +, Grant Edwards wrote:
> On 2005-06-10, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>> On Sun, 12 Jun 2005 23:16:35 +0530, km wrote:
>>
>>> hi all,
>>>
>>> can any linux command be invoked/ executed without using shell (bash) ?
>>
>> py> import os
>> py> status =
Gregory Piñero wrote:
> Is that something I can install all to my home directory?
If you have a similar Linux distribution at home, simply build the mysql
extension on that machine and then copy it to the web server.
Otherwise:
You don't have to actually install it. Just make sure that Setup.py
Ok I tried :).
--
http://mail.python.org/mailman/listinfo/python-list
Hi Kent
This isn't work with the following line:
FieldGraphic56::= GraphicString EBCDIC BC= " " SIZE (56
BYTES)
>>> byter = re.compile(r'SIZE \((\d+) BYTE\)')
>>> s = 'SIZE (1 BYTE)'
>>> byter.sub(r'SIZE(\1)', s)
'SIZE(1)'
>>> byter.sub(r'SIZE(\1)', line)
'FieldGraphic56::= Gr
Hi Kent
This isn't work with the following line:
FieldGraphic56::= GraphicString EBCDIC BC= " " SIZE (56
BYTES)
>>> byter = re.compile(r'SIZE \((\d+) BYTE\)')
>>> s = 'SIZE (1 BYTE)'
>>> byter.sub(r'SIZE(\1)', s)
'SIZE(1)'
>>> byter.sub(r'SIZE(\1)', line)
'FieldGraphic56::= Gr
Dan Sommers wrote:
> On Thu, 09 Jun 2005 15:50:42 +1200,
> Greg Ewing <[EMAIL PROTECTED]> wrote:
>
>
>>Rocco Moretti wrote:
>>
>>>The main problem is that Python is trying to stick at least three
>>>different concepts onto the same set of operators: equivalence (are
>>>these two objects the same?
hi,
my table types are MyISAM both local and server, my code can reach to
my locals mysql but cannot reach when running on server.
--
http://mail.python.org/mailman/listinfo/python-list
Kent Johnson wrote:
> Where do you find check_call()? It's not in the docs and I get
> >>> import subprocess
> >>> subprocess.check_call
> Traceback (most recent call last):
> File "", line 1, in ?
> AttributeError: 'module' object has no attribute 'check_call'
>
> with Python 2.4.1.
Interest
oh my system is debian - sarge with python 2.3
--
http://mail.python.org/mailman/listinfo/python-list
sinan , wrote:
(...)
> these command works at my computer but when i want to do in my server,
> i get these messages as you seen, my both computer and server have
> same python, same MySQLdb module and same database with same
> priviliges.also how can i connect to remote database? is that work ?
>
Jp Calderone wrote:
>On Fri, 10 Jun 2005 15:52:28 +0200, Tarek Ziadé <[EMAIL PROTECTED]> wrote:
>
>
>>Hi,
>>
>>I want to write a small TCP Server in Python to make an IMAP Proxy for
>>post-processing client requests.
>>
>>It is not long either complicated but needs to be very robust so...
>>mayb
Negroup schrieb:
> Hi, first of all sorry for boring you with a such simple request. I'm
> using Python since few days, and I like it even if I'm not yet in
> confidence. I'd like to organize my programs in hierarchical
> structures, thus I thought that packages could be the solution,
> however I h
i checked innodb support via show variable. they have both same support.
mysql version is 4.0.24_Debian-5-log
MySQLdb module version is 1.2.1g2
they are same packets in debian.
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Skip Montanaro wrote:
>Tarek> I want to write a small TCP Server in Python to make an IMAP
>Tarek> Proxy for post-processing client requests.
>
>Tarek> It is not long either complicated but needs to be very robust
>Tarek> so... maybe someone here has already done such a thing I ca
"Rocco Moretti" wrote:
> One way to handle that is to refuse to sort anything that doesn't have a
> "natural" order. But as I understand it, Guido decided that being able
> to sort arbitrary lists is a feature, not a bug.
He has changed his mind since then
(http://mail.python.org/pipermail/python
Steven D'Aprano wrote:
...
> If you were to ask, "which is bigger, 1+2j or 3+4j?" then you
> are asking a question about mathematical size. There is no unique answer
> (although taking the absolute value must surely come close) and the
> expression 1+2j > 3+4j is undefined.
>
> But if you ask "whic
Daniel wrote:
> Hi Kent
>
> This isn't work with the following line:
> FieldGraphic56::= GraphicString EBCDIC BC= " " SIZE (56
> BYTES)
>
>
byter = re.compile(r'SIZE \((\d+) BYTE\)')
Because the string doesn't match the pattern, can you see the difference? Do
you understand what
On 10 Jun 2005 09:05:53 -0700, Dan Bishop <[EMAIL PROTECTED]> wrote:
>Steven D'Aprano wrote:
>...
>> If you were to ask, "which is bigger, 1+2j or 3+4j?" then you
>> are asking a question about mathematical size. There is no unique answer
>> (although taking the absolute value must surely come clos
Hi friends,
I am really sorry to bother you with such a simple stupid question but
today it's my second day spent in searching manuals, mail-archives
(I downloaded over 100MB from "python-list"),
etc., and I could not find anything that can solve the matter.
I am from Bulgaria and I use Python (+
"Mandus" wrote:
> Thu, 09 Jun 2005 03:32:12 +0200 skrev David Baelde:
> [snip]
> >
> > set_callback(obj,
> > lambda x: (if a:
> >2
> > else:
> >3)
> >
> [snip]
>
> You can do stuff like this: lambda x: x and 2 or 3
>
> Of course, you are st
Here are two scripts that I have had to build for a class that I teach. You
will either need to write the constants explicitly, or I can email neet the
constans module that I have built, for the second one to work. I will copy it
to the very end. If you have any questions, just let me know. He
"Kay Schluehr" wrote:
> > Thu, 09 Jun 2005 03:32:12 +0200 skrev David Baelde:
> > [snip]
> > >
> > > set_callback(obj,
> > > lambda x: (if a:
> > >2
> > > else:
> > >3)
> > >
> > [snip]
> >
> > You can do stuff like this: lambda x: x and 2
"Kay Schluehr" wrote:
> > You can do stuff like this: lambda x: x and 2 or 3
>
> You can also do this
>
>lambda x: {True:2,False:3}.get(bool(a))
>
> which is both beautiful and pythonic.
>
> Kay
Beauty is in the eye of the beholder, and the same holds for
'pythonicity'; IMO both are much less
> They want a
> "scalable, enterprise solution" (though they don't really know what
> that means) and are going crazy throwing around the Java buzzwords
> (not to mention XML).
>
There is a very cheap solution: Ryan Tomayko debunkes all these myths.
You can google it up, "astronaut architects"
Peter Hansen wrote:
> [EMAIL PROTECTED] wrote:
>
>> Why does the following result in an IndexError?
>> I try to match an optional group, and then access it via its group
>> name. The group happens to not participate in the match, but is
>> obviously defined in the pattern.
>>
> m = re.match('(
Sorry, I meant to spell check but I did not somehow.
Chad
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Hughes, Chad O
Sent: Friday, June 10, 2005 10:01 AM
To: python-list@python.org
Subject: RE: how to operate the excel by python?
Here are two script
"Rocco Moretti" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The "wackyness" I refered to wasn't that a list of complex numbers isn't
> sortable, but the inconsistent behaviour of list sorting. As you
> mentioned, an arbitraty collection of objects in a list is sortable, but
> as
1 - 100 of 189 matches
Mail list logo