[issue7229] Manual entry for time.daylight can be misleading

2011-07-09 Thread Kenyon Ralph

Changes by Kenyon Ralph :


--
nosy: +kralph

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12470] Fix cut&paste typo in test_shutil

2011-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset f92bf428c647 by Senthil Kumaran in branch '3.2':
Fix closes issue issue12470 - check for utime for the skipUnless condition.
http://hg.python.org/cpython/rev/f92bf428c647

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12438] IDLE problem displaying warning message

2011-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 7dd9313c300b by Senthil Kumaran in branch '3.2':
Fix closes issue12438  - idlelib.PyShell's showformatwarning method was passing 
an incorrect arg.
http://hg.python.org/cpython/rev/7dd9313c300b

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12429] test_io.check_interrupted_write() sporadic failures on FreeBSD 6 on Python 2.7/3.2

2011-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset ad16e4a0ef80 by Victor Stinner in branch '3.2':
Issue #12429: Skip interrupted write tests on FreeBSD <= 7
http://hg.python.org/cpython/rev/ad16e4a0ef80

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12486] tokenize module should have a unicode API

2011-07-09 Thread STINNER Victor

STINNER Victor  added the comment:

The compiler has a PyCF_SOURCE_IS_UTF8 flag: see compile() builtin. The parser 
has a flag to ignore the coding cookie: PyPARSE_IGNORE_COOKIE.

Patch tokenize to support Unicode is simple: use PyCF_SOURCE_IS_UTF8 and/or 
PyPARSE_IGNORE_COOKIE flags and encode the strings to UTF-8.

Rewrite the parser to work directly on Unicode is much more complex and I don't 
think that we need that.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12510] IDLE get_the_calltip mishandles raw strings

2011-07-09 Thread Ned Deily

Ned Deily  added the comment:

The problem is easily reproducible.  Although it shouldn't give that error (and 
that can be fixed), it seems to me that IDLE should not be trying to give a 
calltip in that context. What it is trying to do is display the __doc__ 
attribute of the string but the __doc__ is really for the str() constructor:

>>> 'a'.__doc__
"str(string[, encoding[, errors]]) -> str\n\nCreate a new string object from 
the given encoded string.\nencoding defaults to the current default string 
encoding.\nerrors can be 'strict', 'replace' or 'ignore' and defaults to 
'strict'."

--
nosy: +ned.deily

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12522] Implement `os.startfile` under Linux and Mac

2011-07-09 Thread Ram Rachum

New submission from Ram Rachum :

I want to use `os.startfile` to open a folder in Explorer/Nautilus/Finder. The 
documentation says that it's only implemented on Windows:

http://docs.python.org/dev/library/os.html#os.startfile

See discussion on Python-ideas here:
https://groups.google.com/forum/?hl=en#!topic/python-ideas/LL0SavbKrEA


Is there a good reason why `os.startfile` is implemented only on Windows?

--
components: Library (Lib)
messages: 140057
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Implement `os.startfile` under Linux and Mac
versions: Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12522] Implement `os.startfile` under Linux and Mac

2011-07-09 Thread Ross Lagerwall

Ross Lagerwall  added the comment:

I think this is a duplicate of #3177.

--
nosy: +rosslagerwall
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3177] implement os.startfile on posix and MacOSX

2011-07-09 Thread Ross Lagerwall

Ross Lagerwall  added the comment:

Closed #12522 as a duplicate.

It contains a link to a discussion on python-ideas requesting the feature.

--
nosy: +rosslagerwall
versions: +Python 3.3 -Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3177] implement os.startfile on posix and MacOSX

2011-07-09 Thread Ram Rachum

Changes by Ram Rachum :


--
nosy: +cool-RR

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12418] python should inherit the library search path from the compiler for stdlib extensions

2011-07-09 Thread Matthias Klose

Matthias Klose  added the comment:

I don't think so. But maybe it would be enough to special case GCC as a unix 
compiler? At least there are already autoconf checks trying to detect gcc.

--
nosy: +doko

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-09 Thread Matthias Klose

Matthias Klose  added the comment:

while this is sorted out, I propose to apply the following workaround not to 
introduce `linux3', at least for the branches:

--- a/configure.in  2011-06-11 17:46:28.0 +0200
+++ b/configure.in  2011-06-19 22:32:05.852934453 +0200
@@ -293,6 +293,7 @@
MACHDEP="$ac_md_system$ac_md_release"
 
case $MACHDEP in
+   linux3) MACHDEP="linux2";;
cygwin*) MACHDEP="cygwin";;
darwin*) MACHDEP="darwin";;
atheos*) MACHDEP="atheos";;

--
nosy: +doko
versions: +Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-09 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> while this is sorted out, I propose to apply the following workaround
> not to introduce `linux3', at least for the branches:

It's too late, since existing versions won't have the patch and will
show "linux3" when the kernel gets upgraded.

I think we'd better bite the bullet and accept the "linux3" value.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-09 Thread Matthias Klose

Matthias Klose  added the comment:

about the plat-*/ files:

they are even wrong for some linux architectures, because some constants like 
the DLFCN constants have different values depending on the 
platform/architecture (can't find the issue proposing architecture dependent 
plat-linux2- directories).

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 53d2d30d6ca0 by Antoine Pitrou in branch '2.7':
Issue #12326: document the recommended idiom for checking sys.platform on Unix 
systems.
http://hg.python.org/cpython/rev/53d2d30d6ca0

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-07-09 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 8bc9dbc61ba6 by Antoine Pitrou in branch '3.2':
Issue #12326: document the recommended idiom for checking sys.platform on Unix 
systems.
http://hg.python.org/cpython/rev/8bc9dbc61ba6

New changeset 19b3b2d93a63 by Antoine Pitrou in branch 'default':
Issue #12326: document the recommended idiom for checking sys.platform on Unix 
systems.
http://hg.python.org/cpython/rev/19b3b2d93a63

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12519] Call next version 3.3.0

2011-07-09 Thread Éric Araujo

Éric Araujo  added the comment:

Benjamin committed 2ebcbdca0dee for patchlevel.h, but idlever, 
distutils.__init__ and others are not edited yet.

--
nosy: +benjamin.peterson

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12519] Call next version 3.3.0

2011-07-09 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

2011/7/9 Éric Araujo :
>
> Éric Araujo  added the comment:
>
> Benjamin committed 2ebcbdca0dee for patchlevel.h, but idlever, 
> distutils.__init__ and others are not edited yet.

I don't care that much. When the tree is bumped to 3.0.0a1, those'll be fixed.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12519] Call next version 3.3.0

2011-07-09 Thread Éric Araujo

Éric Araujo  added the comment:

Then this is done.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8639] Allow callable objects in inspect.getargspec

2011-07-09 Thread Éric Araujo

Éric Araujo  added the comment:

Adding to nosy the developers who last touched inspect.

--
nosy: +benjamin.peterson, eric.araujo, michael.foord, ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8639] Allow callable objects in inspect.getargspec

2011-07-09 Thread Éric Araujo

Changes by Éric Araujo :


--
versions:  -Python 2.7, Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5420] Queue deprecation warning patch

2011-07-09 Thread Éric Araujo

Éric Araujo  added the comment:

I think the docstrings of empty and full should mention they’re obsolete, to 
make users of pydoc or other tools aware of the deprecation before they write 
code using them.

--
nosy: +eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11339] annotation for class being defined

2011-07-09 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1553375] Add traceback.print_full_exception()

2011-07-09 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +haypo

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11365] Integrate Buildroot patches (cross-compilation)

2011-07-09 Thread Éric Araujo

Éric Araujo  added the comment:

No, they’re not the same.

See also my listing of (most of the) cross-compile patches: 
http://mail.python.org/pipermail/python-dev/2011-March/110099.html

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11682] PEP 380 reference implementation for 3.3

2011-07-09 Thread Nick Coghlan

Nick Coghlan  added the comment:

Once again got close to committing this, but then realised it is missing all 
the necessary documentation updates for a core language change.

I have uploaded a patch that includes all the changes from Bitbucket as well as 
the subsequent fixes to avoid modifying sys.stdout when the tests are run and 
to comply with the whitespace rules set up in the source control hooks (the 
ACKS, NEWS and a placeholder in whatsnew are also included).

What's missing are updates to at least:

http://docs.python.org/dev/tutorial/classes.html#generators
(a simple example showing delegation should suffice there)

http://docs.python.org/dev/reference/simple_stmts.html#the-yield-statement
http://docs.python.org/dev/reference/expressions.html#grammar-token-yield_expression
http://docs.python.org/dev/reference/simple_stmts.html#the-return-statement
(the language reference must be updated for a post PEP 380 world)

There are likely other places that should also be updated, but these are the 
critical ones needed before the patch can be included.

--
keywords: +patch
nosy: +gcewing
Added file: http://bugs.python.org/file22616/pep380-missing-docs.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8639] Allow callable objects in inspect.getargspec

2011-07-09 Thread Daniel Urban

Changes by Daniel Urban :


--
nosy: +durban

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8639] Allow callable objects in inspect.getargspec

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11339] annotation for class being defined

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1294232] Error in metaclass search order

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5996] abstract class instantiable when subclassing dict

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12486] tokenize module should have a unicode API

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10403] Use "member" consistently

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12491] Update glossary documentation for the term 'attribute'

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2377] Replace __import__ w/ importlib.__import__

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12374] Execution model should explain compile vs definition vs execution time

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11435] Links to source code should now point to hg repo

2011-07-09 Thread Eric Snow

Changes by Eric Snow :


--
nosy: +ericsnow

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2011-07-09 Thread Gry

New submission from Gry :

Asynchat push() function has a bug which prevents it from functioning.

This code worked fine with Python 2.

---
# https://github.com/jstoker/BasicBot
import asynchat,asyncore,socket
class asynchat_bot(asynchat.async_chat):
def __init__(self, host, port):
asynchat.async_chat.__init__(self)
self.create_socket(socket.AF_INET,socket.SOCK_STREAM)
self.set_terminator('\r\n')
self.data=''
self.remote=(host,port)
self.connect(self.remote)

def handle_connect(self):
self.push('USER BasicBot 8 %s :BasicBot! 
http://github.com/jstoker/BasicBot\r\nNICK testbot\r\n' % self.remote[0])

def get_data(self):
r=self.data
self.data=''
return r
def collect_incoming_data(self, data):
self.data+=data
def found_terminator(self):
data=self.get_data()
if data[:4] == 'PING':
self.push('PONG %s' % data[5:]+'\r\n')
if '001' in data:
self.push('JOIN #bots\r\n')
if '~hi' in data:
self.push('PRIVMSG #bots :hi.\r\n')
if __name__ == '__main__':
asynchat_bot('127.0.0.1',16667)
asyncore.loop()
---


In Python 3 however, the exception follows:


---
~/tests/BasicBot$ python3 asynchat_bot.py
error: uncaptured python exception, closing channel <__main__.asynchat_bot 
connected at 0xb70078ac> (:'str' object has no 
attribute 'more' [/usr/lib/python3.2/asyncore.py|write|89] 
[/usr/lib/python3.2/asyncore.py|handle_write_event|462] 
[/usr/lib/python3.2/asynchat.py|handle_write|194] 
[/usr/lib/python3.2/asynchat.py|initiate_send|245])
~/tests/BasicBot$ python3 -V
Python 3.2
~/tests/BasicBot$
---

A comment from Stackoverflow on why it happens:

---
The error seems to be raised in 
/usr/lib/python3.2/asynchat.py|initiate_send|245.

def initiate_send(self):
while self.producer_fifo and self.connected:
first = self.producer_fifo[0]
...
try:
data = buffer(first, 0, obs)
except TypeError:
data = first.more() <--- here 

Seems like somebody put a string in self.producer_fifo instead of an 
asyncchat.simple_producer, which is the only class in async*.py with a more() 
method.

--
components: None
messages: 140073
nosy: Gry
priority: normal
severity: normal
status: open
title: 'str' object has no attribute 'more' 
[/usr/lib/python3.2/asynchat.py|initiate_send|245]
type: crash
versions: Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2011-07-09 Thread Jimmy Cao

Changes by Jimmy Cao :


--
nosy: +jcao219

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com