python-sql 0.2 released

2013-09-18 Thread Cédric Krier
Hi, I'm glade to announce the new release of python-sql. python-sql is a library to write SQL queries in a pythonic way. In addition to bugfixes, this release contains those improvements: * Fix usage mixture between Div operator and function * Add array support in operators python-sql

ANN: SfePy 2013.3

2013-09-18 Thread Robert Cimrman
I am pleased to announce release 2013.3 of SfePy. Description --- SfePy (simple finite elements in Python) is a software for solving systems of coupled partial differential equations by the finite element method. The code is based on NumPy and SciPy packages. It is distributed under the

Re: Suds and Complex Sequences

2013-09-18 Thread dieter
Greg Lindstrom gslindst...@gmail.com writes: I am trying to use Suds, the very fine library allowing me to use SOAP, to query a service over the net. Part of the data structure defined be the WSDL calls for a sequence of SubscriberDataTypes (this application is used to test an insurance

Re: Simple security between prototype iPhone app and SimpleHTTPServer REST service?

2013-09-18 Thread dieter
Travis Griggs travisgri...@gmail.com writes: ... I found a example of how to add SSL to my python service (https://gist.github.com/ubershmekel/6194556). If I can figure out how to get the right keys embedded into my iPhone app (it's just on my phone, not anyone else's), is that enough? Or

Re: Having both if() and for() statements in one liner

2013-09-18 Thread Chris Angelico
On Wed, Sep 18, 2013 at 3:55 PM, Joshua Landau jos...@landau.ws wrote: range(person == simon and 5) +1 for the BOFH reference. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: *.csv to *.txt after adding columns

2013-09-18 Thread Peter Otten
Bryan Britten wrote: Hey, gang, I've got a problem here that I'm sure a handful of you will know how to solve. I've got about 6 *.csv files that I am trying to open; change the header names (to get rid of spaces); add two new columns, which are just the results of a string.split() command;

Re: *.csv to *.txt after adding columns

2013-09-18 Thread rusi
On Wednesday, September 18, 2013 7:12:21 AM UTC+5:30, Bryan Britten wrote: Hey, gang, I've got a problem here that I'm sure a handful of you will know how to solve. I've got about 6 *.csv files that I am trying to open; change the header names (to get rid of spaces); add two new columns,

Re: *.csv to *.txt after adding columns

2013-09-18 Thread Dave Angel
On 17/9/2013 22:28, Bryan Britten wrote: Dave - I can't print the output because there are close to 1,000,000 records. It would be extremely inefficient and resource intensive to look at every row. Not if you made a sample directory with about 3 files, each containing half a dozen lines.

Please use the Python Job Board for recruiting (was: Python Developers)

2013-09-18 Thread Ben Finney
Kelly Lurz kl...@meridiantechnologies.net writes: List Please do not use this discussion forum for job advertisements. Instead, please use the Python Job Board designed for this purpose URL:http://www.python.org/community/jobs/. -- \ “I don't know half of you half as well as I should

Remove \n, from tuple.

2013-09-18 Thread Venkat Addala
Hi all, I have a tuple in this format, which is retrived using MySQLdb, now i want to remove \n and extra spaces in this. 13L, 'ssDsC', 'CEs5s1, DsC', 'srylscetsmight\nghtscetylsse', '3', '3q25.1', 151531861L, 151546276L, '+', '1 kjafhkfhlad\fdfdsdf ghtscetylsse \ncontends the sctivity of dsfdk

Re: Remove \n, from tuple.

2013-09-18 Thread Dave Angel
On 18/9/2013 01:12, Venkat Addala wrote: Hi all, I have a tuple in this format, which is retrived using MySQLdb, now i want to remove \n and extra spaces in this. 13L, 'ssDsC', 'CEs5s1, DsC', 'srylscetsmight\nghtscetylsse', '3', '3q25.1', 151531861L, 151546276L, '+', '1 kjafhkfhlad\fdfdsdf

Re: Remove \n, from tuple.

2013-09-18 Thread Vlastimil Brom
2013/9/18 Venkat Addala venkat.bof...@gmail.com Hi all, I have a tuple in this format, which is retrived using MySQLdb, now i want to remove \n and extra spaces in this. 13L, 'ssDsC', 'CEs5s1, DsC', 'srylscetsmight\nghtscetylsse', '3', '3q25.1', 151531861L, 151546276L, '+', '1

Re: HID Feature Raport, Linux

2013-09-18 Thread Anssi Saari
Kasper Jepsen rap...@gmail.com writes: Hi, I have been using pywinusb.hid for a hid unit, using only feature reports. I like to get this code to run on raspbian PI, but i can not fint a good library to support HID/feature reports? I am a USB newbie Can anyone help me, or point me in a

Re: HID Feature Raport, Linux

2013-09-18 Thread Kasper Jepsen
Den onsdag den 18. september 2013 12.10.29 UTC+2 skrev Anssi Saari: Hi, I have been using pywinusb.hid for a hid unit, using only feature reports. I like to get this code to run on raspbian PI, but i can not fint a good library to support HID/feature reports? I am a USB

iterating over a file with two pointers

2013-09-18 Thread nikhil Pandey
hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that CERTAIN line till a few (say 20) lines later. so, basically i need two pointers to lines (one for outer loop(for each line in file)) and one for inner loop. How can i

Re: iterating over a file with two pointers

2013-09-18 Thread Chris Angelico
On Wed, Sep 18, 2013 at 9:12 PM, nikhil Pandey nikhilpande...@gmail.com wrote: hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that CERTAIN line till a few (say 20) lines later. so, basically i need two pointers to

Re: creating rectangle with qt-designer

2013-09-18 Thread MRAB
On 18/09/2013 04:41, Mohsen Pahlevanzadeh wrote: Dear all, I need to draw a rectangle , according to attached picture , you see a rectangle in a form that enclosed with a text: Rebuild Last Target. Question: How can i draw a same rectangle with qt-designer? That's a groupbox. In Qt it's

Re: iterating over a file with two pointers

2013-09-18 Thread Dave Angel
On 18/9/2013 07:21, Chris Angelico wrote: On Wed, Sep 18, 2013 at 9:12 PM, nikhil Pandey nikhilpande...@gmail.com wrote: hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that CERTAIN line till a few (say 20) lines

Re: iterating over a file with two pointers

2013-09-18 Thread Peter Otten
nikhil Pandey wrote: hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that CERTAIN line till a few (say 20) lines later. so, basically i need two pointers to lines (one for outer loop(for each line in file)) and one

Re: *.csv to *.txt after adding columns

2013-09-18 Thread Bryan Britten
Peter nailed it. Adding in the two lines of code to ensure I was just working with *.csv files fixed the problem. Thanks to everyone for the help and suggestions on best practices. -- https://mail.python.org/mailman/listinfo/python-list

Re: iterating over a file with two pointers

2013-09-18 Thread nikhil Pandey
On Wednesday, September 18, 2013 4:51:51 PM UTC+5:30, Chris Angelico wrote: On Wed, Sep 18, 2013 at 9:12 PM, nikhil Pandey nikhilpande...@gmail.com wrote: hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that

Re: iterating over a file with two pointers

2013-09-18 Thread nikhil Pandey
On Wednesday, September 18, 2013 5:14:10 PM UTC+5:30, Peter Otten wrote: nikhil Pandey wrote: hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that CERTAIN line till a few (say 20) lines later. so,

Re: scipy 11 and scipy 12

2013-09-18 Thread Oscar Benjamin
On 18 September 2013 03:48, Steven D'Aprano st...@pearwood.info wrote: On Tue, 17 Sep 2013 20:06:44 -0400, Susan Lubbers wrote: Our group is a python 2.7 which is installed in a shared area. We have scipy 11 installed in site-packages. How would I install scipy 12 so that I used the shared

Re: iterating over a file with two pointers

2013-09-18 Thread Peter Otten
nikhil Pandey wrote: On Wednesday, September 18, 2013 5:14:10 PM UTC+5:30, Peter Otten wrote: I want to iterate in the inner loop by reading each line till some condition is met.how can i do that. Thanks for this code. That's not what I had in mind when I asked you to describe your actual

Re: iterating over a file with two pointers

2013-09-18 Thread Roy Smith
On Wed, Sep 18, 2013 at 9:12 PM, nikhil Pandey nikhilpande...@gmail.com wrote: hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that CERTAIN line till a few (say 20) lines later. so, basically i need two

Re: iterating over a file with two pointers

2013-09-18 Thread Oscar Benjamin
On 18 September 2013 13:56, Roy Smith r...@panix.com wrote: On Wed, Sep 18, 2013 at 9:12 PM, nikhil Pandey nikhilpande...@gmail.com wrote: hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that CERTAIN line till a

Re: linregress and polyfit

2013-09-18 Thread chitturk
Thanks - that helps ... but it is puzzling because np.random.normal(0.0,1.0,1) returns exactly one and when I checked the length of z, I get 21 (as before) ... On Tuesday, September 17, 2013 9:34:39 PM UTC-5, Krishnan wrote: I created an xy pair y = slope*x + intercept then I

Re: iterating over a file with two pointers

2013-09-18 Thread Roy Smith
Dave Angel da...@davea.name wrote (and I agreed with): I'd suggest you open the file twice, and get two file objects. Then you can iterate over them independently. On Sep 18, 2013, at 9:09 AM, Oscar Benjamin wrote: There's no need to use OS resources by opening the file twice or to screw

Re: Please use the Python Job Board for recruiting (was: Python Developers)

2013-09-18 Thread Skip Montanaro
On Wed, Sep 18, 2013 at 2:57 AM, Ben Finney ben+pyt...@benfinney.id.au wrote: Kelly Lurz kl...@meridiantechnologies.net writes: List Please do not use this discussion forum for job advertisements. Instead, please use the Python Job Board designed for this purpose

Re: Language design

2013-09-18 Thread Neil Cerutti
On 2013-09-13, Chris Angelico ros...@gmail.com wrote: On Sat, Sep 14, 2013 at 5:32 AM, Terry Reedy tjre...@udel.edu wrote: Poetry, including that in English, often *is* concerned with formatting. Code is more like poetry than prose. You can take this paragraph of text, unwrap it, and then

Re: Language design

2013-09-18 Thread Chris Angelico
On Thu, Sep 19, 2013 at 12:57 AM, Neil Cerutti ne...@norwich.edu wrote: There's lots of poetry with significant indentation, though. Imbuing the shape of the text on the page with significance is a thing. And you can do that with C code, too. Doesn't mean that indentation is important to C; it

Re: Language design

2013-09-18 Thread Neil Cerutti
On 2013-09-18, Chris Angelico ros...@gmail.com wrote: On Thu, Sep 19, 2013 at 12:57 AM, Neil Cerutti ne...@norwich.edu wrote: There's lots of poetry with significant indentation, though. Imbuing the shape of the text on the page with significance is a thing. And you can do that with C code,

Re: Language design

2013-09-18 Thread Chris Angelico
On Thu, Sep 19, 2013 at 1:08 AM, Neil Cerutti ne...@norwich.edu wrote: On 2013-09-18, Chris Angelico ros...@gmail.com wrote: On Thu, Sep 19, 2013 at 12:57 AM, Neil Cerutti ne...@norwich.edu wrote: There's lots of poetry with significant indentation, though. Imbuing the shape of the text on the

Re: iterating over a file with two pointers

2013-09-18 Thread Travis Griggs
On Sep 18, 2013, at 5:07 AM, nikhil Pandey nikhilpande...@gmail.com wrote: On Wednesday, September 18, 2013 4:51:51 PM UTC+5:30, Chris Angelico wrote: On Wed, Sep 18, 2013 at 9:12 PM, nikhil Pandey nikhilpande...@gmail.com wrote: hi, I want to iterate over the lines of a file and when

Re: Language design

2013-09-18 Thread William Ray Wing
On Sep 18, 2013, at 11:12 AM, Chris Angelico ros...@gmail.com wrote: On Thu, Sep 19, 2013 at 1:08 AM, Neil Cerutti ne...@norwich.edu wrote: On 2013-09-18, Chris Angelico ros...@gmail.com wrote: On Thu, Sep 19, 2013 at 12:57 AM, Neil Cerutti ne...@norwich.edu wrote: There's lots of poetry with

Re: Language design

2013-09-18 Thread wxjmfauth
1and 0 0 'a'or 1 'a' 5if True else 999 5 jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Language design

2013-09-18 Thread Neil Cerutti
On 2013-09-18, wxjmfa...@gmail.com wxjmfa...@gmail.com wrote: 1and 0 0 'a'or 1 'a' 5if True else 999 5 Curse you, FSR! Oh, wait... -- Neil Cerutti -- https://mail.python.org/mailman/listinfo/python-list

lxml question -- creating an etree.Element attribute with ':' in the name

2013-09-18 Thread Roy Smith
I can create an Element with a 'foo' attribute by doing: etree.Element('my_node_name', foo=spam) But, how do I handle something like: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;, since xmlns:xsi isn't a valid python identifier? --- Roy Smith r...@panix.com --

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-18 Thread random832
On Fri, Sep 13, 2013, at 12:09, random...@fastmail.us wrote: Anyway, to match behavior found in other applications when pasting from the clipboard, I would suggest using: if s.contains('\0'): s = s[:s.index('\0')] Which will also remove non-null bytes after the first null (but if the

Re: lxml question -- creating an etree.Element attribute with ':' in the name

2013-09-18 Thread Zachary Ware
On Wed, Sep 18, 2013 at 1:59 PM, Roy Smith r...@panix.com wrote: I can create an Element with a 'foo' attribute by doing: etree.Element('my_node_name', foo=spam) But, how do I handle something like: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;, since xmlns:xsi isn't a valid python

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-18 Thread stephen . boulet
Thanks to everyone for their help. Using everyone's suggestions, this seems to work: import win32clipboard, win32con def getclipboard(): win32clipboard.OpenClipboard() s = win32clipboard.GetClipboardData(win32con.CF_UNICODETEXT) win32clipboard.CloseClipboard() if '\0' in s:

Re: lxml question -- creating an etree.Element attribute with ':' in the name

2013-09-18 Thread Burak Arslan
On 09/18/13 21:59, Roy Smith wrote: I can create an Element with a 'foo' attribute by doing: etree.Element('my_node_name', foo=spam) But, how do I handle something like: xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;, since xmlns:xsi isn't a valid python identifier? xmlns: is a

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-18 Thread MRAB
On 18/09/2013 20:28, stephen.bou...@gmail.com wrote: Thanks to everyone for their help. Using everyone's suggestions, this seems to work: import win32clipboard, win32con def getclipboard(): win32clipboard.OpenClipboard() s = win32clipboard.GetClipboardData(win32con.CF_UNICODETEXT)

Re: linregress and polyfit

2013-09-18 Thread Dave Angel
On 18/9/2013 09:38, chitt...@uah.edu wrote: Thanks - that helps ... but it is puzzling because np.random.normal(0.0,1.0,1) returns exactly one and when I checked the length of z, I get 21 (as before) ... I don't use Numpy, so this is just a guess, plus reading one web page. According

Re: Python GUI?

2013-09-18 Thread Michael Torrie
On 09/17/2013 10:19 AM, Benjamin Kaplan wrote: Sure. Every platform provides its own GUI library (Cocoa on Mac OS X, Win32 on Windows). Other programs that want to hook into yours, such as screen readers, are familiar with the platform's native GUI elements- it knows what a Win32 combo box is,

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-18 Thread Dave Angel
On 18/9/2013 15:40, MRAB wrote: On 18/09/2013 20:28, stephen.bou...@gmail.com wrote: Thanks to everyone for their help. Using everyone's suggestions, this seems to work: import win32clipboard, win32con def getclipboard(): win32clipboard.OpenClipboard() s =

Re: iterating over a file with two pointers

2013-09-18 Thread Dave Angel
On 18/9/2013 10:36, Roy Smith wrote: Dave Angel da...@davea.name wrote (and I agreed with): I'd suggest you open the file twice, and get two file objects. Then you can iterate over them independently. On Sep 18, 2013, at 9:09 AM, Oscar Benjamin wrote: There's no need to use OS resources

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-18 Thread Neil Hodgson
Dave Angel: So is the bug in Excel, in Windows, or in the Python library? Somebody is falling down on the job; if Windows defines the string as ending at the first null, then the Python interface should use that when defining the text defined with CF_UNICODETEXT. Everything is performing

Python with Delphi

2013-09-18 Thread Errol Anderson
Is there anyone out there who uses Python with Delphi, or knows someone who uses Python with Delphi or who used to use Python with Delphi? The latest version of Python for Delphi (P4D) works fine with Python 2.5 and Delphi 2007, but not for Python 2.7. Any assistance gratefully received.

Re: Stripping characters from windows clipboard with win32clipboard from excel

2013-09-18 Thread Dave Angel
On 18/9/2013 17:40, Neil Hodgson wrote: Dave Angel: So is the bug in Excel, in Windows, or in the Python library? Somebody is falling down on the job; if Windows defines the string as ending at the first null, then the Python interface should use that when defining the text defined with

Re: mutlifile inheritance problem

2013-09-18 Thread Peter Cacioppi
This is a very old topic, but here is a trick for single inheritance. (The problem you allude to isn't restricted to multiple inheritance). Any class with a single parent simply defines this function. def mySuper(self) : return super(self.__class__, self) And then any

Re: Tryign to send mail via a python script by using the local MTA

2013-09-18 Thread Dave Angel
On 18/9/2013 18:31, Dennis Lee Bieber wrote: On Tue, 17 Sep 2013 18:34:50 -0400, William Ray Wing w...@mac.com declaimed the following: I think you need to read up on some of the most basic fundamentals of tcp/ip networking, i.e., the basis of the global internet. EVERY network packet

Re: mutlifile inheritance problem

2013-09-18 Thread Peter Cacioppi
One more comment - my trick has some utility with multiple inheritance, but you really need to understand super() to and method resolution ordering in that case (as, I suppose, you ought to whenever you cross the Rubicon beyond single inheritance). So it's a nice trick but YMMV On Wednesday,

Re: mutlifile inheritance problem

2013-09-18 Thread Ned Batchelder
On 9/18/13 7:54 PM, Peter Cacioppi wrote: This is a very old topic, but here is a trick for single inheritance. (The problem you allude to isn't restricted to multiple inheritance). Any class with a single parent simply defines this function. def mySuper(self) : return

Re: mutlifile inheritance problem

2013-09-18 Thread Steven D'Aprano
On Wed, 18 Sep 2013 20:38:10 -0400, Ned Batchelder wrote: super() takes a class and an instance for a reason. If you could use self.__class__ for the class, then it would only take the instance. Super() needs to know the instance, but also needs to know the class it's being called from.

Re: iterating over a file with two pointers

2013-09-18 Thread Steven D'Aprano
On Wed, 18 Sep 2013 05:14:23 -0700, nikhil Pandey wrote: I want to iterate in the inner loop by reading each line till some condition is met.how can i do that. Thanks for this code. while not condition: read line Re-write using Python syntax, and you are done. -- Steven --

Re: scipy 11 and scipy 12

2013-09-18 Thread Steven D'Aprano
On Wed, 18 Sep 2013 13:28:44 +0100, Oscar Benjamin wrote: On 18 September 2013 03:48, Steven D'Aprano st...@pearwood.info wrote: On Tue, 17 Sep 2013 20:06:44 -0400, Susan Lubbers wrote: Our group is a python 2.7 which is installed in a shared area. We have scipy 11 installed in

Re: Python GUI?

2013-09-18 Thread llanitedave
On Friday, September 13, 2013 10:31:17 AM UTC-7, Eamonn Rea wrote: I don't like the idea of being able to drag and drop anything in the programming world. Outside of that, I use DD programs a lot. I got into GUI programming because I thought that I could get away from them, but I guess not.

Re: iterating over a file with two pointers

2013-09-18 Thread Steven D'Aprano
On Wed, 18 Sep 2013 04:12:05 -0700, nikhil Pandey wrote: hi, I want to iterate over the lines of a file and when i find certain lines, i need another loop starting from the next of that CERTAIN line till a few (say 20) lines later. so, basically i need two pointers to lines (one for outer

[issue19032] __reduce_ex__ on lock object

2013-09-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: This does not look like a bug to me. I think this should be closed. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19032 ___

[issue17761] platform._parse_release_file doesn't close the /etc/lsb-release file, doesn't know about 'Ubuntu'

2013-09-18 Thread Dmitry Shachnev
Changes by Dmitry Shachnev mity...@gmail.com: -- nosy: +mitya57 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17761 ___ ___ Python-bugs-list

[issue19038] Fix sort order in Misc/ACKS.

2013-09-18 Thread Georg Brandl
Georg Brandl added the comment: Well, it is customary for the patch submitter to make the diff. This makes it much easier for us to review. Closing for now; please note our suggestions and reopen/resubmit as a diff file if you feel like it. -- status: open - closed

[issue18855] Inconsistent README filenames

2013-09-18 Thread Georg Brandl
Georg Brandl added the comment: AFAIR renaming the lowercased versions might lead to trouble with hg on case-insensitive file systems. Anyone know if that's still the case? Otherwise README.txt is fine. Although, Windows users will then complain about the Unix-style line endings because the

[issue19038] Fix sort order in Misc/ACKS.

2013-09-18 Thread Tae-Wong SEO
Tae-Wong SEO added the comment: Your Gmail account tried to send spam for this account. Be careful with this message. Many people marked similar messages as spam. Open this bug and have someone made a diff file to fix sort order. -- ___ Python

[issue19032] __reduce_ex__ on lock object

2013-09-18 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19032 ___ ___ Python-bugs-list

[issue19039] sphinx search, result sorting

2013-09-18 Thread Georg Brandl
Georg Brandl added the comment: Searching in headings is implemented in Sphinx 1.2 (soon to be released). We'll switch to that version at least for 3.3 and 3.4 when it's out, so you will get the result for the heading there. The PyOS_snprintf will still be the first result, since results in

[issue19038] Fix sort order in Misc/ACKS.

2013-09-18 Thread Tae-Wong SEO
Tae-Wong SEO added the comment: New diff file to change Bozon's last name. -- keywords: +patch status: closed - pending Added file: http://bugs.python.org/file31807/ACKS.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19038

[issue19039] sphinx search, result sorting

2013-09-18 Thread Georg Brandl
Georg Brandl added the comment: Searching in headings is implemented in Sphinx 1.2 (soon to be released). We'll switch to that version at least for 3.3 and 3.4 when it's out, so you will get the result for the heading there. The PyOS_snprintf will still be the first result, since results in

[issue18997] Crash when using pickle and ElementTree

2013-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 111a74819192 by doko in branch '3.3': - followup for issue #18997, make _clear_joined_ptr static. http://hg.python.org/cpython/rev/111a74819192 New changeset 269be4aacb8e by doko in branch 'default': - followup for issue #18997, make

[issue4366] cannot find -lpythonX.X when building Python on FreeBSD with --enable-shared

2013-09-18 Thread koobs
koobs added the comment: Confirming identical failures on all branches: tip: /usr/bin/ld: cannot find -lpython3.4m 3.3: /usr/bin/ld: cannot find -lpython3.3m 3.2: /usr/bin/ld: cannot find -lpython3.2m 3.1: /usr/bin/ld: cannot find -lpython3.1 2.7: /usr/bin/ld: cannot find -lpython2.7 2.6:

[issue19038] Fix sort order in Misc/ACKS.

2013-09-18 Thread Dmi Baranov
Dmi Baranov added the comment: Guys, don't talk with bot - here is a summary [1] and his history of glory with patches to contributors lists [2]. Better way is cut-off this email from python.org services. [1] http://wiki.gbatemp.net/wiki/User:TaeWong [2]

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6396d1fc72da by R David Murray in branch '3.1': #14984: On POSIX, enforce permissions when reading default .netrc. http://hg.python.org/cpython/rev/6396d1fc72da New changeset 0d9e471221da by R David Murray in branch '3.2': Merge #14984: On POSIX,

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-18 Thread R. David Murray
R. David Murray added the comment: Thanks, Benjamin. And Thank you, Bruno. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14984

[issue4366] cannot find -lpythonX.X when building Python on FreeBSD with --enable-shared

2013-09-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why special-case FreeBSD in the patch? Shouldn't this be done for nearly all Unix systems? (or, at the very least or BSD-likes)? -- components: +Library (Lib) nosy: +pitrou stage: - patch review versions: -Python 2.6, Python 3.1, Python 3.2

[issue19037] mailbox module modifies maildir file times after moving from tmp directory

2013-09-18 Thread R. David Murray
R. David Murray added the comment: Janzert: Thanks for the patch. A contributor agreement is not needed for this patch, since it just moves code around, but you might want to submit one in case you make any other contributions. Also let us know what name to use in the Misc/ACKS file.

[issue19037] mailbox module modifies maildir file times after moving from tmp directory

2013-09-18 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19037 ___

[issue19037] mailbox module modifies maildir file times after moving from tmp directory

2013-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68e5e416e8af by R David Murray in branch '3.3': #19037: adjust file times *before* moving maildir files into place. http://hg.python.org/cpython/rev/68e5e416e8af New changeset 041caa64486b by R David Murray in branch '2.7': #19037: adjust file

[issue4366] cannot find -lpythonX.X when building Python on FreeBSD with --enable-shared

2013-09-18 Thread koobs
koobs added the comment: Concur, and then also, why special case linux, gnu and sunos? The comment is: # Python's library directory [[must]] be appended to library_dirs (emphasis mine) Is the real question then in what cases should the library path NOT be added? ? I also note Christian

[issue14984] netrc module allows read of non-secured .netrc file

2013-09-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb3ad8a749c8 by R David Murray in branch '2.6': #14984: only import pwd on POSIX. http://hg.python.org/cpython/rev/fb3ad8a749c8 New changeset 88e62c43e443 by R David Murray in branch '2.7': Merge #14984: only import pwd on POSIX.

[issue19038] Fix sort order in Misc/ACKS.

2013-09-18 Thread Tae-Wong SEO
Tae-Wong SEO added the comment: The first link is a GBAtemp page. The second link is a search. You want to apply this patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19038 ___

[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.

2013-09-18 Thread Bastien Montagne
Bastien Montagne added the comment: Hi, Decided to give it a try and implement suggested Py_SetStandardStreamEncoding, see attached patch. A quick test with Blender under Linux (with an ASCII console) seems to work OK, unfortunatly I do not have Windows to test it where it really matters...

[issue19038] Fix sort order in Misc/ACKS.

2013-09-18 Thread Tae-Wong SEO
Tae-Wong SEO added the comment: Let's restore status and resolution without rejecting. You want to apply this. -- resolution: rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19038

[issue19038] Fix sort order in Misc/ACKS.

2013-09-18 Thread Georg Brandl
Georg Brandl added the comment: Let's try a plain rejection first. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19038 ___

[issue19038] Fix sort order in Misc/ACKS.

2013-09-18 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19038 ___

[issue19037] mailbox module modifies maildir file times after moving from tmp directory

2013-09-18 Thread janzert
janzert added the comment: Thanks for committing the fix. Figured I should finally get it done and signed the online CLA when I submitted this issue. I assume it just takes a while for someone to go through and apply the appropriate flag? This change seems rather insubstantial for an ACKS

[issue18918] help('FILES') finds no documentation

2013-09-18 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hello. The 'File objects' section was removed in Python 3, with this issue http://bugs.python.org/issue7508, but not the topic from pydoc.py. As I understand, there is no point in having this, because there isn't a `file` type anymore. The attached patched

[issue19019] Investigate using Apple clang for building OS X installers

2013-09-18 Thread Skip Montanaro
Skip Montanaro added the comment: If you find it difficult to find people with 10.6 systems to build a Python dmg for that platform, give me a shout. I'm not planning on replacing my system anytime soon. I have 10.6.8 installed, and what I believe to be the last Xcode version to support it,

[issue19019] Investigate using Apple clang for building OS X installers

2013-09-18 Thread Ned Deily
Ned Deily added the comment: Thanks, Skip. At the moment, finding platforms for building and testing is not a problem: I have at hand running versions of the latest releases for 10.3 onwards. :) (Buildbots for automated testing are another issue, though. We have a critical need for buildbots

[issue19019] Investigate using Apple clang for building OS X installers

2013-09-18 Thread Skip Montanaro
Skip Montanaro added the comment: I guess snakebite (http://www.snakebite.net/) never materialized? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19019 ___

[issue19019] Investigate using Apple clang for building OS X installers

2013-09-18 Thread Ned Deily
Ned Deily added the comment: Snakebite did provide some additional OS X buildbots for a while but, AFAIK, they have been offline for some months now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19019

[issue19019] Investigate using Apple clang for building OS X installers

2013-09-18 Thread R. David Murray
R. David Murray added the comment: Snakebite is live, and python committers can get shell access on the bots, as originally planned. Some of the bots are offline, but most are running. I don't see any OS X servers in the list, though, unless Antoine deleted them (but there are several other

[issue18790] incorrect text in argparse add_help example

2013-09-18 Thread Berker Peksag
Berker Peksag added the comment: This was reported a couple of times before on the docs list. - https://mail.python.org/pipermail/docs/2013-April/015145.html - https://mail.python.org/pipermail/docs/2013-June/015016.html - https://mail.python.org/pipermail/docs/2013-September/015505.html

[issue16512] imghdr doesn't support jpegs with an ICC profile

2013-09-18 Thread intgr
intgr added the comment: I vote we forget about JFIF/Exif headers and only use \xff\xd8 to identify the file. They are optional and there are tons of files out in the wild without such headers, for example:

[issue16878] argparse: positional args with nargs='*' defaults to []

2013-09-18 Thread paul j3
paul j3 added the comment: On a related point, the 'action.required' value is set differently for '?' and '*' positionals. if kwargs.get('nargs') not in [OPTIONAL, ZERO_OR_MORE]: kwargs['required'] = True if kwargs.get('nargs') == ZERO_OR_MORE and 'default' not in kwargs:

[issue19043] Remove detailed listing of all versions from LICENSE, Doc/license.rst

2013-09-18 Thread Georg Brandl
New submission from Georg Brandl: As discussed on python-dev. -- assignee: docs@python components: Documentation files: license_fixup_33.patch keywords: patch messages: 198036 nosy: docs@python, georg.brandl priority: normal severity: normal status: open title: Remove detailed listing

[issue19043] Remove detailed listing of all versions from LICENSE, Doc/license.rst

2013-09-18 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: Added file: http://bugs.python.org/file31811/license_fixup_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19043 ___

[issue4366] cannot find -lpythonX.X when building Python on FreeBSD with --enable-shared

2013-09-18 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/issue4366 ___

[issue19030] inspect.getmembers and inspect.classify_class_attrs mishandle descriptors

2013-09-18 Thread Ethan Furman
Ethan Furman added the comment: Okay, some slight reorganizing. Current patch gives preferential treatment to getattr, falling back on dict lookup if getattr raises an exception or if the resulting object's class is not found in the mro (including the metaclass mro). Amazingly, nothing

[issue19043] Remove detailed listing of all versions from LICENSE, Doc/license.rst

2013-09-18 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19043 ___ ___ Python-bugs-list mailing

[issue11708] argparse: suggestion for formatting optional positional args

2013-09-18 Thread paul j3
paul j3 added the comment: This is a HelpFormatter function that takes a list of formatted actions, and groups contiguous blocks of optional positional actions. It accounts for optionals (via prefix_chars) and mutually exclusive groups. Since it assumes 'parts' is a list, rather than string,

  1   2   >