Re: what does this mean....?

2009-02-28 Thread Gabriel Genellina
En Sat, 28 Feb 2009 04:44:28 -0200, zaheer.ag...@gmail.com escribió: One question off the topic., Usually it's better to post a separate message. How to create a .pyz file. I have python project that has some modules in it , I want to create a zip file so that I can use it as we use java

Issues using SOAP/WSDL with HTTPS

2009-02-28 Thread Good Z
Hello all, I am new to SOAP/WebServices and getting error when using HTTPS with it. Any help is appreciated. here is what i am doing: import xml import fpconst import SOAPpy from SOAPpy import WSDL wsdlFile = 'https://..com/webService.wsdl' server = WSDL.Proxy(wsdlFile) It seems

Re: what does this mean....?

2009-02-28 Thread Ben Finney
Gabriel Genellina gagsl-...@yahoo.com.ar writes: En Sat, 28 Feb 2009 04:44:28 -0200, zaheer.ag...@gmail.com escribió: One question off the topic., Usually it's better to post a separate message. More specifically (and I only say this because many people seem not to observe the

Re: what does this mean....?

2009-02-28 Thread zaheer . agadi
On Feb 28, 1:50 pm, Ben Finney bignose+hates-s...@benfinney.id.au wrote: Gabriel Genellina gagsl-...@yahoo.com.ar writes: En Sat, 28 Feb 2009 04:44:28 -0200, zaheer.ag...@gmail.com escribió: One question off the topic., Usually it's better to post a separate message. More specifically

Re: Delete all items in the list

2009-02-28 Thread Clarendon
Thank you very much for all your replies. I actually used the while loop as the data is not large. But I was looking for a simpler, built in command, something like L.remove('a', all) or L.removeall('a'). Python has re.findall function, but why not removeall, so users have to make up long lines of

Re: Using xreadlines

2009-02-28 Thread Nick Craig-Wood
bearophileh...@lycos.com bearophileh...@lycos.com wrote: Brett Hedges: My question is how do I go to a previous line in the file? xreadlines has a file.next() statement that gives the next line, and I need a statement that gives me the previous line. In modern versions of Python you

Re: Proposed implementation for an Ordered Dictionary

2009-02-28 Thread python
A sort of premature pessimization, then. QOTW! +1 Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: why cannot assign to function call

2009-02-28 Thread Mark Wooding
Ethan Furman et...@stoneleaf.us writes: Mark Wooding wrote: Here's what I think is the defining property of pass-by-value [...]: The callee's parameters are /new variables/, initialized /as if by assignment/ from the values of caller's argument expressions. My soundbite definition for

Re: Queries

2009-02-28 Thread mmcclaf
So basically you are complaining that groups don't pick up post by GMail users? As for the SQL thing, you still don't see how I am linking this to SQL? I have to make in your terms: a textual representation of the statements I'd make in SQL. The statement I made with the bold SELECT, etc, replace

Re: Proposed implementation for an Ordered Dictionary

2009-02-28 Thread Colin J. Williams
Raymond Hettinger wrote: [Paul Rubin] Ehh, I guess I'm not surprised at the slowdown and extra complexity from the second dict. Oh well. If the module really turns out to be really used a lot, another (messy) approach would be to write a C extension that uses a doubly linked list some day.

Re: Delete all items in the list

2009-02-28 Thread Steven D'Aprano
Chris Rebert wrote: Obviously that equivalence is true, but in this case I'm emphasizing that it's even worse than that when constant factors are taken into account. Big-O is nice in the abstract, but in the real-world those constant factors can matter. In pure big-O, it is indeed O(M*N)

Re: Data Coding suggestions

2009-02-28 Thread steven.oldner
On Feb 27, 2:04 pm, Rick Dooling rpdool...@gmail.com wrote: On Feb 27, 6:42 am, steven.oldner steven.old...@gmail.com wrote: Just learning Python and have a project to create a weekly menu and a shopping list from the menu.   Question:  How should I set up the data?  I'm looking at maybe

Re: Proposed implementation for an Ordered Dictionary

2009-02-28 Thread Steven D'Aprano
Colin J. Williams wrote: Sometimes, it's useful to be able to obtain the data in the sorted sequence. You might consider adding functionality like: def seqItems(self): '''To return the items, sorted by key. ''' return [self[k] for k in self.seqKeys()] Amazingly, the Python

Creating Zip file like java jar file

2009-02-28 Thread zaheer . agadi
Hi, I want to create zip file equivalent to java jar file,I created a zip file of my sources and added some __main__.py some how I am getting an error saying __main.py does not exist in the zip file Copyproject(main folder) | |_src(folder) | | |

TypeErrors

2009-02-28 Thread Sean Novick
I'm having issues with a phone-number database. Here is a code snippet:  def menu():         print '''Please make a selection from the following options:     To add an Employee - enter: 1         For a complete listing of Employees - enter: 2     To see the 'test page'

How best to test functions which use date.today

2009-02-28 Thread Yuan HOng
HI, In my project I have several date related methods which I want tested for correctness. The functions use date.today() in several places. Since this could change every time I run the test, I hope to find someway to fake a date.today. For illustration lets say I have a function: from

c.Win32_OperatingSystem question.

2009-02-28 Thread bryan rasmussen
Maybe there's a more specific list I should ask this question on but I don't know what it is. I'm using Tim Golden's wmi stuff, and putting my output into an XML document. I have the following bit of code root = et.Element(locations) ComputerInfo = et.SubElement(root, ComputerInfo)

Re: Delete all items in the list

2009-02-28 Thread Terry Reedy
Steven D'Aprano wrote: Big Oh notation is good for estimating asymptotic behaviour, which means it is good for predicting how an algorithm will scale as the size of the input increases. It is useless for predicting how fast that algorithm will run, since the actual speed depends on those

Re: c.Win32_OperatingSystem question.

2009-02-28 Thread bryan rasmussen
oh I noticed the problem with the BuildNumber = et.SubElement(oper.BuildNumber) instead of BuildNumber = str(oper.BuildNumber) and fixed it. No improvement in results however. Best Regards, Bryan Rasmussen On Sat, Feb 28, 2009 at 6:38 PM, bryan rasmussen rasmussen.br...@gmail.com wrote: Maybe

Re: How best to test functions which use date.today

2009-02-28 Thread Lie Ryan
Yuan HOng wrote: HI, In my project I have several date related methods which I want tested for correctness. The functions use date.today() in several places. Since this could change every time I run the test, I hope to find someway to fake a date.today. For illustration lets say I have a

Re: Creating Zip file like java jar file

2009-02-28 Thread Gabriel Genellina
En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java jar file,I created a zip file of my sources and added some __main__.py it says __Main__.py not found in Copyproject.zip..? __main__.py must exist in the root directory. --

Re: Creating Zip file like java jar file

2009-02-28 Thread zaheer . agadi
On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java jar file,I created a zip file of my sources and added some __main__.py it says __Main__.py not found in

Re: Creating Zip file like java jar file

2009-02-28 Thread Lie Ryan
zaheer.ag...@gmail.com wrote: On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java jar file,I created a zip file of my sources and added some __main__.py it says

Re: How best to test functions which use date.today

2009-02-28 Thread Christian Heimes
Lie Ryan wrote: But this fails with: TypeError: can't set attributes of built-in/extension type 'datetime.date' This is because today is an attribute. In python, we can override attribute access to become a function call. I don't have python right now, but try this: del date.today

OTish: convince the team to drop VBScript

2009-02-28 Thread Christian R.
Hello, Brand new to this list, I've not found a quick way to search the archives, and this is not a technical question. I've just been hired at a digital signage company. They use VBScript for simple-to-medium scripting. I've abandoned it about 8 years ago. I want to convince the manager and the

Re: Creating Zip file like java jar file

2009-02-28 Thread zaheer . agadi
On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote: zaheer.ag...@gmail.com wrote: On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribió: I want to create zip file equivalent to java jar file,I created

Re: ANN: updates to Python-by-example

2009-02-28 Thread James Matthews
Thanks for adding this. I needed to show someone some examples... On Fri, Feb 27, 2009 at 5:35 PM, steven.oldner steven.old...@gmail.comwrote: On Feb 27, 8:40 am, pyt...@bdurham.com wrote: Rainy, Great stuff! Thanks for your examples with the community!! Regards, Malcolm Let me

Re: OTish: convince the team to drop VBScript

2009-02-28 Thread Christian Heimes
Christian R. schrieb: Hello, Brand new to this list, I've not found a quick way to search the archives, and this is not a technical question. I've just been hired at a digital signage company. They use VBScript for simple-to-medium scripting. I've abandoned it about 8 years ago. I want

Re: What's so wrong about execfile?

2009-02-28 Thread James Matthews
It is considered one of the big holes in PHP (Remote file include...) However in Python things can be done securely On Sat, Feb 28, 2009 at 7:15 AM, Carl Banks pavlovevide...@gmail.comwrote: On Feb 27, 7:21 pm, Sammo sammo2...@gmail.com wrote: Given that execfile has been removed in py3k, I

Python alternatives to Text::SimpleTable?

2009-02-28 Thread Ray Van Dolson
So I'm looking for an easy (read: lazy) way to generate output in nice ASCII tables like the Text::SimpleTable[1] module in perl. I've come across two so far in the Python world that look promising[2][3] but I'm wondering if anyone else out there has some recommendations for me. Thanks, Ray [1]

KeyedList

2009-02-28 Thread pataphor
The ordered dictionary discussion made me think of another data type which seems to be somewhat related, a kind of ordered dictionary where the order of the items is arbitrary. One can insert items in the middle and still have O(1) access (I think). I have provided a very basic implementation, it

Re: Data Coding suggestions

2009-02-28 Thread Kurt Smith
On Sat, Feb 28, 2009 at 10:08 AM, steven.oldner steven.old...@gmail.com wrote: Thanks guys.  While shopping today I've thought of a few more columns for my data so my first item will be building the 3 DB tables and a way to populate them.  Since this was intended to automate what I do on a

Re: TypeErrors

2009-02-28 Thread Benjamin Kaplan
On Sat, Feb 28, 2009 at 12:24 PM, Sean Novick daddysea...@yahoo.com wrote: I'm having issues with a phone-number database. Here is a code snippet: def menu(): print '''Please make a selection from the following options: To add an Employee - enter: 1 For a complete

Static Map

2009-02-28 Thread KMCB
Hello, I'm interested in creating a static map of a region in the US. This map would be set into a picture format, so I can add it to a document. I would like it to contain some town names and road information. Then I would like to add points, based on LAT and LONG, that can be labeled with

Re: c.Win32_OperatingSystem question.

2009-02-28 Thread Tim Golden
bryan rasmussen wrote: Maybe there's a more specific list I should ask this question on but I don't know what it is. I'm using Tim Golden's wmi stuff, and putting my output into an XML document. I have the following bit of code [.. snip ...] At the end of that thhe only text node thaht

Re: why cannot assign to function call

2009-02-28 Thread rdmurray
Mark Wooding m...@distorted.org.uk wrote: Ethan Furman et...@stoneleaf.us writes: Mark Wooding wrote: Here's what I think is the defining property of pass-by-value [...]: The callee's parameters are /new variables/, initialized /as if by assignment/ from the values of caller's

TypeErrors

2009-02-28 Thread rdmurray
Sean Novick daddysea...@yahoo.com wrote: First lookup: Traceback (most recent call last): File F:\CSC113 Module 4 CA\sample database.py, line 72, in module class phonedb: File F:\CSC113 Module 4 CA\sample database.py, line 146, in phonedb

OTish: convince the team to drop VBScript

2009-02-28 Thread rdmurray
Christian R. pafbo...@gmail.com wrote: The company does use Python on rare occasions. It all comes down to the prejudices and habits of one of the programmers. His only argument I can't counter -because I don't see the problem- is that Python modules cause problems for updates to customer's

Re: Creating Zip file like java jar file

2009-02-28 Thread Gabriel Genellina
En Sat, 28 Feb 2009 16:51:04 -0200, zaheer.ag...@gmail.com escribió: On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote: zaheer.ag...@gmail.com wrote: On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com

Re: How best to test functions which use date.today

2009-02-28 Thread rdmurray
Christian Heimes li...@cheimes.de wrote: Lie Ryan wrote: But this fails with: TypeError: can't set attributes of built-in/extension type 'datetime.date' This is because today is an attribute. In python, we can override attribute access to become a function call. I don't have python

Re: How best to test functions which use date.today

2009-02-28 Thread Gabriel Genellina
En Sat, 28 Feb 2009 15:35:47 -0200, Yuan HOng hongyuan1...@gmail.com escribió: In my project I have several date related methods which I want tested for correctness. The functions use date.today() in several places. Since this could change every time I run the test, I hope to find someway to

Re: Creating Zip file like java jar file

2009-02-28 Thread rdmurray
zaheer.ag...@gmail.com wrote: On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote: zaheer.ag...@gmail.com wrote: On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 14:34:15 -0200, zaheer.ag...@gmail.com escribi= =F3: I want to create zip

Re: How best to test functions which use date.today

2009-02-28 Thread Scott David Daniels
Lie Ryan wrote: Yuan HOng wrote: In my project I have several date related methods which I want tested for correctness. The functions use date.today() in several places. Since this could change every time I run the test, I hope to find someway to fake a date.today. For illustration lets say I

Bug report: ClientForm

2009-02-28 Thread Muddy Coder
Hi Folks, As directed, I got ClientForm and played with it. It is cool! However, I also found a bug: When it parses a form, if the VALUE of a field has not space, it works very well. For example, if a dropdown list, there many options, such as: option value=foo the value foo will be

Re: Bug report: ClientForm

2009-02-28 Thread MRAB
Muddy Coder wrote: Hi Folks, As directed, I got ClientForm and played with it. It is cool! However, I also found a bug: When it parses a form, if the VALUE of a field has not space, it works very well. For example, if a dropdown list, there many options, such as: option value=foo the

Re: Static Map

2009-02-28 Thread Andrew MacIntyre
KMCB wrote: Hello, I'm interested in creating a static map of a region in the US. This map would be set into a picture format, so I can add it to a document. I would like it to contain some town names and road information. Then I would like to add points, based on LAT and LONG, that can be

Re: Bug report: ClientForm

2009-02-28 Thread Gabriel Genellina
En Sat, 28 Feb 2009 21:01:56 -0200, Muddy Coder cosmo_gene...@yahoo.com escribió: By the way, can somebody helps me on setting parameter of uploading a file. In ClientForm, if I need to upload a text file, I can do it by: form.add_file(..., text/plain) What about a picture file? What is the

Re: Proposed implementation for an Ordered Dictionary

2009-02-28 Thread Colin J. Williams
Steven D'Aprano wrote: Colin J. Williams wrote: Sometimes, it's useful to be able to obtain the data in the sorted sequence. You might consider adding functionality like: def seqItems(self): '''To return the items, sorted by key. ''' return [self[k] for k in self.seqKeys()] Amazingly, the

Re: Proposed implementation for an Ordered Dictionary

2009-02-28 Thread Paul Rubin
Colin J. Williams c...@ncf.ca writes: # print [mydict[x] for x in sorted(mydict.keys)] Instance object is not iterable It was a typo. Use: print [mydict[x] for x in sorted(mydict.keys())] -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug report: ClientForm

2009-02-28 Thread Lie Ryan
MRAB wrote: Muddy Coder wrote: Hi Folks, When it parses a form, if the VALUE of a field has not space, it works very well. For example, if a dropdown list, there many options, such as: option value=foo the value foo will be picked up for sure. But, if there is a space: option

Re: OTish: convince the team to drop VBScript

2009-02-28 Thread Lie Ryan
Christian R. wrote: The company does use Python on rare occasions. It all comes down to the prejudices and habits of one of the programmers. His only argument I can't counter -because I don't see the problem- is that Python modules cause problems for updates to customer's installations. Next

Email Program

2009-02-28 Thread J
Is it possible to make a GUI email program in Python that stores emails, composes, ect? -- http://mail.python.org/mailman/listinfo/python-list

Re: Email Program

2009-02-28 Thread MRAB
J wrote: Is it possible to make a GUI email program in Python that stores emails, composes, ect? Yes. -- http://mail.python.org/mailman/listinfo/python-list

Email Program

2009-02-28 Thread J
Is it possible to make a GUI email program in Python that stores emails, composes, ect? Also, could I create my own programming language in Python? What are Pythons limits, or is this just a waste of my time to learn it. -- http://mail.python.org/mailman/listinfo/python-list

RE: Email Program

2009-02-28 Thread Thomas Raef
What a great response. -Original Message- From: python-list-bounces+traef=ebasedsecurity@python.org [mailto:python-list-bounces+traef=ebasedsecurity@python.org] On Behalf Of MRAB Sent: Saturday, February 28, 2009 8:00 PM To: python-list@python.org Subject: Re: Email Program

Re: Email Program

2009-02-28 Thread Christian Heimes
Thomas Raef wrote: What a great response. It's a correct, straight forward and short answer to the op's question. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Email Program

2009-02-28 Thread Lie Ryan
J wrote: Is it possible to make a GUI email program in Python that stores emails, composes, ect? Also, could I create my own programming language in Python? What are Pythons limits, or is this just a waste of my time to learn it. -- http://mail.python.org/mailman/listinfo/python-list

Re: why cannot assign to function call

2009-02-28 Thread Tim Roberts
Ethan Furman et...@stoneleaf.us wrote: Specifically, how is a new name (pbr) different, in Python, from a new name initialized as if by assignment (pbv)? It seems to me than you end up with the same thing in either case (in Python, at least), making the distinction non-existent. def

Re: Email Program

2009-02-28 Thread Shane Geiger
J wrote: Is it possible to make a GUI email program in Python that stores emails, composes, ect? Also, could I create my own programming language in Python? What are Pythons limits, or is this just a waste of my time to learn it. Python is Turing complete, which means it is a

Re: OTish: convince the team to drop VBScript

2009-02-28 Thread Shane Geiger
The company does use Python on rare occasions. It all comes down to the prejudices and habits of one of the programmers. His only argument I can't counter -because I don't see the problem- is that Python modules cause problems for updates to customer's installations. This is purely an

setting PYTHONPATH to override system wide site-packages

2009-02-28 Thread per
hi all, i recently installed a new version of a package using python setup.py install --prefix=/my/homedir on a system where i don't have root access. the old package still resides in /usr/lib/python2.5/site- packages/ and i cannot erase it. i set my python path as follows in ~/.cshrc setenv

Re: OTish: convince the team to drop VBScript

2009-02-28 Thread Carl Banks
On Feb 28, 7:10 pm, Shane Geiger sgei...@councilforeconed.org wrote: The company does use Python on rare occasions. It all comes down to the prejudices and habits of one of the programmers. His only argument I can't counter -because I don't see the problem- is that Python modules cause

Re: Proposed implementation for an Ordered Dictionary

2009-02-28 Thread Michele Simionato
On Mar 1, 1:43 am, Paul Rubin http://phr...@nospam.invalid wrote: Colin J. Williams c...@ncf.ca writes:      # print [mydict[x] for x in sorted(mydict.keys)] Instance object is not iterable It was a typo.  Use:     print [mydict[x] for x in sorted(mydict.keys())] Even better print

Re: setting PYTHONPATH to override system wide site-packages

2009-02-28 Thread Carl Banks
On Feb 28, 7:30 pm, per perfr...@gmail.com wrote: hi all, i recently installed a new version of a package using python setup.py install --prefix=/my/homedir on a system where i don't have root access. the old package still resides in /usr/lib/python2.5/site- packages/ and i cannot erase it.

Re: setting PYTHONPATH to override system wide site-packages

2009-02-28 Thread per
On Feb 28, 11:24 pm, Carl Banks pavlovevide...@gmail.com wrote: On Feb 28, 7:30 pm, per perfr...@gmail.com wrote: hi all, i recently installed a new version of a package using python setup.py install --prefix=/my/homedir on a system where i don't have root access. the old package still

Re: Creating Zip file like java jar file

2009-02-28 Thread zaheer . agadi
On Mar 1, 1:32 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Sat, 28 Feb 2009 16:51:04 -0200, zaheer.ag...@gmail.com escribió: On Feb 28, 11:33 pm, Lie Ryan lie.1...@gmail.com wrote: zaheer.ag...@gmail.com wrote: On Feb 28, 11:15 pm, Gabriel Genellina gagsl-...@yahoo.com.ar

Re: setting PYTHONPATH to override system wide site-packages

2009-02-28 Thread per
On Feb 28, 11:53 pm, per perfr...@gmail.com wrote: On Feb 28, 11:24 pm, Carl Banks pavlovevide...@gmail.com wrote: On Feb 28, 7:30 pm, per perfr...@gmail.com wrote: hi all, i recently installed a new version of a package using python setup.py install --prefix=/my/homedir on a

Re: i have problem with glob.glob() in remotely directory

2009-02-28 Thread Tim Roberts
lameck kassana chela...@gmail.com wrote: i did try but still not working.But also i try os.walk() for remote computer like os.walk('\\192.168.0.45') it also failed Of course it did, for two different reasons. First, you can't just walk an IP address. You have to specify one of the shares

file locking...

2009-02-28 Thread bruce
Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is going to access a number of files in a dir. Each process accesses a unique group of files, and

Re: What's so wrong about execfile?

2009-02-28 Thread Michele Simionato
On Feb 28, 4:21 am, Sammo sammo2...@gmail.com wrote: Given that execfile has been removed in py3k execfile has not been really removed, it is just spelled differently: exec(open(myfile.py).read()) BTW, from the help message help(exec) Help on built-in function exec in module builtins:

Re: setting PYTHONPATH to override system wide site-packages

2009-02-28 Thread Carl Banks
On Feb 28, 9:18 pm, per perfr...@gmail.com wrote: On Feb 28, 11:53 pm, per perfr...@gmail.com wrote: On Feb 28, 11:24 pm, Carl Banks pavlovevide...@gmail.com wrote: On Feb 28, 7:30 pm, per perfr...@gmail.com wrote: hi all, i recently installed a new version of a package using

mulit-dimensional lists

2009-02-28 Thread Ms FRANCES SIMS
Hi, I;m not sure how I got your address but I could use a friend . Please reply and we can talk. I would like that. Good day, Joe Pyne-- http://mail.python.org/mailman/listinfo/python-list

[issue4136] merge json library with latest simplejson 2.0.x

2009-02-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The one thing that IMO needs to be decided before this can be accept is the version compatibility: what Python versions must this code stay compatible with? That decision then needs to be implemented. Apart from this (and the additional

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-02-28 Thread Retro
Retro vinet...@gmail.com added the comment: I noticed this by installing the Python 2.5.4 and Python 2.6.1 and Python 3.0.1 binaries. Please fix these issues if you can. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5390

[issue5390] Item 'Python x.x.x' in Add/Remove Programs list still lacks an icon

2009-02-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I did not backport the fix to 2.5.4, so that release doesn't have it fixed. Since the 2.5 branch is now closed, no changes will be made to it. For 2.6.1 and 3.0.1, it works fine for me. See the attached screenshot. Added file:

[issue5378] adding --quiet to bdist_rpm

2009-02-28 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r70049 and r70051 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5378 ___

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-28 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Done in r70049 and r70051. Thanks for everyone's help ! ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533164 ___

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-28 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533164 ___ ___

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-28 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533164 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5389] Uninitialized variable may be used in PyUnicode_DecodeUTF7Stateful()

2009-02-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I can't see at the moment how the unicode_decode_call_errorhandler call can be made without startinpos being previously set to some value. Antoine, maybe you can verify? -- assignee: - pitrou nosy: +georg.brandl, pitrou

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: See comment 1 in https://bugzilla.redhat.com/show_bug.cgi?id=236535 It might be that this patch still doesn't solve the problem, namely if there are non-library .py files in the distribution. They get compiled by brp-python-bytecompile, but

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Tarek, I think you committed too quickly. Please consider my comments. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1533164 ___

[issue4136] merge json library with latest simplejson 2.0.x

2009-02-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: simplejson maintains Python 2.4+ compatibility, but json maintains 2.6+. I could produce another patch that manually removes these few remaining nits if it's necessary. I don't quite understand this: isn't json/decoder.py and

[issue5389] Uninitialized variable may be used in PyUnicode_DecodeUTF7Stateful()

2009-02-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hmm, I know nothing about UTF7... Anyway, looking at the code, the utf7Error code path can be called from the following places (trunk line numbers): - line 1595, and startinpos was set three lines before - a bunch of places in the if (inShift) {

[issue5386] mmap can crash with write_byte

2009-02-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Fixed in r70052(trunk), r70053(py3k). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5386

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: On Python3000, mmap.read_byte returns str not bytes, and mmap.write_byte accepts str. Is this intended behavior? import mmap m = mmap.mmap(-1, 10) type(m.read_byte()) class 'str' m.write_byte(a) m.write_byte(ba) Maybe

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Indeed, I think it should use the b code, instead of the c code. Please discuss this on python-dev, though. It might not be ok to backport this to 3.0, since it may break existing code. -- nosy: +loewis

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Furthermore, all other uses of the c code might need to be reconsidered. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5391 ___

[issue5392] stack overflow after hitting recursion limit twice

2009-02-28 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: Set sys.setrecursionlimit to 50 or lower. Then, the second time the recursion limit is reached, the interpreter crashes with a stack overflow. This happens both with released 3.0.1 and the py3k branch, on Windows. At least on my PC,

[issue1533164] Installed but not listed *.pyo break bdist_rpm

2009-02-28 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I've read the thread while working in the patch, and comment #28 explains that brp-python-bytecompile is called over the rpms and requires pyo files within the file list. plus: http://fedoraproject.org/wiki/Packaging/Python#Including_pyos

[issue1733986] mmap.mmap can overrun buffer

2009-02-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Fixed in r70056(trunk) and r70057(py3k). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1733986

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5391 ___ ___

[issue5392] stack overflow after hitting recursion limit twice

2009-02-28 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- nosy: +loewis, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5392 ___ ___

[issue5392] stack overflow after hitting recursion limit twice

2009-02-28 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I can reproduce that (with the same limits) on Linux here. It doesn't happen with 2.6. (Although it is technically not a crash but a controlled abort().) -- nosy: +georg.brandl ___ Python tracker

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: loewis Furthermore, all other uses of the c code might loewis need to be reconsidered. $ grep 'BuildValue.*c' */*c Modules/_cursesmodule.c:return Py_BuildValue(c, rtn); Modules/mmapmodule.c: return Py_BuildValue(c,

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @tjreedy: Do you expect conversion to small int if __int__() result fits in a small int? class A: def __int__(self): return 1L x=int(A()) print repr(x), type(x) Result with Python 2.5.1: 1L type 'long'

[issue5391] mmap: read_byte/write_byte and object type

2009-02-28 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I think more *bytes* cleanup is needed for mmap module documentation implementation. (and other modules?) Especially mmap.find() and its friends. import mmap m = mmap.mmap(-1, 10) m[:] = b0123456789 m.find(b'2') 2 m.find('2')

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-28 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The behaviour doesn't contradict the documentation, as far as I can tell, so I agree with Terry that this is not a bug. If we want the result from the built-in int function to have type int whenever possible (that is, whenever the result

[issue5377] Strange behavior when performing int on a Decimal made from -sys.maxint-1

2009-02-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- type: behavior - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5377 ___ ___

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2009-02-28 Thread John Levon
John Levon movem...@users.sourceforge.net added the comment: Surely readline is irrelevant anyway. The Python spec guarantees behaviour, and that guarantee is currently broken. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1975

  1   2   >