workspace
stringclasses 1
value | channel
stringclasses 1
value | sentences
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
| sentence_id
stringlengths 44
53
| timestamp
float64 1.5B
1.56B
| __index_level_0__
int64 0
106k
|
---|---|---|---|---|---|---|---|
pythondev
|
help
|
eg, you want to convert the text to uppercase?
|
2019-05-14T14:52:02.123200
|
Hiroko
|
pythondev_help_Hiroko_2019-05-14T14:52:02.123200
| 1,557,845,522.1232 | 23,721 |
pythondev
|
help
|
Yes
|
2019-05-14T14:52:12.123700
|
Rodrick
|
pythondev_help_Rodrick_2019-05-14T14:52:12.123700
| 1,557,845,532.1237 | 23,722 |
pythondev
|
help
|
but you’re operating on an instance of a textbox, not a string
|
2019-05-14T14:52:17.123800
|
Hiroko
|
pythondev_help_Hiroko_2019-05-14T14:52:17.123800
| 1,557,845,537.1238 | 23,723 |
pythondev
|
help
|
how do you get the string from the textbox?
|
2019-05-14T14:52:26.124200
|
Hiroko
|
pythondev_help_Hiroko_2019-05-14T14:52:26.124200
| 1,557,845,546.1242 | 23,724 |
pythondev
|
help
|
Yea just saw that
|
2019-05-14T14:52:29.124300
|
Rodrick
|
pythondev_help_Rodrick_2019-05-14T14:52:29.124300
| 1,557,845,549.1243 | 23,725 |
pythondev
|
help
|
Working on that now
|
2019-05-14T14:52:33.124500
|
Rodrick
|
pythondev_help_Rodrick_2019-05-14T14:52:33.124500
| 1,557,845,553.1245 | 23,726 |
pythondev
|
help
|
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
|
2019-05-14T15:43:45.124800
|
Nenita
|
pythondev_help_Nenita_2019-05-14T15:43:45.124800
| 1,557,848,625.1248 | 23,727 |
pythondev
|
help
|
you can copy and paste that. i cant figure out why it's error-ing out
|
2019-05-14T15:44:23.125600
|
Nenita
|
pythondev_help_Nenita_2019-05-14T15:44:23.125600
| 1,557,848,663.1256 | 23,728 |
pythondev
|
help
|
`if my_dict[test]:` I think this is not evaluating to anything for it to go forward. You are trying to check if key exists, right?
|
2019-05-14T15:50:51.126700
|
Raguel
|
pythondev_help_Raguel_2019-05-14T15:50:51.126700
| 1,557,849,051.1267 | 23,729 |
pythondev
|
help
|
it doesn’t know how to evaluate `if my_dict[test]` if you are just checking if a key is in a dict do `if test in my_dict else set a value to the key` and get rid of the try/except
|
2019-05-14T15:52:11.127800
|
Clemmie
|
pythondev_help_Clemmie_2019-05-14T15:52:11.127800
| 1,557,849,131.1278 | 23,730 |
pythondev
|
help
|
`my_dict.get('test')`?
|
2019-05-14T15:52:13.127900
|
Romaine
|
pythondev_help_Romaine_2019-05-14T15:52:13.127900
| 1,557,849,133.1279 | 23,731 |
pythondev
|
help
|
```test = my_dict.get('test') or "abc"```
|
2019-05-14T15:52:55.129100
|
Romaine
|
pythondev_help_Romaine_2019-05-14T15:52:55.129100
| 1,557,849,175.1291 | 23,732 |
pythondev
|
help
|
specifically, it is getting a dataframe, but dataframes don’t support boolean evaluation (apparently)
|
2019-05-14T15:53:03.129300
|
Clemmie
|
pythondev_help_Clemmie_2019-05-14T15:53:03.129300
| 1,557,849,183.1293 | 23,733 |
pythondev
|
help
|
<@Raguel> yea
|
2019-05-14T15:53:43.130100
|
Nenita
|
pythondev_help_Nenita_2019-05-14T15:53:43.130100
| 1,557,849,223.1301 | 23,734 |
pythondev
|
help
|
`.get('key')` on a dict returns `None` if the key doesn't exist or is empty
|
2019-05-14T15:53:46.130200
|
Romaine
|
pythondev_help_Romaine_2019-05-14T15:53:46.130200
| 1,557,849,226.1302 | 23,735 |
pythondev
|
help
|
oh nice
|
2019-05-14T15:54:04.130400
|
Nenita
|
pythondev_help_Nenita_2019-05-14T15:54:04.130400
| 1,557,849,244.1304 | 23,736 |
pythondev
|
help
|
i usually end up using except keyerror as my go-to method, but .get will be way more effective
|
2019-05-14T15:54:32.131200
|
Nenita
|
pythondev_help_Nenita_2019-05-14T15:54:32.131200
| 1,557,849,272.1312 | 23,737 |
pythondev
|
help
|
using `.get`, you can give it a default value too instead of `None` as <@Romaine> mentioned
|
2019-05-14T15:55:06.131800
|
Raguel
|
pythondev_help_Raguel_2019-05-14T15:55:06.131800
| 1,557,849,306.1318 | 23,738 |
pythondev
|
help
|
yup!
|
2019-05-14T15:55:16.132000
|
Romaine
|
pythondev_help_Romaine_2019-05-14T15:55:16.132000
| 1,557,849,316.132 | 23,739 |
pythondev
|
help
|
I use the model of `.get('key') or "default"`, because its sometimes more readable, especially when "default" calls another function or complex piece of code
|
2019-05-14T15:56:14.133100
|
Romaine
|
pythondev_help_Romaine_2019-05-14T15:56:14.133100
| 1,557,849,374.1331 | 23,740 |
pythondev
|
help
|
and you can try doing the way misthop mentioned as you don't really need try/except here. you can just check key existence, and then decide what to do
|
2019-05-14T15:57:18.134000
|
Raguel
|
pythondev_help_Raguel_2019-05-14T15:57:18.134000
| 1,557,849,438.134 | 23,741 |
pythondev
|
help
|
i always thought the try/except was the way to check if a key exists, but ill surely be using .get from now on
|
2019-05-14T15:57:52.134500
|
Nenita
|
pythondev_help_Nenita_2019-05-14T15:57:52.134500
| 1,557,849,472.1345 | 23,742 |
pythondev
|
help
|
but if you use `get`, and when the value exists for that get, your `if` statement will break as there is no boolean evaluation for dataframes
|
2019-05-14T16:00:06.135400
|
Raguel
|
pythondev_help_Raguel_2019-05-14T16:00:06.135400
| 1,557,849,606.1354 | 23,743 |
pythondev
|
help
|
when you do `my_dict.get(test)`, it will return that empty dataframe, and `if dataframe` will not evaluate to anything and throw same error
|
2019-05-14T16:01:04.136100
|
Raguel
|
pythondev_help_Raguel_2019-05-14T16:01:04.136100
| 1,557,849,664.1361 | 23,744 |
pythondev
|
help
|
yea doing that works perfectly
|
2019-05-14T16:05:29.136600
|
Nenita
|
pythondev_help_Nenita_2019-05-14T16:05:29.136600
| 1,557,849,929.1366 | 23,745 |
pythondev
|
help
|
is there a way to inspect an object which gives the size of all its attributes, then all of those attribute’s attributes, etc?
|
2019-05-14T16:12:18.137200
|
Clarita
|
pythondev_help_Clarita_2019-05-14T16:12:18.137200
| 1,557,850,338.1372 | 23,746 |
pythondev
|
help
|
When doing an LDAP query[using python-ldap], my query 'query = "(UID=jgr*)" ' pulls all the acccounts info. How can I tailor this to ONLY pull the UID portion of the account?
|
2019-05-14T16:18:41.138900
|
Walton
|
pythondev_help_Walton_2019-05-14T16:18:41.138900
| 1,557,850,721.1389 | 23,747 |
pythondev
|
help
|
is there a way to have python recognize the $ in amounts? i.e. $5 + $5 = $10
|
2019-05-14T16:41:16.140500
|
Nenita
|
pythondev_help_Nenita_2019-05-14T16:41:16.140500
| 1,557,852,076.1405 | 23,748 |
pythondev
|
help
|
there’s a few currency packages
|
2019-05-14T16:45:02.140700
|
Hiroko
|
pythondev_help_Hiroko_2019-05-14T16:45:02.140700
| 1,557,852,302.1407 | 23,749 |
pythondev
|
help
|
but to be honest, I would avoid that
|
2019-05-14T16:45:19.141000
|
Hiroko
|
pythondev_help_Hiroko_2019-05-14T16:45:19.141000
| 1,557,852,319.141 | 23,750 |
pythondev
|
help
|
its a headache
|
2019-05-14T16:45:26.141200
|
Hiroko
|
pythondev_help_Hiroko_2019-05-14T16:45:26.141200
| 1,557,852,326.1412 | 23,751 |
pythondev
|
help
|
had a feelin
|
2019-05-14T16:47:01.141400
|
Nenita
|
pythondev_help_Nenita_2019-05-14T16:47:01.141400
| 1,557,852,421.1414 | 23,752 |
pythondev
|
help
|
thx
|
2019-05-14T16:47:02.141600
|
Nenita
|
pythondev_help_Nenita_2019-05-14T16:47:02.141600
| 1,557,852,422.1416 | 23,753 |
pythondev
|
help
|
yea, the other option is to create an app that takes `$num1 + $num2` as user input, parse it out w/ math operators, and print a result. That’s still quite a bit of code and I’m not sure what the intended use case is.
|
2019-05-14T16:48:31.143000
|
Eliana
|
pythondev_help_Eliana_2019-05-14T16:48:31.143000
| 1,557,852,511.143 | 23,754 |
pythondev
|
help
|
what is a better way to do this? i cant find a clear answer on google.
|
2019-05-14T16:52:27.143500
|
Nenita
|
pythondev_help_Nenita_2019-05-14T16:52:27.143500
| 1,557,852,747.1435 | 23,755 |
pythondev
|
help
|
what exactly are you trying to do>
|
2019-05-14T16:55:19.144000
|
Hiroko
|
pythondev_help_Hiroko_2019-05-14T16:55:19.144000
| 1,557,852,919.144 | 23,756 |
pythondev
|
help
|
get rid of $, (, ) from amounts so i can add them
|
2019-05-14T16:56:11.144400
|
Nenita
|
pythondev_help_Nenita_2019-05-14T16:56:11.144400
| 1,557,852,971.1444 | 23,757 |
pythondev
|
help
|
all my amounts are in the form of $34 or ($3.45)
|
2019-05-14T16:56:28.144900
|
Nenita
|
pythondev_help_Nenita_2019-05-14T16:56:28.144900
| 1,557,852,988.1449 | 23,758 |
pythondev
|
help
|
where are they coming from?
|
2019-05-14T16:56:29.145000
|
Hiroko
|
pythondev_help_Hiroko_2019-05-14T16:56:29.145000
| 1,557,852,989.145 | 23,759 |
pythondev
|
help
|
bank statements
|
2019-05-14T16:56:34.145200
|
Nenita
|
pythondev_help_Nenita_2019-05-14T16:56:34.145200
| 1,557,852,994.1452 | 23,760 |
pythondev
|
help
|
i cannot get rid of $ ( )
|
2019-05-14T17:07:29.145800
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:07:29.145800
| 1,557,853,649.1458 | 23,761 |
pythondev
|
help
|
.strip nor .translate work.
|
2019-05-14T17:07:38.146100
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:07:38.146100
| 1,557,853,658.1461 | 23,762 |
pythondev
|
help
|
i just ended up doing
|
2019-05-14T17:14:57.146200
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:14:57.146200
| 1,557,854,097.1462 | 23,763 |
pythondev
|
help
|
<@Nenita> perhaps regex?
|
2019-05-14T17:15:12.146600
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:15:12.146600
| 1,557,854,112.1466 | 23,764 |
pythondev
|
help
|
dont recall that, ill look into it
|
2019-05-14T17:15:29.146900
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:15:29.146900
| 1,557,854,129.1469 | 23,765 |
pythondev
|
help
|
i even googled 'how to remove characters from a string' and that never resulted
|
2019-05-14T17:15:43.147400
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:15:43.147400
| 1,557,854,143.1474 | 23,766 |
pythondev
|
help
|
this could be a bad way to do it, and also I wasn't sure if the parens are always there, or if they're simply indicating a negative number - in which case this wouldn't work) but what about something like `amt[amt.find('$')+1:amt.find(')')]`
|
2019-05-14T17:17:05.148700
|
Marth
|
pythondev_help_Marth_2019-05-14T17:17:05.148700
| 1,557,854,225.1487 | 23,767 |
pythondev
|
help
|
<https://docs.python.org/3/library/stdtypes.html#str.strip> this may work for you if you need to strip them out
|
2019-05-14T17:18:03.149500
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:18:03.149500
| 1,557,854,283.1495 | 23,768 |
pythondev
|
help
|
well i just found if i strip $, (, ), or ',' then ill have to reinsert those characters when i export the final dataframe -_-
|
2019-05-14T17:18:17.149800
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:18:17.149800
| 1,557,854,297.1498 | 23,769 |
pythondev
|
help
|
im just gunna find a currency library to hopefully be able to recognize and add currency with $, (), or ','
|
2019-05-14T17:18:40.150400
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:18:40.150400
| 1,557,854,320.1504 | 23,770 |
pythondev
|
help
|
```>>> amt = "($45.59)"
>>> amt.strip("$()")
'45.59'```
|
2019-05-14T17:19:13.150600
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:19:13.150600
| 1,557,854,353.1506 | 23,771 |
pythondev
|
help
|
oh I might be misunderstanding the issue then
|
2019-05-14T17:19:37.150900
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:19:37.150900
| 1,557,854,377.1509 | 23,772 |
pythondev
|
help
|
Whoa whoa whoa
|
2019-05-14T17:20:32.151300
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:20:32.151300
| 1,557,854,432.1513 | 23,773 |
pythondev
|
help
|
i just envisioned keanu reeves saying that 3 times with his meme..
|
2019-05-14T17:21:27.151700
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:21:27.151700
| 1,557,854,487.1517 | 23,774 |
pythondev
|
help
|
lol we typed `regex` and summoned <@Claudine>
|
2019-05-14T17:21:58.152200
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:21:58.152200
| 1,557,854,518.1522 | 23,775 |
pythondev
|
help
|
That does happen
|
2019-05-14T17:22:26.152400
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:22:26.152400
| 1,557,854,546.1524 | 23,776 |
pythondev
|
help
|
lmao
|
2019-05-14T17:23:08.153600
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:23:08.153600
| 1,557,854,588.1536 | 23,777 |
pythondev
|
help
|
Daddy is brainfried chilling out with a Narragansett, but he thinks there's gotta be a currency library, or stripping chars, adding floats, then prepending a dollar sign back
|
2019-05-14T17:23:33.154600
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:23:33.154600
| 1,557,854,613.1546 | 23,778 |
pythondev
|
help
|
oh <@Nenita> you could always redefine the variable if you want it to retain its original format
|
2019-05-14T17:23:52.155600
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:23:52.155600
| 1,557,854,632.1556 | 23,779 |
pythondev
|
help
|
Unless you require the output to be in the same form as the input with your varying parentheses and such
|
2019-05-14T17:23:54.155800
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:23:54.155800
| 1,557,854,634.1558 | 23,780 |
pythondev
|
help
|
yea the output would need to be the same format
|
2019-05-14T17:24:08.156100
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:24:08.156100
| 1,557,854,648.1561 | 23,781 |
pythondev
|
help
|
```>>> amt = "($45.59)"
>>> new_amt = amt.strip("$()")
>>> new_amt
'45.59'
>>> amt
'($45.59)'```
|
2019-05-14T17:24:46.156800
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:24:46.156800
| 1,557,854,686.1568 | 23,782 |
pythondev
|
help
|
how is that inserting the $ back?
|
2019-05-14T17:25:36.157100
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:25:36.157100
| 1,557,854,736.1571 | 23,783 |
pythondev
|
help
|
It's not, it reassign the strip to a new var
|
2019-05-14T17:26:40.157600
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:26:40.157600
| 1,557,854,800.1576 | 23,784 |
pythondev
|
help
|
You could do the adding, then re.replace the digits and period from the original Val with the new total
|
2019-05-14T17:27:18.159000
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:27:18.159000
| 1,557,854,838.159 | 23,785 |
pythondev
|
help
|
I like that
|
2019-05-14T17:27:40.159700
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:27:40.159700
| 1,557,854,860.1597 | 23,786 |
pythondev
|
help
|
i noticed when my total gets added up python knows to insert a comma when the total has reached over 1000
|
2019-05-14T17:27:41.159900
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:27:41.159900
| 1,557,854,861.1599 | 23,787 |
pythondev
|
help
|
Odd, might be a feature of `print`
|
2019-05-14T17:27:59.160600
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:27:59.160600
| 1,557,854,879.1606 | 23,788 |
pythondev
|
help
|
Or `pprint`
|
2019-05-14T17:28:08.161000
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:28:08.161000
| 1,557,854,888.161 | 23,789 |
pythondev
|
help
|
im not printing the total
|
2019-05-14T17:28:14.161200
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:28:14.161200
| 1,557,854,894.1612 | 23,790 |
pythondev
|
help
|
havent either :thinking_face:
|
2019-05-14T17:28:21.161400
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:28:21.161400
| 1,557,854,901.1614 | 23,791 |
pythondev
|
help
|
Hmm
|
2019-05-14T17:28:27.161600
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:28:27.161600
| 1,557,854,907.1616 | 23,792 |
pythondev
|
help
|
if you want to retain the original value but do math on it you can do this ```>>> float(amt.strip("$()")) + 10
55.59
>>> amt
'($45.59)'```
|
2019-05-14T17:29:11.163400
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:29:11.163400
| 1,557,854,951.1634 | 23,793 |
pythondev
|
help
|
I like the idea of keeping the original value in its variable, then assigning a new variable to the stripped value, doing float addition, then re.replace the digits and period of the original variable with the new one
|
2019-05-14T17:29:34.164200
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:29:34.164200
| 1,557,854,974.1642 | 23,794 |
pythondev
|
help
|
If thay makes sense
|
2019-05-14T17:29:38.164400
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:29:38.164400
| 1,557,854,978.1644 | 23,795 |
pythondev
|
help
|
Whoa <@Lawrence> that's fire my dude
|
2019-05-14T17:30:09.164800
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:30:09.164800
| 1,557,855,009.1648 | 23,796 |
pythondev
|
help
|
@brendonakay :taco:
|
2019-05-14T17:30:18.165100
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:30:18.165100
| 1,557,855,018.1651 | 23,797 |
pythondev
|
help
|
<@Lawrence> :taco:
|
2019-05-14T17:30:34.165500
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:30:34.165500
| 1,557,855,034.1655 | 23,798 |
pythondev
|
help
|
You could even chain three strips, one for each char, just to handle when they aren't all there
|
2019-05-14T17:31:33.166500
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:31:33.166500
| 1,557,855,093.1665 | 23,799 |
pythondev
|
help
|
lol python has been so amazing up to this point :laughing:
|
2019-05-14T17:32:06.166900
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:32:06.166900
| 1,557,855,126.1669 | 23,800 |
pythondev
|
help
|
if i ever get really, like REALLY, good at python, id love to make a library that does all this for you
|
2019-05-14T17:32:34.167800
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:32:34.167800
| 1,557,855,154.1678 | 23,801 |
pythondev
|
help
|
This community has taught me most of what I know
|
2019-05-14T17:32:49.168300
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:32:49.168300
| 1,557,855,169.1683 | 23,802 |
pythondev
|
help
|
im out at 5 anyways so im gunna let my brain take a break and stare at a wall for a few
|
2019-05-14T17:33:47.169800
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:33:47.169800
| 1,557,855,227.1698 | 23,803 |
pythondev
|
help
|
Python just has such elegant ways of handling things I know how to do, but that I would otherwise implement in multi line hackery
|
2019-05-14T17:34:16.170700
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:34:16.170700
| 1,557,855,256.1707 | 23,804 |
pythondev
|
help
|
<@Nenita> ya same I'm slamming a beer then going to play pool my brain is melting out my ears today
|
2019-05-14T17:34:50.171600
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:34:50.171600
| 1,557,855,290.1716 | 23,805 |
pythondev
|
help
|
I need a bit of help creating a proper loop. each component of the loop works, but when I try to put it together it doesn't work
|
2019-05-14T17:35:35.172300
|
Walton
|
pythondev_help_Walton_2019-05-14T17:35:35.172300
| 1,557,855,335.1723 | 23,806 |
pythondev
|
help
|
I can't seem to figure it out. An LDAP query is made on a username, if the username is unavailable, propose a username with an increment +1 and check again until that username is available.
|
2019-05-14T17:36:47.172400
|
Walton
|
pythondev_help_Walton_2019-05-14T17:36:47.172400
| 1,557,855,407.1724 | 23,807 |
pythondev
|
help
|
the ldap query works. the adding +1 to the variable works. putting them in a loop, does not
|
2019-05-14T17:37:52.173400
|
Walton
|
pythondev_help_Walton_2019-05-14T17:37:52.173400
| 1,557,855,472.1734 | 23,808 |
pythondev
|
help
|
alright, im out. thanks for all the help peeps and enjoy your beer <@Claudine>
|
2019-05-14T17:38:43.173900
|
Nenita
|
pythondev_help_Nenita_2019-05-14T17:38:43.173900
| 1,557,855,523.1739 | 23,809 |
pythondev
|
help
|
Take it easy!
|
2019-05-14T17:39:30.174200
|
Claudine
|
pythondev_help_Claudine_2019-05-14T17:39:30.174200
| 1,557,855,570.1742 | 23,810 |
pythondev
|
help
|
is this to generate unique usernames <@Walton>?
|
2019-05-14T17:41:39.174600
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:41:39.174600
| 1,557,855,699.1746 | 23,811 |
pythondev
|
help
|
yes
|
2019-05-14T17:41:45.174800
|
Walton
|
pythondev_help_Walton_2019-05-14T17:41:45.174800
| 1,557,855,705.1748 | 23,812 |
pythondev
|
help
|
I'm taking the suggested/requested ID, and then checking them against LDAP
|
2019-05-14T17:42:11.175700
|
Walton
|
pythondev_help_Walton_2019-05-14T17:42:11.175700
| 1,557,855,731.1757 | 23,813 |
pythondev
|
help
|
could you just generate a random integer that's large enough that collisions are unlikely? then check if that exists
|
2019-05-14T17:42:13.175800
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:42:13.175800
| 1,557,855,733.1758 | 23,814 |
pythondev
|
help
|
We have over 20K already enrolled, and a lot more when it hits production coming... so the collisions are bound to happen
|
2019-05-14T17:43:01.176500
|
Walton
|
pythondev_help_Walton_2019-05-14T17:43:01.176500
| 1,557,855,781.1765 | 23,815 |
pythondev
|
help
|
the while loop seems sound to me - are you trying to optimize it in some way?
|
2019-05-14T17:44:32.177500
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:44:32.177500
| 1,557,855,872.1775 | 23,816 |
pythondev
|
help
|
What's the recommended linter for python/django in Atom?
|
2019-05-14T17:45:38.177700
|
Maricruz
|
pythondev_help_Maricruz_2019-05-14T17:45:38.177700
| 1,557,855,938.1777 | 23,817 |
pythondev
|
help
|
when i run the loop in the python terminal it says: SyntaxError: inconsistent use of tabs and spaces in indentation
|
2019-05-14T17:47:18.178200
|
Walton
|
pythondev_help_Walton_2019-05-14T17:47:18.178200
| 1,557,856,038.1782 | 23,818 |
pythondev
|
help
|
but I triple check that, and even entered it in Visual Studio Code to see if it picks up those supposed indentations
|
2019-05-14T17:47:47.178800
|
Walton
|
pythondev_help_Walton_2019-05-14T17:47:47.178800
| 1,557,856,067.1788 | 23,819 |
pythondev
|
help
|
<@Maricruz> I use flake8
|
2019-05-14T17:48:17.179000
|
Lawrence
|
pythondev_help_Lawrence_2019-05-14T17:48:17.179000
| 1,557,856,097.179 | 23,820 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.