Re: Python Interview Questions

2012-08-15 Thread Robert Miles
On 7/10/2012 1:08 PM, Demian Brecht wrote: I also judge candidates on their beards (http://www.wired.com/wiredenterprise/2012/06/beard-gallery/). If the beard's awesome enough, no questions needed. They're pro. You should hire me quickly, then, since I have a beard, already turning partly

Re: [OT] Posting under ones full name

2012-08-15 Thread Ian Kelly
On Tue, Aug 14, 2012 at 9:18 PM, Chris Angelico ros...@gmail.com wrote: On Wed, Aug 15, 2012 at 12:06 PM, Thomas 'PointedEars' Lahn pointede...@web.de wrote: Please use `[...]' or `[…]' to indicate omission instead. I could have written `politeness...' myself. Incidentally, how _do_ the

Re: [OT] Posting under ones full name

2012-08-15 Thread Chris Angelico
On Wed, Aug 15, 2012 at 5:28 PM, Ian Kelly ian.g.ke...@gmail.com wrote: Irrelevant. Why would an author adhering to common principles of style ever use square-bracketed dots in a statement that he authored himself? You mean exactly the way he did in the post you quoted me as quoting? ChrisA

Re: something about split()???

2012-08-15 Thread Mark Lawrence
On 14/08/2012 18:09, Jean-Michel Pichavant wrote: Ramchandra Apte wrote: A pythonic answer would be bottom-posted :p JM He or she is still top posting. I'm given up asking. -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Sharing code between different projects?

2012-08-15 Thread andrea crotti
2012/8/14 Cameron Simpson c...@zip.com.au: Having just skimmed this thread, one thing I haven't quite seen suggested is this: Really do make a third utilities project, and treat the project and deploy as separate notions. So to actually run/deploy project A's code you'd have a short script

Re: [OT] Posting under ones full name

2012-08-15 Thread Steven D'Aprano
On Wed, 15 Aug 2012 17:41:20 +1000, Chris Angelico wrote: On Wed, Aug 15, 2012 at 5:28 PM, Ian Kelly ian.g.ke...@gmail.com wrote: Irrelevant. Why would an author adhering to common principles of style ever use square-bracketed dots in a statement that he authored himself? You mean exactly

Re: Strange behavior

2012-08-15 Thread Alain Ketterlin
Chris Angelico ros...@gmail.com writes: Other people have explained the problem with your code. I'll take this example as a way of introducing you to one of Python's handy features - it's an idea borrowed from functional languages, and is extremely handy. It's called the list comprehension,

Re: Strange behavior

2012-08-15 Thread Alain Ketterlin
light1qu...@gmail.com writes: I got my answer by reading your posts and referring to: http://docs.python.org/reference/compound_stmts.html#the-for-statement (particularly the shaded grey box) Not that the problem is not specific to python (if you erase the current element when traversing a

Re: Sharing code between different projects?

2012-08-15 Thread andrea crotti
Also looking at logilab-common I thought that it would be great if we could actually make this common library even open source, and use it as one of the other many external libraries. Since Python code is definitively not the the core business of this company I might even convince them, but the

Re: [OT] Posting under ones full name

2012-08-15 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: Thomas 'PointedEars' Lahn wrote: Chris Angelico wrote: I have my surname in my From address, but I tend to sign my posts ChrisA (no relation, btw, to DaveA, though our surnames are similar). That's generally been sufficient for distinguishing purposes, though if anyone

email with a non-ascii charset in Python3 ?

2012-08-15 Thread Helmut Jarausch
Hi, I'm sorry to ask such a FAQ but still I couldn't find an answer - neither in the docs nor the web. What's wrong with the following script? Many thanks for a hint, Helmut. #!/usr/bin/python3 #_*_ coding: latin1 _*_ import smtplib from email.message import Message import datetime msg=

Re: email with a non-ascii charset in Python3 ?

2012-08-15 Thread Christian Heimes
Am 15.08.2012 14:16, schrieb Helmut Jarausch: Hi, I'm sorry to ask such a FAQ but still I couldn't find an answer - neither in the docs nor the web. What's wrong with the following script? Many thanks for a hint, Helmut. #!/usr/bin/python3 #_*_ coding: latin1 _*_ import smtplib

python+libxml2+scrapy AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER'

2012-08-15 Thread Dmitry Arsentiev
Hello. Has anybody already meet the problem like this? - AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER' When I run scrapy, I get File /usr/local/lib/python2.7/site-packages/scrapy/selector/factories.py, line 14, in module libxml2.HTML_PARSE_NOERROR + \

_mysql_exceptions.OperationalError: (2005, Unknown MySQL server host

2012-08-15 Thread nepaul
The code: import MySQLDB strCmd = user = 'root', passwd = '123456', db = 'test', host = 'localhost' _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host 'user = 'root', passwd = '123456', db = 'test', host = 'localhost'' (11004)) --

Re: [OT] Posting under ones full name

2012-08-15 Thread Grant Edwards
On 2012-08-15, Chris Angelico ros...@gmail.com wrote: On Wed, Aug 15, 2012 at 12:06 PM, Thomas 'PointedEars' Lahn pointede...@web.de wrote: Please use `[...]' or `[?]' to indicate omission instead. I could have written `politeness...' myself. Incidentally, how _do_ the square brackets help?

Re: email with a non-ascii charset in Python3 ?

2012-08-15 Thread Helmut Jarausch
On Wed, 15 Aug 2012 14:48:40 +0200, Christian Heimes wrote: Am 15.08.2012 14:16, schrieb Helmut Jarausch: Hi, I'm sorry to ask such a FAQ but still I couldn't find an answer - neither in the docs nor the web. What's wrong with the following script? Many thanks for a hint, Helmut.

Re: _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host

2012-08-15 Thread Mark Lawrence
On 15/08/2012 14:30, nepaul wrote: The code: import MySQLDB strCmd = user = 'root', passwd = '123456', db = 'test', host = 'localhost' _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host 'user = 'root', passwd = '123456', db = 'test', host = 'localhost'' (11004)) My highly

OT: Monty Python in Syria

2012-08-15 Thread Dotan Cohen
And now for something completely different. Not programming related, but at 1:20 I was expecting a different question: http://www.aljazeera.com/news/middleeast/2012/08/2012813103922872697.html I figured if anybody could appreciate that, it would be the folks here. Enjoy! -- Dotan Cohen

Re: OT: Monty Python in Syria

2012-08-15 Thread Dotan Cohen
On Wed, Aug 15, 2012 at 5:41 PM, Dotan Cohen dotanco...@gmail.com wrote: And now for something completely different. Not programming related, but at 1:20 I was expecting a different question: http://www.aljazeera.com/news/middleeast/2012/08/2012813103922872697.html I figured if anybody could

Re: _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host

2012-08-15 Thread nepaul
在 2012年8月15日星期三UTC+8下午10时23分24秒,Mark Lawrence写道: On 15/08/2012 14:30, nepaul wrote: The code: import MySQLDB strCmd = user = 'root', passwd = '123456', db = 'test', host = 'localhost' _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host 'user = 'root',

Verify the integrity of the tar file with tarfile module?

2012-08-15 Thread rudson alves
Hello, I took a Slackware package file .tar (uncompressed) and edited with random characters to generate any error in its structure, as shown in the test bash below: $ tar -tf zoo.tar ./ install/ install/slack-desc tar: Pulando para o próximo cabeçalho tar: Exiting with failure status due to

Re: _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host

2012-08-15 Thread Hans Mulder
On 15/08/12 15:30:26, nepaul wrote: The code: import MySQLDB strCmd = user = 'root', passwd = '123456', db = 'test', host = 'localhost' _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host 'user = 'root', passwd = '123456', db = 'test', host = 'localhost'' (11004))

Re: _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host

2012-08-15 Thread Iuri
MySQLdb.connect does not accept a connection string parameter. On Wed, Aug 15, 2012 at 11:53 AM, nepaul xs.nep...@gmail.com wrote: 在 2012年8月15日星期三UTC+8下午10时23分24秒,Mark Lawrence写道: On 15/08/2012 14:30, nepaul wrote: The code: import MySQLDB strCmd = user = 'root', passwd =

Re: _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host

2012-08-15 Thread Alain Ketterlin
Hans Mulder han...@xs4all.nl writes: On 15/08/12 15:30:26, nepaul wrote: The code: import MySQLDB strCmd = user = 'root', passwd = '123456', db = 'test', host = 'localhost' _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host 'user = 'root', passwd = '123456', db =

Re: Flushing buffer on file copy on linux

2012-08-15 Thread Antoine Pitrou
J dreadpiratejeff at gmail.com writes: Now, the problem I have is that linux tends to buffer data writes to a device, and I want to work around that. When run in normal non-stress mode, the program is slow enough that the linux buffers flush and put the file on disk before the hash occurs.

Re: _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host

2012-08-15 Thread nepaul
在 2012年8月15日星期三UTC+8下午11时22分49秒,Alain Ketterlin写道: Hans Mulder han...@xs4all.nl writes: On 15/08/12 15:30:26, nepaul wrote: The code: import MySQLDB strCmd = user = 'root', passwd = '123456', db = 'test', host = 'localhost'

Re: email with a non-ascii charset in Python3 ?

2012-08-15 Thread MRAB
On 15/08/2012 13:16, Helmut Jarausch wrote: Hi, I'm sorry to ask such a FAQ but still I couldn't find an answer - neither in the docs nor the web. What's wrong with the following script? Many thanks for a hint, Helmut. #!/usr/bin/python3 #_*_ coding: latin1 _*_ Aw well as the other

Re: Sharing code between different projects?

2012-08-15 Thread Miki Tebeka
In plus I'm using perforce which doesn't have any svn:externals-like You can probably use views to this (http://www.perforce.com/perforce/r12.1/manuals/cmdref/o.views.html). Second problem is that one of the two projects has a quite insane requirement, which is to be able to re-run itself on

Re: OT: Monty Python in Syria

2012-08-15 Thread Tamer Higazi
Exactly! NOT PROGRAMMING related has NOTHING TODO HERE! Tamer Am 15.08.2012 16:42, schrieb Dotan Cohen: On Wed, Aug 15, 2012 at 5:41 PM, Dotan Cohen dotanco...@gmail.com wrote: And now for something completely different. Not programming related, but at 1:20 I was expecting a different

[ANNC] pybotwar-0.8

2012-08-15 Thread Lee Harr
pybotwar is a fun and educational game where players write computer programs to control simulated robots. http://pybotwar.googlecode.com/ The focus of this release is making all functionality available from the PyQt interface and making PyQt the default interface. pybotwar uses pybox2d for

Re: A difficulty with lists

2012-08-15 Thread Madison May
On Monday, August 6, 2012 3:50:13 PM UTC-4, Mok-Kong Shen wrote: I ran the following code: def xx(nlist): print(begin: ,nlist) nlist+=[999] print(middle:,nlist) nlist=nlist[:-1] print(final: ,nlist) u=[1,2,3,4] print(u) xx(u) print(u)

Dynamically determine base classes on instantiation

2012-08-15 Thread Thomas Bach
Hi list, I'm confronted with a strang problem I cannot find a clean solution for. To me it seems like I need meta-classes. Anyway, I stucked a bit deeper in that topic and couldn't find a proper solution neither. But, judge for yourselve. I want a class that determines on instantiating its base

Help needed installing easy_install and lxml2

2012-08-15 Thread Ian
Hi, On a reasonably fresh (3 day old) install of 64 bit windows 7, I have installed the 64 bit Python 2.7.3 from http://www.python.org/download/ Then I installed the 64 bit version of easy_install using http://pypi.python.org/pypi/setuptools And then install lxml 2.3.5, for which I use

Re: Dynamically determine base classes on instantiation

2012-08-15 Thread MRAB
On 15/08/2012 22:17, Thomas Bach wrote: Hi list, I'm confronted with a strang problem I cannot find a clean solution for. To me it seems like I need meta-classes. Anyway, I stucked a bit deeper in that topic and couldn't find a proper solution neither. But, judge for yourselve. I want a class

Re: A difficulty with lists

2012-08-15 Thread Rob Day
The list nlist inside of function xx is not the same as the variable u outside of the function: nlist and u refer to two separate list objects. When you modify nlist, you are not modifying u. http://mail.python.org/mailman/listinfo/python-list Well - that's not quite true. Before calling

Re: OT: Monty Python in Syria

2012-08-15 Thread Mark Lawrence
On 15/08/2012 20:15, Tamer Higazi wrote: Exactly! NOT PROGRAMMING related has NOTHING TODO HERE! Please don't shout, please don't top post and what gives you the right to determine what is or is not on topic here? The subject is also clearly marked OT or did that escape your attention?

dbf.py API question concerning Index.index_search()

2012-08-15 Thread Ethan Furman
Indexes have a new method (rebirth of an old one, really): .index_search( match, start=None, stop=None, nearest=False, partial=False ) The defaults are to search the entire index for exact matches and raise NotFoundError if it can't find anything. match is the search

Re: New image and color management library for Python 2+3

2012-08-15 Thread 88888 Dihedral
Christian Heimes於 2012年8月15日星期三UTC+8上午2時22分54秒寫道: Hello fellow Pythonistas, I'm looking for co-developers, testers, documentation writers and users for a new image library I created. The code is available at https://bitbucket.org/tiran/smc.freeimage Background story:

Re: dbf.py API question concerning Index.index_search()

2012-08-15 Thread Tim Chase
On 08/15/12 18:26, Ethan Furman wrote: .index_search( match, start=None, stop=None, nearest=False, partial=False ) The defaults are to search the entire index for exact matches and raise NotFoundError if it can't find anything. The question is what

Re: email with a non-ascii charset in Python3 ?

2012-08-15 Thread Steven D'Aprano
On Wed, 15 Aug 2012 17:57:47 +0100, MRAB wrote: #!/usr/bin/python3 #_*_ coding: latin1 _*_ Aw well as the other replies, the coding line should be: #-*- coding: latin1 -*- I don't believe that actually matters to Python. It may matter to Emacs or some other editors, but Python simply

Re: A difficulty with lists

2012-08-15 Thread Madison May
On Monday, August 6, 2012 3:50:13 PM UTC-4, Mok-Kong Shen wrote: I ran the following code: def xx(nlist): print(begin: ,nlist) nlist+=[999] print(middle:,nlist) nlist=nlist[:-1] print(final: ,nlist) u=[1,2,3,4] print(u) xx(u) print(u)

Re: OT: Monty Python in Syria

2012-08-15 Thread Terry Reedy
On 8/15/2012 6:07 PM, Mark Lawrence wrote: On 15/08/2012 20:15, Tamer Higazi wrote: Exactly! NOT PROGRAMMING related has NOTHING TODO HERE! Please don't shout, please don't top post agreed. and what gives you the right to determine what is or is not on topic here? The same right as

Re: dbf.py API question concerning Index.index_search()

2012-08-15 Thread Ethan Furman
Tim Chase wrote: On 08/15/12 18:26, Ethan Furman wrote: .index_search( match, start=None, stop=None, nearest=False, partial=False ) The defaults are to search the entire index for exact matches and raise NotFoundError if it can't find anything. The question is

Re: Dynamically determine base classes on instantiation

2012-08-15 Thread Steven D'Aprano
On Wed, 15 Aug 2012 23:17:41 +0200, Thomas Bach wrote: Hi list, I'm confronted with a strang problem I cannot find a clean solution for. I want a class that determines on instantiating its base classes dynamically. Consider the following two use cases Some comments: 1) What you show are

Re: A difficulty with lists

2012-08-15 Thread Terry Reedy
On 8/15/2012 5:58 PM, Rob Day wrote: Madison May wrote: The list nlist inside of function xx is not the same as the variable u outside of the function: nlist and u refer to two separate list objects. When you modify nlist, you are not modifying u.

Re: dbf.py API question concerning Index.index_search()

2012-08-15 Thread Tim Chase
On 08/15/12 19:21, Ethan Furman wrote: The well-hidden clue was this line: nearest returns where the match should be instead of raising an error And my question should have been: What should the return value be when nearest == True? Ah, well that's somewhat clearer. Return the

Re: lambda in list comprehension acting funny

2012-08-15 Thread Robert Miles
On 7/11/2012 11:39 PM, Dennis Lee Bieber wrote: On 12 Jul 2012 03:53:03 GMT, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info declaimed the following in gmane.comp.python.general: ALU class? Googling gives me no clue. Arithmetic/Logic Unit

Re: dbf.py API question concerning Index.index_search()

2012-08-15 Thread Steven D'Aprano
On Wed, 15 Aug 2012 16:26:09 -0700, Ethan Furman wrote: Indexes have a new method (rebirth of an old one, really): .index_search( match, start=None, stop=None, nearest=False, partial=False ) [...] Why index_search rather than just search? The question

Re: OT: Monty Python in Syria

2012-08-15 Thread Andrew Cooper
On 16/08/2012 01:01, Terry Reedy wrote: On 8/15/2012 6:07 PM, Mark Lawrence wrote: On 15/08/2012 20:15, Tamer Higazi wrote: Exactly! NOT PROGRAMMING related has NOTHING TODO HERE! Please don't shout, please don't top post agreed. and what gives you the right to determine what is or

Re: OT: Monty Python in Syria

2012-08-15 Thread Andrew Cooper
On 16/08/2012 01:52, Andrew Cooper wrote: On 16/08/2012 01:01, Terry Reedy wrote: On 8/15/2012 6:07 PM, Mark Lawrence wrote: On 15/08/2012 20:15, Tamer Higazi wrote: Exactly! NOT PROGRAMMING related has NOTHING TODO HERE! Please don't shout, please don't top post agreed. and what gives

Re: dbf.py API question concerning Index.index_search()

2012-08-15 Thread Ethan Furman
Steven D'Aprano wrote: On Wed, 15 Aug 2012 16:26:09 -0700, Ethan Furman wrote: Indexes have a new method (rebirth of an old one, really): .index_search( match, start=None, stop=None, nearest=False, partial=False ) [...] Why index_search rather than just

Re: _mysql_exceptions.OperationalError: (2005, Unknown MySQL server host

2012-08-15 Thread nepaul
在 2012年8月16日星期四UTC+8上午12时58分07秒,Dennis Lee Bieber写道: On Wed, 15 Aug 2012 17:22:49 +0200, Alain Ketterlin al...@dpt-info.u-strasbg.fr declaimed the following in gmane.comp.python.general: Hans Mulder han...@xs4all.nl writes: Right! On 15/08/12 15:30:26, nepaul wrote:

SSLSocket.getpeercert() doesn't return issuer, serial number, etc

2012-08-15 Thread Gustavo Baratto
Hello there, SSL.Socket.getpeercert() doesn't return essential information present in the client certificate (issuer, serial number, not before, etc), and it looks it is by design: http://docs.python.org/library/ssl.html#ssl.SSLSocket.getpeercert

Re: dbf.py API question concerning Index.index_search()

2012-08-15 Thread MRAB
On 16/08/2012 01:28, Tim Chase wrote: On 08/15/12 19:21, Ethan Furman wrote: The well-hidden clue was this line: nearest returns where the match should be instead of raising an error And my question should have been: What should the return value be when nearest == True? Ah, well that's

Re: dbf.py API question concerning Index.index_search()

2012-08-15 Thread MRAB
On 16/08/2012 02:22, Ethan Furman wrote: Steven D'Aprano wrote: On Wed, 15 Aug 2012 16:26:09 -0700, Ethan Furman wrote: Indexes have a new method (rebirth of an old one, really): .index_search( match, start=None, stop=None, nearest=False, partial=False )

Re: email with a non-ascii charset in Python3 ?

2012-08-15 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Wed, 15 Aug 2012 17:57:47 +0100, MRAB wrote: #!/usr/bin/python3 #_*_ coding: latin1 _*_ Aw well as the other replies, the coding line should be: #-*- coding: latin1 -*- I don't believe that actually matters to

Re: [OT] Posting under ones full name

2012-08-15 Thread Dan Sommers
On 2012-08-15 at 13:59:53 +, Grant Edwards invalid@invalid.invalid wrote: On 2012-08-15, Chris Angelico ros...@gmail.com wrote: Perhaps you said Please use `m4-style quotes rather than matching ASCII quotes' or `something else' to indicate omission instead. When I've got these antlers

Re: python+libxml2+scrapy AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER'

2012-08-15 Thread Dieter Maurer
Dmitry Arsentiev dmarsen...@gmail.com writes: Has anybody already meet the problem like this? - AttributeError: 'module' object has no attribute 'HTML_PARSE_RECOVER' When I run scrapy, I get File /usr/local/lib/python2.7/site-packages/scrapy/selector/factories.py, line 14, in module

Re: SSLSocket.getpeercert() doesn't return issuer, serial number, etc

2012-08-15 Thread Dieter Maurer
Gustavo Baratto gbara...@gmail.com writes: SSL.Socket.getpeercert() doesn't return essential information present in the client certificate (issuer, serial number, not before, etc), and it looks it is by design: http://docs.python.org/library/ssl.html#ssl.SSLSocket.getpeercert

[issue15623] Init time relative imports no longer work from __init__.so modules

2012-08-15 Thread Stefan Behnel
Stefan Behnel added the comment: I tried it and it works to just insert the package module into sys.modules after creation if it's not there yet: #if PY_MAJOR_VERSION 3 __pyx_m = Py_InitModule4(__Pyx_NAMESTR(my_test_package), __pyx_methods, 0, 0, PYTHON_API_VERSION); #else __pyx_m =

[issue15661] OS X installer packages should be signed for OS X 10.8 Gatekeeper feature

2012-08-15 Thread Ned Deily
New submission from Ned Deily: OS 10.8 Mountain Lion includes a new feature that helps protect users from downloading and installing malicious software by providing a mechanism for developers to sign their installable objects with a unique Apple-signed Developer ID certificate. The default

[issue15661] OS X installer packages should be signed for OS X 10.8 Gatekeeper feature

2012-08-15 Thread Ned Deily
Ned Deily added the comment: An additional point: the 3.3.0 Installer README and python.org web pages need to be updated to incorporate 10.8 installation information as necessary prior to final release. (in progress) Also, s/singing/signing/ --

[issue15649] subprocess.Popen.communicate: accept str for input parameter if universal_newlines is False

2012-08-15 Thread Ramchandra Apte
Ramchandra Apte added the comment: Uhum.. Universal Newlines is being deprecated. -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15649 ___

[issue15649] subprocess.Popen.communicate: accept str for input parameter if universal_newlines is False

2012-08-15 Thread R. David Murray
R. David Murray added the comment: No it isn't. There's some issue about a 'U' parameter somewhere that is being deprecated, but that has nothing to do with this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15649

[issue15390] PEP 3121, 384 refactoring applied to datetime module

2012-08-15 Thread Robin Schreiber
Robin Schreiber added the comment: I have now included the changes that Antoine suggested. The _Get_State was used for debugging purposes and is, as I think, no longer necessary. However we have yet to find a solution for the decref inside the dealloc methods. -- Added file:

[issue15655] PEP 384 Refactoring applied to json module

2012-08-15 Thread Robin Schreiber
Robin Schreiber added the comment: Removed C++ comment and corresponding codesnipped. Also changed bad-style macro definition. -- Added file: http://bugs.python.org/file26818/_json_pep384_v1.patch ___ Python tracker rep...@bugs.python.org

[issue15662] PEP 3121 refactoring applied to locale module

2012-08-15 Thread Robin Schreiber
New submission from Robin Schreiber: Changes proposed in PEP3121 have now been applied to the locale module! -- components: Extension Modules files: _locale_pep3121_v0.patch keywords: patch messages: 168268 nosy: Robin.Schreiber, loewis priority: normal severity: normal status: open

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2012-08-15 Thread Ned Deily
New submission from Ned Deily: The current situation with Tcl/Tk on OS X is less than ideal. The Apple-supplied versions of the Cocoa-based Aqua Tk 8.5 on 10.6 was unusable with IDLE and most Tkinter applications. The 10.7 and 10.8 versions are better but still have serious crashers that

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: A major reason for why the current installers don't install Tk as well is that this would significantly increase the size of the installer. There's also the question of what bits of Tcl/Tk should be bundled, although I guess we should ship a minimal install

[issue15663] Investigate providing Tcl/Tk 8.5 with OS X installers

2012-08-15 Thread Ned Deily
Ned Deily added the comment: Yes, it would have to be a subset since some of the stuff in the ActiveTcl releases is unavailable anyway. But the current ActiveTcl installer dmgs are around 24Mb while the 3.3.0 installers are a little less than 20Mb. Even if it were to double the size, 40Mb

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ronald Oussoren
New submission from Ronald Oussoren: I noticed that 'test_curses' is not started when performing make test on an OSX box: ... [ 42/369] test_curses test_curses skipped -- sys.__stdout__ is not a tty ... The host is a machine running OSX 10.8, fully up-to-date with patches and the current

[issue15535] Fix pickling of named tuples in 2.7.3

2012-08-15 Thread Thomas Miedema
Thomas Miedema added the comment: Attached is a script that shows the problem at hand. Note that my remark that this bug could result in very large pickled files when using nested namedtuples seems not te be true. -- Added file:

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ned Deily
Ned Deily added the comment: This appears to be the same issue as raised in Issue12669. Apparently it is not fixed. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15664

[issue13370] test_ctypes fails when building python with clang

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: The attached patch syncs libffi_osx with the copy of libffi that's included with PyObjC. With this patch test_ctypes passes for me when using clang to build on OSX 10.8. I haven't run the tests with other python releases yet, and also not on a OSX 10.5

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: the test does get run with 'make buildbottest', and then fails with a ValueError exception: $ /Users/ronald/Projects/python/rw/default/tbuild/python.exe -W default -bb -E -R -m test -r -w -j 1 -u all -W --timeout=3600 test_curses Using random seed 2242495

[issue11062] mailbox fails to round-trip a file to a Babyl mailbox

2012-08-15 Thread Petri Lehtinen
Petri Lehtinen added the comment: This happens because of a bug in Babyl._install_message(). When adding a message from file, the *** EOOH *** line is written also after the second set of headers. -- nosy: +petri.lehtinen ___ Python tracker

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ned Deily
Ned Deily added the comment: The chr() arg not in range(0x11) from test_unget_wch is due to a bug in ncurses 5.8; see Issue15037. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15664

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: I knew the test failure looked familiar, but couldn't find the issue in the tracker. This issue (test_curses not running with make test) is due to '-j0' in the arguments to the test runner: with -j0 the runner uses multiprocessing and the stdout and stderr

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8d90fde35cc6 by Eli Bendersky in branch 'default': Issue #15586: typo fix. This commit is accompanied by an apology for all Liechtensteiners out there, and a thanks to Eric Araujo for noticing. http://hg.python.org/cpython/rev/8d90fde35cc6

[issue15586] Provide some examples for usage of ElementTree methods/attributes

2012-08-15 Thread Eli Bendersky
Eli Bendersky added the comment: Daniel, this looks good except that the section numbering is different from 3.3 where the object/function reference sections were nested under Reference. Could you fix your patch to align the 2.7 doc to this structure? P.S. Éric's comment also has to be fixed

[issue15656] Extending Python with C page needs update for 3.x

2012-08-15 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15656 ___ ___ Python-bugs-list

[issue11062] mailbox fails to round-trip a file to a Babyl mailbox

2012-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad8c9725c041 by Petri Lehtinen in branch '2.7': #11062: Fix adding a message from file to Babyl mailbox http://hg.python.org/cpython/rev/ad8c9725c041 New changeset cbc1dc8cda06 by Petri Lehtinen in branch '3.2': #11062: Fix adding a message from

[issue11062] mailbox fails to round-trip a file to a Babyl mailbox

2012-08-15 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11062 ___

[issue11062] mailbox fails to round-trip a file to a Babyl mailbox

2012-08-15 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11062 ___ ___ Python-bugs-list

[issue15656] Extending Python with C page needs update for 3.x

2012-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 599376deeeac by Eli Bendersky in branch '3.2': Issue #15656: fixing code sample in extending doc http://hg.python.org/cpython/rev/599376deeeac -- nosy: +python-dev ___ Python tracker

[issue15656] Extending Python with C page needs update for 3.x

2012-08-15 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed, thanks for the report. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15656 ___

[issue15629] Run doctests in Doc/*.rst as part of regrtest

2012-08-15 Thread Eli Bendersky
Eli Bendersky added the comment: I think implementing this is very important, and +1 to Georg's suggestion, because no one is suddenly going to convert KLOCs of code samples to be testable (many code samples are partial, and will need to be completed in one way or another to be actually

[issue15629] Run doctests in Doc/*.rst as part of regrtest

2012-08-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: I would like the chance to try implementing this without depending on Sphinx and make doctest. I don't think it would take much work, and it would let us leverage and hook into regrtest's existing options (like test selection by name). I am also okay with

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread R. David Murray
R. David Murray added the comment: So this should be closed as a duplicate of issue 12669? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15664 ___

[issue15664] test_curses not run with 'make test'

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Yes. I'll add a message to that issue to note that is also affects 'make test' -- resolution: - duplicate stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker

[issue12669] test_curses skipped on buildbots

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: As noted in Issue15664 this issue also affects make test. -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12669 ___

[issue15543] central documentation for 'universal newlines'

2012-08-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is the patch for 2.7. -- Added file: http://bugs.python.org/file26822/issue-15543-6-py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15543 ___

[issue12669] test_curses skipped on buildbots

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Nadeem: is the failure you show in msg141798 with a version of test_curses that uses pty.openpty? If it isn't: I'd expect more test failures on buildbot machines where the buildbot agent is started as a system daemon, in which case the process doesn't have

[issue15665] PEP 3121, 384 refactoring applied to lsprof module

2012-08-15 Thread Robin Schreiber
New submission from Robin Schreiber: Changes proposed in PEP3121 and PEP384 have now been applied to the lsprof module! -- components: Extension Modules files: _lsprof_pep3121-384_v0.patch keywords: patch messages: 168292 nosy: Robin.Schreiber priority: normal severity: normal status:

[issue12669] test_curses skipped on buildbots

2012-08-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. the documentation for curses.setupterm says: curses.setupterm([termstr, fd]) The first argument is actually named term in the C code. -- ___ Python tracker rep...@bugs.python.org

[issue15666] PEP 3121, 384 refactoring applied to lzma module

2012-08-15 Thread Robin Schreiber
New submission from Robin Schreiber: Changes proposed in PEP3121 and PEP384 have now been applied to the lzma module! -- components: Extension Modules files: _lzma_pep3121-384_v0.patch keywords: patch messages: 168294 nosy: Robin.Schreiber, nadeem.vawda priority: normal severity: normal

[issue15667] PEP 3121, 384 refactoring applied to pickle module

2012-08-15 Thread Robin Schreiber
New submission from Robin Schreiber: Changes proposed in PEP3121 and PEP384 have now been applied to the pickle module! -- components: Extension Modules files: _pickle_pep3121-384_v0.patch keywords: patch messages: 168295 nosy: Robin.Schreiber priority: normal severity: normal status:

[issue15543] central documentation for 'universal newlines'

2012-08-15 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: Added file: http://bugs.python.org/file26826/issue-15543-6-py32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15543 ___

[issue15543] central documentation for 'universal newlines'

2012-08-15 Thread Chris Jerdonek
Chris Jerdonek added the comment: And here are the 3.2 patch and the 3.3 delta after forward-porting. Note that to forward-port the 3.2 patch to the default 3.3 branch, you can simply drop the changes to the file Doc/library/bz2.rst. I think that is the only conflict. -- Added

[issue15668] PEP 3121, 384 Refactoring applied to random module

2012-08-15 Thread Robin Schreiber
New submission from Robin Schreiber: Changes proposed in PEP3121 and PEP384 have now been applied to the lsprof module! -- components: Extension Modules files: _random_pep3121-384_v0.patch keywords: patch messages: 168297 nosy: Robin.Schreiber, rhettinger priority: normal severity:

  1   2   >