ANN: Python Meeting Düsseldorf - 02.07.2014

2014-06-23 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Treffen

ANN: Python Meeting Düsseldorf - 02.07.2014

2014-06-23 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Treffen

Re: [RELEASE] Nevow 0.11.1

2014-06-23 Thread Jean-Michel Pichavant
- Original Message - Hello, I'm pleased to announce the release of Nevow 0.11.1. Nevow is a web application construction kit written in Python and based on Twisted. It is designed to allow the programmer to express as much of the view logic as desired in Python, and includes a

Re: old python

2014-06-23 Thread Steven D'Aprano
On Sun, 22 Jun 2014 13:18:09 -0700, arbautjc wrote: If anybody is interested... I think it's the same as the version unearthed recently [1], but here is a rather old version of Python on ftp: ftp://ftp.uni-duisburg.de/local/systems/unix/old_stuff/ [1]

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread William Ray Wing
On Jun 23, 2014, at 12:26 AM, smur...@gmail.com wrote: On Sunday, June 22, 2014 3:49:53 PM UTC+2, Roy Smith wrote: Can you give us some more quantitative idea of your requirements? How many objects? How much total data is being stored? How many queries per second, and what is the

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread Roy Smith
In article mailman.11202.1403534666.18130.python-l...@python.org, William Ray Wing w...@mac.com wrote: On Jun 23, 2014, at 12:26 AM, smur...@gmail.com wrote: On Sunday, June 22, 2014 3:49:53 PM UTC+2, Roy Smith wrote: Can you give us some more quantitative idea of your requirements?

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread Lie Ryan
On 22/06/14 10:46, smur...@gmail.com wrote: I've been doing this with a classic session-based SQLAlchemy ORM, approach, but that ends up way too slow and memory intense, as each thread gets its own copy of every object it needs. I don't want that. If you don't want each thread to have their

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread Matthias Urlichs
Hi, William Ray Wing: Are you sure it won’t fit in memory? Default server memory configs these days tend to start at 128 Gig, and scale to 256 or 384 Gig. I am not going to buy a new server. I can justify writing a lot of custom code for that kind of money. Besides, the time to actually

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread smurfix
memcache (or redis or ...) would be an option. However, I'm not going to go through the network plus deserialization for every object, that'd be too slow - thus I'd still need a local cache - which needs to be invalidated. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread smurfix
On Monday, June 23, 2014 5:54:38 PM UTC+2, Lie Ryan wrote: If you don't want each thread to have their own copy of the object, Don't use thread-scoped session. Use explicit scope instead. How would that work when multiple threads traverse the in-memory object structure and cause

Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread kenakahn
What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3? -- https://mail.python.org/mailman/listinfo/python-list

Re: Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread kenakahn
On Monday, June 23, 2014 4:12:34 PM UTC-4, kena...@gmail.com wrote: What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3? Found it. The import statement changed to import _thread for python3. --

Re: Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread Chris Angelico
On Tue, Jun 24, 2014 at 6:34 AM, kenak...@gmail.com wrote: On Monday, June 23, 2014 4:12:34 PM UTC-4, kena...@gmail.com wrote: What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3? Found it. The import statement changed to import

Re: Python ORM library for distributed mostly-read-only objects?

2014-06-23 Thread Lie Ryan
On 23/06/14 19:05, smur...@gmail.com wrote: On Monday, June 23, 2014 5:54:38 PM UTC+2, Lie Ryan wrote: If you don't want each thread to have their own copy of the object, Don't use thread-scoped session. Use explicit scope instead. How would that work when multiple threads traverse the

Re: python 3.44 float addition bug?

2014-06-23 Thread buck
It used to be that the best way to compare floating point numbers while disregarding the inherent epsilon was to use `str(x) == str(y)`. It looks like that workaround doesn't work anymore in 3.4. What's the recommended way to do this now? format(.01 + .01 + .01 + .01 + .01 + .01, 'g') ==

Off-Topic: The Machine

2014-06-23 Thread Steven D'Aprano
Following up on an earlier thread which started as a discussion on Apple's new language Swift and (d)evolved into a discussion about energy efficiency of computers, I came across this announcement of a new type of computer architecture invented by HP: The Machine.

Re: Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread Larry Hudson
On 06/23/2014 01:12 PM, kenak...@gmail.com wrote: What package do I need to install to get thread support (import thread) for Python 3 running under ubuntu 3? Just curious... Ubuntu 3 -- Are you really running a version that old, or is that a typo? Current version is 14.04 OT and FWIW:

Re: Adding thread module support to Ubuntu 3 for Python3

2014-06-23 Thread Chris Angelico
On Tue, Jun 24, 2014 at 12:40 PM, Larry Hudson org...@yahoo.com.dmarc.invalid wrote: OT and FWIW: I gave up on Ubuntu when they switched to Unity -- I find that very awkward to use. Just personal opinion, of course, and I know there are others who like it -- that's fine with me as well. (But

Re: python 3.44 float addition bug?

2014-06-23 Thread Chris Angelico
On Tue, Jun 24, 2014 at 10:55 AM, buck workithar...@gmail.com wrote: It used to be that the best way to compare floating point numbers while disregarding the inherent epsilon was to use `str(x) == str(y)`. Who said that? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Ubuntu 3 (was Adding thread module support to Ubuntu 3 for Python3)

2014-06-23 Thread Jason Friedman
OT and FWIW: I gave up on Ubuntu when they switched to Unity -- I find that very awkward to use. Just personal opinion, of course, and I know there are others who like it -- that's fine with me as well. (But I switched to Mint.) Likewise, though with me it was Debian I went to, with Xfce

Re: python 3.44 float addition bug?

2014-06-23 Thread Gregory Ewing
buck wrote: What's the recommended way to do this now? format(.01 + .01 + .01 + .01 + .01 + .01, 'g') == format(.06, 'g') There's no recommended way. What you're asking for can't be done. Whatever trick you come up with, there will be cases where it doesn't work. Why do you think you want

[issue16587] Py_Initialize breaks wprintf on Windows

2014-06-23 Thread Markus Kettunen
Markus Kettunen added the comment: It's quite common to use wide character strings to support Unicode in C and C++. In C++ this often means using std::wstring and std::wcout. Maybe these are more common than wprintf? In any case the console output breaks as Py_Initialize hijacks the host

[issue16587] Py_Initialize breaks wprintf on Windows

2014-06-23 Thread STINNER Victor
STINNER Victor added the comment: In C++ this often means using std::wstring and std::wcout. Maybe these are more common than wprintf? In any case the console output breaks as Py_Initialize hijacks the host application's standard output streams which sounds quite illegitimate to me. On

[issue16587] Py_Initialize breaks wprintf on Windows

2014-06-23 Thread Markus Kettunen
Markus Kettunen added the comment: On Linux, std::wcout doesn't use wprintf(). Do you mean that std::wcout also depends on the mode of stdout (_setmode)? Yes, exactly. I originally noticed this bug by using std::wcout on Windows. -- ___ Python

[issue21807] SysLogHandler closes TCP connection after first message

2014-06-23 Thread Vinay Sajip
Vinay Sajip added the comment: The default for syslog-ng's so_keepalive() option is No (don't keep the socket open). Since you haven't responded with more information, I'll assume that you're using this default setting, and that syslog-ng is terminating the connection. Reopen if you have

[issue21828] added/corrected containment relationship for networks in lib ipaddress

2014-06-23 Thread Nicolas Limage
New submission from Nicolas Limage: The current version of the ipaddress library implements containment relationship in a way that a network is never contained in another network : from ipaddress import IPv4Network,IPv4Address IPv4Network(u'192.168.22.0/24') in IPv4Network(u'192.168.0.0/16')

[issue21828] added/corrected containment relationship for networks in lib ipaddress

2014-06-23 Thread Nicolas Limage
Changes by Nicolas Limage nicolas.lim...@gmail.com: -- nosy: -Nicolas.Limage resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21828 ___

[issue21829] Wrong test in ctypes

2014-06-23 Thread Claudiu Popa
New submission from Claudiu Popa: There's a problem with ctypes.test.test_values on Windows. First, the test is wrong because it uses the following: if __debug__: self.assertEqual(opt, 0) elif ValuesTestCase.__doc__ is not None: self.assertEqual(opt, 1) ValuesTestCase doesn't have a

[issue21829] Wrong test in ctypes

2014-06-23 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21829 ___ ___ Python-bugs-list

[issue17888] docs: more information on documentation team

2014-06-23 Thread Terry Chia
Terry Chia added the comment: Hello, I have attached a patch that should resolve this issue. Do let me know if anything needs fixing as this is my first contribution. -- keywords: +patch nosy: +terry.chia Added file: http://bugs.python.org/file35739/issue17888.patch

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to hear from others on this feature. One concern that I have is whether it is wise to truncate the fractional seconds part in '%s'. Also, if we support '%s' in strftime we should probably support it in strptime as well. -- nosy:

[issue21800] Implement RFC 6855 (IMAP Support for UTF-8) in imaplib.

2014-06-23 Thread Jim Jewett
Changes by Jim Jewett jimjjew...@gmail.com: -- stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21800 ___

[issue21030] pip usable only by administrators on Windows and SELinux

2014-06-23 Thread Christian Ullrich
Christian Ullrich added the comment: Actually, this appears to be fixed in pip 1.5.6 (and 1.5.5, commit 79408cbc6fa5d61b74b046105aee61f12311adc9, AFAICT), which is included in 3.4.1; I cannot reproduce the problem in 3.4.1. That makes this bug obsolete. --

[issue21820] unittest: unhelpful truncating of long strings.

2014-06-23 Thread Nick Coghlan
Nick Coghlan added the comment: It's ultimately up to Michael as the module maintainer, but the class attribute approach would match the way maxDiff works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21820

[issue21820] unittest: unhelpful truncating of long strings.

2014-06-23 Thread Nick Coghlan
Nick Coghlan added the comment: Oh, one point - the don't trigger on non-strings could likely go in a bug fix release for 3.4, but the flag to turn it off entirely would be a new feature for 3.5. -- ___ Python tracker rep...@bugs.python.org

[issue21829] Wrong test in ctypes

2014-06-23 Thread R. David Murray
R. David Murray added the comment: There is an issue open for the -O/-OO and .pyo file issue. Or maybe we closed it won't fix, I forget. -O/-OO have problems. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue21717] Exclusive mode for ZipFile and TarFile

2014-06-23 Thread Berker Peksag
Berker Peksag added the comment: Here's a patch for tarfile. -- keywords: +patch nosy: +berker.peksag, lars.gustaebel, serhiy.storchaka stage: - patch review type: - enhancement versions: -Python 3.4 Added file: http://bugs.python.org/file35740/issue21717_tarfile.diff

[issue19259] Provide Python implementation of operator.compare_digest()

2014-06-23 Thread STINNER Victor
STINNER Victor added the comment: Ping? -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19259 ___ ___

[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2014-06-23 Thread Aivar Annamaa
Aivar Annamaa added the comment: Just found out that ast.Attribute in Python 3.4 has similar problem -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21295 ___

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2014-06-23 Thread Boris Dayma
Changes by Boris Dayma koush...@gmail.com: -- nosy: +Borisd13 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7511 ___ ___ Python-bugs-list mailing

[issue21820] unittest: unhelpful truncating of long strings.

2014-06-23 Thread Michael Foord
Michael Foord added the comment: I agree that it looks like a bug that this behaviour is triggering for non-strings. There is separate code (which uses maxDiff) for comparing collections. Switching off the behaviour for 3.4 / 2.7 and a new class attribute for 3.5 is a good approach.

[issue17570] Improve devguide Windows instructions

2014-06-23 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +zach.ware stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17570 ___

[issue17570] Improve devguide Windows instructions

2014-06-23 Thread Zachary Ware
Zachary Ware added the comment: What about adding a new Platform Quirks page listing all the known differences in usage between the three major platforms? Then in places where the instructions are a bit different per platform, like: ./python.exe -m test -j3 write something like python

[issue17570] Improve devguide Windows instructions

2014-06-23 Thread Zachary Ware
Zachary Ware added the comment: As previously pointed out, the current patches are not adequate. -- stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17570 ___

[issue19351] python msi installers - silent mode

2014-06-23 Thread Steve Dower
Steve Dower added the comment: The difference may be the ALLUSERS=1 option. Windows Installer is supposed to auto-detect this when an installer is run as an admin, but maybe something in our authoring is preventing this detection? When I get a chance I'll try both and see if the logs show

[issue21030] pip usable only by administrators on Windows and SELinux

2014-06-23 Thread Donald Stufft
Donald Stufft added the comment: I believe in pip 1.5.6 we switched from shutil.move to shutil.copytree which I believe will reset the permissions/SELinux context? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21030

[issue21821] The function cygwinccompiler.is_cygwingcc leads to FileNotFoundError under Windows 7

2014-06-23 Thread Aaron Meurer
Changes by Aaron Meurer asmeu...@gmail.com: -- nosy: +Aaron.Meurer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21821 ___ ___ Python-bugs-list

[issue7982] extend captured_output to simulate different stdout.encoding

2014-06-23 Thread Berker Peksag
Berker Peksag added the comment: Here's a patch to add an optional encoding parameter to captured_stdout. -- keywords: +patch nosy: +berker.peksag stage: needs patch - patch review Added file: http://bugs.python.org/file35741/issue7982.diff ___

[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts

2014-06-23 Thread Yury Selivanov
Yury Selivanov added the comment: Ryan, Can you explain the use case for it? What's the problem you're trying to solve? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21684 ___

[issue21801] inspect.signature doesn't always return a signature

2014-06-23 Thread Yury Selivanov
Yury Selivanov added the comment: Fixed in 3.4 and 3.5. Thanks for the bug report! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21801 ___ ___

[issue21801] inspect.signature doesn't always return a signature

2014-06-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset cc0f5d6ccb70 by Yury Selivanov in branch '3.4': inspect: Validate that __signature__ is None or an instance of Signature. http://hg.python.org/cpython/rev/cc0f5d6ccb70 New changeset fa5b985f0920 by Yury Selivanov in branch 'default': inspect:

[issue21030] pip usable only by administrators on Windows and SELinux

2014-06-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Christian: thanks for the update. It's actually that the bug is fixed, not obsolete :-) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21030

[issue19351] python msi installers - silent mode

2014-06-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Steve: how is the auto-detection supposed to work, and what is the rationale? Shouldn't it be possible that even someone with administrator privileges still might want to install just for me? And how would they then specify that on the command line, given

[issue2213] build_tkinter.py does not handle paths with spaces

2014-06-23 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: accepted - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2213 ___

[issue19351] python msi installers - silent mode

2014-06-23 Thread Steve Dower
Steve Dower added the comment: It's described at http://msdn.microsoft.com/en-us/library/aa367559(v=vs.85).aspx, and frankly it is incredibly confusing. It is possible to reset ALLUSERS on the command line by specifying ALLUSERS= -- ___ Python

[issue21830] ssl.wrap_socket fails on Windows 7 when specifying ca_certs

2014-06-23 Thread David M Noriega
New submission from David M Noriega: When trying to use python3-ldap package on Windows 7, found I could not get a TLS connection to work and traced it to its use of ssl.wrap_socket. Trying out the following simple socket test fails import socket import ssl sock = socket.socket()

[issue14013] tarfile should expose supported formats

2014-06-23 Thread Berker Peksag
Berker Peksag added the comment: I've updated Éric's patch. Minor changes: - Updated versionadded directive - A couple of cosmetic changes (e.g. removed brackets in the list comprehension) -- assignee: docs@python - components: -Documentation nosy: +berker.peksag versions: +Python 3.5

[issue21830] ssl.wrap_socket fails on Windows 7 when specifying ca_certs

2014-06-23 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21830 ___ ___ Python-bugs-list mailing

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-23 Thread STINNER Victor
STINNER Victor added the comment: @Guido, @Yury: What do you think of log_destroyed_pending_task.patch? Does it sound correct? Or would you prefer to automatically keep a strong reference somewhere and then break the strong reference when the task is done? Such approach sounds to be error

[issue19351] python msi installers - silent mode

2014-06-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Much of the text refers to Installer 5.0. msi.py currently targets installer 2.0. Does the auto-detection also work on such installers? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19351

[issue15599] test_threaded_import fails sporadically on Windows and FreeBSD

2014-06-23 Thread David Bolen
David Bolen added the comment: I've been experimenting with setting up a Windows 8.1 buildbot, and found this ticket after finding a problem with test_threaded_import, testing against the 3.4 branch. I seem to be have a low syscheckinterval issue similar to that discussed here on some

[issue19351] python msi installers - silent mode

2014-06-23 Thread Steve Dower
Steve Dower added the comment: No idea, TBH, though I'd guess that the behaviour comes from the installed version of Windows Installer and the database schema comes from the authored version. Nonetheless, if the solution is to add ALLUSERS=1 to the command line when doing silent all-user

[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error

2014-06-23 Thread Mark Lawrence
Mark Lawrence added the comment: @Giampaolo can you add anything to this? -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12378 ___

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-23 Thread Steve Dower
Steve Dower added the comment: This has been confirmed as a bug in VC14 (and earlier) and there'll be a fix going in soon. For those interested, here's a brief rundown of the root cause: * the switch in build_filter_spec() switches on a 64-bit value * one case is 0x4001 and the

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks a lot for this investigation; I'm glad you are working on this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15993 ___

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +tim.golden, zach.ware -haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15993 ___

[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2014-06-23 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15993 ___ ___ Python-bugs-list

[issue18032] Optimization for set/frozenset.issubset()

2014-06-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: Patch needs some work. See comments on patch. -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18032 ___

[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error

2014-06-23 Thread brian morrow
brian morrow added the comment: Not sure if this is still relevant, but I've supplied a python2.7 patch for this issue. All regression tests still pass and the underlying socket connection is closed: bmorrow@xorange:~/cpython$ ./python -m smtpd -n -c DebuggingServer localhost:2525 import

[issue21030] pip usable only by administrators on Windows and SELinux

2014-06-23 Thread Nick Coghlan
Nick Coghlan added the comment: A little additional explanation of why the switch to copytree would have fixed this, at least in the SELinux case: under SELinux, files typically get labelled with a context based on where they're created. Copying creates a *new* file at the destination with the

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-23 Thread akira
akira added the comment: *If* the support for %s strftime format code is added then it should keep backward compatibility on Linux, OSX: it should produce an integer string with the correct rounding. Currently, datetime.strftime delegates to a platform strftime(3) for format specifiers that are

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It is not clear what the returned value for %s strptime should be: I would start conservatively and require %z to be used with %s. In this case, we can easily produce aware datetime objects. I suspect that in the absence of %z, the most useful option

[issue21163] asyncio doesn't warn if a task is destroyed during its execution

2014-06-23 Thread Yury Selivanov
Yury Selivanov added the comment: @Guido, @Yury: What do you think of log_destroyed_pending_task.patch? Does it sound correct? Premature task garbage collection is indeed hard to debug. But at least, with your patch, one gets an exception and has a chance to track the bug down. So I'm +1 for

[issue11974] Class definition gotcha.. should this be documented somewhere?

2014-06-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e0b7393e921 by Raymond Hettinger in branch '2.7': Issue #11974: Add tutorial section on class and instance variables http://hg.python.org/cpython/rev/8e0b7393e921 -- nosy: +python-dev ___ Python

[issue21830] ssl.wrap_socket fails on Windows 7 when specifying ca_certs

2014-06-23 Thread Josh Rosenberg
Josh Rosenberg added the comment: Are you 100% sure your CA files is in the precise PEM format required by Python for CA certs, as described in https://docs.python.org/3/library/ssl.html#ssl-certificates ? The most likely cause of your failure and success would be if you were using some

[issue11974] Class definition gotcha.. should this be documented somewhere?

2014-06-23 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11974 ___

[issue11974] Class definition gotcha.. should this be documented somewhere?

2014-06-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll load this into 3.4 and 3.5 shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11974 ___ ___

[issue5888] mmap enhancement - resize with sequence notation

2014-06-23 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- title: mmap ehancement - resize with sequence notation - mmap enhancement - resize with sequence notation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5888

[issue12066] Empty ('') xmlns attribute is not properly handled by xml.dom.minidom

2014-06-23 Thread Mark Lawrence
Mark Lawrence added the comment: This works perfectly for me using 3.4.1. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12066 ___

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2014-06-23 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +loewis, steve.dower versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12239

[issue12639] msilib Directory.start_component() fails if keyfile is not None

2014-06-23 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +loewis, steve.dower versions: +Python 3.5 -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12639

[issue21831] integer overflow in 'buffer' type allows reading memory

2014-06-23 Thread Benjamin Peterson
New submission from Benjamin Peterson: Reported by Chris Foster on the security list: $ ./python Python 2.7.7+ (2.7:8e0b7393e921, Jun 24 2014, 03:01:40) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. a = bytearray('hola mundo') b = buffer(a, 0x7fff,

[issue21831] integer overflow in 'buffer' type allows reading memory

2014-06-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d963c7db507 by Benjamin Peterson in branch '2.7': avoid overflow with large buffer sizes and/or offsets (closes #21831) http://hg.python.org/cpython/rev/8d963c7db507 -- nosy: +python-dev resolution: - fixed stage: - resolved status: open

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-23 Thread Kevin Norris
New submission from Kevin Norris: Code such as this: class Foo: def __str__(self): # Perhaps this value comes from user input, or # some other unsafe source return something_untrusted def isidentifier(self): # Perhaps it

[issue21832] collections.namedtuple does questionable things when passed questionable arguments

2014-06-23 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21832 ___ ___

[issue19915] int.bit_at(n) - Accessing a single bit in O(1)

2014-06-23 Thread anon
anon added the comment: I think the case where i is negative can be handled by bits_at(i, pos, width) = bits_at(~i, pos, width) ^ ((1 width) - 1) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19915

[issue18643] implement socketpair() on Windows

2014-06-23 Thread pturing
Changes by pturing ptur...@gmail.com: -- nosy: +pturing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18643 ___ ___ Python-bugs-list mailing list

[issue3423] DeprecationWarning message applies to wrong context with exec()

2014-06-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Rereading this, I see interlocked behavior (implementation bug) and enhancement (design bug) issues. I have been focused on just the former. Consider the exception traceback in msg107441: there are *two* filename, line# pairs. Now consider this warning for

[issue17229] unable to discover preferred HTTPConnection class

2014-06-23 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +dbrecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17229 ___ ___ Python-bugs-list