Re: ANN: PyGUI 2.5

2011-06-18 Thread Gregory Ewing
Terry Reedy wrote: Greg left out the most important to me: Now works with Python 3 on MacOSX and Windows! I'm not making too much of that at the moment, because it *doesn't* work on Linux yet, and I've no idea how long it will be before it does. The issue is that there will apparently not be

Re: integer to binary 0-padded

2011-06-18 Thread jmfauth
'{:+#0{}b}'.format(255, 1 + 2 + 16) +0b '{:+#0{}b}'.format(-255, 1 + 2 + 16) -0b eval('{:+#0{}b}'.format(255, 1 + 2 + 16)) 255 eval('{:+#0{}b}'.format(-255, 1 + 2 + 16)) -255 jmf -- http://mail.python.org/mailman/listinfo/python-list

Re: New member intro and question

2011-06-18 Thread Kushal Kumaran
Hi Anthony, Welcome to the python users mailing list. On Sat, Jun 18, 2011 at 9:32 AM, Anthony Papillion papill...@gmail.com wrote: Hi Everyone, gush I'm a new list member from the United States. Long time programmer, fairly new to Python and absolutely loving it so far! I'm 36, live in

Re: New member intro and question

2011-06-18 Thread Daniel Fetchinson
gush I'm a new list member from the United States. Long time programmer, fairly new to Python and absolutely loving it so far! I'm 36, live in Oklahoma, and own a small Linux software development and consulting firm. Python has made my life a *lot* easier and, the more I learn, the easier it

Re: integer to binary 0-padded

2011-06-18 Thread Steven D'Aprano
On Fri, 17 Jun 2011 23:14:09 -0700, jmfauth wrote: '{:+#0{}b}'.format(255, 1 + 2 + 16) +0b '{:+#0{}b}'.format(-255, 1 + 2 + 16) -0b eval('{:+#0{}b}'.format(255, 1 + 2 + 16)) 255 eval('{:+#0{}b}'.format(-255, 1 + 2 + 16)) -255 Is this a question? Or did

Re: Nimp: Nested Imports (a la Java)

2011-06-18 Thread Tomer Filiba
Stefan Behnel stefan_ml at behnel.de writes: So, this isn't really about nested imports but rather about merging distinct packages, right? This allows me to let packages that are stored in different places appear within their common package prefix. yes, in lack of a better name, i chose

Re: What's the best way to write this base class?

2011-06-18 Thread bruno.desthuilli...@gmail.com
On 18 juin, 06:17, John Salerno johnj...@gmail.com wrote: Note: I have in mind that when a specific subclass (Warrior, Wizard, etc.) is created, the only argument that will ever be passed to the __init__ method is the name. The other variables will never be explicitly passed, but will be set

Re: What's the best way to write this base class?

2011-06-18 Thread TheSaint
John Salerno wrote: class Character: I'd vote to point 1 -- goto /dev/null -- http://mail.python.org/mailman/listinfo/python-list

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-18 Thread Dotan Cohen
On Sat, Jun 18, 2011 at 01:09, Xah Lee xah...@gmail.com wrote: thanks. didn't know about Ducky keyboard. Looks good. Also nice to hear your experience about Truly Ergonomic keyboard. I like it, see my first-hour review here: http://geekhack.org/showwiki.php?title=Island:18154 no actually i

Re: What's the best way to write this base class?

2011-06-18 Thread Tim Chase
On 06/18/2011 05:55 AM, bruno.desthuilli...@gmail.com wrote: On 18 juin, 06:17, John Salernojohnj...@gmail.com wrote: class Character: base_health = 50 base_resource = 10 def __init__(self, name): self.name = name self.health = base_health

Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread mzagu...@gmail.com
Hello Folks, I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using some other means. I find it likely that there is no solution, in which case what is the best

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-18 Thread Xah Lee
On Jun 18, 4:06 am, Dotan Cohen dotanco...@gmail.com wrote: On Sat, Jun 18, 2011 at 01:09, Xah Lee xah...@gmail.com wrote: thanks. didn't know about Ducky keyboard. Looks good. Also nice to hear your experience about Truly Ergonomic keyboard. I like it, see my first-hour review

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Eden Kirin
On 18.06.2011 13:34, mzagu...@gmail.com wrote: Hello Folks, I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using some other means. I find it likely that there is

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improve the Dvorak Layout?

2011-06-18 Thread Dotan Cohen
On Sat, Jun 18, 2011 at 14:40, Xah Lee xah...@gmail.com wrote: very nice review! and on geekhack.org too — the hardcore keyboard mod site! I enjoyed reading it. Yes, that is some forum! Wait until I post my mods. You've never seen such abused input devices, I hope. i only started to use

Re: New member intro and question

2011-06-18 Thread mm0fmf
Anthony Papillion wrote: which isn't too shabby but I wonder if it will work. Anything with a 1.2GHz CPU 512Mb RAM is anything but extremely resource limited ;-) I find Python 2.7 runs admirably on a 266MHz PowerPC with only 128MB of ram. --

Re: What's the best way to write this base class?

2011-06-18 Thread bruno.desthuilli...@gmail.com
On 18 juin, 13:24, Tim Chase python.l...@tim.thechases.com wrote: On 06/18/2011 05:55 AM, bruno.desthuilli...@gmail.com wrote: On 18 juin, 06:17, John Salernojohnj...@gmail.com  wrote: class Character:      base_health = 50      base_resource = 10      def __init__(self, name):    

Re: Python 2.7.2 for Windows reports version as 2.7.0?

2011-06-18 Thread python
Benjamin, I tried uninstalling and re-installing Python 2.7.2 without success ... I kept getting the proper exe's, but when run, the Python version continued to be reported as 2.7.0. Finally I installed for current user only (vs. all users) - the installation now correctly reports my version as

Re: What's the best way to write this base class?

2011-06-18 Thread Mel
John Salerno wrote: [ ... ] 1) class Character: def __init__(self, name, base_health=50, base_resource=10): self.name = name self.health = base_health self.resource = base_resource 2) class Character: base_health = 50 base_resource = 10 def

Re: Python 2.7.2 for Windows reports version as 2.7.0?

2011-06-18 Thread Ethan Furman
[re-posting to list] pyt...@bdurham.com wrote: Within the folder where the python.exe exists, I have tried the following, all of which report Python 2.7.0 vs. 2.7.2 Confirming I'm running what I think I'm running: import sys sys.hexversion 34013424 sys.executable

Globalize Management careers.

2011-06-18 Thread gaurav
Site of computer jobs starts with freelance, graphics, data entry too many options in print media make career. http://rojgars1.webs.com/gov.htm http://jobscore.webs.com/retailjob.htm Get careers in Management work. Earn unlimited in Management careers. http://jobshunter.webs.com/index.htm

Re: Python and Lisp : car and cdr

2011-06-18 Thread Nobody
On Fri, 17 Jun 2011 16:45:38 +0200, Franck Ditter wrote: Hi, I'm just wondering about the complexity of some Python operations to mimic Lisp car and cdr in Python... def length(L) : if not L : return 0 return 1 + length(L[1:]) Python's lists are arrays/vectors, not linked lists.

Re: What's the best way to write this base class?

2011-06-18 Thread Ian Kelly
On Sat, Jun 18, 2011 at 7:37 AM, bruno.desthuilli...@gmail.com bruno.desthuilli...@gmail.com wrote: If you go that way, then using polymorphic dispatch might (or not, depending on the game's rules g) be a good idea: class Character(object):    BASE_HEALTH = 50    ...    def __init__(self,

Re: What's the best way to write this base class?

2011-06-18 Thread Ethan Furman
John Salerno wrote: 1) class Character: def __init__(self, name, base_health=50, base_resource=10): self.name = name self.health = base_health self.resource = base_resource You said above that health and resource will never be explicitly passed, yet here you have

porting maatkit to python?

2011-06-18 Thread anand jeyahar
Hi all, I have tried maatkit and was wondering whether it was worth porting maatkit to python. I personally find perl clunky and think python codebase would be easier to maintain, bugfix and enhance. If there is a reasonable amount of interest i can start with some basic functionality(will

Re: What's the best way to write this base class?

2011-06-18 Thread John Salerno
Whew, thanks for all the responses! I will think about it carefully and decide on a way. I was leaning toward simply assigning the health, resource, etc. variables in the __init__ method, like this: def __init__(self, name): self.name = name self.health = 50 self.resource = 10 I

Re: What's the best way to write this base class?

2011-06-18 Thread Chris Angelico
On Sun, Jun 19, 2011 at 2:26 AM, John Salerno johnj...@gmail.com wrote: The idea of not using a base Character class at all threw me for a loop though, so I need to think about that too! It's easy to fall in love with a concept like inheritance, and use it in all sorts of things. You then have

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Michael Hrivnak
Authentication by client SSL certificate is best. You should also look into restricting access on the server side by IP address. Michael On Sat, Jun 18, 2011 at 7:34 AM, mzagu...@gmail.com mzagu...@gmail.com wrote: Hello Folks, I am wondering what your strategies are for ensuring that data

Re: How do you copy files from one location to another?

2011-06-18 Thread Michael Hrivnak
Python is great for automating sysadmin tasks, but perhaps you should just use rsync for this. It comes with the benefit of only copying the changes instead of every file every time. rsync -a C:\source E:\destination and you're done. Michael On Fri, Jun 17, 2011 at 1:06 AM, John Salerno

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Chris Angelico
On Sat, Jun 18, 2011 at 9:34 PM, mzagu...@gmail.com mzagu...@gmail.com wrote: I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using some other means.  I find it

Re: Question regarding DNS resolution in urllib2

2011-06-18 Thread Michael Hrivnak
The latest libcurl includes the CURLOPTS_RESOLVE option (http://curl.haxx.se/libcurl/c/curl_easy_setopt.html) that will do what you want. It may not have made its way into pycurl yet, but you could just call the command-line curl binary with the --resolve option. This feature was introduced in

debugging https connections with urllib2?

2011-06-18 Thread Roy Smith
We've got a REST call that we're making to a service provider over https using urllib2.urlopen(). Is there any way to see exactly what's getting sent and received over the network (i.e. all the HTTP headers) in plain text? Things like tcpdump and strace only have access to the encrypted

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Tim Roberts
mzagu...@gmail.com mzagu...@gmail.com wrote: For example, if I create a website that tracks some sort of statistical information and don't ensure that my program is the one that is uploading it, the statistics can be thrown off by people entering false POST data onto the data upload page. Any

Re: debugging https connections with urllib2?

2011-06-18 Thread Irmen de Jong
On 18-6-2011 20:57, Roy Smith wrote: We've got a REST call that we're making to a service provider over https using urllib2.urlopen(). Is there any way to see exactly what's getting sent and received over the network (i.e. all the HTTP headers) in plain text? Things like tcpdump and

Improper creating of logger instances or a Memory Leak?

2011-06-18 Thread foobar
I've run across a memory leak in a long running process which I can't determine if its my issue or if its the logger. The long and short is I'm doing load testing on an application server which spawns handlers threads which in turn each spawn a single application thread. A graphic representation

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Michael Hrivnak
On Sat, Jun 18, 2011 at 1:26 PM, Chris Angelico ros...@gmail.com wrote: SSL certificates are good, but they can be stolen (very easily if the client is open source). Anything algorithmic suffers from the same issue. This is only true if you distribute your app with one built-in certificate,

Re: How do you copy files from one location to another?

2011-06-18 Thread Terry Reedy
On 6/18/2011 1:13 PM, Michael Hrivnak wrote: Python is great for automating sysadmin tasks, but perhaps you should just use rsync for this. It comes with the benefit of only copying the changes instead of every file every time. rsync -a C:\source E:\destination and you're done. Perhaps

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Paul Rubin
mzagu...@gmail.com mzagu...@gmail.com writes: For example, if I create a website that tracks some sort of statistical information and don't ensure that my program is the one that is uploading it, the statistics can be thrown off by people entering false POST data onto the data upload page.

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Terry Reedy
On 6/18/2011 7:34 AM, mzagu...@gmail.com wrote: Hello Folks, I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using some other means. I find it likely that there

Re: debugging https connections with urllib2?

2011-06-18 Thread Roy Smith
In article 4dfcff48$0$49184$e4fe5...@news.xs4all.nl, Irmen de Jong irmen.nos...@xs4all.nl wrote: On 18-6-2011 20:57, Roy Smith wrote: We've got a REST call that we're making to a service provider over https using urllib2.urlopen(). Is there any way to see exactly what's getting sent

Re: Improper creating of logger instances or a Memory Leak?

2011-06-18 Thread Chris Torek
In article ebafe7b6-aa93-4847-81d6-12d396a4f...@j28g2000vbp.googlegroups.com foobar wjship...@gmail.com wrote: I've run across a memory leak in a long running process which I can't determine if its my issue or if its the logger. You do not say what version of python you are using, but on the

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Chris Angelico
On Sun, Jun 19, 2011 at 6:40 AM, Michael Hrivnak mhriv...@hrivnak.org wrote: On Sat, Jun 18, 2011 at 1:26 PM, Chris Angelico ros...@gmail.com wrote: SSL certificates are good, but they can be stolen (very easily if the client is open source). Anything algorithmic suffers from the same issue.

NEED HELP-process words in a text file

2011-06-18 Thread Cathy James
Dear Python Experts, First, I'd like to convey my appreciation to you all for your support and contributions. I am a Python newborn and need help with my function. I commented on my program as to what it should do, but nothing is printing. I know I am off, but not sure where. Please help:(

Re: NEED HELP-process words in a text file

2011-06-18 Thread Chris Rebert
On Sat, Jun 18, 2011 at 4:21 PM, Cathy James nambo...@gmail.com wrote: Subject: NEED HELP-process words in a text file Dear Python Experts, First, I'd like to convey my appreciation to you all for your support and contributions.  I am a Python newborn and need help with my function. I

Re: NEED HELP-process words in a text file

2011-06-18 Thread Tim Chase
On 06/18/2011 06:21 PM, Cathy James wrote: freq = [] #empty dict to accumulate words and word length While you say you create an empty dict, using [] creates an empty *list*, not a dict. Either your comment is wrong or your code is wrong. :) Given your usage, I presume you want a

Re: NEED HELP-process words in a text file

2011-06-18 Thread Chris Rebert
On Sat, Jun 18, 2011 at 4:21 PM, Cathy James nambo...@gmail.com wrote: Dear Python Experts, First, I'd like to convey my appreciation to you all for your support and contributions.  I am a Python newborn and need help with my function. I commented on my program as to what it should do, but

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Gregory Ewing
Michael Hrivnak wrote: Besides, it seems that all you've accomplished is verifying that the client can execute python code and you've made it a bit less convenient to attack. And that only if the attacker isn't a Python programmer. If he is, he's probably writing his attack program in Python

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Chris Angelico
On Sun, Jun 19, 2011 at 10:38 AM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: And that only if the attacker isn't a Python programmer. If he is, he's probably writing his attack program in Python anyway. :-) I was thinking you'd have it call on various functions defined elsewhere in the

Re: import from environment path

2011-06-18 Thread Chris Torek
In article 3a2b0261-ee10-40c0-8fad-342f186ee...@q30g2000yqb.googlegroups.com Guillaume Martel-Genest guillaum...@gmail.com wrote: Here's my situation : I got a script a.py that need to call b.py. The 2 scripts can't be in a same package. Script a.py knows the path of b.py relative to an

Re: Python 2.7.2 for Windows reports version as 2.7.0?

2011-06-18 Thread Mark Hammond
On 18/06/2011 1:36 PM, pyt...@bdurham.com wrote: Hi Benjamin, The file info is seems correct but I just checked the MSI and it's reporting that it's 2.7.2. How exactly are you running python.exe and IDLE- are you calling the full path, just calling python and using whichever python version is

Re: NEED HELP-process words in a text file

2011-06-18 Thread Dave Angel
On 01/-10/-28163 02:59 PM, Cathy James wrote: Dear Python Experts, First, I'd like to convey my appreciation to you all for your support and contributions. I am a Python newborn and need help with my function. I commented on my program as to what it should do, but nothing is printing. I know I

What would you like to see in a File Organizer ?

2011-06-18 Thread zainul franciscus
We are writing a linux file organizer with the code name Cruftbuster. Cruftbuster is an automated file management application for Linux that performs actions on files based on user-defined criteria. For example, if your files in a folder have not been accessed for more than a year and bigger than

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improvethe Dvorak Layout?

2011-06-18 Thread Lie Ryan
On 06/18/11 03:53, Xah Lee wrote: On Jun 15, 5:43 am, rusi rustompm...@gmail.com wrote: On Jun 15, 5:32 pm, Dotan Cohen dotanco...@gmail.com wrote: Thanks. From testing small movements with my fingers I see that the fourth finger is in fact a bit weaker than the last finger, but more

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Nobody
On Sat, 18 Jun 2011 04:34:55 -0700, mzagu...@gmail.com wrote: I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using some other means. Any remedy? Supply the

print header for output

2011-06-18 Thread Cathy James
I managed to get output for my function, thanks much for your direction. I really appreciate the hints. Now I have tried to place the statement print (Length \t + Count\n) in different places in my code so that the function can print the headers only one time in this manner: Count Length 4 7 8

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile to Improvethe Dvorak Layout?

2011-06-18 Thread rusi
On Jun 19, 9:21 am, Lie Ryan lie.1...@gmail.com wrote: On 06/18/11 03:53, Xah Lee wrote: On Jun 15, 5:43 am, rusi rustompm...@gmail.com wrote: On Jun 15, 5:32 pm, Dotan Cohen dotanco...@gmail.com wrote: Thanks. From testing small movements with my fingers I see that the fourth finger

Re: Keyboard Layout: Dvorak vs Colemak: is it Worthwhile toImprovethe Dvorak Layout?

2011-06-18 Thread Lie Ryan
On 06/19/11 15:14, rusi wrote: On Jun 19, 9:21 am, Lie Ryan lie.1...@gmail.com wrote: On 06/18/11 03:53, Xah Lee wrote: On Jun 15, 5:43 am, rusi rustompm...@gmail.com wrote: On Jun 15, 5:32 pm, Dotan Cohen dotanco...@gmail.com wrote: Thanks. From testing small movements with my fingers I

[issue11197] information leakage with SimpleHTTPServer

2011-06-18 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Ori, which platform did you try to reproduce this issue. I tried in all active codelines (cpython to all through 2.5) from hg and can't able to reproduce this bug on Linux. If someone can reproduce, can you provide exact instructions.

[issue12167] test_packaging reference leak

2011-06-18 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_build_ext builds and imports xx. I changed test test to use a subprocess: New changeset 144cea8db9a5 by Victor Stinner in branch 'default': Issue #12333: run tests on the new module in a subprocess

[issue12090] 3.2: build --without-threads fails

2011-06-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Is this done then? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12090 ___ ___

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Any reviewers? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___ ___ Python-bugs-list

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2011-06-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Can the 3.2 part of this be resolved this weekend? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9516 ___

[issue12290] __setstate__ is called for false values

2011-06-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Well, this looks correct then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12290 ___ ___

[issue12090] 3.2: build --without-threads fails

2011-06-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Yes, this is fixed in 3.2. I just left the issue open as a reminder for the release branch. -- resolution: - fixed stage: - committed/rejected ___ Python tracker rep...@bugs.python.org

[issue4470] smtplib SMTP_SSL not working.

2011-06-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file22401/v2_01_fix_lmtp_init ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4470 ___

[issue4470] smtplib SMTP_SSL not working.

2011-06-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file22402/v2_02_mock_socket_shutdown ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4470 ___

[issue4470] smtplib SMTP_SSL not working.

2011-06-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Added file: http://bugs.python.org/file22403/v2_03_shutdown_socket_on_close ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4470 ___

[issue4470] smtplib SMTP_SSL not working.

2011-06-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file22403/v2_03_shutdown_socket_on_close ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4470 ___

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2011-06-18 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I would like Ronald's take on it (also, I expect to be off-line for the weekend). Note, as it stands now, 3.2.1 (without any further patches) would have the same less than ideal behavior as 2.7.2. -- ___

[issue12357] Python dist modifications for secure PyPI uploads

2011-06-18 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: This is the master ticket to support secure uploads of Python packages to PyPI servers using standard Python distribution. Please, add issue12226 as a first child. -- assignee: tarek components: Distutils, Distutils2,

[issue12226] use HTTPS by default for uploading packages to pypi

2011-06-18 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: This simple patch slipped off 2.7.2. Why? -- title: use secured channel for uploading packages to pypi - use HTTPS by default for uploading packages to pypi ___ Python tracker

[issue12358] validate server certificate when uploading packages to PyPI

2011-06-18 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: Please add this as a child of master issue12357. When default protocol to upload to PyPI is switched to HTTPS in issue12226, the next step is to validate the certificate. Certificate validation requires that we will either: 1.

[issue12358] validate server certificate when uploading packages to PyPI

2011-06-18 Thread anatoly techtonik
Changes by anatoly techtonik techto...@gmail.com: -- assignee: - tarek components: +Distutils, Distutils2 nosy: +alexis, eric.araujo, tarek versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue3067] setlocale fails with unicode strings on Py2 and with byte strings on Py3

2011-06-18 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3067 ___ ___ Python-bugs-list

[issue12357] Python dist modifications for secure PyPI uploads

2011-06-18 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: ..and issue12358 as a second. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12357 ___

[issue4470] smtplib SMTP_SSL not working.

2011-06-18 Thread Lorenzo M. Catucci
Changes by Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it: Removed file: http://bugs.python.org/file22402/v2_02_mock_socket_shutdown ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4470 ___

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2011-06-18 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree with Ned, the changes to the environment should only be done in subprocesses started by distutils. The patch looks fine, but I haven't tested the patches yet. -- ___ Python tracker

[issue4470] smtplib SMTP_SSL not working.

2011-06-18 Thread Lorenzo M. Catucci
Lorenzo M. Catucci lore...@sancho.ccd.uniroma2.it added the comment: Just finished testing both 2.7 and default branches' socket close behaviour, and it seems 05 is not strictly needed. I'd still prefer if smtplib_05_shutdown_socket_v2.patch since, this way the REMOTE socket close will be

[issue7652] Merge C version of decimal into py3k.

2011-06-18 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Removed file: http://bugs.python.org/file22304/9a10e3232445.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue7652] Merge C version of decimal into py3k.

2011-06-18 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file22404/49433f35a5f8.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___

[issue12326] Linux 3: tests should avoid using sys.platform == 'linux2'

2011-06-18 Thread Jakub Wilk
Jakub Wilk jw...@jwilk.net added the comment: Just to give some statistic, in Debian we have 80 binary packages that check if sys.platform is linux2. However, it appears to me that vast majority of them is broken anyway, because what they really mean to check is: - is this a non-Windows sytem?

[issue7652] Merge C version of decimal into py3k.

2011-06-18 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The latest patch is based on a relatively stable revision of 3.3. To my knowledge, _decimal.c and decimal.py are now fully compatible in the sense of PEP-399. libmpdec o New test suite with comprehensive tests against

[issue12359] tutorial: Module search path description is incorrect

2011-06-18 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: http://docs.python.org/tutorial/modules.html#the-module-search-path Module search path order description is misleading. When a module named spam is imported, the interpreter searches for a file named spam.py in the directory of the

[issue12291] file written using marshal in 3.2 can be read by 2.7, but not 3.2 or 3.3

2011-06-18 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Why can't you just call fileno() on the file object? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12291 ___

[issue12359] tutorial: Module search path description is incorrect

2011-06-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The second paragraph goes on to cover your point, but I agree that it is not as clear as it should be. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue11781] test/test_email directory does not get installed by 'make install'

2011-06-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I forgot that I had this issue open. I committed the makefile part of the patch in issue 12313. I currently have no way to test the windows part, but it seems a straightforward modification of the existing code, so I'm going to commit

[issue11781] test/test_email directory does not get installed by 'make install'

2011-06-18 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a6c5da661428 by R David Murray in branch 'default': #11781: update windows build script to account for move of email tests http://hg.python.org/cpython/rev/a6c5da661428 -- nosy: +python-dev

[issue11781] test/test_email directory does not get installed by 'make install'

2011-06-18 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - fixed stage: - committed/rejected status: open - closed type: - compile error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11781

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-06-18 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset d62e5682a8ac by R David Murray in branch '3.2': #11584: make decode_header handle Header objects correctly http://hg.python.org/cpython/rev/d62e5682a8ac New changeset ce033d252a6d by R David Murray in branch 'default': merge #11584:

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-06-18 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 3875ccea6367 by R David Murray in branch '3.2': #11584: make Header and make_header handle binary unknown-8bit input http://hg.python.org/cpython/rev/3875ccea6367 New changeset 9569d8c4c781 by R David Murray in branch 'default':

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-06-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: OK, the invariant make_header(decode_header(x)) == x should once again work for anything returned by __getitem__. -- stage: needs patch - committed/rejected status: open - closed ___ Python

[issue11584] email.decode_header fails if msg.__getitem__ returns Header object

2011-06-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Heh, I misstated that invariant, it's only true when x is a Header. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11584 ___

[issue11873] test_regexp() of test_compileall fails occassionally

2011-06-18 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- status: - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11873 ___ ___ Python-bugs-list

[issue12346] Python source code build (release) depends on mercurial

2011-06-18 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: Python 2.7.2 source code build (release) depends on mercurial - Python source code build (release) depends on mercurial ___ Python tracker rep...@bugs.python.org

[issue3216] Scarce msilib documentation

2011-06-18 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: -easy, patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3216 ___ ___

[issue9246] os.getcwd() hardcodes max path len

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

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-06-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think we can treat this as a bug. However... What if there is more than one set of Resent- headers? I think that it is not possible to guarantee we only look at the most recent set, since the RFC provides no way to identify a set.

[issue12360] Doc Typo

2011-06-18 Thread Martin Marcher
New submission from Martin Marcher mar...@marcher.name: Slight typo in the docs. I don't quite know how to work with mercurial. Hope it'll just work to merge the bitbucket link. Typo is here: http://docs.python.org/py3k/library/asyncore.html#asyncore.dispatcher.handle_accepted (but also

[issue12360] Doc Typo

2011-06-18 Thread Martin Marcher
Martin Marcher mar...@marcher.name added the comment: Fix repo link :( -- hgrepos: +31 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12360 ___ ___

[issue12360] Doc Typo

2011-06-18 Thread Martin Marcher
Changes by Martin Marcher mar...@marcher.name: -- keywords: +patch Added file: http://bugs.python.org/file22405/2d9bc44963f6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12360 ___

[issue12167] test_packaging reference leak

2011-06-18 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I changed test test to use a subprocess: Yes, in packaging. I replied to an earlier question about distutils: I could not find any test in distutils/tests that imports extension modules. test_build_ext builds and imports xx. --

  1   2   >