The following code is displaying that the user id doesn’t exist in the binary file although the file consist of same data.Can someone tell me the error in the code.
import pickle, os, time from Tkinter import * class SignUp: def __init__(self): self.username=None self.password=None self.Name=None def getinfo(self): self.username=raw_input('Username: ') self.password=raw_input('Password: ') self.Name=raw_input('Enter Name: ') def Users(): global c2 c2=SignUp() #print f=open('namepassword.dat','rb+') flag = 0 while True: try: while True: c2=pickle.load(f) if not c2: break else: if c2.username <> user or c2.password <> PASS: continue else: flag=1 print 'Login Ho gaya re Baba' break except EOFError: pass if flag==0: print "User id does not exist" break f.close() def main(): global root root=Tk() photo=PhotoImage(file="Capture.gif") w=Label(root,image=photo) w.grid(row=0,columnspan=10) v=Label(root,text="USERNAME",fg="Red") v.config(font = "Times") v.grid(row=1,column=4) global user user=Entry(root,bd=4) user.grid(row=2,column=4) a=Label(root,text="PASSWORD",fg="Red") a.config(font="Times") a.grid(row=4,column=4) global PASS PASS=Entry(root,bd=4,show="*") PASS.grid(row=5,column=4) k=Button(root,text="Log In",command=Users) k.grid(row=6,column=4) a=Label(root,text="OR") a.grid(row=7,column=4) s=Label(root,text="Sign Up",command=None) s.grid(row=8,column=4) root.mainloop() main()
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!