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 | ok, i updated with code calling the functions, and an equally confusing error code | 2019-05-04T17:33:50.028400 | Priscilla | pythondev_help_Priscilla_2019-05-04T17:33:50.028400 | 1,556,991,230.0284 | 22,021 |
pythondev | help | still get error
`AttributeError: 'str' object has no attribute 'check_power_flags'` | 2019-05-04T18:27:00.029200 | Priscilla | pythondev_help_Priscilla_2019-05-04T18:27:00.029200 | 1,556,994,420.0292 | 22,022 |
pythondev | help | So, doing `BurnIn.report(s)` is calling the `report()` method on the class itself, rather than an initialized object, so `self` is being set to `s`, a string. | 2019-05-04T18:29:49.030300 | Sasha | pythondev_help_Sasha_2019-05-04T18:29:49.030300 | 1,556,994,589.0303 | 22,023 |
pythondev | help | You probably want something like:
```device = BurnIn(s)
print(device.report())``` | 2019-05-04T18:30:18.030900 | Sasha | pythondev_help_Sasha_2019-05-04T18:30:18.030900 | 1,556,994,618.0309 | 22,024 |
pythondev | help | ok im giving that a shot | 2019-05-04T18:31:27.031500 | Priscilla | pythondev_help_Priscilla_2019-05-04T18:31:27.031500 | 1,556,994,687.0315 | 22,025 |
pythondev | help | I'll also note that *once again* you are assigning `None` to a variable from the return value of `print()`. I highly recommend you get into the habit of searching for "= print" in your code and eliminating it wherever you find it, as it is *always wrong*. | 2019-05-04T18:32:47.032900 | Sasha | pythondev_help_Sasha_2019-05-04T18:32:47.032900 | 1,556,994,767.0329 | 22,026 |
pythondev | help | oh yeah, i copy and pasted that from older work i think | 2019-05-04T18:38:06.033600 | Priscilla | pythondev_help_Priscilla_2019-05-04T18:38:06.033600 | 1,556,995,086.0336 | 22,027 |
pythondev | help | Your `check_power_flags()` function should probably be using `self.` to access the serial number and test data, instead of being passed those as arguments. | 2019-05-04T18:41:45.035200 | Sasha | pythondev_help_Sasha_2019-05-04T18:41:45.035200 | 1,556,995,305.0352 | 22,028 |
pythondev | help | thats a good point, this gets me to my next step, thank you sir | 2019-05-04T18:48:52.036000 | Priscilla | pythondev_help_Priscilla_2019-05-04T18:48:52.036000 | 1,556,995,732.036 | 22,029 |
pythondev | help | i just realised each device will have its own com port to send data to/from | 2019-05-04T18:50:35.037200 | Priscilla | pythondev_help_Priscilla_2019-05-04T18:50:35.037200 | 1,556,995,835.0372 | 22,030 |
pythondev | help | crap lol i should have realised that earlier | 2019-05-04T18:51:33.037900 | Priscilla | pythondev_help_Priscilla_2019-05-04T18:51:33.037900 | 1,556,995,893.0379 | 22,031 |
pythondev | help | wait a minute... how can you write/read from 30 com ports on one machine? can a pc even do that? | 2019-05-04T18:55:14.038600 | Priscilla | pythondev_help_Priscilla_2019-05-04T18:55:14.038600 | 1,556,996,114.0386 | 22,032 |
pythondev | help | holy crap my pc has 256 com ports available... so i guess it can. | 2019-05-04T18:56:35.039300 | Priscilla | pythondev_help_Priscilla_2019-05-04T18:56:35.039300 | 1,556,996,195.0393 | 22,033 |
pythondev | help | Are these USB-connected devices, I assume? | 2019-05-04T19:01:45.039600 | Sasha | pythondev_help_Sasha_2019-05-04T19:01:45.039600 | 1,556,996,505.0396 | 22,034 |
pythondev | help | It may become difficult to know which serial is attached to which com port. So if there's any way to read off the serial number from the device itself, you might consider that. | 2019-05-04T19:05:56.041200 | Sasha | pythondev_help_Sasha_2019-05-04T19:05:56.041200 | 1,556,996,756.0412 | 22,035 |
pythondev | help | maybe when putting in serial numbers, those serial number become the name of the com ports, since its just a variable. | 2019-05-04T19:08:41.041900 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:08:41.041900 | 1,556,996,921.0419 | 22,036 |
pythondev | help | Well, I presume that eventually you will want to match up the test results to the actual hardware being tested? | 2019-05-04T19:09:48.042300 | Sasha | pythondev_help_Sasha_2019-05-04T19:09:48.042300 | 1,556,996,988.0423 | 22,037 |
pythondev | help | yes | 2019-05-04T19:10:45.042500 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:10:45.042500 | 1,556,997,045.0425 | 22,038 |
pythondev | help | So if you don't know which hardware is plugged into which com port... | 2019-05-04T19:11:01.042900 | Sasha | pythondev_help_Sasha_2019-05-04T19:11:01.042900 | 1,556,997,061.0429 | 22,039 |
pythondev | help | oh yeah | 2019-05-04T19:11:20.043100 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:11:20.043100 | 1,556,997,080.0431 | 22,040 |
pythondev | help | But i do know how many ports, and I will be allowed to define the order of inputting serial numbers. So if com ports 1-3 all apply to the first serial number and 4-6 apply to the second serial number, and so on until 10 serial numbers. | 2019-05-04T19:15:55.045400 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:15:55.045400 | 1,556,997,355.0454 | 22,041 |
pythondev | help | Depends on how the com ports get assigned, I guess. | 2019-05-04T19:16:54.046600 | Sasha | pythondev_help_Sasha_2019-05-04T19:16:54.046600 | 1,556,997,414.0466 | 22,042 |
pythondev | help | so then I need it to run this class on the first serial number (on each 3 ports within that class) and then iterate to the next serial number | 2019-05-04T19:17:09.046900 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:17:09.046900 | 1,556,997,429.0469 | 22,043 |
pythondev | help | what do you mean? | 2019-05-04T19:17:18.047100 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:17:18.047100 | 1,556,997,438.0471 | 22,044 |
pythondev | help | Well, if these are USB devices, the com ports would typically get dynamically assigned based on the order that things are plugged in, or discovered. If this is some special-purpose machine with 30 RS-232 ports on expansion cards, then the ports would probably correspond 1:1 with the physical connectors. I'm not sure what kind of devices you're dealing with. | 2019-05-04T19:18:42.048700 | Sasha | pythondev_help_Sasha_2019-05-04T19:18:42.048700 | 1,556,997,522.0487 | 22,045 |
pythondev | help | im sorry, the comports will not change, its usb to rs232 and the usb will stay in at all times with the rs232 only changing, and the pc doesnt even register that | 2019-05-04T19:20:27.049800 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:20:27.049800 | 1,556,997,627.0498 | 22,046 |
pythondev | help | com ports are static in this scenario, thank god lol | 2019-05-04T19:20:43.050300 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:20:43.050300 | 1,556,997,643.0503 | 22,047 |
pythondev | help | Gotcha. Just watch out for everything being maybe scrambled when you reboot. | 2019-05-04T19:21:36.050800 | Sasha | pythondev_help_Sasha_2019-05-04T19:21:36.050800 | 1,556,997,696.0508 | 22,048 |
pythondev | help | good point | 2019-05-04T19:21:55.051000 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:21:55.051000 | 1,556,997,715.051 | 22,049 |
pythondev | help | so then I could apply the serial numbers to a list, that list has 3 of the com ports and then within the class itterate the function through the list of serial numbers. | 2019-05-04T19:23:23.052500 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:23:23.052500 | 1,556,997,803.0525 | 22,050 |
pythondev | help | no outside of the class I would itterate serial numbers and within the class itterate com ports by 3 | 2019-05-04T19:24:05.053400 | Priscilla | pythondev_help_Priscilla_2019-05-04T19:24:05.053400 | 1,556,997,845.0534 | 22,051 |
pythondev | help | Each class instance would want to know its own serial number and the 3 ports it uses, yeah. | 2019-05-04T19:25:18.053900 | Sasha | pythondev_help_Sasha_2019-05-04T19:25:18.053900 | 1,556,997,918.0539 | 22,052 |
pythondev | help | :neutral_face: idk how to do this should i make a list within the `__init__` function so it is with the list of serial number, and test data? | 2019-05-04T20:20:27.055000 | Priscilla | pythondev_help_Priscilla_2019-05-04T20:20:27.055000 | 1,557,001,227.055 | 22,053 |
pythondev | help | (☞゚ヮ゚)☞ does not work | 2019-05-04T20:37:43.055400 | Priscilla | pythondev_help_Priscilla_2019-05-04T20:37:43.055400 | 1,557,002,263.0554 | 22,054 |
pythondev | help | What is the cheapest method for creating an empty bytes variable? | 2019-05-04T23:24:43.056400 | Conchita | pythondev_help_Conchita_2019-05-04T23:24:43.056400 | 1,557,012,283.0564 | 22,055 |
pythondev | help | The system I'm working with requires it, and speed is of the essence so want to reduce resources spent on it | 2019-05-04T23:25:52.057500 | Conchita | pythondev_help_Conchita_2019-05-04T23:25:52.057500 | 1,557,012,352.0575 | 22,056 |
pythondev | help | `current_best_option = b''` | 2019-05-04T23:26:47.058300 | Conchita | pythondev_help_Conchita_2019-05-04T23:26:47.058300 | 1,557,012,407.0583 | 22,057 |
pythondev | help | I wouldn't have expected much variation there, but `bytes()` does seem noticeably slower than the literal form. | 2019-05-04T23:34:46.059000 | Sasha | pythondev_help_Sasha_2019-05-04T23:34:46.059000 | 1,557,012,886.059 | 22,058 |
pythondev | help | However, do note that bytes variables are immutable, so you really only have to create one, and use it repeatedly. | 2019-05-04T23:35:37.060000 | Sasha | pythondev_help_Sasha_2019-05-04T23:35:37.060000 | 1,557,012,937.06 | 22,059 |
pythondev | help | Got it, will go with `current_best_option = b''` then | 2019-05-04T23:53:10.061100 | Conchita | pythondev_help_Conchita_2019-05-04T23:53:10.061100 | 1,557,013,990.0611 | 22,060 |
pythondev | help | Darn, I've missed the opportunity to give you some fake optimization advice, like, "Python stores variables alphabetically, so for extra speed you want to name everything `A`, `AA`, `AAA`, `AAAA`, etc." | 2019-05-05T00:01:03.062400 | Sasha | pythondev_help_Sasha_2019-05-05T00:01:03.062400 | 1,557,014,463.0624 | 22,061 |
pythondev | help | <@Conchita> are you sure that creating an empty bytes object is the most resourceful operation? | 2019-05-05T01:40:33.063200 | Chester | pythondev_help_Chester_2019-05-05T01:40:33.063200 | 1,557,020,433.0632 | 22,062 |
pythondev | help | I am very doubt about that | 2019-05-05T01:40:36.063400 | Chester | pythondev_help_Chester_2019-05-05T01:40:36.063400 | 1,557,020,436.0634 | 22,063 |
pythondev | help | I'm definitely not sure haha <@Chester> | 2019-05-05T03:12:31.064800 | Conchita | pythondev_help_Conchita_2019-05-05T03:12:31.064800 | 1,557,025,951.0648 | 22,064 |
pythondev | help | Have no experience with this. If you have any advice I'm happy to listen? | 2019-05-05T03:12:55.065300 | Conchita | pythondev_help_Conchita_2019-05-05T03:12:55.065300 | 1,557,025,975.0653 | 22,065 |
pythondev | help | You need to profile your code before making any performance assumptions :slightly_smiling_face: | 2019-05-05T03:32:23.065800 | Chester | pythondev_help_Chester_2019-05-05T03:32:23.065800 | 1,557,027,143.0658 | 22,066 |
pythondev | help | That makes total sense :slightly_smiling_face: What is your favourite method / procedure for profiling python code? | 2019-05-05T03:39:25.066700 | Conchita | pythondev_help_Conchita_2019-05-05T03:39:25.066700 | 1,557,027,565.0667 | 22,067 |
pythondev | help | I always start from <https://docs.python.org/3/library/profile.html> | 2019-05-05T03:45:37.067000 | Chester | pythondev_help_Chester_2019-05-05T03:45:37.067000 | 1,557,027,937.067 | 22,068 |
pythondev | help | Sweet, thanks <@Chester> this :taco: belongs to you | 2019-05-05T03:56:55.067600 | Conchita | pythondev_help_Conchita_2019-05-05T03:56:55.067600 | 1,557,028,615.0676 | 22,069 |
pythondev | help | Cool thing about programming is that you don't have to work too hard to learn something new every single day | 2019-05-05T03:57:24.068000 | Conchita | pythondev_help_Conchita_2019-05-05T03:57:24.068000 | 1,557,028,644.068 | 22,070 |
pythondev | help | good morning please i am not getting any luck understanding quantifiers ?,*,+ and {m,n} can someone please explain what its used for.thank you | 2019-05-05T04:04:39.069300 | Ena | pythondev_help_Ena_2019-05-05T04:04:39.069300 | 1,557,029,079.0693 | 22,071 |
pythondev | help | I'm working with webhooks and a bit confused about one thing. I need to allow for a flexible structure with the # of url parameters. For example it need to be able to get all the params in this case `<https://www.url.com?param1=this&param2=that&param3=butterfly>` and in this case `<https://www.url.com?param1=this&param2=that>`.
I use `source = request.args.get("source")` to get the parameter. I need to pass all these parameters to a function. Any advice on how to do this? | 2019-05-05T04:26:34.073300 | Conchita | pythondev_help_Conchita_2019-05-05T04:26:34.073300 | 1,557,030,394.0733 | 22,072 |
pythondev | help | Is this where I need to use *args and/or **kwargs? | 2019-05-05T04:26:59.073800 | Conchita | pythondev_help_Conchita_2019-05-05T04:26:59.073800 | 1,557,030,419.0738 | 22,073 |
pythondev | help | Just to make it clear the end goal here is to pass all the parameters to a list. This will be executed by a function, so I will need to pass these parameters as arguments to a function | 2019-05-05T04:28:26.075200 | Conchita | pythondev_help_Conchita_2019-05-05T04:28:26.075200 | 1,557,030,506.0752 | 22,074 |
pythondev | help | `dict.get` will always return something, so if you have something like
```
param1 = request.args.get('param1')
param2 = request.args.get('param2')
param3 = request.args.get('param3')
```
you will have all three variables instantiated. You can then pass them to a function as usual | 2019-05-05T04:30:41.076800 | Chester | pythondev_help_Chester_2019-05-05T04:30:41.076800 | 1,557,030,641.0768 | 22,075 |
pythondev | help | No need for `*args` or `**kwargs` | 2019-05-05T04:30:49.077100 | Chester | pythondev_help_Chester_2019-05-05T04:30:49.077100 | 1,557,030,649.0771 | 22,076 |
pythondev | help | ```
def some_function(param1, param2, param3):
...
``` | 2019-05-05T04:31:00.077400 | Chester | pythondev_help_Chester_2019-05-05T04:31:00.077400 | 1,557,030,660.0774 | 22,077 |
pythondev | help | ok, awesome! | 2019-05-05T04:32:05.077700 | Conchita | pythondev_help_Conchita_2019-05-05T04:32:05.077700 | 1,557,030,725.0777 | 22,078 |
pythondev | help | Thanks | 2019-05-05T04:32:32.078300 | Conchita | pythondev_help_Conchita_2019-05-05T04:32:32.078300 | 1,557,030,752.0783 | 22,079 |
pythondev | help | One more question related to the last one. ```def upsource(request, target1, target2, target3, target4):
request_json = request.get_json(silent=True)
name = request_json['name']
message = request_json['message']
signal = {
'title': name,
'message': message,
'source': 'upsource',
'target': {target1, target2, target3, target4},
'extra': 'fwfw'
}
signal = json.dumps(signal)
return signal```
The array of `target`, is of type `<set>`. I need to pass string values only. I thought `signal = json.dumps(signal)` would convert it all to string, but it seems not. Any advice on how to store the function arguments in the `target` array like string, or convert to string? | 2019-05-05T05:12:42.081500 | Conchita | pythondev_help_Conchita_2019-05-05T05:12:42.081500 | 1,557,033,162.0815 | 22,080 |
pythondev | help | Why it is a set? | 2019-05-05T05:13:50.081900 | Chester | pythondev_help_Chester_2019-05-05T05:13:50.081900 | 1,557,033,230.0819 | 22,081 |
pythondev | help | I'm not sure. I just ran `print(type(signal['target']))` and got `<class 'set'>` | 2019-05-05T05:14:51.082500 | Conchita | pythondev_help_Conchita_2019-05-05T05:14:51.082500 | 1,557,033,291.0825 | 22,082 |
pythondev | help | Well, you specified it. `{foo, bar, baz}` is for making sets. | 2019-05-05T05:15:28.082900 | Chester | pythondev_help_Chester_2019-05-05T05:15:28.082900 | 1,557,033,328.0829 | 22,083 |
pythondev | help | You can't randomly insert symbols without putting any particular meaning, can you? | 2019-05-05T05:16:00.083600 | Chester | pythondev_help_Chester_2019-05-05T05:16:00.083600 | 1,557,033,360.0836 | 22,084 |
pythondev | help | Sorry, I don't follow? It is the first time I ever encountered `<class 'set'>` | 2019-05-05T05:17:15.084300 | Conchita | pythondev_help_Conchita_2019-05-05T05:17:15.084300 | 1,557,033,435.0843 | 22,085 |
pythondev | help | I was expecting an array | 2019-05-05T05:17:29.084700 | Conchita | pythondev_help_Conchita_2019-05-05T05:17:29.084700 | 1,557,033,449.0847 | 22,086 |
pythondev | help | An array? A list maybe? :slightly_smiling_face: | 2019-05-05T05:18:06.085000 | Chester | pythondev_help_Chester_2019-05-05T05:18:06.085000 | 1,557,033,486.085 | 22,087 |
pythondev | help | You build lists with `[]`, not `{}` | 2019-05-05T05:18:13.085300 | Chester | pythondev_help_Chester_2019-05-05T05:18:13.085300 | 1,557,033,493.0853 | 22,088 |
pythondev | help | Right - let me try that | 2019-05-05T05:18:59.085700 | Conchita | pythondev_help_Conchita_2019-05-05T05:18:59.085700 | 1,557,033,539.0857 | 22,089 |
pythondev | help | My colleagues are javascript heavy, so thats why I mixed array and list up :slightly_smiling_face: | 2019-05-05T05:20:27.086700 | Conchita | pythondev_help_Conchita_2019-05-05T05:20:27.086700 | 1,557,033,627.0867 | 22,090 |
pythondev | help | That resulted in a TypeError as all my data need to be text string | 2019-05-05T05:22:32.087300 | Conchita | pythondev_help_Conchita_2019-05-05T05:22:32.087300 | 1,557,033,752.0873 | 22,091 |
pythondev | help | Its a requirement for the system I'm passing the data onto | 2019-05-05T05:25:11.088100 | Conchita | pythondev_help_Conchita_2019-05-05T05:25:11.088100 | 1,557,033,911.0881 | 22,092 |
pythondev | help | How can I hack this so I can pass a list as a value then? | 2019-05-05T05:25:26.088500 | Conchita | pythondev_help_Conchita_2019-05-05T05:25:26.088500 | 1,557,033,926.0885 | 22,093 |
pythondev | help | I'm not sure. Maybe you need to `','.join` that list | 2019-05-05T05:27:36.089300 | Chester | pythondev_help_Chester_2019-05-05T05:27:36.089300 | 1,557,034,056.0893 | 22,094 |
pythondev | help | I don't know how your frontend processes that value so I don't have the answer | 2019-05-05T05:27:52.089700 | Chester | pythondev_help_Chester_2019-05-05T05:27:52.089700 | 1,557,034,072.0897 | 22,095 |
pythondev | help | <@Conchita> a set is basically a list. The only difference is that a set only allows "hashable" things, and it only allows things with unique hashes. Basically, it's a list that prevents duplicates | 2019-05-05T09:01:32.092000 | Ashley | pythondev_help_Ashley_2019-05-05T09:01:32.092000 | 1,557,046,892.092 | 22,096 |
pythondev | help | I don't think the web development community ever came to a conclusion on how to handle this in a unified fashion. I would use the `requests` library and create a simple request where you pass a dict to the `params` argument with one value being a list of stuff | 2019-05-05T09:06:33.095100 | Ashley | pythondev_help_Ashley_2019-05-05T09:06:33.095100 | 1,557,047,193.0951 | 22,097 |
pythondev | help | You can then look at how it handled it | 2019-05-05T09:06:50.095600 | Ashley | pythondev_help_Ashley_2019-05-05T09:06:50.095600 | 1,557,047,210.0956 | 22,098 |
pythondev | help | Sets also follow the mathematics of set theory, and provide operators from that domain - union, intersection, distinction, etc | 2019-05-05T09:09:22.100000 | Clemmie | pythondev_help_Clemmie_2019-05-05T09:09:22.100000 | 1,557,047,362.1 | 22,099 |
pythondev | help | So something like this:
```
r = requests.get("<https://google.com>", params={"a": 3, "b": ["xyz", "abc"]})
print (r.request.url)
``` | 2019-05-05T09:09:29.100300 | Ashley | pythondev_help_Ashley_2019-05-05T09:09:29.100300 | 1,557,047,369.1003 | 22,100 |
pythondev | help | That too. Comes in handy for a lot of things | 2019-05-05T09:09:51.100800 | Ashley | pythondev_help_Ashley_2019-05-05T09:09:51.100800 | 1,557,047,391.1008 | 22,101 |
pythondev | help | <@Clemmie> :taco: | 2019-05-05T09:10:03.101100 | Ashley | pythondev_help_Ashley_2019-05-05T09:10:03.101100 | 1,557,047,403.1011 | 22,102 |
pythondev | help | <@Conchita> what you're looking at is called the "query string", and there's already libraries built in that know how to parse it if it's incoming(urllib), or third party ones that can generate the URL for requests you want to make (requests), so I wouldn't try to reinvent the wheel there. But I would keep in mind that different frontend frameworks will handle it different ways | 2019-05-05T09:16:11.105900 | Ashley | pythondev_help_Ashley_2019-05-05T09:16:11.105900 | 1,557,047,771.1059 | 22,103 |
pythondev | help | no help ????? | 2019-05-05T10:34:54.106700 | Ena | pythondev_help_Ena_2019-05-05T10:34:54.106700 | 1,557,052,494.1067 | 22,104 |
pythondev | help | can someone explain quantifiers please thanks in advance | 2019-05-05T10:35:47.107500 | Ena | pythondev_help_Ena_2019-05-05T10:35:47.107500 | 1,557,052,547.1075 | 22,105 |
pythondev | help | can some one please help me understanding this javascript code | 2019-05-05T10:36:04.108000 | Bart | pythondev_help_Bart_2019-05-05T10:36:04.108000 | 1,557,052,564.108 | 22,106 |
pythondev | help | ```valueFrom:
${
for(var i=0;i<self.length;i++){self[i] = self[i].reverse()}
return(self)
}``` | 2019-05-05T10:36:11.108400 | Bart | pythondev_help_Bart_2019-05-05T10:36:11.108400 | 1,557,052,571.1084 | 22,107 |
pythondev | help | <@Ena> what's the context? like, in regular expressions? | 2019-05-05T10:36:14.108600 | Jettie | pythondev_help_Jettie_2019-05-05T10:36:14.108600 | 1,557,052,574.1086 | 22,108 |
pythondev | help | <@Jettie> my tutorial stated that quantifiers tell the regex engine to match a certain quantity of characters. it as stated that examples of quantifers where: ? which uses 0 or 1 times to match characters. | 2019-05-05T10:40:31.111500 | Ena | pythondev_help_Ena_2019-05-05T10:40:31.111500 | 1,557,052,831.1115 | 22,109 |
pythondev | help | right, so
`?` means that "something" can either occur once, or not at all
`*` means that "something" can occur in any amount, or not at all
and `{M, N}` means that it can occur between M and N times | 2019-05-05T10:42:25.113300 | Jettie | pythondev_help_Jettie_2019-05-05T10:42:25.113300 | 1,557,052,945.1133 | 22,110 |
pythondev | help | like `a{2,3}` works for `aa` and `aaa`, but not `a` or `aaaa` | 2019-05-05T10:43:02.114100 | Jettie | pythondev_help_Jettie_2019-05-05T10:43:02.114100 | 1,557,052,982.1141 | 22,111 |
pythondev | help | <@Jettie> oh now i get it. thank you so much | 2019-05-05T10:44:24.116200 | Ena | pythondev_help_Ena_2019-05-05T10:44:24.116200 | 1,557,053,064.1162 | 22,112 |
pythondev | help | <@Bart> it basically calls the function `reverse` on all items in an array. What the implementation of `reverse`, and how the code is called are hard to say with the given context | 2019-05-05T10:46:09.118600 | Hiroko | pythondev_help_Hiroko_2019-05-05T10:46:09.118600 | 1,557,053,169.1186 | 22,113 |
pythondev | help | i see | 2019-05-05T10:48:45.119500 | Bart | pythondev_help_Bart_2019-05-05T10:48:45.119500 | 1,557,053,325.1195 | 22,114 |
pythondev | help | Yep, `?` means 0 or 1, `*` means 0 or many, `+` means 1 or many. | 2019-05-05T10:49:08.119900 | Hsiu | pythondev_help_Hsiu_2019-05-05T10:49:08.119900 | 1,557,053,348.1199 | 22,115 |
pythondev | help | What prompted the question? | 2019-05-05T10:49:41.120800 | Hiroko | pythondev_help_Hiroko_2019-05-05T10:49:41.120800 | 1,557,053,381.1208 | 22,116 |
pythondev | help | And as <@Jettie> mentions, `{n,m}` is like the above, but with stricter control over the specific numbers. | 2019-05-05T10:49:46.120900 | Hsiu | pythondev_help_Hsiu_2019-05-05T10:49:46.120900 | 1,557,053,386.1209 | 22,117 |
pythondev | help | <https://regexone.com/lesson/repeating_characters> might be of some additional use. :slightly_smiling_face: | 2019-05-05T10:50:33.121100 | Hsiu | pythondev_help_Hsiu_2019-05-05T10:50:33.121100 | 1,557,053,433.1211 | 22,118 |
pythondev | help | ok thanks for the help you are life saver:+1: | 2019-05-05T10:52:11.121500 | Ena | pythondev_help_Ena_2019-05-05T10:52:11.121500 | 1,557,053,531.1215 | 22,119 |
pythondev | help | trying to use cwl which uses javascript | 2019-05-05T11:15:36.122200 | Bart | pythondev_help_Bart_2019-05-05T11:15:36.122200 | 1,557,054,936.1222 | 22,120 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.