[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

2013-12-25 Thread Igor Franchuk

New submission from Igor Franchuk:

Missing CAN_RAW check in Python 3.3.3

Python 3.3.3 assumes that if AF_CAN is defined then CAN_RAW is defined as well.

It won't assemble with old kernels. 

Either an additional check for CAN_RAW should be applied in the configuration 
script or Python 3.3.3 dependence on the newest kernels should be made mandatory
(configure check). It could be back to normal if a CAN_RAW check is applied and 
the problematic part of code is excluded. 

Python 3.3.3 can work with sockets without full CAN support but it won't.

Environment:

System uname: 
Linux-2.6.33-gentoo-i686-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with-gentoo-1.12.1
Timestamp of tree: Sun, 22 Dec 2013 09:30:01 +
ld GNU ld (GNU Binutils) 2.21
app-shells/bash:  4.2_p37
dev-lang/python:  2.4.3-r1::, 2.6.8, 2.7.3-r3, 
3.1.1-r1, 3.2.3-r2
dev-util/pkgconfig:   0.27.1
sys-apps/baselayout:  1.12.1::
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf:   2.13::, 2.69
sys-devel/automake:   1.4_p6::, 1.5::, 1.6.3::, 1.7.9-r1::, 
1.8.5-r3::, 1.9.6-r2::, 1.10::, 1.11.1, 1.13.1
sys-devel/binutils:   2.21
sys-devel/gcc:4.1.1::, 4.2.4-r1, 4.4.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:1.5.23b::, 2.4-r1
sys-devel/make:   3.82-r4
sys-kernel/linux-headers: 2.6.21:: (virtual/os-headers)
sys-libs/glibc:   2.10.1-r1
Repositories: gentoo
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ 
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild 
/etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks 
ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox 
sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org";
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --stats --human-readable --timeout=180 
--exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa arts avi berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt 
cups cxx dbus dlloader dri dvd dvdr eds emboss encode esd fam fortran gdbm gif 
gnutls gpm gstreamer gtk hal iconv isdnlog jpeg kde ldap libg++ mad mikmod 
modules mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam 
pcre pdflib perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl 
session spell spl ssl svg symlink tcpd truetype truetype-fonts type1-fonts udev 
unicode vorbis win32codecs x86 xml xorg xv zlib" ABI_X86="32" 
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 
emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m 
maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 
APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias 
auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm 
authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache 
cgi cgid dav dav_fs dav_lock
  deflate dir disk_cache env expires ext_filter file_cache filter headers 
include info log_config logio mem_cache mime mime_magic negotiation rewrite 
setenvif speling status unique_id userdir usertrack vhost_alias" 
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon 
braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory 
rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate 
evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom 
oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip 
tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" 
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses 
text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" 
OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" 
PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" 
RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="
 fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident 
vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 
ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal 
rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, 
PORTAGE_BUNZI

[issue20058] IDLE's shell returns a multiple-line string to input() or readline() when multiple lines of text are pasted by the user

2013-12-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue20058] IDLE's shell returns a multiple-line string to input() or readline() when multiple lines of text are pasted by the user

2013-12-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 526dcd51e425 by Serhiy Storchaka in branch '2.7':
Issue #20058: sys.stdin.readline() in IDLE now always returns only one line.
http://hg.python.org/cpython/rev/526dcd51e425

New changeset 8f75d8ddc95b by Serhiy Storchaka in branch '3.3':
Issue #20058: sys.stdin.readline() in IDLE now always returns only one line.
http://hg.python.org/cpython/rev/8f75d8ddc95b

--
nosy: +python-dev

___
Python tracker 

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



[issue20058] IDLE's shell returns a multiple-line string to input() or readline() when multiple lines of text are pasted by the user

2013-12-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2a4c083f8f6b by Serhiy Storchaka in branch 'default':
Issue #20058: sys.stdin.readline() in IDLE now always returns only one line.
http://hg.python.org/cpython/rev/2a4c083f8f6b

--

___
Python tracker 

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



[issue20058] IDLE's shell returns a multiple-line string to input() or readline() when multiple lines of text are pasted by the user

2013-12-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Fixed. Thank you Steven for your report.

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

___
Python tracker 

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



[issue20066] PyStructSequence_NewType() not setting proper heap allocation flag?

2013-12-25 Thread Wolf Ihlenfeldt

New submission from Wolf Ihlenfeldt:

If I am not mistaken, I think that PyStructSequence_NewType() should set the 
Py_TPFLAGS_HEAPTYPE flag in tp->flags (which it currently does not). The 
original version initially works fine, but ultimately crashes at exit time in 
finalization with

Fatal Python error: type_traverse() called for non-heap type 'E_FILE'

#0  0x712913d5 in raise () from /lib64/libc.so.6
#1  0x71292858 in abort () from /lib64/libc.so.6
#2  0x72360484 in Py_FatalError (msg=) at 
Python/pythonrun.c:2364
#3  0x722e5354 in type_traverse (type=0x10b47a0, visit=0x72374350 
, arg=0x0)
at Objects/typeobject.c:2892
#4  0x72374bd1 in subtract_refs (containers=0x726466c0) at 
Modules/gcmodule.c:386
#5  collect (n_uncollectable=, n_collected=, generation=2)
at Modules/gcmodule.c:891
#6  collect_with_callback (generation=2) at Modules/gcmodule.c:1048
#7  0x72375436 in PyGC_Collect () at Modules/gcmodule.c:1476
#8  0x7235f698 in Py_Finalize () at Python/pythonrun.c:521
#9  0x76e70b70 in CSpythonFinalize () at nmds_python.c:44652
#10 0x00407399 in main ()

Setting the flag manually after creation lets the problem disappear.

--
messages: 206923
nosy: Wolf.Ihlenfeldt
priority: normal
severity: normal
status: open
title: PyStructSequence_NewType() not setting proper heap allocation flag?
type: crash
versions: Python 3.3

___
Python tracker 

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



[issue19020] Regression: Windows-tkinter-idle, unicode, and 0xxx filename

2013-12-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ff70c298dd60 by Serhiy Storchaka in branch '2.7':
Issue #19020: Tkinter now uses splitlist() instead of split() in configure
http://hg.python.org/cpython/rev/ff70c298dd60

New changeset a8f5f8c44dc8 by Serhiy Storchaka in branch '3.3':
Issue #19020: Tkinter now uses splitlist() instead of split() in configure
http://hg.python.org/cpython/rev/a8f5f8c44dc8

New changeset c6ba24ffa4ba by Serhiy Storchaka in branch 'default':
Issue #19020: Tkinter now uses splitlist() instead of split() in configure
http://hg.python.org/cpython/rev/c6ba24ffa4ba

--
nosy: +python-dev

___
Python tracker 

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



[issue19020] Regression: Windows-tkinter-idle, unicode, and 0xxx filename

2013-12-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> commit review
versions: +Python 2.7

___
Python tracker 

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



[issue19320] Tkinter tests ran with wantobjects is false

2013-12-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 6fe3e855a276 by Serhiy Storchaka in branch '2.7':
Issue #19320: test_tcl no longer fails when wantobjects is false.
http://hg.python.org/cpython/rev/6fe3e855a276

New changeset 6781a03d90c1 by Serhiy Storchaka in branch '3.3':
Issue #19320: test_tcl no longer fails when wantobjects is false.
http://hg.python.org/cpython/rev/6781a03d90c1

New changeset 78fa6dc5cc21 by Serhiy Storchaka in branch 'default':
Issue #19320: test_tcl no longer fails when wantobjects is false.
http://hg.python.org/cpython/rev/78fa6dc5cc21

--
nosy: +python-dev

___
Python tracker 

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



[issue20067] Tkinter variables no works with wantobject is false

2013-12-25 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Tkinter variables test fails when wantobjects is false:

==
ERROR: test_default (__main__.TestVariable)
--
Traceback (most recent call last):
  File "Lib/tkinter/test/test_tkinter/test_variables.py", line 29, in 
test_default
self.assertEqual("", v.get())
  File "/home/serhiy/py/cpython/Lib/tkinter/__init__.py", line 239, in get
return self._tk.globalgetvar(self._name)
_tkinter.TclError: can't read "PY_VAR0": no such variable

==
ERROR: test_default (__main__.TestStringVar)
--
Traceback (most recent call last):
  File "Lib/tkinter/test/test_tkinter/test_variables.py", line 79, in 
test_default
self.assertEqual("", v.get())
  File "/home/serhiy/py/cpython/Lib/tkinter/__init__.py", line 291, in get
value = self._tk.globalgetvar(self._name)
_tkinter.TclError: can't read "PY_VAR2": no such variable

==
ERROR: test_default (__main__.TestIntVar)
--
Traceback (most recent call last):
  File "Lib/tkinter/test/test_tkinter/test_variables.py", line 92, in 
test_default
self.assertEqual(0, v.get())
  File "/home/serhiy/py/cpython/Lib/tkinter/__init__.py", line 313, in get
return getint(self._tk.globalgetvar(self._name))
_tkinter.TclError: can't read "PY_VAR3": no such variable

==
ERROR: test_default (__main__.TestDoubleVar)
--
Traceback (most recent call last):
  File "Lib/tkinter/test/test_tkinter/test_variables.py", line 114, in 
test_default
self.assertEqual(0.0, v.get())
  File "/home/serhiy/py/cpython/Lib/tkinter/__init__.py", line 332, in get
return getdouble(self._tk.globalgetvar(self._name))
_tkinter.TclError: can't read "PY_VAR4": no such variable

==
ERROR: test_default (__main__.TestBooleanVar)
--
Traceback (most recent call last):
  File "/home/serhiy/py/cpython/Lib/tkinter/__init__.py", line 352, in get
return self._tk.getboolean(self._tk.globalgetvar(self._name))
_tkinter.TclError: can't read "PY_VAR5": no such variable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "Lib/tkinter/test/test_tkinter/test_variables.py", line 141, in 
test_default
self.assertEqual(False, v.get())
  File "/home/serhiy/py/cpython/Lib/tkinter/__init__.py", line 354, in get
raise ValueError("invalid literal for getboolean()")
ValueError: invalid literal for getboolean()

==
FAIL: test___del__ (__main__.TestVariable)
--
Traceback (most recent call last):
  File "Lib/tkinter/test/test_tkinter/test_variables.py", line 38, in 
test___del__
self.assertFalse(self.root.call("info", "exists", "varname"))
AssertionError: '0' is not false

==
FAIL: test_dont_unset_not_existing (__main__.TestVariable)
--
Traceback (most recent call last):
  File "Lib/tkinter/test/test_tkinter/test_variables.py", line 45, in 
test_dont_unset_not_existing
self.assertFalse(self.root.call("info", "exists", "varname"))
AssertionError: '0' is not false

--

Here is a patch which fixes tkinter and tests.

--
assignee: serhiy.storchaka
components: Tkinter
files: tkinter_variables_wantobjects.patch
keywords: patch
messages: 206926
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Tkinter variables no works with wantobject is false
type: behavior
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33265/tkinter_variables_wantobjects.patch

___
Python tracker 

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



[issue19320] Tkinter tests ran with wantobjects is false

2013-12-25 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I don't know why wantobjects is false on some buildbots, but at least now they 
should be green.

--
resolution:  -> fixed
stage: patch review -> committed/rejected

___
Python tracker 

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



[issue20065] Python-3.3.3/Modules/socketmodule.c:1660:14: error: 'CAN_RAW' undeclared (first use in this function)

2013-12-25 Thread Igor Franchuk

Changes by Igor Franchuk :


--
type:  -> compile error

___
Python tracker 

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



[issue19761] test_tk fails on OS X with multiple test case failures with both Tk 8.5 and 8.4

2013-12-25 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2013-12-25 Thread Julian Gindi

Julian Gindi added the comment:

Looks like this issue has been resolved. Can we close it?

--

___
Python tracker 

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



[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2013-12-25 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Resolved in what way? The doc seems unchanged.

--

___
Python tracker 

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



[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2013-12-25 Thread Julian Gindi

Julian Gindi added the comment:

Sorry. I meant, merged.

--

___
Python tracker 

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



[issue18566] In unittest.TestCase docs for setUp() and tearDown() don't mention AssertionError

2013-12-25 Thread py.user

py.user added the comment:

I have built 3.4.0a4 and run - same thing

--

___
Python tracker 

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



[issue20046] Optimize locale aliases table

2013-12-25 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

I thought some more about this approach. I'm +1 on it. The locale
lookup is not time critical, so the table optimization makes sense.
Nice idea, Serhiy !

On 22.12.2013 00:38, Serhiy Storchaka wrote:
> 
> Serhiy Storchaka added the comment:
> 
>> * the patch seems to include some unrelated changes, e.g. the
>>   devanagari fixes and a few new mappings
> 
> May be. In any case I have added issue20027 as dependency. New mappings were 
> added when enable UTF-8 locales in makelocalealias.py (I can split this in 
> separate issue).

I think it's better to apply the patches separately, if that's
possible.

>> * the optimize step is called twice for some reason - is this
>>   intended ? if yes, please add a comment why this is done
> 
> Actually we should call it in a loop while the size of the table is decreased.

Ok, that makes sense. Still, please add a comment on why this is necessary.

>> * the patch would need some tests to make sure that the removed
>>   aliases indeed still map to the correct C locale strings
> 
> Currently the makelocalealias.py is such manual test. test_locale contains 
> multiple tests for different locales. I'll add several new cases.

Great.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

--

___
Python tracker 

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



[issue20063] Docs imply that set does not support .pop() method

2013-12-25 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3598805d7636 by R David Murray in branch '2.7':
#20063: Remove inaccurate/confusing statement about support of 'pop' method.
http://hg.python.org/cpython/rev/3598805d7636

--
nosy: +python-dev

___
Python tracker 

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



[issue20063] Docs imply that set does not support .pop() method

2013-12-25 Thread R. David Murray

R. David Murray added the comment:

Thanks, Gennandiy.

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

___
Python tracker 

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



[issue20068] collections.Counter documentation leaves out interesting usecase

2013-12-25 Thread Julian Gindi

New submission from Julian Gindi:

I think the documentation for collections.Counter can be updated slightly to 
include an example showing the initialization of a counter object from a list. 
For example, it explains how to manually iterate through a list and increment 
the values...

for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']:
... cnt[word] += 1

I think it is more useful and powerful to do something like this:

cnt = Counter(['red', 'blue', 'red', 'green', 'blue', 'blue'])

where the result would be:

Counter({'blue': 3, 'red': 2, 'green': 1})

Just a thought. I'm curious to see what other people think.

--
assignee: docs@python
components: Documentation
messages: 206935
nosy: Julian.Gindi, docs@python, rhettinger
priority: normal
severity: normal
status: open
title: collections.Counter documentation leaves out interesting usecase
type: enhancement
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

___
Python tracker 

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