PyScripter version 2.3.1 released

2010-10-17 Thread PyScripter
PyScripter is a free and open-source Python Integrated Development Environment (IDE) created with the ambition to become competitive in functionality with commercial Windows-based IDEs available for other languages. Features: http://code.google.com/p/pyscripter/wiki/Features Screenshots:

ANN: PyGUI 2.3

2010-10-17 Thread Gregory Ewing
PyGUI 2.3 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version works on Snow Leopard with PyObjC 2.3. What is PyGUI? -- PyGUI is a cross-platform GUI toolkit designed to be lightweight and have a highly Pythonic API. -- Gregory Ewing

Re: Spreadsheet-style dependency tracking

2010-10-17 Thread Chris Torek
In article 87y69xbz6h@mid.deneb.enyo.de Florian Weimer f...@deneb.enyo.de wrote: Are there libraries which implement some form of spreadsheet-style dependency tracking? The idea is to enable incremental updates to some fairly convoluted computation. I hope that a general dependency tracking

Re: asyncore.poll() question

2010-10-17 Thread Von
The urlparse module is load only when this module run as main entry. Its for test purpose of modules. 2010/10/17, chad cdal...@gmail.com: On Oct 16, 11:02 am, Felipe Bastos Nunes felipe.bast...@gmail.com wrote: You edited the source of asyncore.py puttin the print statments and nothing

Package data distribution and installation

2010-10-17 Thread Alejandro Dubrovsky
I've got a script that is an executable and it reads template files that should be packaged with the script. How do I tell the script where to find the templates? In distutils, there's a package_data option, but that installs the templates under the /usr/lib/pythonX.XX/... directory, which

Re: Minimal D

2010-10-17 Thread Jonas H.
On 10/16/2010 06:04 PM, Kruptein wrote: Hey, I've written a small IDE. It is written in python using the python toolkit and offers an advanced text-editor, file-manager, ftp-client, sql- client(in development) and more towards the future. You definitely want to have a look at PEP8. --

Re: Starting Python in XP Pro

2010-10-17 Thread Dave Angel
On 10/16/2010 11:27 PM, Grant Andrew wrote: I hear that...God knows if I had a more complete question, I'd type it - basically, when I click the IDLE GUI icon from the Start Menu, there is a flash of a command prompt loading, then nothing happens. I've tried a number of things at the command

please help explain this result

2010-10-17 Thread Yingjie Lan
Hi, I played with an example related to namespaces/scoping. The result is a little confusing: a=1 def f(): a = a + 1 return a f() I suppose I will get 2 ( 'a' is redefined as a local variable, whose value is obtained by the value of the global variable 'a' plus 1). But

Re: Spreadsheet-style dependency tracking

2010-10-17 Thread Florian Weimer
* Chris Torek: In article 87y69xbz6h@mid.deneb.enyo.de Florian Weimer f...@deneb.enyo.de wrote: Are there libraries which implement some form of spreadsheet-style dependency tracking? The idea is to enable incremental updates to some fairly convoluted computation. I hope that a general

Re: please help explain this result

2010-10-17 Thread Nobody
On Sun, 17 Oct 2010 03:58:21 -0700, Yingjie Lan wrote: I played with an example related to namespaces/scoping. The result is a little confusing: a=1 def f(): a = a + 1 return a f() UnboundLocalError: local variable 'a' referenced before assignment If you want to modify a

Re: Reading Outlook .msg file using Python

2010-10-17 Thread Tim Golden
On 17/10/2010 6:39 AM, John Henry wrote: On Oct 12, 10:31 am, Tim Goldenm...@timgolden.me.uk wrote: On 12/10/2010 4:59 PM, John Henry wrote: According to: http://support.microsoft.com/kb/813745 I need to reset my Outlook registry keys. Unfortunately, I don't have my Office Install CD

Re: please help explain this result

2010-10-17 Thread Steven D'Aprano
On Sun, 17 Oct 2010 03:58:21 -0700, Yingjie Lan wrote: Hi, I played with an example related to namespaces/scoping. The result is a little confusing: [snip example of UnboundLocalError] Python's scoping rules are such that if you assign to a variable inside a function, it is treated as a

Re: please help explain this result

2010-10-17 Thread Yingjie Lan
From: Nobody nob...@nowhere.com The determination of local or global is made when the def statement is executed, not when the function is called. Thanks a lot for your reply, which is of great help! So, I assume that when the 'def' is executed, any name occurred will be categorized as

Re: please help explain this result

2010-10-17 Thread Yingjie Lan
--- On Sun, 10/17/10, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: (1) If you assign to a variable *anywhere* in the function, it is a local *everywhere* in the function. There is no way to have a variable refer to a local in some places of a function and a global in

Re: Strong typing vs. strong testing

2010-10-17 Thread Nick Keighley
On 10 Oct, 10:44, Lie Ryan lie.1...@gmail.com wrote: On 10/02/10 20:04, NickKeighleywrote: In a statically typed language, the of-the-wrong-type is something which can, by definition, be caught at compile time. Any time something is true by definition that is an indication that

ANN: PyGUI 2.3

2010-10-17 Thread Gregory Ewing
PyGUI 2.3 is available: http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ This version works on Snow Leopard with PyObjC 2.3. What is PyGUI? -- PyGUI is a cross-platform GUI toolkit designed to be lightweight and have a highly Pythonic API. -- Gregory Ewing

pybsddb + python 2.7

2010-10-17 Thread Micky
Hi, I do have an ActivePython 2.7 installation (Win. XP) and some programm that has to read and write to a Berkeley DB. I read that starting from python version 2.6(?) pybsddb was deprecated. I dont understand the reason and I am looking to make this run. I found some pybsddb 4.8.4, but could

How to implement retrying a lock tidily in Python?

2010-10-17 Thread tinnews
I'm writing some code that writes to a mbox file and want to retry locking the mbox file a few times before giving up. I can't see a really tidy way to implement this. Currently I have something like:- dest = mailbox.mbox(mbName, factory=None) for tries in xrange(3): try:

ANN: stats 0.1a calculator statistics for Python

2010-10-17 Thread Steven D'Aprano
I am pleased to announce the first public release of stats for Python. http://pypi.python.org/pypi/stats stats is a pure-Python module providing basic statistics functions similar to those found on scientific calculators. It currently includes: Univariate statistics including: * arithmetic,

Re: How to implement retrying a lock tidily in Python?

2010-10-17 Thread Matteo Landi
You can use the 'else' keyword outside the for loop: for condition: if condition: break else some operations The execution will step inside the else branch if the for loop ends normally, i.e. without encountering a break keyword. Hope it helps. Regards, Matteo On Sun, Oct 17, 2010 at

Re: please help explain this result

2010-10-17 Thread Paul Kölle
Am 17.10.2010 13:48, schrieb Steven D'Aprano: On Sun, 17 Oct 2010 03:58:21 -0700, Yingjie Lan wrote: Hi, I played with an example related to namespaces/scoping. The result is a little confusing: [snip example of UnboundLocalError] Python's scoping rules are such that if you assign to a

Re: please help explain this result

2010-10-17 Thread TomF
On 2010-10-17 10:21:36 -0700, Paul Kölle said: Am 17.10.2010 13:48, schrieb Steven D'Aprano: On Sun, 17 Oct 2010 03:58:21 -0700, Yingjie Lan wrote: Hi, I played with an example related to namespaces/scoping. The result is a little confusing: [snip example of UnboundLocalError] Python's

Re: How to implement retrying a lock tidily in Python?

2010-10-17 Thread Chris Torek
In article 4imro7-ds6@chris.zbmc.eu, tinn...@isbd.co.uk wrote: I'm writing some code that writes to a mbox file and want to retry locking the mbox file a few times before giving up. ... dest = mailbox.mbox(mbName, factory=None) for tries in xrange(3): try:

[ANNC] TZMud 0.9 : A Python MUD server

2010-10-17 Thread Lee Harr
TZMud is a Python MUD server. http://tzmud.googlecode.com/ A MUD is a text-based virtual environment accessed via telnet, or with a specialised MUD client. TZMud development is still in early stages, focusing on API and server stability. TZMud uses several high-quality Python libraries to

Re: Reading Outlook .msg file using Python

2010-10-17 Thread John Henry
On Oct 17, 4:45 am, Tim Golden t...@westpark-club.org.uk wrote: On 17/10/2010 6:39 AM, John Henry wrote: On Oct 12, 10:31 am, Tim Goldenm...@timgolden.me.uk  wrote: On 12/10/2010 4:59 PM, John Henry wrote: According to: http://support.microsoft.com/kb/813745 I need to reset my

Re: How to implement retrying a lock tidily in Python?

2010-10-17 Thread tinnews
Matteo Landi landima...@gmail.com wrote: On Sun, Oct 17, 2010 at 6:58 PM, tinn...@isbd.co.uk wrote: I'm writing some code that writes to a mbox file and want to retry locking the mbox file a few times before giving up.  I can't see a really tidy way to implement this. Currently I have

what difference does redirection make?

2010-10-17 Thread Nikola Skoric
When I execute n...@rilmir:~/code/simplepyged/docs/examples$ python latex.py I get expected output (bunch of latex markup). But, when I add a redirection, I get: n...@rilmir:~/code/simplepyged/docs/examples$ python latex.py foo.tex File latex.py, line 87, in module print

Re: Reading Outlook .msg file using Python

2010-10-17 Thread John Henry
On Oct 17, 11:37 am, John Henry john106he...@hotmail.com wrote: On Oct 17, 4:45 am, Tim Golden t...@westpark-club.org.uk wrote: On 17/10/2010 6:39 AM, John Henry wrote: On Oct 12, 10:31 am, Tim Goldenm...@timgolden.me.uk  wrote: On 12/10/2010 4:59 PM, John Henry wrote: According

Re: what difference does redirection make?

2010-10-17 Thread Benjamin Kaplan
On Sun, Oct 17, 2010 at 3:04 PM, Nikola Skoric n...@fly.srk.fer.hr wrote: When I execute n...@rilmir:~/code/simplepyged/docs/examples$ python latex.py I get expected output (bunch of latex markup). But, when I add a redirection, I get: n...@rilmir:~/code/simplepyged/docs/examples$ python

Fastest way to detect a non-ASCII character in a list of strings.

2010-10-17 Thread Dun Peal
`all_ascii(L)` is a function that accepts a list of strings L, and returns True if all of those strings contain only ASCII chars, False otherwise. What's the fastest way to implement `all_ascii(L)`? My ideas so far are: 1. Match against a regexp with a character range: `[ -~]` 2. Use

Re: please help explain this result

2010-10-17 Thread Paul Kölle
Am 17.10.2010 19:51, schrieb TomF: On 2010-10-17 10:21:36 -0700, Paul Kölle said: Am 17.10.2010 13:48, schrieb Steven D'Aprano: On Sun, 17 Oct 2010 03:58:21 -0700, Yingjie Lan wrote: Hi, I played with an example related to namespaces/scoping. The result is a little confusing: [snip

Re: How to implement retrying a lock tidily in Python?

2010-10-17 Thread Dave Angel
On 2:59 PM, tinn...@isbd.co.uk wrote: I'm writing some code that writes to a mbox file and want to retry locking the mbox file a few times before giving up. I can't see a really tidy way to implement this. Currently I have something like:- dest = mailbox.mbox(mbName, factory=None)

Re: please help explain this result

2010-10-17 Thread Gregory Ewing
Yingjie Lan wrote: So, I assume that when the 'def' is executed, any name occurred will be categorized as either local or global (maybe nonlocal?). Actually it happens earlier than that -- the bytecode compiler does the categorization, and generates different bytecodes for accessing these

Re: Decorator question

2010-10-17 Thread Lucasm
On 16 Okt, 16:49, Peter Otten __pete...@web.de wrote: Lucasm wrote: I have a decorator problem and hope someone is able to help me out/ assist me. Thanks in advance. Suppose: ### Begin some_library_module ### def some_decorator(some_method):     def inner(an_arg, *args, **kwargs):

Re: Fastest way to detect a non-ASCII character in a list of strings.

2010-10-17 Thread Seebs
On 2010-10-17, Dun Peal dunpea...@gmail.com wrote: What's the fastest way to implement `all_ascii(L)`? Start by defining it. 1. Match against a regexp with a character range: `[ -~]` What about tabs and newlines? For that matter, what about DEL and BEL? Seems to me that the entire 0-127

Re: Fastest way to detect a non-ASCII character in a list of strings.

2010-10-17 Thread Rhodri James
On Sun, 17 Oct 2010 20:59:22 +0100, Dun Peal dunpea...@gmail.com wrote: `all_ascii(L)` is a function that accepts a list of strings L, and returns True if all of those strings contain only ASCII chars, False otherwise. What's the fastest way to implement `all_ascii(L)`? My ideas so far are:

Re: Fastest way to detect a non-ASCII character in a list of strings.

2010-10-17 Thread Carl Banks
On Oct 17, 12:59 pm, Dun Peal dunpea...@gmail.com wrote: `all_ascii(L)` is a function that accepts a list of strings L, and returns True if all of those strings contain only ASCII chars, False otherwise. What's the fastest way to implement `all_ascii(L)`? My ideas so far are: 1. Match

Re: Fastest way to detect a non-ASCII character in a list of strings.

2010-10-17 Thread Tim Chase
On 10/17/10 19:04, Rhodri James wrote: import string return set(.join(L))= set(string.printable) I've no idea whether this is faster or slower than any of your suggestions. For set(.join(L)) to return, it has to scan the entire input list/string. Imagine s = UNPRINTABLE_CHAR +

Re: Fastest way to detect a non-ASCII character in a list of strings.

2010-10-17 Thread Steven D'Aprano
On Mon, 18 Oct 2010 01:04:09 +0100, Rhodri James wrote: On Sun, 17 Oct 2010 20:59:22 +0100, Dun Peal dunpea...@gmail.com wrote: `all_ascii(L)` is a function that accepts a list of strings L, and returns True if all of those strings contain only ASCII chars, False otherwise. What's the

ANN: dulce 0.1 - in-memory schema-less relational database

2010-10-17 Thread Paul McGuire
dulce is a syntactic sweet wrapper for managing collections of Python objects like relational tables. No schema definition is used; instead table columns are introspected from the attributes of objects inserted into the table, and inferred from index and query parameters. dulce's Tables can be:

Re: Fastest way to detect a non-ASCII character in a list of strings.

2010-10-17 Thread Albert Hopkins
On Sun, 2010-10-17 at 14:59 -0500, Dun Peal wrote: `all_ascii(L)` is a function that accepts a list of strings L, and returns True if all of those strings contain only ASCII chars, False otherwise. What's the fastest way to implement `all_ascii(L)`? My ideas so far are: 1. Match

[issue10129] Curious 'name not defined error' with 'python -m'

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: (This is not specific to running with -m, it occurs as well when you do python a.py b.py.) The issue here is your call to exec() does not execute the code as its own module. It executes the code as part of the main() function in a.py, with

[issue10058] C-API Intro should be more explicit about error return codes

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed a change in that spirit in r85606. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10058 ___

[issue10024] Outdated advice in C-API tutorial?

2010-10-17 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10024 ___

[issue8556] Confusing string formatting examples

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed in r85609. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8556 ___

[issue8686] This isn't defined beyond that phrase is not friendly to non-native English speakers.

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Removed gloss in r85610. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8686

[issue8811] fixing sqlite3 docs for py3k

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This was mostly fixed already, committed rest in r85611. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8811

[issue8818] urlsplit and urlparse add extra slash when using scheme

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

[issue8855] Shelve documentation lacks security warning

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed in r85612, will be merged to the other maintained branches. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8968] token type constants are not documented

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed in r85614. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8968 ___

[issue459007] Document sys.path on Windows

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks for the patch, merged with existing info in using/windows.rst in r85615. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5212] Incorrect note about md5 in hmac module documentation

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Removed note in r85617. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5212 ___

[issue9086] Wrong linking terminology in windows FAQ

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Okay, I removed mention of static linking and used John's terms load-time and run-time linking in r85618. I also removed the note that pythonXY.dll is only needed in one case, since it's not true. -- nosy: +georg.brandl resolution: -

[issue9105] pickle security note should be more prominent

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Moved pickle warning in r85621. A warning in shelve was already added for issue8855. For the tutorial, I don't think a warning needs to be added. Same goes for logging. -- nosy: +georg.brandl status: open - closed

[issue9112] argparse missing documentation for error() method

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed after review in r85622. Thanks! -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9112

[issue9117] class syntax not fully documented in reference manual

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This patch was mostly out-of-date since PEP 3115 metaclasses are now documented; I've merged what was missing in r85626. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python

[issue9138] Tutorial: classes intro paragraph icky

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed Aahz' version, with the last sentence reworded to what I think is more positive than what sounds like you can break things without doing anything. -- nosy: +georg.brandl resolution: - fixed status: open - closed

[issue9138] Tutorial: classes intro paragraph icky

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: r85627. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9138 ___ ___ Python-bugs-list mailing

[issue9195] Link in docs from String Formatting Operations to Template Strings

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Mostly out of date now that we have str.format(). -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9195

[issue5962] Ambiguity about the semantics of sys.exit() and os._exit() in multithreaded program

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Added a note about threads to sys.exit(), and changed os._exit() wording to be clear about process exit, in r85629. -- resolution: - fixed status: open - closed ___ Python tracker

[issue10119] test_urllibnet failure when using support.transient_internet

2010-10-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in revision 85630. When using fileno attribute of the file-descriptor, the socket had to be in blocking mode. Now the results are consistent. This may resolve the other spurious test failures that were observed too. --

[issue1945] Document back ported C functions

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, applied in r85632. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1945 ___

[issue10116] Sporadic failures in test_urllibnet

2010-10-17 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: ixokai, A change made as part of issue10119 should have resolved this issue too. Please let me know if this can be closed. -- assignee: - orsenthil resolution: - fixed stage: - committed/rejected type: - behavior

[issue9204] The documentation of PyType_Type in py3k mentions types.TypeType

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r85633. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9204

[issue5121] PyRun_InteractiveLoop disagrees with documentation?

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r85635. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5121 ___

[issue9237] Add sys.call_tracing to on-line sys module documentation

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Documented in r85636. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9237

[issue10130] Create epub format docs and offer them on the download page

2010-10-17 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl nosy: georg.brandl priority: deferred blocker severity: normal status: open title: Create epub format docs and offer them on the download page type: feature request versions: Python 3.2

[issue9730] base64 docs refers to strings instead of bytes

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r85642. -- dependencies: -b64decode should accept strings or bytes resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10115] accept4 can fail with errno 90

2010-10-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There would need to be some tests. Also, this last part of the patch looks strange: @@ -3001,6 +3072,10 @@ PyErr_SetString(PyExc_ValueError, can't use invalid socket value); return -1;

[issue10116] Sporadic failures in test_urllibnet

2010-10-17 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: I'll run the test in -F mode for a few hours to see if it comes up or not: but its hard for me to say one way or the other if anything has fixed or not fixed it, as the failure only came up every once in awhile. But I'll look. --

[issue9909] request for calendar.dayofyear() function

2010-10-17 Thread JJeffries
JJeffries jamesjeffri...@gmail.com added the comment: I agree, I think this would be very useful. I use a function that does this quite often. Should also be added to calendar.py's __all__. -- nosy: +JJeffries ___ Python tracker

[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2010-10-17 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: import copy from xml.dom import minidom doc = minidom.parseString('root/') doc2 = copy.deepcopy(doc) doc.toxml() u'?xml version=1.0 ?root/' doc2.toxml() u'?xml version=1.0 ?root/root/' minidom.parseString(doc2.toxml())

[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2010-10-17 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: It works fine with 2.5 and 2.6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10131 ___

[issue10092] calendar does not restore locale properly

2010-10-17 Thread JJeffries
Changes by JJeffries jamesjeffri...@gmail.com: -- nosy: +JJeffries ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list

[issue10116] Sporadic failures in test_urllibnet

2010-10-17 Thread Stephen Hansen
Stephen Hansen me+pyt...@ixokai.io added the comment: Okay, at -r85630 on branches/py3k, I ran: ./python.exe -m test.regrtest -uall -F test_urllibnet And after 158 retries, got the same error I had before: test test_urllibnet failed -- Traceback (most recent call last): File

[issue10020] docs for sqlite3 describe functions not available without recompiling

2010-10-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Has this been fixed in 3.1 and 2.7 too? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10020 ___

[issue1625] bz2.BZ2File doesn't support multiple streams

2010-10-17 Thread Oliver Deppert
Oliver Deppert oliver.depp...@stud.tu-darmstadt.de added the comment: Thanks for the update Like I mentioned before in my previous comment, I'm still searching for a solution/patch for python 2.x able to handle multiple streams of bz2. Does anybody know a work-around or have a solution

[issue10130] Create epub format docs and offer them on the download page

2010-10-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10130 ___ ___ Python-bugs-list

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Thomas Vander Stichele
Thomas Vander Stichele thoma...@users.sourceforge.net added the comment: It's too bad this is closed out of date because a) the macro is still there being distributed b) it simply hangs! c) there's no easy way to figure out that you should be using something else instead. I spent a few

[issue10126] test_distutils failure with --enable-shared

2010-10-17 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: If I understand correctly, only the changes you made to test_build_ext.py have to be backported. I can do it if you want, just assign to me, or else do it and I’ll forward port to distutils2. Note that I don’t fully understand the change, but

[issue10126] test_distutils failure with --enable-shared

2010-10-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10126 ___ ___ Python-bugs-list

[issue2775] Implement PEP 3108

2010-10-17 Thread Retro
Retro vinet...@gmail.com added the comment: Did you manage to apply my fix zipfile-patch.diff to the trunk? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2775 ___

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-17 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: two fixes, the configure.in differentiates the name for the static library, as mentioned in msg118832. the python-config.in fix prints the library name with the abiflags. Index: configure.in

[issue10115] accept4 can fail with errno 90

2010-10-17 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: What is it meant for? And why does it come right after a return statement? @Antoine, if fd was supplied and it was correct (not returned with -1), let's drop flags that can't be inherited. It's a mistake, at that level we don't know

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Am 15.10.2010 20:03, schrieb David Watson: David Watson bai...@users.sourceforge.net added the comment: As a further note: I think socket.gethostname() is a special case, since this is just about a local setting (i.e. not related to

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The issue Raymond raised is the potential impossibility of making the change /after/ we settle on a stable ABI. The question is whether the ABI will be enforced starting from 3.2, or from a later date. I'd like to repeat that it will not

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le dimanche 17 octobre 2010 à 17:40 +, Martin v. Löwis a écrit : Martin v. Löwis mar...@v.loewis.de added the comment: The issue Raymond raised is the potential impossibility of making the change /after/ we settle on a stable ABI. The

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Can't we just do it now, and be done with it regardless of the stable ABI? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9778 ___

[issue2775] Implement PEP 3108

2010-10-17 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: If any action regarding your patch takes place there will be a comment here about it. Until then assume nothing has happened. -- ___ Python tracker rep...@bugs.python.org

[issue4949] Constness in PyErr_NewException

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Assuming the patch doesn't cause warnings on the compilers that we use, it looks fine to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4949

[issue10130] Create epub format docs and offer them on the download page

2010-10-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10130 ___ ___ Python-bugs-list

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: fyi - for information on using gdb 7 with python see http://bugs.python.org/issue8032 I'm looking at the .gdbinit improvements regardless as not everyone has gdb 7 (notably OS X). -- resolution: out of date - status: closed - open

[issue9778] Make hash values the same width as a pointer (or Py_ssize_t)

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can't we just do it now, and be done with it regardless of the stable ABI? Sure. Somebody needs to implement it (and consider what consequences this has on third-party modules - I'm uncertain). --

[issue10115] accept4 can fail with errno 90

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: That's another possibility, in which case we would first remove the current accept4-calling code in order to fix the buildbot failure. In Python, the lowest layer facing the operating system always directly exposes the API as-is, without

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: everything except the lineno change from gdbinit_python26.patch has been committed in r85646. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3631

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: and the py_decref in there isn't quite right, fixing... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3631 ___

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think the reference to EasierPythonDebugging is outdated and should be corrected. Dave Malcolm's work is already part of Python, and available with every Python build. -- nosy: +loewis ___

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: do we have official python docs on this that I should point to? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3631 ___

[issue3631] Improve gdbinit of Python 2.6

2010-10-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: do we have official python docs on this that I should point to? I only know of the doc string of libpython.py itself, in Tools/gdb -- ___ Python tracker rep...@bugs.python.org

[issue10132] mkpkg.py is lacked.

2010-10-17 Thread Atsushi Odagiri
New submission from Atsushi Odagiri aod...@gmail.com: I try to install distutils2-1.0a3 to python 2.5. But I got error such a below. $ python -V Python 2.5.2 $ python setup.py build running build running build_py running build_scripts error: file 'distutils2/mkpkg.py' does not exist $ ls

  1   2   >