[issue8026] strftime bug when timedelta is negative

2010-04-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8026 ___ ___ Python-bugs-list

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

2010-04-12 Thread Anders Kaseorg
New submission from Anders Kaseorg ande...@mit.edu: The Python tutorial offers some dangerous advice about adding iterator behavior to a class: http://docs.python.org/tutorial/classes.html#iterators “By now you have probably noticed that most container objects can be looped over using a for

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-12 Thread Chris Rebert
Chris Rebert pyb...@rebertia.com added the comment: Here's a draft of an updated version of the Data model docs reflecting the changes in the PEP. -- keywords: +patch type: - feature request Added file: http://bugs.python.org/file16891/datamodel.rst.diff

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-12 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: After spending a sufficient amount of time looking at patches and the RFC 2732, I tend to agree with the patch provided by tlocke. It does cover the behavior for parsing IPv6 URL with '[' hostname ']'. RFC 2732 is very short and just says

[issue7026] test_urllib: unsetting missing 'env' variable

2010-04-12 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I am unable to reproduce this issue in the trunk/py3k. Buildbots have not complained either. I am closing this bug. srid: If you have steps to reproduce, feel free to reopen it. -- status: open - closed

[issue5250] Document __instancecheck__ and __subclasscheck__

2010-04-12 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Added file: http://bugs.python.org/file16893/datamodel.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5250 ___

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

2010-04-12 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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 m...@egenix.com added the comment: Martin v. Löwis wrote: Martin v. Löwis mar...@v.loewis.de 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

[issue8375] test_distutils fails when run with -j

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r79992 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8375 ___

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

2010-04-12 Thread Abdellah Chelli
عبدالله شلي (Abdellah Chelli) sneets...@gmail.com 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}

[issue8374] Some locales are unsupported

2010-04-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com 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:

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

2010-04-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8376 ___ ___ Python-bugs-list mailing

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

2010-04-12 Thread Jatin Sanghvi
New submission from Jatin Sanghvi jatin...@gmail.com: 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

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

2010-04-12 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de 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

[issue3581] failures in test_uuid

2010-04-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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 -

[issue7650] test_uuid is invalid

2010-04-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-04-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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.

[issue1481] test_uuid is warning about unreliable functions

2010-04-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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 -

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

2010-04-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hi r79951 fixes “simplies” and add the typo “specifyication” Muphry’s Law wink. Updated my patch to remove that and add this. Regards -- Added file: http://bugs.python.org/file16894/functools-typos-pep8.diff

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

2010-04-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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 mer...@netwok.org added the comment: See also this python-ideas thread: http://mail.python.org/pipermail/python-ideas/2010-April/006991.html -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1818

[issue6409] 2to3 -j 4 generates malformed diffs

2010-04-12 Thread George Boutsioukis
Changes by George Boutsioukis gboutsiou...@gmail.com: Removed file: http://bugs.python.org/file16889/output_lock.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6409 ___

[issue8371] Add a command to download distributions

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com 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

[issue6409] 2to3 -j 4 generates malformed diffs

2010-04-12 Thread George Boutsioukis
George Boutsioukis gboutsiou...@gmail.com 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 rep...@bugs.python.org

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

2010-04-12 Thread Michael Glassford
Michael Glassford glassford...@gmail.com 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

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

2010-04-12 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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)

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

2010-04-12 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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

[issue8374] Some locales are unsupported

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue8374] Some locales are unsupported

2010-04-12 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven asmo...@in-nomine.org 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

[issue7150] datetime operations spanning MINYEAR give bad results

2010-04-12 Thread Anand B Pillai
Anand B Pillai abpil...@gmail.com added the comment: Can someone update this issue ? Is the 2nd patch tested... ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7150 ___

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 abpil...@gmail.com: -- nosy: +pythonhacker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8319 ___ ___ Python-bugs-list

[issue8378] PYTHONSTARTUP broken on Windows

2010-04-12 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- components: +IDLE, Windows nosy: +brian.curtin priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8378 ___

[issue8026] strftime bug when timedelta is negative

2010-04-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

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

2010-04-12 Thread Ray.Allen
Changes by Ray.Allen ysj@gmail.com: -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8376 ___ ___ Python-bugs-list mailing list

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

2010-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 amaur...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8026 ___

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

2010-04-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

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

2010-04-12 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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

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

2010-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue8326] Cannot import name SemLock on Ubuntu lucid

2010-04-12 Thread David Coconut
David Coconut coco...@redbrick.dcu.ie 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

[issue8367] test_winsound: failure on systems without soundcard

2010-04-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Committed in r8, r80001, r80002 and r80003. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

2010-04-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue2706] datetime: define division timedelta/timedelta

2010-04-12 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue8326] Cannot import name SemLock on Ubuntu lucid

2010-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue7585] difflib should separate filename from timestamp with tab

2010-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

[issue1818] Add named tuple reader to CSV module

2010-04-12 Thread Skip Montanaro
Skip Montanaro s...@pobox.com 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 rep...@bugs.python.org

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

2010-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue2706] datetime: define division timedelta/timedelta

2010-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

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

2010-04-12 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

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

2010-04-12 Thread David Watson
David Watson bai...@users.sourceforge.net 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,

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

2010-04-12 Thread David Watson
Changes by David Watson bai...@users.sourceforge.net: Added file: http://bugs.python.org/file16899/accept.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8372 ___

[issue1220212] os.kill on windows

2010-04-12 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Ported to py3k in r80008. FAQ text updated in r80009 and r80010. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1220212

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

2010-04-12 Thread Anders Kaseorg
Anders Kaseorg ande...@mit.edu 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

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: Removed file: http://bugs.python.org/file16890/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com 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

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

2010-04-12 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7947 ___ ___ Python-bugs-list

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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 mar...@v.loewis.de 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

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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. -- ___

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Meador Inge
Meador Inge mead...@gmail.com 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

[issue3143] Make the left sidebar in the doc collapsible

2010-04-12 Thread Forest Wilkinson
Forest Wilkinson for...@users.sourceforge.net 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

[issue6692] asyncore kqueue support

2010-04-12 Thread lasizoillo
Changes by lasizoillo lasizoi...@gmail.com: -- nosy: +lasizoillo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6692 ___ ___ Python-bugs-list

[issue7370] patch: BaseHTTPServer reinventing rfc822 date formatting

2010-04-12 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: Added file: http://bugs.python.org/file16900/BaseHTTPServer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7370 ___

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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 benja...@python.org added the comment: Fixed in r80018. Thanks for the patch. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6409

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

2010-04-12 Thread Andy Friesen
New submission from Andy Friesen a...@imvu.com: 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

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

2010-04-12 Thread Shashwat Anand
Shashwat Anand anand.shash...@gmail.com 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

[issue3143] Make the left sidebar in the doc collapsible

2010-04-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

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

2010-04-12 Thread Brett Cannon
Brett Cannon br...@python.org 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

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

2010-04-12 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: 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

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Meador Inge
Meador Inge mead...@gmail.com 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

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

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Should we call it libpython3.py, in order to distinguish it from the 2.x version? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8380

[issue7355] Struct incorrectly compiles format strings

2010-04-12 Thread Meador Inge
Meador Inge mead...@gmail.com 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 pit...@free.fr added the comment: It should be ported to py3k, the sparc buildbots still fail there. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8314 ___

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: closed - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8314 ___ ___ Python-bugs-list

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

2010-04-12 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

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

2010-04-12 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com 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,

[issue8381] New Window Error

2010-04-12 Thread Aaron
New submission from Aaron aaron.the@gmail.com: 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

[issue8364] Update site.setquit docstring

2010-04-12 Thread Brian Curtin
Brian Curtin cur...@acm.org 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 ___

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-04-12 Thread Ned Deily
Ned Deily n...@acm.org 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

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

2010-04-12 Thread Timothy Fitz
Timothy Fitz timothyf...@gmail.com 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

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

2010-04-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: 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()

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

2010-04-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- title: cStringIO and StringIO doesn't behave the same way - cStringIO and StringIO don't behave the same way ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8382

[issue8364] Update site.setquit docstring

2010-04-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

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

2010-04-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-04-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: cStringIO and StringIO don't behave the same way - StringIO.write() takes any argument and converts it to a string ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8382

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

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com 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

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

2010-04-12 Thread Kyle VanderBeek
Kyle VanderBeek ky...@kylev.com 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 rep...@bugs.python.org

[issue8383] pickle is unable to encode unicode surrogates

2010-04-12 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: Python3 uses unicode surrogates to store undecodable filenames. Eg. the filename babc\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;

[issue8383] pickle is unable to encode unicode surrogates

2010-04-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- keywords: +patch Added file: http://bugs.python.org/file16904/pickle_surrogates.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8383

[issue8383] pickle is unable to encode unicode surrogates

2010-04-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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. -- ___

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

2010-04-12 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au 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,

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

2010-04-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com 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 -- ___

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

2010-04-12 Thread Craig McQueen
New submission from Craig McQueen pyt...@craig.mcqueen.id.au: 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__

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

2010-04-12 Thread Craig McQueen
Craig McQueen pyt...@craig.mcqueen.id.au added the comment: Sure can--done. Issue #8384. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2698 ___

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

2010-04-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file16855/functools-typos-pep8.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5341 ___

  1   2   >