[issue7958] test_platform failure on OS X 10.6

2010-02-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'd expect more failures, the failure is caused by the way the sysconfig module calculates the root of the installation, and whether or not it is running in the source tree. Tarek: could you please review sysconfig.patch? -- ___

[issue7958] test_platform failure on OS X 10.6

2010-02-23 Thread Meador Inge
Meador Inge added the comment: I am seeing the same problem with 32-bit on OS X 10.5: euclid:trunk minge$ ./python.exe Lib/test/regrtest.py -uall test_platform test_platform 'import site' failed; use -v for traceback Traceback (most recent call last): File "", line 1, in File "/Users/minge

[issue8007] conhost.exe crashes when pasting 230 characters into python

2010-02-23 Thread Leo Shklovskii
Leo Shklovskii added the comment: Ok, I've traced this down to the pyreadline package. Specifically 1.5 - http://pypi.python.org/pypi/pyreadline/1.5 - I really appreciate your help Brian and I'm sorry to have wasted your time. I'm filing a bug with the pyreadline developer. -- _

[issue7902] relative import broken

2010-02-23 Thread Meador Inge
Meador Inge added the comment: > So doing the import manually through __import__('os', globals(), > locals(), ['walk'], 1) does not work. I get the same behavior for this reproduction case regardless of whether I use: import .os import walk or: __import__('os', globals(), locals(), ['wa

[issue8007] conhost.exe crashes when pasting 230 characters into python

2010-02-23 Thread Leo Shklovskii
Leo Shklovskii added the comment: I've downloaded the source and created a debug build. I can't reproduce the issue on the debug build (although a bunch of binary dependencies failed since I don't have sources for them). The string I'm pasting in is: ['01776', '02210', '02468', '02482', '027

[issue8007] conhost.exe crashes when pasting 230 characters into python

2010-02-23 Thread Brian Curtin
Brian Curtin added the comment: I did both of those things and I'm still not able to reproduce it. Do you have any specific language settings enabled? One thing I meant to ask in my last message was if you had a copy of what you tried to paste into the window. I've pasted a 500 character str

[issue8007] conhost.exe crashes when pasting 230 characters into python

2010-02-23 Thread Leo Shklovskii
Leo Shklovskii added the comment: The only serious tweaking I've done has been to disable cleartype and completely remove Segoe UI. Adobe Photoshop didn't react nicely to that; it is possible that there's something in conhost that's hardcoded to Segoe as well. I'm not seeing this behavior on

[issue7733] asyncore docs reference is unclear

2010-02-23 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Fixed in r78415. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-

[issue8007] conhost.exe crashes when pasting 230 characters into python

2010-02-23 Thread Brian Curtin
Brian Curtin added the comment: I'm not able to reproduce this any of the python.org installers, or the current trunk. I am running 64-bit Windows 7, though, whereas you are running 32-bit. I don't imagine there should be a difference, but I'll try to obtain a 32-bit box and see if I can catc

[issue7975] dbshelve.py throws exception: AttributeError: 'DB' object has no attribute '__iter__'

2010-02-23 Thread R. David Murray
R. David Murray added the comment: Committed to trunk in r78412 and 2.6 in r78413. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue7736] os.listdir hangs since opendir() and closedir() do not release GIL

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Another "+1" on the patch if it is needed. Posix module consistently releases the GIL while making system calls and this is a good idea independent of this particular issue. Looking at the patch made me wonder whether existing Py_BEGIN

[issue6292] Fix tests to work with -OO

2010-02-23 Thread R. David Murray
R. David Murray added the comment: Benjamin pointed out that the primary copy of lib2to3 is not trunk, so I backed out the change to that package. -- ___ Python tracker ___

[issue8008] Allow Arbitrary OpenID providers in this bug tracker

2010-02-23 Thread R. David Murray
R. David Murray added the comment: Well, 'we' and 'they' are pretty much the same team. If you want to enhance the openid support that Martin added to the tracker, you can submit a patch against the code in the repository. -- priority: -> normal

[issue6292] Fix tests to work with -OO

2010-02-23 Thread R. David Murray
R. David Murray added the comment: Committed to py3k in r78400. Had to add the make_request_and_skipIf decorator to test_xmplrc as well. -- priority: -> normal status: open -> closed versions: +Python 3.2 ___ Python tracker

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-23 Thread Brett Cannon
Brett Cannon added the comment: Now that Dino has commit privileges and I just gave him the coordinator role, he can do the commit himself. =) Went ahead and assigned this issue to him. And Dino, it would be helpful if you changed your username on the tracker to match your username on python-

[issue8008] Allow Arbitrary OpenID providers in this bug tracker

2010-02-23 Thread R. David Murray
R. David Murray added the comment: Looking at the interface I assumed that any openid provider was supported. Did you try an alternate one and it didn't work? I'm using an id hosted on my own server (albeit delegating to myopenid). This bug actually belongs in the metatracker, by the way.

[issue8007] conhost.exe crashes when pasting 230 characters into python

2010-02-23 Thread R. David Murray
Changes by R. David Murray : -- priority: -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8007] conhost.exe crashes when pasting 230 characters into python

2010-02-23 Thread Leo Shklovskii
New submission from Leo Shklovskii : I just upgraded to Windows 7, reinstalled all of my environment and am running into a completely crazy issue. The repro is: cmd.exe -> python.exe -> Paste in a string more than 230 chars. conhost.exe crashes and I get an error that ends up in the error log:

[issue8004] add small program to serve docs

2010-02-23 Thread R. David Murray
R. David Murray added the comment: Georg: could we also add a targets in the Docs Makefile and make.bat to fire up the script? -- resolution: -> accepted versions: +Python 3.2 ___ Python tracker _

Re: [issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
I also notice that the Grammar in the PEP is more complicated: nonlocal_stmt ::= "nonlocal" identifier ("," identifier)* ["=" (target_list "=")+ expression_list] | "nonlocal" identifier augop expression_list The Grammar in the patch is: +global_stmt: 'global' NAME (',' NAME)*

[issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
Jeremy Hylton added the comment: On Sat, Dec 6, 2008 at 1:28 PM, Benjamin Peterson wrote: > > Benjamin Peterson added the comment: > > I think I may have been merging add_ast_fields when I wrote the patch. > > Here's a new patch that handles "global x, = (5,)". To do it, I added a > new flag*

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: one of the other sprinters just pointed out that Modules/_multiprocessing.c (py3k branch) uses sendmsg/recvmsg internally to pass file descriptors back and forth. The code is very short and readable. -- ___ Python

[issue8004] add small program to serve docs

2010-02-23 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Sure, I'm happy to fix up the little things. The point is that this works and solves (IMO) a real problem, so I wonder if we can get this in. -- ___ Python tracker __

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-02-23 Thread STINNER Victor
STINNER Victor added the comment: Commited: r78392 (r78394). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: Additional data point: the perl version takes a single scalar (instead of a list of scalars) for use with sendmsg() http://search.cpan.org/~MJP/Socket-MsgHdr-0.01/MsgHdr.pm -- ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: I've been digging into the patch. Is there a reason sendmsg() wants an iterable of buffers instead of just accepting a str? The list-of-buffers more closely matches the underlying syscall but I'm not sure what the python benefit is, especially when recvmsg()

[issue8004] add small server to serve docs

2010-02-23 Thread R. David Murray
R. David Murray added the comment: Ah, windows. And if it was there, I'd probably use it. Let's see what Georg things. -- nosy: +georg.brandl ___ Python tracker ___ __

[issue4199] add shorthand global and nonlocal statements

2010-02-23 Thread Jeremy Hylton
Jeremy Hylton added the comment: Is deferred blocker a higher priority? Jeremy On Tue, Feb 23, 2010 at 4:37 PM, Georg Brandl wrote: > > Georg Brandl added the comment: > > "High" is not high enough :) > > -- > priority: high -> deferred blocker > > ___

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: quoting compat(5) on OSX 10.6.2: Defining _POSIX_C_SOURCE or _DARWIN_C_SOURCE causes library and kernel calls to conform to the SUSv3 standards even if doing so would alter the behavior of functions used in 10.3. Defining _POSIX_C_SOURCE als

[issue7984] missing dependencies using cProfile

2010-02-23 Thread Brett Cannon
Brett Cannon added the comment: That's a package decision by Ubuntu, not Python, and thus not a bug on our end. Thanks for the report anyway. -- nosy: +brett.cannon resolution: -> invalid status: open -> closed ___ Python tracker

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've filed issue #7681618 in Apple's bugtracker with the attached file "getsetgroups-bug.tar" as a way to reproduce the issue. I want to wait a little to see how Apple responds (although I don't expect a quick response). -- Added file: http://bugs.p

[issue8004] add small server to serve docs

2010-02-23 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: I do almost all of my development on servers, so while I guess I could mount the remote file system and do that, that's not very easy to do (since I access my servers from multiple boxes, some of which run Windows, etc). I guess if not many people do that th

[issue8004] add small server to serve docs

2010-02-23 Thread R. David Murray
R. David Murray added the comment: How does this make it easier to review the built documentation? Most web browsers are happy to read off disk, and that seems easier than firing up a server. (I would actually have a use case for this, since the machine I build the docs on isn't the machine

[issue4331] Can't use _functools.partial() created function as method

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: correction: run = partial(1) should have been run = partial(show_funcs, 1) -- ___ Python tracker ___ ___

[issue4331] Can't use _functools.partial() created function as method

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: We talked about it at sprints and the semantics are ambiguous and there are alternatives. Ambiguous: def show_funcs(*args): print(args) class A(): run = partial(1) ob = A() ob.run(2,3) Should this print (self, 1, 2, 3) or (1, self, 2, 3)? And what

[issue8000] Bad deprecated label in documentation

2010-02-23 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r78385, thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue8004] add small server to serve docs

2010-02-23 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman : I'd like to put something like this in Doc, to make it easier to actually review the built documentation. (I guess we could put it in Tools, I'd just like it better if it was right there with the other stuff.) Good idea? Thomas Wouters kind of liked it but

[issue1537721] csv module: add header row to DictWriter

2010-02-23 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman : -- assignee: -> djc resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue1537721] csv module: add header row to DictWriter

2010-02-23 Thread Dirkjan Ochtman
Dirkjan Ochtman added the comment: Fixed in SVN, r78384. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6560] socket sendmsg(), recvmsg() methods

2010-02-23 Thread Wim
Wim added the comment: I just ran across yet another implementation of sendmsg support for python sockets, whose feature set seems to complement Kalman Gergely's implementation: http://www.pps.jussieu.fr/~ylg/PyXAPI by Yves Legrandgerard (Out of curiosity, people have been submitting reques

[issue4617] SyntaxError when free variable name is also an exception target

2010-02-23 Thread Jeremy Hylton
Jeremy Hylton added the comment: The patch looks pretty good. I'd factor out the common error-checking code (common between LOAD_DEREF and DELETE_DEREF) into a helper function. It would also be good to add some test cases. Jeremy On Tue, Feb 23, 2010 at 9:38 AM, Guido van Rossum wrote: > >

[issue7959] ctypes memory leak

2010-02-23 Thread Thomas Heller
Thomas Heller added the comment: CThunkObject is not registered correctly with the cycle GC. The attached patch, against trunk, fixes the issue. -- keywords: +patch Added file: http://bugs.python.org/file16345/issue7957.patch ___ Python tracker

[issue1669349] make install fails if no previous Python installation

2010-02-23 Thread Gael
Gael added the comment: Amaury Forgeot d'Arc a écrit : > Amaury Forgeot d'Arc added the comment: > > Interesting. What is the content of sys.path when you start ./python from the > build tree? > I will tell you tomorrow, I have no access to the computer at this hour. Gaël, > -- >

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: David, Can you unset "normal" priority from this issue. Regardless of whether it is a crash or not a crash, this is a regression for which there is no user work-around. It looks like "normal" priority makes the issue disappear from the top of "Show O

[issue7994] object.__format__ should reject format strings

2010-02-23 Thread Eric Smith
Eric Smith added the comment: This version of the patch adds support for classic classes and adds tests. Documentation still needs to be written. Again, this diff is against trunk. If anyone wants to review this, in particular the tests that exercise PendingDeprecationWarning, that would be

[issue8003] Fragile and unexpected error-handling in asyncore

2010-02-23 Thread Mads Kiilerich
New submission from Mads Kiilerich : I had an issue which seems to be very similar to issue4690 - but different. I created a subclass of asyncore.dispatcher, .create_socket added it to the channel map, but then .bind failed (because the port was in use - my bad), .listen wasn't called, and .ac

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Feb 23, 2010 at 12:16 PM, Ronald Oussoren wrote: .. > How did you detect that the modern getgroups implementation doesn't > query the kernel? That would be very odd. I wish I could say that I mastered dtrace under OSX, but I am not there yet. :

[issue6452] urllib2.Request() will not work with long authorization headers

2010-02-23 Thread Senthil Kumaran
Senthil Kumaran added the comment: There is a OLD Known issue that base64.encodestring will insert in a line-break in the authorization header. See Issue1574068 I fear, you might have done something like this. base64string = base64.encodestring('%s:%s' %(username,passwd))[:-1] request.add_head

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm probably being extremely dense at the moment, but the program below doesn't behave as I'd expect on OSX: #include int main(void) { #if 1 gid_t gids[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20 }; int r;

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch (I reviewed timemodule-gmtime-trunk.diff) looks mostly correct. One problem that I see is that it will likely produce compiler warnings on the systems without timegm and mktime. The warnings will be due to unused static function time_timegm

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6518] Enable 'with' statement in ossaudiodev module

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: +1, the C patch looks good to me. The test file needs a new test that checks the 'with' behavior. Also, what changed so that the test now needs to ignore AttributeErrors in play_sound_file()? -- nosy: +jackdied _

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I'm -1 w.r.t changing the definition of _DARWIN_C_SOURCE, at least not without a thorough investigation on what else this changes. Removing _DARWIN_C_SOURCE without setting some other defines may well cause in removal of functions from header files (I'm pre

[issue7863] platform module doesn't detect Windows 7

2010-02-23 Thread Brian Curtin
Brian Curtin added the comment: Whoops, sorry. Here is the change as requested. It reverts to the old way when needed, which hardcodes the version to VER_NT_WORKSTATION as it effectively used to. Outside of a hackish and incredibly slow method, I have no idea how to figure out workstation

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think I finally understand what is going on and ready to make what I believe is a reasonable proposal. Setting _DARWIN_C_SOURCE (or _DARWIN_UNLIMITED_GETGROUPS) replaces getgroups with a Darwin extension, but does not change setgroups: $ nm tg1 | gre

[issue7530] doc of multiprocessing.managers is wrong (server_forever)

2010-02-23 Thread Éric Araujo
Éric Araujo added the comment: Hello There is a typo in the changed text that prevents correct reST interpretation. s/```/``/ would fix it. Regards -- nosy: +merwok ___ Python tracker ___

[issue6825] Minor documentation bug with os.path.split

2010-02-23 Thread Jack Diederich
Jack Diederich added the comment: how about "an equivalent path" instead of "equal path"? The result of ntpath.join(ntpath.split(path)) should point to the same location even if it isn't literally the same string. -- nosy: +jackdied ___ Python tra

[issue7976] warnings should provide a public API for accessing its option parsing code

2010-02-23 Thread R. David Murray
R. David Murray added the comment: I see. I agree with Nick, a public API function in Warnings is better than something specific to optparse or argparse. If the op (or anyone else) wants to propose a patch to create such an API (with docs and tests), that would be welcome. The docs for tha

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: E-mail to tracker handling still seems to remove '>' quoted lines. I am reposting a couple of comments that got clobbered: -- > * allocate an array of groupcount gid_t's and call getgroups(groupcount) > This is more or less what my original patch did,

[issue8002] on OSX the file creation date not available in os.stat

2010-02-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: To be more precise: see issue8001. The OSX 10.5 introduces a new version of stat 'stat64' that exposes additional information to posix-style programs, amongst which is the file creation date. This field is not present in earlier editions of OSX and is also

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Feb 23, 2010 at 8:46 AM, Ronald Oussoren wrote: > .. > I get test failures, but no crashes, when I do run the additional tests. The crash that I see is apparently due to underallocated memory: alt_grouplist = PyMem_Malloc(n); should be alt_

[issue8001] os.stat on osx 10.5 or later doesn't expose all fields in struct stat

2010-02-23 Thread Ronald Oussoren
New submission from Ronald Oussoren : The stat implementation on osx 10.5 or later can provide additional fields beyond the tradional unix ones (such as "st_birthtimespec"). Those are by default only available when using 'stat64' instead of the regular stat, but that can be changed using a pre

[issue7863] platform module doesn't detect Windows 7

2010-02-23 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Brian Curtin wrote: > > Brian Curtin added the comment: > > Here is the patch which checks whether the new info is available and uses it, > otherwise it falls back to the original way. Thanks. Could you apply the same logic to the second hunk of the pat

[issue7976] warnings could provide a pre-filled -W option for third-party tools

2010-02-23 Thread Éric Araujo
Éric Araujo added the comment: I believe the OP’s request is partly motivated by the fact that there is a need to access a private function in warnings. See http://mail.python.org/pipermail/python-ideas/2010-February/006870.html where Nick Coghlan proposes that “the idea of creating a public

[issue1669349] make install fails if no previous Python installation

2010-02-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Interesting. What is the content of sys.path when you start ./python from the build tree? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Feb 23, 2010 at 8:46 AM, Ronald Oussoren wrote: .. > What I did notice though is that the tests don't actually test the issue at > hand: > having more than 16 secondairy groups on OSX. This is easy to fix: just add another entry in groups +

[issue4617] SyntaxError when free variable name is also an exception target

2010-02-23 Thread Guido van Rossum
Guido van Rossum added the comment: I don't think so. It's very marginal. --Guido (on Android) On Feb 23, 2010 8:52 AM, "Amaury Forgeot d'Arc" wrote: Amaury Forgeot d'Arc added the comment: The above patch adds a new opcode (DELETE_DEREF), does the Moratorium apply here? -- _

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-02-23 Thread Eric Smith
Eric Smith added the comment: The patch looks good to me, in that it implements your desired functionality well. I haven't been following the issue closely enough to know whether or not this new functionality is the right way to go. (I'm not saying it's not, just that I don't have an opinion

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: My patch is very lightly tested and I didn't try to use the additional testcases. I get test failures, but no crashes, when I do run the additional tests. I haven't had time to review the testcases though. What I did notice though is that the tests don't

[issue7649] "u'%c' % char" broken for chars in range '\x80'-'\xFF'

2010-02-23 Thread Ezio Melotti
Ezio Melotti added the comment: Here's a new patch that uses PyUnicode_FromStringAndSize and PyUnicode_AS_UNICODE(s)[0]. I also added some comments and tested it and it seems to work fine. -- Added file: http://bugs.python.org/file16339/issue7649v3.diff __

[issue4617] SyntaxError when free variable name is also an exception target

2010-02-23 Thread Guido van Rossum
Guido van Rossum added the comment: On Mon, Feb 22, 2010 at 6:51 PM, Jeremy Hylton wrote: > There's no reason we couldn't revise the language spec to explain that > except clauses and comprehensions are block statements, i.e. > statements that introduce a new block. However (even apart from th

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread R. David Murray
Changes by R. David Murray : -- priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Ronald, Have you tested your patch with issue7900-tests.diff? On my system: $ ./python.exe Lib/test/test_posix.py testNoArgFunctions (__main__.PosixTester) ... Segmentation fault and $ sudo ./python.exe Lib/test/test_posix.py .. FAIL: test_setgroups

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Feb 23, 2010 at 2:20 AM, Ronald Oussoren wrote: > .. > Alexander:  What makes you think r63955 introduced the problem? That revision introduced _DARWIN_C_SOURCE which, as I explained, has two effects on get/setgroups: """ It turns out that defi

[issue6280] calendar.timegm() belongs in time module, next to time.gmtime()

2010-02-23 Thread Francesco Del Degan
Francesco Del Degan added the comment: I attached a patch that implements timegm according to two constraints: 1. If HAVE_TIMEGM is defined, use it or 2. If HAVE_MKTIME and HAVE_WORKING_TZSET use a portable way, using mktime (taken from timegm(3) man) Attached patches are for: r264, r273a1

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

2010-02-23 Thread Mark Dickinson
Mark Dickinson added the comment: > BTW, should the changes to the generated "configure" be excluded > from such patches, or should they be included? (to what extent do > they contain meaningful information during review?) Not sure. I think it's fine to leave the configure changes out of a pos

[issue7900] posix.getgroups() failure on Mac OS X

2010-02-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: On my system with the attached patch (os-getgroups.patch): $ sudo ./python.exe Python 2.7a3+ (trunk:78371M, Feb 23 2010, 09:19:44) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import