[issue21671] CVE-2014-0224: OpenSSL upgrade to 1.0.1h on Windows required

2014-06-05 Thread Chris Lambacher
New submission from Chris Lambacher: http://www.openssl.org/news/secadv_20140605.txt All client versions of OpenSSL are vulnerable so all Windows builds of Python are vulnerable to MITM attacks when connecting to vulnerable servers. -- components: Build, Windows messages: 219828 nosy

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-13 Thread Chris Lambacher
New submission from Chris Lambacher: The use case for this is that when you are in a template and you want to use the Enum instances in a conditional, then you need to pass the Enum class to the template or start using someenumvariable.__class__.someenumvalue. Instead it would be useful

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-13 Thread Chris Lambacher
Chris Lambacher added the comment: You are not comparing the same thing. Normally when there is a class parameter, those are available from instances of the class. class Test: ...pass ... Test.this = Test() Test.that = Test() Test.this.that __main__.Test instance at 0x7ff681bd3560

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-13 Thread Chris Lambacher
Chris Lambacher added the comment: For what it's worth, I was confused by the inability to access the class members from the instance for like 3 or 4 weeks until I realized that the instances were not actually on the class and the implications of that for class attribute access

[issue18635] Enum sets _member_type_ to instantiated values but not the class

2013-08-03 Thread Chris Lambacher
Chris Lambacher added the comment: My use case is a generic mixin for Enums and a generic mixin for Django ORM fields that uses the Enums to generate choices. The Enum mixin has to call cls.__class__._get_mixins_(cls.__bases__) to get the member_type so that it can call the member_type

[issue18635] Enum sets _member_type_ to instantiated values but not the class

2013-08-02 Thread Chris Lambacher
New submission from Chris Lambacher: It would be useful to set the discovered member_type to the Enum class and not just the instance. Attached is a patch to add _member_type_ to the enum_class. -- files: enum_member_type_on_class.patch keywords: patch messages: 194199 nosy: lambacck

[issue18545] enum always runs member_type when use_args is True

2013-07-24 Thread Chris Lambacher
New submission from Chris Lambacher: Starting at line 153 in enum.py there is: 153 if not use_args: 154 enum_member = __new__(enum_class) 155 original_value = value 156 else: 157 enum_member = __new__

[issue18508] enum.Enum population of _value2member_map does not match fallback search

2013-07-19 Thread Chris Lambacher
New submission from Chris Lambacher: When an Enum is being created, the _value2member_map class property is defined to speed lookup of Enum values later on. If the value does not exist then it falls back to a linear search through the _member_map.values() looking for member.value == value

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I am really happy to see this as an option in the Windows installer. This has a potential to really reduce the support burden on training new Windows users to use Python and will really help normalize the experience for new users

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-04-25 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: The reason for the conditional approach was to attempt to account for the negative consequences of adding enabling this by default. i.e. if you are already a Python developer and install a new version, it will be status quo, but if you

[issue10087] HTML calendar is broken

2011-08-07 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Senthil: I wasn't advocating the removal of the ability to specify encoding, only stating that avoiding the use of sys.stdout.buffer.write could only sensibly be done if we also removed the ability to specify an encoding (I can see how

[issue10087] HTML calendar is broken

2011-08-06 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Senthil: I think that would fundamentally make things worse. The HTML calendar apparently always provides a bytes type, but lets assume it provided you with unicode and we used sys.stdout.write on the output. Fundamentally you would get

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I don't think that is the default state. You need to add .py to the PATHEXT environment variable: http://effbot.org/pyfaq/how-do-i-make-python-scripts-executable.htm Maybe Terry did this at some point? My windows box certainly does

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Now my concern is about packaging: In a typical Windows install, can people run “pysetup3 spam”? The windows installer does not make any additions to the path so it is unlikely that pysetup3 spam will work. There is http

[issue1626300] 'Installing Python Modules' does not work for Windows

2011-07-18 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I am not sure of the difference between 'local script' and 'global command' local script is the setup.py (or for that matter any other script in an arbitrary place in the filesystem. Global command is referring to something installed

[issue1156179] Calls from VBScript clobber passed args

2011-03-24 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: copied to pywin32 bug tracker: http://sourceforge.net/tracker/index.php?func=detailaid=3238774group_id=78018atid=551954 -- nosy: +lambacck ___ Python tracker rep...@bugs.python.org http

[issue969718] BASECFLAGS are not passed to module build line

2011-02-07 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Antoine said: I don't understand how you can cross-compile using the host Python Makefile. Could you explain? The get_config_vars() function parses the host Makefile to get the values that we are discussing overriding. EXTRA_CFLAGS

[issue969718] BASECFLAGS are not passed to module build line

2011-02-06 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I am not convinced that the minimal patch would work for my original issue. I wanted to be able to override the -march option which shows up in OPT on Fedora. I was cross-compiling to a target architecture that does not support

[issue10087] HTML calendar is broken

2010-12-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Sorry in advance for the long winded response. Ron, have you looked at my patch? The underlying issue is that the semantics for print() between Python 1 and 3. print() does not accept a bytes type in Python 3. In Python 2 str

[issue10087] HTML calendar is broken

2010-11-23 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I don't think we *need* to have the encoding in the HTML calendar, but I doubt we could remove it at this point, deprecate maybe, but since I don't use the module I don't have a sense for how often the need for encoding comes up

[issue10087] HTML calendar is broken

2010-11-22 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I don't understand what you mean by elides the line breaks in output. They are still there, you just don't see them as \n because print() is no longer implicitly converting the bytes to a string (which appears to actually result

[issue10087] HTML calendar is broken

2010-11-22 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I am attaching a new patch which fixes the majority of the comments raised. 1. Any suggestions about how to test the output of the console program (the case that this bug affects) would be appreciated. 2. Agreed, included in the output

[issue10087] HTML calendar is broken

2010-11-22 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: The test_pydoc method looks workable, but I'll need to come back to it later because I don't have any more time to work on it today. -- ___ Python tracker rep...@bugs.python.org http

[issue969718] BASECFLAGS are not passed to module build line

2010-11-21 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I am attaching a preliminary patch to allow override of $(OPT). I am not sure this is sufficient, but am wary of breaking packages that depend on the existing behaviour. The logic indeed seems wrong, but maybe this is something

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-11-21 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Rafael, There is already a method which returns all the extensions. What is required is a flag (or separate dict) which provides a canonical extension. The questions is whether it is sufficient to rely on the default provided mimetypes

[issue10087] HTML calendar is broken

2010-11-21 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I have attached a patch that conditionally uses sys.stdout.buffer.write to output binary (encoded) data to stdout. -- nosy: +lambacck Added file: http://bugs.python.org/file19768/calendar_bytes_output.patch

[issue6007] distutils tricks you into thinking you can build extensions with mingw

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I just compiled the zope.interface c speedups with MinGW on Python 2.7 and 2.6. There is a patch being tracked in the MinGW patch tracker http://sourceforge.net/tracker/index.php?func=detailaid=2134161group_id=2435atid=302435 related

[issue6007] distutils tricks you into thinking you can build extensions with mingw

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I'm attaching a patch that includes a disclaimer about some extensions not being able to compile and mentioning some of Martin's specifics. I also reorganized the instructions to more directly reflect the current state. This puts

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: While I agree that getting .ksh is an unfortunate guess, I am not sure how you can guess in the face of many options (especially when the those options are parsed out of a mimetypes file or the windows registry). Perhaps there should

[issue6007] distutils tricks you into thinking you can build extensions with mingw

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: Eric, This documentation is Installing Python Modules which is focused on Distutils, but presumably we would continue to want such a document and account for both Disutils and Disutils2 (once people start using it). I think my patch

[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: This is a dup of #1043134 -- nosy: +lambacck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6799

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: This should be closed as a dup of #1182788 which the OP identified as being the same bug and which is now fixed due to the implementation. of ZIP64. -- nosy: +lambacck ___ Python tracker rep

[issue3636] Managing dual 2.x and 3.0 installations on Windows

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: This seems like a normal file association fight, no different than not being able to have both IE and Firefox associated with .html files. #2375 has been rejected, so I don't think it is a relevant superseder. I don't see how

[issue7858] os.utime(file, (0, 0, )) fails on on vfat, but doesn't fail immediately

2010-11-20 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: win_utime.patch does not apply cleanly on the py3k branch. Adapted, as in the attached win_utime_updated.patch, the solution does fix the problem. I have not added a test because I don't know how to deal with the fat32 requirement

[issue969718] BASECFLAGS are not passed to module build line

2009-10-07 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net added the comment: I am running into a problem related to this. I am attempting to cross compile extensions but Fedora includes -march in the OPT variable. Since there is no way to exclude the OPT values the build fails. It seems that forcing OPT to stay

[issue3671] What's New in 2.6 - corrections

2008-09-05 Thread Chris Lambacher
Chris Lambacher [EMAIL PROTECTED] added the comment: In rev66217, the itertools example for With two iterables, 2N-tuples are returned. has a typo: itertools(product([1,2], [3,4], repeat=2) should be: itertools.product([1,2], [3,4], repeat=2) -- nosy: +lambacck