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

2010-04-12 Thread Senthil Kumaran
Senthil Kumaran added the comment: Added additional examples of valid urls in r79988 and branches under the roundtrip test cases. Michael, RDM: If you have any comments on msg102737, let me know. Otherwise we can close this issue as wont-fix. -- _

[issue8374] Some locales are unsupported

2010-04-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > getdefaultlocale is inherently unmaintainable, and shouldn't be used by > applications. I wish it was removed from Python (but unfortunately, too many > people got tricked into believing

[issue8375] test_distutils fails when run with -j

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r79992 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8359] % formating - TypeError: not all arguments converted during string formatting

2010-04-12 Thread Abdellah Chelli
عبدالله شلي (Abdellah Chelli) added the comment: Mapping works too, I don't know how I didn't get it. Thank you Eric. Ex: gettext.ngettext("%(package)d package", "%(package)d packages", countInstall) % { 'package': countInstall} https://bugs.launchpad.net/ubuntu/+source/language-selector/+bu

[issue8374] Some locales are unsupported

2010-04-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: M.-A. Lemburg wrote: >> That said, if anybody feels like updating the tables from the various data >> sources, please go ahead. > > I last updated the table in 2008. Will do that again this week. I saw that Antoine already did this for me: thanks, Antoine

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

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

[issue8377] Errata on page:http://docs.python.org/library/stdtypes.html

2010-04-12 Thread Jatin Sanghvi
New submission from Jatin Sanghvi : Open link: http://docs.python.org/library/stdtypes.html The statement: If i or j is negative, the index is relative to the end of the string: len(s) + i or len(s) + j is substituted. is incorrect, should be: If i or j is negative, the index is relative to

[issue8377] Errata on page:http://docs.python.org/library/stdtypes.html

2010-04-12 Thread Walter Dörwald
Walter Dörwald added the comment: This is a common thinko. ;) If i is negative then len(s) - i would be greater that len(s). However len(s) + i is correct. Example: foo[-1] is foo[len(foo) + (-1)] is foo[len(foo)-1] -- nosy: +doerwalter resolution: -> invalid status: open -> closed

[issue3581] failures in test_uuid

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: Applied test_uuid3.patch to trunk (r79954), release26-maint (r79959), py3k (r79960) and release31-maint (r79961). No buildbot failures so far, so I'm closing this. -- stage: commit review -> committed/rejected status: open -> closed versions: +Python 3.1,

[issue7650] test_uuid is invalid

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: Fixed in issue 3581. Thanks for the report and the comments! -- assignee: -> skrah dependencies: +failures in test_uuid keywords: +patch resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed superseder: -> failures in t

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Éric Araujo
Éric Araujo added the comment: Nice catch. The patch looks good to me and applies correctly on my trunk copy. There seems to be no test about this in the test suite; do you have a little test script to compare old and new code? On a sidenote, I find all this business with time.time, time.gmti

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

2010-04-12 Thread Éric Araujo
Éric Araujo added the comment: By the way, I’ve been meaning to file a bug against the Mercurial schemes extension since I saw how it misused URIs (i.e. “py://trunk/” should be “py:trunk/”); I hope it’s not too late now that this extension is shipped with the program. Regards -- nos

[issue1481] test_uuid is warning about unreliable functions

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: Issue fixed by test_uuid3.patch from issue 3581 in trunk (r79954), release26-maint (r79959), py3k (r79960) and release31-maint (r79961). -- assignee: -> skrah keywords: -needs review resolution: -> accepted stage: patch review -> committed/rejected stat

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

2010-04-12 Thread Éric Araujo
Éric Araujo added the comment: Hi r79951 fixes “simplies” and add the typo “specifyication” . Updated my patch to remove that and add this. Regards -- Added file: http://bugs.python.org/file16894/functools-typos-pep8.diff ___ Python tracker

[issue4639] Build failure on OpenBSD 4.4-current regarding lstat()

2010-04-12 Thread Stefan Krah
Stefan Krah added the comment: This has been fixed in issue 7903. -- assignee: -> skrah keywords: +patch resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> Configure script incorrect for reasonably recent OpenBSD

[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 ___ __

[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

[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
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 _

[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

[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

[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

[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 -- __

[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 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

[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

[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

[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

[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

[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

[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

[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/

[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 _

[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

[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

[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

[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

[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

[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 ___

[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

[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

[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

[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 _

[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 ___

[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 +++-

[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-

[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

[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 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

[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

[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

[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 ___ __

[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

[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

[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

[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

[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 ___

[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: 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

[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? -

[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

[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.

[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.

[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

[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. -- _

[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 ___ ___

[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:

[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=

[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.)

[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 _

[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

[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

[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 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: 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 :( --

[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 ___ _

[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://

[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

[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

[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

[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] 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

[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

[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

[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 ___ _

[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 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

[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] 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

[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 __

[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

[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
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

[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:

[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

[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 Craig McQueen
Craig McQueen added the comment: Sure can--done. Issue #8384. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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
É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

  1   2   >