[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Georg Brandl
Georg Brandl added the comment: I still find "user-specified encoding" unclear. This can be addressed at a different time though. Your exception message is missing a space between "bytes" and "or"; otherwise this is ok to commit. -- ___ Python tr

[issue11116] mailbox and email errors

2011-02-10 Thread Georg Brandl
Georg Brandl added the comment: Hmm, is "except Exception" the right thing to use here? The "finally" before executed for really all exceptions. Otherwise, this can go in. -- ___ Python tracker

[issue11182] pydoc.Scanner class not used by anything

2011-02-10 Thread Ron Adam
New submission from Ron Adam : There doesn't seem to be any references to it in any other part of pydoc, or the Library for that matter. Searching for it on google code search (and also google web search) only turns up auto generated API references for python editing tools like VIM, and of co

[issue9298] binary email attachment issue with base64 encoding

2011-02-10 Thread Yves Dorfsman
Yves Dorfsman added the comment: Replaces b64encode by encodebytes. -- keywords: +patch Added file: http://bugs.python.org/file20743/issue9298.patch ___ Python tracker ___ __

[issue9298] binary email attachment issue with base64 encoding

2011-02-10 Thread Yves Dorfsman
Yves Dorfsman added the comment: Test if email.encoders.encode_base64 returns a single line string, or a string broken up in 76 chars line, as per RFC. -- Added file: http://bugs.python.org/file20742/issue9298-test.py ___ Python tracker

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: patch with Docs :ref: to proper section. -- Added file: http://bugs.python.org/file20741/issue11082-2.diff ___ Python tracker ___

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Changes by Senthil Kumaran : Removed file: http://bugs.python.org/file20740/Issue11082-2.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is the patch with addressing the comments. 1. It should be TypeError instead of ValueError when str is rejected. We introduced ValueError for this release only, so there is no breakage here. 2. Informed the user that string should be encoded to bytes usin

[issue11181] TLS end connection not detected properly in retrbinary

2011-02-10 Thread Adi Roiban
New submission from Adi Roiban : FTP_TLS.retrybinary should detect the end of a TLS read in the same way as FTP.TLS_retryline does. it should be something like this... catching ssl.ZeroReturnError as a valid expection for signaling EOF. try: data =

[issue7330] PyUnicode_FromFormat segfault

2011-02-10 Thread Ray.Allen
Ray.Allen added the comment: Here's the complete patch, added unittest for width modifier and precision modifier for '%s' formatter of PyUnicode_FromFormat() function. -- Added file: http://bugs.python.org/file20739/issue_7330.diff ___ Python tracke

[issue11180] More efficient nlargest()/nsmallest()

2011-02-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: I think you should implement and benchmark one of them. I'm dubious that the better asymptotic values will really translate into better performance. For example, the O(n) median selection algorithm has a large constant factor associated with it. -

[issue11180] More efficient nlargest()/nsmallest()

2011-02-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue11180] More efficient nlargest()/nsmallest()

2011-02-10 Thread newacct
New submission from newacct : heapq.nlargest()/nsmallest() currently use a size-k heap to get the k largest/smallest items. This takes O(n log k): heapifying the first k elements (O(k)); iterating through (n-k) elements of the list, each insertion/deletion takes O(log k), for O((n-k)log k); an

[issue11116] mailbox and email errors

2011-02-10 Thread R. David Murray
R. David Murray added the comment: Here is the promised patch, with tests. For once writing the patch was harder than writing the tests, but only just :) I'm not sure all the 100% sure the cleanups will work on all systems (I'm looking at you, Windows), but since any problems will occur in a

[issue11176] give more meaningful argument names in argparse documentation

2011-02-10 Thread Westley Martínez
Westley Martínez added the comment: I agree; it's too artsy. I'll see if I can come up with a relevant and clever alternative. -- nosy: +anikom15 ___ Python tracker ___ ___

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Python's "configure.in" script typically requires a specific version of > > autoconf. At the moment, this reads: > version_required(2.61) This is a bit outdated. Right now we only have: AC_PREREQ(2.65) which IIUC means 2.65 or higher. > Do not edit "c

[issue11179] ccbench doesn't work on 3.1/2.7

2011-02-10 Thread Antoine Pitrou
New submission from Antoine Pitrou : The ccbench shipped with 3.2 is supposed to work with older versions but: Traceback (most recent call last): File "/home/antoine/py3k/py3k/Tools/ccbench/ccbench.py", line 609, in main() File "/home/antoine/py3k/py3k/Tools/ccbench/ccbench.py", line 56

[issue11071] What's New review comments

2011-02-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Victor, I don't think that would be useful in the Whatsnew document. That PEP was really about letting other implementations get caught-up. It has nearly zero relevance to users of CPython. -- ___ Python track

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: New patch which makes test_pipes back into an explicit skip if os.name !+ posix and makes test_sqlite optional on all platforms. -- Added file: http://bugs.python.org/file20737/issue10966.diff ___ Python tracker

[issue11071] What's New review comments

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: In the What's new in 3.2: there is no mention of the PEP 3003 (Python Language Moratorium). May we add a section "What is not new in 3.2"? :-) This PEP is something specific to Python 3.2. -- ___ Python tracker

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch works fine on Linux but breaks test_pipes and test_sqlite on Windows: [1/1] test_pipes testBadAppendOptions (test.test_pipes.SimplePipeTests) ... ok testBadOpenMode (test.test_pipes.SimplePipeTests) ... ok testBadPrependOptions (test.test_pipes.Simple

[issue7997] http://www.python.org/dev/faq/ doesn't seem to explain how to regenerate "configure"

2011-02-10 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11071] What's New review comments

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: Another remark. In the "poplib" section, there is a paragraph about asyncore: I don't see how both are related. -- ___ Python tracker ___

[issue10423] s/args/options in arpgarse "Upgrading optparse code"

2011-02-10 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Steven, I'm not exactly getting what you're meaning here: are you actually saying to replace every occurrence of 'option' with 'argument' in the whole argparse module doc, or just make it stronger in the mentioned line that what was called previously 'option'

[issue11076] Iterable argparse Namespace

2011-02-10 Thread Éric Araujo
Éric Araujo added the comment: +1 for this patch. Documentation fixes are backported from the development branch to stable branches, so yes, this will land in 3.1 too. -- assignee: -> docs@python components: +Documentation -Library (Lib) nosy: +docs@python type: feature request -> v

[issue9523] Improve dbm modules

2011-02-10 Thread Éric Araujo
Éric Araujo added the comment: > 1. Make keys(), values(), items() methods return view object for > ndbm, gdbm and dumb objects. I following the codes in dictobject.c. Did you have to copy the code? Isn’t it possible to somehow reuse it? > The keysview object support len(), "in" operator, and

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: Here is the completed patch. It adds required_on and 'optional' args to test.support.import_module() to help delineate if a test should **not** be skipped simply because a module could not be imported. It also changes various tests to use the new args. Finally,

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: This appears to be happening in a child process when the parent process is running: Lib/multiprocessing/util.py, line 255, in _exit_function () Liberally adding printf() and getpid() calls in various places, seems to always happen when parent process is withi

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Changes by Brett Cannon : Removed file: http://bugs.python.org/file20725/issue10966.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue2228] Imaplib speedup patch

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: The part which is replaced by that patch (the readline() method in IMAP4_SSL) doesn't exist anymore in current imaplib code. Instead the file-like object created by socket.makefile() is used; its readline() method is probably quite faster than any pure Python

[issue11169] compileall doesn't support the PEP 383 (undecodable paths/filenames)

2011-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Library (Lib) nosy: +r.david.murray stage: -> patch review type: -> behavior ___ Python tracker ___

[issue11172] Avoid '.' as runpath on AIX

2011-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou, sable ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11177] Set asyncore create_socket default argument

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your "versionchanged" is misleading. It should be something like "family and type can now be omitted". -- components: +Library (Lib) nosy: +pitrou stage: -> patch review type: -> feature request ___ Python tracker

[issue11116] mailbox and email errors

2011-02-10 Thread R. David Murray
R. David Murray added the comment: Upon reflection I don't think my suggested email API change is a good one. Currently it is possible to create a Message using non-ASCII headers and manipulate that message. The fact that you can't serialize that message is, really, a bug: one can and I thin

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: I should mention this would act as a nice testing doc for exactly which platforms CPython considers supported. -- ___ Python tracker ___ ___

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: One other option is to simply have a whitelist of platforms that test.support knows of so it only considers it a failure when the platform being run on is known (regrtest does this already). -- ___ Python tracker

[issue11178] Running tests inside a package by module name fails

2011-02-10 Thread Michael Foord
New submission from Michael Foord : Reported by a user and verified by me with both Python 2.7 and 3.2. Trying to run tests by module or package name seems to fail. directory structure: project root: C:\Users\hpierson\Projects\pytest \test __init__.py (empty)

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread wrobell
wrobell added the comment: Ross, you are completely right. thanks for the tips! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: You don't. ctypes failing under LLVM 2.8 should not be a special case of skipping; ctypes not building on darwin regardless of whether it is gcc or clang is a failure. If someone uses a compiler we don't support, that's their decision. --

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, ctypes failing because it cannot compile is only when a platform > that is not listed as optional cannot import it. So if some platform > does not support ctypes then it gets added to the list, end of story. How do you add "llvm under darwin" (or any si

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: Well, ctypes failing because it cannot compile is only when a platform that is not listed as optional cannot import it. So if some platform does not support ctypes then it gets added to the list, end of story. We only support so many platforms as it is. And wit

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As for test_ttk and such, those that have a third-party dependency are > still optional no matter what. This change is **only** for modules we > expect to always build on certain platfoms (e.g., winreg under Windows > or crypt on UNIX systems). Ah, thanks for

[issue11167] Overflow in unicode_hash

2011-02-10 Thread Stefan Krah
Stefan Krah added the comment: Marc-Andre Lemburg wrote: > > Marc-Andre Lemburg added the comment: > > Could you try the same in Python 2.7 ? It's the same, just in stringobject.c. Many hash functions have this issue. > The overflow is intended (after all, it's a hash function), but we sho

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: r84914 was the implementation of issue 9786 (Native TLS support for pthreads) -- ___ Python tracker ___ _

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +krisvale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10517] test_concurrent_futures crashes with "--with-pydebug" on RHEL5 with "Fatal Python error: Invalid thread state for this thread"

2011-02-10 Thread Dave Malcolm
Dave Malcolm added the comment: I spent some time bisecting the SVN history in the py3k branch, and believe that r84914 is the commit that introduced this issue. Details: Trying on 4-core i386 RHEL 5 box $ svn up -r REV $ make clean ; make (configured --with-pydebug) Reproducer:

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: I should also mention that if the idea of whitelisting failures doesn't fly, it can always be changed to be a blacklist of failures (i.e., ditch 'optional' and only use 'required_on'). But I did it this way to force people to clearly state on what platforms a test

[issue11177] Set asyncore create_socket default argument

2011-02-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11177] Set asyncore create_socket default argument

2011-02-10 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : At the current state asyncore implicitly supports TCP (SOCK_STREAM) sockets only, despite UDP support might be added in the future. For simplicity, create_socket() should assume TCP/IP by default. This would avoid the user to "import socket" and specify th

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Brett Cannon
Brett Cannon added the comment: So os.name is also supported. But the point is that if a platform wants to be considered supported then they need to give us a patch to update the tests to make them acceptable to skip. As for test_ttk and such, those that have a third-party dependency are stil

[issue1704474] optparse tests fail under Jython

2011-02-10 Thread Sandro Tosi
Sandro Tosi added the comment: Hi, since optparse is now deprecated (in favor of argparse) and in a year and half there was not progress on this, I'm closing this report. -- nosy: +sandro.tosi resolution: -> wont fix stage: -> committed/rejected status: open -> closed __

[issue4297] Add error_log attribute to optparse.OptionParser

2011-02-10 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Daniel, did you read Steven suggestions? are you willing to propose a patch about your feature request against argparse (optparse is deprecated and no more under development in stdlib)? -- nosy: +sandro.tosi ___ Py

[issue7284] optparse - display version in usage by default

2011-02-10 Thread Sandro Tosi
Sandro Tosi added the comment: Hi, optparse is now deprecated, and argparse is the replacement, so I'm closing this report. -- nosy: +sandro.tosi resolution: -> wont fix stage: needs patch -> committed/rejected status: open -> closed ___ Python tra

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread Georg Brandl
Georg Brandl added the comment: In fact, most of the functions are documented. (Mark S. apparently referred to the "What's new" document when talking about "documented" functions.) Missing are: PyAST_CompileEx (because PyAST_Compile wasn't documented either) PyStructSequence_* PyType_FromSpe

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Georg Brandl
Georg Brandl added the comment: Victor: I don't see an API change here. A ValueError is raised in both cases, and error messages are not part of the API. (And BTW, you may call me Georg.) Senthil: I'd like the documentation change to be a bit more explicit that a string is always returned.

[issue11171] Python 2.7.1 does not start when "./configure" is used with "--prefix" != "--exec-prefix"

2011-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek components: +Distutils, Distutils2 -Installation nosy: +barry, eric.araujo, tarek stage: -> patch review versions: +Python 3.1, Python 3.2 ___ Python tracker

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm. I'm not sure passing a list of platforms is a good idea. People may want to write e.g. "'bsd' in platform". Also, there are a lot of platforms we don't have access to, so we can't actually maintain a list of platforms. Also, I really don't like the idea

[issue5833] readline update

2011-02-10 Thread J. Evans
J. Evans added the comment: I have no problem splitting the patch into multiple files. When I do so, do I place them here or open separate tickets for each component? Or if you guys want to just close out the ticket since the actual bug was fixed, I am okay with that too. We will probably c

[issue11175] allow argparse FileType to accept encoding and errors arguments

2011-02-10 Thread Steven Bethard
Steven Bethard added the comment: Probably because the suggestion came from someone thinking about both Python 2 and 3. But given that this feature request can only target Python 3.3, you're absolutely right that there's no need to go through the codecs module. -- ___

[issue11076] Iterable argparse Namespace

2011-02-10 Thread Virgil Dupras
Virgil Dupras added the comment: Here's a documentation-only patch which adds a section about using vars() to convert a namespace to a dict. If this becomes a documentation issue, can we target Python 3.2.1 instead of Python 3.3? -- Added file: http://bugs.python.org/file20734/issue1

[issue6721] Locks in python standard library should be sanitized on fork

2011-02-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yeah, I'm trying to figure out what I was thinking then or if I was just plain wrong. :) I was clearly wrong about a release being done in the child being the right thing to do (issue6643 proved that, the state held by a lock is not usable to another proce

[issue10656] "Out of tree" build fails on AIX 5.3

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: I tried with trunk (python 3.2) on AIX: ./build/configure --with-pydebug --without-computed-gotos make and that worked correctly. Not sure with python 2.7. -- ___ Python tracker

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Victor - It does not change the API. Only that the ValueError message which had a confusing message that "for iterable data of type " is made clear that POST should not be a str. Yes, a TypeError instead of ValueError would be more appropriate here. ---

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 10 février 2011 à 17:03 +, STINNER Victor a écrit : > STINNER Victor added the comment: > > Le jeudi 10 février 2011 à 16:41 +, Ross Lagerwall a écrit : > > Ross Lagerwall added the comment: > > > > 32-bit computers can address up to 4GiB of

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 10 février 2011 à 16:41 +, Ross Lagerwall a écrit : > Ross Lagerwall added the comment: > > 32-bit computers can address up to 4GiB of memory ... at least 4 GB. With PAE (Physical Address Extension), we can address up to 2^36 bytes. It looks like

[issue6721] Locks in python standard library should be sanitized on fork

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Are you suggesting to use pthread_atfork to call pthread_mutex_init on > all > mutexes created by Python in the child after a fork? I'll have to > ponder > that some more. Given the mutexes are all useless post fork it > does not > strike me as a bad idea

[issue11175] allow argparse FileType to accept encoding and errors arguments

2011-02-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The encoding and errors arguments are probably useful, but why would you use the codecs module? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue10882] Add os.sendfile()

2011-02-10 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch in attachment removes offset and return just the number of bytes sent as an integer. Tests and documentation are updated accordingly. -- Added file: http://bugs.python.org/file20733/sendfile_v8.patch ___ Py

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: Georg Brandl: can this fix go into Python 3.2? It changes the API. I like any patch rejecting unicode where unicode is irrevelant (where we don't know how to choose the right encoding). About the patch: you should maybe add a test to ensure that str is reject

[issue6721] Locks in python standard library should be sanitized on fork

2011-02-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw http://bugs.python.org/issue6643 recently fixed on issue where a mutex was being closed instead of reinitialized after a fork. more are likely needed. Are you suggesting to use pthread_atfork to call pthread_mutex_init on all mutexes created by Python

[issue5833] readline update

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine: do you think it's worth the effort? As mentioned above, the readline 6 compatibility code was checked in. The ClassType expansion is 2.x-only, so probably can't go in since it's a feature request. What remains is the filename expansion. However, the

[issue4681] mmap offset should be off_t instead of ssize_t, and size calculation needs corrected

2011-02-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: 32-bit computers can address up to 4GiB of memory and 64-bit computers can address much more than this. mmap() allows a file to be mapped to a location in memory - the actual amount of memory that exists doesn't matter. This is the reason why a 5GiB file can

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Here is a patch to resolve this issue. Let me know if it okay to commit.(Or feel free to commit too). -- stage: -> patch review Added file: http://bugs.python.org/file20732/issue11082.diff ___ Python tracker

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > PyThread_acquire_lock_timed It's on purpose that I didn't document this one. I'm not sure the PyThread_ APIs should be used by third-party extensions; so I'd prefer to hear about potential users before starting documenting it (and being tied by compatibilit

[issue8098] PyImport_ImportModuleNoBlock() may solve problems but causes others.

2011-02-10 Thread Raymond Penners
Changes by Raymond Penners : -- nosy: +pennersr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11176] give more meaningful argument names in argparse documentation

2011-02-10 Thread Steven Bethard
New submission from Steven Bethard : Suggestion from a personal email: I personally am not keen on the foo/bar/baz examples. I know that you're trying to be generic but IMO it would be much easier to understand if you used meaningful names. Also, I think that the very first example you give (whi

[issue11175] allow argparse FileType to accept encoding and errors arguments

2011-02-10 Thread Steven Bethard
New submission from Steven Bethard : Suggestion from a personal email: Allow FileType to accept encoding and errors arguments and pass these as keyword arguments to codecs.open() instead of open(). -- components: Library (Lib) messages: 128301 nosy: bethard priority: low severity: norma

[issue11174] add argparse formatting option to display type names for metavar

2011-02-10 Thread Steven Bethard
New submission from Steven Bethard : Suggestion from a personal email: I generally like my command line arguments that take a value to specify the type, e.g., --runs int how many runs to do Naturally I can do this using the metavars argument in every add_argument() call, but that can b

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: > Py_UNICODE_strcat, Py_UNICODE_strncmp, Py_UNICODE_strrchr See issue #10435 (with a patch) for these functions. -- ___ Python tracker ___ ___

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread STINNER Victor
STINNER Victor added the comment: > PyErr_WarnFormat is already documented in Doc/c-api/exceptions.rst > PyImport_ExecCodeModuleWithPathnames is already documented in Doc/c-api/import.rst > PyModule_GetFilenameObject is already documented in Doc/c-api/module.rst > PySys_AddWarnOptionUnicod

[issue10523] argparse has problem parsing option files containing empty rows

2011-02-10 Thread Steven Bethard
Steven Bethard added the comment: Crashing on an empty line is definitely a bug. Each line being a single option is documented behavior: http://docs.python.org/dev/library/argparse.html#fromfile-prefix-chars -- nosy: +bethard ___ Python tracker

[issue7330] PyUnicode_FromFormat segfault

2011-02-10 Thread Ray.Allen
Ray.Allen added the comment: Thanks haypo! Here is the updated patch, it add the tests about width modifiers and precision modifiers of %S, %R, %A. Besides I don't know how to add tests of %s, since when calling through ctypes, I could not get correct result value as python object from PyUni

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue11082] ValueError: Content-Length should be specified

2011-02-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Feb 5, 2011 at 12:33 AM, Georg Brandl wrote: > > Then let us do that. > > Senthil, what about urlencode of bytes values returning a str? > Sorry, the late response. I needed some time to look at this one and I could only do it today. We have been havi

[issue11173] Undocumented public APIs in Python 3.2

2011-02-10 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : Mark Shannon on python-dev: The following API functions were removed from 3.1.3: PyAST_Compile PyCObject_AsVoidPtr PyCObject_FromVoidPtr PyCObject_FromVoidPtrAndDesc PyCObject_GetDesc PyCObject_Import PyCObject_SetVoidPtr PyCode_CheckLineNumber Py_Compil

[issue11172] Avoid '.' as runpath on AIX

2011-02-10 Thread Michael Haubenwallner
New submission from Michael Haubenwallner : Spotted in issue#941346 msg#128214, the "-L$(srcdir)" should be removed from BLDSHARED on AIX: The problem is that '-L$(srcdir)' adds '$(srcdir)' to the runpath too (as there is no '-blibpath' argument), opening a security hole for libpythonX.Y.so as

[issue11171] Python 2.7.1 does not start when "./configure" is used with "--prefix" != "--exec-prefix"

2011-02-10 Thread Berthold Höllmann
New submission from Berthold Höllmann : I do get (with 2.7.1): > python Traceback (most recent call last): File "/usr/local/gltools/python/Python-2.7/lib/python2.7/site.py", line 553, in main() File "/usr/local/gltools/python/Python-2.7/lib/python2.7/site.py", line 535, in main kn

[issue7330] PyUnicode_FromFormat segfault

2011-02-10 Thread Ray.Allen
Changes by Ray.Allen : Removed file: http://bugs.python.org/file19131/issue_7330.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11170] (MacOS X) Crash on non-english language keyboard input in Text widget

2011-02-10 Thread R. David Murray
R. David Murray added the comment: This looks like a duplicate of issue 10973. -- nosy: +r.david.murray resolution: -> duplicate stage: -> committed/rejected status: open -> closed superseder: -> OS X 10.6 IDLE, tkinter: Cocoa Tk 8.5 crash when composite character typed in text

[issue9920] test_cmath on atan fails on AIX

2011-02-10 Thread Mark Dickinson
Mark Dickinson added the comment: Ha, yes. I commented out the first four tests for zeros of atan in the cmath_testcases.txt file, but failed to notice that they're tested again, later on. And the same goes for atanh. I need to look at this, but I don't have write-access to the Python svn r

[issue11170] (MacOS X) Crash on non-english language keyboard input in Text widget

2011-02-10 Thread didzis
New submission from didzis : In simple text edit trying to input non-english characters with keyboard ends with a crash on MacOS X (10.6). For example, to input Latvian language characters, apostrophe should be pressed followed by some letter (a, e, i, u, k, l, ...) Tkinter crashes immediatel

[issue11169] compileall doesn't support the PEP 383 (undecodable paths/filenames)

2011-02-10 Thread STINNER Victor
New submission from STINNER Victor : The compileall uses print("bla", filename, "bla") to write messages to the console. But the print fails if the filename cannot be encoded to the console encoding. It occurs if the filename is an undecodable filename encoded by the PEP 383 using surrogates.

[issue9920] test_cmath on atan fails on AIX

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Mark, sorry for the late reply; I stopped focusing on AIX for some time. I ran test_cmath on trunk this morning and got a different error this time: == FAIL: test_specific_values (test.test_

[issue11158] Python VM deadlock

2011-02-10 Thread Vinay Sajip
Vinay Sajip added the comment: Issue 6721 may well be valid - if this is a symptom of the same issue, then this issue should be closed. I'd like to know if the gist script I referred to works (or not) on Pham Cong Dinh's Snow Leopard machine. -- status: open -> pending __

[issue11168] UnicodeEncodeError on recusion limit if the script filename is undecodable

2011-02-10 Thread STINNER Victor
New submission from STINNER Victor : If the script filename is not decodable from the filesystem encoding, Python fails with a UnicodeEncodeError when we reach the recursion limit. The problem doesn't come from the user script, but from Python internals. It is difficult to understand and the u

[issue2228] Imaplib speedup patch

2011-02-10 Thread Aaron Kaplan
Aaron Kaplan added the comment: Let me clarify. Offlineimap used to ship a modified version of imaplib in its distribution, but eventually the author decided he no longer wanted to maintain his imaplib fork, so he dropped it and went with stock imaplib (at a significant performance penalty).

[issue730467] Not detecting AIX_GENUINE_CPLUSPLUS

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is a patch that combines the corrections in configure.in and dynload_aix.c. All recent versions of AIX would benefit from this correction I think (recent meaning a version of AIX released in the last 10 years or something). Could someone apply it? Thank

[issue6721] Locks in python standard library should be sanitized on fork

2011-02-10 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: I'm not sure that releasing the mutex is enough, it can still lead to a segfault, as is probably the case in this issue : http://bugs.python.org/issue11148 Quoting pthread_atfork man page : To understand the purpose of pthread_atfork, recall that for

[issue941346] AIX shared library fix

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hi Micheal, I don't remember why "-L\$(srcdir)" was added since it has been quite a long time. I tried to recompile everything after removing it and everything compiled just fine, so I guess it can be removed. regards -- _

[issue7511] msvc9compiler.py: ValueError: [u'path']

2011-02-10 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

  1   2   >