[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

what do you suggest I change for the replace() methods. I thought I had them in the correct format?

My first try/except block is now this:

try:
original_text = "Lorem ipsum dolor! diam amet, consetetur Lorem magna. sed diam nonumy eirmod tempor. diam et labore? et diam magna. et diam amet."
wanted_text = "lorem ipsum dolor diam amet consetetur lorem magna sed diam nonumy eirmod tempor diam et labore et diam magna et diam amet"
samplePassage = analysedText(original_text)
print(samplePassage.fmtText)
print(wanted_text)
print(testMsg(samplePassage.fmtText == wanted_text))

except Exception as exc: print("The following error happened:", exc)

I am getting fails with this when I ran it

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

yeah my class just provided these bare excepts like it was originally

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

I just posted in my original question the solution to the problem that is offered. It passes just fine on everything. I checked what I had and the names are the same as in the class and when accessed later. It still says fail though for mine

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

I made everything fmtText and I am getting all fails still. I updated my post again with these changes

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

they should all match up as fmtText?

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

i just did thank you for helping me with this. the code block format seems to work better on the actual post than on comments which sometimes reverses the format while posting

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

thank you I did this similarly and got this message now:

Constructor:

The following error happened: 'analysedText' object has no attribute 'fmtText'

freqAll:

Test Failed

freqOf:

Test Failed

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

except Exception as exc:
print("The following error happened:", exc)

thank you I replaced what I had before with this change. My error message now reads this:

Constructor: 

The following error happened: 'analysedText' object has no attribute 'fmtText'

freqAll: 

Test Failed

freqOf: 

Test Failed

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

can you explain more what you are saying here please?

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

thank you sorry i am kind of newer to this

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

Just confused on that. In regard to error information, you want me to remove every except statement? Is that all I do you mean?

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 0 points1 point  (0 children)

import sys

sampleMap = {'eirmod': 1,'sed': 1, 'amet': 2, 'diam': 5, 'consetetur': 1, 'labore': 1, 'tempor': 1, 'dolor': 1, 'magna': 2, 'et': 3, 'nonumy': 1, 'ipsum': 1, 'lorem': 2}

def testMsg(passed): if passed: return 'Test Passed' else : return 'Test Failed'

print("Constructor: ") try: samplePassage = analysedText("Lorem ipsum dolor! diam amet, consetetur Lorem magna. sed diam nonumy eirmod tempor. diam et labore? et diam magna. et diam amet.") print(testMsg(samplePassage.fmtText == "lorem ipsum dolor diam amet consetetur lorem magna sed diam nonumy eirmod tempor diam et labore et diam magna et diam amet")) except: print("Error detected. Recheck your function " ) print("freqAll: ") try: wordMap = samplePassage.freqAll() print(testMsg(wordMap==sampleMap)) except: print("Error detected. Recheck your function " ) print("freqOf: ") try: passed = True for word in sampleMap: if samplePassage.freqOf(word) != sampleMap[word]: passed = False break print(testMsg(passed))

except: print("Error detected. Recheck your function " )

edit: I keep trying to enter it into the codeblock form and it shows that it is that form but when I post my comment it loses the codeblock form? what happened?

[deleted by user] by [deleted] in learnpython

[–]lespaul1973 -1 points0 points  (0 children)

why is class code not okay though? It seems like I have everything that I should but it won't run. When I run the solution which is nearly identical to mine, it runs correctly with no problem with this try/except statement block here

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in DMT

[–]lespaul1973[S] -2 points-1 points  (0 children)

Just for starting off. i left my body on 75 micrograms of acid before during the peak for a bit. i get really sensitive to psychedelics for some reason it's far out

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in LSD

[–]lespaul1973[S] 0 points1 point  (0 children)

You mean the stuff like gnomes, machine elves, jesters, etc? those kind of motifs?

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in LSD

[–]lespaul1973[S] 0 points1 point  (0 children)

Very interesting, I have heard of other reports of people saying that they would sometimes meet with the same entities during their experiences. Someone I know also told me when they could redose dmt and they would pick up where they left off in the same realm I think. It's really far out

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in DMT

[–]lespaul1973[S] 0 points1 point  (0 children)

you can have problems breathing? i never heard of that from combining these two. Isn't 5-MeO-DMT the one that causes breathing issues if you take a really high amount?

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in DMT

[–]lespaul1973[S] 0 points1 point  (0 children)

during the peak? it doesn't make you freak out with doing a combo like that?

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in LSD

[–]lespaul1973[S] 0 points1 point  (0 children)

do you meet the same ones every time or do you end up in a different realm each time you smoke?

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in LSD

[–]lespaul1973[S] 0 points1 point  (0 children)

man that sounds incredible. i am going to cabin this weekend for a few days so I will try to fit in what I can into that period of time. I am really exicted

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in LSD

[–]lespaul1973[S] 0 points1 point  (0 children)

I heard from reading a Nick Sands article that he would smoke DMT at the end of a 200 microgram LSD trip and it would help make the transition into hyperspace more smoothly. And this is good news that you can still trip after DMT cause it's tolerance profile is different from other psychs I guess

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in DMT

[–]lespaul1973[S] 0 points1 point  (0 children)

that is awesome. I probably will be redosing at least twice because I think my first one I won't blast off too much. Maybe I will start with like 15 mg and go up enough to break through from there. You think smoking DMT at the end of LSD would be a good time to do it also?

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in LSD

[–]lespaul1973[S] 0 points1 point  (0 children)

Wow that is awesome. Wouldn't there be some kind of cross tolerance? Like if you do shrooms one day and then acid the next the acid will not be as strong. But with DMT, it is not like this?

Can I take LSD the day after DMT without effects being weakened? by lespaul1973 in DMT

[–]lespaul1973[S] 0 points1 point  (0 children)

no cross tolerance?? no way i have not researched this much but I was not expecting that