mds-utils 2.1.0 released

2014-09-28 Thread Michele De Stefano
I am pleased to announce the release of mds-utils 2.1.0 http://www.micheledestefano.joomlafree.it/en/mds-utils.html. Features summary --- MDS-UTILS provides: 1. a tool for detecting machine endianity. 2. utilities for the Boost uBLAS library. Amongst them, some

Re: Leap year

2014-09-28 Thread Steven D'Aprano
Seymore4Head wrote: Still practicing. Since this is listed as a Pseudocode, I assume this is a good way to explain something. That means I can also assume my logic is fading with age. http://en.wikipedia.org/wiki/Leap_year#Algorithm Me trying to look at the algorithm, it would lead me to

Re: Want to win a 500 tablet?

2014-09-28 Thread Michael Torrie
On 09/26/2014 05:03 PM, Seymore4Head wrote: On Fri, 26 Sep 2014 18:55:54 -0400, Seymore4Head Seymore4Head@Hotmail.invalid wrote: I am taking An Introduction to Interactive Programming in Python at coursera.org. From their announcments page: Week one of the video contest is open For

Re: tkinter and gtk problem

2014-09-28 Thread Michael Torrie
On 09/26/2014 12:15 PM, Paula Estrella wrote: Hello, we are working on ubuntu 12.04 LTS; we use gtk to take screenshots and we added a simple interface to select a file using tkFileDialog but it doesn't work; is it possible that tkinter and gtk are incompatible? a test script to open a file

Re: Question about uninstallation.

2014-09-28 Thread Fabien
On 28.09.2014 03:07, Gregory Johannes-Kinsbourg wrote: both Python 2 3 (I’m on OS X 10.10 btw) and first of all was curious to know if they will clash I am also quite new to the python business, and had the same kind of questions (how to install/uninstall a package, will different

Re: Storage Cost Calculation

2014-09-28 Thread Duncan Booth
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: The Model B supported more graphics modes, had a six-pin DIN connector for a monitor (both the A and B had UHF output for connecting to a television, but only the B supported a dedicated monitor), had support for an optional floppy

Re: Question about uninstallation.

2014-09-28 Thread Ned Deily
In article captjjmonhfm1mr+2ssiy8r6ntvduzxqsxxjraxmi6deqh9h...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: On Sun, Sep 28, 2014 at 11:07 AM, Gregory Johannes-Kinsbourg harmonoisemu...@gmail.com wrote: Anyway, I’ve basically ended up installing both Python 2 3 (I’m on OS X

Re: Question about uninstallation.

2014-09-28 Thread Chris Angelico
On Mon, Sep 29, 2014 at 9:17 AM, Ned Deily n...@acm.org wrote: That's odd advice. ... And, while OS X 10.10 Yosemite is still a few weeks away from its expected official release data, you can be sure that the current releases of Python have been tested with the public beta and with developer

Re: Question about uninstallation.

2014-09-28 Thread Ned Deily
In article CAPTjJmq-55xV2nbsVgc6UFz8Xkw_wnh_S9RejduwZteU=2o...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: On Mon, Sep 29, 2014 at 9:17 AM, Ned Deily n...@acm.org wrote: That's odd advice. ... And, while OS X 10.10 Yosemite is still a few weeks away from its expected official

trouble building data structure

2014-09-28 Thread David Alban
greetings, i'm writing a program to scan a data file. from each line of the data file i'd like to add something like below to a dictionary. my perl background makes me want python to autovivify, but when i do: file_data = {} [... as i loop through lines in the file ...]

Re: trouble building data structure

2014-09-28 Thread Chris Angelico
On Mon, Sep 29, 2014 at 10:04 AM, David Alban exta...@extasia.org wrote: file_data = {} [... as i loop through lines in the file ...] file_data[ md5sum ][ inode ] = { 'path' : path, 'size' : size, } what is the pythonic way to build my file_data data structure above

Re: trouble building data structure

2014-09-28 Thread Ned Batchelder
On 9/28/14 8:04 PM, David Alban wrote: i'm writing a program to scan a data file. from each line of the data file i'd like to add something like below to a dictionary. my perl background makes me want python to autovivify, but when i do: file_data = {} [... as i loop through

[issue22139] python windows 2.7.8 64-bit did not install

2014-09-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: Reopening for somebody to look at; I'm not interested in Python 2.7 anymore. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22139

[issue16537] Python’s setup.py raises a ValueError when self.extensions is empty

2014-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use the default parameter of max() in 3.4+. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16537 ___

[issue1772673] Replacing char* with const char*

2014-09-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 599a957038fa by Serhiy Storchaka in branch 'default': Removed redundant casts to `char *`. https://hg.python.org/cpython/rev/599a957038fa -- ___ Python tracker rep...@bugs.python.org

[issue22503] Signal stack overflow in faulthandler_user

2014-09-28 Thread STINNER Victor
STINNER Victor added the comment: _PyFaulthandler_Init() uses sigaltstack() with a stack of SIGSTKSZ bytes. On my Linux/x86_64, SIGSTKSZ is 8 KB. What is the value of SIGSTKSZ on aarch64? Is there a C define (#ifdef) to use a different size on this architecture? Does the test pass if you

[issue15363] Idle/tkinter ~x.py 'save as' fails. closes idle

2014-09-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agree with Martin. And I think we should check for starting tilde not base name, but full name. -- nosy: +serhiy.storchaka stage: patch review - needs patch versions: +Python 3.5 -Python 3.3 ___ Python tracker

[issue22503] Signal stack overflow in faulthandler_user

2014-09-28 Thread Andreas Schwab
Andreas Schwab added the comment: There is an open bug about MINSIGSTKSZ being too small on aarch64 https://sourceware.org/bugzilla/show_bug.cgi?id=16850. How much SIGSTKSZ can guarantee about nested signals is unclear. POSIX does not appear give any guidance. On aarch64 SIGSTKSZ is defined

[issue22505] Expose an Enum object's serial number

2014-09-28 Thread Eli Bendersky
Eli Bendersky added the comment: I could continue the discussion about databases, but it feels like a waste of time to me. The main principle is: If something has an important property (in this case an enum object's numerical value), it should be publicly exposed. Period. No need to spend

[issue22510] Faster bypass re cache when DEBUG is passed

2014-09-28 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Here is a patch which gets rid of small performance regression introduced by issue20426 patch. No need to check flags before cache lookup because patterns with the DEBUG flag are newer cached. $ ./python -m timeit -s import re -- re.match('', '') Before

[issue22133] IDLE: Set correct WM_CLASS on X11

2014-09-28 Thread Saimadhav Heblikar
Saimadhav Heblikar added the comment: I don't know how dialogs and calltip popups behave on Gnome Shell Can you reply what behaviour you want to confirm? If you meant, grouping - Toplevels like ClassBrowser, PathBrowser etc are always grouped as single unit in the Activity Bar. But, in the

[issue10510] distutils upload/register should use CRLF in HTTP requests

2014-09-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6375bf34fff6 by R David Murray in branch '3.4': #10510: Fix bug in forward port of 2.7 distutils patch. https://hg.python.org/cpython/rev/6375bf34fff6 New changeset 90b07d422bd9 by R David Murray in branch 'default': #10510: Fix bug in forward port

[issue22511] Assignment Operators behavior within a user-defined function and arguments being passed by reference or value

2014-09-28 Thread Mohammed Mustafa Al-Habshi
New submission from Mohammed Mustafa Al-Habshi: hello every one, I was trying to understand the behavior of passing arguments in a function to differentiate how we can pass argument by value. Though it is a technique matter. However, the behavior of assignment operator += when using it with

[issue22511] Assignment Operators behavior within a user-defined function and arguments being passed by reference or value

2014-09-28 Thread Mark Dickinson
Mark Dickinson added the comment: I'm afraid this bug tracker isn't really the appropriate place for this discussion, so I'm going to close this issue. You could open a discussion on the Python mailing list, here: https://mail.python.org/mailman/listinfo/python-list. -- nosy:

[issue22511] Assignment Operators behavior within a user-defined function and arguments being passed by reference or value

2014-09-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm afraid that you are mistaken about Python's argument passing semantics. Arguments are *always* passed using the same semantics, and *never* using either pass-by-value or pass-by-reference. These two pages may help you understand why Python's argument

[issue22511] Assignment Operators behavior within a user-defined function and arguments being passed by reference or value

2014-09-28 Thread R. David Murray
R. David Murray added the comment: See also issue 20135. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22511 ___ ___

[issue4093] add gc/memory management tests to pybench

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: Antoine or Marc-Andre will either of you follow up on this as the last message msg74608 was nearly six years ago? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4093

[issue9313] distutils error on MSVC older than 8

2014-09-28 Thread Francis MB
Francis MB added the comment: Hi Éric, are the changes to distutils2 applied? could the issue be closed (has resolution:fixed) or is something to be done? -- nosy: +francismb ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9313

[issue9313] distutils error on MSVC older than 8

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: Distutils2 is dead. -- components: -Distutils2 nosy: +BreamoreBoy, dstufft ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9313 ___

[issue22379] Empty exception message of str.join

2014-09-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0ad19246d16d by Benjamin Peterson in branch '2.7': give exception a nice message (closes #22379) https://hg.python.org/cpython/rev/0ad19246d16d New changeset ab1570d0132d by Benjamin Peterson in branch '3.4': check that exception messages are not

[issue2148] nis module not supporting group aliases

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: I think this should be an enhancement request. -- components: +Library (Lib) -None nosy: +BreamoreBoy, jcea type: behavior - enhancement versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2 ___ Python tracker

[issue9313] distutils error on MSVC older than 8

2014-09-28 Thread Francis MB
Francis MB added the comment: Distutils2 is dead. I wasn't aware of that and I'm sorry for that. In that case that issue can IMHO be closed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9313

[issue9313] distutils error on MSVC older than 8

2014-09-28 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9313 ___ ___

[issue10007] Visual C++ cannot build _ssl and _hashlib if newer OpenSSL is placed in $(dist) directory (PCBuild)

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: Has this been superseded by the many improvements made to the Windows build system over the last few months or even years? -- nosy: +BreamoreBoy, steve.dower, zach.ware type: - behavior ___ Python tracker

[issue20742] 2to3 zip fixer doesn't fix for loops.

2014-09-28 Thread RobertG
RobertG added the comment: As far as a non contrived example, see http://bugs.python.org/issue21628, which was marked as a duplicate of this bug. This bug is the main thing preventing me from using 2to3, so I think it is a real issue. -- ___

[issue1382562] --install-base not honored on win32

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: I'd try to reproduce this but with so little data to go on I don't understand how. Can somebody fill the gaps? -- components: +Windows -Distutils2 nosy: +BreamoreBoy, dstufft versions: +Python 3.4, Python 3.5 -3rd party, Python 3.1, Python 3.2

[issue9643] urllib2 - Basic, Digest Proxy Auth Handlers failure will give 401 code instead of 407

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: Slipped under the radar? -- components: +Library (Lib) nosy: +BreamoreBoy type: - behavior versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9643

[issue1160328] urllib2 post error when using httpproxy

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: From msg60698 The first URL hangs for me, using Firefox. Especially if this depends on using a proxy which I do not have permission to use, I have no idea how to reproduce this. I certainly have no idea on how to reproduce this so unless someone can the only

[issue1565509] Repair or Change installation error

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: I don't recall ever seeing a problem like this, but then I haven't used IE in years and don't intend using it now just for this. -- components: +Windows nosy: +BreamoreBoy, steve.dower, zach.ware versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2

[issue22512] 'test_distutils.test_bdist_rpm' causes creation of directory '.rpmdb' on home dir

2014-09-28 Thread Francis MB
New submission from Francis MB: Running the test suite or 'test_distutils' triggers the creation of the directory '.rpmdb'. I noticed that because somehow that directory was bad formed and got errors while running the test suite: error: db5 error(-30969) from dbenv-open: BDB0091

[issue678264] test_resource fails when file size is limited

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: Can somebody take a look at this please. See also #9917. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue678264 ___

[issue9350] add remove_argument_group to argparse

2014-09-28 Thread paul j3
paul j3 added the comment: If the empty argument group has a 'description' it is displayed. For example with positionals group that I mentioned earlier: parser = argparse.ArgumentParser() parser._action_groups[0].description = 'test' parser.print_help() produces usage:

[issue20858] Enhancements/fixes to pure-python datetime module

2014-09-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5313b4c0bb6c by Alexander Belopolsky in branch 'default': Closes issue #20858: Enhancements/fixes to pure-python datetime module https://hg.python.org/cpython/rev/5313b4c0bb6c -- nosy: +python-dev ___

[issue8988] import + coding = failure (3.1.2/win32)

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: Works for me using 3.4.1 and 3.5.0a0. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8988 ___

[issue8747] Autoconf tests in python not portably correct

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: From msg112274 if these platforms can't function with these preprocessor defines, the platforms need to be fixed -- not python. so I believe this can be closed. -- nosy: +BreamoreBoy ___ Python tracker

[issue10036] compiler warnings for various modules on Linux buildslaves

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: From msg119142 I suspect we don't really fix libffi compile warnings because ... so it looks as if we wouldn't bother anyway, plus these compiler warnings are years old so can this be closed as out of date? -- nosy: +BreamoreBoy

[issue9943] TypeError message became less helpful in Python 2.7

2014-09-28 Thread Mark Lawrence
Mark Lawrence added the comment: 3.4.1 and 3.5.0a0 give the same message as 2.6. I don't have 2.7 to see what it currently does. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9943

[issue22512] 'test_distutils.test_bdist_rpm' causes creation of directory '.rpmdb' on home dir

2014-09-28 Thread R. David Murray
R. David Murray added the comment: Thanks for the report and patch. You should use test.support.EnvironmentVarGuard to make the environment change temporary. -- nosy: +r.david.murray versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue20858] Enhancements/fixes to pure-python datetime module

2014-09-28 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20858 ___

[issue9943] TypeError message became less helpful in Python 2.7

2014-09-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Still TypeError: f() takes exactly 0 arguments (2 given). I consider the 2.6/3.x message better (more accurate). But at this point, I could be persuaded to leave 2.7 alone and close this. -- ___ Python tracker

[issue9943] TypeError message became less helpful in Python 2.7

2014-09-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, the argument error messages for 2.x are all not very good. Note this issue was fixed once and for all in Python 3: % python3 x.py Traceback (most recent call last): File x.py, line 3, in module f(hello, keyword=True) TypeError: f() takes 0

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2014-09-28 Thread Łukasz Langa
Łukasz Langa added the comment: So the diff would look like this (please find it attached). It does two things: * changes messages on InterpolationMissingOptionError and InterpolationDepthError to be more helpful to the end user * fixes rawval to actually hold the raw value of an option and