[issue8819] variable resolution within exec() incorrect

2010-05-26 Thread Colin Hawkett
Colin Hawkett hawk...@gmail.com added the comment: Agreed, this is the same issue. I'll make my argument that this is a bug (intentional or otherwise) on that issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8819

[issue7150] datetime operations spanning MINYEAR give bad results

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'll take a look at this patch later today. -- assignee: belopolsky - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7150

[issue4810] timeit needs official '--' flag

2010-05-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This -- trick is implemented by the getopt module. OTOH on my system, 'grep' also recognizes this, and I could not find any documentation about it, neither with grep --help nor man grep. -- nosy: +amaury.forgeotdarc

[issue991196] An inconsistency with nested scopes

2010-05-26 Thread Colin Hawkett
Colin Hawkett hawk...@gmail.com added the comment: #8819 was closed as duplicate. That issue linked a description of the problem on stack overflow http://stackoverflow.com/questions/2904274/globals-and-locals-in-python-exec. I would like to argue that this is a bug, and should be fixed in

[issue8817] Expose round-to-nearest division algorithm in Objects/longobject.c

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Ah, good point. I knew there was a reason I didn't like Py_XDECREF. I'll fix this and then apply this patch tonight. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8817

[issue8819] variable resolution within exec() incorrect

2010-05-26 Thread Colin Hawkett
Colin Hawkett hawk...@gmail.com added the comment: Apologies for raising it in the tracker against your advice. My thinking was that you were suggesting discussions about 3.x content shouldn't be in the tracker, and I wanted to argue that it is a bug and should be fixed in 2.6+ --

[issue8819] variable resolution within exec() incorrect

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. To get this changed in 2.x you'd have to convince people that it really is a bug. You probably also need to do that very soon for there to be any hope of 2.7 having changed behaviour. I'd suggest bringing this up on the python-dev

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-05-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If the underlying library is LGPL, it would require us to distribute its sources along with the Windows binaries, which I'm not willing to do. Martin, this is wrong, you don't have to bundle the source *in* the object code package. Making it

[issue991196] An inconsistency with nested scopes

2010-05-26 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue991196 ___ ___

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The second is whether we should take this opportunity to fix datetime being a C extension module exclusively. I know PyPy has their own pure Python version of datetime that they plan to eventually contribute. We might as well use this as the

[issue1731717] race condition in subprocess module

2010-05-26 Thread Stefan
Stefan s.ant...@telekom.de added the comment: I have exactly the same problem. Is there a thread-safe alternative to execute subprocesses in threads? -- nosy: +santoni ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1731717

[issue6312] httplib fails with HEAD requests to pages with transfer-encoding: chunked

2010-05-26 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: The fix in r80583 is bad. It fails to close() the response (which previously worked as expected), meaning that the connection can't be re-used. (I ran into this because Gentoo has backported the 2.6-maint fixes to their 2.6.5

[issue6312] httplib fails with HEAD requests to pages with transfer-encoding: chunked

2010-05-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I am just reopening this, as per dcj's comment. -- resolution: fixed - accepted status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6312

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-05-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: The problem with a signed Py_UNICODE is implicit sign extension (rather than zero extension) in some conversions, for example from char or unsigned char to

[issue991196] An inconsistency with nested scopes

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm guessing that somewhere in the python source there is some code that goes [...] Unfortunately it's not nearly that simple. As I mentioned in my message on python-dev, the problem is that 'y' gets bound with a 'STORE_NAME' opcode,

[issue8822] datetime naive and aware types should have a well-defined definition that can be cross-referenced

2010-05-26 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: 'naive' and 'aware' are key datetime types - they need a proper definition and anchor for crossrefences. If you take a look at http://docs.python.org/library/datetime.html - the definition of distinction between them is too vague and

[issue2810] _winreg.EnumValue sometimes raises WindowsError (More data is available)

2010-05-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed to trunk in r81517 and release26-maint in r81540. I'll cover the 3.x stuff today and then close it out. -- assignee: stutzbach - brian.curtin resolution: - fixed stage: patch review - committed/rejected

[issue8823] urllib2 does not catch httplib.BadStatusLine

2010-05-26 Thread AdamN
New submission from AdamN a...@varud.com: When running urllib2 and getting a BadStatus from an http server, this error is raised: File /var/www/pinax-env/pline/apps/page/models.py, line 303, in render content = urllib2.urlopen(self.url,timeout=10).read() File

[issue8823] urllib2 does not catch httplib.BadStatusLine

2010-05-26 Thread AdamN
Changes by AdamN a...@varud.com: -- versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8823 ___ ___ Python-bugs-list mailing list

[issue8823] urllib2 does not catch httplib.BadStatusLine

2010-05-26 Thread AdamN
Changes by AdamN a...@varud.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8823 ___ ___ Python-bugs-list mailing

[issue6312] httplib fails with HEAD requests to pages with transfer-encoding: chunked

2010-05-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6312 ___

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

2010-05-26 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: 1. David, as an original reporter who needed this for Trac (http://trac.edgewall.org/ticket/8662) and couple of other projects I strongly for 'Z' ending by default, unless you are going to explain the full difference in documentation.

[issue2810] _winreg.EnumValue sometimes raises WindowsError (More data is available)

2010-05-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: test_dynamic_key fails on py3k, but not because of these changes. RegQueryValueExW doesn't appear to work with NULL for the second parameter (valueName), although it is documented to and the ANSI version on 2.x works fine. The empty string is

[issue7150] datetime operations spanning MINYEAR give bad results

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The patch looks good to me. Please apply! -- assignee: mark.dickinson - belopolsky resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7150

[issue2810] _winreg.EnumValue sometimes raises WindowsError (More data is available)

2010-05-26 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I wrote a short C program to test a few different variations. It looks to me like a bug in the operating system's implementation of HKEY_PERFORMANCE_DATA (which is a virtual registry key). If I pass NULL as the second

[issue7150] datetime operations spanning MINYEAR give bad results

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: As an aside, I dislike the fact that the datetime module uses a C 'int' for date ordinals, and clearly assumes that it'll be at least 32 bits. int could be as small as 16 bits on some systems (small embedded systems?). But that's another

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This looks fine to me. Alexander? -- nosy: +belopolsky, mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7879 ___

[issue6608] asctime causing python to crash

2010-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I have untabified James' patch, ran the tests on the result, but did not otherwise review it. There is a not-so-easy-to-find thread on python-dev discussing this issue under subject Python 2.6.5. Here is a relevant

[issue6608] asctime causing python to crash

2010-05-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Added file: http://bugs.python.org/file17468/issue6608.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6608 ___

[issue8254] write a configure command

2010-05-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Distutils2 already has a config command used to configure some aspects of C compilation. Not sure if I should expand that or write an unrelated configure command. -- ___ Python tracker

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-05-26 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: Per, on 2010-03-17, I asked you via email: I was looking at http://bugs.python.org/issue5689 http://bugs.python.org/issue6715 and Martin's comments about the licensing of the bindings; is there a special reason for the lgpl3 license of

[issue8254] write a configure command

2010-05-26 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: start a new command from scratch. The configure command is not dealing but with generating a configuration file. config is implementing a whole compilation chain. -- ___ Python tracker

[issue8254] write a configure command

2010-05-26 Thread Jeremy Kloth
Changes by Jeremy Kloth jeremy.kl...@gmail.com: -- nosy: +jkloth ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8254 ___ ___ Python-bugs-list

[issue8335] distutils test_build_ext's test_get_outputs fails in bootstrap environment

2010-05-26 Thread jan matejek
jan matejek jmate...@suse.cz added the comment: Tarek, the error output is this: /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython2.6 the chdir is the problem - because in an environment where you don't have an existing Python installation, you

[issue6608] asctime causing python to crash

2010-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: The patch as written causes buffer overflow for year = 10,000: len(time.asctime( (1, 1, 1, 0, 0, 0, 0, 1, -1))) 26 len(time.asctime( (10, 1, 1, 0, 0, 0, 0, 1, -1))) 27 while the buffer is only 26 characters: +

[issue8823] urllib2 does not catch httplib.BadStatusLine

2010-05-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: urllib2 is currently catching the socket.error exceptions and presenting the reason as custom URLError exception. To address this issue, the module should catch the httplib raised exceptions also and present it. -- assignee: -

[issue8817] Expose round-to-nearest division algorithm in Objects/longobject.c

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Committed (with the DECREF(one) fix) in r81541. -- components: +Interpreter Core resolution: - accepted stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8254] write a configure command

2010-05-26 Thread Ralf Schmitt
Changes by Ralf Schmitt sch...@gmail.com: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8254 ___ ___ Python-bugs-list mailing

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7879 ___

[issue8190] Add a PyPI XML-RPC client module

2010-05-26 Thread Alexis Metaireau
Changes by Alexis Metaireau ametair...@gmail.com: -- nosy: +alexis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8190 ___ ___ Python-bugs-list

[issue4908] Implement PEP 376

2010-05-26 Thread Alexis Metaireau
Changes by Alexis Metaireau ametair...@gmail.com: -- nosy: +alexis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4908 ___ ___ Python-bugs-list

[issue8806] ftplib should support SSL contexts

2010-05-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: (I know, the context attribute isn't documented, I'm going to fix this) Now documented at: http://docs.python.org/dev/py3k/library/ssl.html#ssl.SSLSocket.context -- ___ Python tracker

[issue8806] ftplib should support SSL contexts

2010-05-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: If you're fine with the current patch I can go on and commit it (including the context attribute test). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8806

[issue8775] Use locale encoding to decode sys.argv, not the file system encoding

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @loewis: You restored the original (wrong) title Use locale encoding to decode sys.argv, not the file system encoding, instead of the new (good) title Use locale encoding to encode command line arguments (subprocess, os.exec*(),

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Mark, I have zero experience with Windows and don't even have a win32 machine to test the patch. On the other hand the patch is so simple that I think it can be reviewed based on theoretical considerations. This is

[issue8402] glob returns empty list with [ character in the folder name

2010-05-26 Thread Dan Gawarecki
Dan Gawarecki dan_gaware...@datacard.com added the comment: Shouldn't the title be updated to indicate the fnmatch is the true source of the behavior (I'm basing this on http://docs.python.org/library/glob.html indicating the fnmatch is invoked by glob). I'm not using glob, but fnmatch in my

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I wrote a patch for base64.b64encode() to accept str (str is encoded to utf-8): patch attached to #4768. It should fix this issue, but we can add the tests of email_base64_bytes.patch. --

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: sys.platform will be win32 for both 32 and 64-bit Windows. As for Cygwin, os.name is posix there, and sys.platform is cygwin, so it should be unaffected. The patch looks fine to me, and we do typically use sys.platform more often than the

[issue8402] glob returns empty list with [ character in the folder name

2010-05-26 Thread Dan Gawarecki
Dan Gawarecki dan_gaware...@datacard.com added the comment: Following up... I saw Eric Smith's 2nd note (2010-04-15 @1:27) about fnmatch.translate documentation stating that There is no way to quote meta-characters. When I looked at:

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: OK, I'll commit it then. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7879 ___

[issue8402] glob returns empty list with [ character in the folder name

2010-05-26 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: I don't think so. That quote came from the docstring for fnmatch.translate. help(fnmatch.translate) Help on function translate in module fnmatch: translate(pat) Translate a shell PATTERN to a regular expression. There is no way to

[issue7449] A number tests crash if python is compiled --without-threads

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think one more skip is required in test_socketserver. Fixed: 2.7 (r81543), 3.2 (r81545), 3.1 (r81546). Blocked in 2.6 (r81544). -- resolution: - fixed status: open - closed ___

[issue8824] Improve documentation of exec

2010-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: This doc improvement suggestion is inspired by #991196 (and subsequent duplicates) and the current discussion on py-dev in the thread 'variable name resolution in exec is incorrect' (which is not a correct claim). I believe there is

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-05-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Am 26.05.2010 10:51, schrieb Antoine Pitrou: Antoine Pitroupit...@free.fr added the comment: If the underlying library is LGPL, it would require us to distribute its sources along with the Windows binaries, which I'm not willing to do.

[issue8825] int(0,0) throws exception

2010-05-26 Thread C Moss
New submission from C Moss cm.byu@gmail.com: The expression int(0,0) throws an exception, though the expectation would be to return 0 (zero). int(0x0,0) == 0 int(00,0) = 0 -- components: None messages: 106554 nosy: cmoss60 priority: normal severity: normal status: open title:

[issue8824] Improve documentation of exec

2010-05-26 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: To be super-clear, consider adding one more sentence, something like The result for code with def statements or lambda expressions may be different than it would be if the implied context were a function rather than a class. --

[issue8825] int(0,0) throws exception

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. It works for me: Python 2.6.5 (r265:79063, May 18 2010, 17:12:15) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type help, copyright, credits or license for more information. int(0, 0) 0 What version of Python are you using, and on

[issue8826] Invalid expires date in cookiejar

2010-05-26 Thread Tomas Zulberti
New submission from Tomas Zulberti tzulbe...@gmail.com: This happens when creating a SimpleCookie from an string. The value in the cookie is: expires=Fri, 31-Dec-2010 23:59:59 GMT But in the cookiejar, the value if only Fri,. As far as I know, the error is in the regular expresion

[issue8825] int(0,0) throws exception

2010-05-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Works fine on 2.6 and 3.1 on Windows. -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8825 ___

[issue8825] int(0,0) throws exception

2010-05-26 Thread C Moss
C Moss cm.byu@gmail.com added the comment: I'm using MS IronPython 2.6 which is using CPython 2.6.1. Regards, Clark -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8825 ___

[issue8825] int(0,0) throws exception

2010-05-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: FWIW it works fine on 2.6/2.7/3.1/3.2 on Linux too. -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8825

[issue8825] int(0,0) throws exception

2010-05-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: That's an IronPython bug, and I see the same thing as you when I run on IP 2.6. You could submit a bug report to them here: http://ironpython.codeplex.com/workitem/list/basic -- ___ Python tracker

[issue8806] ftplib should support SSL contexts

2010-05-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Committed in r81548. -- components: +Library (Lib) resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8806

[issue8825] int(0,0) throws exception

2010-05-26 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: We ought to add a test case for this so that other implementations can detect an error. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org

[issue2810] _winreg.EnumValue sometimes raises WindowsError (More data is available)

2010-05-26 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Committed to py3k in r81547 and release31-maint in r81546. Thanks for the patch! -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2010-05-26 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: PyPy has said over the years they plan to commit their version of datetime, they just need to get around to it. I just figured that we could use this opportunity to prepare for it. But if people want to do the C version first, that's fine as

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-05-26 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: if you're already looking at issue6715, then I don't get why you're asking.. ;) quoting from msg106433: For my code, feel free to use your own/any other license you'd like or even public domain (if the license of bz2module.c that

[issue6715] xz compressor support

2010-05-26 Thread Per Øyvind Karlsen
Per Øyvind Karlsen peroyv...@mandriva.org added the comment: Yeah, I guess I anyways can just break the current API right away to make it compatible with future changes, I've already figured since long ago how it should look like. It's not like I have to implement the actual functionality to

[issue8825] int(0,0) throws exception

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Added some test cases in r81551 (trunk) and r81552 (release26-maint). I'll merge these to py3k. But I notice that the rules for py3k are a little odd: int('', 0) 0 int('0001', 0) Traceback (most recent call last): File stdin, line

[issue8825] int(0,0) throws exception

2010-05-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8825 ___ ___

[issue8825] int(0,0) throws exception

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Tests merged to 3.x in r81553, r81554. Closing. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8825

[issue8825] int(0,0) throws exception

2010-05-26 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +dino.viehland ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8825 ___ ___ Python-bugs-list

[issue8827] poplib.POP3_SSL doesn't have an actual test suite

2010-05-26 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' g.rod...@gmail.com: As done for ftplib.FTP_TLS the tests executed in TestPOP3Class should be replicated to use poplib.POP3_SSL instead of poplib.POP3. asyncore-based SSL test server used in test_ftplib.py can be used as an example on how to do this.

[issue8827] poplib.POP3_SSL doesn't have an actual test suite

2010-05-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I'm sorry, it seems I'm wrong. Ignore this. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8827

[issue6715] xz compressor support

2010-05-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: [Replying to msg106566] if you're already looking at issue6715, then I don't get why you're asking.. ;) Can you please submit a contributor form? Martin: For LGPL (or even GPL for that matter, disregarding linking restrictions)

[issue5689] please support lzma compression as an extension and in the tarfile module

2010-05-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: tsktsk, discussions about python module for xz compression should anyways be kept at issue6715 as this one is about the tarfile module ;p Ok, following up there. -- ___ Python tracker

[issue8807] poplib should support SSL contexts

2010-05-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Patch in attachment. The same approach adopted for ftplib (issue 8806) was used. -- keywords: +patch Added file: http://bugs.python.org/file17469/poplib.patch ___ Python tracker

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Committed in r81555 (trunk) and r81556 (py3k). Is this a 2.6 backport candidate? I don't think so. Leaving this open to consider using newer unittest.skipIf mechanism. See attached patch, issue7879.diff. --

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The skipIf patch looks good to me (though I haven't tested it). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7879 ___

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: From IRC: Taggnostr: imho tests and doc updates can be backported -- keywords: +26backport ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7879

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- versions: +Python 2.6, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7879 ___

[issue6715] xz compressor support

2010-05-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Of course I can distribute a copy of an lzma DLL. However, I would have to provide (convey) a copy of the source code of that DLL as well. Can you tell me where you are currently providing the source code for the readline library, or the gdbm

[issue7879] Too narrow platform check in test_datetime

2010-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: SkipIf patch committed in r81559 (trunk) and r81560 (py3k). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7879 ___

[issue6715] xz compressor support

2010-05-26 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you tell me where you are currently providing the source code for the readline library, or the gdbm library? We don't, as they aren't included in the Windows distribution. The readline library doesn't work on Windows, anyway, and

[issue6715] xz compressor support

2010-05-26 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list

[issue6715] xz compressor support

2010-05-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oh, and by the way, you should probably shut down PyPI, since there are certainly Python wrappers for LGPL'ed libraries there (or even GPL'ed one), and you aren't offering a link to download those libraries' source code either. This is

[issue8651] s# and friends can silently truncate buffer length

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: getarg.patch fixes STORE_SIZE macro used in convertsimple(). If the input size is bigger than INT_MAX, it raises an OverflowError(size does not fit in an int) and calls converterr() which expected=. The value of expected is

[issue8651] s# and friends can silently truncate buffer length

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Another test (only requires ~2 GB of memory, not 4 GB or more) for the patch: import _elementtree def test(): parser=_elementtree.XMLParser() text='s' * (2**31 + 10) try: parser.feed(text) except

[issue8650] zlibmodule.c isn't 64-bit clean

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also a related issue: #8651. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8650 ___

[issue8811] fixing sqlite3 docs for py3k

2010-05-26 Thread Shashwat Anand
Changes by Shashwat Anand anand.shash...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8811 ___ ___

[issue8604] Adding an atomic FS write API

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This sounds silly to me. You can write a file in two lines: with open(foo, wb) as f: f.write(contents) If the disk is full, write fails and the new file only contains a part of 'contents'. If the file does already exist and

[issue8604] Adding an atomic FS write API

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: An article about ext3 and fsync: Solving the ext3 latency problem http://lwn.net/Articles/328363/ Another good article, written by the maintainer of ext4 (Theodore Ts'o): Don’t fear the fsync!

[issue8828] Atomic function to rename a file

2010-05-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: os.rename() is atomic on Linux, but on Windows it raises an error if the destination does already exist. Not atomic pseudo-code for Windows: if exists(b): unlink(b) rename(a, b) Windows offers different functions

[issue8604] Adding an atomic FS write API

2010-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: We need an atomic rename function to implement atomic_write(): I opened a new issue, #8828. -- dependencies: +Atomic function to rename a file ___ Python tracker rep...@bugs.python.org

[issue8824] Improve documentation of exec

2010-05-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8824 ___ ___ Python-bugs-list mailing

[issue8829] IDLE editior not opening

2010-05-26 Thread Celia Horne
New submission from Celia Horne oneidiotinat...@gmail.com: Hey there! I'm very new to Python, but I've been getting along fairly well. However, last night I tried to open the IDLE editor (on its own and with a .py file)but nothing would open. It just sat there acting like it was going to

[issue8830] Add nondestructive selection to sets

2010-05-26 Thread ipatrol
New submission from ipatrol ipatrol6...@yahoo.com: I see in a lot of references for computer programming a function that returns an arbitrary value from a standard or frozen set. http://en.wikipedia.org/wiki/Set_%28computer_science%29 describes it as pick. It surprised me when I discovered

[issue8830] Add nondestructive selection to sets

2010-05-26 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This is a dupe of issue 7212. -- nosy: +eric.smith resolution: - duplicate status: open - closed superseder: - Retrieve an arbitrary element from a set without removing it ___ Python tracker

[issue7212] Retrieve an arbitrary element from a set without removing it

2010-05-26 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: I still see a use in this. I like to use sets for lists of servers or mirrors. There is no compelling reason *not* to add a get() or pick() method, as described in http://en.wikipedia.org/wiki/Set_%28computer_science%29. Sets could be used for

[issue7212] Retrieve an arbitrary element from a set without removing it

2010-05-26 Thread ipatrol
ipatrol ipatrol6...@yahoo.com added the comment: I support http://bugs.python.org/msg94599 with a check to see if the length is 0, and rename it pick (based on the generic programming and mathematical literature). -- ___ Python tracker

  1   2   >