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 | Anyone online here?? | 2017-11-22T06:12:48.000071 | Latrina | pythondev_help_Latrina_2017-11-22T06:12:48.000071 | 1,511,331,168.000071 | 100,903 |
pythondev | help | Please help me on this ... | 2017-11-22T06:12:58.000037 | Latrina | pythondev_help_Latrina_2017-11-22T06:12:58.000037 | 1,511,331,178.000037 | 100,904 |
pythondev | help | <@Kiersten> <@Jennifer> | 2017-11-22T06:14:37.000258 | Latrina | pythondev_help_Latrina_2017-11-22T06:14:37.000258 | 1,511,331,277.000258 | 100,905 |
pythondev | help | <@Jesusa> <@Jenise> thanks for the tips. I decided to use the Google API to send email because the common smtp ports are blocked on this network. I only tried after several other failed attempts at traditional methods It looked like those modules use smtp so I don’t think they will work for me unless I am missing so... | 2017-11-22T09:39:03.000785 | Season | pythondev_help_Season_2017-11-22T09:39:03.000785 | 1,511,343,543.000785 | 100,906 |
pythondev | help | <@Myong> Something like `SELECT lat, lon FROM my_table GROUP BY lat, lon` will probably work, as long as you don't need to select any other columns. | 2017-11-22T09:42:11.000618 | Evonne | pythondev_help_Evonne_2017-11-22T09:42:11.000618 | 1,511,343,731.000618 | 100,907 |
pythondev | help | <@Evonne> I ended up making it work. It was an issue with my data types. | 2017-11-22T09:46:34.000129 | Myong | pythondev_help_Myong_2017-11-22T09:46:34.000129 | 1,511,343,994.000129 | 100,908 |
pythondev | help | Would you be able to help me out with my code? It runs fine with no error in function but after I close the program I get ``` AttributeError: 'Application' object has no attribute 'optionmenu_b' ``` how do I fix this? the code is bellow
```
from tkinter import *
from tkinter import ttk
import os.path
class Applicatio... | 2017-11-22T11:00:11.000779 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:00:11.000779 | 1,511,348,411.000779 | 100,909 |
pythondev | help | which this error does not affect anything i am curious as to why it gives error | 2017-11-22T11:00:57.000826 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:00:57.000826 | 1,511,348,457.000826 | 100,910 |
pythondev | help | could you paste the full stacktrace :slightly_smiling_face: | 2017-11-22T11:01:18.000206 | Ciera | pythondev_help_Ciera_2017-11-22T11:01:18.000206 | 1,511,348,478.000206 | 100,911 |
pythondev | help | ```
#import sys
#if sys.version_info[0] >= 3:
# import tkinter as tk
#else:
# import Tkinter as tk
from tkinter import *
class Application(Frame):
def __init__(self, master):
Frame.__init__(self, master)
#self.grid()
self.dict = {'Asia': ['Japan', 'China', 'Malaysia'],
... | 2017-11-22T11:01:19.000508 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:01:19.000508 | 1,511,348,479.000508 | 100,912 |
pythondev | help | here is the working code but i changed the structure to match my other code i have also <@Ciera> what do you mean? | 2017-11-22T11:02:15.000865 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:02:15.000865 | 1,511,348,535.000865 | 100,913 |
pythondev | help | You should have some line beffore ` AttributeError: 'Application' object has no attribute 'optionmenu_b' ` that explain from which line the error come from :slightly_smiling_face: | 2017-11-22T11:03:09.000481 | Ciera | pythondev_help_Ciera_2017-11-22T11:03:09.000481 | 1,511,348,589.000481 | 100,914 |
pythondev | help | ```
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files (x86)\Python36-32\lib\tkinter\__init__.py", line 1699, in __call__
return self.func(*args)
File "m:\aaDonE\Projects\gp_outage\test2.py", line 37, in update_options
menu = self.optionmenu_b["menu"]
AttributeError: 'Ap... | 2017-11-22T11:03:21.000918 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:03:21.000918 | 1,511,348,601.000918 | 100,915 |
pythondev | help | and when posting huge snippet of code you can use the `+` on the left to create snippet. It's more readable that way :slightly_smiling_face: | 2017-11-22T11:03:38.000023 | Ciera | pythondev_help_Ciera_2017-11-22T11:03:38.000023 | 1,511,348,618.000023 | 100,916 |
pythondev | help | thanks | 2017-11-22T11:03:52.000336 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:03:52.000336 | 1,511,348,632.000336 | 100,917 |
pythondev | help | give me an example i tried it and it did not work | 2017-11-22T11:04:51.000592 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:04:51.000592 | 1,511,348,691.000592 | 100,918 |
pythondev | help | it looks like something is calling `update_options` when you close | 2017-11-22T11:05:40.000198 | Ciera | pythondev_help_Ciera_2017-11-22T11:05:40.000198 | 1,511,348,740.000198 | 100,919 |
pythondev | help | is it where i have ``` self.variabale_a.trace('w', self.update_options)``` | 2017-11-22T11:07:25.000554 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:07:25.000554 | 1,511,348,845.000554 | 100,920 |
pythondev | help | or where i have ``` self.update_options() ``` | 2017-11-22T11:09:07.000157 | Lilliam | pythondev_help_Lilliam_2017-11-22T11:09:07.000157 | 1,511,348,947.000157 | 100,921 |
pythondev | help | Hey guys sillly question ```def _full_load(self, database, window, stop_datetime):
"""Internal full load function without timing and bookkeeping"""
files, lastKey = list_valid_files(path=self.path, stop_datetime=stop_datetime)
if self.type == 'csv':
load_csv(files, self.schema, self.name, database, se... | 2017-11-22T11:45:44.000154 | Ernestina | pythondev_help_Ernestina_2017-11-22T11:45:44.000154 | 1,511,351,144.000154 | 100,922 |
pythondev | help | For the `load_csv` function, why does it need `=` sometimes for some of the parameters, but for the others(`database`,`self.name`), it doesn’t need `=` | 2017-11-22T11:46:34.000229 | Ernestina | pythondev_help_Ernestina_2017-11-22T11:46:34.000229 | 1,511,351,194.000229 | 100,923 |
pythondev | help | You don't need `=` when it's a positional argument, if you want to skip some parameters you can use `=` to do so | 2017-11-22T11:47:53.000169 | Sheila | pythondev_help_Sheila_2017-11-22T11:47:53.000169 | 1,511,351,273.000169 | 100,924 |
pythondev | help | :thumbsup: | 2017-11-22T11:48:13.000790 | Ernestina | pythondev_help_Ernestina_2017-11-22T11:48:13.000790 | 1,511,351,293.00079 | 100,925 |
pythondev | help | e.g.: `def my_func(arg1, arg2=123, arg3=456)`
You can call `my_func` keeping the `arg2` default value but changing `arg3` like so: `my_func('value_arg1', arg3=789)` | 2017-11-22T11:49:10.000004 | Sheila | pythondev_help_Sheila_2017-11-22T11:49:10.000004 | 1,511,351,350.000004 | 100,926 |
pythondev | help | But `arg1` is always required since it doesn't have a default value (the `=something`) in the function's signature | 2017-11-22T11:49:44.000147 | Sheila | pythondev_help_Sheila_2017-11-22T11:49:44.000147 | 1,511,351,384.000147 | 100,927 |
pythondev | help | It's also possible to have keyword only arguments.
So if your function is `def fn(arg1, arg2=1, *, arg3=2)` then you can't specify `arg3` positionally.
```
>>> fn(1, 2, 3)
TypeError: fn() takes from 1 to 2 positional arguments but 3 were given
>>> fn(1, 2, arg3=3)
``` | 2017-11-22T12:35:18.000362 | Aurelia | pythondev_help_Aurelia_2017-11-22T12:35:18.000362 | 1,511,354,118.000362 | 100,928 |
pythondev | help | would anyone know how to dynamically update an option menu based on what is selected in another option menu in python? | 2017-11-22T12:48:49.000255 | Lilliam | pythondev_help_Lilliam_2017-11-22T12:48:49.000255 | 1,511,354,929.000255 | 100,929 |
pythondev | help | <@Lilliam>Dynamically in your HTML or before rendering the template? | 2017-11-22T12:59:22.000256 | Sheila | pythondev_help_Sheila_2017-11-22T12:59:22.000256 | 1,511,355,562.000256 | 100,930 |
pythondev | help | not using html im in an IDE coding a GUI with option menus | 2017-11-22T12:59:53.000562 | Lilliam | pythondev_help_Lilliam_2017-11-22T12:59:53.000562 | 1,511,355,593.000562 | 100,931 |
pythondev | help | <@Lilliam> It would depend on what GUI framework(if any) you are using. If you are using PyQT for example it can be done using signals and slots | 2017-11-22T13:12:22.000304 | Sharolyn | pythondev_help_Sharolyn_2017-11-22T13:12:22.000304 | 1,511,356,342.000304 | 100,932 |
pythondev | help | not using that <@Sharolyn> using tkinter | 2017-11-22T13:17:01.000393 | Lilliam | pythondev_help_Lilliam_2017-11-22T13:17:01.000393 | 1,511,356,621.000393 | 100,933 |
pythondev | help | in tkinter you can use StringVar.trace to update your menu when the associated variable is changed | 2017-11-22T13:24:09.000003 | Sharolyn | pythondev_help_Sharolyn_2017-11-22T13:24:09.000003 | 1,511,357,049.000003 | 100,934 |
pythondev | help | also is there a different way to do this than using the .add and .delete also cant i use an if statement | 2017-11-22T13:28:39.000435 | Lilliam | pythondev_help_Lilliam_2017-11-22T13:28:39.000435 | 1,511,357,319.000435 | 100,935 |
pythondev | help | instead of for | 2017-11-22T13:28:45.000563 | Lilliam | pythondev_help_Lilliam_2017-11-22T13:28:45.000563 | 1,511,357,325.000563 | 100,936 |
pythondev | help | anyone here use any of the python tutorials on the safari books subscription? is it worth it? I may be able to get it for free through work. that or <http://egghead.io|egghead.io>. but i have to choose one. | 2017-11-22T13:57:28.000399 | Bruno | pythondev_help_Bruno_2017-11-22T13:57:28.000399 | 1,511,359,048.000399 | 100,937 |
pythondev | help | Hey guys , I deployed my Flask App on my VPS Server and registered my domain to it. I'm using Nginx and (u) wsgi. Now that domain works (<http://smartpusher.de|smartpusher.de>) but when I try to send a post request through a Form I get "502 Bad Gateway" as error response. It works though when I run my App on localhost... | 2017-11-22T16:11:23.000480 | Federico | pythondev_help_Federico_2017-11-22T16:11:23.000480 | 1,511,367,083.00048 | 100,938 |
pythondev | help | a 502 means that nginx can't connect to the stuff it need to proxy to, In this case your flask app | 2017-11-22T16:12:48.000313 | Ciera | pythondev_help_Ciera_2017-11-22T16:12:48.000313 | 1,511,367,168.000313 | 100,939 |
pythondev | help | I can do simple post requests like login / logout though | 2017-11-22T16:13:40.000014 | Federico | pythondev_help_Federico_2017-11-22T16:13:40.000014 | 1,511,367,220.000014 | 100,940 |
pythondev | help | but when I try to post via a form I get a 502 bad gateway | 2017-11-22T16:13:54.000144 | Federico | pythondev_help_Federico_2017-11-22T16:13:54.000144 | 1,511,367,234.000144 | 100,941 |
pythondev | help | oh ok. I would check the nginx log and your app log to see if the request end up in your app. | 2017-11-22T16:14:40.000184 | Ciera | pythondev_help_Ciera_2017-11-22T16:14:40.000184 | 1,511,367,280.000184 | 100,942 |
pythondev | help | will try, thank you | 2017-11-22T16:17:15.000134 | Federico | pythondev_help_Federico_2017-11-22T16:17:15.000134 | 1,511,367,435.000134 | 100,943 |
pythondev | help | <@Federico> wow, your app looks better every day | 2017-11-22T17:33:25.000115 | Suellen | pythondev_help_Suellen_2017-11-22T17:33:25.000115 | 1,511,372,005.000115 | 100,944 |
pythondev | help | Would anyone know a simple approach to monitoring and recording keypresses in a python terminal application? | 2017-11-22T18:01:27.000245 | Doreen | pythondev_help_Doreen_2017-11-22T18:01:27.000245 | 1,511,373,687.000245 | 100,945 |
pythondev | help | curses? | 2017-11-22T18:07:03.001646 | Suellen | pythondev_help_Suellen_2017-11-22T18:07:03.001646 | 1,511,374,023.001646 | 100,946 |
pythondev | help | would you recommend curses for any program using the terminal as the user interface? | 2017-11-22T18:16:38.000056 | Doreen | pythondev_help_Doreen_2017-11-22T18:16:38.000056 | 1,511,374,598.000056 | 100,947 |
pythondev | help | <@Suellen> thank you alot :slightly_smiling_face: | 2017-11-22T19:42:24.000039 | Federico | pythondev_help_Federico_2017-11-22T19:42:24.000039 | 1,511,379,744.000039 | 100,948 |
pythondev | help | if anyone suffers similar problem like I did : certain requests do not work while others do, then check if the requests that do not work are writing stuff to your system / database /files | 2017-11-22T19:43:22.000126 | Federico | pythondev_help_Federico_2017-11-22T19:43:22.000126 | 1,511,379,802.000126 | 100,949 |
pythondev | help | it happened that my user had no rights to write to the database, thats why I had the 502 error | 2017-11-22T19:43:42.000154 | Federico | pythondev_help_Federico_2017-11-22T19:43:42.000154 | 1,511,379,822.000154 | 100,950 |
pythondev | help | anyone know how to fix attribute errors? | 2017-11-23T07:26:45.000139 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:26:45.000139 | 1,511,422,005.000139 | 100,951 |
pythondev | help | <@Lilliam>try to share some code :slightly_smiling_face: | 2017-11-23T07:38:03.000346 | Ciera | pythondev_help_Ciera_2017-11-23T07:38:03.000346 | 1,511,422,683.000346 | 100,952 |
pythondev | help | and what exactly is the error ? | 2017-11-23T07:38:16.000112 | Ciera | pythondev_help_Ciera_2017-11-23T07:38:16.000112 | 1,511,422,696.000112 | 100,953 |
pythondev | help | will do | 2017-11-23T07:40:24.000176 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:40:24.000176 | 1,511,422,824.000176 | 100,954 |
pythondev | help | one moment | 2017-11-23T07:40:27.000121 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:40:27.000121 | 1,511,422,827.000121 | 100,955 |
pythondev | help | ``` File "m:\aaDonE\Projects\gp_outage\test4.py", line 398, in openMacro
save_path = 'M:/aaDonE/Projects/gp_outage/' + str(self.entryTechId.get() + "/" + self.BD.get() + "/" + self.sys.get() + "/" + self.ticket_stat.get())
TypeError: get expected at least 1 arguments, got 0``` | 2017-11-23T07:41:31.000036 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:41:31.000036 | 1,511,422,891.000036 | 100,956 |
pythondev | help | ``` File "m:\aaDonE\Projects\gp_outage\tempCodeRunnerFile.py", line 115, in update
menu = self.opt_b["menu"]
AttributeError: 'Application' object has no attribute 'opt_b'``` | 2017-11-23T07:41:48.000334 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:41:48.000334 | 1,511,422,908.000334 | 100,957 |
pythondev | help | the second error happens when I open and close the program the first error is what happens when i press the make macro button | 2017-11-23T07:42:29.000099 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:42:29.000099 | 1,511,422,949.000099 | 100,958 |
pythondev | help | you need to pass arguments into your getter argument | 2017-11-23T07:44:46.000061 | Federico | pythondev_help_Federico_2017-11-23T07:44:46.000061 | 1,511,423,086.000061 | 100,959 |
pythondev | help | are the fields you are calling 'get()' on from your framework? | 2017-11-23T07:45:17.000028 | Federico | pythondev_help_Federico_2017-11-23T07:45:17.000028 | 1,511,423,117.000028 | 100,960 |
pythondev | help | or from your superclass Frame, which I assume is coming from your framework | 2017-11-23T07:45:50.000012 | Federico | pythondev_help_Federico_2017-11-23T07:45:50.000012 | 1,511,423,150.000012 | 100,961 |
pythondev | help | yes all the other get() fields work it is the self.BD.get() that is giving issues because it is in a dictionary | 2017-11-23T07:46:02.000237 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:46:02.000237 | 1,511,423,162.000237 | 100,962 |
pythondev | help | and in this line
```
def update(self, *args):
cause_codes = <http://self.BD[self.GP.get()]|self.BD[self.GP.get()]>
self.CXI.set(cause_codes[0])
menu = self.opt_b["menu"]
menu.delete(0, "end")
for cause_code in cause_codes:
menu.add_command(label = cause_code, ... | 2017-11-23T07:47:00.000181 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:47:00.000181 | 1,511,423,220.000181 | 100,963 |
pythondev | help | in this case you are trying to access a value rom your dict | 2017-11-23T07:47:02.000409 | Federico | pythondev_help_Federico_2017-11-23T07:47:02.000409 | 1,511,423,222.000409 | 100,964 |
pythondev | help | which is why it expects a key-parameter | 2017-11-23T07:47:16.000084 | Federico | pythondev_help_Federico_2017-11-23T07:47:16.000084 | 1,511,423,236.000084 | 100,965 |
pythondev | help | yes trying to figure out what arg to pass | 2017-11-23T07:47:30.000193 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:47:30.000193 | 1,511,423,250.000193 | 100,966 |
pythondev | help | what are you trying to do wit the dict? | 2017-11-23T07:47:49.000200 | Federico | pythondev_help_Federico_2017-11-23T07:47:49.000200 | 1,511,423,269.0002 | 100,967 |
pythondev | help | dynamically update my option menu which i do but when i try to make the text and macro file it doesnt work | 2017-11-23T07:48:25.000042 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:48:25.000042 | 1,511,423,305.000042 | 100,968 |
pythondev | help | well then parse the dict into a json string | 2017-11-23T07:48:46.000225 | Federico | pythondev_help_Federico_2017-11-23T07:48:46.000225 | 1,511,423,326.000225 | 100,969 |
pythondev | help | that way you just read the value | 2017-11-23T07:49:27.000012 | Federico | pythondev_help_Federico_2017-11-23T07:49:27.000012 | 1,511,423,367.000012 | 100,970 |
pythondev | help | not familiar with json | 2017-11-23T07:50:58.000226 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:50:58.000226 | 1,511,423,458.000226 | 100,971 |
pythondev | help | there is no way just to do it in python | 2017-11-23T07:51:16.000097 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:51:16.000097 | 1,511,423,476.000097 | 100,972 |
pythondev | help | it is still in python | 2017-11-23T07:52:47.000413 | Federico | pythondev_help_Federico_2017-11-23T07:52:47.000413 | 1,511,423,567.000413 | 100,973 |
pythondev | help | json is a way to represent data structures | 2017-11-23T07:52:53.000109 | Federico | pythondev_help_Federico_2017-11-23T07:52:53.000109 | 1,511,423,573.000109 | 100,974 |
pythondev | help | like XML | 2017-11-23T07:53:25.000341 | Federico | pythondev_help_Federico_2017-11-23T07:53:25.000341 | 1,511,423,605.000341 | 100,975 |
pythondev | help | oh ok nice to know thanks I will look into those but I would want to do it in python still learning a lot | 2017-11-23T07:55:51.000277 | Lilliam | pythondev_help_Lilliam_2017-11-23T07:55:51.000277 | 1,511,423,751.000277 | 100,976 |
pythondev | help | and what about the attribute error | 2017-11-23T08:00:34.000420 | Lilliam | pythondev_help_Lilliam_2017-11-23T08:00:34.000420 | 1,511,424,034.00042 | 100,977 |
pythondev | help | it seems like you're trying to access an attribute which does not exist, in this case opt_b | 2017-11-23T08:12:59.000084 | Federico | pythondev_help_Federico_2017-11-23T08:12:59.000084 | 1,511,424,779.000084 | 100,978 |
pythondev | help | I assume it's a dictionary? | 2017-11-23T08:13:05.000002 | Federico | pythondev_help_Federico_2017-11-23T08:13:05.000002 | 1,511,424,785.000002 | 100,979 |
pythondev | help | no opt_b is the opt menu that is updated | 2017-11-23T08:20:00.000026 | Lilliam | pythondev_help_Lilliam_2017-11-23T08:20:00.000026 | 1,511,425,200.000026 | 100,980 |
pythondev | help | based on selection | 2017-11-23T08:20:10.000105 | Lilliam | pythondev_help_Lilliam_2017-11-23T08:20:10.000105 | 1,511,425,210.000105 | 100,981 |
pythondev | help | I am trying to use hungarian algorithm to solve multiple assignment problem | 2017-11-23T08:20:27.000007 | Malorie | pythondev_help_Malorie_2017-11-23T08:20:27.000007 | 1,511,425,227.000007 | 100,982 |
pythondev | help | any good resources or approaches? | 2017-11-23T08:20:42.000225 | Malorie | pythondev_help_Malorie_2017-11-23T08:20:42.000225 | 1,511,425,242.000225 | 100,983 |
pythondev | help | Has anyone gotten the Python 3.6.2 extension working on Azure Web Apps yet? I swear it’s the web.config file, but even their example one won’t start a getting-started-with Flask app | 2017-11-23T10:21:29.000244 | Elane | pythondev_help_Elane_2017-11-23T10:21:29.000244 | 1,511,432,489.000244 | 100,984 |
pythondev | help | Hey guys. 1 q. Can som1 help me with upgrading python and cpanel?
On cPanel they use centOS and they have installed python 2.6. I have script that require python 2.7 or 3.3+ to run. Is it safe to install separate python in /opt folder with "./configure --prefix=/opt/python27 --enable-shared" command without breaking t... | 2017-11-23T10:56:32.000412 | Ivonne | pythondev_help_Ivonne_2017-11-23T10:56:32.000412 | 1,511,434,592.000412 | 100,985 |
pythondev | help | Hello guys , i have a dependency error in some lib , can anyone to help me about that ? | 2017-11-23T17:06:19.000160 | Erika | pythondev_help_Erika_2017-11-23T17:06:19.000160 | 1,511,456,779.00016 | 100,986 |
pythondev | help | If you post some information we can take a shot | 2017-11-23T17:53:06.000066 | Marilyn | pythondev_help_Marilyn_2017-11-23T17:53:06.000066 | 1,511,459,586.000066 | 100,987 |
pythondev | help | <@Erika> | 2017-11-23T17:53:11.000044 | Marilyn | pythondev_help_Marilyn_2017-11-23T17:53:11.000044 | 1,511,459,591.000044 | 100,988 |
pythondev | help | ok i have a private repo and i when i would like to work with my project i got this error "File "/usr/local/lib/python2.7/dist-packages/oauth2client/service_account.py", line 26, in <module>
from oauth2client import crypt
File "/usr/local/lib/python2.7/dist-packages/oauth2client/crypt.py", line 23, in <m... | 2017-11-23T17:54:56.000139 | Erika | pythondev_help_Erika_2017-11-23T17:54:56.000139 | 1,511,459,696.000139 | 100,989 |
pythondev | help | anyone got this error when use google oauth lib ? | 2017-11-23T17:56:37.000046 | Erika | pythondev_help_Erika_2017-11-23T17:56:37.000046 | 1,511,459,797.000046 | 100,990 |
pythondev | help | Hi all,
I got a problem with __init__.py. Python can't see the subfolders which including empty __init__.py file.
I am using Python 3.6 with Anaconda. What is your suggestions? | 2017-11-24T04:24:54.000235 | Troy | pythondev_help_Troy_2017-11-24T04:24:54.000235 | 1,511,497,494.000235 | 100,991 |
pythondev | help | <@Troy> What do you mean by "Cant see the subfolders"? What are you attempting? | 2017-11-24T05:48:41.000162 | Scot | pythondev_help_Scot_2017-11-24T05:48:41.000162 | 1,511,502,521.000162 | 100,992 |
pythondev | help | If I have a nested dictionary with a single key at the top level, is there anyway I can wildcard my way past it to the next level, or am I forced to look it up first? | 2017-11-24T05:51:41.000082 | Scot | pythondev_help_Scot_2017-11-24T05:51:41.000082 | 1,511,502,701.000082 | 100,993 |
pythondev | help | Should be able to use `d.popitem()` | 2017-11-24T06:03:21.000208 | Fabiola | pythondev_help_Fabiola_2017-11-24T06:03:21.000208 | 1,511,503,401.000208 | 100,994 |
pythondev | help | But that will actually remove that item from the dict! so look out lol | 2017-11-24T06:04:10.000259 | Fabiola | pythondev_help_Fabiola_2017-11-24T06:04:10.000259 | 1,511,503,450.000259 | 100,995 |
pythondev | help | Thank you <@Scot>
My Project structure is like
project
|-__init__.py
|-core
|-__init__.py
|-main.py
if I import project module nothing happens then
In[2]: project.main()
Out[2]: AttributeError: module 'project' has no attribute 'main' | 2017-11-24T06:11:05.000039 | Troy | pythondev_help_Troy_2017-11-24T06:11:05.000039 | 1,511,503,865.000039 | 100,996 |
pythondev | help | `list(d.items())[0][1]` ? | 2017-11-24T06:12:52.000120 | Fabiola | pythondev_help_Fabiola_2017-11-24T06:12:52.000120 | 1,511,503,972.00012 | 100,997 |
pythondev | help | I am trying to use main.py in core subfolder of my project module | 2017-11-24T06:13:00.000395 | Troy | pythondev_help_Troy_2017-11-24T06:13:00.000395 | 1,511,503,980.000395 | 100,998 |
pythondev | help | `d.values()[0]` would be a little more concise | 2017-11-24T06:19:17.000052 | Aurelia | pythondev_help_Aurelia_2017-11-24T06:19:17.000052 | 1,511,504,357.000052 | 100,999 |
pythondev | help | `list` that and it works | 2017-11-24T06:21:28.000208 | Scot | pythondev_help_Scot_2017-11-24T06:21:28.000208 | 1,511,504,488.000208 | 101,000 |
pythondev | help | At this point i'd think the better way is to just run `for key, data in d.items()` and run whatever on `data` | 2017-11-24T06:22:29.000161 | Scot | pythondev_help_Scot_2017-11-24T06:22:29.000161 | 1,511,504,549.000161 | 101,001 |
pythondev | help | what does the import look like? | 2017-11-24T06:24:16.000079 | Scot | pythondev_help_Scot_2017-11-24T06:24:16.000079 | 1,511,504,656.000079 | 101,002 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.