[ANN] Leipzig Python User Group - Meeting, December 11 2012, 08:00 p.m.

2012-12-10 Thread Stefan Schwarzer
=== Leipzig Python User Group === We will meet on Tuesday, December 11 at 8:00 p.m. at the training center of Python Academy in Leipzig, Germany ( http://www.python-academy.com/center/find.html ). Our main subjects this time are concurrency and parallelism. Everybody who uses Python, plans to

Re: A question about readability

2012-12-10 Thread Jean-Michel Pichavant
- Original Message - On Dec 7, 6:46 pm, Marco name.surn...@gmail.com wrote: Hi all, do you think this code: $ more myscript.py for line in open('data.txt'):      result = sum(int(data) for data in line.split(';'))      print(result) that sums the elements of the lines of

Re: A question about readability

2012-12-10 Thread rusi
On Dec 10, 3:03 pm, Jean-Michel Pichavant jeanmic...@sequans.com wrote: - Original Message - On Dec 7, 6:46 pm, Marco name.surn...@gmail.com wrote: Hi all, do you think this code: $ more myscript.py for line in open('data.txt'):      result = sum(int(data) for data in

Re: Python Noob Question.

2012-12-10 Thread Alexander Blinne
Am 05.12.2012 21:24, schrieb Owatch: Thanks a TON for your answer thought, this is exactly what I really hoped for. The problem for me is that I don't actually know anything about writing a function that opens a network socket, and connects to that plugin und asks it for the information

Dropbox Hires Away Google’s Guido Van Rossum

2012-12-10 Thread Rodrick Brown
http://techcrunch.com/2012/12/07/dropbox-guido-van-rossum-python/ -- http://mail.python.org/mailman/listinfo/python-list

why the conut( ) can not get the number?

2012-12-10 Thread ????????
i wnat to get the number of a atrributes in a xpath,here is my code,why i can not get the number ? import urllib import lxml.html down=http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html; file=urllib.urlopen(down).read() root=lxml.html.document_fromstring(file) for order,node in

Re: why the conut( ) can not get the number?

2012-12-10 Thread Peter Otten
水静流深 wrote: i wnat to get the number of a atrributes in a xpath,here is my code,why i can not get the number ? import urllib import lxml.html down=http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html; file=urllib.urlopen(down).read() root=lxml.html.document_fromstring(file)

Re: problem with usbtmc-communication

2012-12-10 Thread Jean Dubois
On 7 dec, 14:46, Jean Dubois jeandubois...@gmail.com wrote: On 6 dec, 21:15, w...@mac.com wrote: On Dec 6, 2012, at 2:41 PM, Jean Dubois jeandubois...@gmail.com wrote: On 6 dec, 15:50, w...@mac.com wrote: On Dec 6, 2012, at 8:50 AM, Jean Dubois jeandubois...@gmail.com wrote: [byte]

Re: The Zen of Zope, by Alex Clark

2012-12-10 Thread Alex Clark
On 2012-12-10 04:24:00 +, Steven D'Aprano said: On Sun, 09 Dec 2012 20:13:43 -0500, Alex Clark wrote: import other The Zen of Zope, by Alex Clark I expect that I would find that hilarious if I knew anything about Zope :) Well, you are in luck! Because it's a tutorial too:

Re: problem with usbtmc-communication

2012-12-10 Thread wrw
On Dec 10, 2012, at 8:31 AM, Jean Dubois jeandubois...@gmail.com wrote: [byte] As you can see this approach suffers from the same buffer problem as the approach with readline did. One now good argue as a workaround: get rid of the first data pair and add an extra measure command for the

Re: using smtp sent large file upto 60MB

2012-12-10 Thread moonhkt
On 12月5日, 下午11時01分, Michael Torrie torr...@gmail.com wrote: On 12/04/2012 05:54 PM, moonhkt wrote: Our SMTP can send file more than 60MB. But our notes server can configured 100MB,30MB or 10MB. My notes Mail box can receive 100MB. In UNIX, by below command send  smtp mail. uuencode $xfn

About open file for Read

2012-12-10 Thread moonhkt
Hi All I am new in Python. When using open and then for line in f . Does it read all the data into f object ? or read line by line ? f=open(file, 'r') for line in f: if userstring in line: print file: + os.path.join(root,file) break

Re: forking and avoiding zombies!

2012-12-10 Thread peter
On 12/10/2012 12:42 PM, andrea crotti wrote: So I implemented a simple decorator to run a function in a forked process, as below. It works well but the problem is that the childs end up as zombies on one machine, while strangely I can't reproduce the same on mine.. I know that this is not the

Re: About open file for Read

2012-12-10 Thread Dave Angel
On 12/10/2012 11:36 AM, moonhkt wrote: Hi All I am new in Python. When using open and then for line in f . Does it read all the data into f object ? or read line by line ? f=open(file, 'r') for line in f: if userstring in line: print file: +

Re: About open file for Read

2012-12-10 Thread Peter Otten
Dave Angel wrote: On 12/10/2012 11:36 AM, moonhkt wrote: Hi All I am new in Python. When using open and then for line in f . Does it read all the data into f object ? or read line by line ? f=open(file, 'r') for line in f: if userstring in line:

accessing an OLE Automation (IDispatch) server from python which requires the use of out params

2012-12-10 Thread bitbucket
I have an existing Windows application which provides an OLE Automation (IDispatch) interface. I'm not able to change that interface. I'd like to call it from a scripting language. I figure this would provide a nice quick way to invoke on the app. I initially tried this with Windows

Re: Using poplib to parse headers - Thank You All!

2012-12-10 Thread asklucas
Hello Jean-Claude! Thank you for your post, it helped me a lot! I'm not too new to Python but still struggling to make use of that great language's features. I haven't tested it but since you are interested in syntactic subtleties, I think you can save one iterator (k): for j in

date-time comparison, aware vs naive

2012-12-10 Thread noydb
I want to compare a user entered date-and-time against the date-and-time of a pdf file. I posted on this (how to get a file's date-time) before, was advised to do it like: import datetime, os, stat mtime = os.lstat(filename)[stat.ST_MTIME] // the files modification time dt =

Re: date-time comparison, aware vs naive

2012-12-10 Thread John Gordon
In 21eb3e6f-9a82-47aa-93ff-8f4083d18...@googlegroups.com noydb jenn.du...@gmail.com writes: I want to compare a user entered date-and-time against the date-and-time of a pdf file. I posted on this (how to get a file's date-time) before, was advised to do it like: import datetime, os, stat

Re: date-time comparison, aware vs naive

2012-12-10 Thread noydb
Found this, and it solved my problem http://blogs.law.harvard.edu/rprasad/2011/09/21/python-string-to-a-datetime-object/ -- http://mail.python.org/mailman/listinfo/python-list

Matplotlib/Pylab Error

2012-12-10 Thread subhabangalore
Dear Group, I am trying to enumerate few interesting errors on pylab/matplotlib. If any of the learned members can kindly let me know how should I address them. I am trying to enumerate them as follows. i) import numpy import pylab t = numpy.arange(0.0, 1.0+0.01, 0.01) s =

Re: About open file for Read

2012-12-10 Thread Steven D'Aprano
On Mon, 10 Dec 2012 08:36:22 -0800, moonhkt wrote: Hi All I am new in Python. When using open and then for line in f . Does it read all the data into f object ? or read line by line ? Have you read the Fine Manual? http://docs.python.org/2/library/stdtypes.html#file-objects If you have

Re: date-time comparison, aware vs naive

2012-12-10 Thread Steven D'Aprano
On Mon, 10 Dec 2012 11:57:37 -0800, noydb wrote: I want to compare a user entered date-and-time against the date-and-time of a pdf file. I posted on this (how to get a file's date-time) before, was advised to do it like: import datetime, os, stat mtime = os.lstat(filename)[stat.ST_MTIME]

Re: accessing an OLE Automation (IDispatch) server from python which requires the use of out params

2012-12-10 Thread Terry Reedy
On 12/10/2012 2:13 PM, bitbucket wrote: I have an existing Windows application which provides an OLE Automation (IDispatch) interface. I'm not able to change that interface. I'd like to call it from a scripting language. I figure this would provide a nice quick way to invoke on the app. I

Re: date-time comparison, aware vs naive

2012-12-10 Thread noydb
On Monday, December 10, 2012 3:52:55 PM UTC-5, Steven D'Aprano wrote: On Mon, 10 Dec 2012 11:57:37 -0800, noydb wrote: I want to compare a user entered date-and-time against the date-and-time of a pdf file. I posted on this (how to get a file's date-time) before, was advised to

Re: date-time comparison, aware vs naive

2012-12-10 Thread Dave Angel
On 12/10/2012 03:52 PM, Steven D'Aprano wrote: On Mon, 10 Dec 2012 11:57:37 -0800, noydb wrote: I want to compare a user entered date-and-time against the date-and-time of a pdf file. I posted on this (how to get a file's date-time) before, was advised to do it like: import datetime, os,

strptime - dates formatted differently on different computers

2012-12-10 Thread noydb
Follow-on question to this earlier topic - https://groups.google.com/d/topic/comp.lang.python/wnUlPBBNah8/discussion Was curious to know if there was a way to handle different user computers with different operating system set date formats. 2/10/2006 vs 2-10-2006, for example. Not an issue

Re: date-time comparison, aware vs naive

2012-12-10 Thread noydb
http://docs.python.org/2/library/datetime An object of type *time* or *datetime* may be naive or *aware aware refers to time-zone and daylight savings time, such political ephemerals. Two times can only be changed if one knows they're both in the same one, or if one

Re: strptime - dates formatted differently on different computers

2012-12-10 Thread noydb
NTFS partition Windows 7 Python 2.7 -- http://mail.python.org/mailman/listinfo/python-list

Re: strptime - dates formatted differently on different computers

2012-12-10 Thread Dave Angel
On 12/10/2012 04:18 PM, noydb wrote: Follow-on question to this earlier topic - https://groups.google.com/d/topic/comp.lang.python/wnUlPBBNah8/discussion For those who avoid googlegroups with a passion, and/or don't have internet access, the subject of that thread is date-time comparison,

Re: accessing an OLE Automation (IDispatch) server from python which requires the use of out params

2012-12-10 Thread bitbucket
On Monday, December 10, 2012 3:58:33 PM UTC-5, Terry Reedy wrote: I believe the easiest way to do that is to install the pywin extensions http://sourceforge.net/projects/pywin32/?source=directory I assume it can handle out params. That definitely looks like a good starting point. Just

open URL in the current tab

2012-12-10 Thread Jabba Laci
Hi, With the webbrowser module you can open a URL in a new tab. But how could I tell Firefox from Python to open a URL in the _current_ tab? Thanks, Laszlo -- http://mail.python.org/mailman/listinfo/python-list

Re: open URL in the current tab

2012-12-10 Thread Joel Goldstick
On Mon, Dec 10, 2012 at 5:27 PM, Jabba Laci jabba.l...@gmail.com wrote: Hi, With the webbrowser module you can open a URL in a new tab. But how could I tell Firefox from Python to open a URL in the _current_ tab? The docs say this: webbrowser.open_new(*url*) Open *url* in a new window of

String manipulation in python..NEED HELP!!!!

2012-12-10 Thread qbailey
I need help with a program i am doing. it is a cryptography program. i am given a regular alphabet and a key. i need to use the user input and use the regular alphabet and use the corresponding letter in the key and that becomes the new letter. i have the basic code but need help with how to

Re: open URL in the current tab

2012-12-10 Thread Boris FELD
Don't think that it's possible with webbrowser, you should try with Selenium. For example with sst (Simple Selenium Test), it open url in current tab or create a new one if no one exists: from sst.actions import * go_to('http://www.ubuntu.com/') 2012/12/10 Jabba Laci jabba.l...@gmail.com: Hi,

Re: open URL in the current tab

2012-12-10 Thread Jabba Laci
Thanks. I've found something interesting since then: https://addons.mozilla.org/en-US/firefox/addon/mozrepl/ https://github.com/bard/mozrepl/wiki It allows you to connect to your Firefox via telnet. Then changing the URL: content.location.href = new_url However, for this you need to install

Re: String manipulation in python..NEED HELP!!!!

2012-12-10 Thread John Gordon
In d6779e35-32b8-417a-abf9-72454573b...@googlegroups.com qbai...@ihets.org writes: crypto.py Implements a simple substitution cypher alpha = ABCDEFGHIJKLMNOPQRSTUVWXYZ key = XPMGTDHLYONZBWEARKJUFSCIQV def main(): keepGoing = True while keepGoing: response = menu()

Re: open URL in the current tab

2012-12-10 Thread Chris Angelico
On Tue, Dec 11, 2012 at 9:27 AM, Jabba Laci jabba.l...@gmail.com wrote: Hi, With the webbrowser module you can open a URL in a new tab. But how could I tell Firefox from Python to open a URL in the _current_ tab? If this is for use on somebody else's system, *please don't*. My current tab is

Re: String manipulation in python..NEED HELP!!!!

2012-12-10 Thread Vlastimil Brom
2012/12/10 qbai...@ihets.org: I need help with a program i am doing. it is a cryptography program. i am given a regular alphabet and a key. i need to use the user input and use the regular alphabet and use the corresponding letter in the key and that becomes the new letter. i have the

Re: String manipulation in python..NEED HELP!!!!

2012-12-10 Thread Chris Angelico
On Tue, Dec 11, 2012 at 9:38 AM, qbai...@ihets.org wrote: I need help with a program i am doing. it is a cryptography program. i am given a regular alphabet and a key. i need to use the user input and use the regular alphabet and use the corresponding letter in the key and that becomes the

Re: open URL in the current tab

2012-12-10 Thread Jabba Laci
Hi, If this is for use on somebody else's system, *please don't*. My This is for me. I have a simple GUI that produces some URL that I want to open in the current tab. Since I want to verify several URLs, I don't want to open dozens of new tabs. Here is my working solution. It requires the

MySQLdb insert HTML code error

2012-12-10 Thread Anatoli Hristov
Hi all, I'm facing an issue inserting an html code into the DB, it comes out with a syntax error but I face it only when I have html code. Could help me escape the error somehow ? Here is my code def InsertSpecsDB(product_id, spec, lang, name): db = MySQLdb.connect(localhost,getit,opencart)

Re: open URL in the current tab

2012-12-10 Thread Chris Angelico
On Tue, Dec 11, 2012 at 11:05 AM, Jabba Laci jabba.l...@gmail.com wrote: Hi, If this is for use on somebody else's system, *please don't*. My This is for me. I have a simple GUI that produces some URL that I want to open in the current tab. Since I want to verify several URLs, I don't want

Re: MySQLdb insert HTML code error

2012-12-10 Thread Mark Lawrence
On 11/12/2012 00:04, Anatoli Hristov wrote: Hi all, I'm facing an issue inserting an html code into the DB, it comes out with a syntax error but I face it only when I have html code. Could help me escape the error somehow ? Here is my code def InsertSpecsDB(product_id, spec, lang, name):

Re: MySQLdb insert HTML code error

2012-12-10 Thread Anatoli Hristov
As much use as a chocolate teapot, all you've given is a function/method definition. No indication of your OS, Python version, calling code, what you expect to happen, what actually happened, apart from that your request for assistance is perfect. Usually I'd be able to help but sadly my

Re: MySQLdb insert HTML code error

2012-12-10 Thread Anatoli Hristov
On Tue, Dec 11, 2012 at 1:29 AM, Anatoli Hristov toli...@gmail.com wrote: As much use as a chocolate teapot, all you've given is a function/method definition. No indication of your OS, Python version, calling code, what you expect to happen, what actually happened, apart from that your request

Re: MySQLdb insert HTML code error

2012-12-10 Thread Mark Lawrence
On 11/12/2012 00:29, Anatoli Hristov wrote: As much use as a chocolate teapot, all you've given is a function/method definition. No indication of your OS, Python version, calling code, what you expect to happen, what actually happened, apart from that your request for assistance is perfect.

Re: MySQLdb insert HTML code error

2012-12-10 Thread MRAB
On 2012-12-11 00:04, Anatoli Hristov wrote: Hi all, I'm facing an issue inserting an html code into the DB, it comes out with a syntax error but I face it only when I have html code. Could help me escape the error somehow ? Here is my code def InsertSpecsDB(product_id, spec, lang, name):

Re: MySQLdb insert HTML code error

2012-12-10 Thread Anatoli Hristov
You're using a parametrised query (which is good :-)), but you've included quotes around the placeholders. There's no need to do that. They'll be quoted automatically when necessary: sql = INSERT INTO product_description (product_id, language_id, name, description) VALUES (%s,%s,%s,%s)

Re: accessing an OLE Automation (IDispatch) server from python which requires the use of out params

2012-12-10 Thread Mark Hammond
On 11/12/2012 8:39 AM, bitbucket wrote: On Monday, December 10, 2012 3:58:33 PM UTC-5, Terry Reedy wrote: I believe the easiest way to do that is to install the pywin extensions http://sourceforge.net/projects/pywin32/?source=directory I assume it can handle out params. That definitely

Re: strptime - dates formatted differently on different computers

2012-12-10 Thread Steven D'Aprano
On Mon, 10 Dec 2012 16:36:37 -0500, Dave Angel wrote: When accepting input from a user, consider their environment. Perhaps they're in a different timezone than your program (or your native location), or use some other ordering for the date (for example, the Japanese sensibly put year first,

ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

2012-12-10 Thread Dave Cinege
Thesaurus: A different way to call a dictionary. Thesaurus is a new a dictionary subclass which allows calling keys as if they are class attributes and will search through nested objects recursively when __getitem__ is called. You will notice that the code is disgusting simple. However I have

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

2012-12-10 Thread Jason Friedman
Thesaurus is a new a dictionary subclass which allows calling keys as if they are class attributes and will search through nested objects recursively when __getitem__ is called. Good stuff. You might consider: 1) Licensing under an OSI-approved license

Re: strptime - dates formatted differently on different computers

2012-12-10 Thread Michael Torrie
On 12/10/2012 02:18 PM, noydb wrote: Follow-on question to this earlier topic - https://groups.google.com/d/topic/comp.lang.python/wnUlPBBNah8/discussion Was curious to know if there was a way to handle different user computers with different operating system set date formats. 2/10/2006

Re: ANNOUNCE: Thesaurus - a recursive dictionary subclass using attributes

2012-12-10 Thread Ian Kelly
On Mon, Dec 10, 2012 at 8:48 PM, Dave Cinege d...@cinege.com wrote: Thesaurus: A different way to call a dictionary. Thesaurus is a new a dictionary subclass which allows calling keys as if they are class attributes and will search through nested objects recursively when __getitem__ is

Re: problem with usbtmc-communication

2012-12-10 Thread Jean Dubois
On 10 dec, 16:34, w...@mac.com wrote: On Dec 10, 2012, at 8:31 AM, Jean Dubois jeandubois...@gmail.com wrote: [byte] As you can see this approach suffers from the same buffer problem as the approach with readline did. One now good argue as a workaround: get rid of the first data

Re: MySQLdb insert HTML code error

2012-12-10 Thread Anatoli Hristov
First thing -- DON'T put quotes around the %s place-holders... The whole purpose of using the parameterized .execute() is to let the database adapter properly escape the parameters before putting them into the SQL (since MySQL didn't have prepared statements before v5, it was producing

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2012-12-10 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: +Python 3.3, Python 3.4 -Python 3.1 Added file: http://bugs.python.org/file28272/issue1218234.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1218234

[issue1218234] inspect.getsource doesn't update when a module is reloaded

2012-12-10 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1218234 ___ ___

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset c9b9f786ec25 by Hynek Schlawack in branch '3.2': #15872: Add tests for a 3.3 regression in the new fd-based shutil.rmtree http://hg.python.org/cpython/rev/c9b9f786ec25 New changeset fc394216c724 by Hynek Schlawack in branch '3.3': #15872: Fix 3.3

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5211391928bc by Hynek Schlawack in branch '3.2': #15872: Fix shutil.rmtree error tests for Windows http://hg.python.org/cpython/rev/5211391928bc New changeset 4b2fca8ad07b by Hynek Schlawack in branch '3.3': #15872: Fix shutil.rmtree error tests

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you, Hynek, for review and committing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15872 ___ ___

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you, Hynek, for review and committing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15872 ___ ___

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- Removed message: http://bugs.python.org/msg177269 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15872 ___

[issue15701] AttributeError from HTTPError when using digest auth

2012-12-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Even though 2.x is in security fix mode, this can be fixed by a overriding the base class's info method in the HTTPError class and returning the .hdrs attribute instead of .headers. -- Added file: http://bugs.python.org/file28273/Issue1571.patch

[issue15701] AttributeError from HTTPError when using digest auth

2012-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad1c1164f68b by Senthil Kumaran in branch 'default': Fix Issue15701 : add .headers attribute to urllib.error.HTTPError http://hg.python.org/cpython/rev/ad1c1164f68b -- nosy: +python-dev ___ Python

[issue16602] weakref can return an object with 0 refcount

2012-12-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: PyWeakref_GET_OBJECT is also potentially dangerous: since the refcount is not incremented, it's very possible that the GC collects it. The only safe operation after PyWeakref_GET_OBJECT is to Py_XINCREF the result. Should we provide a

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7ce8f4a70ccd by Hynek Schlawack in branch '3.2': #15872: More shutil test fixes for Windows http://hg.python.org/cpython/rev/7ce8f4a70ccd New changeset a05e2d4094ea by Hynek Schlawack in branch '3.3': #15872: More shutil test fixes for Windows

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

2012-12-10 Thread Robin Schreiber
Robin Schreiber added the comment: I have updated the patch to work again with the current version of the _datetimemodule. Regarding the suggestion of separating PEP3121 and PEP384. It might be true that datetime and other modules do not benefit directly from PEP 384, however it is still a

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28260/test_tarfile_test_extract_hardlink.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16645 ___

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Added file: http://bugs.python.org/file28275/test_tarfile_test_extract_hardlink.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16645 ___

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-12-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d953d47d634 by Hynek Schlawack in branch '3.2': #15872: Be flexible with appending *.* in shutil.rmtree test case http://hg.python.org/cpython/rev/2d953d47d634 New changeset edb747c6c479 by Hynek Schlawack in branch '3.3': #15872: Be flexible with

[issue16653] reference kept in f_locals prevents the tracing/profiling of a destructor

2012-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16653 ___ ___ Python-bugs-list mailing list

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread anatoly techtonik
New submission from anatoly techtonik: This critical bug is one of the reasons that non-English speaking communities doesn't adopt Python as broadly as it happens in English world compared to other technologies (PHP etc.). # -*- coding: utf-8 -*- import os os.mkdir(u'Русское имя')

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

2012-12-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 10.12.2012 11:39, Robin Schreiber wrote: Robin Schreiber added the comment: I have updated the patch to work again with the current version of the _datetimemodule. Please use _Py_ prefixes for private symbols you put in the header files, e.g.

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is reproduced on 3.x? -- nosy: +serhiy.storchaka type: - behavior versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- Removed message: http://bugs.python.org/msg177278 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is it reproduced on 3.x? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___ ___ Python-bugs-list

[issue16650] Popen._internal_poll() references errno.ECHILD outside of the local scope

2012-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16650 ___ ___ Python-bugs-list mailing list

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-10 Thread R. David Murray
R. David Murray added the comment: I'm personally OK with the option of removing the registry support (or making it optional-by-default), but I'm not going to make that call, we need a windows dev opinion. Maintaining the list of windows exceptions shouldn't be much worse than maintaining

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2012-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1748064 ___ ___ Python-bugs-list mailing

[issue16645] Wrong test_extract_hardlink() in test_tarfile.py

2012-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16645 ___ ___ Python-bugs-list mailing list

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread R. David Murray
R. David Murray added the comment: No. -- nosy: +r.david.murray resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16656 ___

[issue16647] LMTP.connect() loses socket error details

2012-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16647 ___ ___ Python-bugs-list mailing list

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread R. David Murray
R. David Murray added the comment: Oops, clicked submit too soon. It isn't likely to get fixed in 2.7, because 2.7's unicode support problems is the major reason python3 was developed. -- stage: - committed/rejected ___ Python tracker

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread R. David Murray
R. David Murray added the comment: For that matter, it isn't reproduced in python2.7, either: for r, dirs, files in os.walk(u'.'): ... print dirs ... [u'\u0420\u0443\u0441\u0441\u043a\u043e\u0435 \u0438\u043c\u044f'] [] -- resolution: out of date - invalid

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread Jeremy Kloth
Jeremy Kloth added the comment: The problem exhibited is not coming from the os.walk() implementation, but from the use of a byte-string as the argument to it. The directories are created with unicode literals and therefore the argument must also be a unicode literal (u'.') for them to be

[issue16656] os.walk ignores international dirs on Windows

2012-12-10 Thread R. David Murray
R. David Murray added the comment: Works for me without the u'.', too, though less usefully: for r, dirs, files in os.walk('.'): ... print dirs ... ['\xd0\xa0\xd1\x83\xd1\x81\xd1\x81\xd0\xba\xd0\xbe\xd0\xb5 \xd0\xb8\xd0\xbc\xd1\x8f'] Maybe that doesn't work on Windows, though. I am, of

[issue16631] tarfile.extractall() doesn't extract everything if .next() was used

2012-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16631 ___ ___ Python-bugs-list mailing list

[issue16632] Enable DEP and ASLR

2012-12-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16632 ___ ___ Python-bugs-list mailing list

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-10 Thread Dave Chambers
Dave Chambers added the comment: (I'm a windows dev type) I would say that there are 2 issues with relying on the registry: 1) Default values (ie. set by Windows upon OS install) are broken and MS never fixes them. 2) The values can be changed at any time, by any app. Thus the values are

[issue16657] traceback.format_tb incorrect docsting

2012-12-10 Thread Marius Gedminas
New submission from Marius Gedminas: The docstring for traceback.format_tb says A shorthand for 'format_list(extract_stack(f, limit)). which is incorrect -- it's actually a shorthand for format_list(extract_tb(tb, limit)). Patch attached. -- components: Library (Lib) files:

[issue15872] shutil.rmtree(..., ignore_errors=True) doesn't ignore all errors

2012-12-10 Thread Hynek Schlawack
Hynek Schlawack added the comment: “I wish I were wrangling inconsistent Windows buildbots.” Nobody. Ever. *sigh* It appears they are appeased now, so finally closing. Thanks for the patches everyone! -- resolution: - fixed stage: patch review - committed/rejected status: open -

[issue16632] Enable DEP and ASLR

2012-12-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: I don't think much caution is needed. If problems don't show up in the beta releases, we can still revert the change for 3.4.1. Christian, please go ahead and check this in. -- stage: test needed - commit review

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2012-12-10 Thread R. David Murray
R. David Murray added the comment: I would say Brian Curtin, Tim Golden, and/or Martin von Löwis, as they are the currently active committers with significant Windows expertise. Other committers may have opinions as well. If you don't get an answer here in a reasonable amount of time, please

[issue12915] Add inspect.locate and inspect.resolve

2012-12-10 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +patch nosy: +berker.peksag versions: +Python 3.4 -Python 3.3 Added file: http://bugs.python.org/file28277/issue12915.diff ___ Python tracker rep...@bugs.python.org

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-10 Thread Brett Cannon
Brett Cannon added the comment: So expat doesn't count as that literally wraps the expat library. Random also requires accessing the system randomization libraries to work properly so I don't think that is a candidate either. As for the compression libraries, those could be re-implemented,

[issue3073] Cookie.Morsel breaks in parsing cookie values with whitespace

2012-12-10 Thread Berker Peksag
Berker Peksag added the comment: The bug has been fixed in issue 8826. Related changeset: - http://hg.python.org/cpython/rev/cb231b79693e/ - Backport: http://hg.python.org/cpython/rev/84363c747c21 In Python 2.7.3: from Cookie import SimpleCookie cookies = SimpleCookie()

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-10 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/issue16651 ___

[issue16651] Find out what stdlib modules lack a pure Python implementation

2012-12-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: PyPy has a pure Python implementation of sqlite (using ctypes): https://bitbucket.org/pypy/pypy/src/default/lib_pypy/_sqlite3.py It most probably works on CPython as well. Does it belong to this list? -- nosy: +amaury.forgeotdarc

  1   2   >