[issue7509] AttributeError: MSVCCompiler instance has no attribute '_MSVCCompiler__root'

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: I don't know about 2.5 but: Reading the MSVCCompiler class code in trunk, I can see a case where __init__ doesn't create self.__root. (if self.__arch != Intel) making any call to get_msvc_paths() leading to an error. You certainly have some kind of unexpected en

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

2010-04-12 Thread Christopher Paolini
Christopher Paolini added the comment: There is an issue with Visual Studio 2008 and the latest 2.6.5 It searches using productdir = Reg.get_value(r"%s\Setup\VC" % vsbase, "productdir") I just fresh installed Visual Studios and there is no registry "setup" fo

[issue8366] OS X universal builds fail on 2.7b1 and py3k with "Don't know machine value for archs"

2010-04-12 Thread Ronald Oussoren
Ronald Oussoren added the comment: Setting CPPFLAGS is needed to ensure that the configure tests use the correct header files, as Ned noted. I agree that this should be cleaned up, I also agree with MAL's comment in Issue8211: the entire machinery for setting up the compiler in Python's conf

[issue7509] AttributeError: MSVCCompiler instance has no attribute '_MSVCCompiler__root'

2010-04-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: "This is for version 2.6". But how? the traceback shows C:\Python25 on almost every line. -- nosy: +amaury.forgeotdarc ___ Python tracker ___

[issue7509] AttributeError: MSVCCompiler instance has no attribute '_MSVCCompiler__root'

2010-04-12 Thread Christopher Paolini
Christopher Paolini added the comment: actually this isn't a duplicate. This is for version 2.6, that issue you said it was a duplicate of is for Python 2.5. -- nosy: +Christopher.Paolini ___ Python tracker __

[issue4022] 2.6 dependent on c:\python26\ on windows

2010-04-12 Thread anatoly techtonik
anatoly techtonik added the comment: I it still actual for 2.6.5 and 2.7? -- components: +Installation versions: +Python 2.7 ___ Python tracker ___ __

[issue7585] difflib should separate filename from timestamp with tab

2010-04-12 Thread anatoly techtonik
anatoly techtonik added the comment: r80004 and r80006 to be exact. Great! Thanks! =) -- ___ Python tracker ___ ___ Python-bugs-list

[issue3143] Make the left sidebar in the doc collapsible

2010-04-12 Thread Ezio Melotti
Ezio Melotti added the comment: Even if I tested it only with Python documentation, the script should work for other docs generated by Sphinx (at least with the default theme). Last time I tried the script it wasn't working on Chrome, so there's still some work to do. If you want to try it and

[issue6521] Contradictory documentation for email.mime.text.MIMEText

2010-04-12 Thread Shashwat Anand
Shashwat Anand added the comment: UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-7: ordinal not in range(128) The lack of unicode encoding support should be mentioned explicitly. Attaching a doc patch. -- keywords: +patch nosy: +l0nwlf, r.david.murray Added fi

[issue1368247] unicode in email.MIMEText and email/Charset.py

2010-04-12 Thread Shashwat Anand
Shashwat Anand added the comment: After applying maxua's patch we do not get the unicode error but as david stated the support is not there. Here is the test. >>> import email >>> msg = >>> email.MIMEText.MIMEText(u'\u043a\u0438\u0440\u0438\u043b\u0438\u0446\u0430') >>> msg.set_charset('utf8'

[issue4487] Add utf8 alias for email charsets

2010-04-12 Thread Shashwat Anand
Shashwat Anand added the comment: MIMEText doesn't support unicode input. This was the reason OP Test case failed. For reference : http://bugs.python.org/issue1368247 -- ___ Python tracker ___

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-12 Thread Skip Montanaro
Skip Montanaro added the comment: Whoops. No stringio.py in 3.x. This should be closed as won't fix since it's not a problem in py3k and can't be changed in 2.x. -- ___ Python tracker ___

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-12 Thread Skip Montanaro
Skip Montanaro added the comment: It's clear you can't change it for 2.6 or 2.7, almost certainly not 3.1. Maybe you could change it for 3.2. -- nosy: +skip.montanaro ___ Python tracker

[issue7306] Patch - skip winsound tests if no default sound is configured

2010-04-12 Thread Brian Curtin
Brian Curtin added the comment: Committed in r80026-r80029. -- assignee: -> brian.curtin resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

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

2010-04-12 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20100413.zip is a new version of the regex module. It includes additional speed-ups. -- Added file: http://bugs.python.org/file16905/issue2636-20100413.zip ___ Python tracker

[issue5341] A selection of spelling errors and typos throughout source

2010-04-12 Thread Éric Araujo
Éric Araujo added the comment: I saw the author of functools on the chatroom and asked for feedback. Summary: * Rewrapping, whitespace changes, quote changes and other minor PEP 8 stuff is not worth the trouble it creates (eats time without improving Python’s quality, and also disturbing use

[issue5341] A selection of spelling errors and typos throughout source

2010-04-12 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file16894/functools-typos-pep8.diff ___ Python tracker ___ ___ Python-bugs-list m

[issue5341] A selection of spelling errors and typos throughout source

2010-04-12 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file16855/functools-typos-pep8.diff ___ Python tracker ___ ___ Python-bugs-list m

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

2010-04-12 Thread Craig McQueen
Craig McQueen added the comment: Sure can--done. Issue #8384. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-12 Thread Craig McQueen
New submission from Craig McQueen : I tried to build a C extension in Python 3.1.2. \Python31\python.exe setup.py build --compiler=mingw32 I got a stack-trace: ... File "C:\Python31\lib\distutils\cygwinccompiler.py", line 280, in __init__ CygwinCCompiler.__init__ (self, verbose, dry_

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

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: Craig, that's another bug, can you open another issue for that? The missing vcvarsall.bat bug is cleared and I will close this issue once I've reverted distutils state in the 3.x branch -- ___ Python tracker

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

2010-04-12 Thread Craig McQueen
Craig McQueen added the comment: I tried it in Python 3.1.2. \Python31\python.exe setup.py build --compiler=mingw32 I got a stack-trace: ... File "C:\Python31\lib\distutils\cygwinccompiler.py", line 280, in __init__ CygwinCCompiler.__init__ (self, verbose, dry_run, force) File "C:

[issue8383] pickle is unable to encode unicode surrogates

2010-04-12 Thread STINNER Victor
STINNER Victor added the comment: I found this bug indirectly: test_logging failed on a SocketHandler if LogRecord.pathname contains a surrogate character. SocketHandler uses pickle to serialize the record. -- ___ Python tracker

[issue8383] pickle is unable to encode unicode surrogates

2010-04-12 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file16904/pickle_surrogates.patch ___ Python tracker ___ ___

[issue8383] pickle is unable to encode unicode surrogates

2010-04-12 Thread STINNER Victor
New submission from STINNER Victor : Python3 uses unicode surrogates to store undecodable filenames. Eg. the filename b"abc\xff.py" is encoded as "abc\xdcff.py" if the file system encoding is ASCII. Pickle is unable to store them: ./python -c 'import pickle; pickle.dumps("abc\udcff")' (...) Un

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2010-04-12 Thread Kyle VanderBeek
Kyle VanderBeek added the comment: Ping? Is anyone working on this? Have Eric's concerns been addressed and can we pickle/unpickle all exceptions yet? -- nosy: +kylev ___ Python tracker __

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: Yes, I am not sure what would be the best fix though. We cannot raise an error on StringIO now because this will break lots of code out there. In the meantime, I think it's cleaner to avoid doing implicit str() conversions, so I think cStringIO has a better app

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: cStringIO and StringIO don't behave the same way -> StringIO.write() takes any argument and converts it to a string ___ Python tracker ___ _

[issue8382] cStringIO and StringIO don't behave the same way

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Probably not. I guess an implicit str() is done on the argument given to write(): >>> s = StringIO() >>> s.write((1,2)) >>> s.write(3) >>> s.getvalue() '(1, 2)3' -- nosy: +pitrou priority: -> normal ___ Python tra

[issue8364] Update site.setquit docstring

2010-04-12 Thread Éric Araujo
Éric Araujo added the comment: Answer to myself by Brian Curtin on the chatroom: Him: it’s in the code so i would file it like code. "Library" for py modules, "Extension Modules" if its a C extension Me: Your answer implies that components are mapped to directories, not areas (i.e. Library =

[issue8382] cStringIO and StringIO don't behave the same way

2010-04-12 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- title: cStringIO and StringIO doesn't behave the same way -> cStringIO and StringIO don't behave the same way ___ Python tracker ___ _

[issue8382] cStringIO and StringIO doesn't behave the same way

2010-04-12 Thread Tarek Ziadé
New submission from Tarek Ziadé : Looks like the python version of StringIO can write tuples, but not the C version. I am not sure this is intended: >>> from cStringIO import StringIO as cStringIO >>> from StringIO import StringIO as StringIO >>> string = StringIO() >>> string.write(('my', 'tup

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-12 Thread Timothy Fitz
Timothy Fitz added the comment: In this case bytecode isn't an optimization, it's a distribution choice (this bug reared it's ugly head in our closed-source downloadable client). I think that implausible execution paths are still a bug. Running a .pyo without -O should be explicitly an error

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-12 Thread Ned Deily
Ned Deily added the comment: This is a duplicate of Issue6864. The problem is seen with the Apple-supplied IDLE in OS X 10.6 and appears to be an interaction with IDLE 2.6 and the Apple-supplied Cocoa Tk 8.5. One workaround is to install Python 2.6.5 using the python.org OS X installer and u

[issue8364] Update site.setquit docstring

2010-04-12 Thread Brian Curtin
Brian Curtin added the comment: Committed in r80022 and r80023. Thanks. -- assignee: -> brian.curtin nosy: +brian.curtin priority: -> normal resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tr

[issue8381] New Window Error

2010-04-12 Thread Aaron
New submission from Aaron : When ever I try to open a new window or open a saved file in the IDLE (on a mac) it freezes. I am running snow leppord on a very new mac. -- components: IDLE messages: 102987 nosy: aaron.the.cow severity: normal status: open title: New Window Error type: cras

[issue8380] Port of the gdb7 debugging hooks to the "py3k" branch

2010-04-12 Thread Dave Malcolm
Dave Malcolm added the comment: > Should we call it libpython3.py, in order to distinguish it from the 2.x > version? We could; it gets copied to python-gdb.py by the Makefile though. The code is intended to track the low-level implementation details of the tree that its in, so I'd expect the

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: This type of failure appears again in current builds: http://www.python.org/dev/buildbot/builders/x86 gentoo 3.x/builds/2160/steps/test/logs/stdio -- nosy: +skrah versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: closed -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: It should be ported to py3k, the sparc buildbots still fail there. -- nosy: +pitrou ___ Python tracker ___ _

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Meador Inge
Meador Inge added the comment: Those last two sentences where meant to be in response to your "Merged your changes and subsequent tweaks to py3k in r80016." comment. I tried to reply to the tracker from my mail client and things got reformatted :( --

[issue8380] Port of the gdb7 debugging hooks to the "py3k" branch

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should we call it libpython3.py, in order to distinguish it from the 2.x version? -- nosy: +pitrou ___ Python tracker ___ _

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Meador Inge
Meador Inge added the comment: > Sure, if you want to. [Then I won't be able to reproduce what's in the > docs on either of my machines. :) One's 32-bit big-endian; the other's > 64-bit little-endian.] > I guess it's painful either way. I think the only fair thing to do is provide examples

[issue8380] Port of the gdb7 debugging hooks to the "py3k" branch

2010-04-12 Thread Dave Malcolm
New submission from Dave Malcolm : I'm attaching a patch for the py3k branch to port the gdb hooks to Python 3. The libpython.py code installed to python-gdb.py "knows" about the internal details of the Python within the tree. This patch makes the necessary changes to that code for the intern

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-12 Thread Brett Cannon
Brett Cannon added the comment: Your assessment of what is going on, Andy, is correct; the peephole optimizer for bytecode optimizes away the `if __debug__` section of the `if` statement for .pyo files. But that is actually a reasonable thing for the compiler to do as you are not supposed to

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's probably caused by optimizations in the peepholer indeed. -- nosy: +pitrou, rhettinger priority: -> low versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker _

[issue3143] Make the left sidebar in the doc collapsible

2010-04-12 Thread R. David Murray
R. David Murray added the comment: I'm pretty sure it only applies to the python docs, since this is the Python tracker, not the Sphinx or docutils tracker. (I'm not sure how the 'Documentation tools (Sphinx)' component gets in there...as far as I know Sphinx bugs go the Sphinx bug tracker.)

[issue5277] email message.get_params() and related methods sometimes fail.

2010-04-12 Thread Shashwat Anand
Shashwat Anand added the comment: According to RFC2231 the named disposition (content disposition field) is provided by the MIME mechanism. The encoded parameter like the following: Content-Disposition: inline; filename*0="Re: [Mailman-Users] Messages shunted with \"TypeError: "; filename*1=

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-12 Thread Andy Friesen
New submission from Andy Friesen : In certain circumstances, "if __debug__" seems to be evaluating its "else" clause even when -O is not specified. This can cause very surprising behavior. a.zip contains a single file named a/__init__.pyo. It is the compiled form of the following code:

[issue6409] 2to3 -j 4 generates malformed diffs

2010-04-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r80018. Thanks for the patch. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Mark Dickinson
Mark Dickinson added the comment: Sure, if you want to. [Then I won't be able to reproduce what's in the docs on either of my machines. :) One's 32-bit big-endian; the other's 64-bit little-endian.] Merged your changes and subsequent tweaks to py3k in r80016. -- _

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Changes by Shashwat Anand : Added file: http://bugs.python.org/file16900/BaseHTTPServer.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue6692] asyncore kqueue support

2010-04-12 Thread Brian Curtin
Changes by Brian Curtin : -- versions: -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6692] asyncore kqueue support

2010-04-12 Thread lasizoillo
Changes by lasizoillo : -- nosy: +lasizoillo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3143] Make the left sidebar in the doc collapsible

2010-04-12 Thread Forest Wilkinson
Forest Wilkinson added the comment: I just noticed Ezio's change to the title of this bug. Does the proposed fix address the original bug title ("docs waste a lot of horizontal space on left nav bar") for third-party packages that use docutils to generate their docs? Or, does it only avoid

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Meador Inge
Meador Inge added the comment: > wonder whether they should be converted to little-endian I thought about that as well. It sure would make creating new examples easier :) I had to construct the new examples "by hand". I can regenerate the examples for little-endian if you would like? -

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. I note that the examples are for a big-endian machine. I wonder whether they should be converted to little-endian, given that most users are on x86 or x86_64 hardware these days. -- ___ Python tracker

[issue8374] Some locales are unsupported

2010-04-12 Thread Martin v . Löwis
Martin v. Löwis added the comment: > getdefaultlocale() provides a way to access the default locale > (and encoding) on a platform without requiring a call to > setlocale(LC_ALL, "") That's what it's meant to do, but this is not what it actually does. In fact, there is no way of determining the

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Mark Dickinson
Mark Dickinson added the comment: Many thanks for the patch. Applied (minus trailing whitespace :) in r80013. Leaving open to remind me to merge to other branches. -- versions: -Python 2.7 ___ Python tracker ___

[issue7947] Documentation of math.pow, math.hypot, and complex.__abs__

2010-04-12 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Shashwat Anand added the comment: Quoting from the docstring of trunk/Lib/email/utils.py -> formatdate() "We cannot use strftime() because that honors the locale and RFC 2822 requires that day and month names be the English abbreviations." So yes, I do agree that email.utils.formatdate() shou

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Changes by Shashwat Anand : Removed file: http://bugs.python.org/file16890/BaseHTTPServer.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-04-12 Thread Anders Kaseorg
Anders Kaseorg added the comment: As an experienced Python programmer I am obviously aware that the tutorial is trying to teach how to make an iterator class, not how to make a container class. But the tutorial doesn’t make that *clear*. It should be much more explicit about what it is expl

[issue1220212] os.kill on windows

2010-04-12 Thread Brian Curtin
Brian Curtin added the comment: Ported to py3k in r80008. FAQ text updated in r80009 and r80010. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-04-12 Thread David Watson
Changes by David Watson : Added file: http://bugs.python.org/file16899/accept.c ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-04-12 Thread David Watson
David Watson added the comment: Attaching the C test programs I forgot to attach yesterday - sorry about that. I've also tried these programs, and the patches, on FreeBSD 5.3 (an old version from late 2004). I found that it accepted unterminated addresses as well, and unlike Linux it did not n

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-04-12 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think the docs are fine as-is. At that point in the tutorial, we're trying to teach what the iterator protocol is. The considerations of what makes a good design can be discussed elsewhere. It is not a one-liner. For example, files are self iterators

[issue2706] datetime: define division timedelta/timedelta

2010-04-12 Thread R. David Murray
R. David Murray added the comment: It's too late for 2.7 anyway. -- nosy: +r.david.murray priority: -> normal versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker __

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-04-12 Thread R. David Murray
R. David Murray added the comment: It might be worth mentioning in the tutorial the specific problem the OP points out: that if an object returns itself in __iter__, then that object can have only one iteration state. And that therefor only an object that is itself a unique iterator (as oppo

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-12 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16671/surrogates_bootstrap-4.patch ___ Python tracker ___ ___ Python-bugs-

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-12 Thread STINNER Victor
STINNER Victor added the comment: New patch fixing more issues about undecodable filenames. Lib/test/test_subprocess.py |4 - Lib/unittest/runner.py |4 + Modules/_posixsubprocess.c | 21 -- Modules/getpath.c | 90 +++-

[issue1818] Add named tuple reader to CSV module

2010-04-12 Thread Skip Montanaro
Skip Montanaro added the comment: Type conversion is a whole 'nuther kettle of fish. This particular thread is long and complex enough that it shouldn't be made more complex. -- ___ Python tracker ___

[issue7585] difflib should separate filename from timestamp with tab

2010-04-12 Thread R. David Murray
R. David Murray added the comment: Applied to trunk in r8004 and py3k in r8006. -- resolution: accepted -> fixed stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker _

[issue8326] Cannot import name SemLock on Ubuntu lucid

2010-04-12 Thread R. David Murray
R. David Murray added the comment: I guess I wasn't clear. The error you are seeing is exactly the error that issue 3770 talks about. The *build* process wasn't able to find a functioning sem_open implementation, and therefore you see that error. Now, clearly your platform does have a func

[issue2706] datetime: define division timedelta/timedelta

2010-04-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is there a good reason why this issue is languishing? The requested functionality seems to be well motivated, simple to implement with few objections resolved in the discussion. I wonder if it would be helpful to limit this patch to 3.x series. That wa

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-04-12 Thread Éric Araujo
Éric Araujo added the comment: Hello I thought about two bits in your message: “I think it's clear enough” and “So by reading it carefully”. They show that the doc is a bit ambiguous here, and while I agree that people should take the time to read and understand, I think that documentation c

[issue8367] test_winsound: failure on systems without soundcard

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: Committed in r8, r80001, r80002 and r80003. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue8326] Cannot import name SemLock on Ubuntu lucid

2010-04-12 Thread David Coconut
David Coconut added the comment: Issue 3770 is not relevant because this code works in Python 2.6 on both machines (x86 and x86-64). These machines run plenty of other concurrent processes also, which would imply to me that sem_open() does work. I could be completely wrong as I'm no expert on

[issue8378] PYTHONSTARTUP is not run by default when Idle is started

2010-04-12 Thread R. David Murray
R. David Murray added the comment: Believe it or not, this is the documented behavior of Idle on all platforms. You have to specify -s to have PYTHONSTARTUP run. See the last comment in Issue5594, and also the referenced issue 5233, which has a patch that apparently changes this behavior, al

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-04-12 Thread Ray.Allen
Ray.Allen added the comment: I think there is not much ploblem. Please notice this sentence in the previous paragraph in the toturial : "Behind the scenes, the for statement calls iter() on the container object. The function returns an iterator object that defines the method next() which acc

[issue6467] PyOS_Readline: treatment of "1234EOF"; behavior of builtin_raw_input

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: There are two cases: 1) stdin and stdout go to a tty: my_fgets() from Parser/myreadline.c does not handle the case where fgets() reads some characters followed by an EOF. One way to deal with this is to consider a sequence like 1234EOF an empty line. This is wha

[issue8026] strftime bug when timedelta is negative

2010-04-12 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7472] email.encoders.encode_7or8bit(): typo "iso-2202". "iso-2022" is correct.

2010-04-12 Thread R. David Murray
R. David Murray added the comment: I've applied the fix to trunk in r79994, and py3k in r79996, but I'm leaving this open because I still want a unit test for it. -- keywords: +easy -patch ___ Python tracker _

[issue8376] Tutorial offers dangerous advice about iterator s: “__iter__() can just return self”

2010-04-12 Thread Ray.Allen
Changes by Ray.Allen : -- nosy: +ysj.ray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue8026] strftime bug when timedelta is negative

2010-04-12 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This is not a bug. The issue boils down to the following: >>> from datetime import * >>> d = datetime(2010, 1, 1) >>> d, d.strftime("%G") (datetime.datetime(2010, 1, 1, 0, 0), '2009') and OP expects '2010' instead. Python behavior is correct as can be

[issue8378] PYTHONSTARTUP broken on Windows

2010-04-12 Thread Brian Curtin
Changes by Brian Curtin : -- components: +IDLE, Windows nosy: +brian.curtin priority: -> normal ___ Python tracker ___ ___ Python-bugs

[issue8319] HTMLparser does not handle call to handle_data when a tag contains no data.

2010-04-12 Thread Anand B Pillai
Changes by Anand B Pillai : -- nosy: +pythonhacker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Éric Araujo
Éric Araujo added the comment: “One could also ask whether BaseHTTPServer should use the logging module, but that is a whole separate issue.” Indeed: http://www.python.org/dev/peps/pep-0337/ Cheers -- ___ Python tracker

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread R. David Murray
R. David Murray added the comment: There are a couple problems with this patch. The first is that fixing date_time_string by using strftime rather than email.utils.formatdate is suboptimal from a code reuse standpoint. The reason is that the date in HTTP message headers is required to confo

[issue7150] datetime operations spanning MINYEAR give bad results

2010-04-12 Thread Anand B Pillai
Anand B Pillai added the comment: Can someone update this issue ? Is the 2nd patch tested... ? -- ___ Python tracker ___ ___ Python-bu

[issue8374] Some locales are unsupported

2010-04-12 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven added the comment: That nl_AW is an interesting one. Aruba is part of the Kingdom of the Netherlands, so in essence it should follow nl_NL. From what I can see that locale seems to be limited to (certain) Linux systems. I'll raise the issue with the CLDR guys as

[issue8378] PYTHONSTARTUP broken on Windows

2010-04-12 Thread John Van Praag
New submission from John Van Praag : The PYTHONSTARTUP environment variable does not work--does not import the indicated startup file--when IDLE is started under Windows. I have tested under Windows XP SP2, and under Windows Vista Ultimate 64 bit. The os.environ variable does list the startup

[issue8374] Some locales are unsupported

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Could you tell me which X11 version you used ? I've modified the > generation script to also output the added aliases and would like > to list them as well. It's the file supplied on my Mandriva system, from libx11-1.2.2-2mdv2010.0.src.rpm -- __

[issue2054] add ftp-tls support to ftplib - RFC 4217

2010-04-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Apr 11, 2010 at 07:43:56PM +, Éric Araujo wrote: > httplib.Client, ftplib.Client, ftplib.SecureClient would be much more > descriptive than httplib.HTTP and ftplib.FTP. Any interest about adding > aliases? Aliases would be a bad idea. -1. It is f

[issue8339] urlunparse(urlparse('x://')) now returns 'x:' instead of 'x://'

2010-04-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Mon, Apr 12, 2010 at 11:50:57AM +, Michael Glassford wrote: > 1) Although the urlparse documentation does mention the relevant RFCs, on a > quick read-through I don't see that it actually requires its input to be a > valid URL. > 2) Obviously, some cod

[issue8339] urlunparse(urlparse('x://')) now returns 'x:' instead of 'x://'

2010-04-12 Thread Michael Glassford
Michael Glassford added the comment: > In those cases, I would assume that 'x://y', x:/y','x:/','/' > as valid URLS, but not the two examples you mentioned. Only 2 comments about this: 1) Although the urlparse documentation does mention the relevant RFCs, on a quick read-through I don't see t

[issue6409] 2to3 -j 4 generates malformed diffs

2010-04-12 Thread George Boutsioukis
George Boutsioukis added the comment: I updated the patch to keep the new code as local as possible. -- Added file: http://bugs.python.org/file16895/output_lock.diff ___ Python tracker _

[issue8371] Add a command to download distributions

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: What would this command do precisely ? Are you thinking about a command that scans PyPI ? why this would be a command btw ? downloading a distribution is not a final goal, imho. Wouldn't it be simpler to have a simple function that provides this feature ? > I

[issue6409] 2to3 -j 4 generates malformed diffs

2010-04-12 Thread George Boutsioukis
Changes by George Boutsioukis : Removed file: http://bugs.python.org/file16889/output_lock.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue1818] Add named tuple reader to CSV module

2010-04-12 Thread Éric Araujo
Éric Araujo added the comment: See also this python-ideas thread: http://mail.python.org/pipermail/python-ideas/2010-April/006991.html -- nosy: +merwok ___ Python tracker ___ __

  1   2   >