[issue481171] Hang using files named prn.txt, etc

2009-07-26 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue6574] List the __future__ features in a table

2009-07-26 Thread Ezio Melotti

New submission from Ezio Melotti ezio.melo...@gmail.com:

The documentation about the __future__ features [1] only lists the
features available for that particular version, without specifying when
they were added and their effects.
It would be nice to have a table with |feature|version added|effect|.
A better place for this table could also be the page of the __future__
module [2].

[1]: http://docs.python.org/reference/simple_stmts.html#future
[2]: http://docs.python.org/library/__future__.html

--
assignee: ezio.melotti
components: Documentation
keywords: easy
messages: 90935
nosy: ezio.melotti
priority: low
severity: normal
stage: needs patch
status: open
title: List the __future__ features in a table
versions: Python 2.7, Python 3.2

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



[issue6567] Make inf be almost equal to inf

2009-07-26 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Sounds good to me.

--

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2009-07-26 Thread Ori Avtalion

Changes by Ori Avtalion o...@avtalion.name:


--
nosy: +salty-horse

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



[issue6575] Can't download docs

2009-07-26 Thread Jan Kaliszewski

New submission from Jan Kaliszewski z...@chopin.edu.pl:

http://docs.python.org/3.1/download.html (available both with 'Download 
these documents' link @docs and 'Download Current Python 3.1 
Documentation' link @http://www.python.org/doc/) doesn't contain links 
to packed docs, but text for dev-releases:

We don't package the documentation for development releases for 
download. Downloads will be available for the final release.

--
assignee: georg.brandl
components: Documentation
messages: 90937
nosy: georg.brandl, zuo
severity: normal
status: open
title: Can't download docs
type: behavior
versions: Python 3.1

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



[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2009-07-26 Thread Senthil

Senthil orsent...@gmail.com added the comment:

Agreed to the suggestions made by Greg.
The fix is now backported.
For Py2.6 in the revision 74203.
For Py3k in the revision 74204.

Closing this issue.

--
status: open - closed

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



[issue6574] List the __future__ features in a table

2009-07-26 Thread Robert Lehmann

Robert Lehmann lehman...@gmail.com added the comment:

I composed a list of __future__ features and linked the respective PEPs.

Even though the language reference would be a better place to store such
general information (being PEP'd and all) I found the library
reference's __future__.py documentation to be a cleaner host for that table.

Python 3 docs would need to add the barry_as_FLUFL feature to that table.

--
keywords: +patch
nosy: +lehmannro
Added file: http://bugs.python.org/file14569/future.patch

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



[issue1448934] urllib2+https+proxy not working

2009-07-26 Thread Senthil

Senthil orsent...@gmail.com added the comment:

Well, the fix for this same as that for Issue1424152.
Closing this issue as it is already handled.

--
resolution:  - duplicate
status: open - closed

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



[issue6576] re docs: wrong link targets

2009-07-26 Thread Jan Kaliszewski

New submission from Jan Kaliszewski z...@chopin.edu.pl:

Some of links in re docs should lead to RegexObject.match()|
RegexObject.search() method but lead to re.match()|re.search() module 
function.

These are the places in 2.6 docs (in 2.7-3.2 versions' you'll find the 
bug in analogous places):

http://docs.python.org/library/re.html#re.compile
http://docs.python.org/library/re.html#re.RegexObject.match
http://docs.python.org/library/re.html#re.RegexObject.search
http://docs.python.org/library/re.html#re.MatchObject.pos
http://docs.python.org/library/re.html#re.MatchObject.endpos
http://docs.python.org/library/re.html#re.MatchObject.re
http://docs.python.org/library/re.html#re.MatchObject.string (- here 
maybe both possibilities should be noted, which would mean changing not 
only link targets but also the content)

--
assignee: georg.brandl
components: Documentation
messages: 90941
nosy: georg.brandl, zuo
severity: normal
status: open
title: re docs: wrong link targets
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2

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



[issue6576] re docs: wrong link targets

2009-07-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks for the report, I fixed the references (and a few to compile())
in r74205.

--
resolution:  - fixed
status: open - closed

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



[issue6577] Links wrongly targeting to builtin functions' instead of module functions/methods

2009-07-26 Thread Jan Kaliszewski

New submission from Jan Kaliszewski z...@chopin.edu.pl:

The problem can be found in many places in docs -- tipically, where 
there is a function/method with name identical to builtin name (or 
sometimes to another function/method within the same module -- see: 
#6575): links leads to te latter but should lead to the former.

One example -- open():

http://docs.python.org/library/shelve.html?
highlight=open#shelve.DbfilenameShelf
http://docs.python.org/library/shelve.html?highlight=open#example

http://docs.python.org/library/sunau.html?highlight=open#sunau.openfp
http://docs.python.org/library/sunau.html?highlight=open#au-read-objects
http://docs.python.org/library/sunau.html?highlight=open#au-write-
objects

http://docs.python.org/library/wave.html?highlight=open#wave.openfp
http://docs.python.org/library/wave.html?highlight=open#wave-read-
objects
http://docs.python.org/library/wave.html?highlight=open#wave-write-
objects

http://docs.python.org/library/io.html?highlight=open#module-interface
http://docs.python.org/library/io.html?highlight=open#io.open
http://docs.python.org/library/io.html?highlight=open#io.IOBase.readline

It's hard to find all such place by hand; probably it's a job for a 
script...

--
assignee: georg.brandl
components: Documentation
messages: 90943
nosy: georg.brandl, zuo
severity: normal
status: open
title: Links wrongly targeting to builtin functions' instead of module 
functions/methods
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2

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



[issue6575] Can't download docs

2009-07-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Fixed in r74206; the online version should be updated soon.

--
resolution:  - fixed
status: open - closed

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



[issue6578] 2 problems with 'Docs for other versions' section on left HTML docs sidebar

2009-07-26 Thread Jan Kaliszewski

New submission from Jan Kaliszewski z...@chopin.edu.pl:

* In 2.6 the content of that section isn't up to date (3.1 is 
descripted as 'in development')

* In 3.0 there is no that section.

--
messages: 90945
nosy: zuo
severity: normal
status: open
title: 2 problems with 'Docs for other versions' section on left HTML docs 
sidebar
versions: Python 2.6, Python 3.0

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



[issue6578] 2 problems with 'Docs for other versions' section on left HTML docs sidebar

2009-07-26 Thread Jan Kaliszewski

Changes by Jan Kaliszewski z...@chopin.edu.pl:


--
assignee:  - georg.brandl
components: +Documentation
nosy: +georg.brandl

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



[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-07-26 Thread Jan Kaliszewski

New submission from Jan Kaliszewski z...@chopin.edu.pl:

As we can read in http://docs.python.org/3.1/whatsnew/3.1.html#other-
language-changes:


The fields in format() strings can now be automatically numbered:
 'Sir {} of {}'.format('Gallahad', 'Camelot')
'Sir Gallahad of Camelot'

Formerly, the string would have required numbered fields such as: 'Sir 
{0} of {1}'.

(Contributed by Eric Smith; issue 5237.)


But it is not mentioned in 3.2's, 3.1's and 2.7's docs about format 
string syntax, e.g. in 3.1 docs we have:

http://docs.python.org/3.1/library/string.html#format-string-syntax

[Please note that also grammar for a replacement field should be 
updated there ('field_name' should be in '[' ']', but I'm not sure if 
it'd be enough)].

--
assignee: georg.brandl
components: Documentation
messages: 90946
nosy: georg.brandl, zuo
severity: normal
status: open
title: No update about automatic numbering of fields in format strings (e.g. 'A 
{} with {} buttocks')
versions: Python 2.7, Python 3.1, Python 3.2

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



[issue6577] Links wrongly targeting to builtin functions' instead of module functions/methods

2009-07-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

I made an exhaustive search for all builtins; should now be fixed in
r74207. Thanks for making me do it properly :)

--
resolution:  - fixed
status: open - closed

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



[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-07-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

The 2.6 one looks fine to me; 3.2 is correctly marked as in development
there.

I don't care about 3.0; it's not supported anymore.

--
resolution:  - works for me
status: open - closed

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



[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-07-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Argh, of course it's even more important to point to the current version
for 3.0... fixed in r74208.

--

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



[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-07-26 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--

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



[issue6578] 2 problems with 'Docs for other versions' section on left HTML docs sidebar

2009-07-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

The 2.6 one looks fine to me; 3.2 is correctly marked as in development
there.

Added the section to 3.0 branch in r74208.

--
resolution:  - fixed
status: open - closed

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



[issue6579] No update about automatic numbering of fields in format strings (e.g. 'A {} with {} buttocks')

2009-07-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

(Sorry for my confusion, reopening.)

--
assignee: georg.brandl - eric.smith
nosy: +eric.smith
resolution: works for me - 
status: closed - open

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



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-07-26 Thread Hagen Fürstenau

Changes by Hagen Fürstenau hfuerste...@gmx.net:


--
nosy: +hagen

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



[issue6580] No deprecation warning for list comprehension leak conflict

2009-07-26 Thread Michael R Bax

New submission from Michael R Bax mr...@users.sourceforge.net:

PEP 289 states that Python 2.4 and beyond should issue a deprecation 
warning if a list comprehension's loop variable has the same name as a 
variable used in the immediately surrounding scope.  But no warning is 
shown when running
for x in [ 0 ]: print [ x for x in [ 1 ] ]
in Python 2.5.2 (at least).

--
components: Interpreter Core
messages: 90952
nosy: mrbax
severity: normal
status: open
title: No deprecation warning for list comprehension leak conflict
type: behavior
versions: Python 2.5

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2009-07-26 Thread Ori Avtalion

Ori Avtalion o...@avtalion.name added the comment:

For those who missed it, the patch that was committed in r59967 was
quickly reverted in r59970 with the comment:

Temporarily revert 59967 until GC can be added.

Raymond, can you please explain what was missing from the patch?

--

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-07-26 Thread Matthew Barnett

Matthew Barnett pyt...@mrabarnett.plus.com added the comment:

issue2636-20090726.zip is a new implementation of the re engine. It
replaces re.py, sre.py, sre_constants.py, sre_parse.py and
sre_compile.py with a new re.py and replaces sre_constants.h, sre.h and
_sre.c with _re.h and _re.c.

The internal engine no longer interprets a form of bytecode but instead
follows a linked set of nodes, and it can work breadth-wise as well as
depth-first, which makes it perform much better when faced with one of
those 'pathological' regexes.

It supports scoped flags, variable-length lookbehind, Unicode
properties, named characters, atomic groups, possessive quantifiers, and
will handle zero-width splits correctly when the ZEROWIDTH flag is set.

There are a few more things to add, like allowing indexing for capture
groups, and further speed improvements might be possible (at worst it's
roughly the same speed as the existing re module).

I'll be adding some documentation about how it works and the slight
differences in behaviour later.

--
Added file: http://bugs.python.org/file14570/issue2636-20090726.zip

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



[issue6581] inspect.py sys._getframe patch for Python 2.6

2009-07-26 Thread Michael Foord

New submission from Michael Foord mich...@voidspace.org.uk:

Patch for inspect.py so that it will import correctly even if
sys._getframe is unavailable. 

Without this patch inspect can't be imported under IronPython 2.6
(breaking basic features like help) when started without Python stack
frame support.

The same fix is required on trunk.

--
assignee: michael.foord
components: Library (Lib)
files: inspect.patch
keywords: needs review, patch, patch
messages: 90955
nosy: michael.foord
severity: normal
status: open
title: inspect.py sys._getframe patch for Python 2.6
type: behavior
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file14571/inspect.patch

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



[issue6581] inspect.py sys._getframe patch for Python 2.6

2009-07-26 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

hmm... the lambda should probably take an argument like sys._getframe.

--

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



[issue1721862] email.FeedParser.BufferedSubFile improperly handles \r\n

2009-07-26 Thread Neil Tallim

Neil Tallim red.hamst...@gmail.com added the comment:

Attached a patch containing a unit test based on Sye van der Veen's
example and a solution for this problem.

Written against Python 2.6 (trunk), r74214, which was current at the
time of submission.

This is my first patch, so please let me know if I did something wrong
or overstepped bounds by not noticing that this was assigned until after
writing this fix.

--
keywords: +patch
nosy: +Red HamsterX
Added file: http://bugs.python.org/file14572/1721862.diff

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



[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-26 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Ah, so this is an interpreter shutdown issue, it seems.
Something is causing this thread to not exit until the application exits 
and that can cause all sorts of weird race conditions.  I wonder why that 
is happening.  There must be an issue with test_valid_get_response

--

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



[issue6581] inspect.py sys._getframe patch for Python 2.6

2009-07-26 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Committed in revision 74215  revision 74216.

--
resolution:  - accepted
status: open - closed

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



[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-26 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

No, sorry.  You have just introduced the race condition by putting a print 
after the evt.set().  Setting the event causes the main thread to exit 
python and so anything after that line will likely not work.

In fact, this is probably the reason why we didn't get any sensible error 
output, because error of the evt.set in the finally.
Please try the modified version attatched.

--
Added file: http://bugs.python.org/file14573/test_docxmlrpc.py

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



[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-07-26 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Sounds like this is an awesome piece of work!

Since the patch is obviously a very large piece and will be hard to
review, may I suggest releasing the new engine as a standalone package
and spreading the word, so that people can stress-test it?  By the time
2.7 is ready to release, if it has had considerable exposure to the
public, that will help acceptance greatly.

The Unicode script identification might not be hard to add to
unicodedata; maybe Martin can do that?

--

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



[issue6106] read_until

2009-07-26 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

fixed in r74217

My thanks to everyone who contributed to this bug.  irek if you let me
know your name I'll add it to Misc/ACKS as well.

PS, The additional testcase is not ideal;  it tests the bad behavior by
hooking into the debug output instead of testing the bug directly.

--
resolution:  - fixed
status: open - closed

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



[issue6582] test_telnetlib doesn't test Telnet.write

2009-07-26 Thread Jack Diederich

New submission from Jack Diederich jackd...@gmail.com:

test/test_telnetlib.py has zero tests for the telnetlib.Telnet.write method.

--
assignee: jackdied
messages: 90963
nosy: jackdied
severity: normal
status: open
title: test_telnetlib doesn't test Telnet.write
versions: Python 2.7, Python 3.2

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



[issue5188] telnetlib process_rawq buffer handling is confused

2009-07-26 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

between r71434 and r74217 this should be fixed for 3.2.

Marking as closed.

--
resolution:  - fixed
status: open - closed

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



[issue1360221] telnetlib expect() and read_until() do not time out properly

2009-07-26 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

this was fixed in r47215 (circa 2006).  Marking closed.

--
resolution:  - fixed
status: open - closed

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



[issue1772794] Telnetlib dosn't accept u'only ascii'

2009-07-26 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

Marking closed/won't fix.  ASCII strings are the byte-ish type in 2.x so
we should expect the caller to convert down from unicode when sending
bytes over the wire.

--
resolution:  - wont fix
status: open - closed

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



[issue6582] test_telnetlib doesn't test Telnet.write

2009-07-26 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

Marking as easy.  What needs to be done is to add a small fake socket
class that redefines socket.sendall(self, bytes) to capture the args to
sock.sendall so it can be assertEqual'd to the expected bytes.

class SocketSendall(socket.socket):
  _raw_sent = b''
  def sendall(self, data):
self._raw_sent += data

class TelnetSockSendall(telnetlib.Telnet):
  def open(self, *args, **opts):
''' a near-exact copy of Telnet.open '''
# copy 5 lines from Telnet.open here
self.sock = SocketSendall(*args, **opts)

then add a unit test that checks the ONLY thing Telnet.write() does,
which is change IAC to IAC+IAC.

--
components: +Tests
keywords: +easy

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



[issue3071] The ValueError raised by failing to unpack sequence should have more information.

2009-07-26 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

The code that raises the error is in ceval.c which is a critical path. 
The raise is done as soon the iterator has one more item than is needed
(see Daniel Diniz's comments on infinite iterators).  While the check
could return more useful information for known non-infinite iterators
(tuples, lists, etc) it would have to do a big if/else for all the core
types (but excluding their subclasses!).  If someone wants to submit
that patch and a benchmark that shows no slowdown I'll reopen the bug.

Until then I'm closing as WONTFIX.

--
nosy: +jackdied
resolution:  - wont fix
status: open - closed

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



[issue2874] Remove use of the stat module in the stdlib

2009-07-26 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

The stat module wasn't deprecated in 3.1, so is this now a non-issue? 
If not, is it related to issue#1820?

--
nosy: +jackdied

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



[issue2874] Remove use of the stat module in the stdlib

2009-07-26 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

At this point it is a nice idea that no one wants to deal with to make 
happen. Dropping the priority but leaving open for now until I get around 
to making a final decision as to whether to just give up on this to 
finally allow closure on PEP 3108 once profile/cProfile are merged.

--
priority: critical - low
stage:  - test needed

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



[issue6550] asyncore incorrect failure when connection is refused and using async_chat channel

2009-07-26 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
nosy: +josiahcarlson
priority:  - normal

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



[issue6561] Regex '\d' should not match unicode category 'No'.

2009-07-26 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

It may be redundant, but it is also more technically accurate.  I'm -0
on your proposed rephrasing, and trust Mark to make the right decision :)

--
nosy: +r.david.murray

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



[issue3071] The ValueError raised by failing to unpack sequence should have more information.

2009-07-26 Thread Jean-Paul Calderone

Jean-Paul Calderone exar...@divmod.com added the comment:

Here's a patch implementing part of the requested feature.

pystones cannot tell the difference between tr...@head with or without
this patch applied.  Both report a maximum of 78125 pystones/second/

--
keywords: +patch
nosy: +exarkun
Added file: http://bugs.python.org/file14574/how-many-values.patch

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



[issue1194378] sendmsg() and recvmsg() for C socket module

2009-07-26 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Closing this as duplicate of #6560.

--
nosy: +ezio.melotti
resolution:  - duplicate
stage: needs patch - committed/rejected
status: open - closed

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



[issue3071] The ValueError raised by failing to unpack sequence should have more information.

2009-07-26 Thread Jack Diederich

Jack Diederich jackd...@gmail.com added the comment:

I was looking at 3.x, JP's patch is relative to 2.x and takes a little
more unpacking (a couple function calls more) but looks to me to be the
same.  In 2.x unpack_iterable() sets/returns an error once one item more
than is required is received.  It doesn't give any more information
about known-length builtins than anything else.  The same error is
raised for million-item lists as three item lists if the expected number
to unpack is two.

The original feature request was that the error message be better if,
say the left hand side wanted three arguments and the right hand side
provided four.  The ceval.c code is different between 2.x and 3.x but
they both only check for 'exactly the right number, or one or more too
many.'

--

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



[issue6583] 2to3 fails to fix test.test_support

2009-07-26 Thread Joe Amenta

New submission from Joe Amenta ament...@msu.edu:

PEP 3108 states that test.test_support was renamed to test.support as a
part of the Standard Library Reorganization process.  However...

2to3 does not refactor (or even warn about) test.test_support.  Simply
adding
test.test_support: test.support,
into the MAPPING of fix_imports.py would not work, because
fix_imports.py does not accept anything with a dot in it, i.e. foo.bar.

--
components: 2to3 (2.x to 3.0 conversion tool)
files: 2to3_out.txt
messages: 90975
nosy: joe.amenta
severity: normal
status: open
title: 2to3 fails to fix test.test_support
type: behavior
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file14575/2to3_out.txt

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