[issue2620] Multiple buffer overflows in unicode processing

2008-04-12 Thread Justin Ferguson

Justin Ferguson [EMAIL PROTECTED] added the comment:

i pulled the Macros out of pymem.h in a Vanille 2.5.2?

--
components: +None
versions: +Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2620
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2623] Patch: xmlrpclib client ignores datetime tzinfo when creating iso8601 dates

2008-04-12 Thread Leonard Clark

New submission from Leonard Clark [EMAIL PROTECTED]:

xmlrpclib ignores datetime parameter timezone information.  Two spots
were identified to apply a new formatting function, _iso8601format, to
ensure that the timezone is passed to the server.

I would like this fix to be included in future releases. (Thank you!)

--
components: XML
files: xmlrpclib-timezone.patch
keywords: patch
messages: 65394
nosy: lclark
severity: normal
status: open
title: Patch: xmlrpclib client ignores datetime tzinfo when creating iso8601 
dates
type: behavior
versions: Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10016/xmlrpclib-timezone.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2623
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2620] Multiple buffer overflows in unicode processing

2008-04-12 Thread Justin Ferguson

Justin Ferguson [EMAIL PROTECTED] added the comment:

sorry didnt mean to change components and version-- I'm typing this from 
my phone and its being uncooperative at the moment

--
components: +Library (Lib)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2620
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2621] rename test_support to support

2008-04-12 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

It would be nice if all test.test_foo modules were real tests.

I know this is on the stdlib-sig's list of changes for 3.0; I don't
think we should do the rename in 2.x.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2621
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2620] Multiple buffer overflows in unicode processing

2008-04-12 Thread Justin Ferguson

Justin Ferguson [EMAIL PROTECTED] added the comment:

just fixing the modifications my phone made earlier tonight

--
components:  -Library (Lib), None
versions:  -Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2620
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com




[issue2620] Multiple buffer overflows in unicode processing

2008-04-12 Thread Justin Ferguson

Justin Ferguson [EMAIL PROTECTED] added the comment:

Additionally-- the PyMem_NEW()/PyMem_New() macro's need to be fixed:

 231 static
 232 PyUnicodeObject *_PyUnicode_New(Py_ssize_t length)
 233 {
 234 register PyUnicodeObject *unicode;
 235 
 236 /* Optimization for empty strings */
 237 if (length == 0  unicode_empty != NULL) {
 238 Py_INCREF(unicode_empty);
 239 return unicode_empty;
 240 }
 241 
 242 /* Unicode freelist  memory allocation */
 243 if (unicode_freelist) {
 244 unicode = unicode_freelist;
 245 unicode_freelist = *(PyUnicodeObject **)unicode;
 246 unicode_freelist_size--;
 247 if (unicode-str) {
 248 /* Keep-Alive optimization: we only upsize the buffer,
 249never downsize it. */
 250 if ((unicode-length  length) 
 251 unicode_resize(unicode, length)  0) {
 252 PyMem_DEL(unicode-str);
 253 goto onError;
 254 }
 255 }
 256 else {
 257 unicode-str = PyMem_NEW(Py_UNICODE, length + 1);
 258 }

 85 #define PyMem_New(type, n) \
 86   ( assert((n) = PY_SIZE_MAX / sizeof(type)) , \
 87 ( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
 88 #define PyMem_NEW(type, n) \
 89   ( assert((n) = PY_SIZE_MAX / sizeof(type)) , \
 90 ( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
 91 
 92 #define PyMem_Resize(p, type, n) \
 93   ( assert((n) = PY_SIZE_MAX / sizeof(type)) , \
 94 ( (p) = (type *) PyMem_Realloc((p), (n) * sizeof(type)) ) )
 95 #define PyMem_RESIZE(p, type, n) \
 96   ( assert((n) = PY_SIZE_MAX / sizeof(type)) , \
 97 ( (p) = (type *) PyMem_REALLOC((p), (n) * sizeof(type)) ) )


It looks like much of this is reachable from modules, unicode objects,
dict objects, set objects, et cetera. Also, if a 2G string across the
network seems unrealistic consider what 2 billion A's compresses down
to.(Macros again taken from 2.5.2 vanilla)

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2620
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2008-04-12 Thread Kjell Braden

New submission from Kjell Braden [EMAIL PROTECTED]:

Distutils should tell swig to create it's C wrapper file into the
temporary directory (eg. build/temp.linux-i686-2.5) and to write the
language specific files to the library directory (eg.
build/lib.linux-i686-2.5).

Rationale:
Without the language specific files, python swig extensions won't be
able to run, so they should definetly be distributed by distutils.
The wrapper files are build by-products and should therefore be in the
temporary directory, so they get cleaned up on setup.py clean.

--
components: Demos and Tools
messages: 65399
nosy: afflux
severity: normal
status: open
title: swig support in distutils should use the build and temp dirs
type: behavior
versions: Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2624
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2617] Patch to emit -J is reserved for Jython on -J arg

2008-04-12 Thread Christian Heimes

Christian Heimes [EMAIL PROTECTED] added the comment:

I've reserved -X as well. Applied in r62293

--
nosy: +tiran
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2617
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue902061] pydoc insists upon producing file: URLs

2008-04-12 Thread Daniel Diniz

Changes by Daniel Diniz [EMAIL PROTECTED]:


--
versions: +Python 2.6


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue902061

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2008-04-12 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

Can you provide a patch?

--
nosy: +loewis

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2624
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2624] swig support in distutils should use the build and temp dirs

2008-04-12 Thread Kjell Braden

Kjell Braden [EMAIL PROTECTED] added the comment:

Without having it tested very much, the attached patch fixes this issue
for me.

--
keywords: +patch
Added file: http://bugs.python.org/file10017/python_distutils+swig.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2624
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2600] BindingHTTPConnectionWithTimeout and BindingHTTPHandlerWithTimeout

2008-04-12 Thread Daniel Diniz

Changes by Daniel Diniz [EMAIL PROTECTED]:


--
versions: +Python 2.6 -Python 2.4, Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2600
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue836088] Update htmllib to HTML 4.01

2008-04-12 Thread Daniel Diniz

Changes by Daniel Diniz [EMAIL PROTECTED]:


--
versions: +Python 2.6 -Python 2.5


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue836088

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2621] rename test_support to support

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Right, we should do this only in Py3k. It might be helpful to make an
alias in 2.6 for it. Attaching py3k patch.

--
versions: +Python 3.0 -Python 2.6
Added file: http://bugs.python.org/file10018/rename_test_support_py3k.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2621
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo

Changes by Guilherme Polo [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file9611/py-itimer-0.1.2.tar.gz

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2240
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo

Changes by Guilherme Polo [EMAIL PROTECTED]:


Removed file: http://bugs.python.org/file9613/setitimer_getitimer_wrapper.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2240
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo

Changes by Guilherme Polo [EMAIL PROTECTED]:


Removed file: 
http://bugs.python.org/file9615/setitimer_getitimer_wrapper_rename.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2240
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo

Changes by Guilherme Polo [EMAIL PROTECTED]:


Removed file: 
http://bugs.python.org/file9619/setitimer_getitimer_wrapper_fixes.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2240
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo

Changes by Guilherme Polo [EMAIL PROTECTED]:


Removed file: 
http://bugs.python.org/file9622/setitimer_getitimer_wrapper_doc_update.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2240
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2240] setitimer, getitimer wrapper

2008-04-12 Thread Guilherme Polo

Changes by Guilherme Polo [EMAIL PROTECTED]:


Removed file: 
http://bugs.python.org/file9620/setitimer_getitimer_wrapper_doc.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2240
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2598] { +(}.format(**{' +(': 44}) should produce ValueError: invalid identifier, ' +(' in format

2008-04-12 Thread Bruce Frederiksen

Bruce Frederiksen [EMAIL PROTECTED] added the comment:

I was reading the 3.0 documentation:
http://docs.python.org/dev/3.0/library/string.html#formatstrings which
indicated that an identifier was required.  I was unaware of the
implementation note in the PEP.

They only issue remaining is that for the example in the title of this
issue, { +(}.format(**{' +(': 44}), no error is generated.  I agree
that this is a nit and presumably the will of the community reviewing
the PEP, so agree to having the issue rejected.

I would reject it myself, but am unable to do so...

Thank you for pointing out the PEP to me.

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2598
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2576] httplib read() very slow due to lack of socket buffer

2008-04-12 Thread Daniel Diniz

Daniel Diniz [EMAIL PROTECTED] added the comment:

Also reported in #1542407

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2576
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1156280] cmd.Cmd().cmdloop() can't read from file

2008-04-12 Thread Daniel Diniz

Daniel Diniz [EMAIL PROTECTED] added the comment:

Superseded by #2571
The user can change cmd.Cmd.use_rawinput to False and get the desired
behaviour.

--
nosy: +ajaksu2

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1156280
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1721241] code that writes the PKG-INFO file doesnt handle unicode

2008-04-12 Thread Daniel Diniz

Daniel Diniz [EMAIL PROTECTED] added the comment:

Currently tracked in #2562

--
nosy: +ajaksu2
versions: +Python 2.6

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1721241
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2625] mailbox.MH.get_message() treats result of get_sequences() as list of tuples

2008-04-12 Thread Christer Sjöholm

New submission from Christer Sjöholm [EMAIL PROTECTED]:

in mailbox.MH.get_message() there is a loop over the mailbox sequences
on row 894 in Python 2.5.2
  for name, key_list in self.get_sequences():
but mailbox.MH.get_sequences() returns a dict so it should be
  for name, key_list in self.get_sequences().iteritems():

--
components: Library (Lib)
messages: 65408
nosy: hcs
severity: normal
status: open
title: mailbox.MH.get_message() treats result of get_sequences() as list of 
tuples
type: behavior
versions: Python 2.5, Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2625
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2530] Document IO module

2008-04-12 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

It isn't. I'll have to investigate this -- I have a feeling of déjà-bug...

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2530
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2617] Patch to emit -J is reserved for Jython on -J arg

2008-04-12 Thread Frank Wierzbicki

Frank Wierzbicki [EMAIL PROTECTED] added the comment:

On Sat, Apr 12, 2008 at 9:03 AM, Christian Heimes
[EMAIL PROTECTED] wrote:

  Christian Heimes [EMAIL PROTECTED] added the comment:

  I've reserved -X as well. Applied in r62293
Great, thanks!  While I'd love to have *both* -X and -J, is that okay
with the other devs?

-Frank

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2617
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1156280] cmd.Cmd().cmdloop() can't read from file

2008-04-12 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Closing as duplicate.

--
nosy: +georg.brandl
resolution:  - duplicate
status: open - closed
superseder:  - cmd.py always uses raw_input, even when another stdin is 
specified

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1156280
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1721241] code that writes the PKG-INFO file doesnt handle unicode

2008-04-12 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Closing as duplicate.

--
nosy: +georg.brandl
resolution:  - duplicate
status: open - closed
superseder:  - Cannot use non-ascii letters in disutils if setuptools is used.

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1721241
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2615] xml.dom.minidom documentation consistency and update

2008-04-12 Thread Georg Brandl

Georg Brandl [EMAIL PROTECTED] added the comment:

Committed as r62295.

--
resolution:  - accepted
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2615
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue853569] Keyword or function to invoke pdb programmatically

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

I don't think this is going to happen any time soon.

--
nosy: +benjamin.peterson
resolution:  - rejected
status: open - closed


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue853569

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue920680] readline not implemented for UTF-16

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

It seems this is no longer true.

--
nosy: +benjamin.peterson
resolution:  - fixed
status: open - closed


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue920680

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue960845] overall index to distributed documentation

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

There is in 2.6.

--
nosy: +benjamin.peterson
resolution:  - fixed


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue960845

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Something like this was done in 2.5.

--
nosy: +benjamin.peterson
resolution:  - fixed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue960845] overall index to distributed documentation

2008-04-12 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
status: open - closed


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue960845

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1683368] object.__init__ shouldn't allow args/kwds

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Can this be closed?

--
nosy: +benjamin.peterson

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1683368
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2622] Import errors in email.message.py

2008-04-12 Thread Guilherme Polo

Guilherme Polo [EMAIL PROTECTED] added the comment:

You may not like the naming applied there, but surely it is not a import
error. Can you actually manage to get an ImportError ?

--
nosy: +gpolo

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2622
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

I don't think so.

socket.error has been changed to inherit from IOError in 2.6 (and thus
socket.sslerror which inherits from socket.error).

EOFError has not changed.

ftplib.all_errors is already a tuple of (ftplib.Error, socket.error,
IOError, EOFError) which demonstrates the issue...

Anyways there was discussion on python-dev around the time I made
socket.error extend IOError.  Adding a new exception to the heirarchy
was frowned upon.  EnvironmentError is already suitable for that task.

Perhaps EOFError should extend EnvironmentError as well?

--
nosy: +gregory.p.smith
versions: +Python 2.6

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Gregory P. Smith

Changes by Gregory P. Smith [EMAIL PROTECTED]:


--
resolution: fixed - 
status: closed - open

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Benjamin Peterson

Benjamin Peterson [EMAIL PROTECTED] added the comment:

Yes, that'd make sense. Ask on python-dev, though.

--
resolution:  - fixed
status: open - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2622] Import errors in email.message.py

2008-04-12 Thread Georg Brandl

Changes by Georg Brandl [EMAIL PROTECTED]:


--
assignee:  - barry
nosy: +barry
priority:  - low

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2622
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1779700] urlparse.urljoin does not obey current uri rfc (rfc 3986)

2008-04-12 Thread Daniel Diniz

Daniel Diniz [EMAIL PROTECTED] added the comment:

Duplicate of #1591035

--
nosy: +ajaksu2

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1779700
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue992389] attribute error after non-from import

2008-04-12 Thread Georg Brandl

Changes by Georg Brandl [EMAIL PROTECTED]:


--
assignee:  - ncoghlan
priority: low - normal


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue992389

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1950] Potential overflows due to incorrect usage of PyUnicode_AsString.

2008-04-12 Thread Alexandre Vassalotti

Alexandre Vassalotti [EMAIL PROTECTED] added the comment:

I revised the patch with respect to Alexander's comments. In summary,
here is what I changed from the previous patch:

  - Removed the unnecessary fixes to Objects/structseq.c
and Modules/timemodule.c
  - Updated Objects/typeobject.c to forbid null-bytes in __doc__,
since they cannot be handled in the `tp_doc` member.
  - Removed an erroneous pointer dereference in Modules/zipimport.c
  - Changed `len+1` to `len` in the memcpy() call in the
Modules/parsermodule.c fixes

Added file: http://bugs.python.org/file10019/unicode_string_overflow-2.patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1950
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1481036] IOBaseError

2008-04-12 Thread Gregory P. Smith

Gregory P. Smith [EMAIL PROTECTED] added the comment:

The problem with EOFError as a child of EnvironmentError is that it
wouldn't conform to EnvironmentError's standard 2-tuple or 3-tuple of
args representing errno and the associate string and optionally filename.

So inserting an exception above EnvironmentError would be a solution to
that for EOFError.  Alternatively, EOFError could have some default
2-tuple values and be a child of EnvironmentError.

thoughts or pronouncements anyone?  (asking python-dev now)

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1481036
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2195] urlparse() does not handle URLs with port numbers properly

2008-04-12 Thread Daniel Diniz

Daniel Diniz [EMAIL PROTECTED] added the comment:

Discussed in #754016

--
nosy: +ajaksu2
versions: +Python 2.6 -Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2195
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2626] If compile with gcc 4.3.0 python interpreter itself eats all memory

2008-04-12 Thread Georgij Kondratjev

New submission from Georgij Kondratjev [EMAIL PROTECTED]:

First time I noticed it during compilation of python3 r62301, then 
3.0a4, then 3.0a3, with and without CFLAGS set. 
Step ./python -E ./setup.py -q build called by make never ends (and 
there is no output). Just /python behaves the same: it eats memory 
and prints nothing. Gcc 3.4.6 works fine. Previous versions of gcc 4 
were working too, but I didn`t tested them now.
My system: gcc 4.3.0, kernel 2.6.24.zen5.20080410 (with zen patchset, 
can test again with vanilla 2.6.24, or if you say it is too old I will 
compile 2.6.24.4), glibc 2.7, Arch GNU/Linux.

--
components: Interpreter Core
messages: 65426
nosy: orivej
severity: normal
status: open
title: If compile with gcc 4.3.0 python interpreter itself eats all memory
versions: Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2626
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1631171] implement warnings module in C

2008-04-12 Thread Brett Cannon

Brett Cannon [EMAIL PROTECTED] added the comment:

Committed in revision 62303.

--
resolution:  - accepted
status: pending - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1631171
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2622] Import errors in email.message.py

2008-04-12 Thread John Jackson

John Jackson [EMAIL PROTECTED] added the comment:

Yes. If the code is used to build a standalone application with py2app 
on the Mac, here's the end of the stack trace:
  File controller.pyo, line 17, in module
  File readMail.pyo, line 15, in module
  File mailbox.pyo, line 1294, in module
  File email/__init__.pyo, line 79, in __getattr__
  File email/message.pyo, line 86, in module
  File email/message.pyo, line 784, in Message
  File email/__init__.pyo, line 79, in __getattr__
ImportError: No module named iterators

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2622
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2622] Import errors in email.message.py

2008-04-12 Thread Guilherme Polo

Guilherme Polo [EMAIL PROTECTED] added the comment:

Can you send a sample code that reproduces that ?

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2622
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2078] CSV Sniffer does not function properly on single column .csv files

2008-04-12 Thread Skip Montanaro

Skip Montanaro [EMAIL PROTECTED] added the comment:

I can't see a great reason to change the behavior.  I've attached my
current patch for csv.py and test_csv.py in case someone else wants
to pick it up later.

--
keywords: +patch
priority:  - low
resolution:  - postponed
status: open - closed
Added file: http://bugs.python.org/file10020/csv.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2078
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue766910] fix one or two bugs in trace.py

2008-04-12 Thread Skip Montanaro

Skip Montanaro [EMAIL PROTECTED] added the comment:

unassigning

--
assignee: skip.montanaro - 


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue766910

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1744580] cvs.get_dialect() return a class object

2008-04-12 Thread Skip Montanaro

Skip Montanaro [EMAIL PROTECTED] added the comment:

Just a doc change after all...

--
status: pending - closed

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1744580
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1374063] Broader iterable support for xmlrpclib

2008-04-12 Thread Skip Montanaro

Changes by Skip Montanaro [EMAIL PROTECTED]:


--
resolution:  - remind

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1374063
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1225769] Proposal to implement comment rows in csv module

2008-04-12 Thread Skip Montanaro

Skip Montanaro [EMAIL PROTECTED] added the comment:

Assigning to Andrew (as the primary C lib author).  Andrew, please
comment ;-).

--
assignee: skip.montanaro - andrewmcnamara
nosy: +andrewmcnamara

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1225769
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1437699] allow unicode arguments for robotparser.can_fetch

2008-04-12 Thread Skip Montanaro

Changes by Skip Montanaro [EMAIL PROTECTED]:


--
assignee: skip.montanaro - 
nosy:  -skip.montanaro

_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1437699
_
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2626] If compile with gcc 4.3.0 python interpreter itself eats all memory

2008-04-12 Thread Martin v. Löwis

Martin v. Löwis [EMAIL PROTECTED] added the comment:

That's a bug in gcc 4.3, see

http://mail.python.org/pipermail/python-3000/2008-April/012965.html

--
nosy: +loewis
resolution:  - invalid
status: open - closed
versions: +3rd party -Python 3.0

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2626
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue992389] attribute error after non-from import

2008-04-12 Thread Nick Coghlan

Nick Coghlan [EMAIL PROTECTED] added the comment:

This is actually a pretty tough problem - fixing it would involve some
fairly subtle changes to the way imports from packages are handled.
Given that I'm of the opinion that permitting circular imports in a code
base is an extraordinarily bad coding practice (if I'm ever tempted to
create a circular import, I consider it a sign that I need to separate
out some of the common code into a utility module), I'm not personally
going to be putting any effort into solving it (although I wouldn't
necessarily oppose anyone else trying to fix it).

However, I'll give a detailed description of the problem and a possible
solution in case anyone else wants to tackle it (since I believe there's
already a similar trick done for the sys.modules cache).

At the moment, when resolving an import chain __import__ only sets the
parent package's attribute for the submodule after the submodule import
is complete. This is what Jim describes in his original post, and is the
cause of the failure to resolve the name. Deferring the lookups solves
the problem because it means the package attributes are checked only
after the whole import chain is complete, instead of trying to get
access to a half-executed module during the import itself.

The most likely solution to the problem would be to change the attribute
on the parent package to be handled in a fashion closer to the way the
sys.modules cache is handled: set the attribute on the parent package
*before* executing the module's code, and delete that attribute if a
problem is encountered with the import.

The consequence of this would be that circular imports would be
permitted, although the module's imported in this fashion would be seen
in a half constructed state. So instead of the import failing with an
exception (which is what happens now), you would instead get a module
which you can't actually use (since most its attributes won't actually
be filled in yet, as the circular imports will normally occur near the
top of the file). Attempts to use methods, attributes and functions from
the module may or may not work depending on the order in which the
original module does things.

A clean failure indicating You have a circular import, get rid of it
seems better to me than possible hard to diagnose bugs due to being able
to retrieve things from a half-constructed module, but opinions
obviously differ on that. However, I really don't see this changing
without a PEP.

--
assignee: ncoghlan - 
type:  - feature request


Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue992389

___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com