Brett Cannon added the comment:
While I am not sure how I feel about searching every entry on sys.path,
I know I don't like the idea of recursing the directory tree. pth files
are meant to only be at the top-level of a directory that packages and
modules are checked for.
--
nosy:
Giambattista Bloisi added the comment:
What I meant for recursively was not to scan the full directory tree,
but just to scan entries that have been added to the os.path. I think
that this was the original intention as
http://docs.python.org/inst/search-path.html states:
Any directories added to
Changes by David Barlow:
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1430
__
___
Python-bugs-list mailing list
Unsubscribe:
Amaury Forgeot d'Arc added the comment:
BTW**2: I've noticed that abc.py's __instancecheck__ gets called a lot
at times when I don't expect it. Can you research this a bit?
In classobject.c, method_call() calls PyObject_IsInstance() on the first
arg when the method is unbound.
This happens a
New submission from Carl Friedrich Bolz:
Marshal does not round-trip unicode surrogate pairs for wide unicode-builds:
marshal.loads(marshal.dumps(u\ud800\udc00)) == u'\U0001'
This is very annoying, because the size of unicode constants differs
between when you run a module for the first
New submission from Luke-Jr:
SocketServer recently started giving my request handler rfiles that
don't block: readfile() gives me a timeout exception. This used to
work fine. I begin writing this server with 2.4.3, and it is currently
running under 2.4.4, so my suspicious is somewhere in
New submission from Stavros Korokithakis:
Currently, the new with statement does not support multiple handlers.
For example, to open two files for input/output you would have to do:
with open(filein) as input:
with open(fileout) as output:
#Do stuff
pass
This adds
Stavros Korokithakis added the comment:
What this syntax does is similar to the nested context manager in case
12 of PEP343, but with cleaner syntax.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1435
__
New submission from glubglub:
In the class below, 'arr' list should be unique for each instance of
class Blah. In reality, 'arr' is shared by all instances of 'Blah'
class Blah:
arr = []# this member should not be
# shared across all instances of blah
Quentin Gallet-Gilles added the comment:
That's the expected behavior, actually. The variables 'arr' and 's' are
static variables in the class Blah.
This is discussed in several places in the doc and the FAQ, e.g.
Christian Heimes added the comment:
It's a known feature - and a known gotcha for new Python developers.
--
nosy: +tiran
resolution: - invalid
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1437
Christian Heimes added the comment:
confirmed
The problem is in logging.config._install_handlers(cp, formatters). The
code is usin klass = eval(klass, vars(logging)) args = eval(args,
vars(logging)) to get the logger class from the logging module.
--
nosy: +tiran
versions: +Python 2.6,
Changes by Christian Heimes:
--
components: +Interpreter Core -None
priority: - low
type: behavior - rfe
versions: +Python 2.6
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1435
__
Changes by Christian Heimes:
--
assignee: - vsajip
nosy: +vsajip
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1436
__
___
Python-bugs-list
Christian Heimes added the comment:
I consider the bug fixed and closed. Objections?
--
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1415
__
___
Amaury Forgeot d'Arc added the comment:
(Sorry, I cannot test just now)
What happens if pythonw.exe calls the print() function?
Please tell me that it does not throw an exception.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1415
Christian Heimes added the comment:
I like to move _PyExc_Init() before _PySys_Init() and set sys.prefix,
exec_prefix and executable with PyUnicode_DecodeFSDefault().
Without the changes Python is seg faulting on Windows when the path
contains non ASCII chars. With the patch it is failing with
Amaury Forgeot d'Arc added the comment:
Is it the only possibility?
On Windows, it is quite common to print to stdout for debugging
purposes, then deploy the application with pythonw.exe which suppresses
the console. Without any change to the code. Most pygame programs I know
work this way, and
Christian Heimes added the comment:
As far as I can see print() works if sys.stdout is either None (discard
output ASAP) or a file like object. Even print(file=syst.stderr) works.
sys.stdout.write() is going to fail when sys.stdout is None but that's
not my concern. It's another well documented
Amaury Forgeot d'Arc added the comment:
As far as I can see print() works if sys.stdout is either None
(discard output ASAP) or a file like object. Even
print(file=syst.stderr) works.
Ah, I prefer this.
sys.stdout.write() is going to fail when sys.stdout is None
but that's not my
New submission from Guido van Rossum:
[Guido]
I've noticed that abc.py's __instancecheck__ gets called a lot
at times when I don't expect it. Can you research this a bit?
[Amaury]
In classobject.c, method_call() calls PyObject_IsInstance() on the
first arg when the method is unbound.
Changes by Guido van Rossum:
--
assignee: - gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1438
__
___
Python-bugs-list mailing list
Unsubscribe:
Guido van Rossum added the comment:
I think this is unavoidable. Depending on whether you happen to be using
a narrow or wide unicode build of Python, \U may be turned into
a pair of surrogates anyway. It's not just marshal that's not
roundtripping; the utf-8 codec has the same issue
Guido van Rossum added the comment:
Please provide a self-contained example program that behaves correctly
in 2.4.3 and fails in 2.4.4 if you want us to investigate this further.
How does it behave with 2.5.1?
--
nosy: +gvanrossum
__
Tracker [EMAIL
Guido van Rossum added the comment:
I don't think the added syntactic complexity is worth the relatively
rare use case, especially since there's already an implementation of
nested() in the contextlib library.
--
nosy: +gvanrossum
resolution: - wont fix
status: open - closed
Guido van Rossum added the comment:
Somebody please propose a patch!
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1436
__
___
Python-bugs-list
Guido van Rossum added the comment:
If this doesn't cause any problems on other platforms, go for it.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1342
__
___
Python-bugs-list
Vinay Sajip added the comment:
This is not a bug: I think you are missing something. In the first
example (interactive usage), the lines import logging and import
logging.handlers do not magically introduce RotatingFileHandler into
your interactive session's globals. To do this, you would have
Changes by Vinay Sajip:
--
resolution: - invalid
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1436
__
___
Python-bugs-list mailing list
Brett Cannon added the comment:
For what you meant by recursion, that makes more sense.
But as for whether this is correct or not, read the next paragraph in
the site docs
(http://docs.python.org/dev/library/site.html#module-site). It says A
path configuration file is a file whose name has the
Martin v. Löwis added the comment:
As Guido says: this is by design. The Unicode type doesn't really
support storage of surrogates; so don't use it for that.
--
nosy: +loewis
resolution: - wont fix
status: open - closed
__
Tracker [EMAIL PROTECTED]
New submission from Bill Janssen:
This patch essentially makes GC of sockets work again.
See http://mail.python.org/pipermail/python-3000/2007-October/
011058.html and all the threads in http://mail.python.org/pipermail/
python-3000/2007-October/thread.html with subject line socket GC
worries
Raghuram Devarakonda added the comment:
Please provide a small test code that manifests the problem. It is
always the best way to get quick response.
--
nosy: +draghuram
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1429
Giambattista Bloisi added the comment:
This make sense. I hope I'm not annoying you.
But what I did was to read
(http://docs.python.org/inst/search-path.html) before reading
(http://docs.python.org/dev/library/site.html#module-site) as the latter
is referenced by the first via a html link.
The
Brett Cannon added the comment:
I have made this a documentation bug as obviously there is some needed
clarification in how .pth files are handled.
If you have any suggested wording, Giambattista, then please feel free
to submit patches against the 2.6 docs (easier to work with since they
are
Christian Heimes added the comment:
I'm setting the priority to normal. The issue isn't resolved but it's
not critical for the next alpha release. By the way what's your ETA for
the next alpha, Guido?
--
priority: high - normal
__
Tracker [EMAIL
Christian Heimes added the comment:
The issue isn't fixed yet. The script is still eating precious memory.
--
nosy: +gvanrossum, tiran
priority: high - urgent
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1134
New submission from Christian Heimes:
Can you please review the patch. It's not urgent. It adds additional
tests for std??? == Py_None to some functions to speed up things or
raise more meaningful exceptions when sys.std??? is None.
--
assignee: gvanrossum
components: Interpreter Core
Guido van Rossum added the comment:
Amaury, can you have a look at this? I think it's a bug in tok_nextc()
in tokenizer.c.
--
assignee: nnorwitz - amaury.forgeotdarc
nosy: +amaury.forgeotdarc
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1134
Viktor Ferenczi added the comment:
This bug prevents me and many others to do preliminary testing on Py3k,
which slows down it's development. This bug is _really_ hurts. I've a
completely developed new module for Py3k that cannot be released due to
this bug, since it's unit tests are affected by
Gabriel Genellina added the comment:
I think this methodref function is simpler and much less intrusive
--
nosy: +gagenellina
Added file: http://bugs.python.org/file8744/methodref.py
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1417
New submission from Joseph Armbruster:
Trunk revision: 58963
Description: No warning or error is reported it a file pointed to by
PYTHONSTARTUP is not readable.
Request: To display a warning so that the user may be notified.
Note: Errors that may occur in PyRun_SimpleFileExFlags are being
Guido van Rossum added the comment:
Is this also broken in the 3.0a1 release? If not, it might be useful
to try to find the most recent rev where it's not broken.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1134
__
Changes by Gabriel Genellina:
--
nosy: +gagenellina
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1431
__
___
Python-bugs-list mailing list
Unsubscribe:
44 matches
Mail list logo