follow this style of coding so can't help.)
Chris is within his rights to refuse to run untrusted code downloaded over
the internet.
It's not even the security aspect: the code is fairly short, and doesn't
appear to be obfuscated or do anything nasty.
But its a matter of fairness:
except:
>>> display.set("Type an actual equation please!")
>>
>>
>> Without any specific questions, you're not going to get anything more
>> than a basic eyeballing of the code.
>
>
> Try running the program.
>
> (I did that b
to get anything more
than a basic eyeballing of the code.
Try running the program.
(I did that but I can't follow this style of coding so can't help.)
--
bartc
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, May 20, 2017 at 11:40 AM, wrote:
> def calc(self, display):
> try:
> display.set(eval(display.get()))
> except:
> display.set("Type an actual equation please!")
Without any specific questions, you're not going to get anything more
than a basic eyeballing of the co
On 2017-05-20 02:42, gars...@gmail.com wrote:
m using Python 3.4.2
This is my code:
from tkinter import*
def iCalc(source, side):
storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue")
storeObj.pack(side=side, expand=YES, fill=BOTH)
return storeObj
def button (source,
m using Python 3.4.2
This is my code:
from tkinter import*
def iCalc(source, side):
storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue")
storeObj.pack(side=side, expand=YES, fill=BOTH)
return storeObj
def button (source, side, text, command=None):
storeObj= B
Im using Python 3.4.2
This is my code:
from tkinter import*
def iCalc(source, side):
storeObj= Frame(source, borderwidth= 1, bd= 4, bg="powder blue")
storeObj.pack(side=side, expand=YES, fill=BOTH)
return storeObj
def button (source, side, text, command=None):
storeObj= Button(s
On Sun, 14 May 2017 15:30:52 +0200, Pavol Lisy wrote:
> On 5/14/17, Charles T. Smith wrote:
>> I'm stumped by this:
...
> Did you create getopt.py in your working directory? If so then try to
> rename it.
>
> PL.
That was it! Not in my working directory, but in the directory where the test
p
On 5/14/17, Pavol Lisy wrote:
> On 5/14/17, Charles T. Smith wrote:
>> I'm stumped by this:
>
>> $ PYTHONPATH= python except
>> Traceback (most recent call last):
>> File "except", line 7, in
>> except getopt.error, msg:
>> AttributeError: 'module' object has no attribute 'error'
>>
>>
>>
On 5/14/17, Charles T. Smith wrote:
> I'm stumped by this:
> $ PYTHONPATH= python except
> Traceback (most recent call last):
> File "except", line 7, in
> except getopt.error, msg:
> AttributeError: 'module' object has no attribute 'error'
>
>
> The program is:
>
> $ cat except
> #!/usr
> $ PYTHONPATH= python except
> Traceback (most recent call last):
> File "except", line 7, in
> except getopt.error, msg:
> AttributeError: 'module' object has no attribute 'error'
>
>
> The program is:
>
> $ cat except
> #!/usr/bin/env python
>
> import getopt
>
> try:
> opts, a
I'm stumped by this:
$ PYTHONPATH= python except
Traceback (most recent call last):
File "except", line 7, in
except getopt.error, msg:
AttributeError: 'module' object has no attribute 'error'
The program is:
$ cat except
#!/usr/bin/env python
import getopt
try:
opts, args = get
>
>
>> The first section does not do what I think you want: a list with 7
> options. It makes a list with one option, then overwrites it with a new
> list with one option, and so on. You want something like:
> menu_list = [
> "O - open account"
> "L - load details"
> "D - display det
>
> menu_list = ["O -open account"]
> menu_list =["l - load details"]
> menu_list =["D- display details"]
> menu_list =["A - Make deposit"]
> menu_list =["W- Make withdraw",]
> menu_list =["S - save"]
> menu_list =["Q - quit"]
>
> command = input("command:")
> if command.upper() == "O":
> open_()
>
count of the BankAccount class
>
> Please i need help on this i am a beginer into python programming.
>
>
> Also below is a test case given for this project
>
>
> import unittest
> class AccountBalanceTestCases(unittest.TestCase):
> def setUp(
To murdock: What Rhodri wrote is correct. I sense that it might be helpful
for you if I were to tell you that there is a difference between a function
and a function call. If your function were named
MyFunction
then
print (MyFunction)
would print a user-friendly-ish message about the function.
On 02/05/17 03:57, murdock wrote:
I am having a problem that seems to persist. I have written a program that
makes a mathematical calculation and uses a uses library that I have written.
It had been working but somehow in playing around with it, it stoppedgo
figure! But here is the thing,
On Tue, 2 May 2017 12:57 pm, murdock wrote:
> I am having a problem that seems to persist. I have written a program that
> makes a mathematical calculation and uses a uses library that I have
> written. It had been working but somehow in playing around with it, it
> stoppedgo figure! But here
murdock wrote:
BW = float (input ("Enter the Receiver Bandwidth in Hz"))
Signal_to_Noise = float (input ("Enter the Signal to Noise in dB"))
RX_Sensitivity = float (input ("Enter the RX_Sensitivity in dBm"))
#
print ("The Receiver Noise Figure = ",Hamath._Noise_Figure," dBm" )
I
On 05/01/2017 08:57 PM, murdock wrote:
> I am having a problem that seems to persist. I have written a program that
> makes a mathematical calculation and uses a uses library that I have written.
> It had been working but somehow in playing around with it, it stoppedgo
> figure! But here is
" dBm" )
if __name__ == '__main__':
main()
I am told that the error message is NOT an PyScripter error but in fact a
Python message. But I can not find it anywhere in any of the documentation
hence I have not been able to fix my problem.
Any help would be appreciated.
M
--
https://mail.python.org/mailman/listinfo/python-list
On 4/17/2017 5:31 AM, Steve D'Aprano wrote:
If you're not using the help() command in the interactive interpreter,
you're missing out on a lot.
I recently discovered that help() is even cleverer than I knew. I knew it
picked up on objects' doc strings, but what happens i
If you're not using the help() command in the interactive interpreter,
you're missing out on a lot.
I recently discovered that help() is even cleverer than I knew. I knew it
picked up on objects' doc strings, but what happens if the object doesn't
have a doc string?
Let
On Friday, April 14, 2017 at 3:27:29 PM UTC+1, Kasper wrote:
> every time i run the program i get this messeage:
>
> Traceback (most recent call last):
> File "smartmirror.py", line 159, in get_weather
> temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])),
> degree_sign
On 4/14/2017 10:27 AM, Kasper wrote:
every time i run the program i get this messeage:
Traceback (most recent call last):
File "smartmirror.py", line 159, in get_weather
temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])),
degree_sign)
KeyError: 'currently'
Error: 'cu
Kasper wrote:
> every time i run the program i get this messeage:
>
> Traceback (most recent call last):
> File "smartmirror.py", line 159, in get_weather
> temprature2 = "%S%S" % (str(int(weather_obj['currently']
['temperature'])),
> degree_sign)
> KeyError: 'currently'
> Error: 'currently
our lap and expect us to debug it. If you can't
spend the time simplifying the problem and removing all the irrelevant
details, how can you expect us to do it for you?
If you want help, make it easy for people to help you. Cut your code down to
the simplest, shortest amount of code that demonstr
every time i run the program i get this messeage:
Traceback (most recent call last):
File "smartmirror.py", line 159, in get_weather
temprature2 = "%S%S" % (str(int(weather_obj['currently']['temperature'])),
degree_sign)
KeyError: 'currently'
Error: 'currently'. Cannot get weather.
How do i
There are a number of ways to reorganise the data for the exclusive use of your
script without affecting the original data. Is there a reason you can't or not
allowed to do this?
Regardless, here's some code that might make things a little easier. It
operates on each balancer on the fly, redu
;>
>>>
>>>
>>>> On Apr 8, 2017, at 5:55 PM, Kenton Brede wrote:
>>>>
>>>> This is an example of the data I'm working with. The key/value pairs
>> may
>>>> come in any order. There are some keys like the 'Resource_
rd', u'Key': 'Name'}, {u'Value':
> 'kvmu',
> >> u'Key': 'Billing'},
> >> {u'Value': '20179204-181622543367489', u'Key':
> >> 'Resource_group_id
lue of 'Name' but that
> only works if the 'Resource_group_id' key is the first key in the list and
> the 'Name' key is in the second slot. If each list contained the same
> keys, I could probably sort the keys and use [num] to pull back values,
> but th
'Value': '20179204-181622543367489', u'Key':
>> 'Resource_group_id'}],
>> [{u'Value': '20172857-152037106154311', u'Key':
>> 'Resource_group_id'},
>> {u'Value': 'shibbo
an do the following, to print the value of 'Name' but that
> only works if the 'Resource_group_id' key is the first key in the list and
> the 'Name' key is in the second slot. If each list contained the same
> keys, I could probably sort the keys and us
e 'Name' key is in the second slot. If each list contained the same
keys, I could probably sort the keys and use [num] to pull back values, but
they don't.
for a in alist:
if a[0]['Key'] == 'Resource_group_id' and a[0]['Value'] ==
'20172857-152037106154311':
print a[1]['Value']
There has to be a way to do this but I've been pounding away at this for
hours. Any help appreciated. I'm new to Python and not a programmer, so
go easy on me. :)
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 03 Apr 2017 14:29:56 -0500, Wildman wrote:
> Python 3.4.2
> Tkinter 8.6
> GCC 4.9.1 on Linux
>
> I am working on a gui program using Tkinter. The program will
> have a feature to restart as root. I am testing different gui
> front-ends from a terminal to raise privileges and I want to
>
Python 3.4.2
Tkinter 8.6
GCC 4.9.1 on Linux
I am working on a gui program using Tkinter. The program will
have a feature to restart as root. I am testing different gui
front-ends from a terminal to raise privileges and I want to
be able to use as many as possible for obvious reasons. Gksu,
kdesu
lly
complicated and changing with lot’s of different control and spacing
characters, in addition to some odd (potentially non-unicode characters).
Here’s the schema: http://json-schema.org/fraft-04/schema#
<http://json-schema.org/fraft-04/schema#>
I’m not a programmer, but I am lea
On 31Mar2017 16:12, 2019.cavanau...@fpsedu.org <2019.cavanau...@fpsedu.org>
wrote:
Hello I've been coding for about 1 or 2 months and i have encountered a problem
with a 'while' statement. It keeps looping even when the statement is false,
here is the code. The code is for a game that I'm maki
On Fri, Mar 31, 2017 at 4:16 PM <2019.cavanau...@fpsedu.org> wrote:
> while answer8 != ("1") or answer8 != ("2"):
This statement is always true. Think about it.
>
>
--
https://mail.python.org/mailman/listinfo/python-list
On 3/31/2017 7:12 PM, 2019.cavanau...@fpsedu.org wrote:
Hello I've been coding for about 1 or 2 months
If at all possible, start with 3.6, not 3.1.
and i have encountered a problem with a 'while' statement.
You should assume that your code is buggy. That is true even of experts.
> It keep
Hello I've been coding for about 1 or 2 months and i have encountered a problem
with a 'while' statement. It keeps looping even when the statement is false,
here is the code. The code is for a game that I'm making that resembles the
Oregon Trial.
-Thanks for your help!
Hello house,
I kindly need your input here >>
http://stackoverflow.com/questions/42655870/matplotlib-convert-scatter-plot-to-contour-and-heatmap-plots
--
https://mail.python.org/mailman/listinfo/python-list
WOW, many thanks guys, Peter, and MRAB, for your time, help, and explanations!
Peter, yes, you're right, when things get too complicated I should definitely
try to split things up, and thus split the difficulties (ah, Descartes... ^^),
thanks for the advice!
MRAB, your code is now wo
two
digits of 101, so at least this is fine! : )
Any other idea to improve that code? I'm starting to get desperate...
Thanks again for your help anyways, I really appreciate it! ; )
Ah, OK. I see what the problem is. (I should've marked it as "untested".
:-()
It match
michael.gauthier@gmail.com wrote:
> Hi MRAB,
>
> Thanks for taking time to look at my problem!
>
> I tried your solution:
>
> r"\d{2}\s?(?=(?:years old\s?|yo\s?|yr old\s?|y o\s?|yrs old\s?|year
> old\s?)(?!son|daughter|kid|child))"
>
> but unfortunately it does seem not work. Also, I trie
idea to improve that code? I'm starting to get desperate...
Thanks again for your help anyways, I really appreciate it! ; )
--
https://mail.python.org/mailman/listinfo/python-list
d in the string "I have a 12 yo
son", and returns 12 as a matched age, which I don't want it to. I'm guessing this
has something to do with brackets or delimiters at some point in the program, but I spent
a few days on it, and I could not find anything helpful around here or on oth
12 as a matched age, which I don't want it to. I'm
guessing this has something to do with brackets or delimiters at some point in
the program, but I spent a few days on it, and I could not find anything
helpful around here or on other forums, so any help would be appreciated.
Thus, the
7;t specify the path
>> to the ImageMagick binary in file conf.py, or.that the path you specified
>> is incorrect
>> > >
>> > > So... is ImageMagick installed?
>> > >
>> > > ChrisA
>> >
>> > Okay... Yes it's instal
you didn't specify the path
> to the ImageMagick binary in file conf.py, or.that the path you specified
> is incorrect
> > >
> > > So... is ImageMagick installed?
> > >
> > > ChrisA
> >
> > Okay... Yes it's installed. This probl
sA
>
> Okay... Yes it's installed. This problem has been solved haha. Thank you for
> replying.
Hi Tony,
same issue facing by me. kindly help me
please list the solution
--
https://mail.python.org/mailman/listinfo/python-list
Thanks! This helped me!
--
https://mail.python.org/mailman/listinfo/python-list
Kasper wrote:
> How can i make the score stop blinking
The following part
> #draws the score on the screen
> mypen.undo()
> mypen.penup()
> mypen.hideturtle()
> mypen.setposition(-290, 310)
> scorestring1 = (name1 + ": %s" + " points ") %score1
> scorestring2 = (nam
Hi!
How can i make the score stop blinking and how can i make a high score table,
in this game made with python? (this game is made on a Macbook)
(there are some files in the game that i don't haven't copied into this file!
like pyth.GIF)
both")
This is too minimal. If I copy, paste, and run the above, it will fail.
I will not guess what other code (which you should minimize) you
actually had to make this run. See https://stackoverflow.com/help/mcve,
which is *great* advice that most SO unfortunately ignore.
I have trie
On Tue, 21 Feb 2017 18:22:31 +, MRAB wrote:
> On 2017-02-21 18:02, Wildman via Python-list wrote:
>> Python 3.4.2
>> Linux platform
>>
>>
>> I am working on a program that has tabs created with ttk.Notebook.
>> The code for creating the tabs is working but there is one thing I
>> have not been
On Tue, 21 Feb 2017 12:02:50 -0600, Wildman wrote:
> Python 3.4.2
> Linux platform
>
>
> I am working on a program that has tabs created with ttk.Notebook.
> The code for creating the tabs is working but there is one thing I
> have not been able to figure out. As is, the tabs are located up
> a
On 2017-02-21 18:02, Wildman via Python-list wrote:
Python 3.4.2
Linux platform
I am working on a program that has tabs created with ttk.Notebook.
The code for creating the tabs is working but there is one thing I
have not been able to figure out. As is, the tabs are located up
against the low
Python 3.4.2
Linux platform
I am working on a program that has tabs created with ttk.Notebook.
The code for creating the tabs is working but there is one thing I
have not been able to figure out. As is, the tabs are located up
against the lower edge of the caption bar. I would like to have
them
>
> I like to know where there is a PyCon or a Django Conf or a PyData Event.
>
> In fact, I think we can help the Python Community if we submit all the
> events in https://python.org/events.
>
> This page has been created by the PSF and is maintained by some volunteers.
>
Thank you, with your help, we have added events on the t-shirt.
Now, Could you just add them on python.org/events ?
Have a nice day,
Stephane
On 9 Jan 2017, at 10:54, Stephane Wirtel via Python-list wrote:
Dear Community,
For the PythonFOSDEM [1] on 4th and 5th February in Belgium, I would
On Sunday, February 5, 2017 at 11:27:19 PM UTC, pha...@u.rochester.edu wrote:
> Hi everyone. I'm new to python and have hit a bit of a wall with an
> assignment I'm working on. I created a number of classes and instantiated
> them, now I need to create a list out of them. I am looking for somethi
Hi everyone. I'm new to python and have hit a bit of a wall with an assignment
I'm working on. I created a number of classes and instantiated them, now I need
to create a list out of them. I am looking for something more elegant than
appending each object to the list as I instantiate it. I tried
On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico wrote:
> On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote:
> > This error can be due to the fact that ImageMagick is not installed on your
> > computer, or (for Windows users) that you didn't specify the path to the
> > ImageMag
ed. Just moving
the cursor up and down would show you what block everything is in. I
don't know if any editors help like this -- that's part of my reason to
ask.
@Ben B.: Have you had a look at Notepad++? When it detects that you're editing
a Python file, a ruler on the left-ha
On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote:
> This error can be due to the fact that ImageMagick is not installed on your
> computer, or (for Windows users) that you didn't specify the path to the
> ImageMagick binary in file conf.py, or.that the path you specified is
> incorrect
So... i
I have to use moviepy in one of my project. So I downloaded it, and tried the
example code on the website. It gives me this error. Anyone can give me some
help? Thank you very much!
it gives this error:
[MoviePy] This command returned an error !Traceback (most recent call last):
File "t
On Wed, 25 Jan 2017 12:31:11 +1100, Steve D'Aprano wrote:
> But now I type something which cannot possibly be indented there:
>
> def func(a, b):
> if condition:
> spam()
> elif something: |
>
> and hit ENTER again. There's nothing ambiguous about this, and th
On Wed, Jan 25, 2017 at 12:31 PM, Steve D'Aprano
wrote:
>> With my JavaScript students, the greatest help is probably a keystroke
>> beautifier. You edit your code with sloppy indentation, and then bam,
>> it reindents for you.
>
> Really? I wouldn't want that
t,
I'd *only* colour the currently edited block, by marking the margins with a
subtle colour. You know how many GUI editors highlight the current line
with a faint colour? Something similar. You could make the colour different
for each block, I guess, if you wanted to be fancy.
> With my JavaSc
On Wed, Jan 25, 2017 at 6:31 AM, Ben Bacarisse wrote:
> I'm not talking about detecting errors -- that's for the programmer --
> but the editor can help the programmer to be sure they wrote what they
> meant by doing things like matching brackets and auto-indenting code in
&g
sage: Can not connect to the
Service geckodriver
Can someonr help me with getting rid of the above error
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, January 9, 2017 at 12:50:11 PM UTC-8, Joaquin Alzola wrote:
> >> elements. For example, if we have a list_a=["a","b","c","d"] and
> >> list_b=["a","b"] I want to obtain a new list_c containing elements that
> >> match between these lists (a and b here),
>
> >Perhaps this might work:
>
In fact, I have noted that we know some big events in the Python community
> (for example: PyCon US and EuroPython) but do you know the others events,
> maybe the local event, PyCon IE, PyCon UK or PyCon IT.
>
> I like to know where there is a PyCon or a Django Conf or a PyData Event.
>
&g
>> elements. For example, if we have a list_a=["a","b","c","d"] and
>> list_b=["a","b"] I want to obtain a new list_c containing elements that
>> match between these lists (a and b here),
>Perhaps this might work:
list(set(list_a).intersection(set(list_b)))
>['a', 'b']
>>> list_a={"a","b","
On Mon, Jan 9, 2017 at 1:02 PM, Gilmeh Serda
wrote:
> On Mon, 09 Jan 2017 05:08:51 -0800, José Manuel Suárez Sierra wrote:
>
>> elements. For example, if we have a list_a=["a","b","c","d"] and
>> list_b=["a","b"] I want to obtain a new list_c containing elements that
>> match between these lists (
José Manuel Suárez Sierra wrote:
> This is the traceback:
> line 18, in
> for transf2[j] in transf2:
> IndexError: list assignment index out of range
>
> If I have initialized j=0 (such as i) why does it not work?
A for loop
for x in y:
...
sequentually assigns every value in y to x. So wi
El lunes, 9 de enero de 2017, 14:09:09 (UTC+1), José Manuel Suárez Sierra
escribió:
> Hello, I am trying to make a code wich compares between 2 or several
> sequences (lists). It compares every element in a list with another list
> elements. For example, if we have a list_a=["a","b","c","d"] an
El lunes, 9 de enero de 2017, 14:09:09 (UTC+1), José Manuel Suárez Sierra
escribió:
> Hello, I am trying to make a code wich compares between 2 or several
> sequences (lists). It compares every element in a list with another list
> elements. For example, if we have a list_a=["a","b","c","d"] an
thing that should only occur e. g. for the body of a while-loop, not at
random places like the
j = j+1
that follows the ordinary statement
c1.append(a[i])
Note that once you have fixed your code in this place you will run into
another error. Read the traceback carefully and try to figure out what
José Manuel Suárez Sierra wrote, on January 09, 2017 5:09 AM
>
> Hello, I am trying to make a code wich compares between 2 or
> several sequences (lists). It compares every element in a
> list with another list elements. For example, if we have a
> list_a=["a","b","c","d"] and list_b=["a","b"]
Hello, I am trying to make a code wich compares between 2 or several sequences
(lists). It compares every element in a list with another list elements. For
example, if we have a list_a=["a","b","c","d"] and list_b=["a","b"] I want to
obtain a new list_c containing elements that match between the
e big events in the Python
community (for example: PyCon US and EuroPython) but do you know the
others events, maybe the local event, PyCon IE, PyCon UK or PyCon IT.
I like to know where there is a PyCon or a Django Conf or a PyData Event.
In fact, I think we can help the Python Community
Peter Otten wrote:
> raulmaqueda6...@gmail.com wrote:
>
>> I do not know how to do this exercise, does anyone help me?
>>
>> Define the matrix_range (m) function that returns the range of an array
>> calculated by the Gaussian method.
>>
>> It shoul
Peter Pearson writes:
> I don't know any definition of "matrix range" that fits this description.
> Is it possible that someone means "rank"?
Yes, the rank is the dimension of the range unless I'm mistaken. I
think rank is what was meant.
To find the rank with Gaussian elimination, I guess you
On Sat, 24 Dec 2016 02:27:05 -0800 (PST), raulmaqueda6...@gmail.com wrote:
> I do not know how to do this exercise, does anyone help me?
>
> Define the matrix_range (m) function that returns the range of an
> array calculated by the Gaussian method.
>
> It should work with any
raulmaqueda6...@gmail.com wrote:
> I do not know how to do this exercise, does anyone help me?
If you have a specific, precise question, that's one thing.
Otherwise:
http://lmgtfy.com/?q=Academic+Dishonesty
Phil
--
AH#61 Wolf#14 BS#89 bus#1 CCB#1 SENS KOTC#4
h...@philb.
raulmaqueda6...@gmail.com wrote:
> I do not know how to do this exercise, does anyone help me?
>
> Define the matrix_range (m) function that returns the range of an array
> calculated by the Gaussian method.
>
> It should work with any number of rows and columns. No punctuati
El sábado, 24 de diciembre de 2016, 11:27:16 (UTC+1), raulmaq...@gmail.com
escribió:
> I do not know how to do this exercise, does anyone help me?
>
> Define the matrix_range (m) function that returns the range of an array
> calculated by the Gaussian method.
>
> It sh
I do not know how to do this exercise, does anyone help me?
Define the matrix_range (m) function that returns the range of an array
calculated by the Gaussian method.
It should work with any number of rows and columns. No punctuation will be
given to deliveries that do not respect this
Umar Yusuf wrote:
> Hi all,
> I need your help with any of these questions?
>
> 1-
> http://stackoverflow.com/questions/41083699/python-create-dynamic-loop-based-on-variables-and-csv
You should really make a serious attempt to explain the problem in plain
english. Throwing a p
Hi all,
I need your help with any of these questions?
1-
http://stackoverflow.com/questions/41083699/python-create-dynamic-loop-based-on-variables-and-csv
2-
http://stackoverflow.com/questions/41081800/python-pandas-how-to-use-dataframe-cell-to-search-another-dataframe-column-and
Thanks in
On Fri, 02 Dec 2016 19:39:39 +, Grant Edwards wrote:
> On 2016-12-02, Wildman via Python-list wrote:
>> On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote:
>>
>>> I don't know what the "addr" array contains, but if addr is a byte
>>> string, then the "int()" call is not needed, in Python
On 2016-12-02, Wildman via Python-list wrote:
> On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote:
>
>> I don't know what the "addr" array contains, but if addr is a byte
>> string, then the "int()" call is not needed, in Pythong 3, a byte is
>> already an integer:
>>
>> def format_ip(a
On Fri, 02 Dec 2016 15:11:18 +, Grant Edwards wrote:
> I don't know what the "addr" array contains, but if addr is a byte
> string, then the "int()" call is not needed, in Pythong 3, a byte is
> already an integer:
>
> def format_ip(a):
>return '.'.join(str(b) for b in a)
>
> add
On 2016-12-02, Wildman via Python-list wrote:
> On Wed, 30 Nov 2016 14:39:02 +0200, Anssi Saari wrote:
>
>> There'll be a couple more issues with the printing but they should be
>> easy enough.
>
> I finally figured it out, I think. I'm not sure if my changes are
> what you had in mind but it is
On Wed, 30 Nov 2016 14:39:02 +0200, Anssi Saari wrote:
> There'll be a couple more issues with the printing but they should be
> easy enough.
I finally figured it out, I think. I'm not sure if my changes are
what you had in mind but it is working. Below is the updated code.
Thank you for not gi
On Wed, 30 Nov 2016 07:54:45 -0500, Dennis Lee Bieber wrote:
> On Tue, 29 Nov 2016 22:01:51 -0600, Wildman via Python-list
> declaimed the following:
>
>>I really appreciate your reply. Your suggestion fixed that
>>problem, however, a new error appeared. I am doing some
>>research to try to fi
In handa...@gmail.com
writes:
> import requests
> import json
> names={'katty','Shean','Rajat'};
> for name in names:
> request_string="http://api.genderize.io/?"+name
> r=requests.get(request_string)
> result=json.loads(r.content)
You're using http: instead of https:, and you're us
901 - 1000 of 11835 matches
Mail list logo