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
|
correct
|
2019-04-27T20:08:41.293000
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:08:41.293000
| 1,556,395,721.293 | 20,821 |
pythondev
|
help
|
which suggests the user:group of the process running the command doesn’t have access to that directory
|
2019-04-27T20:09:01.293800
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:09:01.293800
| 1,556,395,741.2938 | 20,822 |
pythondev
|
help
|
I agree lol
|
2019-04-27T20:09:16.294600
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:09:16.294600
| 1,556,395,756.2946 | 20,823 |
pythondev
|
help
|
I don't know what that process is though
|
2019-04-27T20:09:29.295200
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:09:29.295200
| 1,556,395,769.2952 | 20,824 |
pythondev
|
help
|
if you ssh into the instance, with the same group, are you able to `touch some_file.txt` in that directory?
|
2019-04-27T20:09:30.295300
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:09:30.295300
| 1,556,395,770.2953 | 20,825 |
pythondev
|
help
|
yes, if I sudo, but if I sudo as you can see it gives me a syntax error
|
2019-04-27T20:10:34.296800
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:10:34.296800
| 1,556,395,834.2968 | 20,826 |
pythondev
|
help
|
i know, im sorry <@Bethany> let me explain entirely. The user will input some serial numbers (corresponding to connected devices) but there is no set number, they will connect anywhere from 1-10 devices. Each device will run through some tests and pass or fail and at the end I need to display this:
|
2019-04-27T20:13:13.297900
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:13:13.297900
| 1,556,395,993.2979 | 20,827 |
pythondev
|
help
|
oh ok and that is saved to csv as a report or something
|
2019-04-27T20:13:40.299100
|
Bethany
|
pythondev_help_Bethany_2019-04-27T20:13:40.299100
| 1,556,396,020.2991 | 20,828 |
pythondev
|
help
|
right
|
2019-04-27T20:13:46.299400
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:13:46.299400
| 1,556,396,026.2994 | 20,829 |
pythondev
|
help
|
then I would suggest you change things so you don’t have to run that command with `sudo`
|
2019-04-27T20:13:46.299500
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:13:46.299500
| 1,556,396,026.2995 | 20,830 |
pythondev
|
help
|
that's not the issue.
|
2019-04-27T20:14:10.300200
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:14:10.300200
| 1,556,396,050.3002 | 20,831 |
pythondev
|
help
|
so it sounds to me you don't actually need a dictionary to store the user input, you could use a list or set
|
2019-04-27T20:14:16.300500
|
Bethany
|
pythondev_help_Bethany_2019-04-27T20:14:16.300500
| 1,556,396,056.3005 | 20,832 |
pythondev
|
help
|
the command runs fine when I deploy the code because the deploy script runs as root
|
2019-04-27T20:14:20.300700
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:14:20.300700
| 1,556,396,060.3007 | 20,833 |
pythondev
|
help
|
I was just trying to run it locally on EC2 so I didn't have to keep redeploying cause it saves me waiting for 4 damn minutes just to test changing bucket policies 50 times in a row lol
|
2019-04-27T20:15:13.302300
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:15:13.302300
| 1,556,396,113.3023 | 20,834 |
pythondev
|
help
|
yes, but the data does need to be ordered, like explicitly in that order `serialnumber, [test1], [test2], [test3]` arent sets unordered?
|
2019-04-27T20:15:49.303000
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:15:49.303000
| 1,556,396,149.303 | 20,835 |
pythondev
|
help
|
A set is unordered, yes.
|
2019-04-27T20:16:31.303400
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:16:31.303400
| 1,556,396,191.3034 | 20,836 |
pythondev
|
help
|
<@Priscilla> `from collections import OrderedDict` ftw!
|
2019-04-27T20:18:30.303800
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:18:30.303800
| 1,556,396,310.3038 | 20,837 |
pythondev
|
help
|
well, if you’re using python 3.6+, dicts are ordered by insertion
|
2019-04-27T20:19:20.304800
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:19:20.304800
| 1,556,396,360.3048 | 20,838 |
pythondev
|
help
|
3.6 made it an implementation detail, 3.7 finalized it in the spec
|
2019-04-27T20:19:34.305400
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:19:34.305400
| 1,556,396,374.3054 | 20,839 |
pythondev
|
help
|
if you need no duplicates but order doesn't matter, `Set`, if you need duplicates and order matters, `list`
|
2019-04-27T20:20:03.305700
|
Bethany
|
pythondev_help_Bethany_2019-04-27T20:20:03.305700
| 1,556,396,403.3057 | 20,840 |
pythondev
|
help
|
<@Hiroko> i thought that was a Cpython implementation detai
|
2019-04-27T20:20:18.306000
|
Bethany
|
pythondev_help_Bethany_2019-04-27T20:20:18.306000
| 1,556,396,418.306 | 20,841 |
pythondev
|
help
|
None
|
2019-04-27T20:20:25.306100
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:20:25.306100
| 1,556,396,425.3061 | 20,842 |
pythondev
|
help
|
in 3.6, yes
|
2019-04-27T20:20:28.306600
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:20:28.306600
| 1,556,396,428.3066 | 20,843 |
pythondev
|
help
|
but it's in the spec now?
|
2019-04-27T20:20:29.306700
|
Bethany
|
pythondev_help_Bethany_2019-04-27T20:20:29.306700
| 1,556,396,429.3067 | 20,844 |
pythondev
|
help
|
correct
|
2019-04-27T20:20:33.306900
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:20:33.306900
| 1,556,396,433.3069 | 20,845 |
pythondev
|
help
|
oh cool. Still will probably not assume it though
|
2019-04-27T20:20:46.307200
|
Bethany
|
pythondev_help_Bethany_2019-04-27T20:20:46.307200
| 1,556,396,446.3072 | 20,846 |
pythondev
|
help
|
>>>the insertion-order preservation nature of dict objects has been declared to be an official part of the Python language spec.
|
2019-04-27T20:21:03.307500
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:21:03.307500
| 1,556,396,463.3075 | 20,847 |
pythondev
|
help
|
<https://docs.python.org/3/whatsnew/3.7.html>
|
2019-04-27T20:21:07.307800
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:21:07.307800
| 1,556,396,467.3078 | 20,848 |
pythondev
|
help
|
ok so then lists it is
|
2019-04-27T20:21:14.308200
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:21:14.308200
| 1,556,396,474.3082 | 20,849 |
pythondev
|
help
|
list is a good default choice anyway.
|
2019-04-27T20:21:34.308900
|
Bethany
|
pythondev_help_Bethany_2019-04-27T20:21:34.308900
| 1,556,396,494.3089 | 20,850 |
pythondev
|
help
|
before, it was an implementation detail of cpython, which excludes pypy
|
2019-04-27T20:21:40.309100
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:21:40.309100
| 1,556,396,500.3091 | 20,851 |
pythondev
|
help
|
but now, its part of the spec
|
2019-04-27T20:21:46.309400
|
Hiroko
|
pythondev_help_Hiroko_2019-04-27T20:21:46.309400
| 1,556,396,506.3094 | 20,852 |
pythondev
|
help
|
i think i understand lists a little better than the other options
|
2019-04-27T20:21:53.309600
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:21:53.309600
| 1,556,396,513.3096 | 20,853 |
pythondev
|
help
|
Maybe I'm missing something cause I was half paying attention to your issue/goal <@Priscilla> but this seems kinda trivial to me...what is your goal for user input and what's the goal for output?
|
2019-04-27T20:23:43.310400
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:23:43.310400
| 1,556,396,623.3104 | 20,854 |
pythondev
|
help
|
are serialnumber1-4 supposed to be entered by the user?
|
2019-04-27T20:24:07.311000
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:24:07.311000
| 1,556,396,647.311 | 20,855 |
pythondev
|
help
|
The goal for input is the serial number of a device then running some functions against it and getting back a pass or fail for each 3 set of functions. Then displaying the serial number and 3 test results to the user. Apparently they will do these devices in a single batch of 10. So the amount of devices (serial number and test results in this convo) may not be a definitive number, ya know?
|
2019-04-27T20:28:18.315800
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:28:18.315800
| 1,556,396,898.3158 | 20,856 |
pythondev
|
help
|
does that make sense?
|
2019-04-27T20:28:33.316000
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:28:33.316000
| 1,556,396,913.316 | 20,857 |
pythondev
|
help
|
Trying to instantiate an 'argparse' object. Can I just use the built-in code , or do I need to build my own Class and add my own arguments ?
|
2019-04-27T20:29:09.316500
|
Clayton
|
pythondev_help_Clayton_2019-04-27T20:29:09.316500
| 1,556,396,949.3165 | 20,858 |
pythondev
|
help
|
<https://github.com/paulgureghian/MXNet_Projects/blob/master/MXNet_Gluon.ipynb>
|
2019-04-27T20:29:16.316700
|
Clayton
|
pythondev_help_Clayton_2019-04-27T20:29:16.316700
| 1,556,396,956.3167 | 20,859 |
pythondev
|
help
|
<@Bethany> lol well I know it's a permissions issue at least ... cause this works :smile:
```
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicPutObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::lfa-exports-staging/*"
}
]
}
```
|
2019-04-27T20:31:25.317400
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:31:25.317400
| 1,556,397,085.3174 | 20,860 |
pythondev
|
help
|
translation `run ALLOW_THE_WHOLE_WORLD_TO_WRITE_TO_MY_BUCKET.EXE`
|
2019-04-27T20:32:02.318100
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:32:02.318100
| 1,556,397,122.3181 | 20,861 |
pythondev
|
help
|
lol
|
2019-04-27T20:32:09.318300
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:32:09.318300
| 1,556,397,129.3183 | 20,862 |
pythondev
|
help
|
<@Priscilla> yea I get it now
|
2019-04-27T20:32:33.318500
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:32:33.318500
| 1,556,397,153.3185 | 20,863 |
pythondev
|
help
|
so...
|
2019-04-27T20:32:34.318700
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:32:34.318700
| 1,556,397,154.3187 | 20,864 |
pythondev
|
help
|
is there an upper limit?
|
2019-04-27T20:34:00.318900
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:34:00.318900
| 1,556,397,240.3189 | 20,865 |
pythondev
|
help
|
meaning, can they continue entering indefinitely, or should it stop them after `n` serial numbers?
|
2019-04-27T20:34:15.319400
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:34:15.319400
| 1,556,397,255.3194 | 20,866 |
pythondev
|
help
|
i am checking
|
2019-04-27T20:35:28.319800
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:35:28.319800
| 1,556,397,328.3198 | 20,867 |
pythondev
|
help
|
stop them after 10. No more than 10 can be used on the station right now.
|
2019-04-27T20:36:23.320500
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:36:23.320500
| 1,556,397,383.3205 | 20,868 |
pythondev
|
help
|
are serial numbers always numbers or can they have letters/chars too?
|
2019-04-27T20:38:04.320900
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:38:04.320900
| 1,556,397,484.3209 | 20,869 |
pythondev
|
help
|
letters too
|
2019-04-27T20:39:02.321400
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:39:02.321400
| 1,556,397,542.3214 | 20,870 |
pythondev
|
help
|
why do you ask?
|
2019-04-27T20:40:20.321600
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:40:20.321600
| 1,556,397,620.3216 | 20,871 |
pythondev
|
help
|
how about this for starters:
|
2019-04-27T20:44:09.321800
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:44:09.321800
| 1,556,397,849.3218 | 20,872 |
pythondev
|
help
|
*serials.py*
```
def get_serials():
list_of_serials = []
while True:
if len(list_of_serials) > 9:
return list_of_serials
ser_num = input('Enter serial number (enter "done" to exit): ')
if ser_num.lower() == 'done':
return list_of_serials
list_of_serials.append(ser_num)
return list_of_serials
serials = get_serials()
print(serials)
```
|
2019-04-27T20:44:24.322200
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:44:24.322200
| 1,556,397,864.3222 | 20,873 |
pythondev
|
help
|
```
C:\Users\Chris\Desktop>python serials.py
Enter serial number (enter "done" to exit: 12345
Enter serial number (enter "done" to exit: 1za54
Enter serial number (enter "done" to exit: 777879797
Enter serial number (enter "done" to exit: abcdef
Enter serial number (enter "done" to exit: done
['12345', '1za54', '777879797', 'abcdef']
C:\Users\Chris\Desktop>python serials.py
Enter serial number (enter "done" to exit: 12345
Enter serial number (enter "done" to exit: 445465
Enter serial number (enter "done" to exit: 121212
Enter serial number (enter "done" to exit: 12121
Enter serial number (enter "done" to exit: 45487
Enter serial number (enter "done" to exit: 12454
Enter serial number (enter "done" to exit: 561321
Enter serial number (enter "done" to exit: 545678
Enter serial number (enter "done" to exit: khfgkh
Enter serial number (enter "done" to exit: sdfhg
['12345', '445465', '121212', '12121', '45487', '12454', '561321', '545678', 'khfgkh', 'sdfhg']
C:\Users\Chris\Desktop>
```
|
2019-04-27T20:44:44.322400
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:44:44.322400
| 1,556,397,884.3224 | 20,874 |
pythondev
|
help
|
that will generate the list
|
2019-04-27T20:44:59.322600
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:44:59.322600
| 1,556,397,899.3226 | 20,875 |
pythondev
|
help
|
Random nitpick: You're missing a trailing paren.
|
2019-04-27T20:45:32.322900
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:45:32.322900
| 1,556,397,932.3229 | 20,876 |
pythondev
|
help
|
lol yea
|
2019-04-27T20:45:44.323400
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:45:44.323400
| 1,556,397,944.3234 | 20,877 |
pythondev
|
help
|
just fixed
|
2019-04-27T20:45:49.323900
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:45:49.323900
| 1,556,397,949.3239 | 20,878 |
pythondev
|
help
|
its beautiful
|
2019-04-27T20:45:50.324000
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:45:50.324000
| 1,556,397,950.324 | 20,879 |
pythondev
|
help
|
UX nitpick: Entering a blank line is also a standard way to say, "I'm done inputting data"
|
2019-04-27T20:46:08.324400
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:46:08.324400
| 1,556,397,968.3244 | 20,880 |
pythondev
|
help
|
good call!
|
2019-04-27T20:46:19.324800
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:46:19.324800
| 1,556,397,979.3248 | 20,881 |
pythondev
|
help
|
So maybe add a second check for empty input
|
2019-04-27T20:46:28.325300
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:46:28.325300
| 1,556,397,988.3253 | 20,882 |
pythondev
|
help
|
yeah but how often do you accidetaly press a button twice?
|
2019-04-27T20:46:33.325500
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:46:33.325500
| 1,556,397,993.3255 | 20,883 |
pythondev
|
help
|
^ also a good point lol
|
2019-04-27T20:46:44.325800
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:46:44.325800
| 1,556,398,004.3258 | 20,884 |
pythondev
|
help
|
if input == None: "are you sure, dumbass?"
|
2019-04-27T20:47:04.326500
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:47:04.326500
| 1,556,398,024.3265 | 20,885 |
pythondev
|
help
|
Unless there's some destructive operations happening, the worst that will happen is that they need to re-enter the serial numbers.
|
2019-04-27T20:47:08.326700
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:47:08.326700
| 1,556,398,028.3267 | 20,886 |
pythondev
|
help
|
True
|
2019-04-27T20:47:32.326900
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:47:32.326900
| 1,556,398,052.3269 | 20,887 |
pythondev
|
help
|
we can make this more elegant too...
|
2019-04-27T20:47:37.327100
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:47:37.327100
| 1,556,398,057.3271 | 20,888 |
pythondev
|
help
|
it can be MORE elegant?
|
2019-04-27T20:48:07.327700
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:48:07.327700
| 1,556,398,087.3277 | 20,889 |
pythondev
|
help
|
Looking at that, I'm 95% sure that if the user just copy-pastes multiple serial numbers as a block, one per line, it'll Just Work.
|
2019-04-27T20:48:43.328900
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:48:43.328900
| 1,556,398,123.3289 | 20,890 |
pythondev
|
help
|
this place is awesome you guys are so helpful
|
2019-04-27T20:49:42.329900
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:49:42.329900
| 1,556,398,182.3299 | 20,891 |
pythondev
|
help
|
learn so much here
|
2019-04-27T20:50:07.330400
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:50:07.330400
| 1,556,398,207.3304 | 20,892 |
pythondev
|
help
|
:parrot:
|
2019-04-27T20:50:19.330600
|
Priscilla
|
pythondev_help_Priscilla_2019-04-27T20:50:19.330600
| 1,556,398,219.3306 | 20,893 |
pythondev
|
help
|
you are correct joe
|
2019-04-27T20:55:54.330800
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:55:54.330800
| 1,556,398,554.3308 | 20,894 |
pythondev
|
help
|
I was trying to make it prettier from a UX perspective but it's taking too long lol
|
2019-04-27T20:56:09.331200
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:56:09.331200
| 1,556,398,569.3312 | 20,895 |
pythondev
|
help
|
```jciskey@fursnek:/tmp$ python3 serials.py
Enter serial number (enter "done" to exit): abcd
1234
quirkyquertyquotas
letsdothetimewarpagain
done
Enter serial number (enter "done" to exit): Enter serial number (enter "done" to exit): Enter serial number (enter "done" to exit): Enter serial number (enter "done" to exit): ['abcd', '1234', 'quirkyquertyquotas', 'letsdothetimewarpagain']```
|
2019-04-27T20:56:34.331400
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:56:34.331400
| 1,556,398,594.3314 | 20,896 |
pythondev
|
help
|
```
def get_serials():
list_of_serials = []
while True and len(list_of_serials) <= 10:
ser_num = input('Enter serial number (enter blank serial number to exit): ')
if not ser_num:
return list_of_serials
list_of_serials.append(ser_num)
return list_of_serials
serials = get_serials()
print(serials)
```
|
2019-04-27T20:57:41.331600
|
Frankie
|
pythondev_help_Frankie_2019-04-27T20:57:41.331600
| 1,556,398,661.3316 | 20,897 |
pythondev
|
help
|
Why not just `while len(list_of_serials) <= 9`?
|
2019-04-27T20:59:05.332100
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:59:05.332100
| 1,556,398,745.3321 | 20,898 |
pythondev
|
help
|
That's a valid boolean expression on it's own. No need for the `True` portion.
|
2019-04-27T20:59:34.332500
|
Carmen
|
pythondev_help_Carmen_2019-04-27T20:59:34.332500
| 1,556,398,774.3325 | 20,899 |
pythondev
|
help
|
```
def get_serials():
list_of_serials = []
while len(list_of_serials) < 10:
ser_num = input('Enter serial number (enter blank serial number to exit): ')
if not ser_num:
done = input('Are you sure you\'re done entering numbers? (y/n)').lower() == 'y'
if done:
return list_of_serials
continue
list_of_serials.append(ser_num)
return list_of_serials
serials = get_serials()
print(serials)
```
even better :slightly_smiling_face:
|
2019-04-27T21:01:24.332800
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:01:24.332800
| 1,556,398,884.3328 | 20,900 |
pythondev
|
help
|
Your loop is going to go for 11 serials at the worst case.
|
2019-04-27T21:01:44.333300
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:01:44.333300
| 1,556,398,904.3333 | 20,901 |
pythondev
|
help
|
```
C:\Users\Chris\Desktop>python serials.py
Enter serial number (enter blank serial number to exit):
Are you sure you're done entering numbers? (y/n)
Enter serial number (enter blank serial number to exit):
Are you sure you're done entering numbers? (y/n)
Enter serial number (enter blank serial number to exit): 123
Enter serial number (enter blank serial number to exit): abc
Enter serial number (enter blank serial number to exit): 124
Enter serial number (enter blank serial number to exit):
Are you sure you're done entering numbers? (y/n)y
['123', 'abc', '124']
```
|
2019-04-27T21:01:51.333600
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:01:51.333600
| 1,556,398,911.3336 | 20,902 |
pythondev
|
help
|
You want `<= 9` or `< 10`
|
2019-04-27T21:01:59.333900
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:01:59.333900
| 1,556,398,919.3339 | 20,903 |
pythondev
|
help
|
yea you're right that should be <=9
|
2019-04-27T21:02:00.334000
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:02:00.334000
| 1,556,398,920.334 | 20,904 |
pythondev
|
help
|
fixed :slightly_smiling_face:
|
2019-04-27T21:02:32.334500
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:02:32.334500
| 1,556,398,952.3345 | 20,905 |
pythondev
|
help
|
Honestly, I kinda like the version without the confirmation. It makes it easier for a power-user to copy-paste their data and cut their time typing.
|
2019-04-27T21:03:09.335300
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:03:09.335300
| 1,556,398,989.3353 | 20,906 |
pythondev
|
help
|
But I happen to be one of those. So it makes sense I'd want that.
|
2019-04-27T21:03:42.335700
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:03:42.335700
| 1,556,399,022.3357 | 20,907 |
pythondev
|
help
|
well, you could easily add a "mode" for "all at once" or "one at a time" and `python serials.py --mode aao`
|
2019-04-27T21:04:34.336500
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:04:34.336500
| 1,556,399,074.3365 | 20,908 |
pythondev
|
help
|
:slightly_smiling_face:
|
2019-04-27T21:04:36.336700
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:04:36.336700
| 1,556,399,076.3367 | 20,909 |
pythondev
|
help
|
then you could just ask them for a comma separated list of serials
|
2019-04-27T21:04:57.337200
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:04:57.337200
| 1,556,399,097.3372 | 20,910 |
pythondev
|
help
|
possibilities are really endless there lol but this is also only the first part of the question
|
2019-04-27T21:05:13.337900
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:05:13.337900
| 1,556,399,113.3379 | 20,911 |
pythondev
|
help
|
<@Priscilla> are you off and running now or do you need help turning the stuff into dicts too?
|
2019-04-27T21:05:27.338500
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:05:27.338500
| 1,556,399,127.3385 | 20,912 |
pythondev
|
help
|
I'm thinking in terms of "copy from a spreadsheet corporate sends over". Spreadsheet columns tend to be copied onto a clipboard as multiple lines separated by newlines.
|
2019-04-27T21:05:36.338800
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:05:36.338800
| 1,556,399,136.3388 | 20,913 |
pythondev
|
help
|
yeah I agree!
|
2019-04-27T21:05:50.339100
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:05:50.339100
| 1,556,399,150.3391 | 20,914 |
pythondev
|
help
|
I would def want to just copy/paste and dump it in
|
2019-04-27T21:05:57.339500
|
Frankie
|
pythondev_help_Frankie_2019-04-27T21:05:57.339500
| 1,556,399,157.3395 | 20,915 |
pythondev
|
help
|
The best UIs I've encountered didn't require separate modes, they just figure it out and work intuitively, power-user or not.
|
2019-04-27T21:06:22.340000
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:06:22.340000
| 1,556,399,182.34 | 20,916 |
pythondev
|
help
|
Maybe with a confirmation about intent if necessary.
|
2019-04-27T21:06:35.340300
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:06:35.340300
| 1,556,399,195.3403 | 20,917 |
pythondev
|
help
|
Though I suppose the confirmation here doesn't hurt too much.
|
2019-04-27T21:06:50.340600
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:06:50.340600
| 1,556,399,210.3406 | 20,918 |
pythondev
|
help
|
You end on the last blank newline and then just have to manually confirm you're done.
|
2019-04-27T21:07:07.341100
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:07:07.341100
| 1,556,399,227.3411 | 20,919 |
pythondev
|
help
|
Though yes, we're far afield from the original problem statement.
|
2019-04-27T21:07:38.341800
|
Carmen
|
pythondev_help_Carmen_2019-04-27T21:07:38.341800
| 1,556,399,258.3418 | 20,920 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.