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 | right | 2017-12-18T15:45:32.000470 | Fabian | pythondev_help_Fabian_2017-12-18T15:45:32.000470 | 1,513,611,932.00047 | 104,803 |
pythondev | help | you can do `int(input("number here"))` | 2017-12-18T15:45:42.000317 | Myong | pythondev_help_Myong_2017-12-18T15:45:42.000317 | 1,513,611,942.000317 | 104,804 |
pythondev | help | hooray | 2017-12-18T15:45:48.000410 | Fabian | pythondev_help_Fabian_2017-12-18T15:45:48.000410 | 1,513,611,948.00041 | 104,805 |
pythondev | help | thank you dude i appreciate it | 2017-12-18T15:45:56.000026 | Fabian | pythondev_help_Fabian_2017-12-18T15:45:56.000026 | 1,513,611,956.000026 | 104,806 |
pythondev | help | No problem | 2017-12-18T15:46:02.000403 | Myong | pythondev_help_Myong_2017-12-18T15:46:02.000403 | 1,513,611,962.000403 | 104,807 |
pythondev | help | so would I need the results folder built first here? I figured it just could have created it automatically | 2017-12-18T15:48:50.000340 | Fabian | pythondev_help_Fabian_2017-12-18T15:48:50.000340 | 1,513,612,130.00034 | 104,808 |
pythondev | help | ```Traceback (most recent call last):
File ".\counter-cutter-beta.py", line 53, in <module>
crop.save(save_at_template.format(frame_num))
File "C:\Users\lerug\AppData\Local\Programs\Python\Python36-32\lib\site-packages\PIL\Image.py", line 1925, in save
fp = builtins.open(filename, "w+b")
FileNotFoundE... | 2017-12-18T15:48:57.000131 | Fabian | pythondev_help_Fabian_2017-12-18T15:48:57.000131 | 1,513,612,137.000131 | 104,809 |
pythondev | help | yeah that was it | 2017-12-18T15:54:16.000494 | Fabian | pythondev_help_Fabian_2017-12-18T15:54:16.000494 | 1,513,612,456.000494 | 104,810 |
pythondev | help | its working, though it didn't cut the counters right, but thats probably just becasue I had the wrong numbers, thank you! | 2017-12-18T15:54:45.000167 | Fabian | pythondev_help_Fabian_2017-12-18T15:54:45.000167 | 1,513,612,485.000167 | 104,811 |
pythondev | help | Hey <@Fabian> that issue may have been due to the directory results not existing | 2017-12-18T16:03:33.000388 | Myong | pythondev_help_Myong_2017-12-18T16:03:33.000388 | 1,513,613,013.000388 | 104,812 |
pythondev | help | Something like this for setup would build it for you
``` import os
if not os.path.exists(dir):
os.makedirs(dir)``` | 2017-12-18T16:04:03.000387 | Myong | pythondev_help_Myong_2017-12-18T16:04:03.000387 | 1,513,613,043.000387 | 104,813 |
pythondev | help | thank you! | 2017-12-18T16:10:01.000317 | Fabian | pythondev_help_Fabian_2017-12-18T16:10:01.000317 | 1,513,613,401.000317 | 104,814 |
pythondev | help | These are just conventions, you don’t have to use `_variables` at all if you don’t want to. They can be useful to communicate your intentions to someone using your code, but a lot of people don’t bother with them. | 2017-12-19T00:18:46.000134 | Junita | pythondev_help_Junita_2017-12-19T00:18:46.000134 | 1,513,642,726.000134 | 104,815 |
pythondev | help | how to uninstall anaconda from computer and reinstall miniconda with everything working and intact | 2017-12-19T00:22:29.000197 | Malorie | pythondev_help_Malorie_2017-12-19T00:22:29.000197 | 1,513,642,949.000197 | 104,816 |
pythondev | help | <@Junita> Thanks for the reply. I was just worried that I didn't understand the logic of why the same person used it in one place and not another but your probably right its not something to lose sleep over | 2017-12-19T00:26:14.000030 | Callie | pythondev_help_Callie_2017-12-19T00:26:14.000030 | 1,513,643,174.00003 | 104,817 |
pythondev | help | yeah given that it’s convention you’ll find even individual people use it inconsistently | 2017-12-19T00:27:41.000088 | Junita | pythondev_help_Junita_2017-12-19T00:27:41.000088 | 1,513,643,261.000088 | 104,818 |
pythondev | help | I honestly just don’t bother most of the time anymore, although I’ve always found the idea of protected data kind of silly | 2017-12-19T00:28:07.000103 | Junita | pythondev_help_Junita_2017-12-19T00:28:07.000103 | 1,513,643,287.000103 | 104,819 |
pythondev | help | things like `.x` and `.y` are often accessed from outside a class, where something like `_cards` is meant to track an internal state | 2017-12-19T00:36:04.000079 | Marcie | pythondev_help_Marcie_2017-12-19T00:36:04.000079 | 1,513,643,764.000079 | 104,820 |
pythondev | help | iknow the problem is the root.after cmd but don´t know how to fix it | 2017-12-19T03:05:27.000248 | Marg | pythondev_help_Marg_2017-12-19T03:05:27.000248 | 1,513,652,727.000248 | 104,821 |
pythondev | help | Hello, someone could help me to figure out one problem? | 2017-12-19T04:55:43.000311 | Hank | pythondev_help_Hank_2017-12-19T04:55:43.000311 | 1,513,659,343.000311 | 104,822 |
pythondev | help | probably | 2017-12-19T05:03:19.000285 | Suellen | pythondev_help_Suellen_2017-12-19T05:03:19.000285 | 1,513,659,799.000285 | 104,823 |
pythondev | help | if you asked a question that is :) | 2017-12-19T05:03:28.000146 | Suellen | pythondev_help_Suellen_2017-12-19T05:03:28.000146 | 1,513,659,808.000146 | 104,824 |
pythondev | help | My question is concerning some kind of bug that I could not understand and maybe because of my few experience with processes in Python. I am scraping data from one website called <http://castorama.fr|castorama.fr> and in my script I am printing just to show for me the products that I inserted to my database. I am using... | 2017-12-19T05:10:58.000154 | Hank | pythondev_help_Hank_2017-12-19T05:10:58.000154 | 1,513,660,258.000154 | 104,825 |
pythondev | help | Sometimes it blocks and it does not print anymore products despite the fact that there are more. I should Ctrl-C to stop. | 2017-12-19T05:12:23.000056 | Hank | pythondev_help_Hank_2017-12-19T05:12:23.000056 | 1,513,660,343.000056 | 104,826 |
pythondev | help | p = multiprocessing.Pool(processes=4)
magasins = magasin_ids()
p.map(get_all_data,magasins)
p.close()
p.join() | 2017-12-19T05:13:27.000044 | Hank | pythondev_help_Hank_2017-12-19T05:13:27.000044 | 1,513,660,407.000044 | 104,827 |
pythondev | help | This is my main function. My question is there any possibility to be the processes that I am using not to be synchronized at some point ? | 2017-12-19T05:14:48.000111 | Hank | pythondev_help_Hank_2017-12-19T05:14:48.000111 | 1,513,660,488.000111 | 104,828 |
pythondev | help | :thinking_face: | 2017-12-19T05:15:48.000380 | Suellen | pythondev_help_Suellen_2017-12-19T05:15:48.000380 | 1,513,660,548.00038 | 104,829 |
pythondev | help | when I stop with the problem the message is : ^CProcess ForkPoolWorker-6:
Process ForkPoolWorker-7:
Process ForkPoolWorker-5:
Process ForkPoolWorker-2:
Traceback (most recent call last):
File "castorama.py", line 261, in <module>
main()
File "castorama.py", line 255, in main
p.map(get_all_data... | 2017-12-19T05:16:08.000048 | Hank | pythondev_help_Hank_2017-12-19T05:16:08.000048 | 1,513,660,568.000048 | 104,830 |
pythondev | help | It looks OK | 2017-12-19T05:16:19.000195 | Suellen | pythondev_help_Suellen_2017-12-19T05:16:19.000195 | 1,513,660,579.000195 | 104,831 |
pythondev | help | Not that 1000 lines of stack trace :) | 2017-12-19T05:16:31.000119 | Suellen | pythondev_help_Suellen_2017-12-19T05:16:31.000119 | 1,513,660,591.000119 | 104,832 |
pythondev | help | well, does it block on close or join? | 2017-12-19T05:16:55.000008 | Suellen | pythondev_help_Suellen_2017-12-19T05:16:55.000008 | 1,513,660,615.000008 | 104,833 |
pythondev | help | i.e., if you do a `print('just before join')` and same after join, you could see that it blocks on join or on close | 2017-12-19T05:17:31.000333 | Suellen | pythondev_help_Suellen_2017-12-19T05:17:31.000333 | 1,513,660,651.000333 | 104,834 |
pythondev | help | that's expected since it's waiting for all tasks to finish | 2017-12-19T05:17:40.000133 | Suellen | pythondev_help_Suellen_2017-12-19T05:17:40.000133 | 1,513,660,660.000133 | 104,835 |
pythondev | help | Is that mean that a process didn't finish? | 2017-12-19T05:22:21.000026 | Hank | pythondev_help_Hank_2017-12-19T05:22:21.000026 | 1,513,660,941.000026 | 104,836 |
pythondev | help | not yet | 2017-12-19T05:22:43.000068 | Suellen | pythondev_help_Suellen_2017-12-19T05:22:43.000068 | 1,513,660,963.000068 | 104,837 |
pythondev | help | it depends on how long it blocks on close & join | 2017-12-19T05:22:55.000078 | Suellen | pythondev_help_Suellen_2017-12-19T05:22:55.000078 | 1,513,660,975.000078 | 104,838 |
pythondev | help | if it's too much maybe something is wrong | 2017-12-19T05:23:04.000335 | Suellen | pythondev_help_Suellen_2017-12-19T05:23:04.000335 | 1,513,660,984.000335 | 104,839 |
pythondev | help | I am using 4 processes to a list with 102 elements | 2017-12-19T05:23:26.000120 | Hank | pythondev_help_Hank_2017-12-19T05:23:26.000120 | 1,513,661,006.00012 | 104,840 |
pythondev | help | The saddest thing is that for 90 elements it collects the information perfectly but after that it blocks. | 2017-12-19T05:24:31.000255 | Hank | pythondev_help_Hank_2017-12-19T05:24:31.000255 | 1,513,661,071.000255 | 104,841 |
pythondev | help | hm.. maybe the task hangs and it's a good idea to track execution of the tasks themselves | 2017-12-19T05:25:27.000357 | Suellen | pythondev_help_Suellen_2017-12-19T05:25:27.000357 | 1,513,661,127.000357 | 104,842 |
pythondev | help | I added print before join and after but it is blocked right now and doesn't print anything | 2017-12-19T07:22:27.000333 | Hank | pythondev_help_Hank_2017-12-19T07:22:27.000333 | 1,513,668,147.000333 | 104,843 |
pythondev | help | so it blocks on close? | 2017-12-19T07:47:35.000071 | Suellen | pythondev_help_Suellen_2017-12-19T07:47:35.000071 | 1,513,669,655.000071 | 104,844 |
pythondev | help | I'm 90% sure a task just hangs for whatever reason | 2017-12-19T07:47:46.000413 | Suellen | pythondev_help_Suellen_2017-12-19T07:47:46.000413 | 1,513,669,666.000413 | 104,845 |
pythondev | help | how complex is the worker func? | 2017-12-19T07:47:54.000090 | Suellen | pythondev_help_Suellen_2017-12-19T07:47:54.000090 | 1,513,669,674.00009 | 104,846 |
pythondev | help | it depends on 3-4 functions which are relatively simple for execution | 2017-12-19T07:52:46.000267 | Hank | pythondev_help_Hank_2017-12-19T07:52:46.000267 | 1,513,669,966.000267 | 104,847 |
pythondev | help | there is also a connection to database | 2017-12-19T07:53:12.000171 | Hank | pythondev_help_Hank_2017-12-19T07:53:12.000171 | 1,513,669,992.000171 | 104,848 |
pythondev | help | maybe it could bug on connecting to database so all the other workers wait for him | 2017-12-19T07:56:36.000282 | Hank | pythondev_help_Hank_2017-12-19T07:56:36.000282 | 1,513,670,196.000282 | 104,849 |
pythondev | help | it would be an idea to put print ("connect successful!!") after the connection to mysql | 2017-12-19T08:02:04.000316 | Hank | pythondev_help_Hank_2017-12-19T08:02:04.000316 | 1,513,670,524.000316 | 104,850 |
pythondev | help | tips for beginners ? | 2017-12-19T08:57:33.000261 | Ulysses | pythondev_help_Ulysses_2017-12-19T08:57:33.000261 | 1,513,673,853.000261 | 104,851 |
pythondev | help | <@Bennie> can you be more specific | 2017-12-19T10:19:16.000033 | Glinda | pythondev_help_Glinda_2017-12-19T10:19:16.000033 | 1,513,678,756.000033 | 104,852 |
pythondev | help | If you're new to python two things I can recommend:
1. Write as much python as you can
2. Read as much of other people's python as you can.
1-> come up with things you want to do in python. Automate tasks, build webpages, play with all the python standard library modules. | 2017-12-19T10:23:16.000145 | Glinda | pythondev_help_Glinda_2017-12-19T10:23:16.000145 | 1,513,678,996.000145 | 104,853 |
pythondev | help | 2-> <#C07EFMZ1N|help>, <#C07EW4DNE|learning_python> , <#C1PB8ME48|sqlalchemy> , and a bunch of other channels will introduce you to new python just by reading others questions. Also reddit's /r/learnpython is pretty good | 2017-12-19T10:24:12.000212 | Glinda | pythondev_help_Glinda_2017-12-19T10:24:12.000212 | 1,513,679,052.000212 | 104,854 |
pythondev | help | are there any proficient search engineers here? Having some issues figuring how to fine-tune queries | 2017-12-19T12:31:50.000153 | Meg | pythondev_help_Meg_2017-12-19T12:31:50.000153 | 1,513,686,710.000153 | 104,855 |
pythondev | help | specifically, we have around 23 million web pages of US college catalogs indexed in a solr search engine, and I’m trying to figure a way to specify whether to look for course descriptions or program details | 2017-12-19T12:32:44.000534 | Meg | pythondev_help_Meg_2017-12-19T12:32:44.000534 | 1,513,686,764.000534 | 104,856 |
pythondev | help | data indexed is in the document format
```
{
'content': plain text from html page with all tags stripped,
'path': URL to page on S3 bucket,
'title': page title
'institution': institution name
'catalog_year': academic year of this catalog
'catalog_id': database id for this catalog
}
``` | 2017-12-19T12:34:53.000190 | Meg | pythondev_help_Meg_2017-12-19T12:34:53.000190 | 1,513,686,893.00019 | 104,857 |
pythondev | help | so, lets say a user is looking for `chemistry`, and a checkbox indicates that they’re specifically looking for program details | 2017-12-19T12:35:37.000045 | Meg | pythondev_help_Meg_2017-12-19T12:35:37.000045 | 1,513,686,937.000045 | 104,858 |
pythondev | help | I’m considering constructing a query like `content:chemistry^1.5 and content:program^1.5` | 2017-12-19T12:38:31.000152 | Meg | pythondev_help_Meg_2017-12-19T12:38:31.000152 | 1,513,687,111.000152 | 104,859 |
pythondev | help | am I on the right track? | 2017-12-19T12:38:38.000443 | Meg | pythondev_help_Meg_2017-12-19T12:38:38.000443 | 1,513,687,118.000443 | 104,860 |
pythondev | help | is it possible for python to open vmware workstation and access the cmd? for example i want python to open vmware app and go through the vm to the cmd and run a command | 2017-12-19T12:41:17.000509 | Lilliam | pythondev_help_Lilliam_2017-12-19T12:41:17.000509 | 1,513,687,277.000509 | 104,861 |
pythondev | help | maybe | 2017-12-19T12:44:42.000474 | Meg | pythondev_help_Meg_2017-12-19T12:44:42.000474 | 1,513,687,482.000474 | 104,862 |
pythondev | help | <https://github.com/vmware/pyvmomi> | 2017-12-19T12:44:43.000457 | Meg | pythondev_help_Meg_2017-12-19T12:44:43.000457 | 1,513,687,483.000457 | 104,863 |
pythondev | help | ok, need some quick help, if anyone is a bash fiend. I have an env var JOB_ID, and I want to concat it with `_default`, so basically `echo "($JOB_ID)_default"`, except the parens dont get pulled out | 2017-12-19T13:32:02.000033 | Signe | pythondev_help_Signe_2017-12-19T13:32:02.000033 | 1,513,690,322.000033 | 104,864 |
pythondev | help | ```
λ ~ JOB_ID=5
λ ~ echo "($JOB_ID)_default"
(5)_default
λ ~ echo "${JOB_ID}_default"
5_default
``` | 2017-12-19T13:38:21.000395 | Suellen | pythondev_help_Suellen_2017-12-19T13:38:21.000395 | 1,513,690,701.000395 | 104,865 |
pythondev | help | whaaaaat shell is that? | 2017-12-19T13:38:53.000373 | Susann | pythondev_help_Susann_2017-12-19T13:38:53.000373 | 1,513,690,733.000373 | 104,866 |
pythondev | help | zsh | 2017-12-19T13:39:12.000230 | Suellen | pythondev_help_Suellen_2017-12-19T13:39:12.000230 | 1,513,690,752.00023 | 104,867 |
pythondev | help | but it is bash-compatible | 2017-12-19T13:39:42.000785 | Suellen | pythondev_help_Suellen_2017-12-19T13:39:42.000785 | 1,513,690,782.000785 | 104,868 |
pythondev | help | ```
leovp@minty ~ $ JOB_ID=5
leovp@minty ~ $ echo "($JOB_ID)_default"
(5)_default
leovp@minty ~ $ echo "${JOB_ID}_default"
5_default
``` | 2017-12-19T13:39:46.000052 | Suellen | pythondev_help_Suellen_2017-12-19T13:39:46.000052 | 1,513,690,786.000052 | 104,869 |
pythondev | help | interesting format! yah I'm a fish user | 2017-12-19T13:39:51.000330 | Susann | pythondev_help_Susann_2017-12-19T13:39:51.000330 | 1,513,690,791.00033 | 104,870 |
pythondev | help | I don't like fish | 2017-12-19T13:40:10.000093 | Suellen | pythondev_help_Suellen_2017-12-19T13:40:10.000093 | 1,513,690,810.000093 | 104,871 |
pythondev | help | too many bones and just.. dunno | 2017-12-19T13:40:19.000090 | Suellen | pythondev_help_Suellen_2017-12-19T13:40:19.000090 | 1,513,690,819.00009 | 104,872 |
pythondev | help | <@Suellen> :taco: | 2017-12-19T13:43:20.000867 | Signe | pythondev_help_Signe_2017-12-19T13:43:20.000867 | 1,513,691,000.000867 | 104,873 |
pythondev | help | fish is nice. I've been using xonsh for a while now though | 2017-12-19T13:43:40.000055 | Signe | pythondev_help_Signe_2017-12-19T13:43:40.000055 | 1,513,691,020.000055 | 104,874 |
pythondev | help | <https://media2.giphy.com/media/26tnk9cXrC8Z9vJug/giphy.gif> | 2017-12-19T13:43:42.000628 | Suellen | pythondev_help_Suellen_2017-12-19T13:43:42.000628 | 1,513,691,022.000628 | 104,875 |
pythondev | help | wow | 2017-12-19T13:43:44.000264 | Suellen | pythondev_help_Suellen_2017-12-19T13:43:44.000264 | 1,513,691,024.000264 | 104,876 |
pythondev | help | t h a n k s | 2017-12-19T13:43:56.000467 | Suellen | pythondev_help_Suellen_2017-12-19T13:43:56.000467 | 1,513,691,036.000467 | 104,877 |
pythondev | help | Anyone know how to set a datetime object's timezone? It's currently complaining about it not being naive? Why does that even matter? | 2017-12-19T13:57:50.000122 | Russ | pythondev_help_Russ_2017-12-19T13:57:50.000122 | 1,513,691,870.000122 | 104,878 |
pythondev | help | thank you in advanced :slightly_smiling_face: | 2017-12-19T13:57:59.000278 | Russ | pythondev_help_Russ_2017-12-19T13:57:59.000278 | 1,513,691,879.000278 | 104,879 |
pythondev | help | <https://docs.python.org/3/library/datetime.html?highlight=datetime#datetime.datetime.astimezone> | 2017-12-19T14:05:20.000326 | Frieda | pythondev_help_Frieda_2017-12-19T14:05:20.000326 | 1,513,692,320.000326 | 104,880 |
pythondev | help | I’m running into:
> TypeError: catching classes that do not inherit from BaseException is not allowed
When attempting to catch a custom extension of `Exception` that I have raised myself. Google’s results do not seem to relevant | 2017-12-19T14:17:09.000654 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:17:09.000654 | 1,513,693,029.000654 | 104,881 |
pythondev | help | My custom exception:
```
class NoDeletionOccurredError(Exception):
"""Exception raised for when no deletions occurred.
Attributes:
message -- explanation of the error
"""
def __init__(self, message):
super(NoDeletionOccurredError, self).__init__(message)
self.message = message... | 2017-12-19T14:17:59.000021 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:17:59.000021 | 1,513,693,079.000021 | 104,882 |
pythondev | help | Any thoughts? | 2017-12-19T14:18:00.000376 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:18:00.000376 | 1,513,693,080.000376 | 104,883 |
pythondev | help | NoDeletionOccurredError or IncorrectNonZeroDeletionsOccurredError? | 2017-12-19T14:18:47.000661 | Suellen | pythondev_help_Suellen_2017-12-19T14:18:47.000661 | 1,513,693,127.000661 | 104,884 |
pythondev | help | Pardon. | 2017-12-19T14:18:55.000057 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:18:55.000057 | 1,513,693,135.000057 | 104,885 |
pythondev | help | Copy and paste error | 2017-12-19T14:19:00.000184 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:19:00.000184 | 1,513,693,140.000184 | 104,886 |
pythondev | help | _Fixed_ | 2017-12-19T14:19:33.000157 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:19:33.000157 | 1,513,693,173.000157 | 104,887 |
pythondev | help | I wrote two exceptions and both are resulting in this error. | 2017-12-19T14:19:39.000691 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:19:39.000691 | 1,513,693,179.000691 | 104,888 |
pythondev | help | I suspect this is the cause: `raise NoDeletionOccurredError.NoDeletionOccurredError` | 2017-12-19T14:19:55.000585 | Meg | pythondev_help_Meg_2017-12-19T14:19:55.000585 | 1,513,693,195.000585 | 104,889 |
pythondev | help | My import looks like this:
`from database import NoDeletionOccurredError` | 2017-12-19T14:20:12.000227 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:20:12.000227 | 1,513,693,212.000227 | 104,890 |
pythondev | help | your raise and except don't use the same exception it seems | 2017-12-19T14:20:27.000263 | Myong | pythondev_help_Myong_2017-12-19T14:20:27.000263 | 1,513,693,227.000263 | 104,891 |
pythondev | help | if I remove the first `NoDeletionOccurredError` and end up with `raise NoDeletionOccurredError`, it believe its just talking about the module itself? | 2017-12-19T14:20:46.000237 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:20:46.000237 | 1,513,693,246.000237 | 104,892 |
pythondev | help | <@Myong> I think you’re right, but I’m not sure where the mismatch is occurring | 2017-12-19T14:21:12.000059 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:21:12.000059 | 1,513,693,272.000059 | 104,893 |
pythondev | help | just for good practices, I’d move the custom exception to its own module | 2017-12-19T14:21:33.000598 | Meg | pythondev_help_Meg_2017-12-19T14:21:33.000598 | 1,513,693,293.000598 | 104,894 |
pythondev | help | and then import it directly | 2017-12-19T14:21:41.000381 | Meg | pythondev_help_Meg_2017-12-19T14:21:41.000381 | 1,513,693,301.000381 | 104,895 |
pythondev | help | like `from databases.exceptions import NoDeletionOccurredError` | 2017-12-19T14:21:58.000248 | Meg | pythondev_help_Meg_2017-12-19T14:21:58.000248 | 1,513,693,318.000248 | 104,896 |
pythondev | help | If you import `NoDeleteOccurredError` and that is the name of a file `NoDeletionOccurredError.py` then you need to use the dot operator to import the exception object/class | 2017-12-19T14:22:09.000562 | Myong | pythondev_help_Myong_2017-12-19T14:22:09.000562 | 1,513,693,329.000562 | 104,897 |
pythondev | help | that would be clearer about location and responsibility | 2017-12-19T14:22:13.000062 | Meg | pythondev_help_Meg_2017-12-19T14:22:13.000062 | 1,513,693,333.000062 | 104,898 |
pythondev | help | You can also `Ctrl-B` in some IDE's to go to the definition of the object. Or right click, go to definition/find references | 2017-12-19T14:23:19.000728 | Myong | pythondev_help_Myong_2017-12-19T14:23:19.000728 | 1,513,693,399.000728 | 104,899 |
pythondev | help | Ok. I’m going to try to read up on:
> then you need to use the dot operator to import the exception object/clas
Get that working and the move onto dd82's suggestion and make a separate module | 2017-12-19T14:24:22.000093 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:24:22.000093 | 1,513,693,462.000093 | 104,900 |
pythondev | help | Ok neat guys! I had my imports in the class that was `raise`ing correct all along, but the imports in my class that was `except` (catching) was incorrect. | 2017-12-19T14:28:02.000329 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:28:02.000329 | 1,513,693,682.000329 | 104,901 |
pythondev | help | So now it looks like
```
from database.NoDeletionOccurredError import NoDeletionOccurredError
from database.IncorrectNonZeroDeletionsOccurredError import IncorrectNonZeroDeletionsOccurredError
``` | 2017-12-19T14:28:13.000059 | Rosamaria | pythondev_help_Rosamaria_2017-12-19T14:28:13.000059 | 1,513,693,693.000059 | 104,902 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.