[issue10042] total_ordering stack overflow

2011-01-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report and patch. Fixed. See r87853. -- ___ Python tracker ___ ___ Python-bugs-

[issue10042] total_ordering stack overflow

2011-01-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg125757 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10042] total_ordering stack overflow

2011-01-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report and patch. Fixed. rSee 87853. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue10865] chroot-ing breaks encodings.idna

2011-01-07 Thread ulidtko
New submission from ulidtko : Consider the following test script: import os import urllib.request os.chroot("/tmp") urllib.request.urlopen("http://localhost";) When executed with enough privileges, the script terminates with the following traceback: Traceback (most recent call last): Fil

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Nick Coghlan
Nick Coghlan added the comment: I'd like to leave the door open to some tweaks in the GCM implementation for 3.3, so making it officially private (by adding the leading underscore) sounds good to me. -- keywords: +easy ___ Python tracker

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread ingemar
ingemar added the comment: Terry: Thanks for the hint In a pure ascii path I created files very similar to yours with Swedish "ä" instead of your katakana character. I also got the same result. a.py: print ('something') ä.py: print ('other') c.py: # -*- coding: utf-8 -*- import a import ä I

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: ANSI code page? I have no idea how to find out and many would not even know what such a thing exists. It is an HP laptop sold in the US. I think bugs in core syntax should have high priority. I appreciate your work toward fixing it. -- versions: +P

[issue3080] Full unicode import system

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I edit a file with IDLE, save it, and successfully run it (perhaps to test it), then when I edit a second file that imports the first, I expect the import to work. It does not always (see #10828). Import is part of the core definition of the language. Unic

[issue1475397] time.asctime_tz, time.strftime %z %C

2011-01-07 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> rejected stage: unit test needed -> committed/rejected status: open -> pending superseder: -> Add aware local time support to datetime module ___ Python tracker

[issue10837] Issue catching KeyboardInterrupt while reading stdin

2011-01-07 Thread Ned Deily
Changes by Ned Deily : -- nosy: +brian.curtin, tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-07 Thread Ned Deily
Ned Deily added the comment: (Presumably this is also a problem for Python 3, as well). -- versions: +Python 3.2 ___ Python tracker ___ _

[issue10855] wave.Wave_read.close() doesn't release file

2011-01-07 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and analysis. Would you care to submit a patch to fix it? -- nosy: +ned.deily stage: -> unit test needed ___ Python tracker

[issue10850] inconsistent behavior concerning multiprocessing.manager.BaseManager._Server

2011-01-07 Thread Ned Deily
Changes by Ned Deily : -- nosy: +asksol, jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10812] Add some posix functions

2011-01-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: This patch takes out sethostname() and gethostname(). I'll open up a new issue to add sethostname() to the socket module. -- Added file: http://bugs.python.org/file20311/10812_v5.patch ___ Python tracker

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: > r87845+r87846 sets time.strftime() minimum year to 1 instead of 1900. > If Python is compiled with Visual Studio, it sets also the maximum > year to . r87848 removes all limits on the year field; r87850 (Issue #10864) limits year to [1; ] on Solaris

[issue10864] time.strftime("%Y"): limitation of 4 digits on OpenIndiana (Solaris)

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: Oh, it's more funny with negative numbers: -1 is formatted '000/'. Let's try r87850. I'm now waiting for the buildbot. -- ___ Python tracker _

[issue2650] re.escape should not escape underscore

2011-01-07 Thread James Y Knight
James Y Knight added the comment: I just ran into the impl of escape after being surprised that '/' was being escaped, and then was completely amazed that it wasn't just implemented as a one-line re.subn. Come on, a loop for string replacement? This is *in* the freaking re module for pete's s

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: > With 3.2b2 on our Win7, 64 bit machine, files with a Japanese name... What is your ANSI code page? If it is not a japanese code page, it is the issue #3080. On Windows, #8611 (and #9425) permit to use non-ASCII characters in the module path... but only cha

[issue10864] time.strftime("%Y"): limitation of 4 digits on OpenIndiana (Solaris)

2011-01-07 Thread STINNER Victor
New submission from STINNER Victor : The following example displays '2345' instead of '12345': import time t = (12345,) + (0,)*8 print(repr(time.strftime("%Y", t))) time.strftime() should raise a ValueError if the year is bigger than , as it is done with Visual Studio for year outside [1;

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: r87845+r87846 sets time.strftime() minimum year to 1 instead of 1900. If Python is compiled with Visual Studio, it sets also the maximum year to . -- ___ Python tracker ___

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I like strftime_1_.patch, but it really belongs to #10827. Please leave a note there once you commit and mention the issue in commit log. -- ___ Python tracker _

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: strftime_1_.patch: replace 1900 <= year limit by 1 <= year or 1 <= year <= (if compiled with Visual Studio). With more tests on years. -- Added file: http://bugs.python.org/file20310/strftime_1_.patch _

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: -- --Guido van Rossum (python.org/~guido) """ -- http://mail.python.org/pipermail/python-dev/2011-January/107246.html ^^^ the last lines of msg125738 cut by roundup ^^^ -- ___ Python tracker

[issue1372770] email.Header should preserve original FWS

2011-01-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10828] Cannot use nonascii utf8 in names of files imported from

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Ingemar: one can easily test import statements without pyqt, let alone qt ;-) With 3.2b2 on our Win7, 64 bit machine, files with a Japanese name run but apparently cannot be imported. a.py: print('something') ^|.py: print('other') # ^| == imitation of kataka

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jan 7, 2011 at 7:26 PM, STINNER Victor wrote: .. > Here is a patch removing the arbitrary datetime.strftime() limit on year: it > adds an > option "accept2dyear" to time.strftime() and datetime just sets this option > to False. > The idea of ad

[issue10849] Backport test/__main__

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The possible downside, as with any new feature, is that code using the new feature will not run on on previous micro (x.y.z) releases. In this case, one can run the tests using the new feature. >>> from test import __main__ == CPython 3.2b2 (r32b2:87398, Dec

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: Here is a patch removing the arbitrary datetime.strftime() limit on year: it adds an option "accept2dyear" to time.strftime() and datetime just sets this option to False. -- Added file: http://bugs.python.org/file20309/datetime_strftime_nolimit.diff

[issue1372770] email.Header should preserve original FWS

2011-01-07 Thread Nathan Herring
Nathan Herring added the comment: You are certainly correct about (some, perhaps many) e-mail generators using tabs when folding, which is AFAICT, much more likely an incorrect implementation of RFC 2822 rather than an intentional transformation of the user's specified Subject line. Some*, ho

[issue10838] subprocess __all__ is incomplete

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: My understanding is much like Toshio's: ambiguous (typically, undocumented or omitted from __all__) non-underscored names should be resolved, with the three possible outcomes listed, on a case-by-case basis. -- nosy: +terry.reedy

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Shawn Ligocki
Shawn Ligocki added the comment: Here's a patch for 2.7 (from the hg checkout http://code.python.org/hg/branches/release2.7-maint/) How does it look? Apparently there was already a testcase for "www.python.org:" failing! -- keywords: +patch Added file: http://bugs.python.org/file2030

[issue10834] Python 2.7 x86 IDLE fails to run in Windows 7

2011-01-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Changed title based on 'command line works fine'. You might try running test suite, 'python -m test.regrtest' from Command Window in python27 directory on both this and other system. (It takes about 20 min, so minimize and do something else.) test_tcl, text_t

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-07 Thread Nadeem Vawda
Nadeem Vawda added the comment: Sorry, scratch that - I misunderstood the semantics of SocketIO.close(). I hadn't realized that the underlying socket is supposed to stay open until it itself is also explicitly closed (as well as all SocketIO objects referring to it). I've been able to get ri

[issue10812] Add some posix functions

2011-01-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: > According to the spec, gethostid does not set errno - it now checks anyway. Sorry, I misread that also. Leaving the check is fine; reverting it to the previous code would be fine as well. -- ___ Python tracker <

[issue10812] Add some posix functions

2011-01-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: > According to the spec for gethostname(), the hostname that it returns > is null-terminated so it won't support embedded NUL bytes. Should we > still add it anyway? Oops, I misread the spec. No, gethostname should then not be duplicated. Putting sethostname i

[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

2011-01-07 Thread R. David Murray
R. David Murray added the comment: Committed a revised version of the patch, including doc updates, in r87840. While I haven't documented the way to alter what encoding name is used for the unknown bytes, I did make it possible to do so (set charset.UNKNOWN8BIT to the desired string). -

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Martin v . Löwis
Martin v. Löwis added the comment: Closing this as "won't fix". Python is not going to reimplement depends.exe. -- nosy: +loewis resolution: -> wont fix status: open -> closed ___ Python tracker _

[issue6284] C/API PyErr_AsUnicode()

2011-01-07 Thread Andreas Stührk
Andreas Stührk added the comment: There should also be a call to `PyErr_NormalizeException()`, as `PyErr_Fetch()` can return unnormalized exceptions (see e.g. issue #10756). -- nosy: +Trundle ___ Python tracker __

[issue1777412] datetime.strftime dislikes years before 1900

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: After r87829 (see issue10827), the insane Y2K behavior of time module functions does not extend beyond year 999. Hopefully in Python 3.3, accept2dyear will be removed completely and datetime.strftime() will be able to support the full intersection of p

[issue6284] C/API PyErr_AsUnicode()

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: /* Returns the exception string as a new PyUnicode object or NULL if the conversion failed */ NULL is not very useful to analyze the error :-/ Why don't keep errors if the conversion failed? The caller will be responsible to use the new error, or to clear

[issue6284] C/API PyErr_AsUnicode()

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: + PyErr_Fetch(&error_type, &error_value, &error_traceback); + + PyErr_Clear(); I think that the call to PyErr_Clear() is useless, PyErr_Fetch() already cleared the exception. + /* clear the error */ + PyErr_Restore(error_type, e

[issue10829] PyUnicode_FromFormatV() bugs with "%" and "%%" format strings

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: > PyBytes_FromFormatV() has the same issue. Oh no, it's ok, the function works as expected. -- ___ Python tracker ___

[issue10851] further extend ssl SNI and ciphers API

2011-01-07 Thread Daniel Black
Daniel Black added the comment: acknowledged. Makes sense. -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue10174] multiprocessing expects sys.stdout to have a fileno/close method.

2011-01-07 Thread Mher Movsisyan
Mher Movsisyan added the comment: This bug was fixed in #5313 --- a/multiprocessing/process.py +++ b/multiprocessing/process.py @@ -225,7 +225,8 @@ class Process(object): self._children = set() self._counter = itertools.count(1) try: -os.cl

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, since #10720 exists, while do you reopen this one? -- ___ Python tracker ___ ___ Python-bugs-l

[issue10174] multiprocessing expects sys.stdout to have a fileno/close method.

2011-01-07 Thread Mher Movsisyan
Mher Movsisyan added the comment: The reported error is only reproducible in 2.6 Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> import multiprocessing >>> c

[issue10858] Make source code links less prominent

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jan 7, 2011 at 4:32 PM, Éric Araujo wrote: .. > 3: Not all modules are good examples (see threading for some unelegant code), > so I support ad-hoc selection. The problem with ad-hoc selection is that it adds maintenance burden (someone has to m

[issue8020] Crash in Py_ADDRESS_IN_RANGE macro

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed Matt's patch in r87835 (3.2), r87836 (3.1) and r87837 (2.7). Thank you for contributing! -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: -Python 2.6 ___

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: The test fails on FreeBSD 6.2 (x86 FreeBSD py3k buildbot) since r87292 => #10720. I reopen the issue. -- nosy: +haypo resolution: fixed -> status: closed -> open ___ Python tracker

[issue10827] Functions in time module should support year < 1900 when accept2dyear = 0

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: I tried time.asctime() on Windows 32 bits (compiled with Visual Studio) with accept2dyear=False: it accepts years in [-2^31; 2^31-1], cool. -- ___ Python tracker

[issue10858] Make source code links less prominent

2011-01-07 Thread Éric Araujo
Éric Araujo added the comment: 1: I hope this will just be a matter of using the same Pygments theme in Sphinx and hgweb. 2: I don’t think hgweb can do that. Mercurial being extensible, this addition may be a fun project. 3: Not all modules are good examples (see threading for some unelegan

[issue10858] Make source code links less prominent

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I have a few suggestions on how to make these links more useful: The question is not how they could be more useful, but *whether* they are useful at all. An user skilled enough to read the source code is probably skilled enough not to require a prominently di

[issue10858] Make source code links less prominent

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: As Raymond explained, he added these links as a kind of social experiment and this issue itself shows that it works. :-) I have a few suggestions on how to make these links more useful: 1. A ViewVC link is the simplest solution to present the source, bu

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Georg Brandl
Georg Brandl added the comment: Except if it's an HTTPS URL :) -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mai

[issue809163] Can't add files with spaces

2011-01-07 Thread xiscu
xiscu added the comment: This is also my first contribution. The attached file is a diff against : - http://code.python.org/hg/branches/py3k/ The actual tip was: - 9489:4db13b4e76aa The patch adds only a test that triggers the issue. Please feel free to comment on that commit (so I can impro

[issue10827] Functions in time module should support year < 1900 when accept2dyear = 0

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Commit link: r87829 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue10827] Functions in time module should support year < 1900 when accept2dyear = 0

2011-01-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in 87829. I added a year >= 1900 check in time.strftime for now because removing or relaxing this limit should be done in coordination with similar datetime module issue. See #1777412. See also python-dev discussion starting at http://mail.

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Éric Araujo
Éric Araujo added the comment: Yes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Shawn Ligocki
Shawn Ligocki added the comment: Ahha, what a mess, thanks for investigating! I agree, this is bankofamerica's problem. -- ___ Python tracker ___ __

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Shawn Ligocki
Shawn Ligocki added the comment: Sure, I can work on a patch. Should an empty port default to 80? In other words does "http://foo.com/"; == "http://foo.com:/";? -- ___ Python tracker

[issue10841] binary stdio

2011-01-07 Thread Glenn Linderman
Glenn Linderman added the comment: Thanks for your work on this Victor, and other commenters also. -- ___ Python tracker ___ ___ Pyth

[issue10838] subprocess __all__ is incomplete

2011-01-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10863] zlib.compress() fails with string

2011-01-07 Thread Jose-Luis Fernandez-Barros
New submission from Jose-Luis Fernandez-Barros : On "The Python Tutorial", section 10.9. Data Compression http://docs.python.org/py3k/tutorial/stdlib.html#data-compression >>> import zlib >>> s = 'witch which has which witches wrist watch' ... >>> t = zlib.compress(s) Traceback (most recent ca

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Éric Araujo
Éric Araujo added the comment: The redirection is a red hearing, the error is clearly that an empty port after a port delimiter (like in http://host:) breaks httplib. Do you want to work on a patch? Helpful guidelines are found at http://www.python.org/dev/patches/ -- stage: -> nee

[issue10858] Make source code links less proeminent

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The goal is to reacquaint people with the source as an adjunct to the > docs. The phrase use-the-source-luke used to be common in the python > community but now many devs don't seem to be able to readily access > the source (with it tucked away in a library d

[issue10858] Make source code links less proeminent

2011-01-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please leave these alone for the time being. I put them high on the page so that people would have a consistent and easy to find view-source link. It is an experiment and time will tell whether it was a good choice. For the time being, I don't want it bu

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: I fixed #10841 (r87824): stdin (and all other files) is now set to binary (instead of text) mode on Windows. -- ___ Python tracker ___

[issue10841] binary stdio

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: Tests pass on Windows 7 buildbot, the two other XP buildbots have unrelated issues. I also tested on my XP VM: all tests pass. So I close this issue. -- resolution: -> fixed status: open -> closed ___ Python tracke

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, perhaps the redirection loop would stop if we would send back those cookies which the server sends us. So perhaps it's a feature request rather. (but this still strikes me as a very poor use of HTTP) -- __

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Antoine Pitrou
, 06 Jul 2011 19:45:49 GMT; Path=/; Domain=.bankofamerica.com < Set-cookie: BOA_0020=20110107:0:E:961E3F55-9482-01f4-BFA6871D; Expires=Wed, 25 Jan 2079 22:59:56 GMT; Domain=.bankofamerica.com < Set-cookie: BOA_COM_BT_ELIGIBLE=No; Expires=Fri, 14 Jan 2011 19:45:49 GMT; Domain=.bankofamer

[issue10862] Complete your registration to Python tracker -- key yq3FVw0zXbfo3RJCzK2PqphC2n0XTohy

2011-01-07 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Py

[issue10862] Complete your registration to Python tracker -- key yq3FVw0zXbfo3RJCzK2PqphC2n0XTohy

2011-01-07 Thread xiscu
New submission from xiscu : On 01/07/2011 08:41 PM, Python tracker wrote: > To complete your registration of the user "xiscu" with > Python tracker, please do one of the following: > > - send a reply to rep...@bugs.python.org and maintain the subject line as is > (the > reply's additional "Re:"

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Shawn Ligocki
New submission from Shawn Ligocki : urllib2 sporadically falsely claims that http://www.bankofamerica.com/ has infinite redirect: $ python -c 'import urllib2; print urllib2.urlopen("http://www.bankofamerica.com/";).geturl()' https://www.bankofamerica.com/ $ python -c 'import urllib2; print

[issue10858] Make source code links less proeminent

2011-01-07 Thread R. David Murray
R. David Murray added the comment: +1 -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10858] Make source code links less proeminent

2011-01-07 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: d...@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10860] urllib2 crashes on valid URL

2011-01-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Can you test it with current versions (2.7, 3.1 or 3.2)? -- nosy: +eric.araujo, orsenthil versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker

[issue10812] Add some posix functions

2011-01-07 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks for the comments. I implemented sethostid() - its not actually in the posix spec, but linux/*bsd have it although the signature for FreeBSD is a bit different. I implemented gethostname(). Both get/sethostname() now use FSDefault encoding. gethostname()

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Michael Foord added the comment: I have no objection to a rename that adds a leading underscore. -- ___ Python tracker ___ ___ Python

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > There was a discussion on python-dev about naming conventions in the > standard library. There was no clear consensus that everything > non-public should start with an underscore. Several developers thought > that merely being undocumented or not present in __

[issue10860] urllib2 crashes on valid URL

2011-01-07 Thread Shawn Ligocki
New submission from Shawn Ligocki : urllib2 crashes with stack trace on legal URL http://118114.cn Transcript: Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import urllib2 >>> urllib2.urlopen("h

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Michael Foord added the comment: There was a discussion on python-dev about naming conventions in the standard library. There was no clear consensus that everything non-public should start with an underscore. Several developers thought that merely being undocumented or not present in __all__

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Georg Brandl
Georg Brandl added the comment: Not clear; see #10838. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1559549] ImportError needs attributes for module and file name

2011-01-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Michael Foord
Michael Foord added the comment: It isn't in __all__ and it is undocumented - so I'd say its private already. -- ___ Python tracker ___ _

[issue10859] Is GeneratorContextManager public?

2011-01-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : contextlib.GeneratorContextManager doesn't have an underscore but it's not documented either. Something has to be done (I would say make it private). -- components: Library (Lib) messages: 125683 nosy: michael.foord, ncoghlan, pitrou priority: normal

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue10854] Output DLL name in error message of ImportError when DLL is missing

2011-01-07 Thread anatoly techtonik
anatoly techtonik added the comment: I see. But depends.exe dependency walker somehow finds the exact code that is failing, so there should be a way to do extra investigation in case of error. py2exe has a custom .dll loader that bypasses LoadLibrary(Ex) calls from that I can see at http://p

[issue10808] ssl unwrap fails with Error 0

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > "This information" being no information, is that really all you can get out > of OpenSSL? Well the situation as the same as a system call which would return failure but leave errno 0 (except that OpenSSL has its own kind-of-errnos). OpenSSL's error reporting

[issue10841] binary stdio

2011-01-07 Thread STINNER Victor
STINNER Victor added the comment: I commited io_binary_windows.patch + parser_translate_newline.patch as r87824. I fixed the patch on the parser to avoid leak on newtok if translate_newlines() fails. -- Added file: http://bugs.python.org/file20304/parser_translate_newline-2.patch ___

[issue10808] ssl unwrap fails with Error 0

2011-01-07 Thread Georg Brandl
Georg Brandl added the comment: "This information" being no information, is that really all you can get out of OpenSSL? -- nosy: +georg.brandl ___ Python tracker ___ __

[issue10849] Backport test/__main__

2011-01-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/1/7 Raymond Hettinger : > > Raymond Hettinger added the comment: > > His +0 isn't a decision.  I would like Martin, the longest term active > developer, to make the call about waiving the policy of not backporting > features (especially when the only

[issue10849] Backport test/__main__

2011-01-07 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue10849] Backport test/__main__

2011-01-07 Thread Georg Brandl
Georg Brandl added the comment: Oh, sure. I misinterpreted your comment. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10849] Backport test/__main__

2011-01-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: His +0 isn't a decision. I would like Martin, the longest term active developer, to make the call about waiving the policy of not backporting features (especially when the only purported benefit saving a couple of core devs from spelling out the path name

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread Georg Brandl
Georg Brandl added the comment: You are right, however, that the "args" argument is not really well documented. Fixed that in r87820. -- resolution: works for me -> fixed ___ Python tracker _

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I will not bother backporting myself but an other core developer can do it if (s)he desires. -- ___ Python tracker ___

[issue10808] ssl unwrap fails with Error 0

2011-01-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: As we discussed on IRC, there are two things here: - unwrap() can give an error because it tries to shutdown the SSL layer cleanly, and the other side doesn't support it or is already closed; unwrap() is useful mostly if you plan to use the clear-text layer a

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread R. David Murray
R. David Murray added the comment: No it doesn't. It has an arbitrary message string. That's the same as all other exceptions that don't have special attributes. -- nosy: +r.david.murray status: open -> closed ___ Python tracker

[issue10856] documentation for ImportError parameters and attributes

2011-01-07 Thread anatoly techtonik
anatoly techtonik added the comment: ImportError has args and message attributes containing failed module name. -- status: closed -> open ___ Python tracker ___

  1   2   >