[issue11129] logging: allow multiple entries in qualname config

2011-02-08 Thread anatoly techtonik

anatoly techtonik  added the comment:

And how do you intend to parse the dictionary stored in external file? 
Evaluating this script is unsafe.

--

___
Python tracker 

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



[issue11129] logging: allow multiple entries in qualname config

2011-02-08 Thread anatoly techtonik

Changes by anatoly techtonik :


--
type:  -> security

___
Python tracker 

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



[issue11144] int(float) may return a long for no reason

2011-02-08 Thread Mark Dickinson

Mark Dickinson  added the comment:

I'd call this a bug, albeit a minor one.  The documentation for 'int' says: 

"If the argument is outside the integer range a long object will be returned 
instead."

... which certainly suggests (without actually formally implying) that an int 
object should be returned if the argument is within the integer range.

--

___
Python tracker 

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



[issue11148] Crash and error message from Python VM

2011-02-08 Thread Pham Cong Dinh

New submission from Pham Cong Dinh :

Quite often, I got the following message printed out the console while I run my 
Python script

pthread_cond_signal: Undefined error: 0

Or it crashed

https://gist.github.com/799841

Tested with Python 2.6.1 and 2.6.6 (Mac)

What I am trying to do is to set up a logging component that collects all 
messages sent from child processes to a pipe created by the parent process. The 
logging component is controlled by a thread created by parent process

--
components: Interpreter Core
messages: 128168
nosy: pcdinh
priority: normal
severity: normal
status: open
title: Crash and error message from Python VM
type: crash
versions: Python 2.6

___
Python tracker 

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



[issue11129] logging: allow multiple entries in qualname config

2011-02-08 Thread Vinay Sajip

Vinay Sajip  added the comment:

The logging package will not parse any external file to get a dictionary. It's 
up to the application developer to provide a dictionary which will be used for 
configuration, so there's no security issue in the stdlib.

--
type: security -> 

___
Python tracker 

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



[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread Ismail Donmez

New submission from Ismail Donmez :

clang (as with gcc 4.x) assumes signed integer overflow is undefined. But 
Python depends on the fact that signed integer overflow wraps. 

Currently configure script adds -fwrapv flag for GCC (added by me back in the 
day), same should be done with clang.

Patch attached.

--
components: Build
files: clang-fwrapv.diff
keywords: patch
messages: 128170
nosy: cartman
priority: normal
severity: normal
status: open
title: [PATCH] Configure should enable -fwrapv for clang
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file20717/clang-fwrapv.diff

___
Python tracker 

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



[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread STINNER Victor

STINNER Victor  added the comment:

You should maybe add a test into _testcapi for this issue.

--
nosy: +haypo

___
Python tracker 

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



[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread Ismail Donmez

Ismail Donmez  added the comment:

Currently test_overflow inside test_list fails without this patch. Is that good 
enough or should we create a specific test?

--

___
Python tracker 

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



[issue11150] SVN credentials can't be provided to easy_install

2011-02-08 Thread Yegor Bugayenko

New submission from Yegor Bugayenko :

I'm trying to install Python EGG with `easy_install`, providing a URL of 
Subversion repository, where sources are hosted:

$ easy_install svn://user:sec...@svn.example.com/repo/trunk/my-egg
Authentication realm:  repo
Password for 'me':

The problem is that the repository is password protected. How can I provide the 
desired username/password to `easy_install`?

Everything works fine when I'm using `http://` protocol instead of `svn://`

--
components: Installation
messages: 128173
nosy: yegor256
priority: normal
severity: normal
status: open
title: SVN credentials can't be provided to easy_install
type: behavior
versions: Python 3.3

___
Python tracker 

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



[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread STINNER Victor

STINNER Victor  added the comment:

Ah, there is already a test for that: ok, it's fine and enough.

--

___
Python tracker 

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



[issue8978] "tarfile.ReadError: file could not be opened successfully" if compiled without zlib

2011-02-08 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue11151] Arguments to various types not specified in types module

2011-02-08 Thread Noufal

New submission from Noufal :

The documentation for the types module seems to have an obvious bug. The 
arguments to create the various types are not mentioned in the docs page on 
http://docs.python.org/library/types.html

This came to my attention from a stack overflow question here
http://stackoverflow.com/questions/4933325/where-can-i-find-documentation-for-calling-the-various-types-in-pythons-types-mo

--
assignee: docs@python
components: Documentation
messages: 128175
nosy: docs@python, noufal
priority: normal
severity: normal
status: open
title: Arguments to various types not specified in types module
type: behavior
versions: Python 2.7

___
Python tracker 

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



[issue11151] Arguments to various types not specified in types module

2011-02-08 Thread Michael Foord

Michael Foord  added the comment:

Care to provide a patch Noufal?

--
nosy: +michael.foord

___
Python tracker 

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



[issue11148] Crash and error message from Python VM

2011-02-08 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
assignee:  -> ronaldoussoren
components: +Macintosh
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

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



[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-02-08 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
components: +Interpreter Core
nosy: +jyasskin
versions: +Python 3.3

___
Python tracker 

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



[issue11148] Crash and error message from Python VM

2011-02-08 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

Can you provide a script that shows the problem? Without such a script it will 
be hard to reproduce, and fix, this problem.

--

___
Python tracker 

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



[issue11150] SVN credentials can't be provided to easy_install

2011-02-08 Thread R. David Murray

R. David Murray  added the comment:

easy_install is not part of python.  Please report this to the easy_install bug 
tracker instead.

--
nosy: +r.david.murray, tarek
resolution:  -> later
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-02-08 Thread Eric Smith

Eric Smith  added the comment:

Without guessing which args are options, I don't see how it's possible to 
implement parse_known_args().

I'd propose raising an exception if it's called and 
dont_assume_everything_that_looks_like_a_flag_is_intended_to_be_one (or 
whatever it ends up being called) is True.

--

___
Python tracker 

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



[issue11152] pb in zipfile module

2011-02-08 Thread labem

New submission from labem :

Detected in Python version:
Python 2.6.3 (r263rc1:75186, Oct  2 2009, 20:40:30) [MSC v.1500 32 bit (Intel)] 
on win32

Error in zipfile module: Zip files with no compressed files may contain only 
   [end of central directory record] bloc
without anything else. In that case, when _EndRecData(fpin) function tries to 
call:
 return _EndRecData64(fpin, -sizeEndCentDir, endrec)
it makes _EndRecData64() trying to seek data in the file before the beginning 
of the file and generates IOError "Invalid Argument" which is :
* either badly (in is_zipfile()), 
* or not catched (in __init()__._GetContents()._RealGetContents().EndRecData()).

Correction seems easy (not tested) and just need to replace:
# Try to read the "Zip64 end of central directory" structure
return _EndRecData64(fpin, -sizeEndCentDir, endrec)
by:
# check if other block are present
if filesize > sizeEndCentDir:
# Try to read the "Zip64 end of central directory" structure
return _EndRecData64(fpin, -sizeEndCentDir, endrec)
else:
# no other block present
return endrec

--
components: Library (Lib)
messages: 128180
nosy: Emmanuel LAB
priority: normal
severity: normal
status: open
title: pb in zipfile module
type: crash
versions: Python 2.6

___
Python tracker 

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



Win 7 64 bit Idle editing errors

2011-02-08 Thread johnckint

I have 2 new work pc's, one desktop and one laptop and both have Win7 64 bit.

I get very frequent editing errors in Idle editor on these systems. The most
frequent error is 
pasting text into two locations, the one targeted and the other one randomly
somewhere else in the file.

This happens on both Python 32 bit and 64 bit versions. 

>From recent experience, these errors do not happen on XP, Vista, or Win 7-32
bit systems.

Is there a cure or am I forced to change to other pc's?

Thanks for any suggestions.
-- 
View this message in context: 
http://old.nabble.com/Win-7-64-bit-Idle-editing-errors-tp30873801p30873801.html
Sent from the Python - python-bugs-list mailing list archive at Nabble.com.

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



[issue4142] smtplib doesn't clear helo/ehlo flags on quit

2011-02-08 Thread Don Dwiggins

Don Dwiggins  added the comment:

I have no pressing need for it.  I'm happy enough with Martin's idea of 
single-use instances, as long as they're clearly documented as such, and don't 
"pretend" to work for a subsequent connect.  I'd also be happy with instances 
that could be used for multiple connections, as long as that didn't increase 
the complexity of the code too much.

Martin's also right that the similar clients for http and ftp, as well as smtp, 
should all work the same.

--

___
Python tracker 

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-02-08 Thread Brett Cannon

Brett Cannon  added the comment:

Updated patch that applies cleanly.

--
Added file: http://bugs.python.org/file20718/issue10990.diff

___
Python tracker 

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



[issue10990] tests mutating sys.gettrace() w/o re-instating previous state

2011-02-08 Thread Brett Cannon

Changes by Brett Cannon :


Removed file: http://bugs.python.org/file20620/issue_10990.diff

___
Python tracker 

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



[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread Brett Cannon

Brett Cannon  added the comment:

I am using LLVM/Clang 2.8 and test_list passes fine for me as-is. Does it only 
fail under 32 or 64-bit conditions? Configure compiles under 32-bits for me 
even though I have -arch x86_64 set.

--
nosy: +brett.cannon

___
Python tracker 

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



[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-02-08 Thread Ismail Donmez

Ismail Donmez  added the comment:

This is only reproducable with clang 2.9 trunk builds due to new optimizations. 
Also note that clang commits confirm that -fwrapv must be provided if you 
assume signed integer overflow wraps. This was also the case with a spec test.

I tested this on OSX 10.6.6 with x86-64 build.

--

___
Python tracker 

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



[issue10951] gcc 4.6 warnings

2011-02-08 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I can see how a comment like /* spam = eggs + ham */ could be useful, but and 
isolated /* foo = 0 */ where 'foo' appears nowhere else in the file seems more 
like confusing noise.

--

___
Python tracker 

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



[issue10951] gcc 4.6 warnings

2011-02-08 Thread Brett Cannon

Brett Cannon  added the comment:

You're right, Terry. It's a judgment call as to what should be simply deleted 
compared to commented out.

--

___
Python tracker 

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



[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2011-02-08 Thread Sridhar Ratnakumar

Sridhar Ratnakumar  added the comment:

There is a bug with the patch. The first argument to the `start` command, if a 
quoted string, becomes the Window title, not the command to execute. Hence, 
idle.pyw is directly executed by Windows. Here's the correct command line:

start "IDLELAUNCH" "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 
%5 %6 %7 %8 %9

Could you make this fix part of the upcoming 3.2?

--
status: closed -> pending

___
Python tracker 

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



[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2011-02-08 Thread Brian Curtin

Brian Curtin  added the comment:

We're only a few days away from 3.2 final so it's too late. Once it goes out 
I'll make the adjustment and it'll be in 3.2.1.

--
resolution: fixed -> 
stage: committed/rejected -> patch review
status: pending -> open

___
Python tracker 

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



[issue11144] int(float) may return a long for no reason

2011-02-08 Thread Martin v . Löwis

Martin v. Löwis  added the comment:

> I'd call this a bug, albeit a minor one.  The documentation for 'int' says: 
> 
> "If the argument is outside the integer range a long object will be returned 
> instead."

Ah ok. I agree it's a bug, then.

--

___
Python tracker 

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



[issue11153] urllib2 basic auth parser handle unquoted realm in WWW-Authenticate header

2011-02-08 Thread Matthew M. Boedicker

New submission from Matthew M. Boedicker :

I am working with a web server that does not quote the realm in the 
WWW-Authenticate header.

This patch will make the realm parsing handle unquoted realm as well as some 
other invalid variations.

I tried doing it by modifying the regex only but could not get it to handle all 
cases.

--
components: Library (Lib)
files: urllib2_unquoted_realm.diff
keywords: patch
messages: 128190
nosy: mmb
priority: normal
severity: normal
status: open
title: urllib2 basic auth parser handle unquoted realm in WWW-Authenticate 
header
Added file: http://bugs.python.org/file20719/urllib2_unquoted_realm.diff

___
Python tracker 

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



[issue11153] urllib2 basic auth parser handle unquoted realm in WWW-Authenticate header

2011-02-08 Thread Matthew M. Boedicker

Changes by Matthew M. Boedicker :


--
type:  -> behavior

___
Python tracker 

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



[issue2889] curses for windows (alternative patch)

2011-02-08 Thread Christoph Gohlke

Christoph Gohlke  added the comment:

Curses binaries for Python 2.5, 2.6, 2.7, 3.1 and 3.2, win32 and win-amd64, are 
available at .

--

___
Python tracker 

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



[issue10800] libffi build failure on HP-UX 11/PA

2011-02-08 Thread Oren Held

Oren Held  added the comment:

quick update: libffi (upstream) has this fixed now in git commit dc411e8f991 .

--

___
Python tracker 

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



[issue7719] distutils: ignore .nfsXXXX files

2011-02-08 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the report and patch (I think SilentGhost’s version is better).  Do 
you have any pointer about those .nfs* files?  Are there other (build) tools 
that ignore them?  Is it always safe to skip .nfs* files, or only .nfs? 
(i.e. six characters)?

Aside from those questions, a patch requires a test and doc update.  See 
guidelines at http://wiki.python.org/moin/Distutils/FixingBugs

--
components: +Distutils2
nosy: +eric.araujo
versions: +3rd party

___
Python tracker 

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



[issue11154] Alternate name for __pycache__

2011-02-08 Thread Raymond Hettinger

New submission from Raymond Hettinger :

It would be great if the "__pycache__" name could be set by an environment 
variable.  I would like to rename it to ".pycache" so that it doesn't pollute 
my directory listings.

--
assignee: barry
messages: 128194
nosy: barry, rhettinger
priority: normal
severity: normal
status: open
title: Alternate name for __pycache__
type: feature request
versions: Python 3.3

___
Python tracker 

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



[issue7719] distutils: ignore .nfsXXXX files

2011-02-08 Thread Sandro Tosi

Sandro Tosi  added the comment:

On Tue, Feb 8, 2011 at 23:40, Éric Araujo  wrote:
>
> Éric Araujo  added the comment:
>
> Do you have any pointer about those .nfs* files?  Are there other (build) 
> tools that ignore them?  Is it always safe to skip .nfs* files, or only 
> .nfs? (i.e. six characters)?

Just replying for this part: .nfs* files are created by the nfs server
when on of its client removes a file while another client has the very
same file opened. the nfs server keeps the .nfs* file around until the
last client closes the file, after that it removes the .nfs* file.

About the number of digits after '.nfs' I'm not sure there's a
standard for it, but I saw files with more that 6 chars after that.

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi

--
nosy: +sandro.tosi

___
Python tracker 

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



[issue11145] '%o' % user-defined instance

2011-02-08 Thread Éric Araujo

Éric Araujo  added the comment:

The doc for %o only says it returns the “signed octal value”; __oct__ is not a 
magic method (i.e. it’s not a name with special meaning), converting with oct() 
actually uses __index__.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue11151] Arguments to various types not specified in types module

2011-02-08 Thread Éric Araujo

Éric Araujo  added the comment:

Remember that the types module is mostly obsolete now: a type like IntType is 
described as alias for the builtin int, with a link to the comprehensive 
document of said int.

(On an unrelated note, the types module may encourage type-checking, which is 
not common or generally useful in Python.  Too bad it couldn’t be removed 
wholesale in 3.x.)

That said, adding documentation for other cases like ModuleType and CodeType 
that aren’t defined anywhere else in the stdlib is indeed a good idea.

--
nosy: +eric.araujo
versions: +Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue11152] pb in zipfile module

2011-02-08 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +alanmcintyre

___
Python tracker 

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



[issue11152] pb in zipfile module

2011-02-08 Thread Éric Araujo

Changes by Éric Araujo :


--
stage:  -> test needed
type: crash -> behavior
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6

___
Python tracker 

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



[issue6005] Bug in socket example

2011-02-08 Thread Sandro Tosi

Sandro Tosi  added the comment:

Hi all,
I was looking at this issue and thought: ok the module documentation uses 
send() not correctly, so we should fix that; the fastest solution is using 
sendall().

But then searching fro some examples in the code on internet, I found that the 
python docs contain a "Socket Programming HOWTO" that uses send() the way it 
should be.

So, should we:

- replace send() with sendall() in socket module documentation (explaining it 
was done to not clutter examples) and
- add a reference to the socket programming howto to show a way to use send() 
correctly?

Cheers,
Sandro

--
nosy: +sandro.tosi

___
Python tracker 

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



[issue940286] pydoc.Helper.help() ignores input/output init parameters

2011-02-08 Thread Kevin Le

Kevin Le  added the comment:

confirmed, I'll take a closer look

--

___
Python tracker 

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



[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-02-08 Thread Erik Cederstrand

New submission from Erik Cederstrand :

In Python 2.6.6 on OSX:

>>> import inspect
>>> from multiprocessing import Queue
>>> q = Queue()
>>> print(inspect.getargspec(q.put))
ArgSpec(args=['self', 'obj', 'block', 'timeout'], varargs=None, keywords=None, 
defaults=(True, None))
>>> from Queue import Queue
>>> q = Queue()
>>> print(inspect.getargspec(q.put))
ArgSpec(args=['self', 'item', 'block', 'timeout'], varargs=None, keywords=None, 
defaults=(True, None))

Notice the 'obj' argument in the multiprocessing version and the 'item' 
argument in the Queue version. I think 'obj' should be renamed to 'item' to be 
in line with the other implementation and to agree with the docs: 
(http://docs.python.org/library/multiprocessing.html?highlight=multiprocessing#multiprocessing.Queue.put):

put(item[, block[, timeout]])

--
assignee: docs@python
components: Documentation
messages: 128200
nosy: Erik.Cederstrand, docs@python
priority: normal
severity: normal
status: open
title: multiprocessing.Queue's put() signature differs from docs
versions: Python 2.6

___
Python tracker 

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



[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-02-08 Thread Westley Martínez

Westley Martínez  added the comment:

I've gone through Lib/multiproccing/queues.py and have replaced obj with item. 
Here's the patch.

--
keywords: +patch
nosy: +anikom15
Added file: http://bugs.python.org/file20720/multiprocessing-11155.diff

___
Python tracker 

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



[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-08 Thread Jonathan Beezley

Changes by Jonathan Beezley :


--
nosy: +jbeezley

___
Python tracker 

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



[issue11156] email.encoders.encode_base64 create a single long line

2011-02-08 Thread Yves Dorfsman

New submission from Yves Dorfsman :

email.encoders.encode_base64 returns a str of a single long line instead of 
breaking it up into 76 chars line as per RFC 2045, and as implemented by 
email.base64mime.

Solution:
In /usr/lib/python3.1/email/encoders.py, use encodebytes instead of b64encode:

--- encoders.py 2011-02-08 09:37:21.025030051 -0700
+++ encoders.py.yves2011-02-08 09:38:04.945608365 -0700
@@ -12,7 +12,7 @@
 ]
 
 
-from base64 import b64encode as _bencode
+from base64 import encodebytes as _bencode
 from quopri import encodestring as _encode

--
components: Library (Lib)
messages: 128202
nosy: y...@zioup.com
priority: normal
severity: normal
status: open
title: email.encoders.encode_base64 create a single long line
versions: Python 3.1

___
Python tracker 

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



[issue5863] bz2.BZ2File should accept other file-like objects.

2011-02-08 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

Here's a revised version of bz2-v3.diff, with docstrings that are more 
consistent with the updated documentation.

--

___
Python tracker 

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



[issue5863] bz2.BZ2File should accept other file-like objects.

2011-02-08 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

Weird, the patch didn't upload...

--
Added file: http://bugs.python.org/file20721/bz2-v3b.diff

___
Python tracker 

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



[issue11157] Use socket.accept4 syscall under linux

2011-02-08 Thread Марк Коренберг

New submission from Марк Коренберг :

socket.accept() should have optional argument flags. see 'man accept4'
It should use fcntl() if accept4() not supported.

This is performance issue.

--
components: IO, Library (Lib)
messages: 128205
nosy: mmarkk
priority: normal
severity: normal
status: open
title: Use socket.accept4 syscall under linux
type: feature request

___
Python tracker 

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