Re: Python Game Development?

2013-06-08 Thread Ian Foote
On 07/06/13 16:53, letsplaysf...@gmail.com wrote: I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: • Pygame - As far as I know it's dead and has been for almost a year • PyOgre - Linux and Windows only(I do have those, but I want multi-platform)

Re: Idiomatic Python for incrementing pairs

2013-06-08 Thread Steven D'Aprano
On Fri, 07 Jun 2013 21:32:39 -0500, Tim Chase wrote: Playing around, I've been trying to figure out the most pythonic way of incrementing multiple values based on the return of a function. Something like [...skip misleading and irrelevant calculate() function...] alpha = beta = 0

Re: Idiomatic Python for incrementing pairs

2013-06-08 Thread Peter Otten
Tim Chase wrote: On 2013-06-07 23:46, Jason Swails wrote: On Fri, Jun 7, 2013 at 10:32 PM, Tim Chase def calculate(params): a = b = 0 if some_calculation(params): a += 1 if other_calculation(params): b += 1 return (a, b) alpha = beta = 0

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Νικόλαος Κούρας
Τη Σάββατο, 8 Ιουνίου 2013 5:52:22 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: On 07Jun2013 11:52, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= nikos.gr...@gmail.com wrote: | ni...@superhost.gr [~/www/cgi-bin]# [Fri Jun 07 21:49:33 2013] [error] [client 79.103.41.173] File

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread Νικόλαος Κούρας
Τη Παρασκευή, 7 Ιουνίου 2013 11:47:58 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: On 07/06/2013 19:24, Νικόλαος Κούρας wrote: Τη Παρασκευή, 7 Ιουνίου 2013 5:32:09 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: Can find what? koukos.py is there inside the cg-bin dir with 755 perms. It's looking for

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Chris Angelico
On Sat, Jun 8, 2013 at 4:49 PM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Oh my God i cant beleive i missed a colon *again*: For most Python programmers, this is a matter of moments to solve. Run the program, get a SyntaxError, fix it. Non-interesting event. (Maybe even sooner than that, if

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread Chris Angelico
On Sat, Jun 8, 2013 at 4:53 PM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Τη Παρασκευή, 7 Ιουνίου 2013 11:47:58 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: On 07/06/2013 19:24, Νικόλαος Κούρας wrote: \ Τη Παρασκευή, 7 Ιουνίου 2013 5:32:09 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: It's looking for

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Steven D'Aprano
On Fri, 07 Jun 2013 23:49:17 -0700, Νικόλαος Κούρας wrote: [...] Oh iam very sorry. Oh my God i cant beleive i missed a colon *again*: I have corrected this: [snip code] Stop posting your code after every trivial edit!!! -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Chris Angelico
On Sat, Jun 8, 2013 at 5:26 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 07 Jun 2013 23:49:17 -0700, Νικόλαος Κούρας wrote: [...] Oh iam very sorry. Oh my God i cant beleive i missed a colon *again*: I have corrected this: [snip code] Stop posting your code

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Steven D'Aprano
On Thu, 06 Jun 2013 23:35:33 -0700, nagia.retsina wrote: Working with bytes is only for when the file names are turned to garbage. Your file names (some of them) are turned to garbage. Fix them, and then use file names as strings. Can't '~/data/apps/' is filled every day with more and more

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Roel Schroeven
Νικόλαος Κούρας schreef: Session settings afaik is for putty to remember hosts to connect to, not terminal options. I might be worng though. No matter how many times i change its options next time i run it always defaults back. Putty can most definitely remember its settings: - Start PuTTY;

Re: Idiomatic Python for incrementing pairs

2013-06-08 Thread Jason Swails
On Sat, Jun 8, 2013 at 2:47 AM, Peter Otten __pete...@web.de wrote: You can hide the complexity in a custom class: class T(tuple): ... def __add__(self, other): ... return T((a+b) for a, b in zip(self, other)) ... t = T((0, 0)) for pair in [(1, 10), (2, 20), (3, 30)]:

Re: Python Game Development?

2013-06-08 Thread Jan Riechers
On 07.06.2013 18:53, letsplaysf...@gmail.com wrote: I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: • Pygame - As far as I know it's dead and has been for almost a year • PyOgre - Linux and Windows only(I do have those, but I want

Re: Python Game Development?

2013-06-08 Thread Nobody
On Fri, 07 Jun 2013 08:53:03 -0700, letsplaysforu wrote: I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: [snip] There's also Pyglet. -- http://mail.python.org/mailman/listinfo/python-list

Riemann and Bernhard, a distributed systems monitor and Python client

2013-06-08 Thread vasudevram
This may be of interest to the group: Riemann and Bernhard, a distributed systems monitor and Python client http://jugad2.blogspot.in/2013/06/riemann-and-bernhard-distributed.html - Vasudev Ram dancingbison.com Python training and consulting --

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread Νικόλαος Κούρας
Τη Σάββατο, 8 Ιουνίου 2013 10:01:51 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: On Sat, Jun 8, 2013 at 4:53 PM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Τη Παρασκευή, 7 Ιουνίου 2013 11:47:58 μ.μ. UTC+3, ο χρήστης MRAB έγραψε: On 07/06/2013 19:24, Νικόλαος Κούρας wrote: \ Τη

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread Chris Angelico
On Sun, Jun 9, 2013 at 1:36 AM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Τη Σάββατο, 8 Ιουνίου 2013 10:01:51 π.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: On Sat, Jun 8, 2013 at 4:53 PM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Τη Παρασκευή, 7 Ιουνίου 2013 11:47:58 μ.μ. UTC+3, ο

Re: Python Game Development?

2013-06-08 Thread Fábio Santos
On Fri, 07 Jun 2013 08:53:03 -0700, letsplaysforu wrote: I was planning on making a small 2D game in Python. Are there any libraries for this? I know of: It wasn't your question, but I was happy to find out that box2d exists for python. -- http://mail.python.org/mailman/listinfo/python-list

Installing PyGame?

2013-06-08 Thread Eam onn
Perhaps this isn't the right place to post this, but it's the only place I could find. I asked yesterday or the day before about Python Game Development, and have found a few tutorials on PyGame. Now I have a bigger problem: HOW THE HECK DO I INSTALL PYGAME!?!?! System Details: • Mac OS X

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread MRAB
On 08/06/2013 07:49, Νικόλαος Κούρας wrote: Τη Σάββατο, 8 Ιουνίου 2013 5:52:22 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: On 07Jun2013 11:52, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= nikos.gr...@gmail.com wrote: | ni...@superhost.gr [~/www/cgi-bin]# [Fri Jun 07 21:49:33 2013] [error]

Re: Installing PyGame?

2013-06-08 Thread Fábio Santos
On 8 Jun 2013 17:17, Eam onn letsplaysf...@gmail.com wrote: I keep getting an error in all my versions of IDLE. What error is that? Show us. Errors carry strong hints. Also, are you following an install guide/tutorial? Which one? Cheers -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Νικόλαος Κούρας
Sorry for th delay guys, was busy with other thigns today and i am still reading your resposes, still ahvent rewad them all just Cameron's: Here is what i have now following Cameron's advices: # # Collect filenames of the path directory

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread Νικόλαος Κούρας
Τη Σάββατο, 8 Ιουνίου 2013 7:03:57 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: On Sun, Jun 9, 2013 at 1:36 AM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Well, www as symlink to public_html is always a symlink to any system i have used so its something defaulted. It's most certainly not

Re: Installing PyGame?

2013-06-08 Thread Eam onn
On Saturday, June 8, 2013 5:41:40 PM UTC+1, Fábio Santos wrote: On 8 Jun 2013 17:17, Eam onn letspl...@gmail.com wrote: I keep getting an error in all my versions of IDLE. What error is that? Show us. Errors carry strong hints. Also, are you following an install guide/tutorial? Which

Re: Idiomatic Python for incrementing pairs

2013-06-08 Thread Terry Jan Reedy
On 6/8/2013 12:16 AM, Tim Chase wrote: On 2013-06-08 07:04, Carlos Nepomuceno wrote: alpha, beta = (1 if some_calculation(params) else 0, 1 if other_calculation(params) else 0) This one sets them to absolute values, rather than the incrementing functionality in question: alpha += temp_a

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Νικόλαος Κούρας
Okey after reading also Steven post, i was relived form the previous suck position i was, so with an alternation of a few variable names here is the code now: # # Collect directory and its filenames as bytes path =

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread MRAB
On 08/06/2013 17:53, Νικόλαος Κούρας wrote: Sorry for th delay guys, was busy with other thigns today and i am still reading your resposes, still ahvent rewad them all just Cameron's: Here is what i have now following Cameron's advices:

Re: Installing PyGame?

2013-06-08 Thread cclauss
At the Terminal prompt type: python -c help('modules') If Pygame is not somewhere in the output then Pygame is not yet installed. If it is not installed then type: pip install --upgrade pygame -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Νικόλαος Κούρας
On 8/6/2013 5:49 πμ, Cameron Simpson wrote: On 07Jun2013 04:53, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= nikos.gr...@gmail.com wrote: | Τη Παρασκευή, 7 Ιουνίου 2013 11:53:04 π.μ. UTC+3, ο χρήστης Cameron Simpson έγραψε: | | | errors='replace' mean dont break in case or error? | | | Yes. The

Re: Installing PyGame?

2013-06-08 Thread Eam onn
On Saturday, June 8, 2013 6:58:53 PM UTC+1, ccl...@bluewin.ch wrote: At the Terminal prompt type: python -c help('modules') If Pygame is not somewhere in the output then Pygame is not yet installed. If it is not installed then type: pip install --upgrade pygame python -c

Re: Installing PyGame?

2013-06-08 Thread Eam onn
On Saturday, June 8, 2013 7:05:49 PM UTC+1, Eam onn wrote: On Saturday, June 8, 2013 6:58:53 PM UTC+1, ccl...@bluewin.ch wrote: At the Terminal prompt type: python -c help('modules') If Pygame is not somewhere in the output then Pygame is not yet installed.

Re: Problems with serial port interface

2013-06-08 Thread lionelgreenstreet
Ok, thanks for your reply. But i have another problem: i hadn't always the hardware needed for the tests. Before i've used a terminal and com0com to simulate a serial input: if i want to simulate a transmission every 5ms how can i do? I need a program or a code that i'm sure about its

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Steven D'Aprano
On Sat, 08 Jun 2013 21:01:23 +0300, Νικόλαος Κούρας wrote: In the beginning there was ASCII with 0-127 values No, there were encoding systems that existed before ASCII, such as EBCDIC. But we can ignore those, and just start with ASCII. and then there was Unicode with 0-127 of ASCII's + i

Re: Installing PyGame?

2013-06-08 Thread Fábio Santos
On 8 Jun 2013 19:19, Eam onn letsplaysf...@gmail.com wrote: Wait, the python -c help('modules') worked after spamming it a few times. Pygame was listed but it won't do anything when I type in 'import pygame' I still get the error :( Try to always say what your error was. Do you have pip

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Chris Angelico
On Sun, Jun 9, 2013 at 4:01 AM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Hold on! In the beginning there was ASCII with 0-127 values and then there was Unicode with 0-127 of ASCII's + i dont know how much many more? Now ASCIII needs 1 byte to store a single character while Unicode needs

Re: Installing PyGame?

2013-06-08 Thread cclauss
Type: python -V (That was a capitol V) What version of python is running? Type: python3 -V (That was a capitol V) What version of python is running? Type: python -c 'import pygame' What is the exact error message? Type: python Your prompt should change to something like: Type: import pygame

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Νικόλαος Κούρας
Τη Σάββατο, 8 Ιουνίου 2013 10:01:57 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: ASCII actually needs 7 bits to store a character. Since computers are optimized to work with bytes, not bits, normally ASCII characters are stored in a single byte, with one bit wasted. So ASCII and Unicode

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread Michael Torrie
On 06/08/2013 10:56 AM, Νικόλαος Κούρας wrote: its very tedious to always triming everything for me and i know it is for you to ead it assuc. Damn google groups, why is it behaving as such? Dont the programmers know about it? Most of us on the list don't use google groups. A number of us use

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Νικόλαος Κούρας
Sorry for displaying my code so many times, i know i ahve exhaust you but hti is the last thinkg i am gonna ask from you in this thread. We are very close to have this working. # # Collect directory and its filenames as bytes path =

Re-using copyrighted code

2013-06-08 Thread Malte Forkel
Hello, I have written a small utility to locate errors in regular expressions that I want to upload to PyPI. Before I do that, I would like to learn a litte more about the legal aspects of open-source software. What would be a good introductory reading? Plus, I have one very specific question:

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread Νικόλαος Κούρας
Τη Κυριακή, 9 Ιουνίου 2013 12:17:16 π.μ. UTC+3, ο χρήστης Michael Torrie έγραψε: What does this error means anyway? It means that Apache is unable to find your cgi script. It's turning the url into a file path, but it can't find the file path. Sometimes Apache is configured to not

Re: Re-using copyrighted code

2013-06-08 Thread Andrew Berg
On 2013.06.08 16:31, Malte Forkel wrote: Hello, I have written a small utility to locate errors in regular expressions that I want to upload to PyPI. Before I do that, I would like to learn a litte more about the legal aspects of open-source software. What would be a good introductory

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Chris Angelico
On Sun, Jun 9, 2013 at 7:21 AM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Sorry for displaying my code so many times, i know i ahve exhaust you but hti is the last thinkg i am gonna ask from you in this thread. We are very close to have this working. You need to spend more time reading

Re: Re-using copyrighted code

2013-06-08 Thread Benjamin Kaplan
On Sat, Jun 8, 2013 at 2:31 PM, Malte Forkel malte.for...@berlin.de wrote: Hello, I have written a small utility to locate errors in regular expressions that I want to upload to PyPI. Before I do that, I would like to learn a litte more about the legal aspects of open-source software. What

Re: Re-using copyrighted code

2013-06-08 Thread Chris Angelico
On Sun, Jun 9, 2013 at 7:31 AM, Malte Forkel malte.for...@berlin.de wrote: # This version of the SRE library can be redistributed under CNRI's # Python 1.6 license. For any other use, please contact Secret Labs # AB (i...@pythonware.com). I presume that's referring to this:

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread Chris Angelico
On Sun, Jun 9, 2013 at 2:56 AM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Τη Σάββατο, 8 Ιουνίου 2013 7:03:57 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: On Sun, Jun 9, 2013 at 1:36 AM, Νικόλαος Κούρας nikos.gr...@gmail.com wrote: Well, www as symlink to public_html is always a symlink

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Cameron Simpson
On 08Jun2013 14:14, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= nikos.gr...@gmail.com wrote: | Τη Σάββατο, 8 Ιουνίου 2013 10:01:57 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: | ASCII actually needs 7 bits to store a character. Since computers are | optimized to work with bytes, not bits,

Re: Re-using copyrighted code

2013-06-08 Thread Andrew Berg
On 2013.06.08 17:09, Benjamin Kaplan wrote: On Sat, Jun 8, 2013 at 2:31 PM, Malte Forkel malte.for...@berlin.de wrote: # This version of the SRE library can be redistributed under CNRI's # Python 1.6 license. For any other use, please contact Secret Labs # AB (i...@pythonware.com). # #

Re: Installing PyGame?

2013-06-08 Thread Neil Hodgson
Eam onn: ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so, 2): no suitable image found. Did find: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygame/base.so: no matching architecture

Re: Re-using copyrighted code

2013-06-08 Thread Mark Janssen
I can't tell you as a lawyer, but I can tell you that regarding code for non-commercial use, the only supportable case is requiring fair-credit assignment. If reading the original license (which you are obligated to do if you re-use and re-distribute the code), it stipulates that you must

Re: Re-using copyrighted code

2013-06-08 Thread Steven D'Aprano
On Sat, 08 Jun 2013 23:31:10 +0200, Malte Forkel wrote: Hello, I have written a small utility to locate errors in regular expressions that I want to upload to PyPI. Before I do that, I would like to learn a litte more about the legal aspects of open-source software. What would be a good

Listing modules from all installed packages

2013-06-08 Thread Julien Phalip
Hi, I'm trying to write a function that programmatically obtains and returns the exact location of all first-level modules for all installed packages. For example, if the packages named 'django' and 'django-debug-toolbar' are installed, I'd like this function to return something like:

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread Νικόλαος Κούρας
On 9/6/2013 1:32 πμ, Cameron Simpson wrote: On 08Jun2013 14:14, =?utf-8?B?zp3Or866zr/PgiDOk866z4EzM866?= nikos.gr...@gmail.com wrote: | Τη Σάββατο, 8 Ιουνίου 2013 10:01:57 μ.μ. UTC+3, ο χρήστης Steven D'Aprano έγραψε: | ASCII actually needs 7 bits to store a character. Since computers are |

Re: Changing filenames from Greeklish = Greek (subprocess complain)

2013-06-08 Thread nagia . retsina
Τη Σάββατο, 8 Ιουνίου 2013 9:47:53 μ.μ. UTC+3, ο χρήστης Chris Angelico έγραψε: Fortunately, Python lets us hide away pretty much all those details, just as it lets us hide away the details of what makes up a list, a dictionary, or an integer. You can safely assume that the string foo is a

RE: Listing modules from all installed packages

2013-06-08 Thread Carlos Nepomuceno
print '\n'.join([re.findall(from '(.*)',str(v))[0] for k,v in sys.modules.items() if str(v).find('from')-1]) Date: Sat, 8 Jun 2013 21:30:48 -0700 Subject: Listing modules from all installed packages From: jpha...@gmail.com To: python-list@python.org Hi, I'm trying to write a function

Re: Errin when executing a cgi script that sets a cookie in the browser

2013-06-08 Thread nagia . retsina
Trying yum install dos2unix and root@nikos [/home/nikos/www/cgi-bin]# dos2unix koukos.py dos2unix: converting file koukos.py to UNIX format ... Then browsed to the page again in Chrome it worked as expected :-) -- http://mail.python.org/mailman/listinfo/python-list

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Hopefully the final bit of code, plus docs. Code changes: _names_ are reserved Doc changes (different from the PEP): examples of AutoEnum, UniqueEnum, and OrderedEnum -- Added file: http://bugs.python.org/file30504/pep-0435.08.stoneleaf.patch

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: Removed file: http://bugs.python.org/file30504/pep-0435.08.stoneleaf.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: Added file: http://bugs.python.org/file30505/pep-0435.08.stoneleaf.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: Removed file: http://bugs.python.org/file30505/pep-0435.08.stoneleaf.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Apologies for the noise -- was having trouble getting the correct patch attached. :/ -- Added file: http://bugs.python.org/file30506/pep-0435.09.stoneleaf.patch ___ Python tracker rep...@bugs.python.org

[issue18111] Add a default argument to min max

2013-06-08 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18111 ___ ___ Python-bugs-list

[issue18112] PEP 442 implementation

2013-06-08 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +isoschiz, pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18112 ___ ___

[issue18129] Fatal Python error: Cannot recover from stack overflow.

2013-06-08 Thread Phil Connell
Changes by Phil Connell pconn...@gmail.com: -- nosy: +pconnell ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18129 ___ ___ Python-bugs-list

[issue16715] Get rid of IOError. Use OSError instead

2013-06-08 Thread koobs
koobs added the comment: Commit to 3.3 broke at least my FreeBSD buildbot: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%20dtrace%203.3/builds/641/steps/test/logs/stdio Also setting +Version: Python 3.3 on this. -- nosy: +koobs versions: +Python 3.3

[issue15528] Better support for finalization with weakrefs

2013-06-08 Thread Łukasz Langa
Łukasz Langa added the comment: Your patch leaks references with subinterpreters, which was exposed by functools.singledispatch using weakref. While the actual bug is in atexit (which doesn't properly unregister on subinterpreter termination), now all uses of weakref leak. Context:

[issue16715] Get rid of IOError. Use OSError instead

2013-06-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't think so. The idle test, test_idle, passed. The patch did not even affect any of the three idle files that it currently tests. Just because a commit triggers a test does not mean that it is the cause of any failure that happens. The log says the

[issue18111] Add a default argument to min max

2013-06-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: - patch review versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18111 ___

[issue16715] Get rid of IOError. Use OSError instead

2013-06-08 Thread koobs
koobs added the comment: Apologies for the noise Terry, rebuilding passes. Unsetting versions: 3.3 Is the failure on the build I reported worth opening an issue for? -- versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue17343] Add a version of str.split which returns an iterator

2013-06-08 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17343 ___ ___

[issue7796] No way to find out if an object is an instance of a namedtuple

2013-06-08 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7796 ___ ___ Python-bugs-list

[issue18143] ssl.get_default_verify_paths()

2013-06-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your raw parameter is one too many IMO. You should find a way to present all relevant information in a single API call. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18143

[issue15528] Better support for finalization with weakrefs

2013-06-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6ad9d7468f7 by Richard Oudkerk in branch 'default': Issue #15528: Delay importing atexit until weakref.finalize() used. http://hg.python.org/cpython/rev/d6ad9d7468f7 -- ___ Python tracker

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: So, which is better? To have a @unique class decorator as part of the module, or to have a UniqueEnum recipe in the docs? A decorator is immediately usable, but requires remembering an extra line of code. An example requires being put into a local utility

[issue17375] Add docstrings to methods in the threading module

2013-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17375 ___ ___ Python-bugs-list

[issue1772673] Replacing char* with const char*

2013-06-08 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- nosy: -eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1772673 ___ ___ Python-bugs-list

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Eli Bendersky
Eli Bendersky added the comment: Nick prudently moved the unique discussion to its own issue - 18042. Let's get the initial implementation docs committed first (without unique in the implementation, although it's fine to have it as an example in the docs for now), close this issue, and then

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Ethan Furman
Ethan Furman added the comment: Good idea, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17947 ___ ___ Python-bugs-list mailing list

[issue17947] Code, test, and doc review for PEP-0435 Enum

2013-06-08 Thread Eli Bendersky
Eli Bendersky added the comment: I sent a fresh review - nothing major; it's very near commit readiness now. Additional changes can be done after the initial commit. We have time until 3.4 beta (November 2013) to tweak stuff (and the documentation whenever...) --

[issue18042] Provide enum.unique class decorator

2013-06-08 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: +1 for the decorator! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18042 ___ ___ Python-bugs-list mailing

[issue18042] Provide enum.unique class decorator

2013-06-08 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18042 ___ ___ Python-bugs-list mailing

[issue18143] ssl.get_default_verify_paths()

2013-06-08 Thread Christian Heimes
Christian Heimes added the comment: How about a single return value: DefaultVerifyPaths = collections.namedtuple(DefaultVerifyPaths, cafile capath openssl_cafile_env openssl_cafile openssl_capath_env openssl_capath) -- ___ Python tracker

[issue15528] Better support for finalization with weakrefs

2013-06-08 Thread Richard Oudkerk
Richard Oudkerk added the comment: PJE suggests importing atexit and registering finalize only when it's actually used. I guess this would be the easiest workaround. Done. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8902] add datetime.time.now() for consistency

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8902 ___

[issue18159] ConfigParser getters not available on SectionProxy

2013-06-08 Thread João Bernardo
João Bernardo added the comment: Overriding __getattr__ doesn't look like the best solution Another idea would be to allow the proxy class to be selectable, but this would require the user to do much more coding for this simple thing... I believe a proxy should be dynamic enough to avoid

[issue18113] Memory leak in curses.panel

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18113 ___ ___

[issue18110] Nested set comprehensions in class scope fail

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18110 ___

[issue18119] urllib.FancyURLopener does not treat URL fragments correctly

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18119 ___ ___

[issue18156] Add an 'attr' attribute to AttributeError

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18156 ___ ___

[issue18152] Idle: add 2.7 backport script

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: 'Import' is as easy to use as Graft and as far as I know, the result when successful is the same. I use import while importing patches from the tracker, but once I committed on 2.x it's easier to just graft instead of importing again (importing often

[issue14015] surrogateescape largely missing from documentation

2013-06-08 Thread A.M. Kuchling
Changes by A.M. Kuchling li...@amk.ca: -- nosy: +akuchling ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14015 ___ ___ Python-bugs-list mailing

[issue17134] Use Windows' certificate store for CA certs

2013-06-08 Thread Christian Heimes
Christian Heimes added the comment: New patch with fixed doc string and indention. http://msdn.microsoft.com/en-us/library/windows/desktop/aa377189%28v=vs.85%29.aspx explains how encoding type shall be interpreted. I haven't seen PKCS#7 certs on my Windows system, though. Instead of a flag I

[issue18143] ssl.get_default_verify_paths()

2013-06-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: How about a single return value: DefaultVerifyPaths = collections.namedtuple(DefaultVerifyPaths, cafile capath openssl_cafile_env openssl_cafile openssl_capath_env openssl_capath) Sounds good. -- ___

[issue14797] Deprecate imp.find_module()/load_module()

2013-06-08 Thread Thomas Heller
Thomas Heller added the comment: The modulefinder usage is directly exposed in its API as the return value of a find_module method, which makes removal a pain. Adding Thomas Heller to see what he has to say. Some months ago, I have started to implement a brand-new modulefinder, which is

[issue18168] plistlib output self-sorted dictionary

2013-06-08 Thread Mher Movsisyan
Mher Movsisyan added the comment: I think this is not a bug. plistlib api accepts dict (not OrderedDict) and sorted output is a valid output. plistlib sorts dictionaries to be consistent with Apple's tools. property list format [1] uses CFDictionary [2] with CFString keys. CFDictionary is

[issue7796] No way to find out if an object is an instance of a namedtuple

2013-06-08 Thread Eric Snow
Eric Snow added the comment: It may not enough, but the use of namedtuples (vs. plain tuples) with functools.singledispatch() would be messier without a NamedTuple ABC (or other base type). Of course, when would you want to dispatch specifically on namedtuple? I can think of a few

[issue18168] plistlib output self-sorted dictionary

2013-06-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18168 ___

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2013-06-08 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10652 ___ ___

[issue18169] struct.pack() behaves strangely for 'L' on 64bit Linux

2013-06-08 Thread Roman Zeyde
New submission from Roman Zeyde: Reproduction: Python 2.7.4 (default, Apr 19 2013, 18:28:01) [GCC 4.7.3] on linux2 Type help, copyright, credits or license for more information. import struct struct.pack('!L', 0x01020304) '\x01\x02\x03\x04' struct.pack('L', 0x01020304) '\x01\x02\x03\x04'

[issue18041] mention issues with code churn in the devguide

2013-06-08 Thread Ezio Melotti
Ezio Melotti added the comment: I’ve actually seen two contrary kinds of advice and the best approach is most of the times something in between. Doing minor cleanups while touching the code is fine, but if most of the changes are cleanups then it gets distracting. In that case it's better

  1   2   >