On Fri, 15 Apr 2016 02:36 pm, Sayth Renshaw wrote:
> Hi
>
> Wondering if someone has this knowledge, and please forgive my maths
> expressions. If I want to estimate need results to achieve a goal at the
> end of a term updated weekly with real results how would I structure this?
I'm not really
Op 14-04-16 om 17:05 schreef Steven D'Aprano:
> On Fri, 15 Apr 2016 12:08 am, Antoon Pardon wrote:
>
>> I have a unittest for my avltree module.
>>
>> Now I want this unittest to also run on a subclass of avltree.
>> How can I organise this, so that I can largely reuse the
>> original TestCase?
>
>
Chris Angelico wrote:
>> Just a note, some browsers will try to resolve this as www.localhost.com
>> - try http://127.0.0.1:8000 .
>
> Huh? Why should the name 'localhost' get a dot com added?
ask browser vendors...
--
By ZeD
--
https://mail.python.org/mailman/listinfo/python-list
Hi
Wondering if someone has this knowledge, and please forgive my maths
expressions.
If I want to estimate need results to achieve a goal at the end of a term
updated weekly with real results how would I structure this?
So as an example to illustrate my thought process(which could be wrong) The
Fillmore writes:
> ...and I'm loving it.
Hooray!
> and you guys rock too
I'm glad you have had good responses and help here.
If you feel motivated, please spread the love and write an article
somewhere (your weblog?) outside this community, praising what you've
found good about the language a
Am 15.04.16 um 02:36 schrieb Dennis Lee Bieber:
I should also have said that the square root of integer squares with
between 15 and 30 decimal digits will only be correct if the square
numbers themselves are exactly representable in 53 bits. So we can
expect failures for squares with 16 or more
Thanks for the advice and the code Michael.
That's definitely a clever way to do it.
The algorithm is going to be used for a web application, so the inputs
should be sanitized for security reasons. It will be trivial to make sure
the inputs are integers and are in the correct range. I will raise
On Thu, Apr 14, 2016 at 1:50 PM, Fillmore
wrote:
>
> ...and I'm loving it.
>
> Sooo much more elegant than Perl...and so much less going back to the
> manual to lookup the syntax of simple data structures and operations...
>
> REPL is so useful
>
> and you guys rock too
>
> cheers
> --
> https://
Hello list,
I am new to the list and was wondering if anyone is using Python for MCU
programing? In particular the AVR and ARM based controllers. Is Python a
plausible language for MCU programming or is C/C++ or Assembly the only way to
go? Thanks in advance for your insight.
Sincerely,
Ch
If you got an empty page with no errors (and no warnings trying to get
there...) it is likely that your server is working, and you are trying to
access it correctly, but the server is not serving anything. Most of the time,
if the server is not present, you will get a timeout error saying the b
I need to use SSML (Synthesized Speech Markup Language) to play an audio file
with the tag in my Alexa Skill (as per Amazon's instructions).
Problem is, I don't know how to use SSML with Python. I know I can use it with
Java but I want to build my skills with Python. I've looked all over, but
On Thursday, April 14, 2016 at 2:23:36 PM UTC-4, Andrew Farrell wrote:
> What happens when you type
>
> http://localhost:8000
>
> Into the address bar of your browser as this is running?
>
> On Thu, Apr 14, 2016 at 12:46 PM, wrote:
>
> > Hi,
> >
> > I am working on window 7 and Python 3.5 to s
...and I'm loving it.
Sooo much more elegant than Perl...and so much less going back to the
manual to lookup the syntax of simple data structures and operations...
REPL is so useful
and you guys rock too
cheers
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Apr 14, 2016, 7:37 PM justin walters
wrote:
> On Apr 14, 2016 9:41 AM, "Martin A. Brown" wrote:
> >
> >
> > Greetings Justin,
> >
> > >score = sum_of_votes/num_of_votes
> >
> > >votes = [(72, 4), (96, 3), (48, 2), (53, 1), (26, 4), (31, 3), (68, 2),
> (91, 1)]
> >
> > >Specifically,
On Fri, Apr 15, 2016 at 4:36 AM, Random832 wrote:
> Just a note, some browsers will try to resolve this as www.localhost.com
> - try http://127.0.0.1:8000 .
Huh? Why should the name 'localhost' get a dot com added?
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Apr 14, 2016, at 13:59, Cheryl Arko wrote:
> I am having issues installing the python software on my laptop. I have
> tried to install it several times and when I try to get into the program
> it
> keeps giving me options to modify, repair or uninstall. I have tried all
> of those options
Just a note, some browsers will try to resolve this as www.localhost.com
- try http://127.0.0.1:8000 .
On Thu, Apr 14, 2016, at 14:06, Andrew Farrell wrote:
> What happens when you type
>
> http://localhost:8000
>
> Into the address bar of your browser as this is running?
--
https://mail.python
I am having issues installing the python software on my laptop. I have
tried to install it several times and when I try to get into the program it
keeps giving me options to modify, repair or uninstall. I have tried all
of those options and even tried to uninstall and reinstall and still keep
get
What happens when you type
http://localhost:8000
Into the address bar of your browser as this is running?
On Thu, Apr 14, 2016 at 12:46 PM, wrote:
> Hi,
>
> I am working on window 7 and Python 3.5 to setup a localhost:8000 but it
> did not get through as shown below:
> > python -m http.server
wrh8...@gmail.com wrote:
> I am working on window 7 and Python 3.5 to setup a localhost:8000 but it
> did not get through as shown below:
>> python -m http.server
> Serving HTTP on 0.0.0.0 port 8000 ...
That looks correct so far. Now open a browser and open
http://localhost:8000/
--
https://m
Hi,
I am working on window 7 and Python 3.5 to setup a localhost:8000 but it did
not get through as shown below:
> python -m http.server
Serving HTTP on 0.0.0.0 port 8000 ...
But it did not show the results.
Can someone help me how to setup the localhost?
Thanks,
Wen-Ruey
--
https://mail.pyt
On Apr 14, 2016 9:41 AM, "Martin A. Brown" wrote:
>
>
> Greetings Justin,
>
> >score = sum_of_votes/num_of_votes
>
> >votes = [(72, 4), (96, 3), (48, 2), (53, 1), (26, 4), (31, 3), (68, 2),
(91, 1)]
>
> >Specifically, I'm wondering if this is a good algorithm for
> >weighted voting. Essentiall
Greetings Justin,
>score = sum_of_votes/num_of_votes
>votes = [(72, 4), (96, 3), (48, 2), (53, 1), (26, 4), (31, 3), (68, 2), (91,
>1)]
>Specifically, I'm wondering if this is a good algorithm for
>weighted voting. Essentially a vote is weighted by the number of
>votes it counts as. I re
On Thu, 14 Apr 2016 02:31:59 -0700, Sergio Spina wrote:
> I'm running a python3 program that requires html5lib but I receive the error
> No module named 'html5lib'.
>
> Here are two session of terminal:
>
> sam@pc ~ $ python
> Python 2.7.9 (default, Mar 1 2015, 12:57:24)
> [GCC 4.
On Fri, 15 Apr 2016 12:08 am, Antoon Pardon wrote:
>
> I have a unittest for my avltree module.
>
> Now I want this unittest to also run on a subclass of avltree.
> How can I organise this, so that I can largely reuse the
> original TestCase?
class Test_AVLTree(unittest.TestCase):
tree = a
2016-04-14 16:08 GMT+02:00 Antoon Pardon :
>
> I have a unittest for my avltree module.
>
> Now I want this unittest to also run on a subclass of avltree.
> How can I organise this, so that I can largely reuse the
> original TestCase?
>
> --
> Antoon Pardon
> --
> https://mail.python.org/mailman/li
I have a unittest for my avltree module.
Now I want this unittest to also run on a subclass of avltree.
How can I organise this, so that I can largely reuse the
original TestCase?
--
Antoon Pardon
--
https://mail.python.org/mailman/listinfo/python-list
On Thu, Apr 14, 2016 at 8:04 AM, Igor Korot wrote:
> Salma,
>
> On Thu, Apr 14, 2016 at 3:28 AM, salma ammar wrote:
>> Hi Igor,
>>
>> thank you very much for your response. In fact, I put the code in bold, that
>> is why it displays those symbols.
>> This is the code:
>>
>> import sys
>> sys.path
Rustom Mody wrote:
> I have a doubt:
> Is it incorrect to correct someone when they are incorrect?
No doubt about it. Everyone's a winner...
> [Sprinkle a "politically" on the above to taste ]
Ah, contradictio in adiecto. That shifts it to definitely maybe.
--
https://mail.python.org/mailman
On 14/04/2016 09:13, blindanag...@nowhere.net wrote:
> On 14/04/2016 08:59, blindanag...@nowhere.net wrote:
>> On 14/04/2016 07:52, ast wrote:
>
>> This means that the result will be correct provided it has 53 or less
>> bits - just short of 16 decimal digits (i.e for square numbers with less
>> t
Salma,
On Thu, Apr 14, 2016 at 3:28 AM, salma ammar wrote:
> Hi Igor,
>
> thank you very much for your response. In fact, I put the code in bold, that
> is why it displays those symbols.
> This is the code:
>
> import sys
> sys.path.append('C:/Users/user/src/sumo-0.22.0/tools')
> import sumolib
>
On Thu, 14 Apr 2016 07:31 pm, Sergio Spina wrote:
> I'm running a python3 program that requires html5lib but I receive the
> error No module named 'html5lib'.
>
> Here are two session of terminal:
>
> sam@pc ~ $ python
> Python 2.7.9 (default, Mar 1 2015, 12:57:24)
> [GCC 4.9.2] on
On Thu, 14 Apr 2016 05:53 pm, Ben Finney wrote:
> Okay, ‘termios.tcgetattr’ will let me preserve the attributes, and with
> Dan Sommers's suggestion of which attribute to use, I may have a shot at
> setting the terminal attributes.
>
> Then with a top-level exception handler I can clean up by re
Sergio Spina writes:
> I'm running a python3 program that requires html5lib but I receive the
> error No module named 'html5lib'.
Right, the Python 3 standard library does not have any module by that
name.
If it is to be available, it will need to be installed somehow.
What leads you to think
Thanks for the tips. Doit does look interesting.
Regarding template plugins with Nikola the plugins would be only for python
template alternatives such as mako.
Mainly i find the whitespace and readability of Jade/pug far more pythonic
than all tge brackets {% %} yes its a minor thing but so
I'm running a python3 program that requires html5lib but I receive the error No
module named 'html5lib'.
Here are two session of terminal:
sam@pc ~ $ python
Python 2.7.9 (default, Mar 1 2015, 12:57:24)
[GCC 4.9.2] on linux2
>>> import html5lib
>>> html5lib.__file__
'/us
Ben Finney :
> I had been hoping that I could simply wrap some stream in a simple
> “convert what they actually type so it's upper case” text codec,
> without fiddling at such a low operating-system specific level. This
> is rather more esoteric than I had hoped.
If you run your program in a Linu
durgadevi1 :
>>>>> bytes(c ^ k for c, k in zip(code, key)).decode()
>
> [...]
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0x85 in position 0:
> invalid start byte
>
> [...]
>
> However, I get no errors when using values 0 to 127 to XOR with CODE.
> But I get errors when using values
durgadevi1 wrote:
>
>>
>> This looks clearer:
>>
>>>>> code = b'a0\xed\xf0Z\x15]g^\xce3x'
>>>>> key = b')U\x81\x9c55*\x08,\xa2WY'
>>>>> bytes(c ^ k for c, k in zip(code, key)).decode()
>>'Hello world!'
>>
>>
>> Marko
>
> Hi, I have gotten another error message when working wi
>
> This looks clearer:
>
>>>> code = b'a0\xed\xf0Z\x15]g^\xce3x'
>>>> key = b')U\x81\x9c55*\x08,\xa2WY'
>>>> bytes(c ^ k for c, k in zip(code, key)).decode()
>'Hello world!'
>
>
> Marko
Hi, I have gotten another error message when working with the bytes(c ^ k for
c, k in zip
On Thu, Apr 14, 2016 at 6:37 PM, Ben Finney wrote:
> I had been hoping that I could simply wrap some stream in a simple
> “convert what they actually type so it's upper case” text codec, without
> fiddling at such a low operating-system specific level. This is rather
> more esoteric than I had hop
Ben Finney writes:
> Okay, ‘termios.tcgetattr’ will let me preserve the attributes, and
> with Dan Sommers's suggestion of which attribute to use, I may have a
> shot at setting the terminal attributes.
This works!
I can get the current attributes, and preserve them; then, later, force
uppercas
On Wednesday, April 13, 2016 at 9:18:37 PM UTC+8, durgadevi1 wrote:
> Hi all,
>
> I have a doubt regarding a problem.
>
> First, I am required to read a given file.
>
>
> The output from the file is given below:
>
> b'$//W?\xc0\x829\xa2\xb9\x13\x8c\xd5{\'
>
>
> I used the type() to identify
On 14/04/2016 08:59, blindanag...@nowhere.net wrote:
> On 14/04/2016 07:52, ast wrote:
> This means that the result will be correct provided it has 53 or less
> bits - just short of 16 decimal digits (i.e for square numbers with less
> than 32 digits).
>
> With an integer square root function (is
On 14/04/2016 07:52, ast wrote:
>
> a écrit dans le message de
> news:52f7516c-8601-4252-ab16-bc30c59c8...@googlegroups.com...
>> Hi,
>>
>> there may be a serious error in python's int() function:
>>
>> print int(float(2.8/0.1))
>>
>> yields
>>
>> 27
>>
>> instead of 28!!
>>
>> I am using Python
Dan Sommers writes:
> I don't know which OS you're using, but if I run "stty olcuc" in my
> Linux shell, then the input driver does that for me.
Gregory Ewing writes:
> You might be able to do something with the termios module
> to put the tty driver into the appropriate mode.
>
> If you do t
ast wrote:
>
> a écrit dans le message de
> news:52f7516c-8601-4252-ab16-bc30c59c8...@googlegroups.com...
>> Hi,
>>
>> there may be a serious error in python's int() function:
>>
>> print int(float(2.8/0.1))
>>
>> yields
>>
>> 27
>>
>> instead of 28!!
>>
>> I am using Python Python 2.7.6, GCC 4.
Am 14.04.16 um 08:52 schrieb ast:
Is it sure that the square root of a square number is always
an integer ?
Mathematically, yes.
I would not like to get a result as 345.
from math import sqrt
sqrt(16)
4.0
sqrt(16).is_integer()
True
for n in range(100):
... if not
Hi,
We are currently using Python 2.6.7 in our product.
We have received below vulnerabilities from field:
CVE-2014-7185
Integer overflow in bufferobject.c in Python before 2.7.8 allows
context-dependent attackers to
obtain sensitive information from process memory via a large size and offset i
Paulo da Silva wrote:
> Às 21:10 de 13-04-2016, Paulo da Silva escreveu:
>> Hi all.
> ...
>
>> [6 rows x 4 columns]
>>
>>> dft=pd.DataFrame([[1,2,3,4]],
>> index=[datetime.date(2016,1,12)],columns=df.columns)
>>
>>> dft
>> A B C D
>> 2016-01-12 1 2 3 4
>>
>> [1 rows x 4 colu
50 matches
Mail list logo