Chris Lambacher 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 not have it
and I
Chris Lambacher 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://www.python.
Chris Lambacher 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
install
Chris Lambacher 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
the same behavior as
Chris Lambacher 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 my wording might
Chris Lambacher added the comment:
copied to pywin32 bug tracker:
http://sourceforge.net/tracker/index.php?func=detail&aid=3238774&group_id=78018&atid=551954
--
nosy: +lambacck
___
Python tracker
<http://bugs.python.o
Chris Lambacher 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=detail&aid=2134161&group_id=2435&atid=302435>
relate
Chris Lambacher 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 the common in
Chris Lambacher 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 be a
Chris Lambacher 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 add
Chris Lambacher added the comment:
This is a dup of #1043134
--
nosy: +lambacck
___
Python tracker
<http://bugs.python.org/issue6799>
___
___
Python-bugs-list m
Chris Lambacher 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
<http://bugs.python.
Chris Lambacher 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 this is any diff
Chris Lambacher 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 in order to cause fa
Chris Lambacher 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 that has to go in
Chris Lambacher 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 for the
default in
Chris Lambacher 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
Chris Lambacher 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 actual
Chris Lambacher 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 for --help
3. Agreed
Chris Lambacher 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
<http://bugs.python.o
Chris Lambacher 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.
The one
Chris Lambacher 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 was a "bytes"
t
Chris Lambacher 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
the -march option so I would
Chris Lambacher 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 is
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)
--
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
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__
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
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
Chris Lambacher 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 between
Windows and POSIX
Chris Lambacher 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 are a
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
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 to be
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.
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 a
Chris Lambacher 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 the same is a
36 matches
Mail list logo