eryksun (), thanks for your help.
I had tried MinGW-w64 today, however, another more errors happen which
just like this (
http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o
). Another no solution error.
First, I tried to remov
Thank you so much! That worked!
On 9/21/2012 7:17 PM, Dave Angel wrote:
Hi, you forgot to do a reply-all, so it didn't go to the list. I'm
correcting that now, so don't worry about it. if your email doesn't
support reply-all, then just add a cc of tutor@python.org
On 09/21/2012 08:09 PM, Gi
Hi, you forgot to do a reply-all, so it didn't go to the list. I'm
correcting that now, so don't worry about it. if your email doesn't
support reply-all, then just add a cc of tutor@python.org
On 09/21/2012 08:09 PM, Gina wrote:
> On 9/21/2012 6:47 PM, Dave Angel wrote:
>> On 09/21/2012 07:34
On 22/09/2012 00:44, Stephen Haywood wrote:
What doesn't work? What error message do you get? What have you done
to fix the errors? What version of Python are you using?
Stephen Haywood
Information Security Consultant
W: www.averagesecurityguy.info
T: @averagesecguy
On Sep 21, 2012, at 7:35 PM,
On 22/09/2012 00:34, Gina wrote:
I don't know why this program doesn't run, but if you know, please tell me.
-thanks
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 09/21/2012 07:34 PM, Gina wrote:
> I don't know why this program doesn't run, but if you know, please
> tell me.
> -thanks
>
So what happens when you try? "Doesn't run" covers a multitude of
possibilities.
First one:
python Car Salesperson.py
python: can't open file 'Car': [Errno 2] No such
What doesn't work? What error message do you get? What have you done
to fix the errors? What version of Python are you using?
Stephen Haywood
Information Security Consultant
W: www.averagesecurityguy.info
T: @averagesecguy
On Sep 21, 2012, at 7:35 PM, Gina wrote:
> I don't know why this program
On Sep 21, 2012, at 6:14 AM, Dae James wrote:
How can I convert a variable name to a string ?
For example:
testVariable = 1000;
How can I get the string "testVariable" ?
Thank you~
Use a dictionary.
vars['testVariable'] = 1000
for key in vars:
print key
print vars[key]
I don't know why this program doesn't run, but if you know, please tell me.
-thanks
#adds extra fees to the base price of a car.
print(
"""
Car Salesman
Totals the base price of a car with all other fees.
Please enter the requested information, and don'
On 9/21/2012 2:11 AM Dae James said...
How can I convert a variable name to a string ?
For example:
testVariable = 1000;
How can I get the string "testVariable" ?
If what you're asking is 'how do I get the value associated with the the
string "testVariable"?' then yuo can use something like:
Pavel Andreev wrote:
> Hello all
> A question from very beginner.
> I generate a simple example array and then print its elements on the screen.
>
> f=[[0]*3]*3 # array initialization
Your problem is above. Let us rewrite the above line as
a = [0]*3
f = [a]*3
Variable `a` i
On Fri, Sep 21, 2012 at 2:47 PM, Pavel Andreev wrote:
>
> f=[[0]*3]*3 # array initialization
The above isn't giving you what you want. All 3 sublists are the same object:
>>> f = [[0]*3]*3
>>> map(id, f)
[149391980, 149391980, 149391980]
Do this instead:
>
On Fri, Sep 21, 2012 at 2:46 PM, Brett Dailey
wrote:
>
> It just needs to be scaled to fit into each tile. You can just use one of your
> choice as a place holder for now and I'll just put my own in later.
I wrote up a version last night. Here's an image of the output:
http://i.imgur.com/h4Wcd.p
>
> You need to add the folder where python.exe is to your PATH variable.
I just realized the path we're heading down here isn't going to work.
I need on .py file to be up an running so that I can add it to my tool
in ArcGIS.
>
> Oscar
I appreciate the help Oscar, and I believe it would work th
Hello all
A question from very beginner.
I generate a simple example array and then print its elements on the screen.
f=[[0]*3]*3 # array initialization
for i in range(3):
for j in range(3):
f[i][j]=str(i)+str(j)# make simple example array
print f[i][j]
On Fri, Sep 21, 2012 at 12:26 PM, Muse Gk wrote:
>
> I have the very similar problem like this guy except I want to install
> pycrypto ( https://www.dlitz.net/software/pycrypto/ ).
> http://stackoverflow.com/questions/12005109/python-cannot-build-pycpuid
Try MinGW-w64 running under Windows instea
Friends,
I have the very similar problem like this guy except I want to install
pycrypto ( https://www.dlitz.net/software/pycrypto/ ).
http://stackoverflow.com/questions/12005109/python-cannot-build-pycpuid
We had done enough researches on Google, still can not get a solution.
Could some friend
> To summarize,
> with a numpy array called a, the OP is getting an error doing:
>
> (3 < a < 5).any()
>
>> ...
>
> I think not. The last expression you give will even return true if one
> of the values is > 3 and a DIFFERENT value is < 5. And i suspect the
> OP only wants a TRUE if at least
On 09/21/2012 11:25 AM, Steven D'Aprano wrote:
> On 22/09/12 01:07, Bala subramanian wrote:
>> Friends,
>> May i know why do get a Valuerror if i check any value in a is between
>> 3.0 to 5.0 ?
To summarize,
with a numpy array called a, the OP is getting an error doing:
(3 < a < 5).any()
>
On 22/09/12 01:18, Jerry Hill wrote:
On Fri, Sep 21, 2012 at 10:33 AM, Prasad, Ramit
wrote:
Ironically, that describes me. So what is the preference for large
code samples? Just always include it? What about for the main list?
It's tricky.
Ideally, you need to take your large code base, and
On Sep 21, 2012 4:09 PM, "Bala subramanian"
wrote:
>
> Friends,
> May i know why do get a Valuerror if i check any value in a is between
> 3.0 to 5.0 ?
> >>> import numpy as np
> >>> a=np.array([ 2.5, 2.6, 3.0 , 3.5, 4.0 , 5.0 ])
> >>> (a > 7).any()
> False
> >>> (a > 4).any()
> True
> >>> (3
On 22/09/12 01:07, Bala subramanian wrote:
Friends,
May i know why do get a Valuerror if i check any value in a is between
3.0 to 5.0 ?
import numpy as np
a=np.array([ 2.5, 2.6, 3.0 , 3.5, 4.0 , 5.0 ])
(a> 7).any()
False
This calculates an array of bools, then calls any() on it.
py> a
On Fri, Sep 21, 2012 at 10:33 AM, Prasad, Ramit
wrote:
> Ironically, that describes me. So what is the preference for large
> code samples? Just always include it? What about for the main list?
It's tricky.
Ideally, you need to take your large code base, and reduce it into a
short piece of sampl
On 21/09/12 20:51, Albert-Jan Roskam wrote:
Hi,
My company just started application whitelisting. Now a new version of
a (benign!!) dll does not work as it (or rather, its file hash, if I
understood it correctly) is not whitelisted.
Then get it whitelisted. If your company doesn't have the abi
Steven D'Aprano wrote:
> On 21/09/12 08:54, Prasad, Ramit wrote:
> > People on this list are not all receiving this via email.
>
>
> They're not? How else can you receive this? Unlike the main python-list,
> this isn't (as far as I know) mirrored on Usenet.
>
> I wonder under what circumstances
On Fri, Sep 21, 2012 at 3:31 PM, Leo Degon wrote:
> I'm trying to create a class where the main focus is creating a list whose
> elements are lists and the elements of those lists are collection of zeros
> and ones. I am trying to create functions to rotate the list ninety
> degrees, to reflect i
Leo Degon wrote:
> I'm trying to create a class where the main focus is creating a list whose
> elements are lists and the elements of those lists are collection of zeros
> and ones. I am trying to create functions to rotate the list ninety
> degrees, to reflect it. Having a few problems with the
On 21/09/12 19:11, Dae James wrote:
How can I convert a variable name to a string ?
For example:
testVariable = 1000;
How can I get the string "testVariable" ?
You can't. Any value could have zero, one or many names, and there is no way
to go backwards from the object to the name.
What are yo
On 09/21/2012 09:31 AM, Leo Degon wrote:
> I'm trying to create a class where the main focus is creating a list whose
> elements are lists and the elements of those lists are collection of zeros
> and ones. I am trying to create functions to rotate the list ninety
> degrees, to reflect it. Having a
I'm trying to create a class where the main focus is creating a list whose
elements are lists and the elements of those lists are collection of zeros
and ones. I am trying to create functions to rotate the list ninety
degrees, to reflect it. Having a few problems with the rotation.
get TypeError: '
On Fri, Sep 21, 2012 at 2:19 PM, Peter Otten <__pete...@web.de> wrote:
>
> Here's a back-of-the-envelope calculation:
>
> '4151e067c17a753fc5c4ec1c507d28c9' is a hexadecimal number with 32 digits,
> otherwise known as
>
> 340282366920938463463374607431768211456L
>
> If you are trying to hit that nu
Albert-Jan Roskam wrote:
> Hi,
>
> My company just started application whitelisting. Now a new version of a
> (benign!!) dll does not work as it (or rather, its file hash, if I
> understood it correctly) is not whitelisted. Is there any way I can use
> the same dll of a newer version? I know this
On 09/21/2012 06:51 AM, Albert-Jan Roskam wrote:
> Hi,
>
> My company just started application whitelisting. Now a new version of a
> (benign!!) dll does not work as it (or rather, its file hash, if I understood
> it correctly) is not whitelisted. Is there any way I can use the same dll of
> a n
On Fri, Sep 21, 2012 at 11:11 AM, Dae James wrote:
> **
> How can I convert a variable name to a string ?
> For example:
> testVariable = 1000;
> How can I get the string "testVariable" ?
> Thank you~
>
>
Well, the locals() dictionary will have a "testVariable" entry in it.. but
if I may ask, why
Hi,
My company just started application whitelisting. Now a new version of a
(benign!!) dll does not work as it (or rather, its file hash, if I understood
it correctly) is not whitelisted. Is there any way I can use the same dll of a
newer version? I know this sounds like a hacking request, but
How can I convert a variable name to a string ?
For example:
testVariable = 1000;
How can I get the string "testVariable" ?
Thank you~
Dae James___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.
36 matches
Mail list logo