Sphinx 1.0.7 released

2011-01-16 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm happy to announce the release of Sphinx 1.0.7, a bug-fix release in the 1.0 series, fixing a number of bugs in the 1.0 line of releases, most importantly a regression in LaTeX output introduced in 1.0.6. What is it? === Sphinx

[RELEASED] Python 3.2 rc 1

2011-01-16 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm very happy to announce the first release candidate of Python 3.2. Python 3.2 is a continuation of the efforts to improve and stabilize the Python 3.x line. Since the final release of Python 2.7, the 2.x

Re: After C++, what with Python?

2011-01-16 Thread Tim Harig
On 2011-01-16, John Nagle na...@animats.com wrote: On 1/15/2011 10:48 PM, Aman wrote: @nagle Means you are suggesting me not to proceed with Python because I've had experience with C++? No, Python is quite useful, but on the slow side. If you're I/O bound, not time critical, or

Re: After C++, what with Python?

2011-01-16 Thread Paul Rubin
Tim Harig user...@ilthio.net writes: Those who are concerned about performance should check out Go. Garbage collection, duck typing, and compiles to a native binary. It creates a great middle ground between C++ and Python. Any C and/or Python programmer will feel right at home with the

Re: [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-16 Thread Mark Summerfield
On Sun, 16 Jan 2011 08:33:41 +0100 Georg Brandl ge...@python.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm very happy to announce the first release candidate of Python 3.2. [snip] Regarding http://docs.python.org/dev/whatsnew/3.2.html

Issue 1602, cp65001, powershell and python3 crash

2011-01-16 Thread jmfauth
After having read the discussion about the issue 1602, http://bugs.python.org/issue1602, I came to the idea to test Python with the PowerShell. I thought, it could help and manage unicode better than the std dosbox does My experience with PowerShell is closed to zero, so take the following as a

Re: After C++, what with Python?

2011-01-16 Thread Stefan Behnel
John Nagle, 16.01.2011 07:03: Threading is supported but thread concurrency is marginal. The most common implementation is a naive interpreter with reference counting backed up by a mark and sweep garbage collector. Performance is about 1/60 of optimized C code. That's Python. Since the OP is

[OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread Tim Harig
On 2011-01-16, Paul Rubin no.email@nospam.invalid wrote: Tim Harig user...@ilthio.net writes: Those who are concerned about performance should check out Go. Garbage collection, duck typing, and compiles to a native binary. It creates a great middle ground between C++ and Python. Any C and/or

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread Steven D'Aprano
On Sun, 16 Jan 2011 09:47:35 +, Tim Harig wrote: One of the things that gives me hope for Go is that it is backed by Google so I expect that it may gain some rather rapid adoption. It has made enough of a wake to grab one of Eweek's 18 top languages for 2011. If the author thinks that

Re: Does Python 3.1 accept \r\n in compile()?

2011-01-16 Thread jmfauth
Just an info, addendum. sys.version '3.2rc1 (r32rc1:88035, Jan 15 2011, 21:05:51) [MSC v.1500 32 bit (Intel)]' compile('if True:\r\nprint(999)\r\n', 'in', 'exec') code object module at 0x023CA610, file in, line 2 exec(compile('if True:\r\nprint(999)\r\n', 'in', 'exec')) 999 --

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread Tim Harig
On 2011-01-16, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 16 Jan 2011 09:47:35 +, Tim Harig wrote: One of the things that gives me hope for Go is that it is backed by Google so I expect that it may gain some rather rapid adoption. It has made enough of a wake to

Functions Not Fun (yet)-please help!

2011-01-16 Thread Cathy James
Dear all, I can't thank you enough for taking time from your busy schedules to assist me (and others) in my baby steps with Python. Learning about functions now and wondering about some things commented in my code below. Maybe someone can break it down for me and show me why i cant print the

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Adam Skutt
On Jan 14, 5:17 pm, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: I really don't follow that. You need a tremendous set to write gimp. Obviously you won't write gimp in Python. You need a tremendous set to write /the majority of the applications on your computer/. On my desktop right

Re: Functions Not Fun (yet)-please help!

2011-01-16 Thread Emile van Sebille
On 1/16/2011 6:49 AM Cathy James said... Dear all, I can't thank you enough for taking time from your busy schedules to assist me (and others) in my baby steps with Python. Learning about functions now and wondering about some things commented in my code below. Maybe someone can break it down

[PYTHON] threading: Parallel processing

2011-01-16 Thread Moses
Hi All, Is there is a way to print or use the value of new in the main function of the script below? from thread import start_new_thread, allocate_lock num_threads = 0 thread_started = False lock = allocate_lock() def heron(a): global num_threads, thread_started lock.acquire()

Re: After C++, what with Python?

2011-01-16 Thread David Boddie
On Sunday 16 January 2011 08:35, geremy condra wrote: On Sat, Jan 15, 2011 at 9:30 PM, Aman aman.6...@gmail.com wrote: It would be great if you people could guide me as to what to proceed with and how. Here's what I would do: [Snip advice] Maybe it would be good to expand the Getting

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 9:18 am, Adam Skutt ask...@gmail.com wrote: You need a tremendous set to write /the majority of the applications on your computer/. [...snip incessant rambling...] Adam your post is so incoherent that i cannot decide if you are FOR or AGAINST changing the current Tkinter GUI module

Re: Developing a program to make a family tree.

2011-01-16 Thread rantingrick
On Jan 15, 3:43 pm, Michael Hunter tahoe...@gmail.com wrote: I think you are probably coming at this from the wrong direction. Either you want to solve your family tree problem in the easiest way possible in which case there are already packages available or you want to develop this because

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Kevin Walzer
On 1/16/11 11:30 AM, rantingrick wrote: ### # Start Quote by Rick # ### Exactly! All we need to do is replace the existing Tkinter with a small sub-set of wxPython widgets that mirrors exactly what we have now... Toplevel Label Entry Button Radiobutton

Re: [python-committers] [RELEASED] Python 3.2 rc 1

2011-01-16 Thread Terry Reedy
On 1/16/2011 4:10 AM, Mark Summerfield wrote: Regarding http://docs.python.org/dev/whatsnew/3.2.html - in the first argparse example the comment says one of four allowed values, but the choices list has only three items so I wonder if this is correct? - in the coverage of PEP code

Re: Issue 1602, cp65001, powershell and python3 crash

2011-01-16 Thread Terry Reedy
On 1/16/2011 4:22 AM, jmfauth wrote: After having read the discussion about the issue 1602, http://bugs.python.org/issue1602, I came to the idea to test Python with the PowerShell. I thought, it could help and manage unicode better than the std dosbox does My experience with PowerShell is

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 11:39 am, Kevin Walzer k...@codebykevin.com wrote: First of all welcome back to the discussion Kevin. You and i both appreciate and use Tkinter extensively and your input is most welcome here. You are a smart and level headed fella which makes for good discussion. Thanks for that! Ok,

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Terry Reedy
On 1/16/2011 11:30 AM, rantingrick wrote: Toplevel Label Entry Button Radiobutton Checkbutton Canvas Textbox Listbox Menu Scale Scrollbar ...thats all you need in the std library widget wise. Once IDLE is revised to use some of the widgets in ttk that are not in tk (such as Notebook) the set

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Kevin Walzer
On 1/16/11 1:27 PM, rantingrick wrote: On Jan 16, 11:39 am, Kevin Walzerk...@codebykevin.com wrote: First of all welcome back to the discussion Kevin. You and i both appreciate and use Tkinter extensively and your input is most welcome here. You are a smart and level headed fella which makes

examples of realistic multiprocessing usage?

2011-01-16 Thread TomF
I'm trying to multiprocess my python code to take advantage of multiple cores. I've read the module docs for threading and multiprocessing, and I've done some web searches. All the examples I've found are too simple: the processes take simple inputs and compute a simple value. My problem

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 12:49 pm, Terry Reedy tjre...@udel.edu wrote: Once IDLE is revised to use some of the widgets in ttk that are not in tk (such as Notebook) the set would need expansion. The IDLE library has had a NoteBook widget for ages. They just choose to call it TabPages instead. And what is a

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Adam Tauno Williams
Instead of explaining my problem and asking for design suggestions, I'll ask: is there a compendium of realistic Python multiprocessing examples somewhere? Not that I've ever seen. Or an open source project to look at? OpenGroupware Coils uses multiprocessing [in conjunction with AMQ].

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 12:59 pm, Kevin Walzer k...@codebykevin.com wrote: I'm quite familiar with the wxPython demo. I've got the latest incarnation, from 2.9.x, installed on my machine. The latest version is quite nice, especially with the AUI widgets, and the underlying wxWidgets libraries are finally

Not clear about the dot notation

2011-01-16 Thread Zeynel
What does vote.vote refer to in this snippet? def txn(): quote = Quote.get_by_id(quote_id) vote = Vote.get_by_key_name(key_names = user.email(), parent = quote) if vote is None: vote = Vote(key_name = user.email(), parent = quote) if vote.vote ==

RE: Functions Not Fun (yet)-please help!

2011-01-16 Thread Joe Goldthwaite
Hi Kathy, The defaults only get assigned when you leave them out of the list. This will work the way you want by setting b c to the defaults. print my_func(a) When you try this; a = testing b = defaults print my_func(a, b, c)

Re: Not clear about the dot notation

2011-01-16 Thread TomF
On 2011-01-16 11:59:11 -0800, Zeynel said: What does vote.vote refer to in this snippet? def txn(): quote = Quote.get_by_id(quote_id) vote = Vote.get_by_key_name(key_names = user.email(), parent = quote) if vote is None: vote = Vote(key_name =

Re: Not clear about the dot notation

2011-01-16 Thread Ian Kelly
On 1/16/2011 12:59 PM, Zeynel wrote: What does vote.vote refer to in this snippet? vote is an instance of the Vote class, and vote.vote is the value of the vote attribute on that instance. In this case, that will be an int. More precisely, vote.vote is a value managed by the vote

Re: Not clear about the dot notation

2011-01-16 Thread Zeynel
On Jan 16, 3:24 pm, TomF tomf.sess...@gmail.com wrote: vote refers to the Vote instance. So he must have instatiated previously like vote = Vote() is this correct? So I have a model class Item(db.Model): title = db.StringProperty() url = db.StringProperty() date =

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Philip Semanchuk
On Jan 16, 2011, at 2:05 PM, TomF wrote: I'm trying to multiprocess my python code to take advantage of multiple cores. I've read the module docs for threading and multiprocessing, and I've done some web searches. All the examples I've found are too simple: the processes take simple

Re: Not clear about the dot notation

2011-01-16 Thread TomF
On 2011-01-16 12:44:35 -0800, Zeynel said: On Jan 16, 3:24 pm, TomF tomf.sess...@gmail.com wrote: vote refers to the Vote instance. So he must have instatiated previously like vote = Vote() is this correct? Yes. So I have a model class Item(db.Model): title = db.StringProperty()

Re: Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread rantingrick
On Jan 16, 5:03 am, Tim Harig user...@ilthio.net wrote: Personally, I think the time is ripe for a language that bridges the gap between ease of use dynamic languages with the performance and distribution capabilities of a full systems level language.   Bravo! This is after all the promise

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Steven D'Aprano
On Sun, 16 Jan 2011 07:18:16 -0800, Adam Skutt wrote: [...] I'm afraid I found most of your post hard to interpret, because you didn't give sufficient context for me to understand it. You refer to his proposed widget set, but with no clue as to who he is, or what the widget set is, or what

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Terry Reedy
On 1/16/2011 1:27 PM, rantingrick wrote: least look at the awesome screen shots here... http://www.wxpython.org/screenshots.php I did. Well, they say, Beauty is in the eye of the beholder!. To me, these are mostly awesomely ugly, ugly, ugly. Shot 1: Ugly gray field followed by shot2:

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Adam Skutt
On Jan 16, 11:30 am, rantingrick rantingr...@gmail.com wrote: Adam your post is so incoherent that i cannot decide if you are FOR or AGAINST changing the current Tkinter GUI module into a wxPython GUI module. And this widget set that you keep referring to is a bit vague also. If you found my

Re: [OT] Python like lanugages [was Re: After C++, what with Python?]

2011-01-16 Thread geremy condra
On Sun, Jan 16, 2011 at 3:03 AM, Tim Harig user...@ilthio.net wrote: On 2011-01-16, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: If the author thinks that Go is a tried and true (his words, not mine) language where programmers can go to look for work, I think he's fooling

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Kevin Walzer
On 1/16/11 2:44 PM, rantingrick wrote: Ok so you're complaining about a Mac specific missing functionality? Um, yes. Ok, even if it looks out of place this is another Mac Specific problem. Yes, it sure does. Mac-specific==important. 3. wxPython applications do not make use of common

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Adam Skutt
On Jan 16, 6:04 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: If the situation isn't the same on your computer then your application usage is highly unusual or you don't understand what widgets are used to construct your applications.  You've just told me that Python

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Adam Skutt
On Jan 16, 2:17 pm, rantingrick rantingr...@gmail.com wrote: The IDLE library has had a NoteBook widget for ages. They just choose to call it TabPages instead. And what is a NoteBook exactly? Well a Notebook is a compound widget consisting of a main frame that holds two sub frames -- which are

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 5:14 pm, Terry Reedy tjre...@udel.edu wrote: On 1/16/2011 1:27 PM, rantingrick wrote: least look at the awesome screen shots here...      http://www.wxpython.org/screenshots.php I did. Well, they say, Beauty is in the eye of the beholder!. To me, these are mostly awesomely

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 5:16 pm, Adam Skutt ask...@gmail.com wrote: [...snip: emotionally nonsensical hyperbole...] Adam. Arguing with you is like masturbating with a cheese-grater... slightly amusing, but mostly painful. I don't have the energy to chase my tail like you do. --

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread geremy condra
On Sun, Jan 16, 2011 at 4:12 PM, rantingrick rantingr...@gmail.com wrote: I don't have the energy to chase my tail like you do. Hahahahahahahaha. Troll. Geremy Condra -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 6:59 pm, geremy condra debat...@gmail.com wrote: Hahahahahahahaha. Troll. Coming from someone who actually gives advice on how to troll more efficiently... now that is ironic! ### # Geremy Condra From: I strongly dislike Python 3 #

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread geremy condra
On Sun, Jan 16, 2011 at 5:50 PM, rantingrick rantingr...@gmail.com wrote: On Jan 16, 6:59 pm, geremy condra debat...@gmail.com wrote: Hahahahahahahaha. Troll. Coming from someone who actually gives advice on how to troll more efficiently... now that is ironic!

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Adam Skutt
On Jan 16, 2:05 pm, TomF tomf.sess...@gmail.com wrote: Instead of explaining my problem and asking for design suggestions, I'll ask: is there a compendium of realistic Python multiprocessing examples somewhere?  Or an open source project to look at? There are tons, but without even a knowledge

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Dan Stromberg
On Sun, Jan 16, 2011 at 11:05 AM, TomF tomf.sess...@gmail.com wrote: I'm trying to multiprocess my python code to take advantage of multiple cores.  I've read the module docs for threading and multiprocessing, and I've done some web searches.  All the examples I've found are too simple: the

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Terry Reedy
On 1/16/2011 6:58 PM, rantingrick wrote: On Jan 16, 5:14 pm, Terry Reedytjre...@udel.edu wrote: On 1/16/2011 1:27 PM, rantingrick wrote: least look at the awesome screen shots here... http://www.wxpython.org/screenshots.php I did. Well, they say, Beauty is in the eye of the

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread rantingrick
On Jan 16, 9:45 pm, Terry Reedy tjre...@udel.edu wrote: You called them 'awesome'. I did not expect 'awesomely ugly'. Screenshots are the first thing for someone to look at, to see WHAT THE APP LOOKS LIKE, and to decide whether one wants to bother to download, switch to admin, install, run,

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread TomF
On 2011-01-16 19:16:15 -0800, Dan Stromberg said: On Sun, Jan 16, 2011 at 11:05 AM, TomF tomf.sess...@gmail.com wrote: I'm trying to multiprocess my python code to take advantage of multiple cores.  I've read the module docs for threading and multiprocessing, and I've done some web searches.  

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Adam Skutt
On Jan 16, 11:39 pm, TomF tomf.sess...@gmail.com wrote: One difficulty is that there is a queue of work to be done and a queue of results to be incorporated back into the parent; there is no one-to-one correspondence between the two.  It's not obvious to me how to coordinate the queues in a

Re: Not clear about the dot notation

2011-01-16 Thread Tim Roberts
Zeynel azeyn...@gmail.com wrote: On Jan 16, 3:24 pm, TomF tomf.sess...@gmail.com wrote: vote refers to the Vote instance. So he must have instatiated previously like vote = Vote() No, it's the line immediately above the one you asked about: if vote is None: vote =

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread TomF
On 2011-01-16 20:57:41 -0800, Adam Skutt said: On Jan 16, 11:39 pm, TomF tomf.sess...@gmail.com wrote: One difficulty is that there is a queue of work to be done and a queue of results to be incorporated back into the parent; there is no one-to-one correspondence between the two.  It's not

Re: Tkinter: The good, the bad, and the ugly!

2011-01-16 Thread Octavian Rasnita
From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info Sent: Monday, January 17, 2011 1:04 AM Subject: Re: Tkinter: The good, the bad, and the ugly! Well, true, but people tend to *use* the parts of the GUIs that are simple and basic. Not only do the big complicated apps get all the

Re: [OT] Python like lanugages

2011-01-16 Thread Paul Rubin
geremy condra debat...@gmail.com writes: I agree. That does not make Go that language, and many of the choices made during Go's development indicate that they don't think it's that language either. I'm speaking specifically of its non-object model, lack of exceptions, etc You might be

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r88045 (also in PEP ). -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10917

[issue10915] Make the PyGILState API compatible with multiple interpreters

2011-01-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The bulk of use cases is going to be simple callbacks via the same thread that called out of Python in the first place. [...] This is what SWIG effectively does in its generated wrappers for callbacks. Thanks for clarifying. I agree the TLS

[issue10915] Make the PyGILState API compatible with multiple interpreters

2011-01-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: There's no point improving the multiple interpreter support if it doesn't help applications that are currently broken because of that lack of support. I believe the patch as currently proposed actually makes things *worse*. With autoTLSkey as

[issue2275] urllib/httplib header capitalization

2011-01-16 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Title case is not the right thing for all headers: TE, WWW-Authenticate, etc. While we're changing this, why not implement something to return headers in the order recommended in the RFC? (Probably another feature request) -- nosy:

[issue10915] Make the PyGILState API compatible with multiple interpreters

2011-01-16 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Added Mark Hammond to the nosy list, as the original author and implementor of PEP 311 (which added the GILState APIs). Mark, since your PEP deliberately punted on multiple interpreter support, feel free to take yourself off the list again.

[issue10918] **kwargs unnecessarily restricted in API

2011-01-16 Thread Adrian Dries
New submission from Adrian Dries adr...@gmail.com: An API such as in, e.g. futures: def submit(self, fn, *args, **kwargs): pass cannot be used thus: submit(foo, 1, 2, fn=bar) I can see two options: either mangle the named parameters: def submit(__self, __fn, *args, **kwargs):

[issue10918] **kwargs unnecessarily restricted in API

2011-01-16 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - bquinlan nosy: +bquinlan versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10918 ___

[issue10919] Environment variables are not expanded in _winreg when using REG_EXPAND_SZ.

2011-01-16 Thread Richard Nienaber
New submission from Richard Nienaber rjniena...@gmail.com: According to Microsoft documentation (http://msdn.microsoft.com/en-us/library/ms724884(v=vs.85).aspx) when using the REG_EXPAND_SZ value type, environment variables (e.g. %programfiles%) should be expanded to their values (e.g.

[issue10919] Environment variables are not expanded in _winreg when using REG_EXPAND_SZ.

2011-01-16 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Assigning to myself. Relevant IronPython issue: http://ironpython.codeplex.com/workitem/24042 -- assignee: - brian.curtin components: +Extension Modules, Windows -Library (Lib) nosy: +brian.curtin stage: - needs patch type: - behavior

[issue10920] cp65001, PowerShell, Python crash.

2011-01-16 Thread Jean-Michel Fauth
New submission from Jean-Michel Fauth wxjmfa...@gmail.com: Just relying a discussion open on comp.lang.python, http://groups.google.com/group/comp.lang.python/browse_thread/thread/771aa9081ad6584c# 1) Windows 7, open PowerShell 2) Change code page to cp65001 3) Launch Python3.1.2 or

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: w00t -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10917 ___ ___ Python-bugs-list

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-01-16 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: That line crept in somehow. As it's been there since the 2010-12-24 release and you're the first one to have a problem with it (and you've already fixed it), it looks like a new upload isn't urgently needed (I don't have any other

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Not sure I understand you... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10917 ___ ___

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Nevermind. It's just another word for gr8. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10917 ___

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Well, that really grates on the eyes. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10917 ___

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/1/16 anatoly techtonik rep...@bugs.python.org: anatoly techtonik techto...@gmail.com added the comment: Nevermind. It's just another word for gr8. Well, it really grates on the eyes. --

[issue10917] PEP 333 link to CGI specification is broken

2011-01-16 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: No surprises. Core Python community is so old that it is unlikely that people there ever experienced online gameplay. The only online game they've ever installed was probably EVE Online and if they've installed it - that was just

[issue10920] cp65001, PowerShell, Python crash.

2011-01-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10920 ___ ___

[issue10920] cp65001, PowerShell, Python crash.

2011-01-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Probably a legitimate crash (aka deliberate abort), since Python needs an encoding for its standard input/output text streams, and the encoding suggested by the system (cp65001) isn't supported. -- nosy: +pitrou

[issue10911] cgi: add more tests

2011-01-16 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- type: - feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10911 ___

[issue10920] cp65001, PowerShell, Python crash.

2011-01-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: PS D:\jm chcp 65001 Page de codes active : 65001 Please don't do that: it is useless (it doesn't help to display or read more unicode characters) and it breaks Windows console: see issue #1602 (especially msg120414 and

[issue10914] Python sub-interpreter test

2011-01-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: +1 for this kind of tests. But I would not have their source in the official Modules directory. I expect that there will be several tests of this kind, each one with different modules to import, functions to run, global settings to

[issue10920] cp65001, PowerShell, Python crash.

2011-01-16 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If the crash is the following message, this issue is a duplicate of #6058. --- PS D:\jm c:\python31\python.exe Fatal Python error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: cp65001 --- It

[issue10914] Python sub-interpreter test

2011-01-16 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: There's already precedent for test modules in Modules/ what with xxmodule.c and _testcapimodule.c. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue10919] Environment variables are not expanded in _winreg when using REG_EXPAND_SZ.

2011-01-16 Thread Richard Nienaber
Richard Nienaber rjniena...@gmail.com added the comment: Further documentation on the RegEnumValue function (used by the _winreg module): http://msdn.microsoft.com/en-us/library/ms724865(v=vs.85).aspx. The documentation doesn't say whether the string is expanded or not on retrieval. Given

[issue10914] Python sub-interpreter test

2011-01-16 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is it possible to use distutils to compile this test, and remove it from the Makefile? I'm not aware that distutils is able to compile applications rather than extension modules, but that would certainly be better than a rule in the Makefile,

[issue10914] Python sub-interpreter test

2011-01-16 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: In distutils.command.config, config().try_run(body) is probably what we need. Now, I don't know how to use it... -- ___ Python tracker rep...@bugs.python.org

[issue10921] imaplib: Internaldate2tuple crashes, does not handle negative TZ offsets, does not handle DST correctly, and outputs localtime (not UTC)

2011-01-16 Thread Joe Peterson
New submission from Joe Peterson j...@skyrush.com: Internaldate2tuple() is broken in several ways. The last two issues have existed in the code for some time. New issues in Python 3: 1. It crashes with KeyError. This is because the Mon2num dictionary's keys are strings, not bytes objects

[issue10921] imaplib: Internaldate2tuple crashes, does not handle negative TZ offsets, does not handle DST correctly, and outputs localtime (not UTC)

2011-01-16 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10921 ___ ___ Python-bugs-list mailing

[issue10921] imaplib: Internaldate2tuple() crashes, does not handle negative TZ offsets, does not handle DST correctly, and outputs localtime (not UTC)

2011-01-16 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: -- title: imaplib: Internaldate2tuple crashes, does not handle negative TZ offsets, does not handle DST correctly, and outputs localtime (not UTC) - imaplib: Internaldate2tuple() crashes, does not handle negative TZ offsets, does not handle

[issue10915] Make the PyGILState API compatible with multiple interpreters

2011-01-16 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: Nick, I think you are making the wrong assumption that an external threads will only ever call into the same interpreter. This is not the case. In mod_wsgi and mod_python there is a pool of external threads that for distinct HTTP

[issue10921] imaplib: Internaldate2tuple() crashes, does not handle negative TZ offsets, does not handle DST correctly

2011-01-16 Thread Joe Peterson
Joe Peterson j...@skyrush.com added the comment: Regarding problem #4, it actually appears that returning local time is the right thing to do, since it matches the behavior of Time2Internaldate(). Returning UTC, as the doc states, would potentially break IMAP append() that can include an

[issue10921] imaplib: Internaldate2tuple() crashes, does not handle negative TZ offsets, does not handle DST correctly

2011-01-16 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: Removed file: http://bugs.python.org/file20419/imaplib_Internaldate2tuple.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10921 ___

[issue10921] imaplib: Internaldate2tuple() crashes, does not handle negative TZ offsets, does not handle DST correctly

2011-01-16 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: -- components: -Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10921 ___ ___

[issue10921] imaplib: Internaldate2tuple() crashes, does not handle negative TZ offsets, does not handle DST correctly

2011-01-16 Thread Joe Peterson
Changes by Joe Peterson j...@skyrush.com: -- components: +Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10921 ___ ___

[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-01-16 Thread Daniel Neuhäuser
New submission from Daniel Neuhäuser dasdas...@googlemail.com: Upon trying to create a proxy I stumbled upon this exception: Traceback (most recent call last): File foo.py, line 11, in module p.__class__.__call__(p) SystemError: PyEval_EvalCodeEx: NULL globals Investigating further led

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-16 Thread Piotr Maślanka
New submission from Piotr Maślanka piotr.masla...@henrietta.com.pl: Python 2.7.1(x86 MSI), binary downloaded from python.org, hangs quite reliably. Code: with open(threadspecific, 'ab') as x: txt = unicode(str_or_unicode_parameter).encode('utf8') x.write(txt+'\r\n') However, it doesn't hang

[issue10922] Unexpected exception when calling function_proxy.__class__.__call__(function_proxy)

2011-01-16 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: I think this is a duplicate of issue #9756: `methoddescr_call()` checks whether the given argument is acceptable as self argument and does so using `PyObject_IsInstance()`. As the class in the given code returns the type of the

[issue10923] Python 2.7 hangs on Unicode+threading

2011-01-16 Thread Piotr Maślanka
Piotr Maślanka piotr.masla...@henrietta.com.pl added the comment: I runned it over again with code: print 'Acquiring lock' self.loglock.acquire() print 'Attempting to convert' if type(text) == unicode: text = text.encode('utf8', errors='strict') print 'Opening '+threadspecific with

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-01-16 Thread Sean Reifschneider
New submission from Sean Reifschneider j...@tummy.com: Over the years I've written the same code over and over to create a random salt string of 2 characters. Worse, the Modular Crypt Format is difficult to find documentation on, so creating stronger hashed passwords is difficult to get