Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Cloud app development
Post: Cloud app development
Is PyQt a good choice for cloud app development, or would a framework with its own GUI be better? |
|
league55 |
GUI |
1 |
2,285 |
Mar-02-2018, 08:41 PM |
|
|
Thread: Was I crazy to delete my only copy of this script?
Post: RE: Was I crazy to delete my only copy of this scr...
I was just thinking that this test was kind of an experiment, and the results of the experiment told me that using the script could have a highly negative effect on the user.
Also, I wrote the script... |
|
league55 |
Bar |
4 |
2,844 |
Mar-02-2018, 08:38 PM |
|
|
Thread: Was I crazy to delete my only copy of this script?
Post: Was I crazy to delete my only copy of this script?
I wrote a script that generated random strings of ascii letters with the randomness weighted according to a letter frequency table based on how often the letters occur in actual English words. So I wa... |
|
league55 |
Bar |
4 |
2,844 |
Mar-02-2018, 03:25 AM |
|
|
Thread: Decorator inhibits execution of function if non-None parameter not supplied
Post: Decorator inhibits execution of function if non-No...
If a function is supposed to receive a parameter other than None, but for whatever reason the value of the parameter is None, this decorator will inhibit the function from executing. Very useful when ... |
|
league55 |
Code sharing |
1 |
2,128 |
Feb-25-2018, 03:30 PM |
|
|
Thread: New Users Introduce Yourself
Post: RE: New Users Introduce Yourself
(Feb-23-2018, 01:59 AM)yashp Wrote: ...Python is...great for "crafters", that's my favorite thing about it.
As a casual tinkerer I approve of that sentiment. :-)
Welcome to the forum. |
|
league55 |
Bar |
431 |
229,235 |
Feb-23-2018, 08:24 PM |
|
|
Thread: Cute oscillating range generation snippet I saw on irc
Post: Cute oscillating range generation snippet I saw on...
Iterating both up and down from the middle of a range, with only the range max value input:
import itertools
def spiral(n):
r1 = range(n // 2, n)
r2 = range(n // 2 - 1, -1, -1)
for a, b i... |
|
league55 |
Code sharing |
1 |
2,758 |
Feb-23-2018, 12:44 AM |
|
|
Thread: Weird HTTP response
Post: RE: Weird HTTP response
It's a home system and I'm the "admin" (meaning I set the root password when I installed the OS). I'm pretty sure that, when I opened the saved Response object as an html file and then opened it in my... |
|
league55 |
Bar |
8 |
4,041 |
Feb-22-2018, 04:46 PM |
|
|
Thread: Weird HTTP response
Post: RE: Weird HTTP response
Well, I shouldn't have opened that Response object in my browser, because it locked my root account, and I lost all my work. |
|
league55 |
Bar |
8 |
4,041 |
Feb-22-2018, 08:41 AM |
|
|
Thread: Weird HTTP response
Post: RE: Weird HTTP response
I saved the Response object as an html file and opened it in my browser. Here's the code I used to make the request:
def get_response(url):
"""Obtains Response object from page at url, with error... |
|
league55 |
Bar |
8 |
4,041 |
Feb-21-2018, 04:36 AM |
|
|
Thread: Weird HTTP response
Post: Weird HTTP response
I'm putting this in Bar because it's not strictly Python-related, even though I used requests.get().
I got a HTTP Response Code 302 with the following Response.headers content:
'Accept-Ranges': 'byt... |
|
league55 |
Bar |
8 |
4,041 |
Feb-21-2018, 12:59 AM |
|
|
Thread: What do you call this type of parameter?
Post: RE: What do you call this type of parameter?
Can I use the type hints to do type checking without mypy? (Or I guess I can actually try it to find out haha.) |
|
league55 |
General Coding Help |
2 |
2,730 |
Feb-17-2018, 03:55 AM |
|
|
Thread: What do you call this type of parameter?
Post: What do you call this type of parameter?
In some code I've seen stuff like this:
def some_function(a -> int):
#do somethingI thought a -> int was called a decorator, but a decorator seems to be this:
def some_function(func):
... |
|
league55 |
General Coding Help |
2 |
2,730 |
Feb-16-2018, 10:39 PM |
|
|
Thread: Problems with not having exceptions crash my script
Post: RE: Problems with not having exceptions crash my s...
I just read a bit about sys_exc.info in the Python Documentation. It looks I'll have to pull the decorator from the helpers library and set up a separate exceptions library. This is a bit disheartenin... |
|
league55 |
General Coding Help |
7 |
4,852 |
Feb-16-2018, 03:18 PM |
|
|
Thread: Problems with not having exceptions crash my script
Post: Problems with not having exceptions crash my scrip...
I wrote a decorator to avoid having exceptions crash my script and it's not working. Here's the wrapper:
helpers.py
def try_wrapper(func):
"""Wrapper that handles exceptions gracefully.
... |
|
league55 |
General Coding Help |
7 |
4,852 |
Feb-16-2018, 06:38 AM |
|
|
Thread: Seeking feedback on my script-in-progress
Post: RE: Seeking feedback on my script-in-progress
(Feb-11-2018, 08:47 PM)Larz60+ Wrote: Since you like playing with words, you may be interested in NLTK, Natural language processor.
You can look at a simple tutorial here to get a feel for what it c... |
|
league55 |
General Coding Help |
2 |
2,651 |
Feb-12-2018, 03:03 PM |
|
|
Thread: Seeking feedback on my script-in-progress
Post: Seeking feedback on my script-in-progress
|
league55 |
General Coding Help |
2 |
2,651 |
Feb-11-2018, 06:16 PM |
|
|
Thread: New Users Introduce Yourself
Post: RE: New Users Introduce Yourself
(Feb-10-2018, 01:24 AM)R_Olivaw Wrote: Hi everyone!
I'm new to programming. Slowly working my way through a beginner's Python course on Udemy.
I'm an English major and a full-time writer. I'm lear... |
|
league55 |
Bar |
431 |
229,235 |
Feb-11-2018, 06:14 PM |
|
|
Thread: I just switched to Debian and already miss Corana :(
Post: RE: I just switched to Debian and already miss Cor...
(Feb-06-2018, 01:20 AM)metulburr Wrote: I would be surprised if there is something Microsoft creates that there would not be an open sourced linux version of
https://jasperproject.github.io/
Thanks ... |
|
league55 |
Bar |
6 |
4,276 |
Feb-06-2018, 03:55 AM |
|
|
Thread: I just switched to Debian and already miss Corana :(
Post: I just switched to Debian and already miss Corana ...
I was never fooled by the marketing shtick of Microsoft reps calling Cortana "she," because, well, Cortana is a sexless AI and that's that. But I already miss being able to launch an application by ju... |
|
league55 |
Bar |
6 |
4,276 |
Feb-06-2018, 12:30 AM |
|
|
Thread: Python 3.701b released yesterday--who should install it and who shouldn't?
Post: Python 3.701b released yesterday--who should insta...
I happen to have 3.701a installed, but, at my level of use, haven't noticed any differences from 3.6.x. Who whould install the new 3.7 beta and who shouldn't? |
|
league55 |
News and Discussions |
7 |
4,442 |
Feb-01-2018, 07:54 PM |