[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

[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

[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

[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

[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 STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18577/ifdef_mbcs.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[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

[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

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

[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

[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

[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

[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

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

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

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

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

[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

[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

[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

[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

[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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

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

[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

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

[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

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

[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

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

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

[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

<    1   2