New submission from stuart:
I emulated a real classmethod using python:
class cm(object):
def __init__(self, o):
self.o = o
def __get__(self, obj, type=None):
return self.o.__get__(obj, type)
then I check whether it is workable in the interactive mode and it is working
Stuart Shelton added the comment:
I've no objection to signing the relevant paperwork if that's what's needed to
get this committed - if someone could point me in the direction of what I
needed to do in order to do so?
--
no
Stuart Shelton added the comment:
As-per 7718 I'm happy to complete any relevant paperwork: these patches (which
are by now of my own creation: Frank Everdij helped sort out the N32.s fixes,
but these were no longer required by 2.6.4 and 2.7) are already posted in the
public Gento
New submission from Stuart Axon :
I'm not sure why this is happening, but os.uname() is failing on my computer in
XP Home 32bit. Tested in the normal shell and MSys
The code in platform.py looks like it should work to me.
[C:\usr\Python26\Lib]python
Python 2.6.4 (r264:75708, Oct 26 200
Stuart Axon added the comment:
It would be good for consistency, yes.
--
___
Python tracker
<http://bugs.python.org/issue4972>
___
___
Python-bugs-list mailin
New submission from Stuart Axon <[EMAIL PROTECTED]>:
If the msi is installed with /quiet it installs to the default location,
but the registry key is not set, making it harder for other programs to
find the installation.
- in my case I had to make a batch file that installed it, then re
Stuart Axon <[EMAIL PROTECTED]> added the comment:
Sure, no problem - sorry for the lack of detail...
The windows installer (tested on 2.5.2) normally puts some values in
the windows registry at:
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\
(where is the python version).
Includi
Stuart Axon <[EMAIL PROTECTED]> added the comment:
If you type msiexec /? it pops a window with this text in it:
Windows (R) Installer. V 3.01.4001.5512
msiexec /Option [Optional Parameter]
Install Options
Installs or configures a product
Stuart Woodward <[EMAIL PROTECTED]> added the comment:
I'm running on Mac OS X. I applied the patch issue2173.patch and it
solved the "make: *** [sharedmods] Error 1" problem. A cursory test of
/usr/local/bin/python3.0 was successful.
-
New submission from Stuart Axon :
os.environ doesn't escape spaces, but does backslashes and others
In the windows python interpreter I echo'd the variable 'ProgramFiles',
then in the commandprompt.
>>> from os import environ
>>> environ['ProgramFi
New submission from Stuart Ball :
This is not very helpful if your gather or wait contains multiple versions of
foo with different argument values:
``
Should just be:
``
Would probably take all of 5 minutes to implement and make a lot of people's
lives easier.
--
mes
Stuart Bishop added the comment:
(sorry, my example is normal Python behavior. {1:1, 1.0:2} == {1:2} , {1.0:1}
== {1:1} )
--
nosy: +stub
___
Python tracker
<https://bugs.python.org/issue34
Stuart Axon added the comment:
Catching up on the comments on this, it seems like nobody has enough certainty
to say it will work well enough.
In Linux, the scheduler is pluggable, which lets other non-default schedulers
be shipped and tried in the real world.
- See schedutil, introduced
Change by Stuart Berg :
--
nosy: +stuarteberg
___
Python tracker
<https://bugs.python.org/issue25942>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Stuart Cuthbertson :
I should clarify first that I haven't reproduced the following bug specifically
with venv. I was asked to raise this here after raising an identical issue
about virtualenv (https://github.com/pypa/virtualenv/issues/1154); a GitHub
user told me
Change by Stuart Berg :
--
pull_requests: +4245
___
Python tracker
<https://bugs.python.org/issue25942>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Stuart Mentzer :
Freezing apps with multiprocessing on Windows seems to be broken.
First, in get_command_line in multiprocessing/forking.py I find that
this code:
if getattr(sys, 'frozen', False):
return [sys.executable, '--multi
Stuart Mentzer added the comment:
Thanks Jesse. If you make broader changes that my patch I am happy to
test on Windows and with py2exe if that is helpful.
I will try to get the py2exe folks to look at the broader
multiprocessing issues I describe as well. If multiprocessing supports
freezing
Stuart Mentzer added the comment:
Further experimentation revealed that freeze_support() works properly
and the proposed patch is not necessary or desirable for the general
freeze case. In the case of an embedded app that calls set_executable()
it seems that the "else" block calling _
Stuart Axon added the comment:
zipfile also would make a good target for a contextmanager (as noted here -
http://tarekziade.wordpress.com/2009/01/20/python-standard-lib-give-me-more-withs/
)
--
nosy: +stuaxo
___
Python tracker
<h
Stuart Berg added the comment:
Already closed, but FWIW, I think this was incorrectly marked as a duplicate.
Issue 20742 discusses a different issue related to lib2to3 and zip.
Meanwhile, this issue has been raised again in 28837, so I will continue the
discussion there. (I have a patch
Stuart Berg added the comment:
In addition to zip(), this problem also affects map() and filter().
The problem is that the match patterns in FixZip, FixMap, and FixFilter do not
allow for more than one "trailer" node. (And even if they did, their
transform() methods aren'
Changes by Stuart Berg :
Removed file: http://bugs.python.org/file46339/fix-28837.patch
___
Python tracker
<http://bugs.python.org/issue28837>
___
___
Python-bugs-list m
Changes by Stuart Berg :
Added file: http://bugs.python.org/file46341/fix-28837.patch
___
Python tracker
<http://bugs.python.org/issue28837>
___
___
Python-bugs-list m
Stuart Berg added the comment:
Sorry for re-uploading the patch; I made some pep8 fixes.
--
Added file: http://bugs.python.org/file46342/fix-28837.patch
___
Python tracker
<http://bugs.python.org/issue28
Changes by Stuart Berg :
Removed file: http://bugs.python.org/file46341/fix-28837.patch
___
Python tracker
<http://bugs.python.org/issue28837>
___
___
Python-bugs-list m
Changes by Stuart Berg :
Removed file: http://bugs.python.org/file46342/fix-28837.patch
___
Python tracker
<http://bugs.python.org/issue28837>
___
___
Python-bugs-list m
Changes by Stuart Berg :
Added file: http://bugs.python.org/file46343/fix-28837.patch
___
Python tracker
<http://bugs.python.org/issue28837>
___
___
Python-bugs-list m
Stuart Berg added the comment:
Patch submitted as github PR #24:
https://github.com/python/cpython/pull/24
--
___
Python tracker
<http://bugs.python.org/issue28
Changes by Stuart Berg :
--
pull_requests: +85
___
Python tracker
<http://bugs.python.org/issue28837>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Russell Stuart:
.. topic:: http://docs.python.org/2.7/objects.inv doesn't support :func:`repr`
or :exc:`Exception`
A bug report for Python 2.7's docs.
.. _intro:
Bug
===
Running::
sphinx-build -c conf2.7 -n -b html -E . html
Produces::
Running Sph
Changes by Russell Stuart :
Added file: http://bugs.python.org/file29795/conf.py
___
Python tracker
<http://bugs.python.org/issue17709>
___
___
Python-bugs-list mailin
Changes by Russell Stuart :
Added file: http://bugs.python.org/file29796/conf.py
___
Python tracker
<http://bugs.python.org/issue17709>
___
___
Python-bugs-list mailin
Joe Stuart added the comment:
It looks like it's being called from the c extension. I would think it should
still throw an exception though?
>>> e = etree.Element
>>> e.ham = 1
Traceback (most recent call last):
File "", line 1, in
TypeError: can't set
Joe Stuart added the comment:
At the end of ElementTree all of the c accelerators are being imported and it
looks like only XMLParser is being used. Here is a patch that only imports
XMLParser.
--
keywords: +patch
Added file: http://bugs.python.org/file30298/ElementTree.patch
Changes by Joe Stuart :
Removed file: http://bugs.python.org/file30298/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17989>
___
___
Python-bugs-list m
Joe Stuart added the comment:
This patch should fix the issue of the classes being overwritten by the c
accelerated ones.
--
Added file: http://bugs.python.org/file30300/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17
Changes by Joe Stuart :
Removed file: http://bugs.python.org/file30300/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17989>
___
___
Python-bugs-list m
Joe Stuart added the comment:
Forgot to update the XMLParser() assignment.
--
Added file: http://bugs.python.org/file30301/ElementTree.patch
___
Python tracker
<http://bugs.python.org/issue17
Joe Stuart added the comment:
Looks like a typo in arbitrary.
AttributeError: Can't set arbitraty attributes on Element
--
___
Python tracker
<http://bugs.python.org/is
Changes by Stuart Bishop :
--
nosy: +stub
___
Python tracker
<http://bugs.python.org/issue24773>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Ryan Stuart:
The note for 18.5.5.1. Stream functions is missing a word. It should read "Note
The top-level functions in this module are meant **as** convenience wrappers
only; there’s really nothing special there, and if they don’t do exactly what
you want, feel fr
Stuart Bishop added the comment:
Can we get this reopened? As David MacIver points out, this seems entirely a
wart in tuple's constructor (compared to all the other builtin types), whereas
10977 is worrying about how 3rd party code using the C API can corrupt
subclasses of builtin typ
Stuart Prescott added the comment:
Having added the suggested restype (plus a lot of others and also quite a few
extra argtypes), we now have code that works across a few different versions of
Python once again.
Thanks for the hint, eryksun and also thanks to doko for proxying the report
and
Changes by Stuart D Gathman:
--
type: -> behavior
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1025395>
_
___
Python-bugs-list mailing li
Stuart D Gathman added the comment:
# A quick and very dirty fix for common broken cases, with test cases.
import rfc822
def parseaddr(t):
"""Split email into Fullname and address.
>>> parseaddr('[EMAIL PROTECTED]')
('', '[EMAIL
Stuart D Gathman added the comment:
Ok, I see the '@' is technically not allowed in an atom. But it either
needs to throw an invalid syntax exception, or heuristically return
something reasonable.
_
Tracker <[EMAIL PROTECTED]>
<htt
Stuart D Gathman added the comment:
Repeating because previous real life test case was rejected as 'spam':
It also fails to parse:
>>> from email.Utils import parseaddr
>>> parseaddr('[EMAIL PROTECTED] <[EMAIL PROTECTED]>')
('', '[EMA
Stuart D Gathman added the comment:
Test cases so far:
>>> parseaddr('[EMAIL PROTECTED]')
('', '[EMAIL PROTECTED]')
>>> parseaddr('"Full Name" <[EMAIL PROTECTED]>')
('Full Name', '[EMAIL PROTECTED]
Stuart D Gathman added the comment:
See Issue1025395
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1221>
__
___
Python-bugs-list mailing list
Unsubs
Stuart D Gathman added the comment:
see Issue1029395
--
nosy: +sdgathman
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1221>
__
___
Python-bugs-list
Stuart D Gathman added the comment:
Same or related issues: Issue1221, Issue1409460
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1025395>
_
___
Pyth
Stuart D Gathman added the comment:
tiran: yes, but that is the wrong answer, and that example is already in
the testcase list (with what I believe is the right answer).
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/iss
New submission from William Edward Stuart Clemens :
The DB API Spec 2.0 (PEP 249) clearly requires that column name and type_code
be set as the first two values in Cursor.description the other 5 attributes are
optional. The sqlite3 module doesn't set type_code.
--
components:
William Edward Stuart Clemens added the comment:
The patch for version 3.3 has a one line difference.
--
assignee: -> docs@python
components: +Documentation, Library (Lib) -None
nosy: +docs@python
versions: +Python 3.3
Added file: http://bugs.python.org/file21
55 matches
Mail list logo