Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Strange output
Post: RE: Strange output

Thanks for helping me figure that out... def get_group_users(): f = open('group.example', 'r') users = [] for l in f: g = l.split(':') if (g[0] == "users"): f...
kintarowonders General Coding Help 6 2,951 May-08-2020, 05:16 PM
    Thread: Strange output
Post: RE: Strange output

That did not work, and line 8 is an important conditional so that it avoids the group portage in my example.
kintarowonders General Coding Help 6 2,951 May-08-2020, 05:01 PM
    Thread: Strange output
Post: Strange output

I am writing a method and it outputs unexpected results. It is supposed to break up some strings and create lists from them. Yet the lists don't contain everything I expected. Here is my code: def ge...
kintarowonders General Coding Help 6 2,951 May-08-2020, 04:30 PM
    Thread: Flask tutorial:
Post: Flask tutorial:

I am trying to get the Flask tutorial running. However I have ran into a problem of an undefined method used in the tutorial. $ flask init-db Traceback (most recent call last): File "/home/john/...
kintarowonders Web Scraping & Web Development 1 4,129 Mar-22-2019, 11:36 PM
    Thread: pip3 install functools failed
Post: pip3 install functools failed

I am trying to install functools to experiment with code that uses it, but it fails to install. Distro is Fedora 29 Workstation. $ pip3 install functools Collecting functools Using cached https://...
kintarowonders General Coding Help 1 15,782 Mar-06-2019, 05:47 AM
    Thread: webpy app going in circles
Post: RE: webpy app going in circles

(Feb-25-2019, 06:00 PM)snippsat Wrote: (Feb-25-2019, 04:08 PM)kintarowonders Wrote: but I depend on webpy so I'll have to wait for it to become stable in python3.As i advice do not use web.py Main...
kintarowonders Web Scraping & Web Development 6 3,193 Feb-25-2019, 06:58 PM
    Thread: webpy app going in circles
Post: RE: webpy app going in circles

(Feb-25-2019, 03:58 PM)Larz60+ Wrote: Ok, that's a different from what I see on PyPi.org which points to this site: http://www.pythonweb.org/web/ Sorry, I'm not at all familiar with this site. A bi...
kintarowonders Web Scraping & Web Development 6 3,193 Feb-25-2019, 04:08 PM
    Thread: webpy app going in circles
Post: RE: webpy app going in circles

(Feb-25-2019, 03:45 PM)Larz60+ Wrote: did you mean to use web3? web was last updated August 3, 2005, and their web site is closed. No, I mean this: http://webpy.org/ You can just do this to get the...
kintarowonders Web Scraping & Web Development 6 3,193 Feb-25-2019, 03:46 PM
    Thread: webpy app going in circles
Post: webpy app going in circles

I am working on a web.py app which makes it so a captcha has to be given to see a page. I found some code with Google where someone had aleady done this and made it fit my app. However, it is kind of ...
kintarowonders Web Scraping & Web Development 6 3,193 Feb-25-2019, 03:16 PM
    Thread: web.py: implementing a captcha
Post: web.py: implementing a captcha

I am trying to make it so users have to enter a captcha to enter a site. I am new to webpy, and I've got this code and I don't even know why it doesn't work. Can someone point me in the right directio...
kintarowonders Web Scraping & Web Development 0 2,228 Feb-24-2019, 02:40 AM
    Thread: New to MySQL, can't work out why code doesn't work
Post: RE: New to MySQL, can't work out why code doesn't ...

Works now.. Thanks so much! #!/usr/bin/python3 import mysql.connector import re import os from itertools import chain global mydb mydb = mysql.connector.connect( host="localhost", u...
kintarowonders General Coding Help 6 3,574 Feb-18-2019, 05:23 PM
    Thread: New to MySQL, can't work out why code doesn't work
Post: RE: New to MySQL, can't work out why code doesn't ...

Alright, here is how I fixed it up, but for some reason the row isn't deleted by the database on line 48, and now I'm stuck there. #!/usr/bin/python3 import mysql.connector import re import os from i...
kintarowonders General Coding Help 6 3,574 Feb-18-2019, 05:12 PM
    Thread: New to MySQL, can't work out why code doesn't work
Post: RE: New to MySQL, can't work out why code doesn't ...

The 'result' variable on line 32 is used in the foreach loop for operid. Can you demonstrate your point with code?
kintarowonders General Coding Help 6 3,574 Feb-18-2019, 04:32 PM
    Thread: New to MySQL, can't work out why code doesn't work
Post: New to MySQL, can't work out why code doesn't work

I'm creating a script called rootrun, it runs things as root that were put in a MySQL database but only if they match regular expressions in the database. It should be telling me "hello word" but it d...
kintarowonders General Coding Help 6 3,574 Feb-18-2019, 03:39 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020