Ezio Melotti added the comment:
I wonder is there is something wrong with the repository.
The repo looks ok to me. You could try to run hg verify on your machine id
you want to make sure your clone is ok.
I wrote about the problem on the committer's list a few days ago,
but got no
Nick Coghlan added the comment:
Just a quick note on the directory naming: idlelib/idle_test sounds like a good
option to me.
Putting it under idlelib makes it easy for distros to carve it out along with
the rest of Idle, as well as making it clear that it falls under the purview of
PEP 434
Marc-Andre Lemburg added the comment:
On 15.05.2013 01:28, Amaury Forgeot d'Arc wrote:
Amaury Forgeot d'Arc added the comment:
The official way to build without unicode is
./configure --enable-unicode=no
But see issue17979.
The official way to build without Unicode is:
./configure
Marc-Andre Lemburg added the comment:
Please note that the official way to build Python without Unicode
support is (see http://bugs.python.org/issue445762):
./configure --disable-unicode
See http://bugs.python.org/issue8767 for the most recent set of fixes
that were supplied to make it work
Terry J. Reedy added the comment:
Ezio, thank you for the response.
1. I care more about where the directory of tests is than what it is called.
'idle_test' or 'idletest' or whatever would be fine. Lets make that the last
bikeshed item ;-).
2. I looked as #10572. It was originally about
Terry J. Reedy added the comment:
For future reference, there is an idle specific issue that I do not think has
been mentioned yet. Idle can run in one process, but the default mode now, and
perhaps only mode sometime in the future, is two processes communicating
through a socket. Testing two
Terry J. Reedy added the comment:
Thanks Nick. Tomorrow I should change the directory name, delete try-except,
commit, and move onward on the path laid out.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15392
Serhiy Storchaka added the comment:
I can't reproduce this when build with --disable-unicode.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17979
___
Changes by Jaakko Moisio jaakko.moi...@aalto.fi:
Added file: http://bugs.python.org/file30266/fileobject-fix4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17976
___
Jaakko Moisio added the comment:
I tried to reply to the review of my last patch but this tracker software
itself crashed. Is there anyone who would be interested in the traceback?
Anyway, I'll reply here.
On 2013/05/15 08:37:29, Charles-François Natali wrote:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17979
___
Michael Foord added the comment:
Discovery from a module importing main doesn't make sense (although from a
*script* importing main it does).
So long as python -m unittest -v continues to launch discovery, and the
positional argument form of discovery still works, then the new patch looks
New submission from Florian Weimer:
If the name in the certificate contains many * characters, matching the
compiled regular expression against the host name can take a very long time.
Certificate validation happens before host name checking, so I think this is a
minor issue only because it
Jaakko Moisio added the comment:
I tried to reply to the review of my last patch but this tracker
software itself crashed. Is there anyone who would be interested in
the traceback?
Never mind. I found the meta tracker and posted my traceback there.
--
Roundup Robot added the comment:
New changeset 4f594f9b296a by doko in branch '2.7':
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
http://hg.python.org/cpython/rev/4f594f9b296a
--
nosy: +python-dev
___
Python tracker
New submission from Julien Palard:
I have a script that close its socket to /dev/log immediatly before using it,
causing it to fail, here is the code :
{{{
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import logging.handlers
import daemon
from daemon.pidlockfile import
Ezio Melotti added the comment:
Having idle_test under idlelib is fine with me if it makes your life easier.
3. Many modules have more or useless 'sanity-check' tests run
with the 'if __name__' mechanism. I think *all* of these should
be replaced with unittest.main(xxx, verbosity=2,
Геннадий Егоров added the comment:
i think it is not good, len(fd) must raise AttributeError, not TypeError
--
nosy: +Геннадий.Егоров
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15267
___
Roundup Robot added the comment:
New changeset d6a43a99aea3 by doko in branch '3.3':
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
http://hg.python.org/cpython/rev/d6a43a99aea3
New changeset 9a44f12df844 by doko in branch 'default':
- Issue #17754: Make
Matthias Klose added the comment:
fixed in 2.7, 3.3 and trunk
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17754
New submission from Hugh Littlejohn:
New to Python, acquired Raspberry PI. Upgraded and now have IDLE and IDLE3.
Python 3.2.3 (default, Mar 1 2013, 11:53:50) (GNU 4.6.3] on Linux2
First task, New Window to create Hello, World!
Using IDLE3, created file helloworld.py
Using Run/ Check Module -
Ned Batchelder added the comment:
Python 3 has no print statement, it has a print function, so you need:
print(Hello, world!)
--
nosy: +nedbat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17982
Terry J. Reedy added the comment:
Tests have at least two very different purposes. One is test-driven development
of code (and tests) by developers. The other is regression detection by
buildbots. if __name__ in code modules, in addition to test modules, makes
the first much easier. First,
Antoine Pitrou added the comment:
Does the RFC say anything about this? How much wildcards are necessary to take
up a significant amount of CPU time?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17980
Terry J. Reedy added the comment:
Chris: import unittest as u; u.main(test.test_xxx)
Ezio: I think that's the last nail in the coffin of test_main.
Terry, do you agree?
Belated answer: now that I use and understand the idiom, yes.
Chris: The load_tests protocol (2.7, 3.2+) seems like the
New submission from Dwight Guth:
The following python program causes cpython to crash:
class A:
global __class__
def a(self):
super()
I get the following output on the console:
bug.py:2: SyntaxWarning: name '__class__' is assigned to before global
declaration
global __class__
Changes by Benjamin Peterson benja...@python.org:
--
assignee: - benjamin.peterson
nosy: +benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17983
___
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13146
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
Here is other variant of patch, even less horrible. However it introduces some
incompatibility:
1. Discovery mode now works only when module==None (i.e. from -m unittest).
It is only case for which it was documented.
2. Previously
Changes by Barry A. Warsaw ba...@python.org:
--
nosy: +barry
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8604
___
___
Python-bugs-list mailing
New submission from Serhiy Storchaka:
io and _pyio modules don't usable without the _io module. In particular when
2.7 build without unicode. Why we have a Python implementation if it can't be
used as a fallback when a C implementation is not available?
--
components: IO
messages:
Benjamin Peterson added the comment:
Well, we at least need some C level _fileio.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17984
___
___
Benjamin Peterson added the comment:
Patches welcome, of course!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17984
___
___
Python-bugs-list
Alex Gaynor added the comment:
I don't see why we need some C level _fileio, the os module has everythign we
need.
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17984
___
Roundup Robot added the comment:
New changeset 3d858f1eef54 by Benjamin Peterson in branch 'default':
hide the __class__ closure from the class body (#12370)
http://hg.python.org/cpython/rev/3d858f1eef54
--
___
Python tracker rep...@bugs.python.org
Benjamin Peterson added the comment:
Finally killed this one properly.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12370
___
Eric Promislow added the comment:
I found a workaround in our debugger code, so you can lower the priority on
this, or even mark it Wontfix, although I still
think the frame stack is getting messed up.
One thing about our debugger, it essentially runs all the Python code in a big
exec
New submission from Andre Dias:
The problem is that Queue.empty() is True even if Queue.qsize()0!
#!/usr/bin/python
from multiprocessing import Queue
numbers=Queue()
for i in range (0,10):
numbers.put(i)
if numbers.qsize()0 and numbers.empty():
print BUG?!
--
components:
Terry J. Reedy added the comment:
Please ask questions like this on python-list, mirrored as newsgroup
gmane.comp.python.general or on other forums. This tracker is for patching
Python itself, not usage questions.
--
nosy: +terry.reedy
resolution: - invalid
status: open - closed
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +vinay.sajip
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17981
___
___
Python-bugs-list
New submission from Richard Oudkerk:
In the attached file is an experimental implementation of an AsyncPopen
class. It should work for Python 3.3, 3.4 on Unix and Windows. Unlike
http://code.google.com/p/subprocdev
(see #1191964) this does not depend on using time.sleep() and polling.
It
Richard Oudkerk added the comment:
From the docs:
qsize()
Return the approximate size of the queue. Because of
multithreading/multiprocessing semantics, this number
is not reliable.
Adding a short sleep before calling qsize() and empty() should make things
appear to work.
But
Roundup Robot added the comment:
New changeset cd9141a4f999 by Benjamin Peterson in branch '3.3':
complain about global __class__ in a class body (closes #17983)
http://hg.python.org/cpython/rev/cd9141a4f999
--
nosy: +python-dev
resolution: - fixed
stage: - committed/rejected
status:
Benjamin Peterson added the comment:
If you ever find a Python bug, feel free to reopen.
--
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17971
Terry J. Reedy added the comment:
I do not know what you mean by 'leak docs' so I changed the title to something
that makes more sense. It is possible that these functions are considered
private to the module, but then their names should be preceded by '_', or else
there should be an
Andre Dias added the comment:
But qsize() is working. what is not working is empty()
2013/5/15 Richard Oudkerk rep...@bugs.python.org
Richard Oudkerk added the comment:
From the docs:
qsize()
Return the approximate size of the queue. Because of
multithreading/multiprocessing
Terry J. Reedy added the comment:
Did you run the urllib test module after your code change?
Have you tried 3.3?
--
nosy: +orsenthil, terry.reedy
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17967
New submission from Fred L. Drake, Jr.:
The captured_stderr and captured_stdin context managers aren't documented, and
should be.
--
assignee: docs@python
components: Documentation
keywords: easy
messages: 189311
nosy: docs@python, fdrake
priority: normal
severity: normal
stage: needs
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: +bethard
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17965
___
___
Python-bugs-list mailing
Changes by Josh Purvis joshua.pur...@gmail.com:
--
nosy: +Josh.Purvis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17981
___
___
Python-bugs-list
Terry J. Reedy added the comment:
sys.modules
This is a dictionary that maps module names to modules which have already
been loaded. This can be manipulated to force reloading of modules and other
tricks.
How about adding at the end
However, replacing or clearing it may cause Python to
Nick Coghlan added the comment:
Terry, the unittest and regrtest command lines are *built* for TDD - you
rely on test discovery and selection to run the appropriate tests for what
you're working on.
However, the point about F5 in IDLE is well made, and a reasonable
rationale for ensuring at
Amaury Forgeot d'Arc added the comment:
Can't build here with after ./configure --disable-unicode.
Serhiy, which OS did you try? I'm running Debian 64bit, with gcc 4.6.3
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17979
Richard Oudkerk added the comment:
On 15/05/2013 10:25pm, Andre Dias wrote:
But qsize() is working. what is not working is empty()
empty() returns False when there is data in the underlying pipe. But
the data does not enter the pipe until a background thread has written
it to the pipe.
Martin v. Löwis added the comment:
I have now updated the code.
Yogesh: It is somewhat more that just committing the source; the assembler
files need to be generated. The objective is to not require Perl on the build
machines.
--
status: open - closed
Andre Dias added the comment:
RIchard,
But the example program has no races, no threads, nothing.
empty() is returning TRUE even though qsize() is 0 (which actually is)
And it happens almost every time I run that small example.
I had read the module doc, and I know its an unreliable method, but
Brett Cannon added the comment:
Sounds good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17953
___
___
Python-bugs-list mailing list
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17986
___
___
Python-bugs-list mailing
New submission from Jakub Wilk:
The xml.etree.ElementTree module provides _Element and _ElementInterface as
compatibility aliases for Element. However, in Python 3.3 if the _elementtree
module is importable, these classes are not identical: Element is a C
implementation, and
Jakub Wilk added the comment:
The attached (untested) patch should fix the bug.
--
keywords: +patch
Added file: http://bugs.python.org/file30271/elementinterface.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17988
Richard Oudkerk added the comment:
On 15/05/2013 11:33pm, Andre Dias wrote:
But the example program has no races, no threads, nothing.
empty() is returning TRUE even though qsize() is 0 (which actually is)
And it happens almost every time I run that small example.
I had read the module doc,
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +eli.bendersky
stage: - patch review
type: - behavior
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17988
___
New submission from Jakub Wilk:
Setting attributes on ElementTree.Element objects is broken: it succeeds
without exception, but then the following statement fails with AttributeError
(unless that statement sets an Element's attribute too):
$ python3.3 test-element-setattr.py
Hello
Vinay Sajip added the comment:
Isn't this a case of handles being closed in the child after a fork, by the
daemon module? Have you investigated the files_preserve option in DaemonContext?
--
resolution: - invalid
status: open - pending
___
Python
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13146
___
___
STINNER Victor added the comment:
Here is a patch based on the new os.replace() function. I only tested the patch
on Linux.
My patch must be tested on Windows, I don't know what happens when the file
object is closed when the NamedTemporaryFile.delete attribute is set to False.
Does close()
STINNER Victor added the comment:
+ # Flush Python buffers to system buffers
+ fileobj.flush()
+
+ if hasattr(os, 'fsync'):
+ # Flush system buffers to disk
+ fd = fileobj.fileno()
+ os.fsync(fd)
A fsync=True paramater may be added if calling
Josh Purvis added the comment:
Ironically, I ran into this same exact issue today, and I have investigated the
`files_preserve` param, with no luck. I'm not too familiar with the internals
here, but from what I can tell it works with FileHandler, but not the
SysLogHandler.
If you try to add
New submission from Ned Deily:
For Issue17086, 8ee6d96a1019 backported some cross-build patches to the 2.7
branch. The changes to setup.py detect_modules differ in the backport from
those in default. In particular, in default, changes to the library and include
directory lists used to build
Changes by Ned Deily n...@acm.org:
--
keywords: +patch
Added file: http://bugs.python.org/file30274/issue17990.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17990
___
Matthias Klose added the comment:
I don't see how this would break the cross builds, so please go ahead with this
change.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17990
___
STINNER Victor added the comment:
I prefer to use tempfile.NamedTemporaryFile because it is portable and well
tested. It also uses a random suffix. On Windows, the O_TEMPORARY flag is
passed to os.open(), ...
Oh, and it sets also the close-on-exec safe, which is also more secure.
--
STINNER Victor added the comment:
atomic_write.patch calls os.replace(src, dst) whereas the src file is open. It
works on Linux, but it sounds a little bit strange to me and may fail on other
platforms.
Here is another patch (atomic_write_mkstemp.patch) using tempfile.mkstemp()
instead of
STINNER Victor added the comment:
What is the status of this issue? This issue is interesting in the
implementation of #8604 (add shutil.atomic_write()).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11877
STINNER Victor added the comment:
Here's the part of the code that does the open/close part:
http://bazaar.launchpad.net/~exabyte/blackherd/async-refactor/view/61/blackherd/misc.py#L498
This code contains a bug: hasattr('os', 'fsync') is never True :-)
This part is interesting:
#
Nick Coghlan added the comment:
We have one of these in Beaker (we didn't need to wait for os.replace, since
Beaker only runs on Linux):
http://git.beaker-project.org/cgit/beaker/tree/Common/bkr/common/helpers.py?h=develop#n90
It turns out to be beneficial to separate the three operations in
Nick Coghlan added the comment:
(Note that the Beaker version would need to be enhanced with the extra API
parameters from Victor's version, as well as updated to use the exclusive open
and close-on-exec flags)
--
___
Python tracker
Roundup Robot added the comment:
New changeset cd577c328886 by Ned Deily in branch '2.7':
Issue #17990: Only modify include and library search paths when cross-compiling.
http://hg.python.org/cpython/rev/cd577c328886
--
nosy: +python-dev
___
Python
Ned Deily added the comment:
Applied to 2.7 branch. Leaving the issue open for release manager action for
2.7.5.
--
components: +Cross-Build
resolution: - fixed
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
xiaobing jiang added the comment:
when I read the memory_profiler source code, I find it using
inspect.getblock(). so I check the doc, but can't find the function's doc.
these functions are found not in doc. I want to known which function should in
doc or not? in inspect module has no
New submission from Steven Barker:
While investigating a Stack Overflow question
(http://stackoverflow.com/questions/16484764/multiprocessing-value-clear-syntax)
I came across a misleading error message from the multiprocessing.Value
constructor:
import multiprocessing
my_char = x
v =
Changes by Steven Barker blckkn...@gmail.com:
--
components: +ctypes -Library (Lib)
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17991
___
___
Terry J. Reedy added the comment:
New patch: I renamed Itest to idle_test everywhere and re-ran tests; removed
try-except from test_pathbrowser.py; and renamed @template to @README and
rewrote. It applies cleanly to 3.4 on my system. The only problem applying to
2.7 is CallTips.py, which has
Changes by Brian Curtin br...@python.org:
--
type: compile error - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17992
___
___
New submission from Carlos Nepomuceno:
after running 'make' i entered 'make test' and it hanged on test_asynchat.
stayed there for more than 1 hour.
---
Python build finished, but the necessary bits to build these modules were not
found:
_bsddb _tkinter bsddb185
bz2
Changes by Carlos Nepomuceno nepomucenocarlo...@gmail.com:
Removed file: http://bugs.python.org/file30278/test_asynchat.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17992
___
Changes by Carlos Nepomuceno nepomucenocarlo...@gmail.com:
Removed file: http://bugs.python.org/file30277/test_asynchat.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17992
___
Changes by Carlos Nepomuceno nepomucenocarlo...@gmail.com:
Added file: http://bugs.python.org/file30278/test_asynchat.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17992
___
Changes by Carlos Nepomuceno nepomucenocarlo...@gmail.com:
Added file: http://bugs.python.org/file30279/test_asynchat.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17992
___
Benjamin Peterson added the comment:
The 32-bit OSX binary was patched manually.
--
components: -Cross-Build
stage: committed/rejected - patch review
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17990
Changes by Benjamin Peterson benja...@python.org:
--
components: +Cross-Build
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17990
___
___
91 matches
Mail list logo