Florent Xicluna florent.xicl...@gmail.com added the comment:
Hi Daniel,
there's a test failure which is related with r84307 on windows buildbot.
==
FAIL: test_cw_strings (ctypes.test.test_parameters.SimpleTypesTestCase)
New submission from Martin v. Löwis mar...@v.loewis.de:
Copy of issue 1027206; support in the socket module was provided, but this
request remains:
Also other modules should support unicode hostnames.
(httplib already does) but urllib and urllib2 don't.
--
components: Library (Lib),
Changes by Tim Golden m...@timgolden.me.uk:
--
assignee: - tim.golden
nosy: +tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1559298
___
Martin v. Löwis mar...@v.loewis.de added the comment:
I have now committed file 18615 as r84313: thanks for the patch.
I have split this issue into two: this one is only about the socket module, and
#9679 carries any remaining features (it would be good if we have only one bug
per bug
Martin v. Löwis mar...@v.loewis.de added the comment:
From msg60564: it's not clear to me what this request really means. It could
mean that Python should support IRIs, but then, I'm not sure whether this
support can be in urllib, or whether a separate library would be needed.
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
test_sys is still failing on my system where LC_CTYPE
only is set to utf-8
Oh yes, test_sys fails if LC_ALL or LC_CTYPE is a locale using a different
encoding than ascii (eg. LC_ALL=fr_FR.utf8). Fixed by r84314.
--
Ask Solem a...@opera.com added the comment:
On closer look your patch is also ignoring SystemExit. I think it's beneficial
to honor SystemExit, so a user could use this as a means to replace the current
process with a new one.
If we keep that behavior, the real problem here is that the
result
Changes by Tim Golden m...@timgolden.me.uk:
--
assignee: - tim.golden
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2528
___
___
Python-bugs-list
Carsten Klein carsten.kl...@axn-software.de added the comment:
Thanks for the information. Where is this documented? I cannot find it in the
official Python docs... TIA.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9659
New submission from Carsten Klein carsten.kl...@axn-software.de:
Example
class Meta(type):
def __new__(cls, name, bases, locals):
print repr(locals.keys())
class Test(object):
__metaclass__ = Meta
A = 1
B = 2
C = 3
D = 4
E = 5
The above will yield the
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
Thanks, I will take a look sometime today.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8781
___
Kees Bos k@zx.nl added the comment:
Added fix for python 2.7, which includes a test (testDictWithTupleKey) for the
compiler test (Lib/test/test_compiler.py).
--
status: pending - open
Added file: http://bugs.python.org/file18642/compiler-bug-issue6978.patch
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
The underlying problem here is that SIZEOF_WCHAR_T is not defined in pyconfig.h
on Windows. My patch assumed that it would be defined on all platforms where
HAVE_WCHAR_H is defined (I had checked ./configure, but forgotten
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
Adding other Windows developers to the nosy list. See msg114893 where your
input would be helpful.
--
nosy: +brian.curtin, tim.golden
___
Python tracker rep...@bugs.python.org
Marc-Andre Lemburg m...@egenix.com added the comment:
Daniel Stutzbach wrote:
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
The underlying problem here is that SIZEOF_WCHAR_T is not defined in
pyconfig.h on Windows. My patch assumed that it would be defined on all
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
On Windows, the Python headers define HAVE_USABLE_WCHAR_T and Py_UNICODE_SIZE
2, so we are already relying on sizeof(wchar_t) == 2 on Windows.
My patch ran into trouble because it inadvertently disabled that assumption in
a
Holger Joukl jh...@gmx.de added the comment:
Holger, sorry your work has to be rejected.
No harm done - kind of paradoxical that my employer allowed me to release the
code into the wild but hasn't been willing to let me sign the contribution
form, in 4 years.
So it's at least out in the
R. David Murray rdmur...@bitdance.com added the comment:
The ordering of dictionary keys is a fundamental property of Python
dictionaries (it's a hash table). PEP 3115 provides the functionality you are
looking for, your metaclass just needs to be slightly more complicated.
--
nosy:
R. David Murray rdmur...@bitdance.com added the comment:
There was a discussion about IRI on python-dev in the middle of a discussion
about adding a coercable bytes type, but I can't find it. I believe the
conclusion was that the best solution for IRI support was a new library that
implements
Changes by R. David Murray rdmur...@bitdance.com:
--
keywords: -buildbot, patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9679
___
___
Jesse Noller jnol...@gmail.com added the comment:
If we keep that behavior, the real problem here is that the
result handler hangs if the process that reserved a job is gone, which is
going to be handled
by #9205. Should we mark it as a duplicate?
I would tend to agree with your
Giampaolo Rodola' g.rod...@gmail.com added the comment:
It's very hard to tell what went wrong without an actual traceback message.
What I don't understand is why smtpd module is mentioned in the message, since
apparently test_ssl.py doesn't use it at all.
--
R. David Murray rdmur...@bitdance.com added the comment:
See also issue1676135. Seems that the posters were wrong in concluding that
the double slashes wouldn't bother anyone using prefix=/ :)
--
nosy: +r.david.murray
___
Python tracker
Benjamin Peterson benja...@python.org added the comment:
2010/8/25 Carsten Klein rep...@bugs.python.org:
Carsten Klein carsten.kl...@axn-software.de added the comment:
Thanks for the information. Where is this documented? I cannot find it in the
official Python docs... TIA.
Éric Araujo mer...@netwok.org added the comment:
For reference, a shorter explanation that the PEP is
http://docs.python.org/dev/reference/datamodel#customizing-class-creation
--
nosy: +eric.araujo
versions: -Python 2.6, Python 2.7, Python 3.3
___
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - rejected
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1589266
___
R. David Murray rdmur...@bitdance.com added the comment:
refresh, can you provide an example that shows the problem you are seeing?
Otherwise we'll close this.
--
nosy: +r.david.murray
resolution: - works for me
stage: - committed/rejected
status: open - pending
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for the patches. The general idea looks fine to me. Comments:
- I'd like to see a doc entry indicating that float inputs to setframerate get
rounded to the nearest integer.
- In 3.x, the extra int() isn't necessary: round()
Ronald Oussoren ronaldousso...@mac.com added the comment:
$ python2.7 test/test_asyncore.py -v
test_closeall (__main__.HelperFunctionTests) ... ok
test_closeall_default (__main__.HelperFunctionTests) ... ok
test_compact_traceback (__main__.HelperFunctionTests) ... ok
test_readwrite
R. David Murray rdmur...@bitdance.com added the comment:
Greg, thanks for working on this.
I haven't looked over the whole patch yet, but there's one thing I noticed
right away that needs to be fixed. 'python.exe' is the name of the python
executable only on OS X, and the tests are not
R. David Murray rdmur...@bitdance.com added the comment:
I just ran into this while trying to run the test suite with -uall while sshed
into an OSX machine and running a non-framework build. This makes it kind of
hard to run the full test suite.
Is there some way to detect that we don't have
Neil Tallim red.hamst...@gmail.com added the comment:
The differences are small enough that it probably doesn't matter which one of
us makes the extra changes.
It'll take one step less for you to implement them while applying the fixes, so
it's probably easiest if I leave that in your court.
Mark Lawrence breamore...@yahoo.co.uk added the comment:
@Ronald is this still a problem or can this be closed?
--
components: +Build
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
stage: - needs patch
type: - behavior
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1602742
Mark Lawrence breamore...@yahoo.co.uk added the comment:
This won't go forward unless there is a patch with changes to code, unit tests
and if needed docs.
--
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6
___
Python
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No reply to msg51470.
--
nosy: +BreamoreBoy
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1608267
Mark Lawrence breamore...@yahoo.co.uk added the comment:
No reply to msg110090.
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1610654
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
stage: unit test needed - patch review
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1611154
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
stage: - unit test needed
type: - behavior
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1611944
___
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1612262
___
Brian Curtin cur...@acm.org added the comment:
+1 on option 1
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8781
___
___
Python-bugs-list
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Hi Mark,
due to:
Failed issue tracker submission
You are not a registered user.
I send the mail to your private account.
Long time ago. I think you can close it.
Regards,
Juergen
--
resolution: - out of date
status: open -
Ronald Oussoren ronaldousso...@mac.com added the comment:
This is still a problem.
Technically this only works accidently with a framework build, code that
expects that '_environ' is defined in a shared library on OSX is broken.
--
___
Python
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - d...@python
components: +Documentation
nosy: +d...@python
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9681
Éric Araujo mer...@netwok.org added the comment:
Jack, can you update your patch to reflect Terry’s review?
Amaury, have you opened a feature request about your registration idea?
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
Ronald Oussoren ronaldousso...@mac.com added the comment:
In python 2.x 'MacOS.WMAvailable()' returns True if the windowserver is
available.
The whole MacOS extension is gone in 3.x, although it should be easy enough to
reimplement WMAvailable() using ctypes.
--
Éric Araujo mer...@netwok.org added the comment:
BTW, Tarek’s name is valid UTF-8 in py3k.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5131
___
Changes by Roumen Petrov bugtr...@roumenpetrov.info:
--
nosy: +rpetrov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9674
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
components: +Distutils2
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9309
___
___
Dmitry Jemerov intelliy...@gmail.com added the comment:
I've also run into this problem after upgrading to Python 2.6.6. My code, which
uses the same HTTPBasicAuthHandler instance for many requests to the same
server, worked correctly with Python 2.6.2 and broke with 2.6.6. It would be
great
R. David Murray rdmur...@bitdance.com added the comment:
Given Vinay's last comment I don't think this needs addressing in 2.x, and it
is not a problem in 3.x.
--
nosy: +r.david.murray
resolution: - out of date
stage: - committed/rejected
status: pending - closed
versions: +Python
New submission from Andreas Stührk andy-pyt...@hammerhartes.de:
There is some code in the inspect module that is now with the removal of tuple
unpacking in arguments in Python 3 no longer needed. The mentioned code does
not even work with Python 3 (because ``len(map(...))`` will raise a
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com:
Presently, the pyconfig.h generated by configure defines SIZEOF_WCHAR_T, but
PC/pyconfig.h does not, periodically causing problems:
http://bugs.python.org/issue8781
http://bugs.python.org/issue4474
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com:
--
dependencies: +PC/pyconfig.h should define SIZEOF_WCHAR_T
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8781
___
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
After making a Windows build and running the tests, committed in r84317.
--
resolution: - accepted
stage: - committed/rejected
status: open - closed
___
Python tracker
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment:
I opened a separate issue for the SIZEOF_WCHAR_T issue so I could refer to that
issue number in Misc/NEWS. Fixed in r84317.
--
status: open - closed
___
Python tracker
New submission from David Albert Torpey dt...@users.sourceforge.net:
Dictionary keys are commonly numbers, strings, or tuples. Python has optimized
numbers and strings to remember their hash values on successive calls. Tuples
should do this too since their recursive hash function can take a
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
This seems reasonable. Will look at it in the next few days.
--
assignee: - rhettinger
keywords: +easy
nosy: +rhettinger
priority: normal - low
stage: - needs patch
versions: +Python 3.2 -Python 2.6
New submission from mmw 0xcafef...@gmail.com:
def send(self, data):
try:
result = self.socket.send(data)
return result
except socket.error, why:
if why.args[0] == EWOULDBLOCK:
return 0
elif why.args[0] in
Tim Peters tim.pet...@gmail.com added the comment:
- Tuple objects don't currently reserve space to store their hash code, so it's
likely this would increase the size of every tuple.
- It's unclear to me which natural use patterns would actually enjoy a major
speed boost. Note that dicts
New submission from Dave Malcolm dmalc...@redhat.com:
With a clean build of release27-maint (r84317), test_dbm.py fails on ppc64 with
this error:
File test_dbm.py, line 24, in test_keys
self.assert_(k in self.d)
AssertionError
I'm building gainst gdbm-1.8.0 (specifically, on a prerelease
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
What change are you proposing?
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9686
___
Dave Malcolm dmalc...@redhat.com added the comment:
Note to self: I'm tracking this one in RH's downstream tracker as:
https://bugzilla.redhat.com/show_bug.cgi?id=626756
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9687
Benjamin Peterson benja...@python.org added the comment:
FWIW, I'm -1 on this without a demonstrable improvement on some real-world
cases.
--
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9685
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Hello Tim! If you have a chance, please also take a look at issue9685 which I
was planning to work on in the next couple of weeks.
For memoizing tuple hashes, I'm inclined to think the one extra field is worth
it. That
Longpoke longp...@gmail.com added the comment:
Okay I've attached one for the py3k branch. What about 2.7? Same patch applies
there.
--
keywords: +patch
Added file: http://bugs.python.org/file18645/shelve.rst.patch
___
Python tracker
Benjamin Peterson benja...@python.org added the comment:
2010/8/25 Raymond Hettinger rep...@bugs.python.org:
I suppose we could prepare a patch, instrument it, and try it with Twisted,
SQLalchemy, and Django to find-out how many tuple hash calculations would be
saved by memoizing.
You
Changes by Andreas Stührk andy-pyt...@hammerhartes.de:
--
title: Dead code in pyk inspect module - Dead code in py3k inspect module
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9683
___
Changes by Raymond Hettinger rhettin...@users.sourceforge.net:
--
assignee: - giampaolo.rodola
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9686
___
Changes by Dave Malcolm dmalc...@redhat.com:
--
nosy: dmalcolm
priority: normal
severity: normal
status: open
title: object.__basicsize__ is erroneously0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9688
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Could you provide a code sample which demonstrates the problem?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9686
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +josiah.carlson, josiahcarlson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9686
___
New submission from Pedro Mendes pedrorm2...@gmail.com:
The documentation existent (
http://docs.python.org/library/threading.html#threading.Timer ) is not very
helpful. The user is left wondering about the exact syntax of this function,
what types of parameter it accepts etc. Could this
New submission from Dave Malcolm dmalc...@redhat.com:
On 64-bit bigendian machines (ppc64 and s390x), I'm seeing:
print object.__basicsize__
0
(Discovered via a segfault in Jinja2 tries to use ctypes to manipulate
ob_refcnt of variables, and gets the wrong location, corrupting the objects
Éric Araujo mer...@netwok.org added the comment:
Wow. I’m amazed to see that the majority of commands don’t even bother with
dry-run. I’m changing the component to distutils2: This is between bug fix and
new feature, your report is the first one, and it’s easier to hack on
distutils2. When
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: -distutils argument parsing is bogus
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8501
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
r84012 patchs zipimporter_init() to use the new PyUnicode_FSDecoder()
and use Py_UNICODE* (unicode) strings instead of char* (byte) strings.
oops, it's r84013 (not r84012)
--
___
Changes by Éric Araujo mer...@netwok.org:
--
dependencies: +distutils dry-run breaks when attempting to bytecompile
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8501
___
Éric Araujo mer...@netwok.org added the comment:
I’ll port this patch to distutils2 as part of #8501 and ask Tarek whether it
can go in distutils too.
--
assignee: tarek - eric.araujo
components: +Distutils2 -Distutils
nosy: +eric.araujo
versions: +Python 2.5, Python 2.6
Florent Xicluna florent.xicl...@gmail.com added the comment:
This one looks very similar (r84315 on i386 Ubuntu 3.x buildbot):
./python -Wd -E -bb ./Lib/test/regrtest.py -uall -rwW -l
== CPython 3.2a1+ (py3k:84315, Aug 25 2010, 17:07:54) [GCC 4.6.0 20100814
(experimental) [trunk revision
Benjamin Peterson benja...@python.org added the comment:
r84320.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9688
___
Éric Araujo mer...@netwok.org added the comment:
The builtin open in 3.2 is similar to codecs.open. If you read the error
message closely, you’ll see that the decoding that failed did try to use UTF-8.
The cause of the problem here is that the bytes used for the ç in François’
name are not
R. David Murray rdmur...@bitdance.com added the comment:
That's just a summary. The full documentation of the class is further down the
page. What's missing is a hyperlink from the summary to the full description.
It's probably just a markup error.
--
nosy: +r.david.murray
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: - d...@python
components: +Documentation
nosy: +d...@python
type: feature request - behavior
versions: +Python 3.1, Python 3.2 -Python 2.5, Python 2.6
___
Python tracker
New submission from Kay Hayen kayha...@gmx.de:
There is no way to decide if a string literal should be non-unicode when the
default has been set to unicode_literals. Please see:
import ast
ast.dump( ast.parse( c = d ) )
Module(body=[Assign(targets=[Name(id='c', ctx=Store())],
Éric Araujo mer...@netwok.org added the comment:
Being able to write a global option after a command name seems a nice feature
to me, and the implementation should be straightforward: The base Command class
already adds some options like help to each subclass, it’s just a matter of
adding
Changes by Éric Araujo mer...@netwok.org:
--
assignee: tarek - eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1109659
___
___
Benjamin Peterson benja...@python.org added the comment:
You'll have to look at the compile flags or search the future flags.
--
nosy: +benjamin.peterson
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
mmw 0xcafef...@gmail.com added the comment:
First it depends on the socket type but might use a select call, secondable
raise on a socket.error, thirdable you could call the close_handle with the
message and let the guys if he would like to retry, network connection might
be capricious
R. David Murray rdmur...@bitdance.com added the comment:
Yes it does seem like it is too late for this, code might be depending on this
behavior now in 2.7.
--
nosy: +r.david.murray
status: pending - closed
___
Python tracker rep...@bugs.python.org
Łukasz Czuja luk...@czuja.pl added the comment:
I Had the same issue while using the lib. I had to replace every: IOError with
(IOError, OSError) to catch both and just then compare exc.errno.
Also in your r84271 commit, on line 507 you did:
507 : with _io.FileIO(path, 'wb') as file:
91 matches
Mail list logo