[17:03:24] [## Class Started at Fri Aug 26 17:03:24 2016 ##] [17:03:24] startclass [17:03:33] Roll Call [17:03:39] Rahul Bhattacharjee [17:03:40] sandeep kumar choudhary [17:03:43] Kshitij [17:03:44] Abhishek Gupta [17:03:48] poonam jadhav [17:03:52] Anupama Mandal [17:03:53] Shantanu Acharya [17:04:18] Pabitra Pati [17:04:20] Jogender Kota [17:04:32] HoloIRCUser8 is now known as jogender [17:04:47] Avik Mukherjee [17:05:09] Mamoon manzoor [17:05:24] Amey Jain [17:05:37] Deepanshu Kapoor [17:05:40] Suraj Narwade [17:05:42] Abhi [17:05:44] Any doubts from Modules? [17:06:35] Roll Call: Rhitik Bhatt [17:07:08] ! [17:07:21] next [17:07:41] What is the basic use of submodules and __all_in_init__.py? [17:08:54] any file that ends with .py in a package is known as submodule [17:09:37] __all__ basically tell which are the public available objects [17:10:01] when you do import * then only those specified in __all__ are imported [17:10:23] any more questions [17:10:34] In here by public we mean that they are accessible by the user of the library those which are not listed in __all__ can not be used? [17:10:54] amey: yes, accessible from other modules [17:12:05] They provide a restricted path to functions of other modules and limited access thus [17:12:29] amey: what do you mean by path here? [17:13:23] Path here means a way to use the other modules which are these functions listed in __all__ [17:14:12] Ok, write a program that takes input of a path, and takes input of a character [17:14:37] and lists all the files in that particular path that starts with the character [17:15:04] Do this program using the command line arguments [17:15:56] ! [17:16:11] next [17:16:19] the '.' and '..' in from . import echo and from .. import formats means we are importing packages from current and the previous directory. Right? [17:17:01] relative import, yes [17:17:16] okay [17:17:40] then what is meant by from ..filters import equalizer [17:17:48] we used ..filters? [17:17:59] [17:20:15] code_geek: did you google that? [17:20:41] okay sayan, I will google it [17:22:41] ROLL CALL : SAURAV SAHA [17:23:51] What's going on ? [17:25:41] Are people trying the question I gave? [17:26:18] yes [17:26:18] yes trying. [17:26:28] yup [17:26:38] yes [17:26:41] yes [17:27:15] yes [17:27:20] Can someone paste the question again ? I got disconnected [17:28:09] can somebody type the question to abhishekg5 in PM? [17:29:35] yes sayan [17:29:59] sayan, https://paste.fedoraproject.org/414397/14722253/ [17:32:56] * SRvSaha is going for dinner [17:35:16] LambaInsaan: Looks good [17:35:23] LambaInsaan: go ahead and fix corner cases [17:36:25] sayan, Okay! [17:39:43] sayan, https://paste.fedoraproject.org/414403/ [17:42:36] ! [17:42:39] next [17:42:52] roll call aswin devarajan [17:43:21] my program lists the files but it ends in an infinite loop [17:43:37] sayan, is my code correct? [17:43:37] LambaInsaan: code_geek: modify you code to take wild cards like * and ? and search for the filenames [17:43:46] s/you/your [17:43:46] ok [17:44:08] http://paste.fedoraproject.org/414405/ [17:44:12] * means multiple characters [17:44:18] ? means single character [17:44:26] amey: did you try to debug [17:44:57] amey: the question is to take input using command line argument [17:45:17] Sorry, I will get back to it again [17:45:25] https://paste.fedoraproject.org/414407/72226319/ [17:46:00] pabitra: same for you; the question is to be done using command line arguments [17:48:51] sayan, What does '?' do? [17:49:50] Got it! [17:49:50] LambaInsaan: multiple characters matching. [17:49:55] LambaInsaan: sorry single [17:50:01] * is multiple [17:50:02] Okay! [17:50:18] sayan, https://paste.fedoraproject.org/414410/ [17:50:53] https://paste.fedoraproject.org/414411/22266391/ [17:52:38] https://paste.fedoraproject.org/414413/72226736/ [17:54:55] What is going on ? [17:55:01] Sorry I am late [17:55:28] sayan, is there any workaround that without using regular expressions? [17:58:14] code_geek: I did not understand what you did here [17:58:33] how are you handling * and ? [17:58:37] LambaInsaan: yes [17:58:59] LambaInsaan why you have used sys? Can use please explain? (Just asking) [17:59:36] in my code, the user can give multiple inputs. suppose he enters p and c, then the output gives the list of all files starting with p and c [17:59:48] code_geek: nope [18:00:03] code_geek: I want if the user input *P* [18:00:19] it should show all the files that contains P [18:00:25] *P means ends with P [18:00:34] P* means starts with P [18:00:37] code_geek: got it? [18:00:55] oh, okay got it [18:01:08] sayan: https://paste.fedoraproject.org/414423/14722272/ [18:04:34] sandeepk: combine 6,7,8,9 into one line [18:04:50] ok sayan [18:06:49] sayan using sys.argv[1] gives me error=>https://paste.fedoraproject.org/414429/72227519/ [18:07:11] sayan: done http://paste.fedoraproject.org/414430/72227616/ :) [18:07:39] Anupama: why not write in a file? [18:07:52] sayan https://paste.fedoraproject.org/414413/72226736/ I didn't have used sys. though I am getting my required answer. [18:08:00] sandeepk: +1 [18:08:05] sayan, I am facing problem whenever I am trying to send 'some_string*' it sends the name of the first file in the directory in which I am in. [18:08:06] sayan: :) [18:08:27] rahuldecoded: yes, but had to be done using command line arguments [18:08:42] okay sayan [18:08:59] sayan: for * and ? , we have to use if statement that will turn out be too mant cases [18:09:13] sayan ok [18:09:34] sandeepk: we are having modules class :) [18:10:10] sayan: so solution have to be with modules :) [18:13:45] sayan still the same error [18:13:51] ! [18:14:00] Anupama: if you write in a file? [18:14:06] next [18:14:08] sayan, I could not do that. speaking frankly. I have been missing a few classes, lagging behind, and in a bewildered position. If you can, then please help me! [18:14:44] I have missed almost a week now! [18:15:07] sayan: Yes after writing in a file. It says list index out of range. [18:15:30] Anupama: okay, why are you using sys.argv there? [18:15:34] avik: in that case [18:15:51] avik: you need to spend more time, stay online and ask questions [18:15:53] read things [18:16:03] Anupama: try to call your function like this path_(/, h) [18:17:51] read logs right? [18:18:02] sayan, ^^ [18:18:20] Anupama: if you want to give command line argument you have to make a python file not in interpreter you can give command line argument ,a s i think [18:18:43] avik: read logs, ask people what was taught [18:18:49] learn things on your own [18:19:53] ok [18:22:16] avik, you will have to practice [18:22:21] https://paste.fedoraproject.org/414443/ [18:22:28] When ever you get stuck, come to IRC and ask for help. [18:22:52] ok [18:23:11] sayan, https://paste.fedoraproject.org/414443/ is this correct [18:23:43] kushal, will learning from you-tube be any helpful?? [18:24:00] generally, they are faster than reading! [18:24:09] kdas__, ^^ [18:24:18] practice != reading [18:24:32] sayan: +1 [18:24:52] hydro_: looks good [18:25:29] avik: have you read Python for you and me? [18:25:30] ok, starting now, then [18:26:40] avik, starting what? [18:27:07] starting to read [18:27:12] kdas__ is now known as kushal [18:27:14] pybook?? [18:27:37] avik, what is pybook? [18:28:05] sorry, the pymbook [18:28:36] okay sandeepk :) [18:28:55] Anupama: :) try and tell if it's work or not [18:29:48] sandeepk: Wait let me try your code and see [18:29:57] ok [18:30:23] Btw, many of you added wrong link in https://github.com/dgplug/studentsplanet/wiki [18:30:35] You are supposed to add the feed URL, not the web URL. [18:30:44] anushil05_, smdeep ^^^ [18:31:02] creativeintelligencespace.wordpress.com who ever that is [18:31:09] what is feed url? [18:31:30] and how is it different from web URL? [18:32:41] avik, there is a nice site called google.com [18:32:48] avik, which can tell you the answer. [18:32:53] avik, search first. [18:32:59] hahahh, sorry [18:33:04] *google.com* cries in the corner [18:33:24] avik, or open that URL I pasted, and try to see the difference in the URL(s) [18:33:27] sayan, :) [18:33:37] What is the status of the wildcard question? [18:34:36] sayan: still trying [18:34:46] sayan, here i go to cradle Google. :) [18:35:41] sayan: not complete yet but would it be like this http://paste.fedoraproject.org/414464/29317147/ [18:43:24] Anybody still trying? [18:43:32] Me! [18:44:08] Let keep this question as assignment. Ending class here [18:44:09] Do we have to implement the case where there are * and ? both? [18:44:19] LambaInsaan: yes [18:44:25] Okay! :) [18:44:34] Roll Call [18:44:36] If only one can use google.com nicely :) [18:44:39] Rhitik Bhatt [18:44:55] Anupama Mandal [18:45:18] Avik Mukherjee (yup googling) [18:45:21] HoloIRCUser10 is now known as jogender [18:45:28] Jogender Kota [18:47:10] kushal: ok ,I Will correct my mistake [18:47:19] endclass [18:47:19] [## Class Ended at Fri Aug 26 18:47:19 2016 ##]