Portable Python 2.7.5.1 released

2013-05-21 Thread Perica Zivkovic
Dear people, I would like to announce new release of Portable Python based on Python 2.7.5 Included in this release: - PyScripter v2.5.3 NymPy 1.7.1 SciPy 0.12.0 Matplotlib 1.2.1 PyWin32 218 Django 1.5.1 PIL 1.1.7 Py2Exe 0.6.9 wxPython 2.9.4.0 NetworkX 1.7 Lxml

github3.py v0.7.0

2013-05-21 Thread Ian Cordasco
Hi all, github3.py version 0.7.0 was released today. The following is a list of all changes since 0.6.1: - Fix ``Issue.close``, ``Issue.reopen``, and ``Issue.assign``. (Issue #106) - Add ``check_authorization`` to the ``GitHub class`` to cover the `new part of the API

Re: Question about ast.literal_eval

2013-05-21 Thread Frank Millman
On 20/05/2013 18:12, Steven D'Aprano wrote: On Mon, 20 May 2013 15:26:02 +0200, Frank Millman wrote: Can anyone see anything wrong with the following approach. I have not definitely decided to do it this way, but I have been experimenting and it seems to work. [...] It seems safe to me

Re: Question about ast.literal_eval

2013-05-21 Thread Frank Millman
On 20/05/2013 18:13, Chris Angelico wrote: On Mon, May 20, 2013 at 11:26 PM, Frank Millman fr...@chagford.com wrote: 0 - for the first entry in the list, the word 'check' (a placeholder - it is discarded at evaluation time), for any subsequent entries the word 'and' or 'or'. 1 - left bracket -

Re: Question about ast.literal_eval

2013-05-21 Thread Steven D'Aprano
On Tue, 21 May 2013 08:30:03 +0200, Frank Millman wrote: On 20/05/2013 18:12, Steven D'Aprano wrote: Personally, I would strongly suggest writing your own mini- evaluator that walks the list and evaluates it by hand. It isn't as convenient as just calling eval, but *definitely* safer. I

Re: Question about ast.literal_eval

2013-05-21 Thread Chris Angelico
On Tue, May 21, 2013 at 4:46 PM, Frank Millman fr...@chagford.com wrote: You may be right, Chris, but I don't think my approach is all that bad. Frankly, I'm not altogether convinced that our approach is right either :) But like the Oracle in the Matrix, I'm not here to push you to one decision

Re: How to run a python script twice randomly in a day?

2013-05-21 Thread Chris Angelico
On Tue, May 21, 2013 at 11:12 AM, Cameron Simpson c...@zip.com.au wrote: Ok, good. Some minor remarks: Personally, I always use: #!/bin/sh instead of requiring bash. All UNIX systems have sh, bash is only common. And even when present, it may not be in /bin. /bin/sh is always there, and

Re: Question about ast.literal_eval

2013-05-21 Thread Frank Millman
On 21/05/2013 09:21, Steven D'Aprano wrote: On Tue, 21 May 2013 08:30:03 +0200, Frank Millman wrote: I am not sure I can wrap my mind around mixed 'and's, 'or's, and brackets. Parsers are a solved problem in computer science, he says as if he had a clue what he was talking about *wink*

Re: How to run a python script twice randomly in a day?

2013-05-21 Thread Jussi Piitulainen
Chris Angelico writes: On 20May2013 15:05, Avnesh Shakya wrote: So your call picks a number from 0..58, not 0..59. Say randrange(0,60). Think start, length. Nitpick: It's not start, length; it's start, stop-before. If the start is 10 and the second argument is 20, you'll get numbers

Re: Question about ast.literal_eval

2013-05-21 Thread Fábio Santos
On 21 May 2013 09:10, Frank Millman fr...@chagford.com wrote: It doesn't address the issue of brackets. I imagine that the answer is something like - maintain a stack of results for each left bracket, push a level for each right bracket, pop the result or something ... Time for me

sympy.nsimplify

2013-05-21 Thread Steven D'Aprano
For maths nerds like me, this is too cool for words: http://www.johndcook.com/blog/2013/04/30/recognizing-numbers/ -- Steven -- http://mail.python.org/mailman/listinfo/python-list

please help

2013-05-21 Thread iman . memarpour
WAP in python to accept a list of words on STDIN and searches for a line containing all five vowels(a,e,i,o,u) -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about ast.literal_eval

2013-05-21 Thread Mark Lawrence
On 21/05/2013 09:23, Fábio Santos wrote: On 21 May 2013 09:10, Frank Millman fr...@chagford.com mailto:fr...@chagford.com wrote: It doesn't address the issue of brackets. I imagine that the answer is something like - maintain a stack of results for each left bracket, push a level

Re: please help

2013-05-21 Thread Chris Angelico
On Tue, May 21, 2013 at 6:38 PM, iman.memarp...@gmail.com wrote: WAP in python to accept a list of words on STDIN and searches for a line containing all five vowels(a,e,i,o,u) Homework. Have a shot at it yourself, post your code, show that you can put in some effort. Otherwise we won't see

Re: please help

2013-05-21 Thread Mark Lawrence
On 21/05/2013 09:38, iman.memarp...@gmail.com wrote: WAP in python to accept a list of words on STDIN and searches for a line containing all five vowels(a,e,i,o,u) Sorry we don't do your homework for you. But your starter for 10 is to use raw_input on Python 2 or input on Python 3 to fetch

Re: sympy.nsimplify

2013-05-21 Thread Chris Angelico
On Tue, May 21, 2013 at 6:26 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: For maths nerds like me, this is too cool for words: http://www.johndcook.com/blog/2013/04/30/recognizing-numbers/ It is indeed, very cool. I think I need to conjure an excuse to use this someplace.

Re: How to run a python script twice randomly in a day?

2013-05-21 Thread Chris Angelico
On Tue, May 21, 2013 at 6:21 PM, Jussi Piitulainen jpiit...@ling.helsinki.fi wrote: Chris Angelico writes: On 20May2013 15:05, Avnesh Shakya wrote: So your call picks a number from 0..58, not 0..59. Say randrange(0,60). Think start, length. Nitpick: It's not start, length; it's

64-bit Python for Solaris

2013-05-21 Thread Matchek
Hello python-list, I'm looking into creating a 32/64-bit Python (2.x and/or 3.x) package for Solaris. The specificity of that package is that I need to include both 32-bit and 64-bit binaries in it. The exact way in which the 32/64 support is done is described at [1]. There currently is a Python

Re: How to run a python script twice randomly in a day?

2013-05-21 Thread Cameron Simpson
On 21May2013 17:56, Chris Angelico ros...@gmail.com wrote: | On Tue, May 21, 2013 at 11:12 AM, Cameron Simpson c...@zip.com.au wrote: | - randrange() is like other python ranges: it does not include the end value. |So your call picks a number from 0..58, not 0..59. |Say randrange(0,60).

Re: sympy.nsimplify

2013-05-21 Thread Skip Montanaro
Very cool indeed. In the comments was a link to an XKCD cartoon. Its tool tip mentioned twin primes. Looked that up. Google pointed (of course) at Wikipedia. Read that. Backed up to the Google Search, and noticed there is a news item from 15 hours ago that an unknown mathematician at the

Re: sympy.nsimplify

2013-05-21 Thread Paul Rudin
Skip Montanaro s...@pobox.com writes: Very cool indeed. In the comments was a link to an XKCD cartoon. Its tool tip mentioned twin primes. Looked that up. Google pointed (of course) at Wikipedia. Read that. Backed up to the Google Search, and noticed there is a news item from 15 hours

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Alysson Bruno
This work in 3.1+: $ python3 Python 3.1.3 (r313:86834, Nov 28 2010, 11:28:10) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. one_number = 1234567 print('number={:,}'.format(one_number)) number=1,234,567 paz e amor (love and peace), Alysson Bruno

Static Maps from Lat Long data in XLS file

2013-05-21 Thread kobewka
Hello, I'm new to Python, but I think it can solve my problem and I am looking for a someone to point me to tutorial or give me some tips here. I have an xls file that has about 1,000 latitude and longitude points. I want to do one of two things: 1) Save a static maps and street view image

suggestions for best practices lite for small site deployment with testing

2013-05-21 Thread Harry Percival
Hi everyone, We've been having a bit of a discussion of this topic over on the Python-UK list (http://mail.python.org/pipermail/python-uk/2013-May/thread.html#2949), and I was a bit shy about mailing out to the big, bad, worldwide Python list, but I'm forcing myself! So I'm writing a book, for

Re: How to run a python script twice randomly in a day?

2013-05-21 Thread Dave Angel
On 05/21/2013 06:32 AM, Cameron Simpson wrote: On 21May2013 17:56, Chris Angelico ros...@gmail.com wrote: | On Tue, May 21, 2013 at 11:12 AM, Cameron Simpson c...@zip.com.au wrote: | - randrange() is like other python ranges: it does not include the end value. |So your call picks a number

Re: Static Maps from Lat Long data in XLS file

2013-05-21 Thread Ken Bolton
On Tue, May 21, 2013 at 9:12 AM, kobe...@gmail.com wrote: Hello, I'm new to Python, but I think it can solve my problem and I am looking for a someone to point me to tutorial or give me some tips here. Hi! I am a first-time poster to python-list, but I think I can help you. I have an xls

Re: Harmonic distortion of a input signal

2013-05-21 Thread Oscar Benjamin
On 20 May 2013 18:23, jmfauth wxjmfa...@gmail.com wrote: Non sense. The discrete fft algorithm is valid only if the number of data points you transform does correspond to a power of 2 (2**n). As with many of your comments about Python's unicode implementation you are confusing performance

How to raise a socket 104 connection reset by peer error

2013-05-21 Thread loial
For testing purposes I want my code to raise a socket connection reset by peer error, so that I can test how I handle it, but I am not sure how to raise the error. Any advice appreciated -- http://mail.python.org/mailman/listinfo/python-list

@staticmethods called more than once

2013-05-21 Thread Christian
Hi, i'm somewhat confused working with @staticmethods. My logger and configuration methods are called n times, but I have only one call. n is number of classes which import the loger and configuration class in the subfolder mymodule. What might be my mistake mistake? Many thanks Christian

Re: Static Maps from Lat Long data in XLS file

2013-05-21 Thread Tim Daneliuk
On 05/21/2013 08:12 AM, kobe...@gmail.com wrote: Hello, I'm new to Python, but I think it can solve my problem and I am looking for a someone to point me to tutorial or give me some tips here. I have an xls file that has about 1,000 latitude and longitude points. I want to do one of two

Re: @staticmethods called more than once

2013-05-21 Thread Skip Montanaro
Don't confuse the use of static in Python with its use in C/C++. From a post on StackOverflow: A staticmethod is a method that knows nothing about the class or instance it was called on. It just gets the arguments that were passed, no implicit first argument. It is basically useless in Python

Re: How to raise a socket 104 connection reset by peer error

2013-05-21 Thread Andrew Berg
On 2013.05.21 10:26, loial wrote: For testing purposes I want my code to raise a socket connection reset by peer error, so that I can test how I handle it, but I am not sure how to raise the error. Arbitrary exceptions can be raised with the raise keyword. In Python 3.3, that exact error got

Re: @staticmethods called more than once

2013-05-21 Thread John Gordon
In 02f0123d-2f9e-4287-b983-cfa1db9db...@googlegroups.com Christian mining.fa...@gmail.com writes: Hi, i'm somewhat confused working with @staticmethods. My logger and configuration methods are called n times, but I have only one call. n is number of classes which import the loger and

Re: @staticmethods called more than once

2013-05-21 Thread John Gordon
In kng7n6$efc$1...@reader1.panix.com John Gordon gor...@panix.com writes: You should only call addHandler() once. ...for each intended logging output destination, of course. If you want logging output to appear in a file and on-screen, then you would call addHandler() once with a file handler

Re: @staticmethods called more than once

2013-05-21 Thread Ethan Furman
On 05/21/2013 08:39 AM, Skip Montanaro wrote: Don't confuse the use of static in Python with its use in C/C++. From a post on StackOverflow: A staticmethod is a method that knows nothing about the class or instance it was called on. It just gets the arguments that were passed, no

Re: @staticmethods called more than once

2013-05-21 Thread Christian
Am Dienstag, 21. Mai 2013 18:48:07 UTC+2 schrieb John Gordon: In kng7n6$efc$1...@reader1.panix.com John Gordon gor...@panix.com writes: You should only call addHandler() once. ...for each intended logging output destination, of course. If you want logging output to appear in a

More general way of generating PyODBC queries as a dict?

2013-05-21 Thread stackoverflowuser95
Here are my averagely general class methods for creating a dictionary from the result of database queries: def make_schema_dict(self): schema = [i[2] for i in self.cursor.tables() if i[2].startswith('tbl_') or i[2].startswith('vw_')] self.schema = {table: {'scheme':

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Carlos Nepomuceno
From: alyssonbr...@gmail.com Date: Tue, 21 May 2013 09:03:13 -0300 Subject: Re: PEP 378: Format Specifier for Thousands Separator To: python-list@python.org This work in 3.1+: $ python3 Python 3.1.3 (r313:86834, Nov 28 2010, 11:28:10) [GCC

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Chris “Kwpolska” Warrick
On Tue, May 21, 2013 at 8:49 PM, Carlos Nepomuceno carlosnepomuc...@outlook.com wrote: Thank you, but let me rephrase it. I'm already using str.format() but I'd like to use '%' (BINARY_MODULO) operator instead. There is no real reason to do this. `str.format()` is the new shiny thing you

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Skip Montanaro
Thank you, but let me rephrase it. I'm already using str.format() but I'd like to use '%' (BINARY_MODULO) operator instead. That's unlikely to change. If not deprecated already string interpolation using the modulo operator has lost favor to the string object's format method. You might be

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Mark Lawrence
On 21/05/2013 20:13, Skip Montanaro wrote: Thank you, but let me rephrase it. I'm already using str.format() but I'd like to use '%' (BINARY_MODULO) operator instead. That's unlikely to change. If not deprecated already string interpolation using the modulo operator has lost favor to the

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Carlos Nepomuceno
From: kwpol...@gmail.com Date: Tue, 21 May 2013 21:06:11 +0200 Subject: Re: PEP 378: Format Specifier for Thousands Separator To: carlosnepomuc...@outlook.com CC: python-list@python.org On Tue, May 21, 2013 at 8:49 PM, Carlos Nepomuceno

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Carlos Nepomuceno
Analysing the code of stringobject.c I've found formatint() and formatlong(). I mean _PyString_FormatLong() -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Andrew Berg
On 2013.05.21 14:26, Mark Lawrence wrote: On 21/05/2013 20:13, Skip Montanaro wrote: Thank you, but let me rephrase it. I'm already using str.format() but I'd like to use '%' (BINARY_MODULO) operator instead. That's unlikely to change. If not deprecated already string interpolation using

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Ethan Furman
On 05/21/2013 12:06 PM, Chris “Kwpolska” Warrick wrote: On Tue, May 21, 2013 at 8:49 PM, Carlos Nepomuceno wrote: Thank you, but let me rephrase it. I'm already using str.format() but I'd like to use '%' (BINARY_MODULO) operator instead. There is no real reason to do this. `str.format()`

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Carlos Nepomuceno
To: python-list@python.org From: breamore...@yahoo.co.uk Subject: Re: PEP 378: Format Specifier for Thousands Separator Date: Tue, 21 May 2013 20:26:41 +0100 On 21/05/2013 20:13, Skip Montanaro wrote: Thank you, but let me rephrase it. I'm already

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Carlos Nepomuceno
Date: Tue, 21 May 2013 14:53:54 -0500 From: bahamutzero8...@gmail.com To: python-list@python.org [...] What myth? People should indeed be using .format(), but no one said % formatting was going away soon. Also, the suggested change to the docs

Modules list-tool

2013-05-21 Thread Gisle Vanem
Are anyone aware of a tool that can show me at run-time which modules (pyd/dll) are loaded into a Python program at a specific time (or over time)? To clarify, e.g. when running a sample from PyQt4 (examples\tutorials\addressbook\part1.pyw) and using Process Explorer [1], I can launch WinDbg

Re: Translation API in Python

2013-05-21 Thread Hala Gamal
ok MR, I have searched before asking here,but i didn't find thing -- http://mail.python.org/mailman/listinfo/python-list

A computer programmer, web developer and network admin resume

2013-05-21 Thread i...@databaseprograms.biz
A computer programmer, web developer and network administrator resume. For a resume in HTML or .Doc format click on: www.DatabasePrograms.Bizhttp://www.databaseprograms.biz/ If you would like this in text format instead, please let me know. Daniel Rapaport 1-949-307-2485

Re: @staticmethods called more than once

2013-05-21 Thread 88888 Dihedral
Ethan Furman於 2013年5月22日星期三UTC+8上午12時30分22秒寫道: On 05/21/2013 08:39 AM, Skip Montanaro wrote: Don't confuse the use of static in Python with its use in C/C++. From a post on StackOverflow: A staticmethod is a method that knows nothing about the class or instance it was

Re: A computer programmer, web developer and network admin resume

2013-05-21 Thread Denis McMahon
On Wed, 22 May 2013 01:15:27 +, i...@databaseprograms.biz wrote: If you would like this in text format instead, please let me know. What if we don't want it at all? -- Denis McMahon, denismfmcma...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-21 Thread Carlos Nepomuceno
I was looking for something else and just found what I think is the place where I was first exposed to the myth[1]: Since str.format() is quite new, a lot of Python code still uses the %  operator. However, because this old style of formatting will eventually be removed from the language, 

Re: A computer programmer, web developer and network admin resume

2013-05-21 Thread Tim Chase
On 2013-05-22 01:15, i...@databaseprograms.biz wrote: A computer programmer, web developer and network administrator ...walk into a bar... So what's the punchline? -tkc -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Steven D'Aprano
On Tue, 21 May 2013 23:22:24 +0300, Carlos Nepomuceno wrote: Anyway, is it possible to overload str.__mod__() without deriving a class? I mean to have something like: No, not in Python. If you want to monkey-patch built-in classes on the fly, with all the troubles that causes, use Ruby. --

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Carlos Nepomuceno
From: steve+comp.lang.pyt...@pearwood.info Subject: Re: PEP 378: Format Specifier for Thousands Separator Date: Wed, 22 May 2013 02:42:56 + To: python-list@python.org On Tue, 21 May 2013 23:22:24 +0300, Carlos Nepomuceno wrote: Anyway, is it

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Steven D'Aprano
On Tue, 21 May 2013 14:53:54 -0500, Andrew Berg wrote: On 2013.05.21 14:26, Mark Lawrence wrote: Please stop perpetuating this myth, see http://mail.python.org/pipermail/python-dev/2012-February/116789.html and http://bugs.python.org/issue14123 What myth? The myth that % string

Re: How to run a python script twice randomly in a day?

2013-05-21 Thread Cameron Simpson
On 21May2013 09:54, Dave Angel da...@davea.name wrote: | On 05/21/2013 06:32 AM, Cameron Simpson wrote: | On 21May2013 17:56, Chris Angelico ros...@gmail.com wrote: | | On Tue, May 21, 2013 at 11:12 AM, Cameron Simpson c...@zip.com.au wrote: | | - randrange() is like other python ranges: it does

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Steven D'Aprano
On Wed, 22 May 2013 05:56:53 +0300, Carlos Nepomuceno wrote: From: steve+comp.lang.pyt...@pearwood.info Subject: Re: PEP 378: Format Specifier for Thousands Separator Date: Wed, 22 May 2013 02:42:56 + To: python-list@python.org On Tue, 21 May

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-21 Thread Ethan Furman
On 05/21/2013 07:26 PM, Carlos Nepomuceno wrote: I was looking for something else and just found what I think is the place where I was first exposed to the myth[1]: Since str.format() is quite new, a lot of Python code still uses the % operator. However, because this old style of formatting

Re: Myth Busters: % this old style of formatting will eventually be removed from the language

2013-05-21 Thread Ned Batchelder
On 5/21/2013 10:26 PM, Carlos Nepomuceno wrote: I was looking for something else and just found what I think is the place where I was first exposed to the myth[1]: Since str.format() is quite new, a lot of Python code still uses the % operator. However, because this old style of formatting

Re: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Andrew Berg
On 2013.05.21 21:59, Steven D'Aprano wrote: On Tue, 21 May 2013 14:53:54 -0500, Andrew Berg wrote: On 2013.05.21 14:26, Mark Lawrence wrote: Please stop perpetuating this myth, see http://mail.python.org/pipermail/python-dev/2012-February/116789.html and http://bugs.python.org/issue14123

RE: PEP 378: Format Specifier for Thousands Separator

2013-05-21 Thread Carlos Nepomuceno
From: steve+comp.lang.pyt...@pearwood.info Subject: Re: PEP 378: Format Specifier for Thousands Separator Date: Wed, 22 May 2013 03:08:54 + To: python-list@python.org [...] So, the only alternative to have '%,d' % x rendering the thousands

Case insensitive dict

2013-05-21 Thread Joseph L. Casale
I was doing some work with the ldap module and required a ci dict that was case insensitive but case preserving. It turned out the cidict class they implemented was broken with respect to pop, it is inherited and not re implemented to work. Before I set about re-inventing the wheel, anyone know

Re: Case insensitive dict

2013-05-21 Thread Steven D'Aprano
On Wed, 22 May 2013 03:59:55 +, Joseph L. Casale wrote: I was doing some work with the ldap module and required a ci dict that was case insensitive but case preserving. It turned out the cidict class they implemented was broken with respect to pop, it is inherited and not re implemented

[issue17973] FAQ entry for: '+=' on a list inside tuple both succeeds and raises an exception

2013-05-21 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree that there's probably no good solution here. Catching TypeError would require emitting a lot more byte code, and would change the semantics of augmented assignment, in particular it wouldn't really be an assignment statement anymore (and hides some

[issue17140] Provide a more obvious public ThreadPool API

2013-05-21 Thread Tillmann Karras
Changes by Tillmann Karras til...@gmail.com: -- nosy: +Tilka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17140 ___ ___ Python-bugs-list mailing

[issue17683] socket.getsockname() inconsistent return type with AF_UNIX

2013-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0f2b038fc12 by Charles-François Natali in branch 'default': Issue #17683: socket module: return AF_UNIX addresses in Linux abstract http://hg.python.org/cpython/rev/c0f2b038fc12 -- nosy: +python-dev ___

[issue17683] socket.getsockname() inconsistent return type with AF_UNIX

2013-05-21 Thread Charles-François Natali
Charles-François Natali added the comment: Antoine, I need your help :-) http://buildbot.python.org/all/builders/x86 Gentoo Non-Debug 3.x/builds/4311/steps/test/logs/stdio == ERROR: testLinuxAbstractNamespace

[issue18004] test_list.test_overflow crashes Win64

2013-05-21 Thread Anselm Kruis
Anselm Kruis added the comment: I take it you have more than 16GB of RAM? I used a system with 16GB Ram. What happens if you replace sys.maxint with sys.maxsize in test_overflow? The test passes. Both mul and imul raise MemoryError. -- ___ Python

[issue18028] Warnings with -fstrict-aliasing

2013-05-21 Thread Bohuslav Slavek Kabrda
New submission from Bohuslav Slavek Kabrda: Hi, I'm getting these warnings with -fstrict-aliasing, compiling Python 3.3.2 (compiling with gcc 4.4.7): /builddir/build/BUILD/Python-3.3.2/Python/ceval.c: In function 'PyEval_EvalFrameEx': /builddir/build/BUILD/Python-3.3.2/Python/ceval.c:1006:

[issue17683] socket.getsockname() inconsistent return type with AF_UNIX

2013-05-21 Thread Charles-François Natali
Charles-François Natali added the comment: Hum, IIUC, basically what happens is that the user could - and still can - pass arbitrary bytes as address (which is legtit), but depending on the encoding, getsockaddr() and friends might blow up when decoding it. If that's correct, that's bad, and

[issue13146] Writing a pyc file is not atomic

2013-05-21 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/issue13146 ___

[issue18028] Warnings with -fstrict-aliasing

2013-05-21 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Your Python/ceval.c has custom patches applied. Line 1006 is a comment in unmodified Python/ceval.c in Python 3.3.2. This bug might be caused by your patches. Alternatively it is a bug in GCC 4.4.7. I get 0 warnings for unmodified

[issue6299] pyexpat build failure on Solaris 10 for 2.6.1/2.6.2

2013-05-21 Thread Mark Lawrence
Mark Lawrence added the comment: Is this still a problem given that both Python and Solaris have moved on? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6299 ___

[issue15392] Create a unittest framework for IDLE

2013-05-21 Thread Guilherme Simões
Guilherme Simões added the comment: Now I can apply the patch successfully and everything seems to be working. Thanks, Terry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15392 ___

[issue18028] Warnings with -fstrict-aliasing

2013-05-21 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: Hmm, you're probably right. The problem seems to be in downstream redefinition of READ_TIMESTAMP. Sorry for the fuzz, closing. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-21 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17917

[issue17914] add os.cpu_count()

2013-05-21 Thread Charles-François Natali
Changes by Charles-François Natali cf.nat...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17914 ___

[issue18015] python 2.7.5 fails to unpickle namedtuple pickled by 2.7.3 or 2.7.4

2013-05-21 Thread Anselm Kruis
Anselm Kruis added the comment: Just for the records: the patch works as expected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18015 ___ ___

[issue18015] python 2.7.5 fails to unpickle namedtuple pickled by 2.7.3 or 2.7.4

2013-05-21 Thread Ralf Schmitt
Changes by Ralf Schmitt python-b...@systemexit.de: -- nosy: +schmir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18015 ___ ___ Python-bugs-list

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-21 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: @antoine I don't understand This is a lot of code churn, but it touches code that is unlikely to be modified otherwise, so I guess it's ok.. What does it mean it's okay when it touches on code that's unlikely to be modified? -- nosy: +tshepang

[issue17900] Recursive OrderedDict pickling

2013-05-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 56f25569ba86 by Serhiy Storchaka in branch 'default': Issue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickled http://hg.python.org/cpython/rev/56f25569ba86 -- nosy: +python-dev ___

[issue17917] use PyModule_AddIntMacro() instead of PyModule_AddIntConstant() when applicable

2013-05-21 Thread Charles-François Natali
Charles-François Natali added the comment: I don't understand This is a lot of code churn, but it touches code that is unlikely to be modified otherwise, so I guess it's ok.. What does it mean it's okay when it touches on code that's unlikely to be modified? The problem with refactoring is

[issue17900] Recursive OrderedDict pickling

2013-05-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17900

[issue18028] Warnings with -fstrict-aliasing

2013-05-21 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: Actually, this appears on vanilla Python 3.3 with -DWITH_TSC: Python/ceval.c: In function ‘PyEval_EvalFrameEx’: Python/ceval.c:986:5: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]

[issue17844] Add link to alternatives for bytes-to-bytes codecs

2013-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Not a bad idea. How about implementation? Here is updated patches for 3.x and 2.7. Note that in 2.7 I split codecs table as in 3.x. -- Added file: http://bugs.python.org/file30331/doc_codecs_impl.patch ___

[issue17844] Add link to alternatives for bytes-to-bytes codecs

2013-05-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file30332/doc_codecs_impl-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17844 ___

[issue17844] Add link to alternatives for bytes-to-bytes codecs

2013-05-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file30013/doc_codecs_impl.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17844 ___

[issue17683] socket.getsockname() inconsistent return type with AF_UNIX

2013-05-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hum, IIUC, basically what happens is that the user could - and still can - pass arbitrary bytes as address (which is legtit), but depending on the encoding, getsockaddr() and friends might blow up when decoding it. Shouldn't the surrogateescape error

[issue17140] Provide a more obvious public ThreadPool API

2013-05-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: Given that the change could only be made to 3.4, and we already have concurrent.futures.ThreadPoolExecutor, I am not sure there is much point to such a change now. -- nosy: +sbt ___ Python tracker

[issue17844] Add link to alternatives for bytes-to-bytes codecs

2013-05-21 Thread Nick Coghlan
Nick Coghlan added the comment: I like the idea of splitting the table in 2.7 rather than using a result type column. However, the two intro paragraphs need a bit of work. How does the following sound: 1. Create a new subheading at the same level as the current Standard Encodings heading:

[issue17140] Provide a more obvious public ThreadPool API

2013-05-21 Thread Nick Coghlan
Nick Coghlan added the comment: Thread Pools can be handy when you want to do explicit message passing, rather than the call-and-response model favoured by the futures module. -- ___ Python tracker rep...@bugs.python.org

[issue12641] Remove -mno-cygwin from distutils

2013-05-21 Thread Paul Moore
Changes by Paul Moore p.f.mo...@gmail.com: -- nosy: +pmoore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___ ___ Python-bugs-list mailing

[issue17140] Provide a more obvious public ThreadPool API

2013-05-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: I don't understand what you mean by explicit message passing and call-and-response model. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17140 ___

[issue17140] Provide a more obvious public ThreadPool API

2013-05-21 Thread Nick Coghlan
Nick Coghlan added the comment: Future are explicitly about kicking off a concurrent call and waiting for a reply. They're great for master/slave and client/server models, but not particularly good for actors and other forms of peer-to-peer message passing. For the latter, explicit pools and

[issue17453] logging.config.fileConfig error

2013-05-21 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- resolution: - works for me stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17453 ___

[issue17844] Add link to alternatives for bytes-to-bytes codecs

2013-05-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: However, the two intro paragraphs need a bit of work. Yes, it's a help which I needed. Thank you. However your wording is not entirely correct. In 2.7 binary-to-binary codecs and rot-13 works with Unicode strings (only ascii-compatible) as with bytes

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2013-05-21 Thread Ken Giusti
Changes by Ken Giusti kgiu...@gmail.com: -- nosy: +Ken.Giusti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8240 ___ ___ Python-bugs-list mailing

[issue12641] Remove -mno-cygwin from distutils

2013-05-21 Thread Oscar Benjamin
Oscar Benjamin added the comment: I'd really like to get a resolution on this issue so I've tried to gather some more information about this problem by asking some questions in the mingw-users mailing list. The resulting thread can be found here:

  1   2   >