[ python-Bugs-1507166 ] HTTPResponse instance has no attribute 'code'

2006-06-17 Thread SourceForge.net
Bugs item #1507166, was opened at 2006-06-16 11:32
Message generated for change (Settings changed) made by yodalf
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1507166&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.4
>Status: Closed
Resolution: None
Priority: 5
Submitted By: yodalf (yodalf)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTTPResponse instance has no attribute 'code'

Initial Comment:
I get this error :
Traceback (most recent call last):
  File "ogbot.py", line 247, in ?
main()
  File "ogbot.py", line 89, in main
handle = urlopen(req)
  File "/usr/lib/python2.4/urllib2.py", line 130, in
urlopen
return _opener.open(url, data)
  File "/usr/lib/python2.4/urllib2.py", line 364, in open
response = meth(req, response)
  File "/usr/lib/python2.4/urllib2.py", line 468, in
http_response
code, msg, hdrs = response.code, response.msg,
response.info()
AttributeError: HTTPResponse instance has no attribute
'code'

When I use 
req =
Request("http://some/url.php?session=%s"%(session),
data, headers)
handle = urlopen(req)



--

>Comment By: yodalf (yodalf)
Date: 2006-06-17 09:54

Message:
Logged In: YES 
user_id=1278568

Sorry,
The problem came from an external module (urlgrabber) which
aparently was not up to date.

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-06-17 07:50

Message:
Logged In: YES 
user_id=33168

Can you attach a file with a complete python program that
demonstrates this problem?  Thanks.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1507166&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-812986 ] turtle.py deferres exec of stmnts with tracer(0)

2006-06-17 Thread SourceForge.net
Bugs item #812986, was opened at 2003-09-26 12:33
Message generated for change (Settings changed) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=812986&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tkinter
Group: Python 2.3
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Gregor Lingl (glingl)
Assigned to: Martin v. Löwis (loewis)
Summary: turtle.py deferres exec of stmnts with tracer(0)

Initial Comment:
interactive use of turtle.py becomes impossible,
e.g.when issuing tracer(0) because in this
case apparently updating of Canvas-Widget is
deferred ...
... until the next tracer(1)
(one can observe this when running the demo() )

Inserting a _canvas.update() call in _draw_turtle()
for the case that tracing is off seems to work:

def _draw_turtle(self,position=[]):
if not self._tracing:
self._canvas.update()  # <== insert this line!
return
if position == []:  # etc.etc.


I have attached a corrected version as turtle_.py

Gregor Lingl 


--

>Comment By: Martin v. Löwis (loewis)
Date: 2006-06-17 20:44

Message:
Logged In: YES 
user_id=21627

Thanks for the patch. Committed as r47007.

--

Comment By: Gregor Lingl (glingl)
Date: 2003-09-29 00:08

Message:
Logged In: YES 
user_id=505031

OH! Here is the file mentioned above

--

Comment By: Jeff Epler (jepler)
Date: 2003-09-28 16:52

Message:
Logged In: YES 
user_id=2772

You did not attach a file.  You must select a filename *and* turn on the 
checkbox to do so.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=812986&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-815924 ] tkMessageBox functions reject type and ico

2006-06-17 Thread SourceForge.net
Bugs item #815924, was opened at 2003-10-01 17:19
Message generated for change (Settings changed) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=815924&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tkinter
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Tim Diggins (tdiggins)
Assigned to: Martin v. Löwis (loewis)
Summary: tkMessageBox functions reject type and ico

Initial Comment:
Python 2.2.x -> Python 2.3 
I've noticed a small separation between documentation 
and reality in tkMessageBox.

According to Fredrik Lundh's documentation of 
tkMessageBox (in the various online guides & ?printed) 
you can send type and icon keywords to 
tkMessageBox's convenience functions (like askquestion)

However this doesn't work. Don't know if it used to.
So I'm not sure if the docs should be amended or amend 
the code (originally submitted by Fredrik).

An attempt to clear up this bug but was rejected (I 
think, because they also added a feature). see BUG 
761144 https://sourceforge.net/tracker/?
func=detail&atid=105470&aid=761144&group_id=5470)


A simple way to clean up this would be to amend the 
first three lines of _show as attached.




--

>Comment By: Martin v. Löwis (loewis)
Date: 2006-06-17 21:04

Message:
Logged In: YES 
user_id=21627

Thanks for the patch; I committed something similar as
r47008. Please submit unified diffs in the future; this
makes it easier to process them.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=815924&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com