[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-24 Thread Ross Lagerwall
Ross Lagerwall added the comment: > What do you mean? signal.SIGPOLL exists in Python 3.3. Right, si_band added. > - test_sigwaitinfo(), test_sigtimedwait_poll(), > test_sigwaitinfo_interrupted() are called from a child process. In > test_wait(), I chose to write manually to stdout and call

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread Vlad Riscutia
Vlad Riscutia added the comment: Attaching patch as previous attachment is only unittest. I included change to SWAP_8 macro also as it looks like same issue and it will probably popup later. -- Added file: http://bugs.python.org/file22451/issue6068_patch.diff _

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread R. David Murray
R. David Murray added the comment: Adding our windows committers to nosy to see if this can be committed. -- nosy: +brian.curtin, r.david.murray, tim.golden stage: needs patch -> patch review ___ Python tracker ___

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-24 Thread R. David Murray
R. David Murray added the comment: My understanding is that the language reference is a purposefully minimalist document that specifies the language (insofar as anything other than the CPython implementation does so). So while better explanations of the implications of the language design ar

[issue6069] casting error from ctypes array to structure

2011-06-24 Thread Vlad Riscutia
Vlad Riscutia added the comment: I took a look at this and I believe behavior is correct on Windows, the issue is with the test. For example this test is failing: class closest_fit(ctypes.BigEndianStructure): _pack_ = 1# aligned to 8 bits, not ctypes default of 32 _fields_

[issue12402] Overriding code.InteractiveConsole.write does not work

2011-06-24 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue12399] simplify cell var initialization by storing constant data on the code object

2011-06-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the review. -- Added file: http://bugs.python.org/file22450/bettercells2.patch ___ Python tracker ___ ___

[issue11104] distutils sdist ignores MANIFEST

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: Thanks for your work, the code can now be fixed; I’ll have time to commit in a few days. Can you check if the documentation still accurately describes the behavior? (search for MANIFEST in Doc/distutils/*) -- stage: -> commit review versions: +Python

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: I think they are ready, I gave a +1 (with a typo: path instead of patch :) two messages ago. -- versions: -Python 3.1 ___ Python tracker ___ ___

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread Santoso Wijaya
Santoso Wijaya added the comment: FWIW, I tested the patch on a 64-bit Python build and test_ctypes passes with the new unittest added. -- ___ Python tracker ___ ___

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue12403] Allow overriding of writing to stdout in code.InteractiveConsole

2011-06-24 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-24 Thread Nick Coghlan
Nick Coghlan added the comment: The other directly relevant part is in section 5: 5.1.3 Evaluating Default Arguments In static languages such as C, function definitions are instructions to the compiler rather than executable statements. This leads to such languages making distinctions between

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-24 Thread Nick Coghlan
Nick Coghlan added the comment: Most of my thoughts on this topic can be found at http://svn.python.org/view/sandbox/trunk/userref/ODF/ (that was written ~2.5, so some parts of it are a little dated, but the Essential Concepts section is still fairly accurate). The most relevant part to the

[issue12397] re match object methods have no docstrings

2011-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, and ditto for 3.1. -- nosy: +terry.reedy versions: -Python 3.1 ___ Python tracker ___ ___ Pyt

[issue12376] unittest.TextTestResult.__init__ breaks under complex __mro__

2011-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Running your code with 2.7.2 gives: Traceback (most recent call last): File "C:\Programs\Python27\misc\tem.py", line 41, in unittest.main(testRunner=runner) File "C:\Programs\Python27\lib\unittest\main.py", line 95, in __init__ self.runTests() Fil

[issue12399] simplify cell var initialization by storing constant data on the code object

2011-06-24 Thread Nick Coghlan
Nick Coghlan added the comment: Reviewed. General concept looks sound, just suggested a few tweaks around the edges. And issue title updated appropriately :) -- title: make cell var initialization more efficient -> simplify cell var initialization by storing constant data on the code

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume we are discussing Chapter 4. Execution model. I do not see any mention there of the difference between function definition and body execution time. The section of def statements (7.6) has this: "The function definition does not execute the function

[issue12403] Allow overriding of writing to stdout in code.InteractiveConsole

2011-06-24 Thread Miki Tebeka
New submission from Miki Tebeka : Currently, code.InteractiveConsole lets your override "write" which is the error stream. Allow overriding of "normal" (stdout) writing as well. This will enable to spawn interpreters into custom stdin/stdout. See twisted.manhole for example, very useful. -

[issue12402] Overriding code.InteractiveConsole.write does not work

2011-06-24 Thread Miki Tebeka
Miki Tebeka added the comment: I'm trying to read/write data from a socket. Does this mean I need to roll up my own Interpreter? (e.g. no way to override writing to stdout?) Since this is the expected behaviour, will close this one. -- status: closed -> open _

[issue11104] distutils sdist ignores MANIFEST

2011-06-24 Thread Stephen Thorne
Stephen Thorne added the comment: Updated the patch to address the 'why not use .strip()' question. I used .rstrip('\r\n') on the basis that filenames may have leading or trailing spaces, and if you need that, you need to be able to specify that in a MANIFEST, but it is perfectly logical to d

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-24 Thread Ned Deily
Ned Deily added the comment: Are the patches good to go? And would you like me to apply them? -- ___ Python tracker ___ ___ Python-b

[issue12402] Overriding code.InteractiveConsole.write does not work

2011-06-24 Thread R. David Murray
R. David Murray added the comment: That's correct. The write method is for writing to stderr, and by implication is called only for errors. Not, I think, the most obvious name that could have been chosen for the method, but it does seem to be doing what it is documented to do in your exampl

[issue12401] unset PYTHON* environment variables when running tests

2011-06-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12255] A few changes to .*ignore

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: Your experiments with .hgignore and your thoughts about server vs. clone .hgignore give me the impression of a misunderstanding of how it works. To clarify: The repo .hgignore file is a repo-specific listing of patterns to ignore. As such, it needs to be shared

[issue12402] Overriding code.InteractiveConsole.write does not work

2011-06-24 Thread Miki Tebeka
New submission from Miki Tebeka : Consider the following code: import code class Console(code.InteractiveConsole): def write(self, data): print("DATA: {0}".format(data)) c = Console() c.interact() Then enter "1" at the prompt. The output will be 1 (and not D

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread higstar
higstar added the comment: Issue was originally found on do sp2 on Python 2.6. Thanks Vlad, this rendered ctypes useless for my purposes, had to mask and shift myself. On Jun 25, 2011 8:32 AM, "Vlad Riscutia" wrote: > > Vlad Riscutia added the comment: > > Attached is addition to unittests whi

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread Vlad Riscutia
Vlad Riscutia added the comment: Attached is addition to unittests which repro the issue. They will currently pass on Linux but fail on Windows. -- keywords: +patch Added file: http://bugs.python.org/file22447/issue6068_unittest.diff ___ Python trac

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-06-24 Thread R. David Murray
R. David Murray added the comment: Hmm. How about python-committers? I would suggest python-dev, but that feels like invoking the dragon :) -- ___ Python tracker ___ _

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-24 Thread Per Cederqvist
Changes by Per Cederqvist : -- nosy: +ceder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12381] refactor slice checks made by methods that take "slice like" arguments

2011-06-24 Thread R. David Murray
R. David Murray added the comment: Note that both of these have been fixed in default, so I'm repurposing this issue for the refactoring I suggested. However, since I can't find an existing issue for the bytearray fix, maybe somebody already did it and I didn't notice. -- title: byte

[issue12401] unset PYTHON* environment variables when running tests

2011-06-24 Thread Henry Precheur
New submission from Henry Precheur : "make test" calls Python with the -E option which ignore the PYTHON* environment variables, but Python sub-processes aren't necessarily called with the -E options. For example test_displayhook_unencodable in test_cmd_line. This created problems with my own P

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-06-24 Thread Chris Withers
Chris Withers added the comment: Who with and where does the argument need to be had? -- ___ Python tracker ___ ___ Python-bugs-list m

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread Vlad Riscutia
Vlad Riscutia added the comment: Terry, I am kind of new to this so I might not have marked header correctly. Please feel free to fix it. This is 100% bug not feature request. Initial message was confusing because highstar thought Python has such bitfields as readonly and was asking for a fe

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-06-24 Thread STINNER Victor
STINNER Victor added the comment: > How do the two patches relate? Oh, I forgot to remove my first patch which was wrong. -- ___ Python tracker ___ _

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread R. David Murray
R. David Murray added the comment: Many applications and libraries say "Python X.Y or newer", and it is one of the strengths of Python that this will often be true. That's what our backward compatibility policy is about, and that's why the fact that it isn't true for 2.x->3.x is such a big d

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Vlad, thanks for delving into this. Your two header changes are contradictory. If this is a feature request, then it is 3.3 only. If this is a behavior (bug) issue, then 3.2 should be included ;-). 'higstar's second comment indicates 'feature', but I am not s

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-06-24 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18577/ifdef_mbcs.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11457] Expose nanosecond precision from system calls

2011-06-24 Thread STINNER Victor
STINNER Victor added the comment: > there is no easy way to convert it into "seconds since the epoch" Ah yes, it remembers me that Alexander rejected my .totimestamp() patch (#2736) because he considers that "Converting datetime values to float is easy": (dt - datetime(1970, 1, 1)) / timedelt

[issue9642] #ifdef and mbcs: don't check for defined(HAVE_USABLE_WCHAR_T)

2011-06-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: How do the two patches relate? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue12354] packaging.pypi.simple docs use both client and crawler variable, which might be confusing

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: Doc update in 8de5fe3b1696 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11457] Expose nanosecond precision from system calls

2011-06-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I didn't know that datetime is "extremely bad at representing time > stamps", could you explain please? - there is no easy way to convert it into "seconds since the epoch" - any broken-down time has issues of time stamp ordering in the duplicate hour of sw

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: [Vinay] > I don't see how it makes sense to aim for version independence, > especially since 2.x and 3.x can each raise SyntaxErrors when > presented with the other's code. Version independence always means version independence in the same major line of developmen

[issue6068] ctypes is not correctly handling bitfields backed by 64 bit integers on Windows

2011-06-24 Thread Vlad Riscutia
Vlad Riscutia added the comment: Changing title and type to better reflect issue. On Windows MSVC build, ctypes is not correctly setting bitfields backed by 64 bit integers if specifying custom width. Simple repro: from ctypes import * class X(Structure): _fields_ = [("a", c_ulonglong, 1

[issue12400] regrtest: always run tests in verbose mode, but hide the output on success

2011-06-24 Thread STINNER Victor
New submission from STINNER Victor : Sporadic issues are difficult to analyze on the buildbots because sometimes a test fails, but when it runs again in verbose mode... it doesn't fail anymore. Typical example: === [ 99/356/1] test_smtplib Re-running test test_smtpl

[issue11457] Expose nanosecond precision from system calls

2011-06-24 Thread STINNER Victor
STINNER Victor added the comment: > datetime.datetime is extremely bad at representing time stamps. > Don't use broken-down time if you can avoid it. I didn't know that datetime is "extremely bad at representing time stamps", could you explain please? -- _

[issue11457] Expose nanosecond precision from system calls

2011-06-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Hey, why nobody proposed datetime.datetime objects? datetime.datetime is extremely bad at representing time stamps. Don't use broken-down time if you can avoid it. > By the way, Windows does also use timestamps with a nanosecond > resolution, it's not speci

[issue11457] Expose nanosecond precision from system calls

2011-06-24 Thread STINNER Victor
STINNER Victor added the comment: > I suggest that rather than using composite time stamps, > decimal.Decimal is used to represent high-precision time in Python. Hey, why nobody proposed datetime.datetime objects? Can't we improve the datetime precision to support nanoseconds? I would prefer t

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Did things like "u'a'+'\xf0'" work in 2.6- (with implicit latin-1 decoding)? (I do not have 2.6 loaded.) The doc for seq+seq (concatenation) in the language reference section 5.6. Binary arithmetic operations says that both sequences must be the same type. In

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-24 Thread STINNER Victor
STINNER Victor added the comment: >> It is possible to pass a negative timeout > It now raises an exception like select. Great. >> According to the manual page, sigwaitinfo() or sigtimedwait() >> can be interrupted (EINTR) > Actually, PyErr_SetFromErrno() does this implicitly. I added a test

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed type: crash -> behavior versions: -Python 3.1, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ __

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: A crash is a segfault or equivalent. Python 2.6 only gets security fixes. PyAMF does not run on Python 3. Hence a problem with PyAMF is no evidence of a problem with 3.x. Separate tests/examples would be needed. Changes are not bugs unless they introduce a dis

[issue12374] Execution model should explain compile vs definition vs execution time

2011-06-24 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-24 Thread STINNER Victor
STINNER Victor added the comment: > I've attached a patch spawning a new interpreter to test that. Thanks, I commited your test at the same time of the fix. -- ___ Python tracker _

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 024827a9db64 by Victor Stinner in branch 'default': Issue #12392: fix thread initialization on FreeBSD 6 http://hg.python.org/cpython/rev/024827a9db64 -- nosy: +python-dev ___ Python tracker

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Soren, this is an issue that claimed a bug, not a bug. The resolution is that the claim appears false because the problem arose from using unicode rather than bytes url. The error message may be confusing, but the error class cannot be changed. Senthil says t

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread R. David Murray
R. David Murray added the comment: If this worked in 2.6 and fails in 2.7, it would probably be helpful if we can determine what change broke it. I believe hg has some sort of 'bisect' support that might make this not too onerous to do. Senthil (or someone) will eventually either figure out

[issue12392] pthread_kill() doesn't work on the main thread on FreeBSD6

2011-06-24 Thread Charles-François Natali
Charles-François Natali added the comment: > Attached patch implements the suggested fix. The patch looks good to me. > It would be possible to fix the test to fail instead of blocking I think this issue deserves a specific test, since: - test_pending tests something completely different - a

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: The attached highly braindead benchmark reports about a 2% improvement. -- Added file: http://bugs.python.org/file22444/x.py ___ Python tracker

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Then change the issue title :-p. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10206] python program starting with unmatched quote spews spaces to stdout

2011-06-24 Thread R. David Murray
R. David Murray added the comment: Thanks, Petri and Francisco. Eric, I'm closing this since we now have a minimal test. If you still want to go back and add more tests based on a deeper understanding of what was broken, feel free to reopen the issue. -- resolution: -> fixed stage:

[issue10206] python program starting with unmatched quote spews spaces to stdout

2011-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a4764376c51 by R David Murray in branch '3.2': #10206: add test for previously fixed bug. http://hg.python.org/cpython/rev/2a4764376c51 New changeset 5ec95f46bac5 by R David Murray in branch 'default': Merge #10206: add test for previously fixed b

[issue12393] Packaging should provide support for extensible categories

2011-06-24 Thread Vinay Sajip
Vinay Sajip added the comment: Basic support for categories now added to install_data: https://bitbucket.org/vinay.sajip/pythonv/changeset/a4822be62d90 I couldn't see a packaging.util function for matching lines of type "key = value", but if there's one I missed, I can change the implementati

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/6/24 Jesús Cea Avión : > > Jesús Cea Avión added the comment: > > Could you possibly post a before/after timing comparison?. Some realistic > code... Post the test code too. > > And yes, I know that the difference will depend of code, and hardware > a

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Could you possibly post a before/after timing comparison?. Some realistic code... Post the test code too. And yes, I know that the difference will depend of code, and hardware architecture. But some references are better that not reference at all. -

[issue12372] semaphore errors on AIX 7.1

2011-06-24 Thread Charles-François Natali
Charles-François Natali added the comment: > Nobody is able to get more information, or maybe nobody wants to dig this > issue. It would be better to get the real cause of the issue, Well, it looks like a libc or kernel bug, and we probably can't do much about it. Just falling back to mutex +

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue10206] python program starting with unmatched quote spews spaces to stdout

2011-06-24 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: On 06/24/2011 06:07 PM, R. David Murray wrote: > self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError') I understand that's the standard way to check if a given failure happened in the command line or there is also a helper for that case (may

[issue10206] python program starting with unmatched quote spews spaces to stdout

2011-06-24 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: Just attaching the review patch -- Added file: http://bugs.python.org/file22443/issue10206v2.patch ___ Python tracker ___

[issue12397] re match object methods have no docstrings

2011-06-24 Thread SilentGhost
SilentGhost added the comment: 2.6 is in security-only mode, if I'm not mistaken. -- nosy: +SilentGhost versions: -Python 2.6 ___ Python tracker ___ ___

[issue5572] distutils ignores the LIBS configure env var

2011-06-24 Thread Collin Winter
Collin Winter added the comment: I have no interest in forward-porting the patch, closing accordingly. At least there will be a record of this patch for anyone interested in getting a free 10% performance boost for their Python 2.x or 3.[012] systems. -- assignee: tarek -> eric.araujo

[issue10206] python program starting with unmatched quote spews spaces to stdout

2011-06-24 Thread R. David Murray
R. David Murray added the comment: I think that self.assertRegex(err.decode('ascii', 'ignore'), 'SyntaxError') would be fine. We are extremely unlikely to change the string representation of the name of SyntaxError or omit it from the error message, so I think this is a reliable test. If yo

[issue12399] make cell var initialization more efficient

2011-06-24 Thread Benjamin Peterson
New submission from Benjamin Peterson : Initializing cell variables currently involves 2 nested loops every function call. This patch makes that process much more efficient by saving information which doesn't change every function call to the code object. -- components: Interpreter Cor

[issue10206] python program starting with unmatched quote spews spaces to stdout

2011-06-24 Thread Francisco Martín Brugué
Francisco Martín Brugué added the comment: I've attached an alternative test case. I'm not sure if there is a more robust way to test: self.assert_('SyntaxError' in err.decode('ascii', 'ignore')) Due the use of 'SyntaxtError' directly as string. I would prefer something like str(SyntaxtError)

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread sorin
sorin added the comment: Added as bug http://bugs.python.org/issue12398 -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue12398] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread sorin
New submission from sorin : It looks that Python 2.7 changes did induce some important bugs into httplib due to to implicit str-unicode encoding/decoding. One clear example is that PyAMF library doesn't work with Python 2.7 because it is not able to generate binary data POST responses. Please

[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-06-24 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sorin, can you please open another report with more details and how some condition in httplib breaks PyAMF. We will see through that it is fixed. Commenting on an invalid closed issue is confusing. -- ___ Python t

[issue6474] Inconsistent TypeError message on function calls with wrong number of arguments

2011-06-24 Thread Benjamin Peterson
Benjamin Peterson added the comment: Maybe #12356 then? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue12356] more argument error improving

2011-06-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52744a5a9260 by Benjamin Peterson in branch 'default': give the names of missing positional or keyword-only arguments (closes #12356) http://hg.python.org/cpython/rev/52744a5a9260 -- nosy: +python-dev resolution: -> fixed stage: patch revi

[issue12393] Packaging should provide support for extensible categories

2011-06-24 Thread Vinay Sajip
Vinay Sajip added the comment: > Yes. Let’s implement this in setup.cfg and document how to write a hook to >call Windows APIs to get app-specific paths. See also #7175. When you say "let's", do you mean me, or you? :-) Just so we don't *both* do it ... Re. #7175, the discussion is somew

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-24 Thread Vinay Sajip
Changes by Vinay Sajip : Added file: http://bugs.python.org/file22440/ab1c38ffb8d4.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue11909] Doctest sees directives in strings when it should only see them in comments

2011-06-24 Thread R. David Murray
R. David Murray added the comment: I agree that having a unicode API for tokenize seems to make sense, and that would indeed require a separate issue. That's a good point about doctest not otherwise supporting coding cookies. Those only really apply to source files. So no doctest fragments

[issue12353] argparse cannot handle empty arguments

2011-06-24 Thread R. David Murray
R. David Murray added the comment: Actually, your original test might be fine. Let me double check the test implementation. -- ___ Python tracker ___ _

[issue12353] argparse cannot handle empty arguments

2011-06-24 Thread R. David Murray
R. David Murray added the comment: Ah, I see now. I misread the original traceback. Creating a new test case would be the appropriate way to go, given the structure of the argparse test suite. -- ___ Python tracker

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-24 Thread Vinay Sajip
Vinay Sajip added the comment: > Fred L. Drake, Jr. added the comment: > > People working on this should probably also look at how zc.buildout's >zc.recipe.egg handles script generation. It's similar to setuptools in that >"console_script" entry points are used, but it binds in the des

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-24 Thread Vinay Sajip
Vinay Sajip added the comment: > Short review of the superseded bugs. > > #870479 — Scripts need platform-dependent handling > A request to remove .py on POSIX and create a .cmd file on Windows. The > .cmd >part was quickly shot down (see bug thread for problems), and the discussion >mov

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-24 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: People working on this should probably also look at how zc.buildout's zc.recipe.egg handles script generation. It's similar to setuptools in that "console_script" entry points are used, but it binds in the desired Python executable as well. (If you ran

[issue12303] expose sigwaitinfo() and sigtimedwait() in the signal module

2011-06-24 Thread Ross Lagerwall
Ross Lagerwall added the comment: Thanks for the review. > Why do you wait until the end of PyInit_signal() to set initialized to 1? Fixed. > If this variable is only present ... but I see that the init function of the > posixmodule.c has also a static initialized variable. I simply followed

[issue10403] Use "member" consistently

2011-06-24 Thread Adam Woodbeck
Changes by Adam Woodbeck : Added file: http://bugs.python.org/file22438/issue10403_v3.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11104] distutils sdist ignores MANIFEST

2011-06-24 Thread Stephen Thorne
Stephen Thorne added the comment: This patch is an updated patch that fixes the things noted in the review from eric.araujo. -- Added file: http://bugs.python.org/file22437/manifest-respect-3 ___ Python tracker _

[issue7175] Define a standard location and API for configuration files

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: See also #12393. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12393] Packaging should provide support for extensible categories

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: > I assume you are thinking of something like: Yep. > In my specific use case, declarative paths will not work in all > scenarios - you have to use ctypes to call a Windows API > (SHGetKnownFolderPath) to find the specific place to put things. Ah, too bad. > The

[issue12394] packaging: generate scripts from callable (dotted paths)

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: Short review of the superseded bugs. #870479 — Scripts need platform-dependent handling A request to remove .py on POSIX and create a .cmd file on Windows. The .cmd part was quickly shot down (see bug thread for problems), and the discussion moved to the setupt

[issue12397] re match object methods have no docstrings

2011-06-24 Thread Ned Batchelder
New submission from Ned Batchelder : If I have a match object in hand, and ask for help on its methods, there is no information: >>> m = re.match("a", "a") >>> help(m.group) Help on built-in function group: group(...) >>> -- messages: 138937 nosy: nedbat priority: normal severity: no

[issue976869] Stripping script extensions with distutils

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: We’re going to follow setuptools’ lead and generate platform-appropriate script or binary files from callables. -- resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed superseder: -> packaging: generate scripts from

[issue870479] Scripts need platform-dependent handling

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: All right, we’re going to follow setuptools’ lead and generate platform-appropriate script or binary files from callables. See the superseder bug report to follow the work that will be done during this summer’s GSoC. -- resolution: -> duplicate stage:

[issue1004696] translate Windows newlines when installing scripts on POSIX

2011-06-24 Thread Éric Araujo
Éric Araujo added the comment: FTR, We’re going to follow setuptools’ lead and generate platform-appropriate script or binary files from callables. -- superseder: Scripts need platform-dependent handling -> packaging: generate scripts from callable (dotted paths)

[issue10403] Use "member" consistently

2011-06-24 Thread Adam Woodbeck
Adam Woodbeck added the comment: I was always under the impression attributes and methods were mutually exclusive. I've corrected the patch as requested. -- Added file: http://bugs.python.org/file22436/issue10403_v2.patch ___ Python tracker

  1   2   >