Re: Unicode issue with Python v3.3

2013-04-14 Thread nagia . retsina
Τη Τετάρτη, 10 Απριλίου 2013 12:10:13 π.μ. UTC+3, ο χρήστης Νίκος Γκρ33κ έγραψε: Hello, iam still trying to alter the code form python 2.6 = 3.3 Everyrging its setup except that unicode error that you can see if you go to http://superhost.gr Can anyone help with this? I even

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread Steven D'Aprano
On Sat, 13 Apr 2013 10:02:18 -0700, rusi wrote: To the OP: Steven is welcome to his views about use of databases. I haven't given any views about databases. I've given my view on application developers -- specifically, Firefox -- using a not-quite ACID database in a way that is fragile, can

كيف تعالج الهالات السوداء أسفل العين

2013-04-14 Thread 23alagmy
كيف تعالج الهالات السوداء أسفل العين http://natigtas7ab.blogspot.com/2013/04/blog-post_5060.html انشرا على الفيس بك https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fnatigtas7ab.blogspot.com%2F2013%2F04%2Fblog-post_5060.html%23.UWpinJbOYeo.facebook انشرها على تويتر

python setup.py install and dependencies

2013-04-14 Thread Marco
I have a some confusion about the package installation process. Let's say I have manually installed Python 3.3, so I don't have distribute and pip. Now I want to install the bpython shell, so I download the source code and after I try to do python3.3 setup.py install. I did so, and all it'is

Re: Unicode issue with Python v3.3

2013-04-14 Thread Cameron Simpson
On 13Apr2013 23:00, nagia.rets...@gmail.com nagia.rets...@gmail.com wrote: | root@nikos [/home/nikos/public_html/foo-py]# pwd | /home/nikos/public_html/foo-py | root@nikos [/home/nikos/public_html/foo-py]# cat foo.py | #!/bin/sh | exec 2/home/nikos/cgi.err.out | echo $0 $* 2 | id 2 | env | sort 2

Re: API design for Python 2 / 3 compatibility

2013-04-14 Thread Stefan Schwarzer
Terry, Ethan: Thanks a lot for your excellent advice. :-) On 2013-04-13 19:32, Terry Jan Reedy wrote: Approach 2 matches (or should match) io.open, which became builtin open in Python 3. I would simply document that ftp_host.open mimics io.open in the same way that ftp_host.chdir, etcetera,

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread rusi
On Apr 14, 12:56 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: On Sat, 13 Apr 2013 10:02:18 -0700, rusi wrote: To the OP: Steven is welcome to his views about use of databases. I haven't given any views about databases. You are twisting use of databases to just about

Re: Unicode issue with Python v3.3

2013-04-14 Thread nagia . retsina
Τη Κυριακή, 14 Απριλίου 2013 12:28:32 μ.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: On 13Apr2013 23:00, nagia.rets...@gmail.com nagia.rets...@gmail.com wrote: | root@nikos [/home/nikos/public_html/foo-py]# pwd | /home/nikos/public_html/foo-py | root@nikos

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread Chris Angelico
On Sun, Apr 14, 2013 at 9:17 PM, rusi rustompm...@gmail.com wrote: On Apr 14, 12:56 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: I've given my view on application developers -- specifically, Firefox -- using a not-quite ACID database in a way that is fragile, can cause

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread Ned Deily
In article captjjmrp_9saig89dkse-p6d0kpbjxmfe1731dffagukvas...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: Actually, this is one place where I disagree with the current decision of the Python core devs: I think bindings for other popular databases (most notably PostgreSQL, and

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread Cousin Stanley
Steven D'Aprano wrote: On Fri, 12 Apr 2013 23:26:05 +, Cousin Stanley wrote: The firefox browser keeps different sqlite database files for various uses Yes, and I *really* wish they wouldn't. It's my number 1 cause of major problems with Firefox. Problems with software of

howto remove the thousand separator

2013-04-14 Thread pyth0n3r
Hi, I came across a problem that when i deal with int data with ',' as thousand separator, such as 12,916, i can not change it into int() or float(). How can i remove the comma in int data? Any reply will be appreciated!! Best, Chen -- http://mail.python.org/mailman/listinfo/python-list

Re: howto remove the thousand separator

2013-04-14 Thread Mark Janssen
On Sun, Apr 14, 2013 at 11:57 AM, pyth0n3r pyth0...@gmail.com wrote: I came across a problem that when i deal with int data with ',' as thousand separator, such as 12,916, i can not change it into int() or float(). How can i remove the comma in int data? Any reply will be appreciated!!

Re: howto remove the thousand separator

2013-04-14 Thread Mitya Sirenef
On 04/14/2013 02:57 PM, pyth0n3r wrote: Hi, I came across a problem that when i deal with int data with ',' as thousand separator, such as 12,916, i can not change it into int() or float(). How can i remove the comma in int data? Any reply will be appreciated!! Best, Chen I would do

Re: howto remove the thousand separator

2013-04-14 Thread D'Arcy J.M. Cain
On Mon, 15 Apr 2013 02:57:35 +0800 pyth0n3r pyth0...@gmail.com wrote: float(). How can i remove the comma in int data? Any reply will be int(n.replace(',', '')) -- D'Arcy J.M. Cain da...@druid.net | Democracy is three wolves http://www.druid.net/darcy/| and a sheep

Re: howto remove the thousand separator

2013-04-14 Thread Mark Janssen
I would do int(num.replace(',', '')) That's much more pythonic than my C-ish version Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: howto remove the thousand separator

2013-04-14 Thread Mark Lawrence
On 14/04/2013 19:57, pyth0n3r wrote: Hi, I came across a problem that when i deal with int data with ',' as thousand separator, such as 12,916, i can not change it into int() or float(). How can i remove the comma in int data? Any reply will be appreciated!! Best, Chen Use the string replace

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread Tim Chase
On 2013-04-14 09:40, Ned Deily wrote: DNS client lookups use published, well-understood Internet-standard protocols, not at all like talking to a third-party database, be it open-source or not. That said, even though DNS is a publicly documented standard, I've reached for DNS code in the

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread Chris Angelico
On Mon, Apr 15, 2013 at 2:40 AM, Ned Deily n...@acm.org wrote: In article captjjmrp_9saig89dkse-p6d0kpbjxmfe1731dffagukvas...@mail.gmail.com, Chris Angelico ros...@gmail.com wrote: Actually, this is one place where I disagree with the current decision of the Python core devs: I think

Re: python-noob - which container is appropriate for later exporting into mySql + matplotlib ?

2013-04-14 Thread Roy Smith
In article mailman.605.1365973547.3114.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: I'd really love if there was a simple DNS-lookup module available in the stdlib, especially if it allowed overriding the server to ask. pip install dnspython --

Grammar question: Englisn and Python: qualified names

2013-04-14 Thread Chris Angelico
Quirky question time! When you read out a qualified name, eg collections.OrderedDict, do you read the qualifier (collections dot ordered dict), or do you elide it (ordered dict)? I ask because it makes a difference to talking about just one of them: ... or possibly a collections.OrderedDict...

Using xtopdf and pypyodbc to publish MS Access database data to PDF

2013-04-14 Thread vasudevram
Wrote a program that lets you publish your MS Access database data to PDF, using Python, ReportLab, xtopdf (my toolkit) and pypyodbc. Sharing it here. Link: http://jugad2.blogspot.in/2013/04/using-xtopdf-and-pypyodbc-to-publish-ms.html Note: Saw some comments about my blog post on the Python

Re: Grammar question: Englisn and Python: qualified names

2013-04-14 Thread MRAB
On 14/04/2013 22:50, Chris Angelico wrote: Quirky question time! When you read out a qualified name, eg collections.OrderedDict, do you read the qualifier (collections dot ordered dict), or do you elide it (ordered dict)? I ask because it makes a difference to talking about just one of them:

Threadpool item mailboxes design problem

2013-04-14 Thread Charles Hixson
What is the best approach to implementing actors that accept and post messages (and have no other external contacts). So far what I've come up with is something like: actors = {} mailboxs = {} Stuff actors with actor instances, mailboxes with multiprocessing.queue instances. (Actors and

Re: howto remove the thousand separator

2013-04-14 Thread Steven D'Aprano
On Sun, 14 Apr 2013 12:06:12 -0700, Mark Janssen wrote: cleaned='' for c in myStringNumber: if c != ',': cleaned+=c int(cleaned) Please don't write code like that. Firstly, it's long and bloated, and runs at the speed of Python, not C. Second, it runs at the speed of

Re: Grammar question: Englisn and Python: qualified names

2013-04-14 Thread Ethan Furman
On 04/14/2013 02:50 PM, Chris Angelico wrote: Quirky question time! When you read out a qualified name, eg collections.OrderedDict, do you read the qualifier (collections dot ordered dict), or do you elide it (ordered dict)? I ask because it makes a difference to talking about just one of them:

Re: howto remove the thousand separator

2013-04-14 Thread Mark Janssen
On Sun, Apr 14, 2013 at 5:29 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 14 Apr 2013 12:06:12 -0700, Mark Janssen wrote: cleaned='' for c in myStringNumber: if c != ',': cleaned+=c int(cleaned) due to being an O(N**2) algorithm. What on earth

Re: howto remove the thousand separator

2013-04-14 Thread Steven D'Aprano
On Sun, 14 Apr 2013 17:44:28 -0700, Mark Janssen wrote: On Sun, Apr 14, 2013 at 5:29 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 14 Apr 2013 12:06:12 -0700, Mark Janssen wrote: cleaned='' for c in myStringNumber: if c != ',': cleaned+=c int(cleaned)

Re: howto remove the thousand separator

2013-04-14 Thread Chris Angelico
On Mon, Apr 15, 2013 at 11:14 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 14 Apr 2013 17:44:28 -0700, Mark Janssen wrote: What on earth makes you think that is an O(n**2) algorithm and not O(n)? Python *might* optimize the first concatenation, '' + 'fe', to just

Re: classes and sub classes?

2013-04-14 Thread Jason Friedman
NwInvDb = NetworkInventoryDatabase, yes you are correct, it creates the database handle and makes it ready for use. I am interested in opinions. I for one dislike abbreviations on the theory that programs are read more than they are written. I would probably use this variable name:

Re: classes and sub classes?

2013-04-14 Thread MRAB
On 15/04/2013 02:38, Jason Friedman wrote: NwInvDb = NetworkInventoryDatabase, yes you are correct, it creates the database handle and makes it ready for use. I am interested in opinions. I for one dislike abbreviations on the theory that programs are read more than they are written. I

Re: howto remove the thousand separator

2013-04-14 Thread Rotwang
On 15/04/2013 02:14, Steven D'Aprano wrote: On Sun, 14 Apr 2013 17:44:28 -0700, Mark Janssen wrote: On Sun, Apr 14, 2013 at 5:29 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 14 Apr 2013 12:06:12 -0700, Mark Janssen wrote: cleaned='' for c in myStringNumber: if

Re: howto remove the thousand separator

2013-04-14 Thread Walter Hurry
On Mon, 15 Apr 2013 11:29:17 +1000, Chris Angelico wrote: There are actually a lot of optimizations done, so it might turn out to be O(n) in practice. But strictly in the Python code, yes, this is definitely O(n*n). In any event, Janssen should cease and desist offering advice here if he

Re: Threadpool item mailboxes design problem

2013-04-14 Thread Chris Rebert
On Apr 14, 2013 4:27 PM, Charles Hixson charleshi...@earthlink.net wrote: What is the best approach to implementing actors that accept and post messages (and have no other external contacts). You might look at how some of the existing Python actor libraries are implemented (perhaps one of these

Re: howto remove the thousand separator

2013-04-14 Thread Roy Smith
In article kkfodv$f5m$1...@news.albasani.net, Walter Hurry walterhu...@lavabit.com wrote: On Mon, 15 Apr 2013 11:29:17 +1000, Chris Angelico wrote: There are actually a lot of optimizations done, so it might turn out to be O(n) in practice. But strictly in the Python code, yes, this is

Re: Threadpool item mailboxes design problem

2013-04-14 Thread 88888 Dihedral
Charles Hixson於 2013年4月15日星期一UTC+8上午7時12分11秒寫道: What is the best approach to implementing actors that accept and post messages (and have no other external contacts). So far what I've come up with is something like: actors = {} mailboxs = {} Stuff actors with actor

The type/object distinction and possible synthesis of OOP and imperative programming languages

2013-04-14 Thread Mark Janssen
Hello, I'm new to the list and hoping this might be the right place to introduce something that has provoked a bit of an argument in my programming community. I'm from the Python programming community. Python is an interpreted language. Since 2001, Python's has migrated towards a pure Object

Re: The type/object distinction and possible synthesis of OOP and imperative programming languages

2013-04-14 Thread Terry Jan Reedy
Note: cross-posting to mailing lists does not work well. Hence the reply only to python-list and the gmane mirror. On 4/14/2013 11:48 PM, Mark Janssen wrote: Python is an interpreted language. I consider this a useless or even deceptive statement. Python is an object-based algorithm

Re: howto remove the thousand separator

2013-04-14 Thread Ned Deily
In article kkfnun$kpj$1...@dont-email.me, Rotwang sg...@hotmail.co.uk wrote: (Sorry for linking to Google Groups. Does anyone know of a better c.l.p. web archive?) http://dir.gmane.org/gmane.comp.python.general -- Ned Deily, n...@acm.org --

Re: Grammar question: Englisn and Python: qualified names

2013-04-14 Thread Stefan Schwarzer
Hi Chris, On 2013-04-14 23:50, Chris Angelico wrote: Quirky question time! When you read out a qualified name, eg collections.OrderedDict, do you read the qualifier (collections dot ordered dict), or do you elide it (ordered dict)? I ask because it makes a difference to talking about just

Re: [TYPES] The type/object distinction and possible synthesis of OOP and imperative programming languages

2013-04-14 Thread DeLesley Hutchins
I'm not quite sure I understand your question, but I'll give it a shot. :-) The C/C++ model, in which the types are anchored to the machine hardware, in the exception, not the rule. In the academic literature, type theory is almost entirely focused on studying abstract models of computation

[issue13922] argparse handling multiple -- in args improperly

2013-04-14 Thread paul j3
paul j3 added the comment: This patch removes only one '--', the one that put a '-' in the 'arg_strings_pattern'. It does this in 'consume_positionals' right before calling 'take_action'. As before it does not do this if nargs is PARSER or REMAINDER. test_argparse.py has two

[issue17720] pickle.py's load_appends should call append() on objects other than lists

2013-04-14 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Alright alright! Here's a less bogus patch. :) -- stage: needs patch - patch review Added file: http://bugs.python.org/file29846/fix_loads_appends.patch ___ Python tracker rep...@bugs.python.org

[issue17725] English mistake in Extending and Embedding Python doc page.

2013-04-14 Thread Kyle Simpson
New submission from Kyle Simpson: The second sentence in http://docs.python.org/3/extending/index.html says: Those modules can define new functions but also new object types and their methods. The word but doesn't make sense here. I suppose that the author meant to write: Those modules

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2013-04-14 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for working through that Phillip - falling back to sys.modules when the expected attribute was missing is actually something I suggested as a possibility years ago, and Guido's response at the time was If it was that easy, someone would have done it

[issue17725] English mistake in Extending and Embedding Python doc page.

2013-04-14 Thread Kyle Simpson
Kyle Simpson added the comment: I have provided a patch. -- keywords: +patch Added file: http://bugs.python.org/file29847/issue17725.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17725

[issue992389] attribute error due to circular import

2013-04-14 Thread Nick Coghlan
Nick Coghlan added the comment: The implementation of issue #17636 (making IMPORT_FROM fall back to sys.modules when appropriate) will make import x.y and from x import y equivalent for resolution purposes during import. That covers off the subset of circular references that we want to allow,

[issue17716] From ... import fails when parent package failed but child module succeeded, yet works in std import case

2013-04-14 Thread Nick Coghlan
Nick Coghlan added the comment: The interpreter level problem covered by the current issue is that the difference between import mypkg.module_a and from mypkg import module_a is masking the fact that it is the original import mypkg that failed, and may still fail on the second and subsequent

[issue17668] re.split loses characters matching ungrouped parts of a pattern

2013-04-14 Thread Mike Hoy
Changes by Mike Hoy mho...@gmail.com: -- nosy: +mikehoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17668 ___ ___ Python-bugs-list mailing list

[issue17726] faq/design: improve clarity

2013-04-14 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe: I puzzled a bit on what that sentence meant. -- assignee: docs@python components: Documentation files: diff messages: 186891 nosy: docs@python, tshepang priority: normal severity: normal status: open title: faq/design: improve clarity versions:

[issue17716] From ... import fails when parent package failed but child module succeeded, yet works in std import case

2013-04-14 Thread Nick Coghlan
Nick Coghlan added the comment: More generally, I think we may have to revisit the question of what we remove from sys.modules on failure if, as a side effect of the import, a child module was imported successfully. In this situation, the possibilities are: 1. Remove the parent module, and

[issue17726] faq/design: improve clarity

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset ab35b5e81317 by Georg Brandl in branch '2.7': Closes #17726: small clarification in design FAQ. http://hg.python.org/cpython/rev/ab35b5e81317 New changeset f6fdf3457f74 by Georg Brandl in branch '3.3': Closes #17726: small clarification in design

[issue17711] Persistent id in pickle with protocol version 0

2013-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think a string with character codes 256 will be better for test_protocol0_is_ascii_only(). It can be latin1 encoded (Python 2 allows any 8-bit strings). PyUnicode_AsASCIIString() can be slower than _PyUnicode_AsStringAndSize() (actually

[issue17661] documentation of '%r' links to the wrong repr

2013-04-14 Thread Georg Brandl
Georg Brandl added the comment: Fixed, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17661 ___ ___ Python-bugs-list mailing list

[issue17661] documentation of '%r' links to the wrong repr

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd5e7aef4d5b by Georg Brandl in branch '2.7': Closes #17661: fix references to repr() going to module repr. http://hg.python.org/cpython/rev/dd5e7aef4d5b -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected

[issue17727] document that some distributions change site.py defaults

2013-04-14 Thread Georg Brandl
New submission from Georg Brandl: From the docs@ list: Dear all, the first paragraph of the documentation for the site module states that site.py constructs four directories using a head and tail part, and that one of the tail parts would be lib/pythonX.Y/site-packages on UNIX/Mac. However,

[issue17618] base85 encoding

2013-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I want to see both algorithms to be similar so far as it is possible. It might be worth extract and reuse a common code. Mercurial's code looks far more optimal (for example a85encode has a quadratic complexity in result accumulating). --

[issue13638] PyErr_SetFromErrnoWithFilenameObject is undocumented

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4cc94d30926f by Georg Brandl in branch '2.7': Closes #13638: document PyErr_SetFromErrnoWithFilenameObject, http://hg.python.org/cpython/rev/4cc94d30926f New changeset ee848457930f by Georg Brandl in branch '3.3': Closes #13638: document

[issue14462] In re's named group the name cannot contain unicode characters

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2fa27a3818a2 by Georg Brandl in branch '3.3': Closes #14462: allow any valid Python identifier in sre group names, as documented. http://hg.python.org/cpython/rev/2fa27a3818a2 -- nosy: +python-dev resolution: - fixed stage: patch review -

[issue3056] Simplify the Integral ABC

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4678259af5a4 by Georg Brandl in branch '2.7': The Integral class does not contain implementations for the bit-shifting operations. (See #3056.) http://hg.python.org/cpython/rev/4678259af5a4 New changeset 1d4ba14cc505 by Georg Brandl in branch

[issue17728] format() default precisions undocumented

2013-04-14 Thread Georg Brandl
New submission from Georg Brandl: The docs for % formatting say what the default precision for presentation types e, f, g is. I couldn't find the same for format(). -- assignee: eric.smith components: Documentation messages: 186902 nosy: eric.smith, georg.brandl priority: normal

[issue17729] advocacy howto improvements

2013-04-14 Thread Georg Brandl
New submission from Georg Brandl: From docs@: The howto-advocacy is interesting. You might consider removing the following sentences, which I found personally gave me a negative impression: python hasn't had all the publicity to my mind gives the impression that python is not popular.

[issue17727] document that some distributions change site.py defaults

2013-04-14 Thread Matthias Klose
Matthias Klose added the comment: the local patch adds as documentation on Debian/Ubuntu: For Debian and derivatives, this sys.path is augmented with directories for packages distributed within the distribution. Local addons go into /usr/local/lib/pythonversion/dist-packages, Debian addons

[issue13050] RLock support the context manager protocol but this is not documented

2013-04-14 Thread Georg Brandl
Georg Brandl added the comment: Thanks, closing. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13050 ___

[issue16551] Cleanup the pure Python pickle implementation

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3dff836cedef by Serhiy Storchaka in branch 'default': Closes #16551. Cleanup pickle.py. http://hg.python.org/cpython/rev/3dff836cedef -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue16550] pickletools.py treats 32bit lengths as signed, but pickle.py as unsigned

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4ced30417300 by Alexandre Vassalotti in branch '3.3': Issue #16550: Update the opcode descriptions of pickletools to use unsigned http://hg.python.org/cpython/rev/4ced30417300 -- nosy: +python-dev ___

[issue2118] smtplib.SMTP() raises socket.error rather than SMTPConnectError

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset adc72ff451dc by R David Murray in branch 'default': #2118: IOError is deprecated, use OSError. http://hg.python.org/cpython/rev/adc72ff451dc -- ___ Python tracker rep...@bugs.python.org

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you, Mark. There is only one question. For what version is it appropriate? Only for 3.4 or for all maintained? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15301

[issue17413] format_exception() breaks on exception tuples from trace function

2013-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks Ingrid and Mark. The patch looks good; I put a couple of FYI comments on the review. I'm pretty sure this patch is correct, but I'd like someone with more experience modifying the ceval loop to confirm, so I'm nosying Benjamin. -- nosy:

[issue17713] test_logging fails in test_compute_rollover_weekly_attime

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1494daf809c1 by Vinay Sajip in branch 'default': Closes #17713: Fixed bug in test_compute_rollover_weekly_attime. http://hg.python.org/cpython/rev/1494daf809c1 -- resolution: - fixed stage: - committed/rejected status: open - closed

[issue17713] test_logging fails in test_compute_rollover_weekly_attime

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset efda51b85b31 by Vinay Sajip in branch 'default': Issue #17713: additional tweak to test. http://hg.python.org/cpython/rev/efda51b85b31 -- ___ Python tracker rep...@bugs.python.org

[issue15301] os.chown: OverflowError: Python int too large to convert to C long

2013-04-14 Thread Larry Hastings
Larry Hastings added the comment: Oh...! Serhiy, I thought you already checked in the AsIndex stuff. Guess I was asleep at the switch. Certainly the patch should go in for trunk. I'd be comfortable with it going in for 3.3 as a bugfix but that's ultimately Georg's call. I'll give you a

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-14 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17703 ___

[issue17730] code.interact() doesn't support no banner

2013-04-14 Thread Drekin
New submission from Drekin: Currently, there is no way to run code.interact without a banner – empty string still means to print an empty line. If I want that behaviour, I must subclass code.InteractiveConsole and reimplement whole .interact method including the repl logic just not to print a

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-14 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 12.04.2013 20:00, Antoine Pitrou wrote: Marc-André, does this patch work for you? Added file: http://bugs.python.org/file29791/tstate_trashcan.patch Thanks, Antoine. I can try this tomorrow. -- ___

[issue16694] Add pure Python operator module

2013-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! One optional thing, the code churn could be minimized in test_operator.py by writing operator = self.module at the beginning of each test method. Otherwise, looks good to me. -- ___ Python tracker

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset c40b50d65a00 by Nick Coghlan in branch '3.3': Close issue #16163: handle submodules in pkgutil.iter_importers http://hg.python.org/cpython/rev/c40b50d65a00 New changeset 3bb5a8a4830e by Nick Coghlan in branch 'default': Merge fix for #16163 from

[issue16163] Wrong name in Lib/pkgutil.py:iter_importers

2013-04-14 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16163 ___

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-14 Thread Mike Milkin
Mike Milkin added the comment: I did not mean to take the decode out of the previos patch. Sorry for the spam. -- Added file: http://bugs.python.org/file29850/Issue9682-full.patch ___ Python tracker rep...@bugs.python.org

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2013-04-14 Thread Mike Milkin
Changes by Mike Milkin mmil...@gmail.com: Removed file: http://bugs.python.org/file29834/Issue9682-full.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___

[issue17703] Trash can mechanism segfault during interpreter finalization in Python 2.7.4

2013-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes, let's not break thing in point releases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17703 ___ ___

[issue17044] Implement PEP 422: Simple class initialisation hook

2013-04-14 Thread Daniel Urban
Daniel Urban added the comment: I've attached a new patch. With this patch, type.__prepare__ has an optional keyword-only argument 'namespace', and returns it if it's specified. Also, __init_class__ is passed an argument: a mapping proxy of the mapping originally returned by __prepare__.

[issue15866] encode(..., 'xmlcharrefreplace') produces entities for surrogate pairs

2013-04-14 Thread STINNER Victor
STINNER Victor added the comment: Should we really invest time to fix bugs related to astral (non-BMP) characters with rare codecs and error handlers (CJK codecs, xmlcharrefreplace error handler)? Python 3.3 is released and has a much better support of astral characters (in many places). I

[issue17636] Modify IMPORT_FROM to fallback on sys.modules

2013-04-14 Thread Phillip J. Eby
Phillip J. Eby added the comment: On Sun, Apr 14, 2013 at 3:51 AM, Nick Coghlan rep...@bugs.python.org wrote: Your analysis is one of the pieces that was missing, Unfortunately, I just noticed it's actually incorrect in a pretty important part In my original example, I said, because of the

[issue17702] os.environ converts key type from string to bytes in KeyError exception

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72df981e83d3 by Victor Stinner in branch '3.3': Close #17702: os.environ now raises KeyError with the original environment http://hg.python.org/cpython/rev/72df981e83d3 New changeset ea54559a4442 by Victor Stinner in branch 'default': (Merge 3.3)

[issue17618] base85 encoding

2013-04-14 Thread Martin Morrison
Martin Morrison added the comment: I've updated the Ascii85 algorithms to remove the quadratic complexity, and use a single struct.pack/unpack. They should now be much quicker for large input strings. It's difficult to factor out commonality with b85* because the encodings and rules differ.

[issue17221] Resort Misc/NEWS

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset dbb943399c9b by Serhiy Storchaka in branch '2.7': Issue #17221: Resort Misc/NEWS. http://hg.python.org/cpython/rev/dbb943399c9b New changeset 7da08495b497 by Serhiy Storchaka in branch '3.3': Issue #17221: Resort Misc/NEWS.

[issue17221] Resort Misc/NEWS

2013-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I commit patches since no one objected. Not all errors are corrected. There are duplicates (`cat Misc/NEWS | sort | uniq -cd | sort -n`). I'm not sure that the line What's New in Python 3.3.1 release candidate 1? in Misc/NEWS for 3.4 correct. The difference

[issue995907] memory leak with threads and enhancement of the timer class

2013-04-14 Thread Yael
Yael added the comment: Added a class Threading.TimerPool. This new class spawns one thread, and that thread is running as long as there are active timers. -- keywords: +patch Added file: http://bugs.python.org/file29853/mywork.patch ___ Python

[issue17244] py_compile.compile() fails to raise exceptions when writing of target file fails

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04aaeae6ee7b by Brett Cannon in branch 'default': Issue #17244: Don't mask exceptions raised during the creation of http://hg.python.org/cpython/rev/04aaeae6ee7b -- nosy: +python-dev ___ Python tracker

[issue17244] py_compile.compile() fails to raise exceptions when writing of target file fails

2013-04-14 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: test needed - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17244 ___

[issue17341] Poor error message when compiling invalid regex

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 65db865c0851 by R David Murray in branch '3.3': #17341: Include name in re error message about invalid group name. http://hg.python.org/cpython/rev/65db865c0851 New changeset 227fed7a05d4 by R David Murray in branch 'default': Merge #17341: Include

[issue17353] Plistlib outputs empty data tags when deeply nested

2013-04-14 Thread Mike Milkin
Mike Milkin added the comment: Looks like plistlib.writePlistToString is no loger in the plistlib. -- nosy: +mmilkin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17353 ___

[issue17341] Poor error message when compiling invalid regex

2013-04-14 Thread R. David Murray
R. David Murray added the comment: Thanks Jason. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17341

[issue17693] Use _PyUnicodeWriter API for CJK decoders

2013-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset ffd4b72f7f95 by Victor Stinner in branch 'default': Issue #17693: Fix memory/reference leaks http://hg.python.org/cpython/rev/ffd4b72f7f95 -- ___ Python tracker rep...@bugs.python.org

[issue17618] base85 encoding

2013-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi and thanks for the patch! I named the Mercurial base85 implementation functions with the b85 prefix. For the Ascii85 ones, I used a85. I considered overloading the same functions with a keyword argument to select which encoding, but rejected that.

[issue15866] encode(..., 'xmlcharrefreplace') produces entities for surrogate pairs

2013-04-14 Thread Ezio Melotti
Ezio Melotti added the comment: I tend to agree with Victor: if you want to fix 2.7 go ahead, but if that's too much work it's OK with me to close this issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15866

[issue10438] list an example for calling static methods from WITHIN classes

2013-04-14 Thread R. David Murray
R. David Murray added the comment: After a discussion (at the Boston Python sprint, unfortunately I forget with who) of how difficult this could be to explain succinctly without confusing either java/C++ programmers on the one hand or Python programmers on the other hand, this, the wording in

[issue13510] Clarify that readlines() is not needed to iterate over a file

2013-04-14 Thread Ezio Melotti
Ezio Melotti added the comment: I would actually remove the whole section about readlines() or possibly just mention it briefly (something like If you want to read all the lines of a file in a list you can also use f.readlines().) The sizehint arg is rarely used, so I don't see the point of

[issue13510] Clarify that readlines() is not needed to iterate over a file

2013-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would actually remove the whole section about readlines() or possibly just mention it briefly (something like If you want to read all the lines of a file in a list you can also use f.readlines().) The sizehint arg is rarely used, so I don't see the point

  1   2   >