[ANN]: 'tren' Cross-Platform Batch Renaming Tool, Version 1.217 Released And Available

2010-04-24 Thread Tim Daneliuk
'tren' Version 1.217 is now released and available for download at: http://www.tundraware.com/Software/tren - What's New In This Release? --- This is the initial public release. What Is

Re: NotImplemented used in Decimal

2010-04-24 Thread Steven D'Aprano
On Sat, 24 Apr 2010 09:05:14 +0530, Kushal Kumaran wrote: On Sat, Apr 24, 2010 at 8:54 AM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I'm reading the source code for decimal.Decimal, and I see that the arithmetic operations (__add__, __sub__, etc.) start with code like this:

Re: NotImplemented used in Decimal

2010-04-24 Thread Chris Rebert
On Fri, Apr 23, 2010 at 11:25 PM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Sat, 24 Apr 2010 09:05:14 +0530, Kushal Kumaran wrote: On Sat, Apr 24, 2010 at 8:54 AM, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I'm reading the source code for decimal.Decimal,

Re: when should I explicitly close a file?

2010-04-24 Thread Alf P. Steinbach
* Steven D'Aprano: On Fri, 23 Apr 2010 13:19:41 +0200, Alf P. Steinbach wrote: But for a literal context-free interpretation e.g. the 'sys.getrefcount' function is not documented as CPython only and thus an implementation that didn't do reference counting would not be a conforming Python

Re: DLLs loading in interpreter but not with direct run on Windows

2010-04-24 Thread Michel Claveau - MVP
Hi! AMHA (IMO), it is PyQT4 who change the DLL loader... @+ -- MCI -- http://mail.python.org/mailman/listinfo/python-list

Re: socked and bytes operation

2010-04-24 Thread luca72
i attach some part of the server so maybe you can help me to understand : Packet description (before encryption) Messages sent back and forth between newcamd and a cardserver always consist of a three byte header and (optional) data bytes. The header always starts with a command tag byte. This

Re: NotImplemented used in Decimal

2010-04-24 Thread Steven D'Aprano
On Fri, 23 Apr 2010 23:51:39 -0700, Chris Rebert wrote: If the conversion to Decimal in _convert_other() fails, the operator method returns NotImplemented to signal to the interpreter that Decimal doesn't know how to do the requested operation with an operand of the given type; the

NameError: how to get the name?

2010-04-24 Thread Yingjie Lan
I wanted to do something like this: while True: try: def fun(a, b=b, c=c): pass except NameError as ne: name = get_the_var_name(ne) locals()[name] = '' else: break What's be best way to implement the function get_the_var_name(ne) that returns the name of the variable that

MySQLdb - weird formatting inconsistency

2010-04-24 Thread Anthra Norell
Hi all, Can anyone explain this? Three commands with three different cutoff dates (12/30, 12/31 and 1/1) produce a formatting inconsistency. Examine the third field. The first and last run represents it correctly. The second run strips it. The field happens to be a record ID and getting it

Re: NameError: how to get the name?

2010-04-24 Thread James Mills
On Sat, Apr 24, 2010 at 9:19 PM, Yingjie Lan lany...@yahoo.com wrote: I wanted to do something like this: while True:  try:    def fun(a, b=b, c=c): pass  except NameError as ne:    name = get_the_var_name(ne)    locals()[name] = ''  else: break What's be best way to implement the

Re: NameError: how to get the name?

2010-04-24 Thread Steven D'Aprano
On Sat, 24 Apr 2010 04:19:43 -0700, Yingjie Lan wrote: I wanted to do something like this: while True: try: def fun(a, b=b, c=c): pass except NameError as ne: name = get_the_var_name(ne) locals()[name] = '' else: break This won't work. Writing to locals() does not

Re: On Class namespaces, calling methods

2010-04-24 Thread Lie Ryan
On 04/24/10 06:07, Aahz wrote: In article 4bc120bd$0$8850$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I can only think of two circumstances where old-style classes are *wrong*: if you use multiple inheritance with a diamond diagram (...now you

Re: ctypes: delay conversion from c_char_p to string

2010-04-24 Thread Thomas Heller
Brendan Miller schrieb: I have a function exposed through ctypes that returns a c_char_p. Since I need to deallocate that c_char_p, it's inconvenient that ctypes copies the c_char_p into a string instead of giving me the raw pointer. I believe this will cause a memory leak, unless ctypes is

Re: Cross-platform way to retrieve the current (Operative system) DNS server IP address in python

2010-04-24 Thread DarkBlue
On Apr 22, 4:55 pm, joamag joa...@gmail.com wrote: Does anybody know a cross platform way to retrieve the default DNS server IP address in python ? Thanks ! João import os,urllib2,re def getIpAddr(): Function for parsing external ip adress by pinging dyndns.com

Re: NameError: how to get the name?

2010-04-24 Thread Yingjie Lan
--- On Sat, 4/24/10, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: From: Steven D'Aprano st...@remove-this-cybersource.com.au Subject: Re: NameError: how to get the name? To: python-list@python.org Date: Saturday, April 24, 2010, 4:07 PM On Sat, 24 Apr 2010 04:19:43 -0700,

Re: NameError: how to get the name?

2010-04-24 Thread Yingjie Lan
--- On Sat, 4/24/10, James Mills prolo...@shortcircuit.net.au wrote: From: James Mills prolo...@shortcircuit.net.au Subject: Re: NameError: how to get the name? To: Yingjie Lan lany...@yahoo.com Cc: python list python-list@python.org Date: Saturday, April 24, 2010, 4:03 PM On Sat, Apr 24,

Reminder: 6 days left for EuroPython 2010 talk submissions

2010-04-24 Thread Alex Willmer
The EuroPython 2010 call for papers closes this Friday on 30th April. We've already had many submissions covering Python 3, Python 2.7, IronPython, Game Programming, Testing, Behavior Driven Development, NoSQL, Accessiblilty and others. We still are looking for talks and tutorials on Django,

Re: NameError: how to get the name?

2010-04-24 Thread Gary Herron
Yingjie Lan wrote: --- On Sat, 4/24/10, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: From: Steven D'Aprano st...@remove-this-cybersource.com.au Subject: Re: NameError: how to get the name? To: python-list@python.org Date: Saturday, April 24, 2010, 4:07 PM On Sat, 24 Apr 2010

Re: DLLs loading in interpreter but not with direct run on Windows

2010-04-24 Thread TerryP
On Apr 23, 4:47 pm, JTimoty jtim...@gmail.com wrote: Hi, I've got a weird problem, apparently related to the way python searches for DLLs on Windows. I compiled PyQt4 (no errors) but scripts that use it fail with DLL load failed: Invalid access to memory location. If I play with loading

Abstract attributes

2010-04-24 Thread Raymond Wynne
I was coding a simple abstract class for a database interface for a library I am writing. However, it occurred to me that you can't ask for a simple abstract attribute, an attribute that is required for the class. Now, that could be implemented as a property, but a getter that merely returns an

Re: MySQLdb - weird formatting inconsistency

2010-04-24 Thread Sebastian Bassi
Hi, Could you post a minimal version of the DB (a DB dump) to test it? Just remove most information and leave on the ones needed to reproduce the error. Also remove any personal/confidential information. Then dump the DB so I can test it here. Best, SB. --

Re: MySQLdb - weird formatting inconsistency

2010-04-24 Thread John Nagle
Anthra Norell wrote: Hi all, Can anyone explain this? Three commands with three different cutoff dates (12/30, 12/31 and 1/1) produce a formatting inconsistency. Examine the third field. The first and last run represents it correctly. The second run strips it. The field happens to be a

help require debugging C/C++ extension modules written for Python (ubuntu)

2010-04-24 Thread michel parker
Hi, Can you please guide me in selecting a tool (ide) that would debug python and C/C++ extension modules written for Python at a same time? Regards,Michell _ Hotmail: Powerful Free email

Re: MySQLdb - weird formatting inconsistency

2010-04-24 Thread Anthra Norell
Anthra Norell wrote: Sebastian Bassi wrote: Hi, Could you post a minimal version of the DB (a DB dump) to test it? Just remove most information and leave on the ones needed to reproduce the error. Also remove any personal/confidential information. Then dump the DB so I can test it here. Best,

Wanted: Python solution for ordering dependencies

2010-04-24 Thread Jonathan Fine
Hi I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I think I could get what I want by writing and running a suitable makefile, but

Re: Wanted: Python solution for ordering dependencies

2010-04-24 Thread Chris Rebert
On Sat, Apr 24, 2010 at 1:53 PM, Jonathan Fine jf...@pytex.org wrote: Hi I'm hoping to avoid reinventing a wheel (or other rolling device).  I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it is processed. I think I

Re: NameError: how to get the name?

2010-04-24 Thread Yingjie Lan
--- On Sat, 4/24/10, Gary Herron gher...@islandtraining.com wrote: From: Gary Herron gher...@islandtraining.com Subject: Re: NameError: how to get the name? To: Cc: python-list@python.org Date: Saturday, April 24, 2010, 8:03 PM Yingjie Lan wrote: --- On Sat, 4/24/10, Steven D'Aprano

Re: NameError: how to get the name?

2010-04-24 Thread Chris Rebert
On Sat, Apr 24, 2010 at 4:17 PM, Yingjie Lan lany...@yahoo.com wrote: --- On Sat, 4/24/10, Gary Herron gher...@islandtraining.com wrote: From: Gary Herron gher...@islandtraining.com Date: Saturday, April 24, 2010, 8:03 PM Yingjie Lan wrote: --- On Sat, 4/24/10, Steven D'Aprano

Re: [Python3] Reading a binary file and wrtiting the bytes verbatim in an utf-8 file

2010-04-24 Thread Antoine Pitrou
Hello, I have to read the contents of a binary file (a PNG file exactly), and dump it into an RTF file. The RTF-file has been opened with codecs.open in utf-8 mode. You should use the built-in open() function. codecs.open() is outdated in Python 3. As I expected, the utf-8 decoder

Re: On Class namespaces, calling methods

2010-04-24 Thread Aahz
In article 4bd2e20...@dnews.tpgi.com.au, Lie Ryan lie.1...@gmail.com wrote: On 04/24/10 06:07, Aahz wrote: In article 4bc120bd$0$8850$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: I can only think of two circumstances where old-style classes are

Re: Wanted: Python solution for ordering dependencies

2010-04-24 Thread Aahz
In article u_idnaxonvb9x07wnz2dnuvz8kmdn...@brightview.co.uk, Jonathan Fine jf...@pytex.org wrote: I'm hoping to avoid reinventing a wheel (or other rolling device). I've got a number of dependencies and, if possible, I want to order them so that each item has its dependencies met before it

py2exe breaking wxPython?

2010-04-24 Thread Alex Hall
Hello all, I have a compiled version of my project, but the wx functions do not work. When run from the python source, instead of the compiled .exe file, wx works as expected. I am including msvcr90.dll in the dist folder. I looked for answers on Google, but I could not really follow the tutorials

Re: py2exe breaking wxPython?

2010-04-24 Thread John Bokma
Alex Hall mehg...@gmail.com writes: Hello all, I have a compiled version of my project, but the wx functions do not work. When run from the python source, instead of the compiled .exe file, wx works as expected. I am including msvcr90.dll in the dist folder. I looked for answers on Google,

question about google project hosting!

2010-04-24 Thread zhengqing
Hi, is there any one know some python libraries to check if there is a new download for a google project hosting project? or are there any API which has such kind of function? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: question about google project hosting!

2010-04-24 Thread Chris Rebert
On Sat, Apr 24, 2010 at 9:11 PM, zhengqing zhengqing...@gmail.com wrote:    is there any one know some python libraries to check if there is a new download for a google project hosting project?    or are there any API which has such kind of function? You could use the Universal Feed Parser

exceptions from daemon threads which access the global namespace at interpreter shutdown (how to squelch output?)

2010-04-24 Thread Ben Cohen
I've got an application which makes fairly heavy use of daemon threads to perform 'background' processing and various other long-running tasks that are likely to block. My original understanding of threading.Thread's daemon threads was that I could safely fire them off and essentially forget

☆☉☉☆ Barely Legal Babes - Free downloads! V ideos Images, Barely Legal young teens

2010-04-24 Thread Custhelp
☆☉☉☆ Barely Legal Babes - Free downloads! Videos Images, Barely Legal young teens http://liquid-cash.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: NameError: how to get the name?

2010-04-24 Thread Yingjie Lan
--- On Sun, 4/25/10, Chris Rebert c...@rebertia.com wrote: From: Chris Rebert c...@rebertia.com Subject: Re: NameError: how to get the name? To: Yingjie Lan lany...@yahoo.com Cc: python-list@python.org Date: Sunday, April 25, 2010, 3:27 AM On Sat, Apr 24, 2010 at 4:17 PM, Yingjie Lan

Re: [Python3] Reading a binary file and wrtiting the bytes verbatim in an utf-8 file

2010-04-24 Thread Stefan Behnel
Antoine Pitrou, 25.04.2010 02:16: Another possibility is to open the file in binary mode and do the encoding yourself when writing text. This might actually be a better solution, since I'm not sure RTF uses utf-8 by default. That's a lot cleaner as it doesn't use two interfaces to write to the

[issue8516] Speed difference between Python 2.5 and 2.6 during filling bsddb database.

2010-04-24 Thread Peter Landgren
New submission from Peter Landgren peter.tal...@telia.com: The time it takes, in the application Gramps, to fill an empty bsddb database by importing an XML backup or a GECDOM file, incrises from about 2 minutes to about an hour in Windows XP ana Windows 7. No such degradation has been sen in

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: New submission from STINNER Victor victor.stin...@haypocalc.com: Python3 uses unicode filenames in Windows and bytes filenames (but support also unicode filenames) on other OS. We have to support both types. On

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti priority: - normal stage: - patch review type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8514

[issue8516] Speed difference between Python 2.5 and 2.6 during filling bsddb database.

2010-04-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +jcea priority: - normal stage: - unit test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8516 ___

[issue7507] pipes.quote does not correctly escape !

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r80433. -- assignee: r.david.murray - georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7507

[issue7384] curses crash on FreeBSD

2010-04-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I included the test for libtinfo in the latest patch. The patch is tested on Fedora and correctly links the curses module with -lncursesw. This means that the ldd method works on all buildbots, OpenBSD, OpenSolaris and Fedora.

[issue7384] curses crash on FreeBSD

2010-04-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I'm not against sorting things out in configure.in, but I'm not quite sure that it will be more portable than ldd: On FreeBSD (the problem system!) I can't get this to work: [ste...@freebsd-i386 ~]$ echo 'int main() { readline(); }'

[issue8498] Cannot use backlog = 0 for sockets

2010-04-24 Thread Daniel Evers
Daniel Evers derm...@googlemail.com added the comment: I attached a patch: The backlog is set to at least 0 instead of 1. I also added a comment that a backlog 0 can lead to problems and doesn't make sense anyway (so if there are systems that may crash with backlog 0 this will be avoided).

[issue8498] Cannot use backlog = 0 for sockets

2010-04-24 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: It looks like you forgot to update the function's documentation ;-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8498 ___

[issue7384] curses crash on FreeBSD

2010-04-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Sigh. xxx.c == test_readline.c in the previous comment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7384 ___

[issue8498] Cannot use backlog = 0 for sockets

2010-04-24 Thread Daniel Evers
Daniel Evers derm...@googlemail.com added the comment: Ah right ;) Sorry, attached the path incl. the doc string. -- Added file: http://bugs.python.org/file17066/backlog0_incl_doc.diff ___ Python tracker rep...@bugs.python.org

[issue8498] Cannot use backlog = 0 for sockets

2010-04-24 Thread Daniel Evers
Daniel Evers derm...@googlemail.com added the comment: A second patch for the documentation of socket.listen(). -- Added file: http://bugs.python.org/file17067/socket_listen.patch ___ Python tracker rep...@bugs.python.org

[issue8517] Apple Style Guide link is broken in the Documenting Python chapter

2010-04-24 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: On this page, the Style Guide for people who want to try contributing to the Python documentation: docs.python.org/documenting/style.html there is a broken link to the Apple Style Guide. The 2008 edition now seems gone and

[issue2823] Report bug links

2010-04-24 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I am just curious what convinced you to change the -2 opinion after two years with r80388? Reopening to change resolution status. -- status: closed - open versions: +Python 2.7 ___ Python

[issue8517] Apple Style Guide link is broken in the Documenting Python chapter

2010-04-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8517 ___ ___ Python-bugs-list

[issue8490] asyncore test suite

2010-04-24 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Builbots are all ok except Solaris which makes me think that maybe asyncore is broken on such platform: http://python.org/dev/buildbot/builders/sparc%20solaris10%20gcc%20trunk/builds/728/steps/test/logs/stdio I've tried to adjust the tests

[issue2823] Report bug links

2010-04-24 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Please also add a link to issue3341 as a Superceder. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2823 ___

[issue3341] Suggest a change link

2010-04-24 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I am glad there is some response to this issue in r80388 -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3341

[issue3341] Suggest a change link

2010-04-24 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3341 ___ ___ Python-bugs-list

[issue2823] Report bug links

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: These links just go to the same page as the link on the front page. It's not a link to the tracker, or a form to report a bug in the documented module. -- status: open - closed ___ Python tracker

[issue8517] Apple Style Guide link is broken in the Documenting Python chapter

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This was already fixed in r80150, but not backported; I've done so now in r80438 ff. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue3341] Suggest a change link

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'm closing this again; I can see that nobody will implement this for Python if it's not available in Sphinx, and also I don't think it would be a good idea to do so. -- ___ Python tracker

[issue6091] Curses segfaulting in FreeBSD/amd64

2010-04-24 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Can you check if the latest patch for issue 7384 fixes the problem? The patch is against py3k, but it comes down to this: 1) Build the readline module _only_ with -lreadline (instead of -lreadline -lncursesw) 2) Build the

[issue2823] Report bug links

2010-04-24 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: rejected - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2823 ___ ___

[issue2823] Report bug links

2010-04-24 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Still the part Report bug on this page is covered. Please, add a link to Superceder. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2823

[issue8516] Speed difference between Python 2.5 and 2.6 during filling bsddb database.

2010-04-24 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Please, install Berkeley DB 4.6.X in linux and reinstall bsddb3 to use it, instead of BDB 4.7. Would be a good idea to install pybsddb 4.7.3, too, to mimic Windows environment under linux closely. After doing this, and verifying that linux

[issue2823] Report bug links

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: As you wish. -- superseder: - Suggest a change link ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2823 ___

[issue3341] Suggest a change link

2010-04-24 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Georg, if you are not going to implement it, it doesn't mean nobody will do this. In Sphinx or through disqus. I do not see the reason to close this feature request. Also I do not understand arguments like: Yes, this is under

[issue8516] Speed difference between Python 2.5 and 2.6 during filling bsddb database.

2010-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- assignee: - jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8516 ___ ___ Python-bugs-list mailing

[issue3341] Suggest a change link

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I haven't changed my mind. The it would not be a good idea to do so refers to implementing this for Python exclusively. Of course, if you volunteer to do so, I won't stop you :) Otherwise, please trust my judgement that this issue will do

[issue8481] doc: ctypes no need to explicitly allocate writable memory with Structure

2010-04-24 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - theller nosy: +theller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8481 ___

[issue8516] Speed difference between Python 2.5 and 2.6 during filling bsddb database.

2010-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +guy.linton ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8516 ___ ___ Python-bugs-list mailing

[issue8518] small typo in http://docs.python.org/howto/doanddont.html

2010-04-24 Thread Adrián Deccico
New submission from Adrián Deccico decc...@gmail.com: Hi, in this document: Idioms and Anti-Idioms in Python In the except section, where it says: The example above is better written it should said: The example below is better written -- assignee: georg.brandl components:

[issue8518] small typo in http://docs.python.org/howto/doanddont.html

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The text is correct as-is; the meaning is The example that is shown above is better written like this:. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8514] Create fs_encode() and fs_decode() functions in os.path

2010-04-24 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/issue8514 ___

[issue8513] subprocess: support bytes program name

2010-04-24 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/issue8513 ___

[issue5583] Optional extensions in setup.py

2010-04-24 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Warning: reverted in trunk, now leaves in distutils2 -- components: +Distutils2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5583 ___

[issue8519] [patch] doc: termios and ioctl reference links

2010-04-24 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: The patch adds link to reference with various flags for termios functions and fcntl.ioctl call. -- assignee: georg.brandl components: Documentation files: .reference-termios-specification-for-flags.diff keywords: patch

[issue8519] [patch] doc: termios and ioctl reference links

2010-04-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Note that there can be any whitespace in reST markup, e.g. you can put a newline betweeen “`thing” and “link`_”, thus avoiding too long lines. I think you can put a newline in a “link” too, they will be removed. Regards -- nosy:

[issue8519] [patch] doc: termios and ioctl reference links

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: The POSIX reference is OK; I'm hesitant to put a Linux-specific reference in though. Also, ioctls are not limited to tty operations. IMO a :manpage:`ioctl(2)` would suffice. -- ___ Python tracker

[issue7838] Undocumented subprocess functions on Windows

2010-04-24 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Fixed with r80439-r80442. -- assignee: georg.brandl - brian.curtin components: +Extension Modules -Documentation resolution: - fixed stage: patch review - committed/rejected status: open - closed ___

[issue8519] [patch] doc: termios and ioctl reference links

2010-04-24 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Éric, thanks, attached reStructured patch. Georg, ioctl(2) is useless, because it doesn't contain the information people need in addition to Python manual, i.e. various examples (like how to get console size) and constants (like

[issue8518] small typo in http://docs.python.org/howto/doanddont.html

2010-04-24 Thread Adrián Deccico
Adrián Deccico decc...@gmail.com added the comment: Hi Georg, Ok, so perhaps the text is a little confusing. Perhaps it would be a good idea to add a colon or as you state the words like this thanks On Sat, Apr 24, 2010 at 4:35 PM, Georg Brandl rep...@bugs.python.org wrote: Georg Brandl

[issue8519] [patch] doc: termios and ioctl reference links

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: ioctl(2) usually has see also entries that list the available ioctls, such as ioctl_list on linux. If you want to link to examples like getting console size, the manpage isn't very helpful either, since you have to figure out how exactly to

[issue8518] small typo in http://docs.python.org/howto/doanddont.html

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I'll let an English native speaker decide how to best express this. -- assignee: georg.brandl - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue8520] test doc issue

2010-04-24 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: Testing delivery of tracker messages, and autonosy for docs issues. -- assignee: d...@python components: Documentation messages: 104102 nosy: d...@python, georg.brandl severity: normal status: open title: test doc issue versions: Python

[issue8520] test doc issue

2010-04-24 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, works. -- assignee: d...@python - nosy: -d...@python resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8520

[issue8505] 2to3 fix_future.py removes __future__ imports, but should it?

2010-04-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think the unnecessary removal of __future__ imports but consistent with the idea that Python 3 is a new start, a blank sheet, and we don’t mention every novelty since previous versions. -- nosy: +merwok

[issue8505] 2to3 fix_future.py removes __future__ imports, but should it?

2010-04-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: s/but/is/ -- title: 2to3 fix_future.py removes __future__ imports, but should it? - 2to3 fix_future.py removes __future__ imports, but should it? ___ Python tracker rep...@bugs.python.org

[issue8519] [patch] doc: termios and ioctl reference links

2010-04-24 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I do not mind if you include a better link with ioctl constants explained or have ideas for examples. I hope you agree the ioctl(2) man page contains much less useful information than

[issue8521] Allow some winreg functions to accept keyword arguments

2010-04-24 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- assignee: brian.curtin components: Extension Modules, Windows nosy: brian.curtin priority: normal severity: normal stage: needs patch status: open title: Allow some winreg functions to accept keyword arguments type: feature request versions:

[issue5774] _winreg.OpenKey() is documented with keyword arguments, but doesn't take them

2010-04-24 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I changed the documentation to reflect that OpenKey, CreateKeyEx, and DeleteKeyEx (latter two are 2.7/3.2 only) do not take keyword arguments, but they have default values. Done in r80445-r80448. I created a feature request in #8521 to implement

[issue8509] fix autoconf quoting in help strings and code snippets

2010-04-24 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: applied the changes for 2.7 and 3.2. there is a diff for the regenerated configure like -rm -f -r conftest* +rm -f conftest* I explicitely used a vanilla autoconf-2.61 download for regenerating the configure script. Why the diff? --

[issue8510] update to autoconf2.65

2010-04-24 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: here is the diff for configure.in. The __EXTENSIONS__ macro is defined by 2.65 for Solaris, removed this explicit definition. running a test build -- Added file: http://bugs.python.org/file17070/configure.in.diff

[issue8177] Incoherent error with keyword argument follow by unpacking argument lists

2010-04-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: As covered in http://docs.python.org/dev/reference/expressions.html#calls, this is how function calls are bound. -- resolution: - wont fix status: open - closed ___ Python tracker

[issue8522] enhacement proposal in http://docs.python.org/howto/doanddont.html

2010-04-24 Thread Adrián Deccico
New submission from Adrián Deccico decc...@gmail.com: Hi, in Exceptions section. Instead of using: def get_status(file): fp = open(file) try: return fp.readline() finally: fp.close() Why no suggest this method: def get_status(file): with open(file) as fp:

[issue8522] enhacement proposal in howto/doanddont

2010-04-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello You’re right, this idiom (new in 2.5, always enabled in 2.6) is now the recommended way of doing this. Note that the older code does close the file properly too, it’s just another way of doing it. Would you like to provide a patch

[issue8419] dict constructor allows invalid identifiers in **kwargs

2010-04-24 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: Added file: http://bugs.python.org/file17071/refactor_a_bit.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8419 ___

[issue8350] os.mkdir doc comment is incorrect

2010-04-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: From http://docs.python.org/dev/reference/expressions.html#calls “An implementation may provide built-in functions whose positional parameters do not have names, even if they are ‘named’ for the purpose of documentation, and which therefore

[issue8350] os.mkdir doc comment is incorrect

2010-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think it would be overkill to add special markup for positional-only arguments. I think we should just close the issue as invalid. -- ___ Python tracker rep...@bugs.python.org

[issue8419] dict constructor allows invalid identifiers in **kwargs

2010-04-24 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r80450. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8419 ___

  1   2   >