[issue2516] Instance methods are misreporting the number of arguments

gungor report at bugs.python.org
Fri Aug 21 15:02:09 CEST 2009


gungor <gungorbasa at gmail.com> added the comment:

I am using Django with python to develope a web application.While I am
trying to syncronize and running the localserver, I get this issue(2516).
problem function is cagri()
Source Code:
from django.db import models
from datetime import datetime
from sets import ImmutableSet

class Randevu(models.Model):
   	def __init__(self):

		saatler=(
	        ('8',(8)),
	        ('9',(9)),
	        ('10',(10)),
	        ('11',(11)),
	        ('13',(13)),
	        ('14',(14)),
	        ('15',(15)),
	        ('16',(16)),
			    )


		ad=models.CharField(max_length=30)
	   	soyad=models.CharField(max_length=30)
	   	tarih=models.DateField()
	   	saat=models.TimeField(choices=saatler)
	   	konu=models.TextField()
	   	email=models.EmailField()
		t=cagri()
		t.cagir(saat)
	#r=Randevu()		
class duzen():
	def duz(saat):
		r=Randevu()
		fil=r.objects.filter(tarih__gte=datetime(2009,8,21))
		for saat in fil:
			if saat==fil.saat:
				error()	
class cagri():
	def cagir(saat):
		d=duzen()
		d.duz(saat)

----------
components:  -Interpreter Core
nosy: +gungorbasa
type: behavior -> compile error
versions: +Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2516>
_______________________________________


More information about the Python-bugs-list mailing list