Re: Unicode questions

2010-10-25 Thread Chris Rebert
On Sun, Oct 24, 2010 at 10:43 PM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.33.1287519268.2218.python-l...@python.org, Chris Rebert wrote: There is no such thing as plain Unicode representation. UCS-4 or UTF-16 probably come the closest. How do you

Re: Want / Need Genuine Google Adsense Account for Rs.300/-

2010-10-25 Thread sathiya moorthi
Google Adsense Account For Cheap rate : p.sathi...@gmail.com On Wednesday, March 31, 2010 4:18 PM SWETHA wrote: Genuine Google Adsense Account for Rs.300/- We will approve your google adsense approval. We will help you till you get the first adsense check. Please send your mobile

Re: Unicode questions

2010-10-25 Thread Steve Holden
On 10/25/2010 1:42 AM, Lawrence D'Oliveiro wrote: In message mailman.31.1287517442.2218.python-l...@python.org, Petite Abeille wrote: Characters vs. Bytes And why do certain people insist on referring to bytes as “octets”? Because back in the old days bytes were of varying sizes on

Re: HTMLParser not parsing whole html file

2010-10-25 Thread Stefan Behnel
josh logan, 25.10.2010 04:14: I found the error. The HTML file I'm parsing has invalid HTML at line 193. It has something like: a href=mystuff class = stuff Note there is no space between the closing quote for the href tag and the class attribute. I guess I'll go through each file and correct

Re: Exception Handling in Python 3

2010-10-25 Thread Martin v. Loewis
Am 24.10.2010 23:48, schrieb Steve Holden: On 10/24/2010 4:44 PM, John Nagle wrote: Are exception semantics changing in a way which would affect that? No, I don't believe so. I simply felt that the traceback gives too much information in the case where an exception is specifically being

Re: Exception Handling in Python 3

2010-10-25 Thread Steve Holden
On 10/25/2010 2:57 AM, Martin v. Loewis wrote: Am 24.10.2010 23:48, schrieb Steve Holden: On 10/24/2010 4:44 PM, John Nagle wrote: Are exception semantics changing in a way which would affect that? No, I don't believe so. I simply felt that the traceback gives too much information in the

Re: Question on multiple python environments in Apache

2010-10-25 Thread Mario Miri
Why wouldn't you use multiple apache instances? On Fri, Oct 22, 2010 at 11:28 PM, Jeffrey Gaynor jgay...@ncsa.uiuc.eduwrote: I have several different versions of a web app that run under Apache. The issue is that I need to have several different configurations available under several

free Internship in the United States / uk /canada /austraila

2010-10-25 Thread neha shena
free Internship in the United States / uk /canada /austraila Internships are practical experiences that bridge the gap between the educational world and the real world allowing students to understand what is really like to work in the industry of their choice. International internships offer much

init inside def

2010-10-25 Thread targetsmart
Hi, today I just came across a python code snippet where __init__ was defined inside a function.. I am not able to understand the reason why The code snippet was similar like def func1(a,b): def __init__(): func2(a,b) def func2(a,b): if a == b: return True else:

Why flat is better than nested?

2010-10-25 Thread kj
In The Zen of Python, one of the maxims is flat is better than nested? Why? Can anyone give me a concrete example that illustrates this point? TIA! ~kj PS: My question should not be construed as a defense for nested. I have no particular preference for either flat or nested; it all depends

Re: Has Next in Python Iterators

2010-10-25 Thread Kelson Zawack
The example I have in mind is list like [2,2,2,2,2,2,1,3,3,3,3] where you want to loop until you see not a 2 and then you want to loop until you see not a 3. In this situation you cannot use a for loop as follows: foo_list_iter = iter([2,2,2,2,2,2,1,3,3,3,3]) for foo_item in foo_list_iter:

Re: init inside def

2010-10-25 Thread bruno.desthuilli...@gmail.com
On 25 oct, 12:05, targetsmart targetsm...@gmail.com wrote: Hi, today I just came across a python code snippet where __init__ was defined inside a function.. I am not able to understand the reason why The code snippet was similar like def func1(a,b):   def __init__():     func2(a,b)  

Re: Has Next in Python Iterators

2010-10-25 Thread Stefan Behnel
Kelson Zawack, 25.10.2010 12:33: The example I have in mind is list like [2,2,2,2,2,2,1,3,3,3,3] where you want to loop until you see not a 2 and then you want to loop until you see not a 3. In this situation you cannot use a for loop as follows: foo_list_iter = iter([2,2,2,2,2,2,1,3,3,3,3])

Help Need in running a Python Program from terminal

2010-10-25 Thread Raji
Greetings ! I want to analyse and debug a python program ( its a astrology application ) Downloaded the code from here http://openastro.org/?Download http://openastro.org/?Download%20for Ubuntu When i executed the main file python openastro.py from terminal i stopped with the following error

Re: How do I chain methods?

2010-10-25 Thread Stefan Schwarzer
Hi Steve and others, On 2010-10-25 06:08, Steve Holden wrote: On 10/24/2010 11:42 PM, Chris Rebert wrote: On Sun, Oct 24, 2010 at 4:11 PM, James Mills prolo...@shortcircuit.net.au wrote: I don't agree but anyway... I've just not seen it commonly used amongst python programmers. If Python

Re: nntplib and ssl

2010-10-25 Thread Andrew
On Fri, 22 Oct 2010 23:23:31 +0200, Antoine Pitrou wrote: On Fri, 22 Oct 2010 17:02:07 -0400 Andrew n...@none.com wrote: Python's nntplib seems ideal for my purposes, but as far as I can see it doesn't support nntps connections. If I understand nntp correctly (I may not) that means, among

Re: ftplib - Did the whole file get sent?

2010-10-25 Thread Brendan
On Oct 23, 1:03 pm, Sean DiZazzo half.ital...@gmail.com wrote: On Oct 22, 10:48 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 22 Oct 2010 22:03:38 -0700, Sean DiZazzo wrote: How can I assure him (and the client) that the transfer completed successfully like my

Re: embarrassing class question

2010-10-25 Thread Brendan
On Oct 22, 2:21 pm, Peter Pearson ppear...@nowhere.invalid wrote: On Fri, 22 Oct 2010 07:49:39 -0700 (PDT), Brendan wrote: [snip] x.py class X(object):     pass y.py import x class Y(x.X):     pass z.py import x import y class ZX(x.X):     pass class ZY(y.Y):  

Descriptors and decorators

2010-10-25 Thread Joost Molenaar
WebOb contains this little nugget of code that allows you to define a decorator that works on both methods and functions: class Decorator(object): def __init__(self, func): self.func = func def __get__(self, object, type=None): if type is None: return self

Re: ftplib - Did the whole file get sent?

2010-10-25 Thread sjm
On Oct 23, 2:03 am, Sean DiZazzo half.ital...@gmail.com wrote: I follow every ftp put (STOR) with a dir command. Then if the recipient claims that they never got it (or did not get all of it), I have evidence that they did and that their byte count is the same as mine. This does not entirely

Re: Descriptors and decorators

2010-10-25 Thread bruno.desthuilli...@gmail.com
On 25 oct, 14:15, Joost Molenaar j.j.molen...@gmail.com wrote: WebOb contains this little nugget of code that allows you to define a decorator that works on both methods and functions: class Decorator(object):     def __init__(self, func):         self.func = func     def __get__(self,

Re: Why flat is better than nested?

2010-10-25 Thread Alex Willmer
On Oct 25, 11:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested?  Why?  Can anyone give me a concrete example that illustrates this point? I take this as a reference to the layout of the Python standard library and other packages i.e.

Re: Has Next in Python Iterators

2010-10-25 Thread Jussi Piitulainen
Kelson Zawack writes: The example I have in mind is list like [2,2,2,2,2,2,1,3,3,3,3] where you want to loop until you see not a 2 and then you want to loop until you see not a 3. In this situation you cannot use a for loop as follows: ... because it will eat the 1 and not allow the second

Re: Why flat is better than nested?

2010-10-25 Thread bruno.desthuilli...@gmail.com
On 25 oct, 15:34, Alex Willmer a...@moreati.org.uk wrote: On Oct 25, 11:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested?  Why?  Can anyone give me a concrete example that illustrates this point? I take this as a reference to the

Re: Why flat is better than nested?

2010-10-25 Thread Robin Becker
On 25/10/2010 11:07, kj wrote: In The Zen of Python, one of the maxims is flat is better than nested? Why? Can anyone give me a concrete example that illustrates this point? ... I believe that the following illustrates the nesting issue (I think this is from somewhere in Chomsky)

downcasting problem

2010-10-25 Thread Nikola Skoric
Hi everybody, I need to downcast an object, and I've read repeatedly that if you need to downcast, you did something wrong in the design phase. So, instead of asking how do you downcast in python, let me explain my situation. I have a 2-pass parser. 1st pass ends up with a bunch of superclass

Re: Help Need in running a Python Program from terminal

2010-10-25 Thread Philip Semanchuk
On Oct 25, 2010, at 7:16 AM, Raji wrote: Greetings ! I want to analyse and debug a python program ( its a astrology application ) Downloaded the code from here http://openastro.org/?Download http://openastro.org/?Download%20for Ubuntu When i executed the main file python

Re: Has Next in Python Iterators

2010-10-25 Thread Hrvoje Niksic
Kelson Zawack zawack...@gis.a-star.edu.sg writes: Iterators however are a different beast, they are returned by the thing they are iterating over and thus any special cases can be covered by writing a specific implementation for the iterable in question. This sort of functionality is

Re: Why flat is better than nested?

2010-10-25 Thread Alex Willmer
On Oct 25, 2:56 pm, Robin Becker ro...@reportlab.com wrote: On 25/10/2010 11:07, kj wrote: In The Zen of Python, one of the maxims is flat is better than nested?  Why?  Can anyone give me a concrete example that illustrates this point? ... I believe that the following illustrates

Re: Why flat is better than nested?

2010-10-25 Thread rantingrick
On Oct 25, 5:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested?  Why?  Can anyone give me a concrete example that illustrates this point? Simple. This commandment (endowed by the anointed one, GvR) is directed directly at lisp and those

Re: Question on multiple python environments in Apache

2010-10-25 Thread Jeffrey Gaynor
Because that is a mess to manage, involving hacking the Apache source and multiple recompiles (this will have to run under CentOS). Using Python should be easy and not entail multiple compiles of other people's software. My main question boils down to the best way to get mutltiples interpreters

Re: downcasting problem

2010-10-25 Thread Tim Chase
While a dirty hack for which I'd tend to smack anybody who used it...you *can* assign to instance.__class__ class A: ... def __init__(self, name): ... self.name = name ... def __str__(self): return self.name ... class B(A): ... def foo(self): print I'm B: %r %

Re: nntplib and ssl

2010-10-25 Thread Steve Holden
On 10/25/2010 7:26 AM, Andrew wrote: On Fri, 22 Oct 2010 23:23:31 +0200, Antoine Pitrou wrote: On Fri, 22 Oct 2010 17:02:07 -0400 Andrew n...@none.com wrote: Python's nntplib seems ideal for my purposes, but as far as I can see it doesn't support nntps connections. If I understand nntp

Re: Descriptors and decorators

2010-10-25 Thread Joost Molenaar
On 25 October 2010 15:20, bruno.desthuilli...@gmail.com bruno.desthuilli...@gmail.com wrote: So, your decorator is applied to a function, and wraps it into a Decorator object. Or more exactly, the function is defined, then the Decorator class is called so a new Decorator object is instanciated

Re: Why flat is better than nested?

2010-10-25 Thread Steve Holden
On 10/25/2010 10:47 AM, rantingrick wrote: On Oct 25, 5:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested? Why? Can anyone give me a concrete example that illustrates this point? Simple. This commandment (endowed by the anointed

Re: Why flat is better than nested?

2010-10-25 Thread kj
In f8b6c925-ca3b-4be4-8851-6b18c6465...@j18g2000yqd.googlegroups.com rantingrick rantingr...@gmail.com writes: On Oct 25, 5:07=A0am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested? =A0Why? =A0Can anyone give me a concrete example that

Re: Question on multiple python environments in Apache

2010-10-25 Thread Steve Holden
On 10/25/2010 10:50 AM, Jeffrey Gaynor wrote: Because that is a mess to manage, involving hacking the Apache source and multiple recompiles (this will have to run under CentOS). Using Python should be easy and not entail multiple compiles of other people's software. My main question boils down

Re: downcasting problem

2010-10-25 Thread Nikola Skoric
Dana Mon, 25 Oct 2010 09:38:42 -0500, Tim Chase python.l...@tim.thechases.com kaze: While a dirty hack for which I'd tend to smack anybody who used it...you *can* assign to instance.__class__ Wow! Python never stops to amaze me. If it breaks you get to keep all the parts :) Yes, I can see

j2py - overloading __init__

2010-10-25 Thread Brendan
I am posting here in the hopes the author of java2python will see it. Does j2py handle overloading of the __init__ constructor? For me it is calling __init__ and not calling the decorator overloaded __init__0. -- http://mail.python.org/mailman/listinfo/python-list

Re: j2py - overloading __init__

2010-10-25 Thread Brendan
On Oct 25, 12:57 pm, Brendan brendandetra...@yahoo.com wrote: I am posting here in the hopes the author of java2python will see it. Does j2py handle overloading of the __init__ constructor?  For me it is calling __init__ and not calling the decorator overloaded __init__0. Never mind. Moronic

[OFF] sed equivalent of something easy in python

2010-10-25 Thread Daniel Fetchinson
This question is really about sed not python, hence it's totally off. But since lots of unix heads are frequenting this list I thought I'd try my luck nevertheless. If I have a file with content 1 2 3 4 5 6 7 8 ... i.e. each line contains simply its line number, then it's quite easy to

Re: [OFF] sed equivalent of something easy in python

2010-10-25 Thread Tim Chase
On 10/25/2010 11:25 AM, Daniel Fetchinson wrote: using python. The pattern is that the first line is deleted, then 2 lines are kept, 3 lines are deleted, 2 lines are kept, 3 lines are deleted, etc, etc. If you have GNU sed, you can use sed -n '2~5{N;p}' which makes use of the GNU ~

Re: [OFF] sed equivalent of something easy in python

2010-10-25 Thread Daniel Fetchinson
using python. The pattern is that the first line is deleted, then 2 lines are kept, 3 lines are deleted, 2 lines are kept, 3 lines are deleted, etc, etc. If you have GNU sed, you can use sed -n '2~5{N;p}' which makes use of the GNU ~ extension. If you need a more portable version:

Re: Has Next in Python Iterators

2010-10-25 Thread Paul Rudin
Kelson Zawack zawack...@gis.a-star.edu.sg writes: The example I have in mind is list like [2,2,2,2,2,2,1,3,3,3,3] where you want to loop until you see not a 2 and then you want to loop until you see not a 3. loop until you see not a 2 - you mean yield 2s as long as there are 2s to be

Re: How do I chain methods?

2010-10-25 Thread Terry Reedy
On 10/24/2010 11:42 PM, Chris Rebert wrote: On Sun, Oct 24, 2010 at 4:11 PM, James Mills prolo...@shortcircuit.net.au wrote: On Mon, Oct 25, 2010 at 9:02 AM, Chris Rebertc...@rebertia.com wrote: Method chaining is usually* not idiomatic in Python. I don't agree but anyway... I've just not

Re: Has Next in Python Iterators

2010-10-25 Thread Ian
On Oct 25, 4:33 am, Kelson Zawack zawack...@gis.a-star.edu.sg wrote: The example I have in mind is list like [2,2,2,2,2,2,1,3,3,3,3] where you want to loop until you see not a 2 and then you want to loop until you see not a 3.  In this situation you cannot use a for loop as follows:

Re: downcasting problem

2010-10-25 Thread John Nagle
On 10/25/2010 7:38 AM, Tim Chase wrote: While a dirty hack for which I'd tend to smack anybody who used it...you *can* assign to instance.__class__ That's an implementation detail of CPython. May not work in IronPython, Unladen Swallow, PyPy, or Shed Skin. (An implementation with a JIT

Re: Unicode questions

2010-10-25 Thread Seebs
On 2010-10-25, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message mailman.31.1287517442.2218.python-l...@python.org, Petite Abeille wrote: Characters vs. Bytes And why do certain people insist on referring to bytes as ???octets One common reason is that there have

Re: How to optimize and monitor garbage collection?

2010-10-25 Thread Terry Reedy
On 10/24/2010 8:39 PM, kj wrote: I'm designing a system that will be very memory hungry unless it is garbage-collected very aggressively. In the past I have had disappointing results with the gc module: I noticed practically no difference in memory usage with and without it. It is possible,

Re: Unicode questions

2010-10-25 Thread Terry Reedy
On 10/25/2010 2:33 AM, Steve Holden wrote: On 10/25/2010 1:42 AM, Lawrence D'Oliveiro wrote: In messagemailman.31.1287517442.2218.python-l...@python.org, Petite Abeille wrote: Characters vs. Bytes And why do certain people insist on referring to bytes as “octets”? Because back in the old

Re: Why flat is better than nested?

2010-10-25 Thread kj
In mailman.232.1288020268.2218.python-l...@python.org Steve Holden st...@holdenweb.com writes: On 10/25/2010 10:47 AM, rantingrick wrote: On Oct 25, 5:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested? Why? Can anyone give me a

Re: downcasting problem

2010-10-25 Thread Emmanuel Surleau
Hi everybody, I need to downcast an object, and I've read repeatedly that if you need to downcast, you did something wrong in the design phase. So, instead of asking how do you downcast in python, let me explain my situation. I have a 2-pass parser. 1st pass ends up with a bunch of

Re: ftplib - Did the whole file get sent?

2010-10-25 Thread John Nagle
On 10/22/2010 10:03 PM, Sean DiZazzo wrote: Hi, I have some scripts that send files via ftplib to a client's ftp site. The scripts have generally worked great for a few years. Recently, the client complained that only part of an important file made it to their server. My boss got this

Re: Why flat is better than nested?

2010-10-25 Thread Terry Reedy
On 10/25/2010 3:11 PM, kj wrote: Well, it's pretty *enshrined*, wouldn't you say? No. After all, it is part of the standard distribution, So is 'import antigravity' has an easy-to-remember invocation, etc. *Someone* must have taken it seriously enough to go through all this bother.

Re: Unicode questions

2010-10-25 Thread Steve Holden
On 10/25/2010 2:36 PM, Terry Reedy wrote: On 10/25/2010 2:33 AM, Steve Holden wrote: On 10/25/2010 1:42 AM, Lawrence D'Oliveiro wrote: In messagemailman.31.1287517442.2218.python-l...@python.org, Petite Abeille wrote: Characters vs. Bytes And why do certain people insist on referring to

Re: Why flat is better than nested?

2010-10-25 Thread Steve Holden
On 10/25/2010 3:11 PM, kj wrote: In mailman.232.1288020268.2218.python-l...@python.org Steve Holden st...@holdenweb.com writes: On 10/25/2010 10:47 AM, rantingrick wrote: On Oct 25, 5:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than

Re: Why flat is better than nested?

2010-10-25 Thread Ethan Furman
kj wrote: In mailman.232.1288020268.2218.python-l...@python.org Steve Holden st...@holdenweb.com writes: On Oct 25, 5:07 am, kj no.em...@please.post wrote: In The Zen of Python, one of the maxims is flat is better than nested? Why? Can anyone give me a concrete example that illustrates

Re: downcasting problem

2010-10-25 Thread Diez B. Roggisch
Nikola Skoric n...@fly.srk.fer.hr writes: Hi everybody, I need to downcast an object, and I've read repeatedly that if you need to downcast, you did something wrong in the design phase. So, instead of asking how do you downcast in python, let me explain my situation. I have a 2-pass

Re: Why flat is better than nested?

2010-10-25 Thread Ben Finney
Steve Holden st...@holdenweb.com writes: And everyone taking the Zen too seriously should remember that it was written by Tim Peters one night during the commercial breaks between rounds of wrestling on television. So while it can give useful guidance, it's nether prescriptive nor a bible ...

Inconsistent results from int(floatNumber)

2010-10-25 Thread gershar
I had some problems with some Python projects that gave variable results that I could not track down. Eventually and reluctantly I converted them to Java. Later, when I had more time I tried to analyze what the Python code was doing and found something strange. The following snippet illustrates

Re: Inconsistent results from int(floatNumber)

2010-10-25 Thread Ian
On Oct 25, 3:44 pm, gershar gerrys...@gmail.com wrote: It looks like a rounding problem but on the surface there is nothing to round. I am aware that there are rounding limitations with floating point arithmetic but the value passed to int() is always correct. No, it isn't: for x in

Re: Inconsistent results from int(floatNumber)

2010-10-25 Thread Dave Angel
On 2:59 PM, gershar wrote: I had some problems with some Python projects that gave variable results that I could not track down. Eventually and reluctantly I converted them to Java. Later, when I had more time I tried to analyze what the Python code was doing and found something strange. The

Re: Inconsistent results from int(floatNumber)

2010-10-25 Thread Terry Reedy
On 10/25/2010 5:44 PM, gershar wrote: I had some problems with some Python projects that gave variable results that I could not track down. Eventually and reluctantly I converted them to Java. Later, when I had more time I tried to analyze what the Python code was doing and found something

Re: Inconsistent results from int(floatNumber)

2010-10-25 Thread Ian
On Oct 25, 4:25 pm, Terry Reedy tjre...@udel.edu wrote: The binary float resulting from the conversion of .1 is slightly greater than .1, so this increases i by slightly more than .1    z = i * 10.0 so z is increased be lightly more that 1 It should also be pointed out that Java in fact

Re: downcasting problem

2010-10-25 Thread Tim Chase
On 10/25/2010 12:56 PM, John Nagle wrote: On 10/25/2010 7:38 AM, Tim Chase wrote: While a dirty hack for which I'd tend to smack anybody who used it...you *can* assign to instance.__class__ That's an implementation detail of CPython. May not work in IronPython, Unladen Swallow, PyPy, or

PyCon 2011 Reminder: Call for Proposals, Posters and Tutorials - us.pycon.org

2010-10-25 Thread Jesse Noller
PyCon 2011 Reminder: Call for Proposals, Posters and Tutorials - us.pycon.org === Well, it's October 25th! The leaves have turned and the deadline for submitting main-conference talk proposals expires in 7 days (November 1st, 2010)! We are currently

python library for mail/news message headers bodies?

2010-10-25 Thread Arthur Divot
Is there a python library equivalent to Perl's News::Article (load a file containing a news or mail message into an object, manipulate the headers and body, create a new empty one, save one to a file)? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: python library for mail/news message headers bodies?

2010-10-25 Thread Chris Rebert
On Mon, Oct 25, 2010 at 7:18 PM, Arthur Divot art...@example.com wrote: Is there a python library equivalent to Perl's News::Article (load a file containing a news or mail message into an object, manipulate the headers and body, create a new empty one, save one to a file)? The `email` package

Bank Loan Online and Small Business Finance in the US

2010-10-25 Thread neha shena
Bank Loan Online and Small Business Finance in the US A bank loan online generally refers to funding provided by a bank that can be accessed through an online application. Online applications usually only take a few minutes to complete and are analyzed by the bank within a couple of days. Bank

Schengen States Study VISA ( Scolarship Visa)

2010-10-25 Thread neha shena
Schengen States Study VISA ( Scolarship Visa) The European Union (EU) allows for the free movement of goods between Italy and other member states: Austria, Belgium, Bulgaria, Cyprus, Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Ireland, Latvia, Lithuania,

[issue1542677] compile(): IDLE shell gives different len() of unicode strings compared to Python shell

2010-10-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As indicated in msg59954, it works fine on 3.x, so removing these versions. -- versions: -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1542677

[issue1542677] IDLE shell gives different len() of unicode strings compared to Python shell

2010-10-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: For 2.7, I don't think it's possible to really fix this. I see the following options: A. current status. Byte strings are compiled correctly, Unicode strings are not. B. compile source as a Unicode string, as proposed in msg85886. Unicode

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Could you elaborate a little on what you use it for? The argparse module only uses this for pretty __repr__ on the various objects. (And in fact, it looks like it's gotten a little out of sync - required is missing from Action, and a

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Dariusz Suchojad
Dariusz Suchojad ds...@gefira.pl added the comment: I find that _AttributeHolder is a handy way for passing the command line options around the application. What is lacks though is a documented API for actually fetching the attributes in batches, like .items() or something similar that could

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Removing docs unless this actually becomes a doc issue -- nosy: +tim.golden -d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10190

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: d...@python - bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10190 ___ ___

[issue1542677] IDLE shell gives different len() of unicode strings compared to Python shell

2010-10-25 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1542677 ___ ___

[issue10184] tarfile touches directories twice

2010-10-25 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de added the comment: I'm not entirely happy with the name of the touch argument. Apart from it being nice and short, I think it's a little too unix-y and might be misleading because it is not only about setting the modification time as the name implies, but also

[issue10190] Can argparse._AttributeHolder._get_kwargs become a public API?

2010-10-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- components: -Documentation nosy: +eric.araujo versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10190 ___

[issue5178] Add context manager for temporary directory

2010-10-25 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Nick, could you comment about my last proposal? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5178 ___

[issue10157] Refleaks in pythonrun.c

2010-10-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think your patch looks good. -- assignee: - ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10157 ___

[issue10143] Update os.pathconf values

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Committed in r85834. Solaris 10 now shows 25 names available, instead of 14. -- resolution: - accepted stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue1054967] bdist_deb - Debian packager

2010-10-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - rejected stage: - committed/rejected versions: +3rd party -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I attach patch. I have reviewed the IO module and I think we don't need to do any change there, since values over 2 are not touched. The patch is trivial. My plan was to leave this patch for a novice :-). Please, review. But let me do the final

[issue10191] scripts files are not RECORDed.

2010-10-25 Thread Atsushi Odagiri
New submission from Atsushi Odagiri aod...@gmail.com: I wrote setup.py includes scripts with distutils2, and ran `setup.py install`. scripts were installed in scripts directory, but not recorded in .dist-info/RECORD. I think that `distutils2._backport.shutil:copytree` should return copied

[issue10142] Support for SEEK_HOLE/SEEK_DATA

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: [j...@babylon5 py3k]$ ./python Python 3.2a3+ (py3k:85834M, Oct 25 2010, 15:37:04) [GCC 4.5.1] on sunos5 Type help, copyright, credits or license for more information. import os os.SEEK_DATA 3 os.SEEK_HOLE 4 --

[issue9935] Faster pickling of instances

2010-10-25 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: I doubt I, or Ask will have the time to rewrite the entire multiprocessing test suite right now to work around the change Antoine. -- ___ Python tracker rep...@bugs.python.org

[issue9935] Faster pickling of instances

2010-10-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I doubt I, or Ask will have the time to rewrite the entire multiprocessing test suite right now to work around the change Antoine. Well, I'm not asking anyone to rewrite the entire multiprocessing test suite; and, besides, I've provided a

[issue6645] multiprocessing build fails on AIX - /dev/urandom (or equivalent) not found

2010-10-25 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Sridhar can you confirm if this is still a problem on 3.2? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6645 ___

[issue6269] threading documentation makes no mention of the GIL

2010-10-25 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- assignee: jnoller - nobody keywords: +easy nosy: +nobody priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6269 ___

[issue9935] Faster pickling of instances

2010-10-25 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: On Mon, Oct 25, 2010 at 10:17 AM, Antoine Pitrou rep...@bugs.python.org wrote: Well, I'm not asking anyone to rewrite the entire multiprocessing test suite; and, besides, I've provided a patch myself to improve it in that respect ;) (in

[issue1191964] asynchronous Subprocess

2010-10-25 Thread Andrew Boettcher
Changes by Andrew Boettcher a.boettc...@gmail.com: -- nosy: +Andrew.Boettcher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1191964 ___ ___

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I am trying to review this for 3.2, but I am having some issues. For instance, include/pydtrace.d is not present in the last patch. Please, post a patch with all the required changes in the same (patch) file. Hurry, we are still on track for

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: 2010/10/25 Jesús Cea Avión rep...@bugs.python.org: .. Another question: I am not able to decide between Sun/Apple style, or breaking dtrace scripts compatibility completely. Anybody has an opinion about this?. Is this

[issue10192] 'from urllib.parse import *' does not import urlencode function

2010-10-25 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in revision 85837. -- assignee: - orsenthil nosy: +orsenthil resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Malcolm, does your last patch address the performance issue?. Ideally, dtrace support should be compiled in by default, so performance issues are important. Idealy, performance difference between compiling dtrace or not should be negligible.

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: We need some documentation, too. Maybe a new chapter, or a new section in the debug chapter. Better the first, since this is not only for debugging, but for performance study too. -- ___ Python

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Compiling the code WITHOUT dtrace support gives an error: Undefined first referenced symbol in file __dtrace_python___function__entry ./libpython3.2m.so

[issue4111] Add Systemtap/DTrace probes

2010-10-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Compiling WITH dtrace... shows the same error :- -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4111 ___

  1   2   >