Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: compiling to python-- should ; be used or not?
Post: RE: compiling to python-- should ; be used or not?

considering going single-line for future (and major) code. yes, theres a personal preference here, though perhaps with practice doing it another way...
ezdev News and Discussions 4 3,793 Dec-24-2017, 07:35 AM
    Thread: compiling to python-- should ; be used or not?
Post: compiling to python-- should ; be used or not?

the way i code uses ; a lot-- it puts statements together like this: print(5) ; print (12)the reason i do this is because it fits more code per page, which makes it easier (for me) to read what im do...
ezdev News and Discussions 4 3,793 Dec-24-2017, 03:43 AM
    Thread: Basic Python Question
Post: RE: Basic Python Question

i know why. entered needs to be the part from the "@" onward to work with the code i gave you. i would fix that with if entered.lower()[entered.index("@"):] (in place of entered.lower() from my previ...
ezdev General Coding Help 7 4,565 Dec-24-2017, 02:44 AM
    Thread: Beginner question: help ensuring input is a number
Post: RE: Beginner question: help ensuring input is a nu...

ck = "" while type(ck) == str: odds_text = ("The number is ") odds_input = input("Enter a number: ") strip_input = odds_input.strip() try: ck = float(strip_input) except: ...
ezdev General Coding Help 2 2,914 Dec-23-2017, 07:17 PM
    Thread: Basic Python Question
Post: RE: Basic Python Question

if entered == '@hotmail.com' or entered == '@gmail.com' or entered == '@yahoo.com': will do. but you can also do this: if entered in ['@hotmail.com', '@gmail.com', '@yahoo.com']: and if you dont wa...
ezdev General Coding Help 7 4,565 Dec-23-2017, 07:11 PM
    Thread: function definition (pycharm)
Post: RE: function definition (pycharm)

i bet youre using the python 2 version of thinkpython. as the page says, you probably want this: http://greenteapress.com/wp/think-python-2e/ also: print("lumber jacks")
ezdev General Coding Help 3 5,014 Dec-23-2017, 06:41 PM
    Thread: Want to see sample graphic output for python
Post: RE: Want to see sample graphic output for python

one of mine. actually done in fig, but it compiles to python (so theres python source for this) and is displayed using pygame. no pygame-based effects here; every pixel is calculated and plotted usin...
ezdev GUI 3 2,990 Dec-22-2017, 08:06 PM
    Thread: If loop inside of a while loop
Post: RE: If loop inside of a while loop

minor quibble: your if conditional is not a loop. while is conditional and also a loop, if is conditional but it is not a loop-- though its certainly understandable why someone would think of it as o...
ezdev Data Science 4 3,663 Dec-21-2017, 06:07 AM
    Thread: is there a better place to talk about pypy here?
Post: is there a better place to talk about pypy here?

edit: my question in the title was answered when someone moved this to "news and discussions." to be honest, i never really noticed the "and discussions" part, which would have made it clearer. just ...
ezdev News and Discussions 1 2,675 Dec-20-2017, 04:41 AM
    Thread: Forced Password Change?
Post: RE: Forced Password Change?

thank you. normally when i complain about a design/usability issue it is not a request and often not even aimed at the person im talking to, if you can do something to improve it thats always nice, al...
ezdev Board 14 8,099 Dec-20-2017, 02:31 AM
    Thread: moving from os to subprocess
Post: RE: moving from os to subprocess

yeah, if youre going to run shell commands based on input, its a good idea to sanitise all the input. $( ) and these guys: ` and & are other gotchas, not just ; and & and && appl...
ezdev GUI 10 11,802 Dec-20-2017, 01:02 AM
    Thread: Forced Password Change?
Post: RE: Forced Password Change?

Quote:I dont believe you should have to do the recaptcha when doing the password reset...only when you initially register. agreed, but it still required me to do so. Quote:I can also say without s...
ezdev Board 14 8,099 Dec-20-2017, 12:57 AM
    Thread: Forced Password Change?
Post: RE: Forced Password Change?

the password change is reasonable enough, im really beginning to reject registration at sites that use the google captcha. it was fine when that thing started, its a lot more annoying and tedious thes...
ezdev Board 14 8,099 Dec-19-2017, 04:19 PM
    Thread: a future project: hardlink identical files
Post: RE: a future project: hardlink identical files

i suppose then ive always confused the two, and always used symlinks. they suit my purposes, but they do have the drawback i already mentioned. thanks for clarifying, it was informative and i (obvio...
ezdev Bar 4 4,038 Dec-18-2017, 02:04 AM
    Thread: net neutrality
Post: RE: net neutrality

Quote:The other problem, as I see it, at least in the US, is there is no single unifying voice for change. i want the constitution back, i dont want the media monopolies taking over the berne convent...
ezdev Bar 45 21,587 Dec-17-2017, 05:11 PM
    Thread: New Users Introduce Yourself
Post: RE: New Users Introduce Yourself

i am aware of the python foundations plans for 2020, i do not expect those to change. i will stop relying on cpython after 2020. Quote:A lot of really neat stuff has been added to 3.6 let me know wh...
ezdev Bar 431 229,724 Dec-17-2017, 07:43 AM
    Thread: New Users Introduce Yourself
Post: RE: New Users Introduce Yourself

i would put this in another topic, except that subject-wise, its an introduction, so here goes: * i spent 25 years coding in basic * fell in love with python in 2009 * spent a few years watching how...
ezdev Bar 431 229,724 Dec-17-2017, 06:49 AM
    Thread: Newbie question for a kind of rolling average of list of lits
Post: RE: Newbie question for a kind of rolling average ...

i wish they would stop assigning lists-of-lists homework. lists of tuples, dictionaries of lists, but lists of lists? thats just setting them up.
ezdev General Coding Help 3 3,337 Dec-16-2017, 11:41 PM
    Thread: net neutrality
Post: RE: net neutrality

i think the problem (as wavic seems to agree, not to put words in anyones mouth) is that the only things lobbyists can legally bribe politicians with is campaign money (prior to running) and hiring th...
ezdev Bar 45 21,587 Dec-16-2017, 11:37 PM
    Thread: my "keep" script
Post: RE: my "keep" script

i do pretty much all my coding under cc0. i waited until the fsf said it was gpl-compatible (its mit compatible too.) no one here is going to steal my code-- i mostly do stuff for python 2! (ive ma...
ezdev Bar 31 13,666 Dec-16-2017, 11:29 PM

User Panel Messages

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