Hello,
I'm trying to make an HTTPS request with urllib.
OS: Gentoo
Python: 3.6.1
openssl: 1.0.2l
This is my test code:
= CODE BLOCK BEGIN =
import ssl
import urllib.request
from lxml import etree
PROXY = 'proxy.vpn.local:'
URL = "https://google.com";
proxy = urllib.request.ProxyHa
#I am using the code below to set preferences so I can use Selenium.
import os
from selenium import webdriver
fp = webdriver.FirefoxProfile()
fp.set_preference("browser.download.folderList",2)
fp.set_preference("browser.download.manager.showWhenStarting",False)
fp.set_preference("browser.downl
On 30/06/17 06:06, Benjamin Chaney wrote:
> What is the best way to import the synchronized queue class that is
> compatible with both Python2 and Python3. Right now I am using the
> following:
>
>> if sys.version_info < (3, 0):
>>import Queue as queue
>> else:
>>import queue
>
> This see
I find that list can not be key in dictionary
then find tuple can be as key
but when I add new tuple as key , got error in python 2.7
groupkey = {(0,0): []}
groupkey[tuple([0,3])] = groupkey[tuple([0,3])] + [[0,1]]
--
https://mail.python.org/mailman/listinfo/python-list
Ho Yeung Lee wrote:
> I find that list can not be key in dictionary
> then find tuple can be as key
>
> but when I add new tuple as key , got error in python 2.7
>
> groupkey = {(0,0): []}
> groupkey[tuple([0,3])] = groupkey[tuple([0,3])] + [[0,1]]
First try to understand that you get the same
Hello there, Ho Yeung Lee,
The use of groupkey[tuple([0,3])] to the right of the = is attempting to
access an entry in your dictionary that you have not already created. That
is why you are getting the error message.
You need to create an entry whose key is tuple([0,3]) before you can access
it. T
On 6/28/17, Xristos Xristoou wrote:
> i dont have 'operator.py' in my system only 'test_operator.py' and
> 'fix_operator.py'
>
> if :
> import sys
> print sys.modules['operator']
>
> i get this :
>
> that say me
>
> how to rename it?
> --
> https://mail.python.org/mailman/listinfo/python-l
gecko ?
--
https://mail.python.org/mailman/listinfo/python-list
good luck with that, mate !
--
https://mail.python.org/mailman/listinfo/python-list
will you ever post a single .py file which actually works ?
all the stuff you post is breaking.
--
https://mail.python.org/mailman/listinfo/python-list
C. Angelico and Mark Lawrence,
who the fuck does this twin-scum think they are ?
you better stfu right now.
these guys are responsible for turning the pythonWiki into a pile of
rubbish.
fuck off and never return !
[email protected]:
> On Tuesday, June 27, 2017 at 3:25:10 PM UTC+1,
On Friday, June 30, 2017 at 1:30:10 PM UTC+1, Rasputin wrote:
> good luck with that, mate !
Please don't change the subject line and also provide some context when you
reply, we're not yet mindreaders :)
Kindest regards.
--
Mark Lawrence.
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, June 30, 2017 at 1:45:00 PM UTC+1, Rasputin wrote:
> C. Angelico and Mark Lawrence,
>
> who the fuck does this twin-scum think they are ?
>
> you better stfu right now.
>
> these guys are responsible for turning the pythonWiki into a pile of
> rubbish.
pythonWiki???
>
> fuck off a
PyCon.DE 2017 - Early Bird Deadline July 2, 2017
There are only 2 days left to by a ticket at the earl bird rate for PyCon.DE.
https://de.pycon.org/#tickets
About PyCon.DE
--
The next PyCon.DE will be held from 25-27th October 2017 at
Call for Contributions
--
There are only 2 days left to submit a talk, tutorial, or poster for
EuroSciPy 2017 (https://www.euroscipy.org/2017/).
Don't miss the change to talk about what you do with Python in science.
Submit your proposal today: https://www.papercall.io/eurosci
Hello Irv, and welcome! Good to have a teacher of Python here!
On Fri, 30 Jun 2017 06:57 am, Irv Kalb wrote:
[...]
> Now I am looking at the change in the range function. I completely understand
> the differences between, and the reasons for, how range works differently in
> Python 2 vs Python
On Fri, 30 Jun 2017 09:17 am, Stefan Ram wrote:
b = a.__iter__()
Don't do that.
Dunder ("Double UNDERscore") methods like __iter__ should only be called by the
Python interpreter, not by the programmer. The right way to create an iterator
is to call the built-in function iter:
b = iter(a)
Hi,
We've just released Wing 6.0.6 which further improves remote
development, adds preferences to avoid problems seen when debugging odoo
and some I/O intensive threaded code, solves some auto-completion and
auto-editing problems, fixes a few VI mode bugs, remembers editor zoom
level between
Just don't read it. Calm down.
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, Jul 1, 2017 at 2:17 AM, Stefan Ram wrote:
> However, to my defense, I must say that in this post my intend
> was to demonstrate what is happening /behind the curtains/ when
> the »for« loop is running, so in this special case, it might be
> appropriate to use a function that otherw
> On Jun 29, 2017, at 2:21 PM, Chris Angelico wrote:
>
> On Fri, Jun 30, 2017 at 6:57 AM, Irv Kalb wrote:
>> I am wondering if other teachers have run into this. Is this a real
>> problem? If so, is there any other way of explaining the concept without
>> getting into the underlying details
Hello,
First off, I'm not a python guybut I use a set of python scripts
created a few years ago by somebody else to transfer source between the SVN
repo on my PC and an IBM i (aka AS/400) system.
Recently, multiple developers, including me, have started having
intermittent issues whereby the
dude, you're totally welcome.
just make sure that you vote the current wiki admins out of office.
THEY'RE FIRED !
--
https://mail.python.org/mailman/listinfo/python-list
Charles , please look up the main python wiki here:
https://practical-scheme.net/wiliki/wiliki.cgi?python
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, Jul 1, 2017 at 6:03 AM, The Donald wrote:
> Charles , please look up the main python wiki here:
>
> https://REDACTED/wiliki/wiliki.cgi?python
This person has been spamming this list and others, dodging bans, and
generally behaving in a way that proves he is no member of the Python
commun
On 6/30/2017 1:07 PM, Irv Kalb wrote:
Thanks to everyone who responded to my question about teaching the range
function.
range is a class, not a function in the strict sense.
Classes represent concepts. Instances of classes represent instances of
the concept. Range represent the concept 'a
Case Solution and Analysis of CEO Activism (A) by Michael W. Toffel, Aaron
Chatterji, Julia Kelley, send email to casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-617-001
Get Case Study Solution and Analysis of CEO Activism (A) in a FAIR PRICE!!
Our e-mail address is CASESOLUTIONSCENTRE
Case Solution and Analysis of Floodgate: On the Hunt for Thunder Lizards by
Rory McDonald, Alix Burke, Emma Franking, Nicole Tempest, send email to
casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-617-044
Get Case Solution and Analysis of Floodgate: On the Hunt for Thunder Lizards in
a
Please help me with Python. I many,MANY TIMES tried to install it, but always
had problemThese installers were glistchy. What do I mean? I mean that when
I installed Python I almost always got wrong packed folders. For example I open
python's folder click on python.exe aand.I just ge
Case Solution and Analysis of From Start-Up to Grown-Up Nation: The Future of
the Israeli Innovation Ecosystem (Abridged) by Elie Ofek, Margot Eiran, send
email to casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-517-103
Get Case Study Solution and Analysis of From Start-Up to Grown-Up N
Case Solution and Analysis of Delivering the Goods at Shippo by Jeffrey J.
Bussgang, Jeffrey Rayport, Olivia Hull, send email to
casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-817-065
Get Case Study Solution and Analysis of Delivering the Goods at Shippo in a
FAIR PRICE!!
Our e-mai
Case Solution and Analysis of Carmichael Roberts: To Create a Private Equity
Firm? by Steven Rogers, Kenneth Cooper, send email to
casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-317-079
Get Case Study Solution and Analysis of Carmichael Roberts: To Create a Private
Equity Firm? in a F
On Fri, Jun 30, 2017 at 8:30 PM, Debiller 777 wrote:
> I just get error that there is no module name 'encodings'
First make sure that neither PYTHONHOME nor PYTHONPATH are defined in
your environment. To check this type `set python` in a command prompt.
Neither variable should be listed.
--
http
On 2017-07-01 03:12, Stefan Ram wrote:
Terry Reedy writes:
range is a class, not a function in the strict sense.
»the built-in function range() returns an iterator of integers«
The Python Language Reference, Release 3.6.0, 8.3 The for statement
Python 3.6.1 (v3.6.1:69c0db5, Mar
On Sat, Jul 1, 2017 at 1:25 PM, MRAB wrote:
> On 2017-07-01 03:12, Stefan Ram wrote:
>>
>> Terry Reedy writes:
>>>
>>> range is a class, not a function in the strict sense.
>>
>>
>>»the built-in function range() returns an iterator of integers«
>>
>> The Python Language Reference, Re
Am 30.06.17 um 04:33 schrieb Rick Johnson:
And to further drive home the point, you can manually insert
a list literal to prove this:
>>> range(10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> for value in [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]:
... print(value)
...
0
1
No
Charles Wilt writes:
> ...
> First off, I'm not a python guybut I use a set of python scripts
> created a few years ago by somebody else to transfer source between the SVN
> repo on my PC and an IBM i (aka AS/400) system.
>
> Recently, multiple developers, including me, have started having
> i
37 matches
Mail list logo