dictionary with dynamic keys Programming Software Development by wirth.jason … keys. In other words the key value is 'property(fset, fget, fdel, doc)'. For some reason the when I get the… d['a'] but instead returns a property object d['b'].fget() returns the value i want. Where did I go wrong…'] # Incorrect. Returns <property obeject>. Should return 5. print 'fget =', d['b'].fget() # Correct. Returns 5. [/CODE] Re: dictionary with dynamic keys Programming Software Development by jlm699 … class property(object) | property(fget=None, fset=None, fdel=None…| ---------------------------------------------------------------------- | Data descriptors defined here: | | fdel | | fget | | fset | | ---------------------------------------------------------------------- | Data and other attributes defined… using a process to run another one Programming Software Development by wonder_laptop … it ? i googled and i thing that i should use fget( ) and execvp ( ) . but the thing is i dont know how… importing floating point from external file Programming Software Development by rob_xx17 … that data as a floating point. I've tried using 'fget' and 'getstring' and 'readline' and I'm getting an error… I'm new, and an NameError Programming Software Development by kessenchu … def _area(self): return self.width * self.height #area = property(fget=_area) @_area.setter def _area(self, area): self.__area = area… Re: I'm new, and an NameError Programming Software Development by kessenchu … def _area(self): return self.width * self.height #area = property(fget=_area) @_area.setter def _area(self, area): self.__area = area… Transferring string input into an array Programming Software Development by Zaelis … get the whole line of input. Should I be using fget instead of scanf? I think I have the rest of… Re: Transferring string input into an array Programming Software Development by Narue [B]>Should I be using fget instead of scanf?[/B] Yes: [code] if ( fgets ( input, sizeof … Read into array Programming Software Development by cyberguy007 … 6 why is it not reading properly, i tried implementing fget and fread but failed even after reading dani web and… Re: Read into array Programming Software Development by WaltP … file?[/I]" Without knowing what actually happened using [i]fget[/i] (whatever that is) we can't really tell what… How do you search a text file using a substring and use the full string as a path Programming Software Development by wilhemina … be missing something in the usage of strstr and/or fget. Secondly I am using eclipse C compiler in linux and… strcmp question Programming Software Development by hwoarang69 … char line[20]; //read one line at a time while((fget(line, 20), finp1)!= NULL) { if(strcmp(line, "-hello"… strtok sent in function Programming Software Development by hwoarang69 … main() { char line2[20]; char tem_line2[20]; char *tptr; while(fget...line2) //read one line and store in char line2[20… I'm having issues with fopen() function Programming Web Development by LastMitch … server. But it can't load the files. I try fget() but it seems like it's not reading it? <… Read each line of string and display Programming Web Development by ferdinandmucos … displays the next question upto the last one. Im using fget () n php to read line by line but dont know… Need some help with secure attribute access Programming by Tcll …): item = item.__func__ if isinstance(item, property): for a in ('fget','fset','fdel'): addnativecode(getattr(getattr(item,a), '__code__', None)) else… Re: Need some help with secure attribute access Programming by Tcll … = item.__func__ if isinstance(item, property): for i in (item.fget, item.fset, item.fdel): if i: addnativecode(i.__code__) # either… Re: Capture text between tags Programming Web Development by zippee … alone. What I try to do is when I use fget() to read a file or a webpage, I can retrieve… text in heading. For example, when I used fget("http://www.whatismyip.com") to read the web… Re: C: - reading in from text Programming Software Development by jhdobbins … 5... it would read the first 5 lines using an fget() (i get that) but would it output all 5 with… an fget()? because I would only want that fifth line. NOTE: I… Re: C: - reading in from text Programming Software Development by Ancient Dragon … 5... it would read the first 5 lines using an fget() (i get that) but would it output all 5 with… an fget()? because I would only want that fifth line.[/quote] With… Re: Reading a File Into a Single String Programming Software Development by Aia … Dragon;831115] [code] int spot = 0; int c; while( (c = fget[COLOR="Red"]s[/COLOR](fp) ) != EOF) { string[spot… the string [/code][/QUOTE] He really meant [ICODE]while((c = fget[COLOR="Red"]c[/COLOR](fp) != EOF)[/ICODE] And… Re: C and C++ Timesaving Tips Programming Software Development by wbk … a new function and get it over with. [CODE] char *fget(char *s, int size, FILE * stream) { char *ptr; int c… Re: Starting Python Programming Software Development by vegaseat …() combines get and set methods into one call fahrenheit = property(fget = __getFahrenheit, fset = __setFahrenheit) d = Temperature() # setting celsius value ==> getting… Re: html file content into a variable Programming Web Development by zippee You have to fopen first before you can fread or fget.[PHP] $template = './email/signup.html'; $fd = fopen($template,"r"); $message = fread($fd, filesize($template)); // try output it on screen to validate the $message // before doing the mail function fclose($fd); [/PHP] Re: how to test a software program on linux Programming Software Development by usr1971ca … for your prompt replies. However, we will not scanf or fget within the prorgam. We probably initialize all 3 parameters for… Re: read_file and use_data Programming Software Development by jephthah …... the first 5 lines are okay... on line 5 you fget the first line of the file and put it into… Re: filereading Programming Software Development by Ancient Dragon … // fseek(pS,-1,SEEK_END); while( ftell(pS) > 0) { c = fget[color=red]c[/color](pS); if( c != '\r' ) // you don… Re: Reading a File Into a Single String Programming Software Development by Ancient Dragon [QUOTE=Aia;831134]He really meant [ICODE]while((c = fget[COLOR="Red"]c[/COLOR](fp) != EOF)[/ICODE] [/QUOTE] Nope. You have mis-matched parentheses. Count them. Re: what is strcmp do? strcmp work? Programming Software Development by ubi_ct83 Thanks for everyone who follow my thread. i learnt 2 things here: 1- fget count '\n' as character 2-strcmp requires the same lenght of string to be compared Re: problem to convert binary numbers to decimal. Someone HELP Programming Software Development by imso … it to work but i still do not understand the fget function!