Re: [Tutor] Questions

2019-04-08 Thread George Fischhof
Diana Katz ezt írta (időpont: 2019. ápr. 7., V, 10:01): > 1) Can you use python from excel? Or just export to excel? > 2) I am trying to see if there's a way using python to automate all of this > work that I need to do. I have to collect quarterly segment data for > hundreds of public companies

Re: [Tutor] How to get Selenium to wait for page load

2019-02-01 Thread George Fischhof
ezt írta (időpont: 2019. jan. 31., Cs 12:07): > Hi all, > > > > I have found an excellent article on identifying stale elements. The issue > is when I try and use their example code. I get a failure where for_wait is > not defined. > > > http://www.obeythetestinggoat.com/how-to-get-selenium-to-wa

Re: [Tutor] XML Programs

2018-04-16 Thread George Fischhof
Hi, Maybe you should give a try to xmltodict package George leam hall ezt írta (időpont: 2018. ápr. 16., H 15:14): > Yeah, understood. > > Okay, knowing that others are smarter about python, and ElementTree, > here's some code I was using to parse XML. Took a while to recover > from. :) > > L

Re: [Tutor] pythonic

2018-03-30 Thread George Fischhof
2018-03-30 4:48 GMT+02:00 Pat Martin : > Hello all, > > I have written the following program. It generates a template for Pelican > web site static generator. It works just fine, it generates the template > and then I put the info in it to customize. But I was wondering, is this > the "right" way

Re: [Tutor] How to schedule the SFTP folder sync using python

2017-11-02 Thread George Fischhof
Hi Pareshkumar, I do not know what pysftp lib can do for you, but maybe you will need the scheduler too: https://pypi.python.org/pypi/schedule/ BR, George 2017-10-31 20:30 GMT+01:00 Pareshkumar Panchal : > Hi, > > can you help me about scheduling the folder sync between sftp and local > direc

Re: [Tutor] Need Help with install of Python!

2017-09-22 Thread George Fischhof
2017-09-20 2:18 GMT+02:00 Alan Gauld via Tutor : > On 19/09/17 21:13, Larry Staley wrote: > > Hello I am very new to Python just having installed Python Version 2.7 > onto > > my windows 8.1 laptop. I thought the install was successful and was > > entering information for my first assignment when

Re: [Tutor] New to Python

2017-09-08 Thread George Fischhof
2017-09-07 20:39 GMT+02:00 boB Stepp : > Welcome to Tutor! > > On Thu, Sep 7, 2017 at 8:14 AM, Vikram Singh > wrote: > > I've been learning Python from Google For Education > > . A little help will be > > appreciated regarding the right way and right tut

Re: [Tutor] Need advice on testing python code.

2017-08-28 Thread George Fischhof
2017-08-28 9:43 GMT+02:00 Anubhav Yadav : > Hi George, > > > And pytest has more than 200 plugins to make it easier to test things. > As I remember it has mongo plugin as we well > > > > Thank you for your comments. > > I have been using `py.test` for only two reasons. > > 1. To run my tests place

Re: [Tutor] Need advice on testing python code.

2017-08-28 Thread George Fischhof
2017. aug. 28. de. 2:15 ezt írta ("Anubhav Yadav" ): Hello. I am a python developer and I write a lot of python code everyday. I try to do as much unit testing as possible. But I want to be better at it, I want to write more test cases, specially that rely on database insertions and reads and fil

Re: [Tutor] Need advice on testing python code.

2017-08-28 Thread George Fischhof
2017. aug. 28. 2:15 ezt írta ("Anubhav Yadav" ): Hello. I am a python developer and I write a lot of python code everyday. I try to do as much unit testing as possible. But I want to be better at it, I want to write more test cases, specially that rely on database insertions and reads and file io

Re: [Tutor] Python isn't working with Apache (Windows)

2017-07-31 Thread George Fischhof
; *Christopher McGrath* > > > > *www.aawisdom.com <http://www.aawisdom.com> (716) 240-7786* > > > > -- > *From:* georgefisch...@gmail.com on behalf of > George Fischhof > *Sent:* Monday, July 31, 2017 8:34 PM > *To:* Christopher McGrat

Re: [Tutor] Python isn't working with Apache (Windows)

2017-07-31 Thread George Fischhof
2017-07-31 7:31 GMT+02:00 Christopher McGrath : > I am trying to run a simple python web script in a browser with apache. I > have apache installed and running perfectly. I installed Ruby and Perl > using instructions from here and worked perfect. http://editrocket.com/ > articles/python_apache_wi

Re: [Tutor] Query regarding output

2017-07-02 Thread George Fischhof
2017-06-29 15:55 GMT+02:00 shubham goyal : > Thanks all > Great place to learn Python. > > On Jun 29, 2017 7:24 PM, "shubham goyal" wrote: > > Thankyou all. > > Great place to learn. > > On Jun 29, 2017 5:55 PM, "Mats Wichmann" wrote: > > > On 06/29/2017 03:02 AM, Alan Gauld via Tutor wrote: > >

Re: [Tutor] Collecting output from Python scripts executed via Cron

2017-05-19 Thread George Fischhof
2017-05-19 3:48 GMT+02:00 Leo Silver : > I have written a several Python scripts to collect data from external > sources (an email account and an sftp site). > > In development I run the scripts from IDLE or the command line and can view > the output of various print statements in the scripts whic

Re: [Tutor] While Loop Question

2017-05-11 Thread George Fischhof
2017-05-11 3:53 GMT+02:00 Rafael Skovron : > Sorry I left out the indents in my previous email. It seems like j is > always reset to zero. Why does j vary? > > Are there two different instances of j going on? > > > for i in range(1, 5): > > j=0 > >while j < i: > > print(j, end = "

Re: [Tutor] python help

2017-04-13 Thread George Fischhof
Hi Christina, you should use an editor or an IDE (Integrated Development Environment) (a quite good and my favorite IDE is PyCharm https://www.jetbrains.com/pycharm/download/#section=windows ), write the script in it,then save, then run it from the IDE or from command line with similar command: p

Re: [Tutor] Network Sniffing on Windows with Python 3.6

2017-04-07 Thread George Fischhof
2017-04-07 7:07 GMT+02:00 Some Developer : > Hi, > > This is more a query about where to look for information rather than > asking for specific code. > > There is a game that passes data over the network and I want to sniff the > network protocol used by the game to pass data between the client an

Re: [Tutor] Error when trying to use classes

2017-02-07 Thread George Fischhof
2017-02-07 16:34 GMT+01:00 Rafael Skovron : > I'm trying to learn how to use Classes but I keep getting NameErrors no > matter what code I put into the script. > > Any ideas why? > > My general workflow is I edit in vim, then invoke python3 interpreter, > import the module and try to use the Clas

Re: [Tutor] Function annotations

2017-02-06 Thread George Fischhof
2017-02-05 9:36 GMT+01:00 Steven D'Aprano : > On Sat, Feb 04, 2017 at 10:11:39PM -0600, boB Stepp wrote: > > > Are the people making linters implementing checking function > > annotations? Or is this something only gradually being adopted? > > Depends which linter :-) > > MyPy is still the refere

Re: [Tutor] How can I run this test script using selenium while making connection and running the code I am facing issue Please see my code below

2017-01-18 Thread George Fischhof
2017-01-18 11:18 GMT+01:00 Sarika Shrivastava : > import unittest > from selenium import webdriver > from selenium.webdriver.common.keys import Keys > import time > > class PythonOrgSearch(unittest.TestCase): > > def setUp(self): > self.driver = > webdriver.Chrome('C:\Users\uidk9685\Do

Re: [Tutor] How can I run this test script using selenium while making connection and running the code I am facing issue Please see my code below

2017-01-18 Thread George Fischhof
2017-01-18 11:18 GMT+01:00 Sarika Shrivastava : > import unittest > from selenium import webdriver > from selenium.webdriver.common.keys import Keys > import time > > class PythonOrgSearch(unittest.TestCase): > > def setUp(self): > self.driver = > webdriver.Chrome('C:\Users\uidk9685\Do

Re: [Tutor] Trouble Launching Python

2016-12-21 Thread George Fischhof
2016-12-19 23:38 GMT+01:00 Joseph Olugbohunmi via Tutor : > Hello,Good day, I installed Python 3.5.2 on my Windows 8.1 PC and then I > tried launching IDLE as well as the Interpreter but I got a message that > api-ms-win-crt-runtime-l1-1-0.dll was missing. I downloaded and installed > that after

Re: [Tutor] unknown syntax error

2016-12-17 Thread George Fischhof
Hi Oliver, Your else statement should be unindented by one level ;-) The else must be at same indent level as the if it belongs to. BR, George 2016-12-11 17:30 GMT+01:00 oliver patterson < oliverjamespatter...@hotmail.com>: > hey i dont know if this is the right place but i was just coding in i

Re: [Tutor] Created Function, Need Argument to be a String

2016-12-17 Thread George Fischhof
2016-12-12 17:29 GMT+01:00 Bryon Adams : > Is there a way to force my argument to always be a string before entering > the function? Else, is there a better way to go about this? In whatever > program I write, I could change what I want as input to be a string prior > to tossing it into the functi