A pair of desktop utilities: calendar, folder merge

2014-09-29 Thread Mark Lutz
A pair of basic tkinter desktop utility programs that others may find useful: 1) frigcal -- a refrigerator style calendar desktop GUI 2) mergeall -- do-it-yourself cloud storage, script + GUI Both were coded in part as supplements for book readers, but have grown useful enough to merit a

Microsoft Visual C++ Compiler for Python 2.7

2014-09-29 Thread Steve Dower
Microsoft has released a compiler package for Python 2.7 to make it easier for people to build and distribute their C extension modules on Windows. The Microsoft Visual C++ Compiler for Python 2.7 is available from: http://aka.ms/vcpython27 This package contains all the tools and headers

Re: Leap year

2014-09-29 Thread Rustom Mody
On Saturday, September 27, 2014 9:21:15 AM UTC+5:30, 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

Obscuring Python source from end users

2014-09-29 Thread norman . ives
Hello list Python 3.4 applies. I have a project that involves distributing Python code to users in an organisation. Users do not interact directly with the Python code; they only know this project as an Excel add-in. Now, internal audit takes exception in some cases if users are able to see

Re: Obscuring Python source from end users

2014-09-29 Thread Chris Angelico
On Mon, Sep 29, 2014 at 5:36 PM, norman.i...@gmail.com wrote: I have a project that involves distributing Python code to users in an organisation. Users do not interact directly with the Python code; they only know this project as an Excel add-in. Now, internal audit takes exception in

Re: Obscuring Python source from end users

2014-09-29 Thread norman . ives
Thanks for the reply! I'm not concerned about hiding the source code in a fundamental way. The condition that needs to be satisfied is that independent validators (in the organisation) must not have access to the source code. Crunching the source is an interesting idea that could achieve that

Re: Obscuring Python source from end users

2014-09-29 Thread alister
On Mon, 29 Sep 2014 00:36:47 -0700, norman.ives wrote: Hello list Python 3.4 applies. I have a project that involves distributing Python code to users in an organisation. Users do not interact directly with the Python code; they only know this project as an Excel add-in. Now, internal

Re: Obscuring Python source from end users

2014-09-29 Thread Chris Angelico
On Mon, Sep 29, 2014 at 6:41 PM, norman.i...@gmail.com wrote: Crunching the source is an interesting idea that could achieve that end, but it seems fraught with problems like maintaining consistency between renaming objects in a module and renaming where imports happen. Here's a technique

Weird SSL problem

2014-09-29 Thread Roland Hedberg
Hi! I’m trying to access https://stsadweb.one.microsoft.com/adfs/.well-known/openid-configuration Doing it the simplest way I get the following: import urllib f = urllib.urlopen(https://stsadweb.one.microsoft.com/adfs/.well-known/openid-configuration;) Traceback (most recent call last):

Re: Obscuring Python source from end users

2014-09-29 Thread Chris Angelico
On Mon, Sep 29, 2014 at 6:55 PM, Chris Angelico ros...@gmail.com wrote: It ought to be possible to do an AST reconstitution for at least part of this. I can hunt down some of my PEP 463 test code to help out with that. It should be possible to figure out what names are local, and then just use

ANN: eGenix PyCon UK 2014 Talks Videos

2014-09-29 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyCon UK 2014 Talks Videos This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/PyCon-UK-2014-Presentations.html

Re: Obscuring Python source from end users

2014-09-29 Thread Steven D'Aprano
norman.i...@gmail.com wrote: Hello list Python 3.4 applies. I have a project that involves distributing Python code to users in an organisation. Users do not interact directly with the Python code; they only know this project as an Excel add-in. Now, internal audit takes exception in

Teaching Python

2014-09-29 Thread Gabor Urban
Hi, my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? -- Urbán Gábor Linux is like a wigwam: no Gates, no Windows and an Apache inside. --

Re: Teaching Python

2014-09-29 Thread Chris Angelico
On Mon, Sep 29, 2014 at 11:18 PM, Gabor Urban urbang...@gmail.com wrote: my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? Right here:

Re: Teaching Python

2014-09-29 Thread Steven D'Aprano
Gabor Urban wrote: Hi, my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? The Internet is a big place, I always start by searching :-)

Re: Teaching Python

2014-09-29 Thread Rustom Mody
On Monday, September 29, 2014 6:59:10 PM UTC+5:30, Chris Angelico wrote: On Mon, Sep 29, 2014 at 11:18 PM, Gabor Urban wrote: my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn

Re: Teaching Python

2014-09-29 Thread Chris Angelico
On Mon, Sep 29, 2014 at 11:38 PM, Rustom Mody rustompm...@gmail.com wrote: https://docs.python.org/3/tutorial/ The official tutorial for an 11 year old?? I dont think so... I don't see why not, to be honest. Not a lot of difference between his 11yo son and my 12yo sister, and I just pointed

Re: trouble building data structure

2014-09-29 Thread Steven D'Aprano
David Alban wrote: 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

Re: Storage Cost Calculation

2014-09-29 Thread Skippy
Abohfu venant zinkeng vicezik at gmail.com writes: Hard drives have been the secondary storage of choice on computers for many years. They have improved in speed, in capacity, and in cost for over 50 years. It's interesting to look at how the prices have dropped, or, conversely, how much

Re: Storage Cost Calculation

2014-09-29 Thread Denis McMahon
On Sun, 28 Sep 2014 20:07:31 +, Duncan Booth wrote: Later on the B+ had 64k of RAM and the B+128 had 128k of RAM and in each case the additional RAM was paged in as necessary but I don't think the RAM in the B was ever expandable. You could get various expansions to page multiple roms, I

Re: Obscuring Python source from end users

2014-09-29 Thread Sturla Molden
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Another possibility is to distribute your modules inside a zip file. See here: https://mail.python.org/pipermail/python-list/2014-July/675506.html Such zip files are not just runnable, but also importable. Depending on your

Re: Obscuring Python source from end users

2014-09-29 Thread Sturla Molden
Chris Angelico ros...@gmail.com wrote: I have a project that involves distributing Python code to users in an organisation. Users do not interact directly with the Python code; they only know this project as an Excel add-in. Now, internal audit takes exception in some cases if users are

Re: trouble building data structure

2014-09-29 Thread Ian Kelly
On Mon, Sep 29, 2014 at 7:52 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Whether you prefer to use setdefault, or a defaultdict, is a matter of taste. There is potentially a significant difference in performance -- with setdefault, the subordinate data structure is created

Re: Teaching Python

2014-09-29 Thread Seymore4Head
On Mon, 29 Sep 2014 15:18:31 +0200, Gabor Urban urbang...@gmail.com wrote: Hi, my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? I ordered this

Re: Teaching Python

2014-09-29 Thread Simon Ward
On 29 September 2014 14:18:31 BST, Gabor Urban urbang...@gmail.com wrote: my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? How to Think Like a

Re: Teaching Python

2014-09-29 Thread John Ladasky
I am actually teaching Python as a side job. My students have ranged from eighth graders, up to a Silicon Valley hardware engineer who had no coding experience, but who needed to do some test engineering. My wife is an elementary school teacher. We occasionally talk about age-appropriate

Re: Teaching Python

2014-09-29 Thread Terry Reedy
On 9/29/2014 9:18 AM, Gabor Urban wrote: Hi, my 11 years old son and his classmate told me, that they would like to learn Python. They did some programming in Logo and turtle graphics, bat not too much. Doesn anybody has an idea how to start? Python has a turtle module, so they can continue

Re: Weird SSL problem

2014-09-29 Thread Ned Deily
In article cd8f39d9-acd9-4d6e-9aac-dbcdf607f...@adm.umu.se, Roland Hedberg roland.hedb...@adm.umu.se wrote: Hi! I¹m trying to access https://stsadweb.one.microsoft.com/adfs/.well-known/openid-configuration Doing it the simplest way I get the following: import urllib f =

JSON-encoding very long iterators

2014-09-29 Thread alfred
I would like to add the ability to JSONEncode large iterators. Right now there is no way to do this without modifying the code. The JSONEncoder.default() doc string suggests to do this: For example, to support arbitrary iterators, you could implement default like this::

Re: JSON-encoding very long iterators

2014-09-29 Thread Ian Kelly
On Mon, Sep 29, 2014 at 7:19 PM, alf...@54.org wrote: I would like to add the ability to JSONEncode large iterators. Right now there is no way to do this without modifying the code. The JSONEncoder.default() doc string suggests to do this: For example, to support arbitrary

[issue6978] compiler.transformer dict key bug d[1,] = 1

2014-09-29 Thread Mark Lawrence
Mark Lawrence added the comment: Can somebody set this to patch review and do the honours please. FWIW I don't like tulplesub in the patch. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6978

[issue9912] Fail when vsvarsall.bat produces stderr

2014-09-29 Thread Mark Lawrence
Mark Lawrence added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9912 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue809846] bdist_wininst doesn't clean up read-only files in build dir

2014-09-29 Thread Mark Lawrence
Mark Lawrence added the comment: I understand from the experts list that tarek is no longer maintaining distutils but I can't change the assigned to field. As a matter of interest there are another 67 issues with tarek assigned. -- nosy: +BreamoreBoy, dstufft versions: +Python 3.4,

[issue22389] Generalize contextlib.redirect_stdout

2014-09-29 Thread John Isidore
John Isidore added the comment: There is stdout_redirected() function [1] that allows to redirect a file object given as `stdout` patameter including `sys.stderr`. It works at a file descriptor level i.e. it supports redirecting subprocess' output too but it doesn't work for StringIO (no fd).

[issue22472] OSErrors should use str and not repr on paths

2014-09-29 Thread Akira Li
Akira Li added the comment: OSError has *filename* attribute. Could it be passed to the UI instead? -- nosy: +akira ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22472 ___

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2014-09-29 Thread R. David Murray
R. David Murray added the comment: We never promise that the messages won't change (they are not part of the API), so that part isn't a problem. We do try to be backward compatible there when it comes to args beyond the message text. I don't think unpickleability is an issue; at least there

[issue22472] OSErrors should use str and not repr on paths

2014-09-29 Thread R. David Murray
R. David Murray added the comment: No, because I'm just logging the error message. That's the UI. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22472 ___

[issue17835] test_io broken on PPC64 Linux

2014-09-29 Thread James Spurin
James Spurin added the comment: With both the kernel parameters defined and undefined, I get the following output - # /local/0/opt/python-3.4.1/bin/python Python 3.4.1 (default, Sep 29 2014, 13:31:39) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux Type help, copyright, credits or license for

[issue22460] idle editor: replace all in selection

2014-09-29 Thread bagrat lazaryan
bagrat lazaryan added the comment: replacing across multiple files is something i personally considered too fancy for idle, but that's a great feature. the same goes for smart selections like selecting multiline statements. if they don't contradict idle's simplicity ideology they are great

[issue9104] test.support method for dual-testing accelerated code (fixes test_exceptions and other's pickle testing)

2014-09-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- assignee: belopolsky - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9104 ___

[issue20135] FAQ need list mutation answers

2014-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 138f54622841 by R David Murray in branch '3.4': #20135: FAQ entry for list mutation. (See also 6375bf34fff6.) https://hg.python.org/cpython/rev/138f54622841 New changeset 3d924bbfdcbc by R David Murray in branch 'default': Merge: #20135: FAQ entry

[issue20135] FAQ need list mutation answers

2014-09-29 Thread R. David Murray
R. David Murray added the comment: I accidentally committed the patch early to 3.4/3.5. I've now addressed Ezio's review comment per my suggestion on the review, and committed it to 2.7 as well. Thanks everyone for your contributions. -- resolution: - fixed stage: commit review -

[issue21338] Silent mode for compileall

2014-09-29 Thread R. David Murray
R. David Murray added the comment: Berker: I had some review comments pending on the docs, but reitveld isn't letting me publish them for some reason (it says the patch set doesn't exist). The comments are: the method docs should probably say ``False`` or ``0`` (the default) (and all the

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

2014-09-29 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: commit review - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20858 ___ ___

[issue22510] Faster bypass re cache when DEBUG is passed

2014-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 565096a32ce4 by Serhiy Storchaka in branch 'default': Issue #22510: Get rid of little overhead of testing re.DEBUG flag. https://hg.python.org/cpython/rev/565096a32ce4 -- nosy: +python-dev ___ Python

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-29 Thread R. David Murray
R. David Murray added the comment: After reconsidering Terry's idle example, it seems to me that the change could adversely impact existing code that already works around the lack of chained tracebacks, even as idle does. So I committed this to 3.5 only as an enhancement. Thanks Claudiu.

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b212a8186e0 by R David Murray in branch 'default': #17442: Add chained traceback support to InteractiveInterpreter. https://hg.python.org/cpython/rev/2b212a8186e0 -- nosy: +python-dev ___ Python tracker

[issue12006] strptime should implement %V or %u directive from libc

2014-09-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: For future reference, here is the example showing %Y %V ambiguity: date(2013,12,31).strftime('%Y %V %u') '2013 01 2' date(2013,1,1).strftime('%Y %V %u') '2013 01 2' which is resolved by using %G date(2013,12,31).strftime('%G %V %u') '2014 01 2'

[issue12006] strptime should implement %G, %V and %u directives

2014-09-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I think we need more tests showing that new directives don't violate strftime - strptime round-trip invariants. -- title: strptime should implement %V or %u directive from libc - strptime should implement %G, %V and %u directives

[issue5979] strptime() gives inconsistent exceptions

2014-09-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5979 ___

[issue12006] strptime should implement %G, %V and %u directives

2014-09-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Documentation should say new in 3.5. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12006 ___ ___

[issue1565509] Repair or Change installation error

2014-09-29 Thread Steve Dower
Steve Dower added the comment: Newer versions of Windows Installer (this looks like an XP issue...) will preserve a copy of the original MSI in a safe place, so this problem should not occur any more. I vote to close. -- ___ Python tracker

[issue5979] strptime() gives inconsistent exceptions

2014-09-29 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5979 ___ ___

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

2014-09-29 Thread Steve Dower
Steve Dower added the comment: Should be fine. Both 2.7 and default have the full OpenSSL version in pyproject.vsprops, so they'll only use the version they expect. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10007

[issue22510] Faster bypass re cache when DEBUG is passed

2014-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine for your review. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22510

[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman
New submission from Ethan Furman: First, the behavior for pwd.struct_passwd: - -- pwd.getpwuid(1000) pwd.struct_passwd(pw_name='ethan', pw_passwd='x', pw_uid=1000, pw_gid=1000, pw_gecos='Ethan Furman,,,', pw_dir='/home/ethan', pw_shell='/bin/bash') --

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-09-29 Thread Claudiu Popa
Claudiu Popa added the comment: Indeed, it's a preexisting bug. I'll try to come up with a patch shortly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17442 ___

[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman
Ethan Furman added the comment: Test added. -- keywords: +patch stage: - needs patch Added file: http://bugs.python.org/file36752/issue22513.stoneleaf.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22513

[issue6978] compiler.transformer dict key bug d[1,] = 1

2014-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am closing this because a) Meador is correct that we do not normally patch deprecated features and b) the current emphasis on 2.7-only patches is security and keeping 2.7 working on current systems. The fix would only benefit 2.7.9+ code or 2.7.9+ and 3.x

[issue22460] idle editor: replace all in selection

2014-09-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: About your email problem: post to core-mentorship list and if you cannot do that, write to Ezio Melotti and/or R. David Murray directly, as they are tracker maintainers. -- stage: - needs patch ___ Python tracker

[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is because grp.struct_group contains unhashable component (a list). Same behavior with tuple: tuple(grp.getgrgid(1000)) ('serhiy', 'x', 1000, []) set(tuple(grp.getgrgid(1000))) Traceback (most recent call last): File stdin, line 1, in module

[issue22513] grp.struct_group is not hashable

2014-09-29 Thread Ethan Furman
Ethan Furman added the comment: Thanks, Serhiy. -- resolution: - not a bug stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22513 ___

[issue22486] Add math.gcd()

2014-09-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22486 ___ ___

[issue22514] incomplete programming example on python.org

2014-09-29 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: When I open www.python.org, there are some examples to demonstrate the look and feel of Python. I´ve tested an example (example number 1). Online, the following is shown: # Python 3: Fibonacci series up to n def fib(n): a, b = 0, 1

[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum
New submission from Ram Rachum: I suggest implementing `Counter.__lt__` which will be a partial order, similarly to `set.__lt__`. That is, one counter will be considered smaller-or-equal to another if for any item in the first counter, the second counter has an equal or bigger amount of that

[issue22194] access to cdecimal / libmpdec API

2014-09-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky alexander.belopol...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22194 ___ ___

[issue22437] re module: number of named groups is limited to 100 max

2014-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0b85ea4bd1af by Serhiy Storchaka in branch 'default': Issue #22437: Number of capturing groups in regular expression is no longer https://hg.python.org/cpython/rev/0b85ea4bd1af -- nosy: +python-dev ___

[issue22514] incomplete programming example on python.org

2014-09-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: 987 is indeed missing. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22514 ___

[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2014-09-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19569 ___

[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2014-09-29 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: There is already Py_DEPRECATED in Include/pyport.h: #if defined(__GNUC__) ((__GNUC__ = 4) || \ (__GNUC__ == 3) (__GNUC_MINOR__ = 1)) #define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__)) #else #define

[issue1565509] Repair or Change installation error

2014-09-29 Thread Zachary Ware
Zachary Ware added the comment: Steve Dower wrote: I vote to close. +1, and done. -- assignee: loewis - resolution: - third party stage: test needed - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue22437] re module: number of named groups is limited to 100 max

2014-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine for your review. To avoid discrepancy between re and regex (and other engines), I have committed only a part of dynamic patch, without adding support of backreferences with index over 99. It is unlikely to achieve this limit in hand

[issue22515] Implement partial order on Counter

2014-09-29 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Mon, Sep 29, 2014 at 07:33:21PM +, Ram Rachum wrote: I suggest implementing `Counter.__lt__` which will be a partial order, similarly to `set.__lt__`. Since Counter is described as a multiset, this sounds reasonable to me. -- nosy:

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

2014-09-29 Thread Zachary Ware
Zachary Ware added the comment: PCbuild/build_ssl.py in 2.7 and 3.4 look through pyproject.(vs)props for the openssl dir, and 3.5 no longer uses build_ssl.py in the regular build process, so this is in fact out of date. -- assignee: - zach.ware resolution: - out of date stage: -

[issue22515] Implement partial order on Counter

2014-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What should be result of following operations? Counter({'a': 0}) Counter({}) Counter({}) Counter({'a': 0}) Counter({'a': -1}) Counter({}) Counter({}) Counter({'a': -1}) -- nosy: +serhiy.storchaka ___ Python

[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum
Ram Rachum added the comment: I suggest they be ignored like in `elements`. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22515 ___ ___

[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum
Ram Rachum added the comment: (I mean, the non-positive values should be ignored.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22515 ___ ___

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

2014-09-29 Thread Francis MB
Francis MB added the comment: Why is test.support.EnvironmentVarGuard preferable over distutils.test.support.EnvironGuard (with this one I'm not getting the warnings below)? If I change the patch to (not so different (?) as in other tests using EnvironmentVarGuard): $hg diff diff -r

[issue22515] Implement partial order on Counter

2014-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is other definition of the = operator for sets: A = B is equivalent to len(A - B) == 0. Extending to Counter this can mean len(A.subtract(B).elements()) == 0. -- ___ Python tracker rep...@bugs.python.org

[issue22516] Windows Installer won't - even when using just for meoption

2014-09-29 Thread J. Morton
New submission from J. Morton: Could not install 3.4.1 on Windows 7 Enterprise SP1 using the .MSI installer, even when using the ”just for me” option (our IM department has not given us the necessary rights to run the .MSI installer even in this mode). Please consider providing 3.4.1 (and all

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

2014-09-29 Thread R. David Murray
R. David Murray added the comment: Sorry, I'm not that familiar with distutils and did not realize it had stuff for environment protection in the setUp/tearDown. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22512

[issue22516] Windows Installer won't - even when using just for meoption

2014-09-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Windows nosy: +steve.dower, terry.reedy, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22516 ___

[issue22516] Windows Installer won't - even when using just for meoption

2014-09-29 Thread R. David Murray
R. David Murray added the comment: The source tarball is the source tarball. You can built python yourself, but it does require MSVC. There are issues in this tracker about supporting other compilers, but for various reasons (mostly having to do with this being a volunteer community driven

[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-29 Thread paul
New submission from paul: # static void # bufferedrwpair_dealloc(rwpair *self) # { # _PyObject_GC_UNTRACK(self); # Py_CLEAR(self-reader); # Py_CLEAR(self-writer); # Py_CLEAR(self-dict); # Py_TYPE(self)-tp_free((PyObject *) self); # } # # Weakrefs to this object contain stale

[issue22516] Windows Installer won't - even when using just for meoption

2014-09-29 Thread Steve Dower
Steve Dower added the comment: The just for me option isn't really just for me. I'll probably have a real option in 3.5, though it may still require admin rights. There's no reason sites like www.portableapps.com couldn't provide true per-user installers, and Continuum Analytics and Enthought

[issue22518] integer overflow in encoding unicode

2014-09-29 Thread paul
New submission from paul: # static PyObject * # unicode_encode_ucs1(PyObject *unicode, # const char *errors, # unsigned int limit) # { # ... # while (pos size) { # ... # case 4: /* xmlcharrefreplace */ # /*

[issue22519] integer overflow in computing byte's object representation

2014-09-29 Thread paul
New submission from paul: # PyBytes_Repr(PyObject *obj, int smartquotes) # { # PyBytesObject* op = (PyBytesObject*) obj; # 1 Py_ssize_t i, length = Py_SIZE(op); # size_t newsize, squotes, dquotes; # ... # # /* Compute size of output string */ # newsize = 3; /* b'' */ #

[issue22520] integer overflow in computing unicode's object representation

2014-09-29 Thread paul
New submission from paul: # unicode_repr(PyObject *unicode) # { # ... # 1 isize = PyUnicode_GET_LENGTH(unicode); # idata = PyUnicode_DATA(unicode); # # /* Compute length of output, quote characters, and #maximum character */ # osize = 0; # ... # for (i = 0; i

[issue22516] Windows Installer won't - even when using just for meoption

2014-09-29 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - later stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22516 ___

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

2014-09-29 Thread Francis MB
Francis MB added the comment: No problem, but is the, 3 lines, patch ok? what are the next steps, if yes? Shouldn't be the issue status now 'patch review' or similar? Thanks in advance! -- ___ Python tracker rep...@bugs.python.org

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

2014-09-29 Thread R. David Murray
R. David Murray added the comment: Yes, sorry I forgot to change the stage. -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22512 ___

[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +benjamin.peterson, pitrou, stutzbach versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22517 ___

[issue22515] Implement partial order on Counter

2014-09-29 Thread Ethan Furman
Ethan Furman added the comment: What would be the result of Counter({'a':1, 'b':2}) Counter({'a':2, 'b':1}) ? -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22515

[issue22518] integer overflow in encoding unicode

2014-09-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks very similar to issue22470. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22518 ___

[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum
Ram Rachum added the comment: False, like with sets. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22515 ___ ___ Python-bugs-list mailing list

[issue22515] Implement partial order on Counter

2014-09-29 Thread R. David Murray
R. David Murray added the comment: Thanks, Ethan. I had a feeling that this wasn't well defined but I couldn't come up with an example :) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22515

[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum
Ram Rachum added the comment: David, there's nothing here that isn't well defined. It's simply a partial order, not a total order. We have the same for sets. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22515

[issue22515] Implement partial order on Counter

2014-09-29 Thread Ethan Furman
Ethan Furman added the comment: set's don't have values, and you are wanting to implement the partial ordering based on the values. (side-note: how does partial-ordering work for sets?) That is, one counter will be considered smaller-or-equal to another if for any item in the first counter,

[issue22515] Implement partial order on Counter

2014-09-29 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22515 ___ ___

[issue22515] Implement partial order on Counter

2014-09-29 Thread Ram Rachum
Ram Rachum added the comment: Ethan, I don't understand what the problem is. I also don't understand your side note question how does partial-ordering work for sets? I'm not sure what you're asking. That is, one counter will be considered smaller-or-equal to another if for any item in

  1   2   >