On 02/02/2014 05:12 PM, David Hutto wrote:
A little OT, but these might peak your interest for this:
Also a little OT, but the word you're looking for is spelled pique. ;-)
(Although, it IS pronounced 'peak'.)
-=- Larry -=-
--
https://mail.python.org/mailman/listinfo/python-list
On 2/2/2014 5:40 AM, andrea crotti wrote:
2014-02-02 Terry Reedy :
On 2/1/2014 9:12 AM, andrea crotti wrote:
Comments:
The use is assert in the first slide seem bad in a couple of different
respects.
Why is it bad? It's probably not necessary but since we ask for a
range it might be good to
On 2/2/2014 10:04 PM, edvoge...@gmail.com wrote:
Traceback (most recent call last): File
"C:\Users\Ed\Documents\SOMA\Minecraft and
Python\inventwithpython_src\dodger.py", line 1, in
>> import pygame, random, sys File
"C:\Python33\lib\site-packages\pygame\__init__.py", line 95, in
>> from py
On 02/02/2014 09:12 PM, Roy Smith wrote:
In article ,
Dave Angel wrote:
Skip Montanaro Wrote in message:
On Sun, Feb 2, 2014 at 9:14 PM, Dave Angel wrote:
And when the q-bits get entangled up, we won't know the question
till after the answer has collapsed.
Won't looking at the answe
On Mon, Feb 3, 2014 at 4:12 PM, Roy Smith wrote:
> So, what you're saying is when I delete an object, __del__() has both
> been called and not been called?
>>> class Schrodinger:
def __init__(self):
print("Init!")
>>> print(Schrodinger())
Init!
<__main__.Schrodinger object at 0x02B52
In article ,
Dave Angel wrote:
> Skip Montanaro Wrote in message:
> > On Sun, Feb 2, 2014 at 9:14 PM, Dave Angel wrote:
> >> And when the q-bits get entangled up, we won't know the question
> >> till after the answer has collapsed.
> >
> > Won't looking at the answer change it?
> >
>
> No
Skip Montanaro Wrote in message:
> On Sun, Feb 2, 2014 at 9:14 PM, Dave Angel wrote:
>> And when the q-bits get entangled up, we won't know the question
>> till after the answer has collapsed.
>
> Won't looking at the answer change it?
>
No, looking at it is what collapses it. Before that it
I just happened to find this link:
http://effbot.org/tkinterbook/
through this link:
https://wiki.python.org/moin/TkInter
which ALL happened to stem from this link:
https://www.google.com/search?client=ubuntu&channel=fs&q=python+tkinter+tutorials&ie=utf-8&oe=utf-8
On Sun, Feb 2, 2014 at 3:3
On Sun, Feb 2, 2014 at 9:14 PM, Dave Angel wrote:
> And when the q-bits get entangled up, we won't know the question
> till after the answer has collapsed.
Won't looking at the answer change it?
Skip
--
https://mail.python.org/mailman/listinfo/python-list
Roy Smith Wrote in message:
> In article ,
> Dave Angel wrote:
>
>> Chris Angelico Wrote in message:
>> >
>> >
>> > [1] Scrub the RAM clean and return it to the computer, put the 1 bits
>> > onto the stack for subsequent reuse, and throw all the useless 0 bits
>> > out onto the heap.
>> >
On Sunday, February 2, 2014 8:06:11 PM UTC-6, edvo...@gmail.com wrote:
> Hi,
>
> I am putting together tutorials to accompany "Invent Your Own Computer
> Games with Python" for a volunteer gig. I installed Python 3.3 and Pygame
> 19.2a on an XP machine and it works fine. However the install o
edvoge...@gmail.com Wrote in message:
> That being said there is a base.pyd file but not a base.dll. I understand
> .pyd files are a type of dll. Could there be something about Win7 doesn't
> like about that naming convention?
>
> Please advise.
>
>
I highly doubt that. Most Windows dlls
On Sunday, January 26, 2014 4:45:59 AM UTC+2, Mark Lawrence wrote:
> On 26/01/2014 02:33, Steven D'Aprano wrote:
>
> If I worked as a consultant I'd much prefer the XML version as I'd be
> able to charge much more on the grounds that I'd done much more, hoping
> that the people paying didn't bot
Hi,
I am putting together tutorials to accompany "Invent Your Own Computer Games
with Python" for a volunteer gig. I installed Python 3.3 and Pygame 19.2a on an
XP machine and it works fine. However the install on my Win7 (Home Edition)HP
notebook is not working.
While running python code fr
On Sunday, February 2, 2014 10:51:15 PM UTC+2, Jean Dupont wrote:
> Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten:
>
> I'm looking for an efficient method to produce rows of tables like this:
> jean
you can also try to make below universal for all needed bases:
m = lambda m, n:
On Sun, Feb 2, 2014 at 5:37 PM, Chris Angelico wrote:
> On Mon, Feb 3, 2014 at 12:24 PM, Devin Jeanpierre
>> Destroying memory is comparatively easy, as you say -- just make the
>> object's internal state "invalid", rather than adding anything to the
>> language.
>
> Yeah. Works fine if you have a
On Mon, Feb 3, 2014 at 12:24 PM, Devin Jeanpierre
wrote:
> On Sun, Feb 2, 2014 at 4:07 PM, Chris Angelico wrote:
>> On Mon, Feb 3, 2014 at 10:40 AM, Roy Smith wrote:
>>> I'm reasonably sure you posted this as humor, but there is some truth in
>>> what you said. In the crypto/security domain, yo
On Sun, Feb 2, 2014 at 4:07 PM, Chris Angelico wrote:
> On Mon, Feb 3, 2014 at 10:40 AM, Roy Smith wrote:
>> I'm reasonably sure you posted this as humor, but there is some truth in
>> what you said. In the crypto/security domain, you often want to keep a
>> key or cleartext around only for the
On Sunday, February 2, 2014 9:20:32 PM UTC+2, e-letter wrote:
> Readers,
> Firstly, sorry for the cross-post:
> https://groups.google.com/d/topic/brightway2/-akB-OQBZi4
> Any advice about forcing installation of a later version of a software please?
for pip it is:
pip install --upgrade module_name
On Saturday, February 1, 2014 2:32:22 PM UTC-5, Denis McMahon wrote:
> On Fri, 31 Jan 2014 18:14:31 -0700, Scott W Dunning wrote:
>
>
>
> > little different from a few things you guys had mentioned. For one, I
>
> > got the correct time by calculating the number of time run and
>
> > converti
Readers,
Firstly, sorry for the cross-post:
https://groups.google.com/d/topic/brightway2/-akB-OQBZi4
Any advice about forcing installation of a later version of a software please?
--
https://mail.python.org/mailman/listinfo/python-list
On Sunday, February 2, 2014 8:26:05 PM UTC+2, Asaf Las wrote:
> On Friday, January 31, 2014 9:10:28 AM UTC+2, Ralle wrote:
>
> > Hello
> > I am wondering if it possible to create a packet sniffer in
> > windows using python that only sniffs for ARP packets.
There is also example on bottom of soc
In article ,
Dave Angel wrote:
> Chris Angelico Wrote in message:
> >
> >
> > [1] Scrub the RAM clean and return it to the computer, put the 1 bits
> > onto the stack for subsequent reuse, and throw all the useless 0 bits
> > out onto the heap.
> >
>
> But don't you realize, we have to ke
On Mon, 03 Feb 2014 12:38:00 +1300, Gregory Ewing wrote:
> Steven D'Aprano wrote:
>> (In hindsight, it was probably a mistake for Python to define two
>> create- an-object methods, although I expect it was deemed necessary
>> for historical reasons.
>
> I'm not sure that all of the reasons are hi
Chris Angelico Wrote in message:
>
>
> [1] Scrub the RAM clean and return it to the computer, put the 1 bits
> onto the stack for subsequent reuse, and throw all the useless 0 bits
> out onto the heap.
>
But don't you realize, we have to keep the zero bits around, so
the one bits have some
On Mon, Feb 3, 2014 at 10:40 AM, Roy Smith wrote:
> I'm reasonably sure you posted this as humor, but there is some truth in
> what you said. In the crypto/security domain, you often want to keep a
> key or cleartext around only for the time it's needed, and scrub the
> memory it was occupying as
On 1 February 2014 14:42, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> On Fri, 31 Jan 2014 14:52:15 -0500, Ned Batchelder wrote:
>
> (In hindsight, it was probably a mistake for Python to define two create-
> an-object methods, although I expect it was deemed necessary for
> hi
I have solutions manuals to all problems and exercises in these textbooks. To
get one in an electronic format contact me at: kalvinmanual(at)gmail(dot)com
and let me know its title, author and edition. Please this service is NOT free.
SOLUTIONS MANUAL TO Chemical and Engineering Thermodynamics 3
In article ,
Chris Angelico wrote:
> What you see here is proof that Python really does need an explicit
> destroy() function. It would need to recycle the object [1], forcing
> all references to it to dangle:
>
> >>> a = object()
> >>> b = a
> >>> destroy(a)
> >>> c = b
>
> Traceback (most re
Steven D'Aprano wrote:
(In hindsight, it was probably a mistake for Python to define two create-
an-object methods, although I expect it was deemed necessary for
historical reasons.
I'm not sure that all of the reasons are historical. Languages
that have a single creation/initialisation method
In article ,
Gregory Ewing wrote:
> Generally I think it would be better to talk about "the
> __new__ method" and "the __init__ method", and not call
> either of them a constructor.
+1
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 3, 2014 at 10:15 AM, Gregory Ewing
wrote:
> Roy Smith wrote:
>>
>> In article <52ec84bc$0$29972$c3e8da3$54964...@news.astraweb.com>,
>> Steven D'Aprano wrote:
>>
>>> A dubious analogy, since there are artists who would say that attacking
>>> the canvas with a knife and setting the re
Mark Lawrence wrote:
Called when the instance is created. The arguments are those passed to
the class constructor expression. If a base class has an __init__()
method, the derived class’s __init__() method, if any, must explicitly
call it to ensure proper initialization of the base class part o
Roy Smith wrote:
In article <52ec84bc$0$29972$c3e8da3$54964...@news.astraweb.com>,
Steven D'Aprano wrote:
A dubious analogy, since there are artists who would say that attacking
the canvas with a knife and setting the remains on fire count as a form
of artistic creation :-)
That's __del__(
On 02Feb2014 07:41, Rita wrote:
> Thanks for the response Cameron. No amount of 'googling' could provide me
> with that caliber response :-)
>
> So, it seems regardless I would need a database.
To use SQLA, yes.
The SQLite backend is a very cheap/easy way to start; local files,
no server needed
Thanks everyone for your feedback.
The talk I think went well, maybe I was too fast because I only used 21 minutes.
>From the audience feedback, there were some questions about my "Buggy
code" example, so yes probably it's not a good example since it's too
artificial.
I'll have to find something
On Sun, 02 Feb 2014 13:46:24 -0800, Gary Herron wrote:
> Sorry, but in fact you did *not* run this program as you claim.
+1
I can also see a call to a function named Question, but I can't see where
that function is defined.
That might not be a major issue, because I don't think the while
con
On 02/02/2014 01:16 PM, Charlie Winn wrote:
Hey Guys i Need Help , When i run this program i get the 'None' Under the
program, see what i mean by just running it , can someone help me fix this
def Addition():
print('Addition: What are two your numbers?')
1 = float(input('First Number:
On Sun, 02 Feb 2014 13:16:44 -0800, Charlie Winn wrote:
> Hey Guys i Need Help , When i run this program i get the 'None' Under
> the program, see what i mean by just running it , can someone help me
> fix this
>
> def Addition():
> print('Addition: What are two your numbers?')
> 1 = floa
>
> >
>
> I would've suggested re-installing Python. That would've been worth
>
> trying.
Unfortunately, I did uninstall and re-install Python. It didn't help.
--
https://mail.python.org/mailman/listinfo/python-list
Hey Guys i Need Help , When i run this program i get the 'None' Under the
program, see what i mean by just running it , can someone help me fix this
def Addition():
print('Addition: What are two your numbers?')
1 = float(input('First Number:'))
2 = float(input('Second Number:'))
p
In Allison Gray
writes:
> I recently obtained a new laptop with Windows 8.1 and installed Python 2.7.=
> Everything was working fine. Then after my first update, I was unable to l=
> aunch Python. After clicking the Python icon, the thinking cursor activated=
> , but Python never opened. I res
Op zondag 2 februari 2014 19:10:32 UTC+1 schreef Peter Otten:
> Jean Dupont wrote:
>
> > I'm looking for an efficient method to produce rows of tables like this:
> >
> > for base 2
> > 0 0 0 0
> > 0 0 0 1
> > 0 0 1 0
> > 0 0 1 1
> > 0 1 0 0
> > .
> > .
> > .
> > 1 1 1 1
> >
> > for base 3
> > 0 0
Thanks all who replied, will look further into megawidgets and the Toplevel()
function. Is there a way to get a separate window to return something when
closed?
--
https://mail.python.org/mailman/listinfo/python-list
Should have been the following, which just shows the books price as a float as
well, but you get the point by now, I'm sure:
import random as r
def
order_total(price_per_book,percent_discount_amount,quantity,first_book_shipping,extra_book_shipping):
percent_discount = price_per_book * pe
Or a better iterating example for a database of shipping, or ordering books
would be:
import random as r
def
order_total(price_per_book,percent_discount_amount,quantity,first_book_shipping,extra_book_shipping):
percent_discount = price_per_book * percent_discount_amount
amount_o
On Friday, January 31, 2014 9:10:28 AM UTC+2, Ralle wrote:
> Hello
>
> I am wondering if it possible to create a packet sniffer in windows using
> python that only sniffs for ARP packets.
In addition to Mark Betz suggestion - http://www.wireshark.org/ it works above
winpcap and it is full funct
Jean Dupont wrote:
> I'm looking for an efficient method to produce rows of tables like this:
>
> for base 2
> 0 0 0 0
> 0 0 0 1
> 0 0 1 0
> 0 0 1 1
> 0 1 0 0
> .
> .
> .
> 1 1 1 1
>
> for base 3
> 0 0 0 0 0 0
> 0 0 0 0 0 1
> 0 0 0 0 0 2
> 0 0 0 0 1 0
> 0 0 0 0 1 1
> 0 0 0 0 1 2
> .
> .
> 2 2 2
On Sunday, February 2, 2014 12:43:01 PM UTC-5, Denis McMahon wrote:
> On Sun, 02 Feb 2014 08:57:03 -0800, David Hutto wrote:
>
>
>
> > Revised:
>
>
>
> > discounted_price = price_per_book - (price_per_book * percent_discount)
>
>
>
> by applying some simple algebra to the right hand side
>
In article <515e582f-ed17-4d4e-9872-f07f1fda6...@googlegroups.com>,
Jean Dupont wrote:
> I'm looking for an efficient method to produce rows of tables like this:
>
> for base 2
> 0 0 0 0
> 0 0 0 1
> 0 0 1 0
> 0 0 1 1
> 0 1 0 0
> .
> .
> .
> 1 1 1 1
>
> for base 3
> 0 0 0 0 0 0
> 0 0 0 0 0 1
>
Help us improve our app by completing this simple survey...
https://docs.google.com/forms/d/164j4anIdefOF7yhuRWIi3IF2EW_Vmippy4lLtxUhj68/viewform
--
https://mail.python.org/mailman/listinfo/python-list
I'm looking for an efficient method to produce rows of tables like this:
for base 2
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
.
.
.
1 1 1 1
for base 3
0 0 0 0 0 0
0 0 0 0 0 1
0 0 0 0 0 2
0 0 0 0 1 0
0 0 0 0 1 1
0 0 0 0 1 2
.
.
2 2 2 2 2 2
As you can see the rows are always twice the size of the ba
On Sun, 02 Feb 2014 08:57:03 -0800, David Hutto wrote:
> Revised:
> discounted_price = price_per_book - (price_per_book * percent_discount)
by applying some simple algebra to the right hand side
price_per_book - (price_per_book * percent_discount)
"x = (x * 1)" so "price_per_book == (price_per
On Sat, 01 Feb 2014 05:18:34 -, Scott W Dunning
wrote:
Any chance you guys could help with another question I have? Below is a
code to a different problem. The only thing I don’t understand is why
when calculating the 'discounted price’ you have to subtract 1? Thanks
again guys!
On Sunday, February 2, 2014 11:38:57 AM UTC-5, MRAB wrote:
> On 2014-02-02 16:11, David Hutto wrote:
>
> > price_per_book = 24.95
>
> > discount = .40
>
> > quantity = 60
>
> >
>
> The original problem says:
>
>
>
> Suppose the cover price of a book is $24.95, but bookstores get a 40%
>
>
On Sunday, February 2, 2014 11:11:07 AM UTC-5, David Hutto wrote:
> price_per_book = 24.95
>
> discount = .40
>
> quantity = 60
>
>
>
> Here:
>
> discounted_price = (1-discount) * price_per_book
>
>
>
> The discounted price should be price_per_book - discount
>
>
>
> shipping = 3.0 + (6
On 2014-02-02 16:11, David Hutto wrote:
price_per_book = 24.95
discount = .40
quantity = 60
The original problem says:
Suppose the cover price of a book is $24.95, but bookstores get a 40%
discount. Shipping costs $3 for the first copy and 75 cents for each
additional copy. What is the total
On 2014-02-02 15:39, Allison Gray wrote:
I recently obtained a new laptop with Windows 8.1 and installed
Python 2.7. Everything was working fine. Then after my first update,
I was unable to launch Python. After clicking the Python icon, the
thinking cursor activated, but Python never opened. I re
price_per_book = 24.95
discount = .40
quantity = 60
Here:
discounted_price = (1-discount) * price_per_book
The discounted price should be price_per_book - discount
shipping = 3.0 + (60 - 1) * .75
shipping should be, I think, should be 3.0 + (quantity * .75)
total_price = 60 * discounted_price
On 2014-02-02, Pete Forman wrote:
> Grant Edwards writes:
>
>> On 2014-01-30, wxjmfa...@gmail.com wrote:
>>
>>> The temperature unit is the "Kelvin", not the "Degree Kelvin".
>>> One writes: 0 K, 275.15 K
>>
>> And remember to say "Kelvins" not "Kelvin" when speaking about
>> temperatures other
I recently obtained a new laptop with Windows 8.1 and installed Python 2.7.
Everything was working fine. Then after my first update, I was unable to launch
Python. After clicking the Python icon, the thinking cursor activated, but
Python never opened. I restored my laptop to a time before the up
> Thank you that's nicer, but ifiilterfalse is not in Python 3 (could
>
> use filter of course).
It was renamed to filterfalse -
http://docs.python.org/3.3/library/itertools.html#itertools.filterfalse
--
https://mail.python.org/mailman/listinfo/python-list
Le dimanche 2 février 2014 13:45:54 UTC+1, Pete Forman a écrit :
> Grant Edwards writes:
>
>
>
> > On 2014-01-30, wxjmfa...@gmail.com wrote:
>
> >
>
> >> The temperature unit is the "Kelvin", not the "Degree Kelvin".
>
> >> One writes: 0 K, 275.15 K
>
> >
>
> > And remember to say "Kelvin
Grant Edwards writes:
> On 2014-01-30, wxjmfa...@gmail.com wrote:
>
>> The temperature unit is the "Kelvin", not the "Degree Kelvin".
>> One writes: 0 K, 275.15 K
>
> And remember to say "Kelvins" not "Kelvin" when speaking about
> temperatures other than 1 K.
And remember to write kelvins. SI
Thanks for the response Cameron. No amount of 'googling' could provide me
with that caliber response :-)
So, it seems regardless I would need a database.
On Sun, Feb 2, 2014 at 1:58 AM, Cameron Simpson wrote:
> On 01Feb2014 20:46, Rita wrote:
> > I want to learn more about ORMs so I stumbl
andrea crotti wrote:
> 2014-02-01 Miki Tebeka :
>>
>> My 2 cents:
>> slide 21:
>> from itertools import count, ifilterfalse
>>
>> def divided_by(p):
>> return lambda n: n % p == 0
>>
>> def primes():
>> nums = count(2)
>> while True:
>> p = next(nums)
>> yield p
>>
Sorry left too early, the slides are updated with the fixes suggested,
thanks everyone.
https://dl.dropboxusercontent.com/u/3183120/talks/generators/index.html#1
For me the biggest problem is still:
- to find some more interesting example that is easy enough to explain
- to find a better order in
The slides are updated now
2014-02-02 andrea crotti :
> 2014-02-01 Miki Tebeka :
>>
>> My 2 cents:
>>
>> slide 4:
>> [i*2 for i in range(10)]
>>
>
> Well this is not correct in theory because the end should be the max
> number, not the number of elements.
> So it should be
> [i*2 for i in range(10
2014-02-01 Miki Tebeka :
>
> My 2 cents:
>
> slide 4:
> [i*2 for i in range(10)]
>
Well this is not correct in theory because the end should be the max
number, not the number of elements.
So it should be
[i*2 for i in range(10/2)] which might be fine but it's not really
more clear imho..
> slide
2014-02-02 Terry Reedy :
> On 2/1/2014 9:12 AM, andrea crotti wrote:
>
> Comments:
>
> The use is assert in the first slide seem bad in a couple of different
> respects.
>
Why is it bad? It's probably not necessary but since we ask for a
range it might be good to check if the range is valid.
Maybe
Am 02.02.14 00:07, schrieb Lewis Wood:
It does, this is the whole code:
from tkinter import *
root=Tk()
root.title("Second Root Testing")
def secondwindow():
root2=Tk()
root2.mainloop()
button1=Button(root,text="Root2",command=secondwindow).grid(row=0,column=0)
root.mainloop()
I
Am 01.02.14 20:43, schrieb Lewis Wood:
I was wandering if I could dynamically change my GUI and after a few searches
on Google found the grid_remove() function. What I'm wandering now is if there
is a way to group a lot of widgets up into one, and then use the one
grid_remove function which wi
72 matches
Mail list logo