Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Steven D'Aprano
On Sun, 25 Jan 2009 12:01:16 -0800, Russ P. wrote: On Jan 25, 10:04 am, Mark Wooding m...@distorted.org.uk wrote: But what if I want an automatic check to verify that I am using it as the author intended? Is that unreasonable? You mean that you can't /tell/ whether you typed

Re: Python 3: range objects cannot be sliced

2009-01-25 Thread Terry Reedy
Fuzzyman wrote: On Jan 25, 2:28 pm, Alan G Isaac alan.is...@gmail.com wrote: On 1/16/2009 3:13 PM Alan G Isaac apparently wrote: It is documented: http://docs.python.org/3.0/library/stdtypes.html#sequence-types-str-b... But then again, the opposite is also documented, since `range` is a

Re: v = json.loads({'test':'test'})

2009-01-25 Thread Steven D'Aprano
On Sun, 25 Jan 2009 19:04:44 -0500, Steve Holden wrote: Andreas Waldenburger wrote: On Sun, 25 Jan 2009 23:51:41 +0100 Diez B. Roggisch de...@nospam.web.de wrote: gert schrieb: {'test': 'test'} {test: test} It can not be that hard to support both notation can it ? It's not hard, but

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Steven D'Aprano
On Mon, 26 Jan 2009 00:59:48 +, Steven D'Aprano wrote: How is this scenario different from an API change where public_method() gets changed to method()? Sorry, that's a poor example, since you were talking about attributes rather than methods. Must stop posting before coffee *wink*

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Paul Rubin
Steven D'Aprano st...@remove-this-cybersource.com.au writes: How is this scenario different from an API change where self.some_attribute gets changed to self.attribute? That would be a backward incompatible change to a published interface, something that should not be done without a good

Re: Cartesian Product of two lists (itertools)

2009-01-25 Thread Terry Reedy
Thorsten Kampe wrote: Hi, is there a way to make itertools.product generate triples instead of pairs from two lists? For example: list1 = [1, 2]; list2 = [4, 5]; list3 = [7, 8] from itertools import product list(product(list1, list2, list3)) [(1, 4, 7), (1, 4, 8), (1, 5, 7), (1, 5, 8), (2,

Re: Why this code is working?

2009-01-25 Thread r
On Jan 23, 10:02 pm, alex23 wuwe...@gmail.com wrote: [snip] How's that Python bridge to SketchUp coming along? It's been months already, surely you've invested as much effort into learning Python as you have in talking about it? Thanks for asking Alex23, The ball is rolling on the Python

Re: What is intvar?

2009-01-25 Thread r
W. eWatson, I contacted the author of New Mexico Techs Introduction to Tkinter a couple of weeks ago. He is going to update the reference material with a few missing widgets and some info on Photo and Bitmap classes. I really love the NMT layout and use it quite often. Fredricks Tkinterbook is

Re: Newby: how to transform text into lines of text

2009-01-25 Thread Tim Chase
Scott David Daniels wrote: Here's how I'd do it: with open('deheap/deheap.py', 'rU') as source: for line in source: print line.rstrip() # Avoid trailing spaces as well. This should handle \n, \r\n, and \n\r lines. Unfortunately, a raw rstrip() eats other

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Steven D'Aprano
On Sun, 25 Jan 2009 17:15:47 -0800, Paul Rubin wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: How is this scenario different from an API change where self.some_attribute gets changed to self.attribute? That would be a backward incompatible change to a published

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Paul Rubin
Steven D'Aprano st...@remove-this-cybersource.com.au writes: We're not talking specifically about Python standard library changes, we're talking about any project which may have more entertaining *cough* policies regarding API changes. Oh, yes, I see what you mean. That's a problem even in

Python C API (PyObject_CallMethod clear object)

2009-01-25 Thread googler . 1 . webmaster
Hi! I have a problm with deallocating stuff. I call a function with this command: PyObject *rvalue = PyObject_CallMethod(obj, execute,,NULL); if(rvalue==NULL) PyErr_Print(); else Py_DECREF(rvalue); Can it be, that something is missing here? Imagine I allocate an object of a type: t =

Re: Why this code is working?

2009-01-25 Thread r
Actually Alex, i have not stopped working on getting Python into SU in one form or another since that crazy post of mine almost 3 moths ago. I have many people in the SU community asking me almost daily when i will get finished. I have a lot of work to do at this point but i will keep fighting

Re: Byte oriented data types in python

2009-01-25 Thread Stephen Hansen
However, as you keep claiming that the struct module is what should be used, I must be missing something about the struct module. You seem to be focusing overly on the C Struct part of the description of what the struct module does, instead of the part where it says, packed binary data and

Re: Newby: how to transform text into lines of text

2009-01-25 Thread Gabriel Genellina
En Sun, 25 Jan 2009 23:30:33 -0200, Tim Chase python.l...@tim.thechases.com escribió: Unfortunately, a raw rstrip() eats other whitespace that may be important. I frequently get tab-delimited files, using the following pseudo-code: def clean_line(line): return

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: On Jan 25, 10:04 am, Mark Wooding m...@distorted.org.uk wrote: But what if you type mumble._seekrit in several places, then the library implementer decides to give in to your nagging and makes it public by changing it to mumble.seekrit. There's a

Re: Cartesian Product of two lists (itertools)

2009-01-25 Thread Mark Wooding
Thorsten Kampe thors...@thorstenkampe.de writes: [((1, 4), 7), ((1, 4), 8), ((1, 5), 7), ((1, 5), 8), ((2, 4), 7), ((2, 4), 8), ((2, 5), 7), ((2, 5), 8)] [...] What's the best way to pre-process the arguments to itertools.product or to post-process the result of itertools.product to get

Re: A java hobbyist programmer learning python

2009-01-25 Thread TheFlyingDutchman
        If you're building an extension tree, you'll either have to supply layers of getter/setter methods, or hand-mangle references to attributes defined in the superclass.         Say you start with a Point2D class, and make the X, Y coordinates double underscore.         Now extend it

Re: Efficient multi-slicing technique?

2009-01-25 Thread python
Tim, I'm not sure if it's more efficient, but there's the struct module: http://docs.python.org/library/struct.html Thanks for your suggestion. I've been experimenting with this technique, but my initial tests don't show any performance improvements over using slice() objects to slice a

Re: v = json.loads({'test':'test'})

2009-01-25 Thread Matt Nordhoff
gert wrote: On Jan 25, 11:16 pm, Дамјан Георгиевски gdam...@gmail.com wrote: raise ValueError(errmsg(Expecting property name, s, end)) http://docs.python.org/library/json.html What am I doing wrong ? try this v = json.loads('{test:test}') JSON doesn't support single quotes, only double

Re: Newby: how to transform text into lines of text

2009-01-25 Thread John Machin
On Jan 26, 1:03 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sun, 25 Jan 2009 23:30:33 -0200, Tim Chase   python.l...@tim.thechases.com escribió: Unfortunately, a raw rstrip() eats other whitespace that may be   important.  I frequently get tab-delimited files, using the

Re: Python C API (PyObject_CallMethod clear object)

2009-01-25 Thread Gabriel Genellina
En Sun, 25 Jan 2009 23:46:01 -0200, googler.1.webmas...@spamgourmet.com escribió: I have a problm with deallocating stuff. I call a function with this command: PyObject *rvalue = PyObject_CallMethod(obj, execute,,NULL); if(rvalue==NULL) PyErr_Print(); else Py_DECREF(rvalue); Can it

Where to put configuration/data files

2009-01-25 Thread Jay Bloodworth
Is there a nice cross-platform way to figure out the Right (tm) place to store configuration files and other data? Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: OCaml, Language syntax, and Proof Systems

2009-01-25 Thread Xah Lee
Just a quick relpy. Jon's tutorial: http://www.ffconsultancy.com/products/ocaml_for_scientists/chapter1.html is by far the best tutorial of Ocaml. It is far better than the official intro to ocaml at “caml.inria.fr” or the popularly cited tutorial at “ocaml-tutorial.org” . Jon's tutorial,

Re: seeking to improve Python skills

2009-01-25 Thread Aahz
In article mailman.7816.1232726406.3487.python-l...@python.org, mk mrk...@gmail.com wrote: However, unit tests are a tougher cookie, do you have any resource that's truly worth recommending for learning unit tests? Start with the doctest module. -- Aahz (a...@pythoncraft.com) *

Re: Securing a database

2009-01-25 Thread Bryan Olson
kt83...@gmail.com wrote: Thank you very much Bryan. It does look like this is out of my league. As Peter Pearson noted, It is out of *everyone's* league. And Peter used to work for Cryptography Research, a small company that scored as high in this league as anyone. Maybe you can advance the

Re: OCaml, Language syntax, and Proof Systems

2009-01-25 Thread Jon Harrop
Xah Lee wrote: ok, i've been reading these Ocaml tutorials in the past few days: intro to ocaml, from official site http://caml.inria.fr/pub/docs/manual-ocaml/manual003.html “Objective CAML Tutorial”, most cited tutorial on the web http://www.ocaml-tutorial.org/ The best one, is the

Re: var is None vs. var == None

2009-01-25 Thread Roger
And, just for completeness, the is test is canonical precisely because the interpreter guarantees there is only ever one object of type None, so an identity test is always appropriate. Even the copy module doesn't create copies ... Does the interpreter guarantee the same for False and True

Re: var is None vs. var == None

2009-01-25 Thread Roger
Why do you think it matters? Intellectual curiosity hence why I asked the question. It doesn't matter if I know why the sky is blue but it's interesting to know regardless. -- http://mail.python.org/mailman/listinfo/python-list

Re: A different kind of interface

2009-01-25 Thread Дамјан Георгиевски
I don't know what an IBQ is. +IBQ- seems to be the way your newsreader displays the dashes that where in Ben's posting. I see em dash characters there: I see IBQ too ... also weird is that he has Content-Type: text/plain; charset=utf-7 -- дамјан ( http://softver.org.mk/damjan/ ) Give me

Python

2009-01-25 Thread porkodi
www.easythings5.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: *.python.org broken?

2009-01-25 Thread tgvaughan
Hi Tim, thanks for your post. I could resolve but not ping, which has been the situation for the last couple of days. But not any more! I was just in the process of checking whether or not I could connect via another ISP when I discovered that the problem has apparently fixed itself. Which is

Re: Securing a database

2009-01-25 Thread kt83313
On Jan 23, 4:41 pm, Bryan Olson fakeaddr...@nowhere.org wrote: kt83...@gmail.com wrote: Anyways, if we can make it real hard for them to analyze also, I think we are in the good - esp since the clients are not extremely rich enough to go for professional analyzers -- Sounds like you have

Re: I'm a python addict !

2009-01-25 Thread Andreas Waldenburger
On Sat, 24 Jan 2009 23:53:17 + MRAB goo...@mrabarnett.plus.com wrote: Terry Reedy wrote: For a Python 'program', see http://xkcd.com/534/ It doesn't follow PEP 8! So Randall can just forget about getting xkcd in the Standard Library. Let this be an example to all of you­! /W -- My

Re: Securing a database

2009-01-25 Thread Peter Pearson
On Fri, 23 Jan 2009 06:10:31 -0800 (PST), kt83...@gmail.com wrote: On Jan 23, 4:41 pm, Bryan Olson fakeaddr...@nowhere.org wrote: [snip] Look up DRM technology companies, such as CloakWare, Macrovision, and Cryptography Research. If you have a modest number of customers, hardware solutions

Re: v = json.loads({'test':'test'})

2009-01-25 Thread Matt Nordhoff
Matt Nordhoff wrote: gert wrote: On Jan 25, 11:16 pm, Дамјан Георгиевски gdam...@gmail.com wrote: raise ValueError(errmsg(Expecting property name, s, end)) http://docs.python.org/library/json.html What am I doing wrong ? try this v = json.loads('{test:test}') JSON doesn't support single

Why is it faster the second time ?

2009-01-25 Thread jalanb3
Hello the group, I am wondering why doctests run slower the first time. In the transcript below try is a script which finds and runs doctests in the current directory. It also shows how long it takes to run these tests. I added a new test which searches recursively for files given a path, and it

Re: Efficient multi-slicing technique?

2009-01-25 Thread Tim Chase
I'm not sure if it's more efficient, but there's the struct module: http://docs.python.org/library/struct.html Thanks for your suggestion. I've been experimenting with this technique, but my initial tests don't show any performance improvements over using slice() objects to slice a string.

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Russ P.
On Jan 25, 5:31 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: It seems to me that Russ' latest objection to _private names is not specific to _private names. The same problem: You will get no warning at all. You will just be inadvertently creating a new private attribute

Re: Counting number of objects

2009-01-25 Thread Mark Wooding
Andreas Waldenburger geekm...@usenot.de writes: On Sun, 25 Jan 2009 09:23:35 -0800 (PST) Kottiyath n.kottiy...@gmail.com wrote: class a(object): counter = 0 def __new__(cls, *args, **kwargs): a.counter += 1 return object.__new__(cls, *args, **kwargs) Hmm.

Re: Why is it faster the second time ?

2009-01-25 Thread Philip Semanchuk
On Jan 23, 2009, at 12:46 PM, jalanb3 wrote: Hello the group, I am wondering why doctests run slower the first time. In the transcript below try is a script which finds and runs doctests in the current directory. It also shows how long it takes to run these tests. I added a new test which

Re: Python 3: range objects cannot be sliced

2009-01-25 Thread John Machin
On Jan 26, 12:08 pm, Terry Reedy tjre...@udel.edu wrote: Fuzzyman wrote: On Jan 25, 2:28 pm, Alan G Isaac alan.is...@gmail.com wrote: On 1/16/2009 3:13 PM Alan G Isaac apparently wrote:   It is documented:  http://docs.python.org/3.0/library/stdtypes.html#sequence-types-str-b... But

Re: Plugin system, RuntimeWarning: Parent module 'ext_abc' not found while handling absolute import

2009-01-25 Thread Gabriel Genellina
En Sun, 25 Jan 2009 04:55:47 -0200, Torsten Mohr tm...@s.netic.de escribió: i try to write a plugin system that i want to use to let users extend a module that i write. Within the module there is an extension loader that loads an extension module. This extension module should be able to

Re: Byte oriented data types in python

2009-01-25 Thread John Machin
On Jan 26, 10:53 am, Martin v. Löwis mar...@v.loewis.de wrote: It deals with variable sized fields just fine: dtype = 18 dlength = 32 format = !BB%ds % dlength rawdata = struct.pack(format, (dtype,dlength,data)) I wouldn't call this just fine, though - it involves a % operator to

Re: ob_type in shared memory

2009-01-25 Thread Mark Wooding
Aaron Brady castiro...@gmail.com writes: I am writing an extension using shared memory. I need a data type that is able to reassign its 'ob_type' field depending on what process is calling it. That sounds scary! Object 'A' is of type 'Ta'. When process 'P' is looking at it, it needs to

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Mark Wooding
Russ P. russ.paie...@gmail.com writes: [snip stuff I don't disagree with] That makes renaming and refactoring riskier in general in Python than in statically typed languages with enforced access restrictions. More care and attention to detail is needed to do it right in Python. In fact, I

Re: var is None vs. var == None

2009-01-25 Thread Terry Reedy
Roger wrote: And, just for completeness, the is test is canonical precisely because the interpreter guarantees there is only ever one object of type None, so an identity test is always appropriate. Even the copy module doesn't create copies ... Does the interpreter guarantee the same for

Re: Python

2009-01-25 Thread Terry Reedy
porkodi wrote: www.easythings5.blogspot.com Ad spam site with pirated semi-gibberish not even containing 'Python'. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python

2009-01-25 Thread skip
Terry porkodi wrote: www.easythings5.blogspot.com Terry Ad spam site with pirated semi-gibberish not even containing Terry 'Python'. Yeah, my fault. I was poking through a bunch of held messages and saw Pyhon as the subject. Didn't even look at the message itself until I saw

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Russ P.
On Jan 25, 7:56 pm, Mark Wooding m...@distorted.org.uk wrote: Russ P. russ.paie...@gmail.com writes: [snip stuff I don't disagree with] That makes renaming and refactoring riskier in general in Python than in statically typed languages with enforced access restrictions. More care and

Re: USB in python

2009-01-25 Thread Tim Roberts
Astan Chee astan.c...@al.com.au wrote: Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is given about 5V (or similar to whatever the power pin is

Re: Newby: how to transform text into lines of text

2009-01-25 Thread Gabriel Genellina
En Mon, 26 Jan 2009 00:23:30 -0200, John Machin sjmac...@lexicon.net escribió: On Jan 26, 1:03 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: It's so easy that don't doing that is just inexcusable lazyness :) Your own example, written using the csv module: import csv f =

Re: v = json.loads({'test':'test'})

2009-01-25 Thread Tim Roberts
Andreas Waldenburger geekm...@usenot.de wrote: But as gert says, the standard is broken by many many browsers already We're debating relatively picky semantic point, so I won't feel bad by being picky. Browsers have nothing to do with the JSON standard. JSON is not Javascript, nor is it a

Re: USB in python

2009-01-25 Thread Astan Chee
Tim Roberts wrote: Sorry, but you have NOT created a USB device, and I sincerely hope you do not try to plug it in to a real USB port. Sorry, by USB device, I meant a device that is powered/activated by a bunch of wires that I want to control using a computer and since I had a spare USB

Re: String comparision

2009-01-25 Thread S.Selvam Siva
Thank You Gabriel, On Sun, Jan 25, 2009 at 7:12 AM, Gabriel Genellina gagsl-...@yahoo.com.arwrote: En Sat, 24 Jan 2009 15:08:08 -0200, S.Selvam Siva s.selvams...@gmail.com escribió: I am developing spell checker for my local language(tamil) using python. I need to generate alternative

Re: Monitor a FTP site for arrival of new/updated files

2009-01-25 Thread Michael Iatrou
When the date was Sunday 25 January 2009, pyt...@bdurham.com wrote: Any suggestions on a best practice way to monitor a remote FTP site for the arrival of new/updated files? For a custom solution, you may want to take a look to pyinotify: http://pyinotify.sourceforge.net/ --

Re: Does Python really follow its philosophy of Readability counts?

2009-01-25 Thread Hendrik van Rooyen
Paul Rubin http://phr...@nospam.invalid wrote: Steven D'Aprano st...@remove-this-cybersource.com.au writes: We're not talking specifically about Python standard library changes, we're talking about any project which may have more entertaining *cough* policies regarding API changes.

[issue5048] Extending itertools.combinations

2009-01-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I've seen requests for combinations with replacement come up on c.l.p. a few times in the past, though it's never been clear whether there was a real need or whether the interest was driven by homework or curiosity. -1 for sequences in the

[issue5048] Extending itertools.combinations

2009-01-25 Thread Konrad
Konrad kon...@gmail.com added the comment: I'm afraid I don't have any real-world use cases. Originally, I assumed that dropping the length argument will make the function iterate over *all* combinations, which would enable me to write somehow twisted, one- liner for _inefficiently_ solving

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2009-01-25 Thread Luke Kenneth Casson Leighton
New submission from Luke Kenneth Casson Leighton l...@lkcl.net: class EnvironTests(mapping_tests.BasicTestMappingProtocol): check that os.environ object conform to mapping protocol type2test = None def _reference(self): return {KEY1:VALUE1, KEY2:VALUE2, KEY3:VALUE3} def

[issue1717] Get rid of more references to __cmp__

2009-01-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm wondering how to move forward with this issue. Might it make sense to break the current monster patch into a series of more-easily reviewed patches? I was thinking of something like: - patch 1 (Python code): remove all uses of cmp

[issue1717] Get rid of more references to __cmp__

2009-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Quick comments on your patch: - two files have unwanted modifications on non-ASCII characters (Lib/heapq.py and Lib/sqlite3/test/hooks.py) - you haven't renamed __cmp__ to _cmp in Lib/xmlrpc/client.py: deliberate? - in Lib/heapq.py, there's a

[issue1717] Get rid of more references to __cmp__

2009-01-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Antoine. Here's a new patch. - two files have unwanted modifications on non-ASCII characters (Lib/heapq.py and Lib/sqlite3/test/hooks.py) Fixed, I think. Could you double check? - you haven't renamed __cmp__ to _cmp in

[issue5048] Extending itertools.combinations

2009-01-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: that dropping the length argument will make the function iterate over *all* combinations, Now *this* sounds more useful to me: an itertool that generates *all* subsets of a list. It's quite easy to do with existing itertools, though,

[issue5052] This module should be kept compatible with Python 2.1. in distutils code

2009-01-25 Thread Akira Kitada
New submission from Akira Kitada akit...@gmail.com: In distutils package, there are many files that saying This module should be kept compatible with Python 2.1. According to Tarek Ziadé, this is not valid statement anymore. -- components: Distutils messages: 80507 nosy: akitada

[issue5052] This module should be kept compatible with Python 2.1. in distutils code

2009-01-25 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: If PEP 291 is still valid, distutils needs only remain compatible with the version of Python it is distributed with. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5052

[issue5052] This module should be kept compatible with Python 2.1. in distutils code

2009-01-25 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- assignee: - tarek nosy: +tarek versions: -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5052 ___

[issue5053] http.client.HTTPMessage.getallmatchingheaders()

2009-01-25 Thread Mike Watkins
New submission from Mike Watkins pyt...@mikewatkins.ca: HTTPMessage.getallmatchingheaders() stopped working sometime after Python 3.0 release. In a recent (1 day ago) svn update the implementation says the method was copied from rfc822.message; the Python 3.x implementation is broken

[issue1717] Get rid of more references to __cmp__

2009-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed, I think. Could you double check? It's ok! ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1717 ___

[issue5055] Distutils-SIG page needs to be updated

2009-01-25 Thread Akira Kitada
New submission from Akira Kitada akit...@gmail.com: Distutils-SIG page [1] and links there are considerably outdated. They need to be updated to reflect current situation. [1] http://www.python.org/community/sigs/current/distutils-sig/ -- assignee: georg.brandl components: Distutils,

[issue5055] Distutils-SIG page needs to be updated

2009-01-25 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- nosy: +tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5055 ___ ___ Python-bugs-list mailing

[issue5056] PyAPI assumes OS can access shared data in loadable modules (windows can't)

2009-01-25 Thread Luke Kenneth Casson Leighton
New submission from Luke Kenneth Casson Leighton l...@lkcl.net: an assumption has been made in the python core api that all operating systems dynamic module loading can access data segments. windows _cannot_ do this. the workaround has been to statically link absolutely _everything_ into a

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2009-01-25 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: The peephole optimizer can optimize indexed access to an unicode constant which does not give the same result in UCS-2 and UCS-4 builds. As a result, the pyc file is not portable across those builds. This is something I witnessed when

[issue5057] Unicode-width dependent optimization leads to non-portable pyc file

2009-01-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.6, Python 2.7, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5057 ___

[issue4753] Faster opcode dispatch on gcc

2009-01-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in py3k in r68924. I won't backport it to trunk myself but it should be easy enough, provided people are interested. -- resolution: - accepted stage: patch review - committed/rejected status: open - pending versions: -Python

[issue5055] Distutils-SIG page needs to be updated

2009-01-25 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Not my issue. -- assignee: georg.brandl - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5055 ___

[issue5058] stop pgen.exe from generating CRLF-ended files and causing mayhem with win32-based patch submissions

2009-01-25 Thread Luke Kenneth Casson Leighton
New submission from Luke Kenneth Casson Leighton l...@lkcl.net: diff --git a/Parser/pgenmain.c b/Parser/pgenmain.c index fc27a2c..a4d4911 100644 --- a/Parser/pgenmain.c +++ b/Parser/pgenmain.c @@ -49,7 +49,7 @@ main(int argc, char **argv) graminit_h = argv[2]; graminit_c =

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2009-01-25 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The test actually doesn't rely on COMSPEC. On systems that have /bin/sh, COMSPEC should have no relevance. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue4863] deprecate/delete distutils.mwerkscompiler...

2009-01-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r68929 and r68931 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4863 ___

[issue3350] multiprocessing adds built-in types to the global copyreg.dispatch_table

2009-01-25 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Alexandre, this behavior no longer occurs in trunk, and a custom ForkingPickler was added as part of issue 3125 I am going to close this as fixed, but please reopen if there is continued undesired behavior. -- resolution: - fixed

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Ross Light
Ross Light rlig...@gmail.com added the comment: Hello, my name is Ross Light. I've written a patch for this, but this is my first patch, so someone please review. This does pass all regression tests, but I did have to modify the test_sys case to not check for sys.version_info being a tuple.

[issue4137] update SIG web pages

2009-01-25 Thread Akira Kitada
Changes by Akira Kitada akit...@gmail.com: -- assignee: - georg.brandl components: +Documentation nosy: +akitada, georg.brandl, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4137 ___

[issue5056] PyAPI assumes OS can access shared data in loadable modules (windows can't)

2009-01-25 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton l...@lkcl.net added the comment: apologies - case of mistaken identity! patch attached - beginnings of moving data over to accessor-functions. attached here because it is relevant for vector-table future work. please close this bug. -- keywords: +patch

[issue5055] Distutils-SIG page needs to be updated

2009-01-25 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: akitada, can you propose wording (or, more specifically, a patch)? Notice that this is really the Python bug tracker, so issues with python.org are not normally tracked here. In any case, if you want to work on this: the sources live in

[issue5055] Distutils-SIG page needs to be updated

2009-01-25 Thread Martin v. Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - duplicate status: open - closed superseder: - update SIG web pages ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5055 ___

[issue4863] deprecate/delete distutils.mwerkscompiler...

2009-01-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Probably this patch is needed. :-) -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file12856/remaining.patch ___ Python tracker rep...@bugs.python.org

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: You also need to add unit tests for the new behavior you've implemented. -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4285

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Ross Light
Ross Light rlig...@gmail.com added the comment: Oh yes, you're right. Sorry! Added file: http://bugs.python.org/file12857/patch-4285b.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4285 ___

[issue4863] deprecate/delete distutils.mwerkscompiler...

2009-01-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: right, applying it now. sorry about that ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4863 ___ ___

[issue5053] http.client.HTTPMessage.getallmatchingheaders()

2009-01-25 Thread Mike Watkins
Mike Watkins pyt...@mikewatkins.ca added the comment: Trivial patch for http.client attached. -- keywords: +patch Added file: http://bugs.python.org/file12858/http.client.py.patch ___ Python tracker rep...@bugs.python.org

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: +1 on this idea -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4285 ___

[issue4863] deprecate/delete distutils.mwerkscompiler...

2009-01-25 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r68933 and r68935, thank you for noticing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4863 ___

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Martin v. Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file12854/patch-4285a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4285 ___

[issue5048] Extending itertools.combinations

2009-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: There is already a powerset() recipe in the docs. It was contributed by Eric Raymond. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5048

[issue5048] Extending itertools.combinations

2009-01-25 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: So there is. Apologies---I'll try to read more carefully next time. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5048 ___

[issue4285] Use a named tuple for sys.version_info

2009-01-25 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: A couple of further comments: - please use tabs for indentation consistently. - please change Doc/library/sys.rst, including adding a versionchanged indication - I find the naming of the macros *Flag confusing; to me, a flag says boolean -

[issue3068] IDLE - Add an extension configuration dialog

2009-01-25 Thread Weeble
Changes by Weeble clockworksa...@gmail.com: -- nosy: +weeble ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3068 ___ ___ Python-bugs-list mailing

[issue5059] Policy.DomainStrict in cookielib example code

2009-01-25 Thread Attila Babo
New submission from Attila Babo attila.b...@gmail.com: Example code at the bottom of cookielib documentation has an error: policy = DefaultCookiePolicy( rfc2965=True, strict_ns_domain=Policy.DomainStrict, blocked_domains=[ads.net, .ads.net]) The corrected version is policy =

[issue5048] Extending itertools.combinations

2009-01-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Am rejecting the OP's request for the reasons cited. Also rejecting the request for a __len__ method on permutations. Ezio or Mark, please open another feature request for combinations_with_replacement() and assign to me.

[issue5056] PyAPI assumes OS can access shared data in loadable modules (windows can't)

2009-01-25 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5056 ___

<    1   2   3   >