Hi,
I am fooling around with the Python-COM bridge, and I have a little
question with that.
In the component I am using is a method which will return an "Entry"
object - basically. In truth it returns some object which inherits from
entry, and I know which one, but - as said - the method will onl
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
>regarding the constants, this is more for the "vm" (and type safety).
>actually enums, constants and symbols can prolly be implemented more or
>less the same.
Ewww. For some reason, there's just something about the vulgar construct
"prolly" that r
I apologize. Google groups has restricted our contact email. To reach
us, please send your quote to hiringdivision @ gmail.com.
Thank you.
--
http://mail.python.org/mailman/listinfo/python-list
"Gerard Flanagan" <[EMAIL PROTECTED]> wrote:
>Kun wrote:
>
>> i have the following code:
>>
>> --
>> import smtplib
>>...
>> msg['Subject'] = 'Purchase Confirmation'
>> msg ['From'] = From
>> msg['To'] = emails
>>
>> s = smtplib.SMTP('.xxx.xxx.edu')
>> s.login('
Hello everybody,
I have written a python script which executes some functions and then
returns to the python interactive shell prompt (In other words I use
the command
"#!/usr/bin/python -i " in the script's header.
In this script I register my own handler for the SIGINT and SIGTERM
handlers but w
Kun <[EMAIL PROTECTED]> wrote:
>
>Kun wrote:
>> i have the following code:
>>
>> --
>> import smtplib
>>
>> from email.MIMEText import MIMEText
>> fp = open('confirmation.txt', 'rb')
>> msg = MIMEText(fp.read())
>>
>> From = '[EMAIL PROTECTED]'
>>
>> msg['Subjec
>I apologize. Google groups has restricted our contact email. To reach
> us, please send your quote to hiringdivision @ gmail.com.
>
> Thank you.
Apologize to whom? Who/What are you replying to?
Please note that we don't all use Google groups format your replies
properly.
Simon
--
http://u
Op 2006-03-25, John J. Lee schreef <[EMAIL PROTECTED]>:
> [EMAIL PROTECTED] (Alex Martelli) writes:
> [...]
>> you should be using pychecker or pylint
> [...]
>
> I'm curious, as somebody who doesn't regularly use these tools: How do
> they fit into your workflow? Do you run them every few hours,
Hi,
I had some issues with XMLRPCServer and I try to validate my
workaround.
My first try was this (somewhat self explaining code):
from DocXMLRPCServer import DocXMLRPCServer
from cx_Oracle import connect
def get_task_list(user):
sql = """
select ISS.ISS_ISSUE_NUMBER
Michael Sperlle wrote:
> When I bring up the command line interface, it looks like: [EMAIL PROTECTED]
>
> Then I type in some command, and it works!
>
> But there are lots of commands to type in, and I find it more and more
> difficult to remember them.
This question is not for comp.lang.python.
H
Antoon Pardon wrote:
> Op 2006-03-25, John J. Lee schreef <[EMAIL PROTECTED]>:
>> [EMAIL PROTECTED] (Alex Martelli) writes:
>> [...]
>>> you should be using pychecker or pylint
>> [...]
>>
>> I'm curious, as somebody who doesn't regularly use these tools: How do
>> they fit into your workflow? Do
thanks guys.I solved the problem by moving self.stdmutex.acquire()
before if c<5:
--
http://mail.python.org/mailman/listinfo/python-list
I did observe the problem when using the -U
option on Windows 2000. Seems like some infinite
recursion in cp1250.py -- see below.
I did not try it with earlier versions of Python.
Can this be reproduced on your computer?
Thanks for your time and experience,
pepr
P.S. Thanks, Martin, for the
Hey guys, this maybe a stupid question, but I can't seem to find the
result anywhere online. When is the right time to use 'is' and when
should we use '=='?
Thanks alot~
--
http://mail.python.org/mailman/listinfo/python-list
> Could [RFC 3339] be a candidate for a "default" consumption
> format for date-time strings?
+1
--
http://mail.python.org/mailman/listinfo/python-list
mwql:
>Hey guys, this maybe a stupid question, but I can't seem to find the
>result anywhere online. When is the right time to use 'is' and when
>should we use '=='?
http://docs.python.org/ref/comparisons.html
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
mwql wrote:
> Hey guys, this maybe a stupid question, but I can't seem to find the
> result anywhere online. When is the right time to use 'is' and when
> should we use '=='?
"is" is like id(obj1) == id(obj2)
>>> 100+1 == 101
True
>>> 100+1 is 101
False
They don't have the same id. (Think o
Op 2006-03-27, Georg Brandl schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>> Op 2006-03-25, John J. Lee schreef <[EMAIL PROTECTED]>:
>>> [EMAIL PROTECTED] (Alex Martelli) writes:
>>> [...]
you should be using pychecker or pylint
>>> [...]
>>>
>>> I'm curious, as somebody who doesn't regu
1. Is there on option to get cx_Oracle to return string data as unicode
rather than strings objects? XML-RPC aside, dealing with unicode objects
might be better than dealing with encoded strings.
2. You might want to transmit integers as strings rather than use the
XML-RPC integer type (which i
mwql wrote:
> Hey guys, this maybe a stupid question, but I can't seem to find the
> result anywhere online. When is the right time to use 'is' and when
> should we use '=='?
>
> Thanks alot~
'==' is the equality operator. It is used to test if two objects are
'equal'.
'is' is the identity opera
Is there a way of checking whether the call to a set-function is
called from within the class, e.g. the __init__() contra
.set()?
Thanks.
Ronny Mandal
--
http://mail.python.org/mailman/listinfo/python-list
Thanks to all, my main concern about anything Microsoft picks up and
runs with is that they vear off just slightly from the "standard" and
freeze everyone else out like they have done with their browser,
javascript etc.. etc... etc... So for now I will try to use Python /
PythonWin with the COM sup
Dan wrote:
> Thanks to all, my main concern about anything Microsoft picks up and
> runs with is that they vear off just slightly from the "standard" and
> freeze everyone else out like they have done with their browser,
> javascript etc.. etc... etc... So for now I will try to use Python /
> Pyth
nikie wrote:
> Philippe Martin wrote:
>> Hi,
>>
>> Thanks to the NG, I got the script hereunder working.
>>
>> 1) I am not certain that the call to convert does much (checking the doc)
>
> I think you only need it if your source image comes in a format that
> can't be stored into a jpeg file (e.g
PS: where can I find those extra parameters in the doc (ex: quality) ... I
must be blind.
Philippe
nikie wrote:
> Philippe Martin wrote:
>> Hi,
>>
>> Thanks to the NG, I got the script hereunder working.
>>
>> 1) I am not certain that the call to convert does much (checking the doc)
>
> I thi
> "is" is like id(obj1) == id(obj2)
> (Think of id as memory adresses.)
Which means that "is" comparisons in general will be faster than ==
comparisons. According to PEP8 (python programming style guidelines) you should
use 'is' when comparing to singletons like None. I take this to also includ
In article <[EMAIL PROTECTED]>,
Joel Hedlund <[EMAIL PROTECTED]> wrote:
> Which means that "is" comparisons in general will be faster than ==
> comparisons.
I thought that == automatically compared identify before trying to compare
the values. Or am I thinking of some special case, like strin
I think I like generator comprehension in this case better than either
list comprehension or a filter because both of the latter create a new
full "result list" before the loop even begins. At least I suppose they
do. Also, I think Mitja's suggestion "if not : continue" and
Terry's filter function
Roy Smith wrote:
> In article <[EMAIL PROTECTED]>,
> Joel Hedlund <[EMAIL PROTECTED]> wrote:
>>Which means that "is" comparisons in general will be faster than ==
>>comparisons.
>
> I thought that == automatically compared identify before trying to compare
> the values. Or am I thinking of som
Ronny Mandal wrote:
> Is there a way of checking whether the call to a set-function is
> called from within the class, e.g. the __init__() contra
> .set()?
import inspect
help(inspect.stack)
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[E
Roy Smith wrote:
> In article <[EMAIL PROTECTED]>,
> Joel Hedlund <[EMAIL PROTECTED]> wrote:
>
>> Which means that "is" comparisons in general will be faster than ==
>> comparisons.
>
> I thought that == automatically compared identify before trying to compare
> the values. Or am I thinking o
Philippe Martin wrote:
> PS: where can I find those extra parameters in the doc (ex: quality) ... I
> must be blind.
In the http://www.pythonware.com/library/pil/handbook/formats.htm page.
Look in the "JPEG" section. Different file formats support different
options.
--
http://mail.python.org/mail
Hello vj
> I'll try and do as much as possible in pexpect but am sure I'll have do
> some significant perl. Any suggestions on what is the best way to get
> upto speed on perl?
Perl is (imho) much more complex and
somehow more powerful than Python
(if you can handle it) - it has more
development
On Sunday 26 March 2006 5:00 pm, Dennis Lee Bieber wrote:
> Any possibility you need to specify an option on the socket
> connections to reuse-sockets without the normal time-out?
The problem turned out to be keep-alive. Apparently, Comcast is limiting my
inbound connections. Apache keeps the co
On 26 Mar 2006 23:12:33 -0800, Mir Nazim <[EMAIL PROTECTED]> wrote:
>Hello,
>
>Can any one direct me to some tutorials for:
> 1. Nevow LivePage
http://divmod.org/trac/wiki/DivmodNevow/Athena
http://divmod.org/trac/browser/trunk/Nevow/examples/athenademo
> 2. Form handling in Nevow
In unix shell script I can do the following to get the status and
values returned by a unix command
OUTPUT=`some unix command`
STATUS=$?
if [ $STATUS -ne 0 ]
then
exit 1
else
set $OUTPUT
VAL1=$1
VAL2=$2
VAL3=$3
fi
How can I achieve the same in python?
I know how to run it via the os.sy
On Mon, 27 Mar 2006 14:52:46 +0200,
Joel Hedlund <[EMAIL PROTECTED]> wrote:
> ... According to PEP8 (python programming style guidelines) you should
> use 'is' when comparing to singletons like None. I take this to also
> include constants and such ...
This does *not* also mean constants and such
Dennis Lee Bieber wrote:
> On Mon, 27 Mar 2006 01:34:14 +0200, Bruno Desthuilliers
> <[EMAIL PROTECTED]> declaimed the following in
> comp.lang.python:
>
>
>>Ok, so even if Python itself declares b and b2 (read: objects that names
>>b and b2 are bound to) to be of the same type, you cannot appl
It's really strange,
if
a = 1
b = 1
a is b ==> True
the same thing applies for strings, but not for dict, lists or tuples
I think the 'is' operator is useful for objects only, not for primitive
types,
I think I solved the mystery behind my bugged code =)
--
http://mail.python.org/mailman/listi
Many thanks
nikie wrote:
> Philippe Martin wrote:
>> PS: where can I find those extra parameters in the doc (ex: quality) ...
>> I must be blind.
> In the http://www.pythonware.com/library/pil/handbook/formats.htm page.
> Look in the "JPEG" section. Different file formats support different
> opt
Jean-Paul Calderone wrote:
>On 26 Mar 2006 23:12:33 -0800, Mir Nazim <[EMAIL PROTECTED]> wrote:
>
>
>
>>2. Form handling in Nevow
>>
>>
>>
>
>http://divmod.org/trac/browser/trunk/Nevow/examples/formbuilder
>http://forms-project.pollenation.net/cgi-bin/trac.cgi
>
>Jean-Paul
>
>
mwql wrote:
> It's really strange,
>
> if
> a = 1
> b = 1
> a is b ==> True
>
> the same thing applies for strings
Not quite:
>>> 'abc' is 'abc'
True
>>> 'abc' is 'ab' + 'c'
False
--
Benji York
--
http://mail.python.org/mailman/listinfo/python-list
Brian Quinlan wrote:
> 1. Is there on option to get cx_Oracle to return string data as unicode
> rather than strings objects? XML-RPC aside, dealing with unicode objects
> might be better than dealing with encoded strings.
I don't think cx_Oracle can return unicode string, so my code to
convert s
loial> In unix shell script I can do the following to get the status and
loial> values returned by a unix command
loial> OUTPUT=`some unix command`
loial> STATUS=$?
loial> if [ $STATUS -ne 0 ]
loial> then
loial> exit 1
loial> else
loial> set $OUTPUT
loi
Dan Sommers wrote:
> This does *not* also mean constants and such:
>
> Python 2.4.2 (#1, Feb 22 2006, 08:02:53)
> [GCC 4.0.1 (Apple Computer, Inc. build 5247)] on darwin
> Type "help", "copyright", "credits" or "license" for more information.
> >>> a = 123456789
> >>> a == 123
[EMAIL PROTECTED] wrote:
> I'm aware that Pylons is trying to
> compete with Rails in the near future but I'm just not clear on how
> directly they are trying to compete...will Pylons have the same
> generation functions and other time saving goodies that RoR has or am I
> barking up the wrong tre
Bruno Desthuilliers wrote:
> In the python shell, typing 'help()' should get you started most
> of the time.
And honestly, it should work all of the time. If it doesn't, file a bug
report. I can't stand it when that doesn't work. Some of us don't do
all of our work with a browser handy, and a net
[EMAIL PROTECTED] wrote:
> Do you think this discussion is a proof that the following principle
> got violated, or do you think that "loop with condition" is not such an
> atomic thing to be subject to this: "There should be one -- and
> preferably only one -- obvious way to do it."
Mitja's sugges
Em Seg, 2006-03-27 às 08:23 -0500, Dan Sommers escreveu:
> On Mon, 27 Mar 2006 14:52:46 +0200,
> Joel Hedlund <[EMAIL PROTECTED]> wrote:
>
> > ... According to PEP8 (python programming style guidelines) you should
> > use 'is' when comparing to singletons like None. I take this to also
> > include
mwql wrote:
> It's really strange,
>
> if
> a = 1
> b = 1
> a is b ==> True
>
> the same thing applies for strings, but not for dict, lists or tuples
> I think the 'is' operator is useful for objects only, not for primitive
> types,
> I think I solved the mystery behind my bugged code =)
The r
Tokyo PyPy Sprint: 23rd - 29th April 2006
The next PyPy sprint is scheduled to take place 23rd- 29th April 2006
(Sunday-Saturday) in Akihabara, Tokyo, Japan. We will together with
FSIJ (Free Software Initiative of Japan) aim to promote
On Sun, 26 Mar 2006 19:52:32 -0700, Mark Gibson wrote:
>
>>
>>
>> import os
>> def test_file(filename, maxread=1024):
>>if os.path.isdir(filename):
>> return 'directory'
>>afile = open(filename) # open as text
>>for achar in afile.read(maxread):
>> if ord(achar) > 127:
>>
"looping" wrote:
> > 2. You might want to transmit integers as strings rather than use the
> > XML-RPC integer type (which is limited to numbers between -2147483648
> > and 2147483647).
>
> Is it a limit of XML-RPC RFC or a limit (probably with a good reason)
> of the python xmlrpclib ?
the speci
Thanks, I am going to try to implement with Python.
--
http://mail.python.org/mailman/listinfo/python-list
Ben Cartwright wrote:
> > w =Label(root, text="Congratulations you have made it this far,just a few
> > more
> > questions then i will be asking you some")
> >
> > The problem i have is where i have started to write some
> > text"Congratulations
> > you have made it this far,just a few more ques
Fredrik Lundh wrote:
> "looping" wrote:
>
> > > 2. You might want to transmit integers as strings rather than use the
> > > XML-RPC integer type (which is limited to numbers between -2147483648
> > > and 2147483647).
> >
> > Is it a limit of XML-RPC RFC or a limit (probably with a good reason)
> >
Donn Cave, [EMAIL PROTECTED]
> I suppose it isn't supported by the mailbox module basically because
> it isn't all that commonly encountered. It may be more common on mail
> servers, but there it's email net protocol data, POP or IMAP. If
> Mahogany has been using this format for `local' folders
hi guys,
could u tell me how to delete images ( files) from a folder by using
tags in zope?
Because I upload images there and test whether it is meet size
requirment and then upload it to the folder it supposed to be.
Pls help me, thanks.
Cheng
--
http://mail.python.org/mailman/listinfo/pytho
i have coded some progs that use the Pmw.Blt.Graph widgets, embedded
in a simple Tkinter GUI
,
| from Tkinter import *
| import Pmw
| ...
| frame=Frame(root)
| ...
| graph=Pmw.Blt.Graph(frame,...)
| graph.line_create(...)
| graph.pack(...)
`
now i'd like to port those progs to an environm
loial wrote:
> In unix shell script I can do the following to get the status and
> values returned by a unix command
>
> OUTPUT=`some unix command`
> STATUS=$?
> if [ $STATUS -ne 0 ]
> then
> exit 1
> else
> set $OUTPUT
> VAL1=$1
> VAL2=$2
> VAL3=$3
> fi
>
> How can I achieve the same i
Does the COM server created with python have to be compiled? I have the
need to integrate database access but, I can not have any proprietary
software. Meaning no compiled programs built by me. So, if python can
do com clients and servers without compiling, Im good. But I don't know
if that is poss
[EMAIL PROTECTED] wrote:
> And furthermore, having Python's bitwise operators
> is nice, but it's not nice enough. I need the bitwise
> functionality gmpy provides that's not available in
> Python: scan for position of least significant 1 or 0,
Cute tricks (artifact of two's complement notation):
Quoth "David Isaac" <[EMAIL PROTECTED]>:
| Donn Cave, [EMAIL PROTECTED]
|> I suppose it isn't supported by the mailbox module basically because
|> it isn't all that commonly encountered. It may be more common on mail
|> servers, but there it's email net protocol data, POP or IMAP. If
|> Mahogany
Just for completeness: The functions in Steve's original post named
maximum calculate the minimum.
Also, timing-wise, on my machine with a random list of 20 integers
Steve's iteration version and Mitja's version are about equal, the
system built-in is equal or slightly slower, and Paul's versi
Dan wrote:
> Does the COM server created with python have to be compiled? I have the
> need to integrate database access but, I can not have any proprietary
> software. Meaning no compiled programs built by me. So, if python can
> do com clients and servers without compiling, Im good. But I don't k
want to encode/decode an arbitrary short 8-bit string as save filename.
is there a good already builtin encoding to do this (without too much
inflation) ? or re.sub expression?
or which characters are not allowed in filenames on typical OS?
robert
--
http://mail.python.org/mailman/listinfo/pyt
Eyal Lotem wrote:
> By the way, the "real" problem here is referencing by name, rather than
> using "true" references. Which is the result of using a textual language.
> The "real" solution would be to store real-references to the function and
> only present the name in a graphical interface.
Ther
On 2006-03-27, robert <[EMAIL PROTECTED]> wrote:
> want to encode/decode an arbitrary short 8-bit string as save filename.
> is there a good already builtin encoding to do this (without too much
> inflation) ? or re.sub expression?
>
> or which characters are not allowed in filenames on typical O
> want to encode/decode an arbitrary short 8-bit string as save filename.
> is there a good already builtin encoding to do this (without too much
> inflation) ? or re.sub expression?
>
> or which characters are not allowed in filenames on typical OS?
On Windows, / \ : * ? " < > | are forbidden, a
robert wrote:
> want to encode/decode an arbitrary short 8-bit string as save filename.
> is there a good already builtin encoding to do this (without too much
> inflation) ? or re.sub expression?
Yuu could use the base64-encoder. Disadvantage is clearly that you can't
easily read your original t
"Arne Ludwig" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Just for completeness: The functions in Steve's original post named
> maximum calculate the minimum.
>
> Also, timing-wise, on my machine with a random list of 20 integers
> Steve's iteration version and Mitja's version
On Mon, 27 Mar 2006 18:13:17 +0200, "Diez B. Roggisch" <[EMAIL PROTECTED]>
wrote:
>robert wrote:
>
>> want to encode/decode an arbitrary short 8-bit string as save filename.
>> is there a good already builtin encoding to do this (without too much
>> inflation) ? or re.sub expression?
>
>Yuu could
On 27 Mar 2006 00:19:09 -0800, Axel Bock <[EMAIL PROTECTED]> wrote:
> I am fooling around with the Python-COM bridge, and I have a little
> question with that.
>
> In the component I am using is a method which will return an "Entry"
> object - basically. In truth it returns some object which inheri
On Sat, 25 Mar 2006 21:33:24 -0800, DrConti wrote:
> Dear Python developer community,
> I'm quite new to Python, so perhaps my question is well known and the
> answer too.
>
> I need a variable alias ( what in other languages you would call "a
> pointer" (c) or "a reference" (perl))
Others have
>>Sounds like you are walking a "fine line" on the "no compiled programs
>>written by me" thing.
Yeah, I hate it. I could have written a C++ server, client application
etc.. very easily. Instead, I have had to write javascript on the
client to embed in an html page to view, insert,delete etc.. SQL
On Mon, 27 Mar 2006 08:14:07 -0800, nikie wrote:
>> want to encode/decode an arbitrary short 8-bit string as save filename.
>> is there a good already builtin encoding to do this (without too much
>> inflation) ? or re.sub expression?
>>
>> or which characters are not allowed in filenames on typic
Jean-Paul Calderone wrote:
> punycode is used by dns. A commonly used email codec is
> quoted-printable. Here's an example of each:
>
>>>> u'Helló world'.encode('utf-8').encode('quopri')
>'Hell=C3=B3=20world'
>>>> u'Helló world'.encode('punycode')
>'Hell world-jbb'
>>>>
>
almost 41 million hits from google about using perl mod's in python was a
bit discouraging...So, I thought about asking humans.
There are some perl modules written to manage files, acls, etc in afs.
Rather than wrapping the c-compiled versions of afs commands in sys.popen
and parsing the output, I
Steven D'Aprano wrote:
> On Mon, 27 Mar 2006 08:14:07 -0800, nikie wrote:
>
>
>>>want to encode/decode an arbitrary short 8-bit string as save filename.
>>>is there a good already builtin encoding to do this (without too much
>>>inflation) ? or re.sub expression?
>>>
>>>or which characters are n
I'm looking for software to create a simple GUI to execute python code
for users in the office.
The GUI would need a couple text boxes for user input and some option
buttons and check boxes.
Can anyone recommend free software that doesn't require a huge learning
curve?
My python skills are probably
I have been trying to get the gdmodule installed and have run into an issue.
When I import gd I get the following error.
>>> import gd
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/local/lib/python2.3/site-packages/gd.py", line 10, in ?
import _gd
ImportError: /usr/lo
I am now programming python scripts for CGI environment. The
redirection has been discussed in this forum for over one hundred
times. I have seen most of them, but still have some questions:
1. Are there any method (in python of course) to redirect to a web page
without causing a "Back" button tra
Clemens Hepper wrote:
> It's strange: python seem to cache constants from 0 to 99:
That's true. The Python api doc says that Python keeps an array of
integer objects for all integers between -1 and 100. See
http://docs.python.org/api/intObjects.html.
This also seems to be true for integers from -5
Don't know if there is a way to call perl from Python but the perl
inline python module allows you to call perl from python from within an
outer perl interpreter.
Thts what I make of the following anyway:
http://aspn.activestate.com/ASPN/CodeDoc/Inline-Python/Python.html
- Paddy.
--
http://m
There is also:PyPerl at:
http://search.cpan.org/dist/pyperl/perlmodule.pod
But you need to check if it is current.
- Pad.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
...
> So - your conclusion is basically right: use is on (complex) objects, not on
> numbers and strings and other built-ins. The exception from the rule is
> None - that should only exist once, so
>
> foo is not None
>
DataSmash schrieb:
> I'm looking for software to create a simple GUI to execute python code
> for users in the office.
> The GUI would need a couple text boxes for user input and some option
> buttons and check boxes.
> Can anyone recommend free software that doesn't require a huge learning
> curve
anyone have v2.x of pysqlite that I could download? the website is
down for a hardware upgrade with no date as to when it will be back.
I checked sourceforge but there are no files there to download.
thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Sullivan WxPyQtKinter enlightened us with:
> 1. Are there any method (in python of course) to redirect to a web
> page without causing a "Back" button trap(ie, when user click the
> back button on their web browser, they are redirect to their current
> page, while their hope is probably to go back
Going in a slightly different direction ...
There has been lots of published work on how to create efficient FSMs
from regexps. Generally these FSMs are used for pattern matching (i.e.
"does string 's' match regexp 'e'?").
Is there any corresponding literature on the topic addressed by the
OP's
Dennis Lee Bieber wrote:
> On 27 Mar 2006 10:17:21 -0800, "abcd" <[EMAIL PROTECTED]> declaimed
> the following in comp.lang.python:
>
> > anyone have v2.x of pysqlite that I could download? the website is
> > down for a hardware upgrade with no date as to when it will be back.
> >
> Source o
Here's an exercise I was doing to guess a number from 1-100. Just for
fun (ha ha) I decided to add some error checking too, and now when I run
it, the DOS prompt flashes real quick and disappears. At first, I had
just the top try/except block and not the second one, and that worked
(as far as i
John Salerno wrote:
> Here's an exercise I was doing
This might help:
import random
number = random.choice(range(1, 100))
tries = 0
while True:
try:
guess = input('Enter a number between 1 and 100: ')
break
except NameError:
print 'Invalid number\n'
co
Steven D'Aprano wrote:
> On Sat, 25 Mar 2006 21:33:24 -0800, DrConti wrote:
>
>
>>Dear Python developer community,
>>I'm quite new to Python, so perhaps my question is well known and the
>>answer too.
>>
>>I need a variable alias ( what in other languages you would call "a
>>pointer" (c) or "a r
John Salerno wrote:
> Here's an exercise I was doing to guess a number from 1-100.
Here's another question that is related:
while True:
year = raw_input('Enter year (or other character to quit): ')
try:
year = int(year)
except NameError:
break
if (year % 4 =
Just barely looked the code answer:
check you scope on the second try block.
if that doesn't work...
I'll read it for real :)
Try PyDev plugin with eclipse - it's served me fairly well, but I did
come from Java - so I'm an eclipse fan already.
--
http://mail.python.org/mailman/listinfo/python-
DrConti wrote:
> I need a variable alias ( what in other languages you would call "a
> pointer" (c) or "a reference" (perl))
Or, you think you need it.
> I read some older mail articles and I found that the offcial position
> about that was that variable referencing wasn't implemented because
> i
I just launched my django site for a client. My problem is something
is caching my db data in a bizzar way. Here are some of the behaviours
I get:
- I login, and every other page it makes me login again for a 5 minutes
or so and then it remembers that I am logged in.
- I add a record, it reflect
QOTW: "Testing real examples in doctstrings, or external documentation like
tutorials, is important because it's very frustrating for people reading
the docs if the examples don't work as advertised." - Marc Rintsch
"If you don't document what the sundry variables are FOR, you're really
not docume
[EMAIL PROTECTED] wrote:
> Just barely looked the code answer:
> check you scope on the second try block.
>
> if that doesn't work...
> I'll read it for real :)
>
> Try PyDev plugin with eclipse - it's served me fairly well, but I did
> come from Java - so I'm an eclipse fan already.
>
I think
1 - 100 of 181 matches
Mail list logo