2009/2/4 Scott David Daniels :
Thanks for that. It makes me feel guilty to point out that:
> addition is not associative in real numbers
should presumably be "addition is not associative in floating point numbers".
--
Tim Rowe
--
http://mail.python.org/mailman/listinfo/python-list
ruelle schrieb:
What do you need jythonc for? That's purely for a somewhat neater
integration of *Java* with jython - nothing to do with sympy.
Diez
I need jythonc to compile a simple script in java,
this script import SymPy library.
You need to find other ways.
The usual approach to this i
In article ,
Brian Allen Vanderburg II wrote:
>
> [...]
>
>When a lookup is done it uses this descriptor to make a bound or unbound
>method:
>
>c=C()
>
>C.F # unbound method object, expects explicit instance when calling the
>function
>c.F # bound method object provides instance implicitly whe
On Wednesday 04 February 2009 10:53:54 am Russ P. wrote:
> On Feb 4, 5:35 am, Luis Zarrabeitia wrote:
> > Quoting "Russ P." :
> > This analogy is nonsense. There is no way you will execute code on my
> > system if I don't authorize it, regardless of how "public" are the
> > variables declared in m
Keith Thompson wrote:
> "Gary Herron" writes:
>> Python *is* object-oriented
>
> I disagree. Care to provide proof of that statement?
Disagree all you like. Just do it silently, please.
regards
Steve
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://w
On Feb 4, 2:43 pm, Scott David Daniels wrote:
> joviyach wrote:
> > I am fairly new to Python, the first version I loaded was 2.6. I have
> > since downloaded 3.0 and I was wondering what the best practice for
> > upgrading is? I am using Windows XP Pro for my OS.
>
> On Windows, X.Y.* all go in o
Catherine Heathcote a écrit :
Firstly hi, I don't know any of you yet but am picking up Python and
will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4
years of a comp tech degree, long story) and am learning Python, 'cos I
saw some code and it just looks a really nice language
Is there a good solution to the following problem?
I have a library whose components I would like to separate into
distinct modules. These components inherit from a common base class
that provides common functionality (the inheritance is important only
for implementation; there's a separate ABC m
Hello everyone. Quick question: When using the "read()" method in the
array module, must I redirect the current file pointer or will that
occur automatically?
For example, if I were to sequentially read data in chunks from a
binary file as in:
for currentChunk in range(numberOfChunksToRead):
Gilles Ganault a écrit :
Hello
If I wanted to build some social web site such as Facebook, what do
frameworks like Django or TurboGears provide over writing a site from
scratch using Python?
Quite a lot of abstractions and factorisation of the boilerplate code, a
known way to organize your ap
Hi
I am going through the "wxPython in Action" book by Noel Rappin and
Robin Dunn.
I have been typing in the example programs as I go and play with
modifing the code.
Thought I should start trying to find my way around the documentation
found on the wxPython web site.
The problem I have been hav
Lionel wrote:
> Hello everyone. Quick question: When using the "read()" method in the
> array module, must I redirect the current file pointer or will that
> occur automatically?
>
> For example, if I were to sequentially read data in chunks from a
> binary file as in:
>
>
> for currentChunk in ra
On Feb 4, 7:49 pm, andrew cooke wrote:
> This leads to a circular dependency - the base class wants to import
> the components, which in turn want to import the base class.
>
> Is there any standard solution to this?
well, to partially answer my own question, this is certainly
possible. in the g
On Feb 4, 3:10 pm, MRAB wrote:
> Lionel wrote:
>
> > Hello everyone. Quick question: When using the "read()" method in the
> > array module, must I redirect the current file pointer or will that
> > occur automatically?
> >
> > For example, if I were to sequentially read data in chunks from a
On Feb 4, 8:06 pm, len wrote:
> How does one find the methods that are available in the classes.
heh. welcome to the wonderful world of wxpython :o(
if you use eclipse to edit your code, then (providing the wind is in
the right direction and the file you are editing doesn't have any
syntax erro
On Wed, 04 Feb 2009 17:23:55 -, Vincent Davis
wrote:
I guess what I am saying is that it does not seem like I am adding any
information that is not already there when I have to enter that list and
list name after all they are the same.
Thanks
But you are. Consider just for a moment wha
2009/2/4 Bruno Desthuilliers :
> # somemodule.py
>
> import os
>
> if os.uname()[0] == "Linux":
On an MS Windows system, os.uname()[0] raises an AttributeError -- sys
doesn't seem to contain uname. Is that a Linux thing? Would os.name
work on Linux? Or would one have to use exception handling and
2009/2/4 Scott David Daniels :
> joviyach wrote:
>>
>> I am fairly new to Python, the first version I loaded was 2.6. I have
>> since downloaded 3.0 and I was wondering what the best practice for
>> upgrading is? I am using Windows XP Pro for my OS.
>
> On Windows, X.Y.* all go in one directory (ov
I wrote:
> You are missing the whole thing that mes floating point tricky
> The reason it is tough is that addition is not associative in real
> numbers, and associativity is at the core > of a lot of proofs in
> arithmetic (and group theory).
In response to which Tim Rowe wrote:
... Thanks
On Feb 5, 11:14 am, Tim Rowe wrote:
...
> On an MS Windows system, os.uname()[0] raises an AttributeError -- sys
> doesn't seem to contain uname. Is that a Linux thing? Would os.name
> work on Linux? Or would one have to use exception handling and catch
> the Windows case?
It seems to be a Wind
2009/2/5 Scott David Daniels :
> And, of course he is right (and didn't even whomp on my typo of "makes"
> as "mes in the first line quoted above).
A typo for "makes" didn't bother me. Non-associativity of the real
numbers under addition risked making my whole world fall apart :-)
--
Tim Rowe
2009/2/5 :
> On Feb 5, 11:14 am, Tim Rowe wrote:
>
> ...
>
>> On an MS Windows system, os.uname()[0] raises an AttributeError -- sys
>> doesn't seem to contain uname. Is that a Linux thing? Would os.name
>> work on Linux? Or would one have to use exception handling and catch
>> the Windows case?
Keith Thompson writes:
> "Gary Herron" writes:
>> Python *is* object-oriented
>
> I disagree. Care to provide proof of that statement?
AWOOGA!
The article I'm following up to (together with at least one other) is a
forgery, and the Followup-To header is set to comp.lang.c as part of an
effort
Using while loop and if statement, I'm trying to get Python to tell me whether
there are even or odd number of 1's in a binary representation.
For example, if I give Python a 0111, then I want it to say that the binary
representation given has an odd number of 1's.
If I give it 00010111, the
Lionel wrote:
> On Feb 4, 3:10 pm, MRAB wrote:
>> Lionel wrote:
>>
>> > Hello everyone. Quick question: When using the "read()" method in the
>> > array module, must I redirect the current file pointer or will that
>> > occur automatically?
>> >
>> > For example, if I were to sequentially re
On Wed, Feb 4, 2009 at 5:02 PM, todp...@hotmail.com wrote:
> Using while loop and if statement, I'm trying to get Python to tell me
> whether there are even or odd number of 1's in a binary representation.
> For example, if I give Python a 0111, then I want it to say that the
> binary represen
Hi All,
Using urllib2 can trigger CGI script in server side. However, I
encountered a problem of the so-called smart link. When a fairly large
site, the server needs to track the identifier of each request from
client, so it generated an ugly escape string attached on url. It
seems that I must get
Hi all,
So I have an interesting challenge. I want to compare two book
chapters, which I have in plain text format, and find out (a) percentage
similarity and (b) what has changed.
Some features make this problem different than what seems to be the
standard text-matching problem solvable wi
By "binary representation", I mean a byte of 0s and 1s. Example: 0101
Also, I'm interested in only using while loop and if statement to accomplish
this task.
Thanks.> Date: Wed, 4 Feb 2009 17:18:25 -0800> Subject: Re: Using while loop
and if statement to tell if a binary has an odd or even n
2009/2/5 todp...@hotmail.com :
> Using while loop and if statement, I'm trying to get Python to tell me
> whether there are even or odd number of 1's in a binary representation.
> For example, if I give Python a 0111, then I want it to say that the
> binary representation given has an odd numbe
On Wed, Feb 4, 2009 at 5:16 PM, Muddy Coder wrote:
> Hi All,
>
> Using urllib2 can trigger CGI script in server side. However, I
> encountered a problem of the so-called smart link. When a fairly large
> site, the server needs to track the identifier of each request from
> client, so it generated
I'm trying to get Python to say:
Enter the height (in metres):
and convert whatever value to feet and inches. I've done this part as you can
see below, but how can I terminate the program when user inputs a height less
than 1/2 inch?
How can I also take into account all the cases that need a
On Tuesday 03 February 2009 03:59, John Harper wrote:
> Before I try to reverse engineer completely setup.py, is there
> something obvious that needs to be done to get it to use the right tool
> chain?
I think it's more complicated than that, though in an ideal world it
wouldn't have to be that w
if I start with
M = [1,3,5,7]
M is [1,3,5,7]
This seems one way, as [1,3,5,7] is not M in the sense that there is
no operation I can preform on [1,3,5,7] and get M back. Other than
asking/testing M==[1,3,5,7]
This seems fine to me. but when I savedata(M) it seems I should be
able to refer to both [
A "byte" is *not* a Python type. My question was what *Python type*
(i.e. bytes (which is distinctly different from the abstract notion of
a byte), str/unicode, int, etc...) you were using for you "binary
representation", which you still haven't answered.
Also, please don't reply by top-posting
(ht
On 5 Feb, 01:18, Tim Rowe wrote:
> 2009/2/4 Scott David Daniels :
>
> > joviyach wrote:
>
> >> I am fairly new to Python, the first version I loaded was 2.6. I have
> >> since downloaded 3.0 and I was wondering what the best practice for
> >> upgrading is? I am using Windows XP Pro for my OS.
>
>
On Wed, Feb 4, 2009 at 5:20 PM, Nick Matzke wrote:
> Hi all,
>
> So I have an interesting challenge. I want to compare two book chapters,
> which I have in plain text format, and find out (a) percentage similarity
> and (b) what has changed.
>
> Some features make this problem different than what
Using while loop and if statement, I'm trying to get Python to
tell me whether there are even or odd number of 1's in a
binary representation. For example, if I give Python a
0111, then I want it to say that the binary representation
given has an odd number of 1's. If I give it 00010111, then
On Feb 4, 5:10 pm, MRAB wrote:
> Lionel wrote:
>
> > On Feb 4, 3:10 pm, MRAB wrote: >> Lionel
> wrote:
>
> >>
> >> > Hello everyone. Quick question: When using the "read()" method in the
> >> > array module, must I redirect the current file pointer or will that
> >> > occur automatically
On Feb 5, 11:45 am, Tim Rowe wrote:
[snip]
> Python in a Nutshell states that os.uname "exists only on certain
> platforms", and in the code sample wraps it in a try statement. That
> seems to be the safe way to go -- except (and I don't know much about
> this) wouldn't code have to be digging
2009/2/5 Giampaolo Rodola' :
> Just out of curiosity, am I the only one who think that switching to
> 3.x right now is not a good idea?
I'm looking at making the switch, but I'm put off by the lack of 3rd
party stuff such as PyWin (and I can't see a NumPy build for Python
2.6 yet, never mind 3.0)
On Thu, 05 Feb 2009 01:28:06 -, todp...@hotmail.com
wrote:
I'm trying to get Python to say:
Enter the height (in metres):
and convert whatever value to feet and inches. I've done this part as
you can see below, but [...]
Holy homework, you are busy tonight. Hang on while I put the li
Enter the height (in metres):
and convert whatever value to feet and inches. I've done this
part as you can see below, but how can I terminate the program
when user inputs a height less than 1/2 inch?
Dang...I got suckered into answering a homework problem for the
last one. My apologies to
2009/2/5 todp...@hotmail.com :
> I'm trying to get Python to say:
>
> Enter the height (in metres):
>
> and convert whatever value to feet and inches.
This looks like another homework assignment. You'll probably get more
help (on *any* language forum) if you admit that up front. However, at
least
My argument comes down to; we use M so we don't have to type
[1,3,5,7], I realize that this is in part because we might not no what
M will be.
This is starting to sound like double talk on my part, I have only
been programing in python for 2 weeks so my credibility is only that
of an outside that
I have a program with embedded Python. If the python code has print
statements, how do I retrieve those values (which normally go to stdout)?
The output from Py_RunString is just NULL
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Could someone tell me the way to add body to the instance
email.mime.multipart.MIMEMultipart instance which has attachments?
Thanks,
Srini
Bollywood news, movie reviews, film trailers and more! Go to
http://in.movies.yahoo.com/
--
http://mail.python.org/mailman/listinfo/python-list
Apparently there is some fossil evidence of an early version of Python
over 50 million years ago. Must have been some large negative
version. It apparently suffered from serious code bloat, since
the article says it was 13 meters long and over a megagram.
http://news.bbc.co.uk/1/hi/sci/tech/
* Russ P. (Tue, 3 Feb 2009 21:04:30 -0800 (PST))
> Imagine you own a company, and you decide to lease an office building.
> Would you expect the office doors to have locks on them? Oh, you
> would? Why? You mean you don't "trust" your co-workers? What are locks
> but enforced access restriction?
>
On Feb 5, 9:51 am, Lionel wrote:
> Hello everyone. Quick question: When using the "read()" method in the
> array module, must I redirect the current file pointer or will that
> occur automatically?
>
> For example, if I were to sequentially read data in chunks from a
> binary file as in:
>
> for c
Thanks Simon and Marc,
I currently have an app on OSX that I wanted to migrate to NIX, it
uses a ODBC DBAPI interface to communicate with Filemaker.
Unfortunately, FMP does not support linux drivers. They do have a
JDBC driver that looks like it may work. My preference was to run
that app on one
On Thu, 05 Feb 2009 01:36:17 -, Vincent Davis
wrote:
if I start with
M = [1,3,5,7]
M is [1,3,5,7]
This seems one way, as [1,3,5,7] is not M in the sense that there is
no operation I can preform on [1,3,5,7] and get M back. Other than
asking/testing M==[1,3,5,7]
Correct. If you actually
todp...@hotmail.com wrote:
> By "binary representation", I mean a byte of 0s and 1s. Example: 0101
> Also, I'm interested in only using while loop and if statement
> to accomplish this task.
> Thanks.
>
I smell homework. Do it yourself!
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Tim Rowe wrote:
> 2009/2/5 Giampaolo Rodola' :
>
>> Just out of curiosity, am I the only one who think that switching to
>> 3.x right now is not a good idea?
>
> I'm looking at making the switch, but I'm put off by the lack of 3rd
> party stuff such as PyWin (and I can't see a NumPy build for Pyt
On Thu, Feb 5, 2009 at 3:57 AM, Vincent Davis wrote:
> Sorry for not being clear
> I would have something like this
> x = [1, 2, 3,5 ,6 ,9,234]
> Then
> def savedata(dataname): ..
>
> savedata(x)
> this would save a to a file called x.csv This is my problem, getting the
> name to be x.csv
"The problem is you seem to be thinking in terms of objects having names.
They don't. Names have objects."I agree this is my problem. This is not
correct terminology then?
The name of the object is anobject
Let me give another example and let me know if I am just beating a dead
horse.
In my curr
Jervis Whitley wrote "Although you should really solve your problem by
thinking about it
from a completely different angle, maybe subclassing your datatype and
adding a 'name'
attribute ? I'm sure some of the others here have suggested that already."
That is beyond my current knowledge. Any suggest
Chris Rebert wrote:
On Wed, Feb 4, 2009 at 5:20 PM, Nick Matzke wrote:
Hi all,
So I have an interesting challenge. I want to compare two book chapters,
which I have in plain text format, and find out (a) percentage similarity
and (b) what has changed.
Some features make this problem differ
On Thu, Feb 5, 2009 at 2:37 PM, Vincent Davis wrote:
> Jervis Whitley wrote "Although you should really solve your problem by
> thinking about it
> from a completely different angle, maybe subclassing your datatype and
> adding a 'name'
> attribute ? I'm sure some of the others here have suggested
In article ,
Rhodri James wrote:
>
>Fundamentally, the concept of a single unique name for any object isn't
>something built into the language (or, indeed, most languages I can think
>of). An object can have no names (though it'll promptly get garbage
>collected if it isn't assigned to a name som
antoniosacch...@gmail.com wrote:
>
>someone can help me??
>I am new to programing,
>but I need to make some script like this:
>http://blogs.nyu.edu/blogs/agc282/zia/2008/11/using_python_to_solve_optimiza.html
>so th equestion is :
>is possible to open it than it ask something and it tell me the
>re
On Win XP 64bit, Python 2.6.1 64bit
I am trying to rename files by their creation time.
It seems the time module is too smart for its own good here.
time.localtime(os.path.getctime(f)) returns a value one hour off from
what windows reports for files that were created when Daylight savings
tim
Hi. Does anyone know how to scan a file character by character and
have each character so I can put it into a variable. I am attempting
to make a chatbot and need this to read the saved input to look for
spelling mistakes and further analysis of user input.
Thanks
Spacebar265
--
http://mail.python.
On 5 Feb, 07:48, Spacebar265 wrote:
> Hi. Does anyone know how to scan a file character by character and
> have each character so I can put it into a variable. I am attempting
> to make a chatbot and need this to read the saved input to look for
> spelling mistakes and further analysis of user inp
"MRAB" wrote:
> The actual names of the variables and functions shouldn't matter to the
> outside world; the name of an output file shouldn't depend on the name
> of a variable.
That is a matter of opinion.
It is however, an interesting problem, namely:
How does one get hold of the actual nam
101 - 165 of 165 matches
Mail list logo