Re: Fwd: ftplib sending data out of order

2017-06-30 Thread dieter
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

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Christian Gollwitzer
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

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Chris Angelico
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

Re: Teaching the "range" function in Python 3

2017-06-30 Thread MRAB
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

Re: Python installer

2017-06-30 Thread eryk sun
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

Case Solution: Carmichael Roberts To Create a Private Equity Firm? by Steven Rogers, Kenneth Cooper

2017-06-30 Thread Case Solution & Analysis
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

Case Solution: Delivering the Goods at Shippo by Jeffrey J. Bussgang, Jeffrey Rayport, Olivia Hull

2017-06-30 Thread Case Solution & Analysis
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: From Start-Up to Grown-Up Nation The Future of the Israeli Innovation Ecosystem (Abridged) by Elie Ofek, Margot Eiran

2017-06-30 Thread Case Solution & Analysis
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

Python installer

2017-06-30 Thread Debiller 777
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: Floodgate On the Hunt for Thunder Lizards by Rory McDonald, Alix Burke, Emma Franking, Nicole Tempest

2017-06-30 Thread Case Solution & Analysis
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

Case Solution: CEO Activism (A) by Michael W. Toffel, Aaron Chatterji, Julia Kelley

2017-06-30 Thread Case Solution & Analysis
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

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Terry Reedy
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

Re: Fwd: ftplib sending data out of order

2017-06-30 Thread Chris Angelico
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

Re: Fwd: ftplib sending data out of order

2017-06-30 Thread The Donald
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

Re: Fwd: ftplib sending data out of order

2017-06-30 Thread The Donald
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

Fwd: ftplib sending data out of order

2017-06-30 Thread Charles Wilt
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

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Irv Kalb
> 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

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Chris Angelico
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

Re: why are these 2 fucking clowns in here ?

2017-06-30 Thread Andre Müller
Just don't read it. Calm down. -- https://mail.python.org/mailman/listinfo/python-list

ANN: Wing Python IDE 6.0.6 released

2017-06-30 Thread Wingware
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

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Steve D'Aprano
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)

Re: Teaching the "range" function in Python 3

2017-06-30 Thread Steve D'Aprano
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

EuroSciPy 2017 - Call for Contributions extended to July 2

2017-06-30 Thread Mike Müller
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

PyCon.DE 2017 - Early Bird Deadline July 2, 2017

2017-06-30 Thread Mike Müller
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

Re: urllib

2017-06-30 Thread breamoreboy
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

Re: why are these 2 fucking clowns in here ?

2017-06-30 Thread breamoreboy
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

why are these 2 fucking clowns in here ?

2017-06-30 Thread Rasputin
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 ! breamore...@gmail.com: > On Tuesday, June 27, 2017 at 3:25:10 PM UTC+1,

Re: argparse epilog call function?

2017-06-30 Thread Rasputin
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

urllib

2017-06-30 Thread Rasputin
good luck with that, mate ! -- https://mail.python.org/mailman/listinfo/python-list

Re: geckodriver not working while using Selenium

2017-06-30 Thread aa
gecko ? -- https://mail.python.org/mailman/listinfo/python-list

Re: DJANGO cannot import name _compare_digest

2017-06-30 Thread Pavol Lisy
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

Re: how to add new tuple as key in dictionary?

2017-06-30 Thread Stephen Tucker
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

Re: how to add new tuple as key in dictionary?

2017-06-30 Thread Peter Otten
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

how to add new tuple as key in dictionary?

2017-06-30 Thread Ho Yeung Lee
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

Re: import queue in Python 2 and Python 3

2017-06-30 Thread Thomas Jollans
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

geckodriver not working while using Selenium

2017-06-30 Thread devilsgrin94
#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

urllib.request with proxy and HTTPS

2017-06-30 Thread Pavel Volkov
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