[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Brett Cannon
Brett Cannon added the comment: I'm still leary of supporting any form of DST. A proper DST implementation would need to have some conditional code to account for the datetime object passed into dst, and yet the version you have prototyped doesn't handle it. So a proper timezone supporting DS

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your report. This is not related to ctypes, adjusting component and nosy (per Misc/maintainers.rst); also adding keyword. Can you reproduce it with 3.1 and Subversion checkouts for trunk and py3k? Also, what’s the exact version of your OS? --

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > So you want a third argument that lets you flag if the timezone is DST or not? The third argument is not a flag, it is a timedelta just like the offset. I am attaching a python prototype for clarity. (See datetimeex.py.) Conceptually, a 3-argument ti

[issue3244] multipart/form-data encoding

2010-06-03 Thread Forest Bond
Forest Bond added the comment: Oh, hm, looks like I left a hard-coded name="files" in attach_file. I'll fix that in the patch after I've received any other feedback. -- ___ Python tracker

[issue3244] multipart/form-data encoding

2010-06-03 Thread Forest Bond
Forest Bond added the comment: Hi, I believe the attached implementation is reasonable. I'm not sure if it should be called "email.mime.formdata", "rfc2388", etc. I'd be happy to attach a proper patch with tests given some quick feedback. Thanks, Forest -- nosy: +forest_atq Added f

[issue8810] TZ offset description is unclear in docs

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Sean, It looks like you committed your first patch rather than your second. Is that what you intended? Also in msg106734, you agree to change "West" to "west", but committed "West." Note that "west" is correct. In English, the West means the western

[issue8810] TZ offset description is unclear in docs

2010-06-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: accepted -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue8810] TZ offset description is unclear in docs

2010-06-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: committed/rejected -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8810] TZ offset description is unclear in docs

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > In this case, the docs.python.org link you point to seems > to be correct, saying that it returns a timedelta. This issue is specifically about ReST documentation, not the docstring. I explained in the opening comment that 'It is later explained that i

[issue8810] TZ offset description is unclear in docs

2010-06-03 Thread Sean Reifschneider
Sean Reifschneider added the comment: Committed to 2.7 in 81681 and 3.x in 81682. -- keywords: +needs review -patch resolution: -> accepted stage: -> committed/rejected status: open -> closed type: -> feature request ___ Python tracker

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2010-06-03 Thread R. David Murray
R. David Murray added the comment: I just took a look at RFC 3339, and I see what you mean, Anatoly, about the meaning of -00:00. But reading further: "While the Internet does have a tradition of accepting reality when creating specifications, this should not be done at the expense of int

[issue8893] file.{read,readlines} behaviour on Solaris

2010-06-03 Thread Christophe Kalt
New submission from Christophe Kalt : The following snippet of code is a concise way to exhibit the problem: import os wr = open('/tmp/test', 'w') wr.write('oink\noink\n') rd = open('/tmp/test', 'r') rdlns = open('/tmp/test', 'r') # first, read til EOF is reached (which is right away) assert le

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Brett Cannon
Brett Cannon added the comment: So you want a third argument that lets you flag if the timezone is DST or not? I still don't think that will be necessary. If people want to add that they can very easily subclass the timezone class and add support for it. This class should be focused on provid

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am having second thoughts about dst indicator. I wrote: """ 2. Do we want to add a dst indicator and altname attributes? I would say: no. I would rather treat DST as a different fixed offset timezone. """ and Brett responded: """ 2. Keep the class de

[issue8885] markerbase declaration errors aren't recoverable

2010-06-03 Thread Mark Nottingham
Mark Nottingham added the comment: Just to be clear -- if error() returns, it will cause an infinite loop. -- ___ Python tracker ___ _

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Thanks Vinay. You miss a closing paren in your commit. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Vinay Sajip
Vinay Sajip added the comment: Documenation fix checked into trunk (r81680). -- assignee: d...@python -> vinay.sajip nosy: +vinay.sajip resolution: -> fixed status: open -> closed ___ Python tracker __

[issue8882] socketmodule.c`getsockaddrarg() should not check the length of sun_path

2010-06-03 Thread Edward Pilatowicz
Edward Pilatowicz added the comment: so i wrote a simple test program that tells me the defined length of sun_path and then uses bind() with increasingly long paths to determine the actually supported length of sun_path. here's what i've found: Solaris: defined sun_path = 108 max sun_p

[issue8892] 2to3 fails with assertion failure on "from itertools import *"

2010-06-03 Thread Dave Malcolm
Dave Malcolm added the comment: I'm attaching a reproducer for the test suite (though not a fix) -- keywords: +patch Added file: http://bugs.python.org/file17540/itertools_import_star_reproducer.patch ___ Python tracker

[issue8892] 2to3 fails with assertion failure on "from itertools import *"

2010-06-03 Thread Dave Malcolm
New submission from Dave Malcolm : fix_itertools_imports.py fails on a "*" import 2to3 fails on this code: from itertools import * with a traceback: File "/home/david/coding/python-svn/trunk-2to3-issues/Lib/lib2to3/tests/test_fixers.py", line 3680, in test_star self.warns_unchanged(s

[issue8891] sort files before archiving for consistency

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Sorry for writing when tired. Clearer first sentence: If it does not change the code to match the docs or to fix a regression from an older version, it’s a feature. -- ___ Python tracker

[issue8891] sort files before archiving for consistency

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: > It is not a feature, but a bugfix for wrong order of files in archive. That’s debatable. If the docs did advertise ordering and if it’s not a regression from an older version, it’s a new feature. I’m not saying I don’t like it, just clarifying Python’s process

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Nice, this example doesn’t require explaining tempfile and is shorter. Add a notice before the code that you need to be in a directory with write rights for this to work and I’m +1. -- ___ Python tracker

[issue8890] Module logging has dangerous examples

2010-06-03 Thread anatoly techtonik
anatoly techtonik added the comment: import logging - LOG_FILENAME = '/tmp/logging_example.out' + LOG_FILENAME = 'example.log' logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) logging.debug('This message should go to the log file') -- nosy: +techtonik

[issue8891] sort files before archiving for consistency

2010-06-03 Thread anatoly techtonik
anatoly techtonik added the comment: On Fri, Jun 4, 2010 at 12:32 AM, Éric Araujo wrote: > > This would be a new feature, so it can’t go into 2.6 unless I’m mistaken. It > may even not go into 2.7. It is not a feature, but a bugfix for wrong order of files in archive. That means that on diffe

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Would you be kind enough to provide a doc patch that would advertise using the tempfile module? -- assignee: -> d...@python components: +Documentation -None nosy: +d...@python, merwok versions: +Python 2.7, Python 3.1, Python 3.2 ___

[issue8891] sort files before archiving for consistency

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: This would be a new feature, so it can’t go into 2.6 unless I’m mistaken. It may even not go into 2.7. Your renaming of z to zip does not add much value and shadows a builtin; I advise against doing that. -- nosy: +merwok versions: +Python 3.2 -Python 2

[issue8891] sort files before archiving for consistency

2010-06-03 Thread anatoly techtonik
Changes by anatoly techtonik : Added file: http://bugs.python.org/file17539/sort_files_in_zip.27.patch ___ Python tracker ___ ___ Python-bugs-l

[issue8891] sort files before archiving for consistency

2010-06-03 Thread anatoly techtonik
New submission from anatoly techtonik : I am troubleshooting local issue with distutils and UAC on Windows, and I need to compare resulting binary archives. Unfortunately files to bdist archives are added in random order and this complicates comparisons. This patch makes distutils archives mor

[issue8890] Module logging has dangerous examples

2010-06-03 Thread Henri Salo
New submission from Henri Salo : Module logging has dangerous examples as one can see from: 15.6.1.1: > import logging > LOG_FILENAME = '/tmp/logging_example.out' > logging.basicConfig(filename=LOG_FILENAME,level=logging.DEBUG) > log

[issue8889] test_support.transient_internet fails on Freebsd because socket has no attribute EAI_NODATA

2010-06-03 Thread R. David Murray
R. David Murray added the comment: Committed to trunk in r81678. I'll wait until the trunk buildbots show the test_ssl and test_urllib2net error clear before back/forward porting. -- stage: -> commit review ___ Python tracker

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- assignee: -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jun 3, 2010 at 3:15 PM, Brett Cannon wrote: .. > As for the float/int argument, I personally am wary of it. Since the > timedelta constructor accepts hours as a keyword argument, I don't > see the benefit of having to support both timedeltas and i

[issue8889] test_support.transient_internet fails on Freebsd because socket has no attribute EAI_NODATA

2010-06-03 Thread R. David Murray
R. David Murray added the comment: Final version after more feedback. -- Added file: http://bugs.python.org/file17537/transient_internet.patch ___ Python tracker ___

[issue8889] test_support.transient_internet fails on Freebsd because socket has no attribute EAI_NODATA

2010-06-03 Thread R. David Murray
R. David Murray added the comment: A somewhat more clever version. -- Added file: http://bugs.python.org/file17536/transient_internet.patch ___ Python tracker ___ ___

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jun 3, 2010 at 3:41 PM, Alexander Belopolsky wrote: .. > I am not sure.   At this stage treat 12 as a placeholder for whatever > the relevant standard says. Believe it or not, at least one standard, RFC 2822, allows any offset representable as HH

[issue8889] test_support.transient_internet fails on Freebsd because socket has no attribute EAI_NODATA

2010-06-03 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file17535/transient_internet.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jun 3, 2010 at 3:19 PM, Mark Dickinson wrote: .. > Aren't there valid timezones that are offset by more than 12 hours from UTC? I am not sure. At this stage treat 12 as a placeholder for whatever the relevant standard says. I've seen suggestio

[issue8889] test_support.transient_internet fails on Freebsd because socket has no attribute EAI_NODATA

2010-06-03 Thread R. David Murray
R. David Murray added the comment: Modified patch based on feedback from Antoine Pitrou on #python-dev. -- Added file: http://bugs.python.org/file17535/transient_internet.patch ___ Python tracker __

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Mark Dickinson
Mark Dickinson added the comment: > accept arbitrary timedelta between timedelta(hours=-12) and > timedelta(hours=12) Aren't there valid timezones that are offset by more than 12 hours from UTC? -- nosy: +mark.dickinson ___ Python tracker

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Brett Cannon
Brett Cannon added the comment: I don't think people would get confused as to what datetime.utc was, but as you pointed out, Alexander, the module seems to like class attributes so timezone.utc is fine. As for the float/int argument, I personally am wary of it. Since the timedelta constructo

[issue8889] test_support.transient_internet fails on Freebsd because socket has no attribute EAI_NODATA

2010-06-03 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8889] test_support.transient_internet fails on Freebsd because socket has no attribute EAI_NODATA

2010-06-03 Thread R. David Murray
New submission from R. David Murray : test_support.transient_internet was modified to check for more errors, but one of them, socket.EAI_NODATA, is not supported by FreeBSD. The attached patch rewrites transient_internet to only test EAI error codes that exist, and also improves the skip mess

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching the next installment of the datetime.timezone class implementation. Here I add ``utc`` class attribute to timezone. I decided to place it in class rather than module namespace because this seems to be more inline with how datetime modul

[issue8884] Allow binding to local address in http.client

2010-06-03 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8820] IDLE not launching correctly

2010-06-03 Thread Jeff Craig
Jeff Craig added the comment: Further information, this was an issue for me in 2.6.4, but with 2.6.5 it appears to no longer be an issue. -- ___ Python tracker ___ _

[issue8820] IDLE not launching correctly

2010-06-03 Thread Jeff Craig
Jeff Craig added the comment: I can confirm this behaviour and error. On Windows Server 2008 R2 64-bit. -- nosy: +foxxtrot ___ Python tracker ___

[issue8884] Allow binding to local address in http.client

2010-06-03 Thread Gaz Davidson
Gaz Davidson added the comment: Oops, I didn't see that in the 2.7 docs, I'll make sure I RTFM in future! source_address will do perfectly, sorry for wasting your time and thanks for the quick response. Cheers Gaz -- ___ Python tracker

[issue8884] Allow binding to local address in http.client

2010-06-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please elaborate? Why would binding be useful? In any case, what's wrong with 2.7's source_address parameter? -- nosy: +loewis ___ Python tracker

[issue8884] Allow binding to local address in http.client

2010-06-03 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- title: Allow binding to local address in httplib / http.client -> Allow binding to local address in http.client versions: +Python 3.2 -Python 2.7, Python 3.3 ___ Python tracker _

[issue1766304] improve xrange.__contains__

2010-06-03 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1766304] improve xrange.__contains__

2010-06-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/6/3 Tal Einat : > > Tal Einat added the comment: > > In my mind, the reason for this patch is that xrange/range can be thought of > as a lazy list of integers. However without this patch, membership checking > was done trivially instead of in a "smart

[issue4487] Add utf8 alias for email charsets

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: Idea: Import the aliases mapping from codecs and extend it with email-specific aliases. Alternate idea: Add email’s names to codecs. Side note: “charset” stands for “character encoding”, not “character set”. See

[issue4487] Add utf8 alias for email charsets

2010-06-03 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray stage: -> patch review type: feature request -> behavior ___ Python tracker ___ _

[issue4487] Add utf8 alias for email charsets

2010-06-03 Thread R. David Murray
Changes by R. David Murray : Added file: http://bugs.python.org/file17532/email_accept_codec_aliases.patch ___ Python tracker ___ ___ Python-bu

[issue4487] Add utf8 alias for email charsets

2010-06-03 Thread R. David Murray
R. David Murray added the comment: For various reasons the email module has a table of character sets. What might be most effective would be for the email module to look a character set name up in the codecs module and find out the cannonical name of the character set, and then look that up

[issue7724] setup.py ignores SDK root on OSX

2010-06-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: And for 3.1 in r81677. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue8424] Test assumptions for test_itimer_virtual and test_itimer_prof

2010-06-03 Thread Stefan Krah
Stefan Krah added the comment: I can't find buildbot failures related to this any longer, so I'm closing this one. -- stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue3864] 26.rc1: test_signal issue on FreeBSD 6.3

2010-06-03 Thread Stefan Krah
Stefan Krah added the comment: Thanks for looking at the patch! Committed in r81676. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue5610] email feedparser.py CRLFLF bug: $ vs \Z

2010-06-03 Thread R. David Murray
R. David Murray added the comment: I've applied the NLCRE_eol part of the patch, and the test, in r81675. Tony, can you think of a test case that would demonstrate the problem with the boundaryre? -- stage: -> unit test needed ___ Python tracker

[issue3864] 26.rc1: test_signal issue on FreeBSD 6.3

2010-06-03 Thread R. David Murray
R. David Murray added the comment: I can't believe I messed that up. Yes, the patch looks fine, please apply. -- ___ Python tracker ___ _

[issue6608] asctime causing python to crash

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Here is a quote from the relevant CERT advisory (MSC33-C): """ This function is supposed to output a character string of 26 positions at most, including the terminating zero. If we count the length indicated by the format directives we arrive at 25. Tak

[issue7724] setup.py ignores SDK root on OSX

2010-06-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: Committed for 2.6 in r81674 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue5300] Distutils ignores file permissions

2010-06-03 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue2279] distutils sdist add_defaults does not add data_files

2010-06-03 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: accepted -> fixed stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mai

[issue4673] Distutils should provide an uninstall command

2010-06-03 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils2 -Distutils keywords: +gsoc versions: +Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 3.3 ___ Python tracker __

[issue2568] Seconds range in time unit

2010-06-03 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am reopening this issue because the following note is still not entirely correct: """ The range really is 0 to 61; according to the Posix standard this accounts for leap seconds and the (very rare) double leap seconds. The time module may produce and

[issue7724] setup.py ignores SDK root on OSX

2010-06-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ported to 3.2 in r81673. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
Yuriy Taraday added the comment: I'm completely lost 2.7 tree in svn. My last post was about 3.1.2 release. As I understand, System Configuration framework is being used since 2.6.5 and 3.2. So, this bug is about all this versions. -- versions: +Python 2.7, Python 3.2

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: 2.7 and 3.x use the SystemConfiguration framework (through the _scproxy extension) -- ___ Python tracker ___ _

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
Yuriy Taraday added the comment: The strange thing is that in both 2.7 and 3.1 branches there is no such code at all. Inernet Config is used there without mentioning any exceptions despite the fact that ic module is marked as deprecated and proxy bypass is real. -- __

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: Patchs looks file, although the 'None' branch might be a bit too fancy. I haven't found a spec either, and therefore your code is probably the safest way to deduce a mask. -- assignee: -> ronaldoussoren nosy: +ronaldoussoren ___

[issue8880] ConfigParser.set does not convert non-string values

2010-06-03 Thread Edwin Pozharski
Edwin Pozharski added the comment: Thanks - gotta rtfm :) On Wed, Jun 2, 2010 at 5:33 PM, R. David Murray wrote: > > R. David Murray added the comment: > > Use SafeConfigParser instead, then you can't make the mistake of passing > non-strings to set. > > We really should update the docs so th

[issue8862] curses.wrapper does not restore terminal if curses.getkey() gets KeyboardInterrupt

2010-06-03 Thread July Tikhonov
July Tikhonov added the comment: Patch added. Calls PyErr_CheckSignals(). If nothing happens, raises _curses.error. -- keywords: +patch Added file: http://bugs.python.org/file17530/curses-getkey.patch ___ Python tracker

[issue7384] curses crash on FreeBSD

2010-06-03 Thread Stefan Krah
Stefan Krah added the comment: Mark, thanks. Committed in r81669; I'll keep an eye on the buildbots. -- ___ Python tracker ___ ___ Pyt

[issue8741] 2.7 regression in tarfile: IOError: link could not be created

2010-06-03 Thread Lars Gustäbel
Lars Gustäbel added the comment: I have just committed the fix. I hope that this code is now more robust. See r81667 (trunk) and r81670 (py3k). Thank you very much for your report! -- resolution: -> accepted stage: -> committed/rejected status: open -> closed versions: +Python 3.2

[issue8886] zipfile.ZipExtFile is a context manager, but that is not documented

2010-06-03 Thread Erik Carstensen
Erik Carstensen added the comment: Patch that makes the zipfile test consistently use with statements to handle the return value of ZipFile.open(). -- keywords: +patch Added file: http://bugs.python.org/file17529/with-ZipExtFile-in-test.patch ___ Py

[issue8886] zipfile.ZipExtFile is a context manager, but that is not documented

2010-06-03 Thread Erik Carstensen
Erik Carstensen added the comment: Sorry, my mistake, ZipExtFile is indeed a context manager: I ran into the problem in 2.6, and checked whether it was fixed in 2.7; when quickly reading zipfile.py I saw that only ZipFile had context manager methods, I missed the BufferedIOBase inheritance. A

[issue8880] ConfigParser.set does not convert non-string values

2010-06-03 Thread Éric Araujo
Éric Araujo added the comment: See # -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8888] Promote SafeConfigParser and warn about ConfigParser

2010-06-03 Thread Éric Araujo
New submission from Éric Araujo : Problems like #8880 could be prevented with a deprecation notice for the ConfigParser class, in favor of SafeConfigParser. (Not sure if R. David Murray meant just a recommendation or a real deprecation.) -- assignee: d...@python components: Documentati

[issue8887] “pydoc str” works but not “ pydoc str.translate”

2010-06-03 Thread Éric Araujo
New submission from Éric Araujo : Inconsistent behavior: pydoc3 str: works pydoc3 str.translate: doesn’t pydoc3 builtins.str: works pydoc3 builtins.str.translate: doesn’t I think pydoc3 str.translate should work. I’ll be able to try to write a patch in some weeks. -- components: Librar

[issue8886] zipfile.ZipExtFile should be a context manager

2010-06-03 Thread Erik Carstensen
New submission from Erik Carstensen : It's nice that ZipFile is a context manager in 2.7. It would be nice and more consistent if the objects returned from ZipFile.open() were context managers too. -- components: Library (Lib) messages: 106941 nosy: sandberg priority: normal severity:

[issue7384] curses crash on FreeBSD

2010-06-03 Thread Mark Dickinson
Mark Dickinson added the comment: > I think it would be nice to get this into 2.7. Agreed. I think you should go ahead and commit it. -- ___ Python tracker ___

[issue7384] curses crash on FreeBSD

2010-06-03 Thread Stefan Krah
Stefan Krah added the comment: I think it would be nice to get this into 2.7. I don't expect buildbot failures, since the 2.7 patch is essentially the same as the py3k version, which has been tested extensively. -- Added file: http://bugs.python.org/file17528/issue7384-5-trunk.patch __

[issue8885] markerbase declaration errors aren't recoverable

2010-06-03 Thread Mark Nottingham
New submission from Mark Nottingham : In markupbase.py's ParserBase.parse_declaration, an unexpected character is caught like this: else: self.error( "unexpected %r char in declaration" % rawdata[j]) However, the position (j) isn't updated, which

[issue3864] 26.rc1: test_signal issue on FreeBSD 6.3

2010-06-03 Thread Stefan Krah
Stefan Krah added the comment: On 2.6, the tests aren't skipped if test_support.verbose is 0. David, if the fix looks good to you I can apply it. test_itimer_virtual: timeout: likely cause: machine too slow or load too high. test test_signal failed -- Traceback (most recent call last): File

[issue8833] tarfile: broken hardlink handling and testcase.

2010-06-03 Thread Lars Gustäbel
Lars Gustäbel added the comment: Thank you very much for this valuable report. Fixed in r81663-81666. -- resolution: -> accepted status: open -> closed versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker

[issue7724] setup.py ignores SDK root on OSX

2010-06-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've applied a new version of the patch in r81662. I'll be monitoring the buildbot farm to ensure that any issues that might crop up get fixed ASAP. -- ___ Python tracker __

[issue8884] Allow binding to local address in httplib / http.client

2010-06-03 Thread Gaz Davidson
New submission from Gaz Davidson : The option to bind to a local IP address when creating an HTTP connection would be very useful for web testing tools like FunkLoad and webunit. For example in FunkLoad it would allow us to run tests with IP-based load balancing. -- components: IO me

[issue8883] Proxy exception lookup fails on MacOS in urllib.

2010-06-03 Thread Yuriy Taraday
New submission from Yuriy Taraday : I have straight IP in my proxy exception list like "192.168.0.2" without mask specification. The proxy_bypass_macosx_sysconf function verifies each item in this list by regexp r"(\d+(?:\.\d+)*)(/\d+)?" that produces two groups: IP and mask. The mask can be

[issue1766304] improve xrange.__contains__

2010-06-03 Thread Tal Einat
Tal Einat added the comment: In my mind, the reason for this patch is that xrange/range can be thought of as a lazy list of integers. However without this patch, membership checking was done trivially instead of in a "smart/lazy" manner, which is unexpected for users. Finally, conditions such