[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-22 Thread Ram Rachum
Ram Rachum added the comment: Patch attached. Is this good? -- keywords: +patch Added file: http://bugs.python.org/file33616/patch.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20218

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-21 Thread Ram Rachum
Ram Rachum added the comment: Christopher and Serhiy, I would appreciate if you could kindly explain why your arguments, while applying to my suggestions, do not apply to the following functions: - `Path.stat` - `Path.owner` - `Path.group` - `Path.open` - `Path.chmod` - `Path.lchmod

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-21 Thread Ram Rachum
Ram Rachum added the comment: Serhiy: Your arguments 1 and 2 are pretty weak. (So what if an import is required? It's still 2 lines. I thought that Not every two line function are worth to be added to the stdlib.) Regarding stat being used much more often than read: I disagree. I've done

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-12 Thread Ram Rachum
Ram Rachum added the comment: (Replace `is` with `if` in my code sample, typo.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20218

[issue20218] Add `pathlib.Path.write` and `pathlib.Path.read`

2014-01-10 Thread Ram Rachum
New submission from Ram Rachum: I'd really like to have methods `pathlib.Path.write` and `pathlib.Path.read`. Untested implementation: def read(self, binary=False): with self.open('br' is binary else 'r') as file: return file.read() def write(self, data. binary=False

[issue20097] Bad use of `self` in importlib

2013-12-30 Thread Ram Rachum
New submission from Ram Rachum: There's a bad usage of `self` here: http://hg.python.org/cpython/file/fd846837492d/Lib/importlib/_bootstrap.py#l1431 `self` isn't defined because it's a class method. -- components: Library (Lib) messages: 207105 nosy: cool-RR priority: normal

[issue20097] Bad use of `self` in importlib

2013-12-30 Thread Ram Rachum
Ram Rachum added the comment: Sorry, bad link, this is the right link: http://hg.python.org/cpython/file/fd846837492d/Lib/importlib/_bootstrap.py#l1409 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20097

[issue11299] Allow deepcopying paused generators

2013-12-08 Thread Ram Rachum
Ram Rachum added the comment: Instead of copy.deepcopy, why not call itertools.tee? It's hard for me to give you a good answer because I submitted this ticket 2 years ago, and nowadays I don't have personal interest in it anymore. But, I think `itertools.tee` wouldn't have worked for me

[issue19810] adding an feature to python interpreter

2013-11-27 Thread madan ram
New submission from madan ram: I found that it will be useful to show the list of function arguments using inspect module. When the function executed by the user in interpreter as TypeError. ex: - def foo(a,b=4,c=hello): ... print a,b,c foo() Traceback (most recent call last): File

[issue19810] Adding a feature to python interpreter

2013-11-27 Thread madan ram
Changes by madan ram madan_...@rocketmail.com: -- title: adding an feature to python interpreter - Adding a feature to python interpreter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19810

[issue19032] __reduce_ex__ on lock object

2013-09-18 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19032 ___ ___ Python-bugs-list

[issue19032] __reduce_ex__ on lock object

2013-09-16 Thread Ram Rachum
Ram Rachum added the comment: I use that to test whether an object is pickleable or not. It used to work in Python 2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19032

[issue19032] __reduce_ex__ on lock object

2013-09-16 Thread Ram Rachum
Ram Rachum added the comment: Wrong, because the object itself could be pickleable but refer to a different object which is non-pickleable. I want to know whether the object itself, without any object it refers to, is pickleable. Also, pickling an object could be very resource-intensive

[issue19032] __reduce_ex__ on lock object

2013-09-15 Thread Ram Rachum
New submission from Ram Rachum: import threading l = threading.Lock() l.__reduce_ex__(3) (function __newobj__ at 0x026CD8C8, (class '_thread.lock',), None, None, None) Isn't it a bug that `__reduce_ex__` works on the non-pickleable lock object

[issue18707] the readme should also talk about how to build doc.

2013-08-11 Thread madan ram
New submission from madan ram: Since most of and also I faced problem of building Doc initially then later i found out how to build Doc. So i thought to include details on how to build Doc in README. -- assignee: docs@python components: Build, Devguide, Documentation, Installation

[issue18708] Change required in python 3.4 interpretor .

2013-08-11 Thread madan ram
New submission from madan ram: As I observed when using python 3.4 Interpretor is that it would be able to distinguish between char by '' and string by input() a 'a' and input() aa 'aa' it would be better if output was aa but if i want to fix this which file to edit

[issue18703] To change the doc of html/faq/gui.html

2013-08-10 Thread madan ram
New submission from madan ram: Qt 4.5 upwards is licensed under the LGPL license; also, commercial licenses are available from Nokia. Since new version of Qt 5 is realsed and Licenced under Digia. So i am fixing this issue . i am going to write it as PyQt5 is licensed on all platforms

[issue18703] To change the doc of html/faq/gui.html

2013-08-10 Thread madan ram
Changes by madan ram madan_...@rocketmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703 ___ ___ Python-bugs

[issue18703] To change the doc of html/faq/gui.html

2013-08-10 Thread madan ram
Changes by madan ram madan_...@rocketmail.com: Removed file: http://bugs.python.org/file31218/gui.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703

[issue18703] To change the doc of html/faq/gui.html

2013-08-10 Thread madan ram
Changes by madan ram madan_...@rocketmail.com: -- keywords: +patch Added file: http://bugs.python.org/file31219/mywork.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703

[issue18703] To change the doc of html/faq/gui.html

2013-08-10 Thread madan ram
Changes by madan ram madan_...@rocketmail.com: -- nosy: +aleax, eric.araujo, ezio.melotti, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18703

[issue18212] No way to check whether Future is finished?

2013-06-14 Thread Ram Rachum
New submission from Ram Rachum: I have a `Future` and I want to check whether it's in finished state. It seems like I don't have a method to do that, right? (I could emulate the existing methods for checking Future state, but that would mean fiddling with private variables.) Why not just

[issue18212] No way to check whether Future is finished?

2013-06-14 Thread Ram Rachum
Ram Rachum added the comment: I guess that'd be equivalent, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18212 ___ ___ Python-bugs-list

[issue18043] No mention of `match.regs` in `re` documentation

2013-05-23 Thread Ram Rachum
New submission from Ram Rachum: There's no mention of `match.regs` in the documentation of the `re` module. -- assignee: docs@python components: Documentation messages: 189859 nosy: cool-RR, docs@python priority: normal severity: normal status: open title: No mention of `match.regs

REG PYTHON developer

2013-03-15 Thread ram . nyvasoft
by default. You enjoy writing software and take pride in what you build. SOL proficiency, particularly with PostgreSQL is a plus. Strong communications skills, both written and verbal. Thanks Regards, Ram i3 Software 100 Wood Avenue South, Suite 105 Iselin, NJ, 08830 (O) 703 953 2828 Think Green

[issue17032] Misleading error message: global name 'X' is not defined

2013-03-03 Thread Ram Rachum
Ram Rachum added the comment: Awesome, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032 ___ ___ Python-bugs-list mailing list

[issue17032] Misleading error message: global name 'X' is not defined

2013-03-02 Thread Ram Rachum
Ram Rachum added the comment: (I fixed the patch to not have a typo.) -- Added file: http://bugs.python.org/file29290/cpython_patch1of1_8e9346e7ae87.patch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032

[issue17032] Misleading error message: global name 'X' is not defined

2013-03-02 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: Removed file: http://bugs.python.org/file29006/cpython_patch1of1_8e9346e7ae87.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032

[issue17032] Misleading error message: global name 'X' is not defined

2013-02-08 Thread Ram Rachum
Ram Rachum added the comment: I made a patch. Is it okay? (I don't normally use Mercurial nor work with patches.) -- keywords: +patch Added file: http://bugs.python.org/file29006/cpython_patch1of1_8e9346e7ae87.patch ___ Python tracker rep

[issue17032] Misleading error message: global name 'X' is not defined

2013-02-08 Thread Ram Rachum
Ram Rachum added the comment: I don't program C at all. I have no idea how to compile Python or run the test suite. It took me half an hour just to produce this patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032

[issue17032] Misleading error message: global name 'X' is not defined

2013-02-08 Thread Ram Rachum
Ram Rachum added the comment: I think I'll go for option 2, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032 ___ ___ Python-bugs

[issue17032] Misleading error message: global name 'X' is not defined

2013-02-01 Thread Ram Rachum
Ram Rachum added the comment: Does fixing this ticket require anything more than making a change in the string that Python uses for this exception? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17032

[issue17032] Misleading error message: global name 'X' is not defined

2013-01-25 Thread Ram Rachum
New submission from Ram Rachum: Every single time I see the error message `global name 'X' is not defined` I say to myself, ah yeah, I mistyped a variable name. But then it occurred to me, why should I have to do this mental translation from global name not defined to I mistyped a variable

[issue8713] multiprocessing needs option to eschew fork() under Linux

2012-12-27 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: -- nosy: -cool-RR ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___ Python-bugs-list mailing list

[issue16248] Security bug in tkinter allows for untrusted, arbitrary code execution.

2012-10-17 Thread mani and ram
mani and ram added the comment: On 17 October 2012 23:46, Guilherme Polo rep...@bugs.python.org wrote: Guilherme Polo added the comment: It is a well known fact that the readprofile function uses exec, and it has been like that for more than 18 years. The parameters baseName and className

Client Needs at Network Engineer at Germantown,MD

2012-10-16 Thread ram dev
. • Ability to handle multi-tasking and frequently changing priorities. • Cisco Certifications a plus • Familiarity with ITIL processes a plus Thanks, Ram Dev Recruiter Tech-Net Inc. Tel: 916-458-4390 Ext 102 Email: r...@tech-netinc.com Ym: vramde...@yahoo.com URL: www.tech

Need Data Architect/Technical Business Analyst For 6months at San Rafael, CA

2012-10-03 Thread ram dev
• Understanding of Clients Customer, Product, Contract, and Entitlement data/structures a plus Thanks, Ram Dev Recruiter Tech-Net Inc. Tel: 916-458-4390 Ext 102 Email: r...@tech-netinc.com -- http://mail.python.org/mailman/listinfo/python-list

[issue16090] but is needed somewhere in http://www.python.org/dev/peps/pep-3138/

2012-09-30 Thread mani and ram
mani and ram added the comment: When I find it I will open it. On 30 September 2012 12:26, Georg Brandl rep...@bugs.python.org wrote: Georg Brandl added the comment: I've gone through the PEP; I've found a few typos and fixed them, but no missing but. Sorry, but without a more specific

Client Needs Sr. Java Developer, Sacramento, CA

2012-09-27 Thread ram dev
: • Email: • Availability: • Visa Status: • Relocation to : • Last 4-digits of SSN: • References: • Ready for Telephonic discussion during office hours Thanks, Ram Dev Recruiter Tech-Net Inc. Tel: 916-458-4390 Ext 102 Email

Client Needs---QA Manual Tester at Sacramento, CA

2012-09-21 Thread ram dev
review and develop unit test if needed. Environment: JBoss, Groovy and Grails, Oracle 11g, SQL, XNL, Actuate, Reporting Services, SharePoint, Quality Center, Quick Test Pro, Load Runner, SOA Test, Windows, Linux. Thanks, Ram Dev Recruiter Tech-Net Inc. Tel: 916

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Ram Rachum
New submission from Ram Rachum: Please allow multiplying timedelta by a Decimal: Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import datetime import decimal decimal.Decimal('0.1

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Ram Rachum
Ram Rachum added the comment: This is for cases where I already have the number as a Decimal. Asking me to convert it to `float` myself is annoying. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15975

[issue15975] Allow multiplying timedelta by Decimal

2012-09-19 Thread Ram Rachum
Ram Rachum added the comment: +1 on folding this into issue 14262. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15975 ___ ___ Python-bugs-list

[issue14262] Allow using decimals as arguments to `timedelta`

2012-09-19 Thread Ram Rachum
Ram Rachum added the comment: @mark.dickinson: Many different sources. One example is decimal fields on Django, used for dollar amounts. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14262

[issue14262] Allow using decimals as arguments to `timedelta`

2012-09-19 Thread Ram Rachum
Ram Rachum added the comment: I hope this was intended as a joke. If this was an actual criticism, let me know so I could explain why it makes sense. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14262

[issue14262] Allow using decimals as arguments to `timedelta`

2012-09-19 Thread Ram Rachum
Ram Rachum added the comment: I can think of millions of use cases. Here's a random one out of those millions: A client is entitled to X hours of service a month. We grant him a promotion where he is allowed 15% more than x, i.e. 1.15*x. But that number, 1.15, is stored in a Django decimal

[issue14262] Allow using decimals as arguments to `timedelta`

2012-09-19 Thread Ram Rachum
Ram Rachum added the comment: In the example I gave, Decimal is clearly preferred over float. Why would we use float to represent the ratio of the bonus to the client? Why would we risk imprecision there when Decimal provides us with perfect precision

[issue8289] multiprocessing.Process.__init__ pickles all arguments

2012-06-11 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: I opened this issue 2 years ago, and I don't remember it being easily solvable back then. But I've long forgotten what the problems were, and I've lost personal interest in it, so I guess we'll just let it go. -- status: pending - open

Python Toolbox 0.1 released

2012-06-10 Thread ram . rachum
-toolbox.readthedocs.org Thanks, Ram. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue3177] Add shutil.open

2012-04-23 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: -- nosy: -cool-RR ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___ ___ Python-bugs-list mailing list

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-20 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: I'm not completly conviced by the need of supporting Decimal in timedelta constructor. Why do you use Decimal if the result should be a timedelta? Why not using timedelta directly? What do you mean, Why not using timedelta directly? How could I

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-20 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: In some cases we indeed use a timedelta directly, but sometimes we get a number of hours, and in those cases it's more convenient for us to work with number of hours directly. -- ___ Python tracker rep

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: I'm not proposing that `timedelta` will use `Decimal` internally, but that it would handle the conversion to `float` itself, instead of the user having to do it. -- ___ Python tracker rep

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-13 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: Thanks for the patch! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14262 ___ ___ Python-bugs

[issue14262] Allow using decimals as arguments to `timedelta`

2012-03-12 Thread Ram Rachum
New submission from Ram Rachum r...@rachum.com: Please allow using decimals as arguments to `timedelta`, so the following code won't raise an exception: Python 3.3.0a1 (default, Mar 4 2012, 17:27:59) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more

Bug in logutils package

2012-01-11 Thread Ram
Does anyone have any inkling on how to fix this bug? http://code.google.com/p/logutils/issues/detail?id=3 Or any good pointers on how to find out whats wrong and how to fix it would be nice. Thanks, --Ram -- http://mail.python.org/mailman/listinfo/python-list

logging.getLogger( __name__ )

2011-12-28 Thread Ram
How does this line work? How do I get my logger to point to a file to be named as /tmp/modulename.log : I can do this using inspect, but there probably is a better way? Thanks, --Ram -- http://mail.python.org/mailman/listinfo/python-list

[issue13660] maniandram maniandram wants to chat

2011-12-23 Thread mani and ram
New submission from mani and ram maniandra...@gmail.com: --- maniandram maniandram wants to stay in touch better using some of Google's great new products. If you already have Gmail or Google Talk, visit: http

[issue13661] maniandram maniandram wants to chat

2011-12-23 Thread mani and ram
New submission from mani and ram maniandra...@gmail.com: --- maniandram maniandram wants to stay in touch better using some of Google's great new products. If you already have Gmail or Google Talk, visit: http

[issue13600] rot_13 codec not working

2011-12-14 Thread Ram Rachum
New submission from Ram Rachum r...@rachum.com: The `rot_13` codec is supposed to work like this, no? 'qwerty'.encode('utf-8') b'qwerty' 'qwerty'.encode('rot_13') Traceback (most recent call last): File pyshell#1, line 1, in module 'qwerty'.encode('rot_13') TypeError: encoder did

[issue13600] rot_13 codec not working

2011-12-14 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: Then I suggest replacing this error message: encoder did not return a bytes object (type=str) and this one: 'memoryview' object has no attribute 'translate' With something like: Please use `codecs.lookup('rot-13').encode

[issue13457] Display module name as string in `ImportError`

2011-11-22 Thread Ram Rachum
New submission from Ram Rachum r...@rachum.com: Recently I was confronted with a mysterious error: ImportError: No module named datetime Firther investigation revealed that the cause was a pickling problem that ran `__import__('datetime\r')`. If `ImportError` would have shown the module

[issue13457] Display module name as string in `ImportError`

2011-11-22 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13457 ___ ___ Python-bugs-list mailing

[issue13457] Display module name as string in `ImportError`

2011-11-22 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13457 ___ ___ Python-bugs-list

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-13 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: The reason this bug bothered me is because I was debugging a Django app, and in the stacktrace's local variables I suddenly saw that `host` was `25`, which seemed like a bug to me and wasted me 5 minutes. So it's not a critical bug but it wasted

[issue13163] `port` and `host` are confused in `_get_socket

2011-10-12 Thread Ram Rachum
New submission from Ram Rachum r...@rachum.com: Look here: http://hg.python.org/cpython/file/3313ce92cef7/Lib/smtplib.py#l279 `port` and `host` are confused. I saw this is fixed on 3.2; possibly it should be fixed in the next 2.7 micro release too. -- components: Library (Lib

[issue12895] In MSI/EXE installer, allow installing Python modules in free path

2011-09-06 Thread Ram Rachum
Ram Rachum r...@rachum.com added the comment: Martin, what do you mean administrative installation? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12895

[issue12895] In MSI/EXE installer, allow installing Python modules in free path

2011-09-04 Thread Ram Rachum
New submission from Ram Rachum r...@rachum.com: Currently, when you use an MSI installer (and possibly also EXE) for a Python module, it automatically detects the location of your various system's Python installations. This is very convenient. However, this can be a problem sometimes, if your

[issue12653] Provide accelerators for all buttons in Windows installers

2011-07-29 Thread Ram Rachum
New submission from Ram Rachum r...@rachum.com: I was installing Python 3.2.1 on my laptop today, and was unable to efficiently use the keyboard in order to navigate the installation dialogs. Every button should have an accelerator, e.g. Next should be Next so Alt-N will press it. (I don't

[issue12583] More detailed ImportError messages

2011-07-21 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Thanks for explaining, I guess it's too complicated. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12583

[issue12583] More detailed ImportError messages

2011-07-20 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: David, I don't think you've read my message carefully enough. I'm well aware that there are other ways in Python to import than the `import` statement. I'm proposing that it doesn't matter. I asked, isn't a circular import when you try

[issue12583] More detailed ImportError messages

2011-07-19 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Brett: Why does it matter that it will be costly? It's a post-mortem activity anyway, usually done when something critical failed and the entire system isn't working. Why would functions need to be looked at? I mean, isn't a circular import

[issue12583] More detailed ImportError messages

2011-07-19 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Brett, I checked out the two pieces of documentation you referred to, they have very little information about ImportWarning other than Base class for warnings about probable mistakes in module imports

[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: I've been frustrated so many times by `ImportError: cannot import name foo`. Right now I'm debugging some problem on a PAAS server (with no SSH access), and the server returns a traceback of `cannot import name foo`, and I don't have any

[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: As long as those attributes are reflected in the string in human language, why not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12583

[issue12583] More detailed `ImportError` messages

2011-07-18 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: What's the problem with detecting circular imports? Mind you that we only need a post-mortem analysis to check why the import failed; so after the import failed, we could check whether our import stack has a loop in it. I'm not familiar

[issue3177] implement os.startfile on posix and MacOSX

2011-07-13 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Eric, I have no problem with this function being placed in `shutil` instead of `os`, as long as it's implemented and it's in the standard library, and people don't have to use subprocess to run open or xdg-open themselves as I currently do

[issue12543] `issubclass(collections.deque, collections.Sequence) == False`

2011-07-12 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: Is there a good reason that `issubclass(collections.deque, collections.Sequence) == False`? What's not-sequence-y about `deque`? -- messages: 140206 nosy: cool-RR priority: normal severity: normal status: open title: `issubclass

[issue12522] Implement `os.startfile` under Linux and Mac

2011-07-09 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: I want to use `os.startfile` to open a folder in Explorer/Nautilus/Finder. The documentation says that it's only implemented on Windows: http://docs.python.org/dev/library/os.html#os.startfile See discussion on Python-ideas here: https

[issue3177] implement os.startfile on posix and MacOSX

2011-07-09 Thread Ram Rachum
Changes by Ram Rachum cool...@cool-rr.com: -- nosy: +cool-RR ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3177 ___ ___ Python-bugs-list mailing

[issue12449] Add accelerator F to button Finish in all MSI installers made by bdist_msi

2011-06-30 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: I noticed that in MSI installers downloaded from PyPI don't have an accelerator on the Finish button. Please add an accelerator on it. (I think that F is the accepted one.) -- assignee: tarek components: Distutils messages: 139463

[issue12449] Add accelerator F to button Finish in all MSI installers made by bdist_msi

2011-06-30 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: I can only do wxPython, I have no idea how Python's MSI installers work. I did a quick search for Finish in the codebase but could find any obvious place to add the accelerator. As a new feature, this cannot go into distutils. Seriously? Why

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-27 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Diff attached, is it good? I'm not very experienced with diffs, I usually work with pull requests. -- keywords: +patch Added file: http://bugs.python.org/file22144/patch.diff ___ Python tracker rep

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-27 Thread Ram Rachum
Changes by Ram Rachum cool...@cool-rr.com: Removed file: http://bugs.python.org/file22144/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11969

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-27 Thread Ram Rachum
Changes by Ram Rachum cool...@cool-rr.com: Removed file: http://bugs.python.org/file22027/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11969

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-27 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Thanks for the `-u` tip and the correction to the code, Petri. I removed my previous files since yours is the definite one. And yeah, it's a Windows issue. -- ___ Python tracker rep

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-26 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Why is this still marked as test needed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11969

[issue12128] Allow `abc.abstractproperty` to be overridden by a data attribute

2011-05-20 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: When you create an `abc.abstractproperty` on a class, any subclass must override it as an actual property in order to be instantiable. But sometimes you want to override it with a data attribute instead, i.e. `self.x = 5` instead of `x

[issue12128] Allow `abc.abstractproperty` to be overridden by a data attribute

2011-05-20 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Daniel, the behavior you describe is already present in Python 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12128

[issue12128] Allow `abc.abstractproperty` to be overridden by a data attribute

2011-05-20 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Eric, do you think that a solution can be made by calling `__init__` inside of `ABCMeta.__new__` and then afterwards checking the instance for attributes? -- ___ Python tracker rep...@bugs.python.org

[issue12128] Allow `abc.abstractproperty` to be overridden by a data attribute

2011-05-20 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Ah, I got confused, there's no way we can call `__init__` in `ABCMeta.__new__`. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12128

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-19 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Test attached. -- Added file: http://bugs.python.org/file22027/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11969

[issue11969] Can't launch Process on built-in static method

2011-05-01 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: Hello, I found this bit in my inbox, I forgot why I cared about it, but it raises an exception (at least on Windows): import multiprocessing p = multiprocessing.Process(target=bytes.maketrans, args=(b'abc', b'xyz')) p.start() Traceback

[issue8400] zipimporter find_module fullname mis-documented

2011-04-27 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: I was bitten now as well... -- nosy: +cool-RR ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8400

[issue11908] Weird `slice.stop or sys.maxint`

2011-04-22 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: In the documentation for `itertools.islice` I see this line: it = iter(xrange(s.start or 0, s.stop or sys.maxint, s.step or 1)) Is it really okay to do `s.stop or sys.maxint`? I'm assuming this was targeting `None`, but what if `s.stop

[issue11775] `bool(Counter({'a': 0'})) is True`

2011-04-05 Thread Ram Rachum
New submission from Ram Rachum cool...@cool-rr.com: bool(Counter({'a': 0'})) is True. Is this wise? I want to be able to do: if my_counter: whatever To check whether my counter has any elements. Currently this seems to be impossible because of this bug. Will we have to keep

[issue11775] `bool(Counter({'a': 0})) is True`

2011-04-05 Thread Ram Rachum
Changes by Ram Rachum cool...@cool-rr.com: -- title: `bool(Counter({'a': 0'})) is True` - `bool(Counter({'a': 0})) is True` ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11775

[issue11775] `bool(Counter({'a': 0})) is True`

2011-04-05 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Before coding a test I want to know whether we can even make this change with regards to backwards compatibility. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11775

[issue11775] `bool(Counter({'a': 0})) is True`

2011-04-05 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Hmm... So how about making `elements` a smart object which will implement `__bool__`? Then we could give it a `__len__` too and be rid of issue11733. -- ___ Python tracker rep...@bugs.python.org http

[issue11775] `bool(Counter({'a': 0})) is True`

2011-04-05 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: How is it not the Python way? Why is it okay to make `dict.keys` into a smart object but it's not okay to make `Counter.elements` a smart object? These are not random ideas. I'm using `Counter` in a contract project and I find the need to make

<    1   2   3   4   5   >