PyPy3 2.1 beta 1 released

2013-07-31 Thread Philip Jenvey
PyPy3 2.1 beta 1 We're pleased to announce the first beta of the upcoming 2.1 release of PyPy3. This is the first release of PyPy which targets Python 3 (3.2.3) compatibility. We would like to thank all of the people who donated_ to the `py3k proposal`_ for

Re: PEP8 79 char max

2013-07-31 Thread Joshua Landau
On 30 July 2013 18:52, Grant Edwards invalid@invalid.invalid wrote: On 2013-07-30, Joshua Landau jos...@landau.ws wrote: On 30 July 2013 18:08, Vito De Tullio vito.detul...@gmail.com wrote: Ed Leafe wrote: I had read about a developer who switched to using proportional fonts for

Re: Python script help

2013-07-31 Thread Joshua Landau
On 30 July 2013 22:47, Cameron Simpson c...@zip.com.au wrote: On 30Jul2013 09:12, cool1...@gmail.com cool1...@gmail.com wrote: | ** urlib, urlib2 Sure. And I'd use BeautifulSoup to do the parse. You'll need to fetch that. So: urllib[2] to fetch the document and BS to parse it for links,

Re: Share Code: Laptop Lid State

2013-07-31 Thread Chris Angelico
On Wed, Jul 31, 2013 at 4:05 AM, Devyn Collier Johnson devyncjohn...@gmail.com wrote: On 07/30/2013 12:00 PM, Chris Angelico wrote: On Tue, Jul 30, 2013 at 3:06 PM, Devyn Collier Johnson devyncjohn...@gmail.com wrote: Aloha everyone! I attached a script that I thought I could share

Re: RE Module Performance

2013-07-31 Thread Chris Angelico
On Wed, Jul 31, 2013 at 6:45 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: if you care about minimizing every possible byte, you should use a low-level language like C. Then you can give every character 21 bits, and be happy that you don't waste even one bit. Could go better!

Re: RE Module Performance

2013-07-31 Thread Antoon Pardon
Op 31-07-13 05:30, Michael Torrie schreef: On 07/30/2013 12:19 PM, Antoon Pardon wrote: So? Why are you making this a point of discussion? I was not aware that the pro and cons of various editor buffer implemantations was relevant to the point I was trying to make. I for one found it very

Re: PEP8 79 char max

2013-07-31 Thread llanitedave
It's not just the number of characters, it's the size and the font. Even fixed-width fonts differ greatly in their readability. I can handle different line widths just fine up til about 120 or so without losing the flow of the program, but some fonts simply make it more difficult at any

Re: RE Module Performance

2013-07-31 Thread Antoon Pardon
Op 30-07-13 21:09, wxjmfa...@gmail.com schreef: Matable, immutable, copyint + xxx, bufferint, O(n) Yes, but conceptualy the reencoding happen sometime, somewhere. Which is a far cry from your previous claim that it happened every time you enter a char. This of course make your case harder

Re: Python script help

2013-07-31 Thread cool1574
Here are some scripts, how do I put them together to create the script I want? (to search a online document and download all the links in it) p.s: can I set a destination folder for the downloads? urllib.urlopen(http://;) possible_urls = re.findall(r'\S+:\S+', text) import urllib2 response

Re: RE Module Performance

2013-07-31 Thread wxjmfauth
FSR: === The 'a' in 'a€' and 'a\U0001d11e: ['{:#010b}'.format(c) for c in 'a€'.encode('utf-16-be')] ['0b', '0b0111', '0b0010', '0b10101100'] ['{:#010b}'.format(c) for c in 'a\U0001d11e'.encode('utf-32-be')] ['0b', '0b', '0b', '0b0111', '0b',

Re: RE Module Performance

2013-07-31 Thread Antoon Pardon
Op 31-07-13 10:32, wxjmfa...@gmail.com schreef: Unicode/utf* i) (primary key) Create and use a unique set of encoded code points. FSR does this. st1 = 'a€' st2 = 'aa' ord(st1[0]) 97 ord(st2[0]) 97 ii) (secondary key) Depending of the wish, memory/performance:

Re: Python descriptor protocol (for more or less structured data)

2013-07-31 Thread CWr
Peter, thanks for your response. Sure, you are right when you say that's easier to use standard attribute assigning via __init__. But my intention was: - reducing the complexiticity of __init__ - avoiding boiler-plates (mostly property descriptors inside of the main class) - creating instances

Problem with psycopg2, bytea, and memoryview

2013-07-31 Thread Frank Millman
Hi all I don't know if this question is more appropriate for the psycopg2 list, but I thought I would ask here first. I have some binary data (a gzipped xml object) that I want to store in a database. For PostgreSQL I use a column with datatype 'bytea', which is their recommended way of

Re: Problem with psycopg2, bytea, and memoryview

2013-07-31 Thread Antoine Pitrou
Frank Millman frank at chagford.com writes: I have some binary data (a gzipped xml object) that I want to store in a database. For PostgreSQL I use a column with datatype 'bytea', which is their recommended way of storing binary strings. I use psycopg2 to access the database. It returns

Re: Is it that easy to install Python ?

2013-07-31 Thread santiago . diez
OK thanks for your answers. So Python is not a daemon. Is it? Does it have a config file? Actually, each site on the web server is jailed in a chrooted environment. In the chrooted environment, Python appears to be in /usr/bin/python. If I give developers write access to a folder like

Repository of non-standard modules.

2013-07-31 Thread Gabor Urban
Hi, I am to start a new free-time project in the next couple of weeks. I am ready to use open accessible Python modules not wanting to reinvent the weel :-) Is there any repository where I can find Python modules not being part of the standard distribution? I have some hits by Google but that

Re: PEP8 79 char max

2013-07-31 Thread Tim Chase
On 2013-07-31 07:16, Joshua Landau wrote: On 30 July 2013 18:52, Grant Edwards wrote: I also find intializers for tables of data to be much more easily read and maintained if the columns can be aligned. Why do you have tables in your Python code? I've had occasion to write things like:

Re: Repository of non-standard modules.

2013-07-31 Thread Chris Angelico
On Wed, Jul 31, 2013 at 11:53 AM, Gabor Urban urbang...@gmail.com wrote: Hi, I am to start a new free-time project in the next couple of weeks. I am ready to use open accessible Python modules not wanting to reinvent the weel :-) Is there any repository where I can find Python modules not

Re: Problem with psycopg2, bytea, and memoryview

2013-07-31 Thread Frank Millman
Antoine Pitrou solip...@pitrou.net wrote in message news:loom.20130731t114936-...@post.gmane.org... Frank Millman frank at chagford.com writes: I have some binary data (a gzipped xml object) that I want to store in a database. For PostgreSQL I use a column with datatype 'bytea', which is

importing modules

2013-07-31 Thread syed khalid
I am attempting to import modules from Shogun to python from a non-standard python directory ie from my /home/xxx directory. is there a way on ubuntu to selectively some modules, scripts, data from one directory and others modules, scripts from another directory. In other words, is there a

Re: email 8bit encoding

2013-07-31 Thread Antoon Pardon
Op 29-07-13 01:41, ru...@yahoo.com schreef: How, using Python-3.3's email module, do I flatten (I think that's the right term) a Message object to get utf-8 encoded body with the headers: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when the message payload was set

Re: import syntax

2013-07-31 Thread Chris Angelico
On Mon, Jul 29, 2013 at 11:37 PM, Joshua Landau jos...@landau.ws wrote: 2d) Realise that the slow part is not what you thought it was This step is mandatory. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Prime number generator

2013-07-31 Thread Ian Kelly
On Tue, Jul 30, 2013 at 4:58 AM, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: Notice that all values from i on are possibly present. So you are better off with a list indexed by forthcoming i's and each item containing a list of primes. What you do then, more or less, is keep track of

Lambda function Turing completeness

2013-07-31 Thread Musical Notation
Is it possible to write a Turing-complete lambda function (which does not depend on named functions) in Python? -- http://mail.python.org/mailman/listinfo/python-list

Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Musical Notation
Is there any script that converts indentation in Python code to curly braces? The indentation is sometime lost when I copy my code to an application or a website. -- http://mail.python.org/mailman/listinfo/python-list

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Joel Goldstick
On Tue, Jul 30, 2013 at 11:45 PM, Musical Notation musicdenotat...@gmail.com wrote: Is there any script that converts indentation in Python code to curly braces? The indentation is sometime lost when I copy my code to an application or a website. I guess you could google that. What do you

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Beth McNany
from __future__ import braces ;) ok, ok, if you *really* want it, you could keep track of how many leading spaces there are (you are using spaces, right?), and insert an open bracket where that number increases and a closing bracket where it decreases. Of course, as with all parsing problems,

Re: PEP8 79 char max

2013-07-31 Thread Neil Cerutti
On 2013-07-31, Tim Chase python.l...@tim.thechases.com wrote: On 2013-07-31 07:16, Joshua Landau wrote: On 30 July 2013 18:52, Grant Edwards wrote: I also find intializers for tables of data to be much more easily read and maintained if the columns can be aligned. Why do you have tables in

Re: Problem with psycopg2, bytea, and memoryview

2013-07-31 Thread Antoine Pitrou
Frank Millman frank at chagford.com writes: Thanks for that, Antoine. It is an improvement over tobytes(), but i am afraid it is still not ideal for my purposes. I would suggest asking the psycopg2 project why they made this choice, and if they would reconsider. Returning a memoryview

Re: Lambda function Turing completeness

2013-07-31 Thread Schneider
On Wed 31 Jul 2013 08:53:26 AM CEST, Musical Notation wrote: Is it possible to write a Turing-complete lambda function (which does not depend on named functions) in Python? what should a sinlge Turing-complete lambda function be? For me, a programming language can be Turing-complete or a

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Neil Hodgson
Musical Notation: Is there any script that converts indentation in Python code to curly braces? The indentation is sometime lost when I copy my code to an application or a website. pindent.py in the Tools/Scripts directory of Python installations does something similar by adding or

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Serhiy Storchaka
31.07.13 06:45, Musical Notation написав(ла): Is there any script that converts indentation in Python code to curly braces? The indentation is sometime lost when I copy my code to an application or a website. Look at the pindent.py script. --

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Musical Notation
On Jul 31, 2013, at 19:27, IshIsh ish...@domhain.de wrote: Try from __future__ import braces as the first line of a source file (or typing it in an interactive session), and watch the interpreter's response... SyntaxError: not a chance I already know that.--

Re: Problem with psycopg2, bytea, and memoryview

2013-07-31 Thread Frank Millman
Antoine Pitrou solip...@pitrou.net wrote in message news:loom.20130731t150154-...@post.gmane.org... Frank Millman frank at chagford.com writes: Thanks for that, Antoine. It is an improvement over tobytes(), but i am afraid it is still not ideal for my purposes. I would suggest asking the

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Chris Angelico
On Wed, Jul 31, 2013 at 1:39 PM, Beth McNany beth.mcn...@gmail.com wrote: ok, ok, if you *really* want it, you could keep track of how many leading spaces there are (you are using spaces, right?), and insert an open bracket where that number increases and a closing bracket where it decreases.

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Rotwang
On 31/07/2013 14:55, Chris Angelico wrote: [...] Since the braced version won't run anyway, how about a translation like this: def foo(): print(Hello, world!) for i in range(5): foo() return 42 -- 0-def foo(): 4-print(Hello, 0-world!) 4-for i in range(5): 8-foo()

Re: Problem with psycopg2, bytea, and memoryview

2013-07-31 Thread Neil Cerutti
On 2013-07-31, Frank Millman fr...@chagford.com wrote: Antoine Pitrou solip...@pitrou.net wrote in message news:loom.20130731t114936-...@post.gmane.org... Frank Millman frank at chagford.com writes: I have some binary data (a gzipped xml object) that I want to store in a database. For

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Joel Goldstick
So, why do you want to do this? As has been pointed out, its a difficult and likely sizable task to build such a parser. In the end you get something that isn't a computer language -- even tho it looks like one. And it also is probably just as big a job to convert it back to python. So, what

Re: RE Module Performance

2013-07-31 Thread Michael Torrie
On 07/31/2013 01:23 AM, Antoon Pardon wrote: Op 31-07-13 05:30, Michael Torrie schreef: On 07/30/2013 12:19 PM, Antoon Pardon wrote: So? Why are you making this a point of discussion? I was not aware that the pro and cons of various editor buffer implemantations was relevant to the point I

Re: Script that converts between indentation and curly braces in Python code

2013-07-31 Thread Chris Angelico
On Wed, Jul 31, 2013 at 3:07 PM, Rotwang sg...@hotmail.co.uk wrote: # Assumes spaces OR tabs but not both # Can't see an easy way to count leading spaces other than: # len(s)-len(s.lstrip()) How about len(s.expandtabs()) - len(s.lstrip()) instead? Still comes to the same thing. The only

Re: binary key in dictionary

2013-07-31 Thread John Gordon
In 9004a556-958f-4d1d-81a7-4d1b73134...@googlegroups.com cerr ron.egg...@gmail.com writes: Traceback (most recent call last): File gateway.py, line 2485, in module main() File gateway.py, line 2459, in main cloud_check() File gateway.py, line 770, in cloud_check

Re: RE Module Performance

2013-07-31 Thread Michael Torrie
On 07/31/2013 02:32 AM, wxjmfa...@gmail.com wrote: Unicode/utf* Why do you keep using the terms utf and Unicode interchangeably? -- http://mail.python.org/mailman/listinfo/python-list

script to Login a website

2013-07-31 Thread wachkama
I have created a script to log in a website. It gets its username and password from two files, then log's in with this credentials. My code is not showing me what username it is using to login from the file. And I am not sure if it is even opening up the url and prompting for login. I am stuck

Re: how to package embedded python?

2013-07-31 Thread David M. Cotter
okay, well that might turn out to be useful, except i don't quite know how to use it, and there are no from scratch instructions. i managed to download py2exe-0.6.9.zip and unzip it, but how does one install this package? (yes, still a newb at that) then, once installed, how do i say include

Re: script to Login a website

2013-07-31 Thread John Gordon
In ece5f6b0-16da-4c3a-83d1-6340cb10c...@googlegroups.com wachk...@gmail.com writes: I have created a script to log in a website. It gets its username and password from two files, then log's in with this credentials. My code is not showing me what username it is using to login from the file.

Re: PEP8 79 char max

2013-07-31 Thread Grant Edwards
On 2013-07-31, Tim Chase python.l...@tim.thechases.com wrote: On 2013-07-31 07:16, Joshua Landau wrote: On 30 July 2013 18:52, Grant Edwards wrote: I also find intializers for tables of data to be much more easily read and maintained if the columns can be aligned. Why do you have tables in

Re: PEP8 79 char max

2013-07-31 Thread Grant Edwards
On 2013-07-31, Neil Cerutti ne...@norwich.edu wrote: On 2013-07-31, Tim Chase python.l...@tim.thechases.com wrote: On 2013-07-31 07:16, Joshua Landau wrote: On 30 July 2013 18:52, Grant Edwards wrote: I also find intializers for tables of data to be much more easily read and maintained if the

Re: Is it that easy to install Python ?

2013-07-31 Thread Ian Kelly
On Wed, Jul 31, 2013 at 4:08 AM, santiago.d...@caoba.fr wrote: OK thanks for your answers. So Python is not a daemon. Is it? No. Does it have a config file? Not as such. Arbitrary site-specific customization can be done by creating a sitecustomize module, but this is not standard. There

Re: Is it that easy to install Python ?

2013-07-31 Thread Ian Kelly
On Wed, Jul 31, 2013 at 10:44 AM, Ian Kelly ian.g.ke...@gmail.com wrote: and then set the PYTHONHOME environment variable to /usr/lib. Rather, just /usr. -- http://mail.python.org/mailman/listinfo/python-list

Re: script to Login a website

2013-07-31 Thread wachkama
On Wednesday, July 31, 2013 12:21:59 PM UTC-4, John Gordon wrote: In ece5f6b0-16da-4c3a-83d1-6340cb10c...@googlegroups.com wachk...@gmail.com writes: I have created a script to log in a website. It gets its username and password from two files, then log's in with this credentials.

Re: Repository of non-standard modules.

2013-07-31 Thread Ian Kelly
On Wed, Jul 31, 2013 at 5:02 AM, Chris Angelico ros...@gmail.com wrote: On Wed, Jul 31, 2013 at 11:53 AM, Gabor Urban urbang...@gmail.com wrote: Hi, I am to start a new free-time project in the next couple of weeks. I am ready to use open accessible Python modules not wanting to reinvent the

Re: Lambda function Turing completeness

2013-07-31 Thread Ian Kelly
On Wed, Jul 31, 2013 at 12:53 AM, Musical Notation musicdenotat...@gmail.com wrote: Is it possible to write a Turing-complete lambda function (which does not depend on named functions) in Python? Yes, lambda functions are Turing-complete. You can get anonymous recursion by defining the

Re: PEP8 79 char max

2013-07-31 Thread Marcelo MD
In my experience, aligning columns in large tables reduces maintence cost by making it much easier/faster to see what you've got and by providing a way to visually prompt you for the correct value in the correct place when you add new lines. Works great until one of the values changes in

Re: Python descriptor protocol (for more or less structured data)

2013-07-31 Thread Terry Reedy
On 7/31/2013 5:16 AM, CWr wrote: Peter, thanks for your response. Sure, you are right when you say that's easier to use standard attribute assigning via __init__. But my intention was: - reducing the complexiticity of __init__ - avoiding boiler-plates (mostly property descriptors inside of the

ImportError: No module named appengine.ext

2013-07-31 Thread Jaiky
hey learning python problem facing is under when typing on interpreter from google.appengine.ext import db Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named appengine.ext what to do please help . --

Re: Problem with psycopg2, bytea, and memoryview

2013-07-31 Thread Terry Reedy
On 7/31/2013 9:07 AM, Antoine Pitrou wrote: Frank Millman frank at chagford.com writes: Thanks for that, Antoine. It is an improvement over tobytes(), but i am afraid it is still not ideal for my purposes. I would suggest asking the psycopg2 project why they made this choice, and if they

Re: PEP8 79 char max

2013-07-31 Thread Skip Montanaro
= Works great until one of the values changes in size. Slightly off-topic, but still sort of related (talking about the size of things), I started picking 1e+30 as my really big some time back because the repr of 1e+99 required more than a glance when it appeared in printed output: repr(1e+30)

Re: PEP8 79 char max

2013-07-31 Thread Neil Cerutti
On 2013-07-31, Marcelo MD lists...@gmail.com wrote: In my experience, aligning columns in large tables reduces maintence cost by making it much easier/faster to see what you've got and by providing a way to visually prompt you for the correct value in the correct place when you add new lines.

Re: PEP8 79 char max

2013-07-31 Thread Tim Chase
On 2013-07-31 16:32, Grant Edwards wrote: On 2013-07-31, Tim Chase python.l...@tim.thechases.com wrote: I interpret Grant's statement as wanting the table to look like for name, value, description in ( (cost, 42, How much it cost), (status, 3141, Status code from

Re: PEP8 79 char max

2013-07-31 Thread Grant Edwards
On 2013-07-31, Neil Cerutti ne...@norwich.edu wrote: Besides, after studying The Pragmatic Programmer I removed nearly all the tables from my code and reference them (usually with csv module) instead. I don't understand. That just moves them to a different file -- doesn't it? You've still

Re: PEP8 79 char max

2013-07-31 Thread Tim Chase
On 2013-07-31 16:32, Grant Edwards wrote: On 2013-07-31, Tim Chase python.l...@tim.thechases.com wrote: I interpret Grant's statement as wanting the table to look like for name, value, description in ( (cost, 42, How much it cost), (status, 3141, Status code from

Re: ImportError: No module named appengine.ext

2013-07-31 Thread Chris “Kwpolska” Warrick
On Wed, Jul 31, 2013 at 7:51 PM, Jaiky jaiprakashsingh...@gmail.com wrote: hey learning python problem facing is under when typing on interpreter from google.appengine.ext import db Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named

Re: ImportError: No module named appengine.ext

2013-07-31 Thread John Gordon
In 719f0bd8-cddc-4b28-97ee-08b56d359...@googlegroups.com Jaiky jaiprakashsingh...@gmail.com writes: from google.appengine.ext import db Traceback (most recent call last): File stdin, line 1, in module ImportError: No module named appengine.ext what to do please help . Has the

Re: ImportError: No module named appengine.ext

2013-07-31 Thread Jaiky
you mean to say SDK for python ?/ -- http://mail.python.org/mailman/listinfo/python-list

Using system python vs. updated/current version

2013-07-31 Thread memilanuk
Hello there, What would be considered the correct/best way to run a current release of python locally vs. the installed system version? On openSUSE 12.3, the repos currently have 2.7.3 and 3.3.0. As far as I know, I'm not really hitting any limitations with the existing versions - my skills

Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Skip Montanaro
I don't understand. That just moves them to a different file -- doesn't it? You've still got to deal with editing a large table of data (for example when I want to add instructions to your assembler). My guess is it would be more foolproof to edit that stuff with a spreadsheet. Skip --

RE: PEP8 79 char max

2013-07-31 Thread Prasad, Ramit
Grant Edwards wrote: On 2013-07-31, Neil Cerutti ne...@norwich.edu wrote: Besides, after studying The Pragmatic Programmer I removed nearly all the tables from my code and reference them (usually with csv module) instead. I don't understand. That just moves them to a different file --

Re: PEP8 79 char max

2013-07-31 Thread Neil Cerutti
On 2013-07-31, Grant Edwards invalid@invalid.invalid wrote: On 2013-07-31, Neil Cerutti ne...@norwich.edu wrote: Besides, after studying The Pragmatic Programmer I removed nearly all the tables from my code and reference them (usually with csv module) instead. I don't understand. That just

Re: PEP8 79 char max

2013-07-31 Thread Grant Edwards
On 2013-07-31, Neil Cerutti ne...@norwich.edu wrote: On 2013-07-31, Grant Edwards invalid@invalid.invalid wrote: On 2013-07-31, Neil Cerutti ne...@norwich.edu wrote: Besides, after studying The Pragmatic Programmer I removed nearly all the tables from my code and reference them (usually with

Re: Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Grant Edwards
On 2013-07-31, Skip Montanaro s...@pobox.com wrote: I don't understand. That just moves them to a different file -- doesn't it? You've still got to deal with editing a large table of data (for example when I want to add instructions to your assembler). My guess is it would be more foolproof

Re: Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Neil Cerutti
On 2013-07-31, Rhodri James rho...@wildebst.demon.co.uk wrote: On Wed, 31 Jul 2013 19:39:29 +0100, Skip Montanaro s...@pobox.com wrote: I don't understand. That just moves them to a different file -- doesn't it? You've still got to deal with editing a large table of data (for example when I

Re: Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Rhodri James
On Wed, 31 Jul 2013 19:39:29 +0100, Skip Montanaro s...@pobox.com wrote: I don't understand. That just moves them to a different file -- doesn't it? You've still got to deal with editing a large table of data (for example when I want to add instructions to your assembler). My guess is it

pcurl and network connection's problem

2013-07-31 Thread sam319
I am having problems with pycurl in my threads , when i run it , it does correctly but some times the connection has been established but nothing will be downloaded and the threads stay alive without doing any thing (especially when the network's speed is slow and has aborted status) . i can't

RE: Using system python vs. updated/current version

2013-07-31 Thread Prasad, Ramit
memilanuk wrote: Hello there, What would be considered the correct/best way to run a current release of python locally vs. the installed system version? On openSUSE 12.3, the repos currently have 2.7.3 and 3.3.0. As far as I know, I'm not really hitting any limitations with the existing

Re: PEP8 79 char max

2013-07-31 Thread Neil Cerutti
On 2013-07-31, Grant Edwards invalid@invalid.invalid wrote: On 2013-07-31, Neil Cerutti ne...@norwich.edu wrote: On 2013-07-31, Grant Edwards invalid@invalid.invalid wrote: On 2013-07-31, Neil Cerutti ne...@norwich.edu wrote: Besides, after studying The Pragmatic Programmer I removed nearly

RE: pcurl and network connection's problem

2013-07-31 Thread Prasad, Ramit
sam319 wrote: I am having problems with pycurl in my threads , when i run it , it does correctly but some times the connection has been established but nothing will be downloaded and the threads stay alive without doing any thing (especially when the network's speed is slow and has aborted

Re: Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Skip Montanaro
My guess is it would be more foolproof to edit that stuff with a spreadsheet. Many years ago, I worked with somebody who used a spreadsheet like that. I really love Emacs, however... One of the traders here where I work (who shall not be named) had a space-delimited data file with hundreds

Re: RE Module Performance

2013-07-31 Thread wxjmfauth
Le mercredi 31 juillet 2013 07:45:18 UTC+2, Steven D'Aprano a écrit : On Tue, 30 Jul 2013 12:09:11 -0700, wxjmfauth wrote: And do not forget, in a pure utf coding scheme, your char or a char will *never* be larger than 4 bytes. sys.getsizeof('a') 26

Re: Using system python vs. updated/current version

2013-07-31 Thread memilanuk
On 07/31/2013 12:17 PM, Prasad, Ramit wrote: You should be able to install both Python 2 and 3 in most modern Linux distributions (at the same time). I would not change the system Python version. I hadn't really planned on mucking with the system python... I recall from a long while back (on

Re: Using system python vs. updated/current version

2013-07-31 Thread Terry Reedy
On 7/31/2013 2:35 PM, memilanuk wrote: Hello there, What would be considered the correct/best way to run a current release of python locally vs. the installed system version? On openSUSE 12.3, the repos currently have 2.7.3 and 3.3.0 released April 2012. 2.7.5 100+?? bug fixes. and released

Re: script to Login a website

2013-07-31 Thread Joel Goldstick
On Wed, Jul 31, 2013 at 11:33 AM, wachk...@gmail.com wrote: I have created a script to log in a website. It gets its username and password from two files, then log's in with this credentials. My code is not showing me what username it is using to login from the file. And I am not sure if

Re: Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Wanderer
On Wednesday, July 31, 2013 2:39:29 PM UTC-4, Skip Montanaro wrote: I don't understand. That just moves them to a different file -- doesn't it? You've still got to deal with editing a large table of data (for example when I want to add instructions to your assembler). My guess

Re: RE Module Performance

2013-07-31 Thread Chris Angelico
On Wed, Jul 31, 2013 at 9:15 PM, wxjmfa...@gmail.com wrote: ... char never consumes or requires more than 4 bytes ... The integer 5 should be able to be stored in 3 bits. sys.getsizeof(5) 14 Clearly Python is doing something really horribly wrong here. In fact, sys.getsizeof needs to be

Re: Using system python vs. updated/current version

2013-07-31 Thread Terry Reedy
On 7/31/2013 4:19 PM, memilanuk wrote: Are there any significant flaws with v.3.3.0 that would necessitate upgrading to the most recent version (3.3.2?) Go to the overview page http://docs.python.org/3/index.html and click on 'What's new in Python 3.3' to get to

Re: Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Skip Montanaro
Has anyone tried Pyspread? I have not. I have a fundamental problem with spreadsheets, the extremely narrow view of the workspace. There was a piece on NPR the other day about some errors in some modeling applications. I missed most of it (does someone have a link? I'm on my phone right now),

Re: Using system python vs. updated/current version

2013-07-31 Thread alex23
On 1/08/2013 4:35 AM, memilanuk wrote: Also... in some places in the 'Net I see references to installing everything 'locally' via pip, etc. in virtualenvs and not touching the system installed version of python... yet most linux distros seem to have many/most such packages available in their

Re: Editing tabular data [was: PEP8 79 char max]

2013-07-31 Thread Chris Angelico
On Wed, Jul 31, 2013 at 8:02 PM, Grant Edwards invalid@invalid.invalid wrote: On 2013-07-31, Skip Montanaro s...@pobox.com wrote: I don't understand. That just moves them to a different file -- doesn't it? You've still got to deal with editing a large table of data (for example when I want

Re: Using system python vs. updated/current version

2013-07-31 Thread Chris Angelico
On Wed, Jul 31, 2013 at 7:35 PM, memilanuk memila...@gmail.com wrote: Also... in some places in the 'Net I see references to installing everything 'locally' via pip, etc. in virtualenvs and not touching the system installed version of python... yet most linux distros seem to have many/most

Re: Python script help

2013-07-31 Thread alex23
On 31/07/2013 6:15 PM, cool1...@gmail.com wrote: Here are some scripts, how do I put them together to create the script I want? (to search a online document and download all the links in it) 1. Think about the requirements. 2. Write some code. 3. Test it. 4. Repeat until requirements are met.

[issue18596] enable usage of AddressSanitizer in CPython [PATCH]

2013-07-31 Thread halfie
halfie added the comment: Using, # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS __attribute__((no_address_safety_analysis)) __attribute__ ((noinline)) instead of, # define ATTRIBUTE_NO_ADDRESS_SAFETY_ANALYSIS __attribute__((no_address_safety_analysis)) seems to be a more future-proof

[issue18585] Add a text truncation function

2013-07-31 Thread Vajrasky Kok
Vajrasky Kok added the comment: Monsieur Pitrou, thanks for the explanation. Actually, IMHO I prefer, 'hello (...)' should be the minimum words we can use not '(...)' because '(...)' does not make any sense. But, anyway, it's your call. :) Anyway, using your summarize2.patch:

[issue18214] Stop purging modules which are garbage collected before shutdown

2013-07-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: See issue10068 and issue7140. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18214 ___ ___ Python-bugs-list

[issue17933] format str bug in urllib request.py

2013-07-31 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/issue17933 ___

[issue18573] In unittest.TestCase.assertWarns doc there is some text about assertRaises()

2013-07-31 Thread py.user
py.user added the comment: What second line? the second line patched in the diff file -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18573 ___

[issue18605] 2.7: test_threading hangs on Solaris 9

2013-07-31 Thread Maciej Bliziński
New submission from Maciej Bliziński: Python version: 2.7.5 OS: Solaris 9 Architecture: sparc Looks similar to Issue5114 and Issue6643 but both are now closed. It seems specific to Solaris 9, I'm not seeing this issue on Solaris 10. The symptom is that test_threading hangs indefinitely

[issue17998] internal error in regular expression engine

2013-07-31 Thread Larry Hastings
Larry Hastings added the comment: There is now a need to rush. I'm hoping to cut the release in about two days, so we can have Python 3.4a1 on time. Can we resolve this in the next day or two? Sorry for the short notice. -- ___ Python tracker

[issue18257] Two copies of python-config

2013-07-31 Thread Larry Hastings
Larry Hastings added the comment: Is there any resolution for this likely to happen soon? I'm hoping to cut Python 3.4a1 in about two days, so one of three things is gonna happen: 1) This gets fixed. 2) This gets lowered from release blocker. 3) The release slips. --

[issue5845] rlcompleter should be enabled automatically

2013-07-31 Thread Larry Hastings
Larry Hastings added the comment: This issue seems to have stalled. But it's still marked as a release blocker, which means I can't release Python 3.4a1 in two days if this issue is still open. One of three things will happen: 1) This issue is marked closed. 2) This issue is downgraded from

[issue18071] _osx_support compiler_fixup

2013-07-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset addd9210816b by Ned Deily in branch '2.7': Issue #18071: Extension module builds on OS X could fail with TypeError http://hg.python.org/cpython/rev/addd9210816b -- nosy: +python-dev ___ Python tracker

[issue16245] Update html.entities.html5 dictionary and parseentities.py

2013-07-31 Thread Larry Hastings
Larry Hastings added the comment: This is still marked as a release blocker. I guess this is a tickler for Ezio to go check and see if there's a new entities file. Ezio: can you get this issue closed or downgraded in the next two days? -- ___

  1   2   >