[ python-Bugs-1734164 ] sqlite3 causes memory read error

2007-06-10 Thread SourceForge.net
Bugs item #1734164, was opened at 2007-06-09 11:46
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1734164&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: Extension Modules
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: atsuo ishimoto (ishimoto)
Assigned to: Nobody/Anonymous (nobody)
Summary: sqlite3 causes memory read error

Initial Comment:
Attached script causes memory read error at sqlite3.pyd.
Tested on Python 2.5.1/Windows XP.

--

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-10 13:56

Message:
Logged In: YES 
user_id=33168
Originator: NO

I can't reproduce this on Linux with valgrind.  Did you use purify to find
this problem?

Can you provide the complete report that shows the memory read error with
the call stack?  
Are you sure the problem is in the python code?  
Could the problem be in the sqlite code itself?

--

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



[ python-Bugs-1731068 ] Importing a submodule fails after unloading its parent

2007-06-10 Thread SourceForge.net
Bugs item #1731068, was opened at 2007-06-04 20:21
Message generated for change (Comment added) made by gagenellina
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1731068&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 Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Blake Ross (blakeross)
Assigned to: Nobody/Anonymous (nobody)
Summary: Importing a submodule fails after unloading its parent

Initial Comment:
It seems that if you import a submodule, cause its parent package to be 
destroyed, then attempt to re-import the submodule, the parent package is 
properly re-imported but the submodule does not get set on it.

The session below demonstrates this. After the second xml.sax import, "xml" is 
the xml package module as expected, but xml.sax does not exist. I'm not 
familiar with all of the import semantics, but it seems odd to me that 
"foo.bar" could ever fail to exist right after an "import foo.bar".

Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] o
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys, xml.sax
>>> del xml, sys.modules["xml"]
>>> import xml.sax
>>> xml.sax
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute 'sax'
>>>

--

Comment By: Gabriel Genellina (gagenellina)
Date: 2007-06-10 20:45

Message:
Logged In: YES 
user_id=479790
Originator: NO

The same example works OK for me on 2.5.1 on Windows.

--

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



[ python-Bugs-1734723 ] Repr class from repr module ignores maxtuple attribute

2007-06-10 Thread SourceForge.net
Bugs item #1734723, was opened at 2007-06-11 02:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1734723&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.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jason Roberts (jasonjroberts)
Assigned to: Nobody/Anonymous (nobody)
Summary: Repr class from repr module ignores maxtuple attribute

Initial Comment:
The Repr class from the repr module is supposed limit the number of tuple items 
dumped to the value of the maxtuple attribute. But it uses the value of the 
maxlist attribute instead:

def repr_tuple(self, x, level):
return self._repr_iterable(x, level, '(', ')', self.maxlist, ',')

As a result:

>>> import sys
>>> sys.version
'2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)]'
>>> import repr
>>> r = repr.Repr()
>>> r.maxtuple
6
>>> r.maxlist
6
>>> r.maxtuple = 3
>>> r.repr((1,2,3,4,5,6,7,8,9)) # Will print 6 items, not 3
'(1, 2, 3, 4, 5, 6, ...)'
>>> r.maxlist = 3
>>> r.repr((1,2,3,4,5,6,7,8,9)) # Now will print 3 items
'(1, 2, 3, ...)'

The implementation of repr_tuple should be changed to:

def repr_tuple(self, x, level):
return self._repr_iterable(x, level, '(', ')', self.maxtuple, ',')

Obviously this is not a major issue if nobody has noticed it by now. But it 
would be nice to correct the implementation to match the documentation.

In my scenario, I want to dump out all of the items of a tuple but only three 
items from any embedded list. Something like this:

>>> x = (..)
>>> import repr
>>> r = repr.Repr()
>>> r.maxtuple = 255
>>> r.maxlist = 3
>>> print r.repr(x)

But because maxlist controls both the dumping of lists and of tuples, I have to 
choose between only dumping a few items of the tuple and having small lists, or 
dumping all of the items in the tuple and having large lists.


--

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



[ python-Bugs-1734732 ] Tutorial Section 6.4

2007-06-10 Thread SourceForge.net
Bugs item #1734732, was opened at 2007-06-10 22:26
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1734732&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: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Eric Naeseth (enaeseth)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tutorial Section 6.4

Initial Comment:
The package names in the example given in section 6.4 are currently 
capitalized. It might be better to make them lower-case in agreement with 
Python naming conventions.

--

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



[ python-Bugs-1734732 ] Tutorial Section 6.4

2007-06-10 Thread SourceForge.net
Bugs item #1734732, was opened at 2007-06-10 22:26
Message generated for change (Settings changed) made by enaeseth
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1734732&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: Documentation
Group: None
Status: Open
Resolution: None
>Priority: 3
Private: No
Submitted By: Eric Naeseth (enaeseth)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tutorial Section 6.4

Initial Comment:
The package names in the example given in section 6.4 are currently 
capitalized. It might be better to make them lower-case in agreement with 
Python naming conventions.

--

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



[ python-Bugs-1734732 ] Tutorial Section 6.4

2007-06-10 Thread SourceForge.net
Bugs item #1734732, was opened at 2007-06-10 20:26
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1734732&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: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 3
Private: No
Submitted By: Eric Naeseth (enaeseth)
>Assigned to: Neal Norwitz (nnorwitz)
Summary: Tutorial Section 6.4

Initial Comment:
The package names in the example given in section 6.4 are currently 
capitalized. It might be better to make them lower-case in agreement with 
Python naming conventions.

--

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-06-10 22:37

Message:
Logged In: YES 
user_id=33168
Originator: NO

Thanks!  Let us know if you find any more problems.

Committed revision 55882.
Committed revision 55883. (2.5)


--

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